Use consistent compatibility checks in vectorizable_shift
[gcc.git] / gcc / ChangeLog
1 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2
3 * tree-vect-stmts.c (vectorizable_shift): Check the number
4 of vector elements as well as the type mode when deciding
5 whether an op1_vectype is compatible. Reuse the result of
6 this check when generating vector statements.
7
8 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
9
10 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
11 targetm.vectorize.preferred_simd_mode returns an integer mode,
12 use mode_for_vector to decide what the vector type's mode
13 should actually be. Use build_vector_type_for_mode instead
14 of build_vector_type.
15
16 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
17
18 * target.def (get_mask_mode): Take a vector mode itself as argument,
19 instead of properties about the vector mode.
20 * doc/tm.texi: Regenerate.
21 * targhooks.h (default_get_mask_mode): Update to reflect new
22 get_mode_mask interface.
23 * targhooks.c (default_get_mask_mode): Likewise. Use
24 related_int_vector_mode.
25 * optabs-query.c (can_vec_mask_load_store_p): Update call
26 to get_mask_mode.
27 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
28 first that the original mode really is a vector.
29 * tree.c (build_truth_vector_type_for): Likewise.
30 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
31 get_mode_mask interface.
32 (aarch64_expand_sve_vcond): Update call accordingly.
33 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
34 get_mode_mask interface.
35 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
36
37 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
38
39 * tree.h (build_truth_vector_type): Delete.
40 (build_same_sized_truth_vector_type): Likewise.
41 * tree.c (build_truth_vector_type): Rename to...
42 (build_truth_vector_type_for): ...this. Make static and take
43 a vector type as argument.
44 (truth_type_for): Update accordingly.
45 (build_same_sized_truth_vector_type): Delete.
46 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
47 instead of build_same_sized_truth_vector_type.
48 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
49 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
50 * tree-vect-patterns.c (build_mask_conversion): Likeise.
51 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
52 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
53 (vect_build_gather_load_calls, vectorizable_call): Likewise.
54 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
55 (vectorizable_store, vectorizable_condition): Likewise.
56 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
57 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
58 build_truth_vector_type.
59 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
60 Use truth_type_for instead of build_same_sized_truth_vector_type.
61 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
62
63 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
64
65 * tree.h (build_truth_vector_type_for_mode): Declare.
66 * tree.c (build_truth_vector_type_for_mode): New function,
67 split out from...
68 (build_truth_vector_type): ...here.
69 (build_opaque_vector_type): Fix head comment.
70 * tree-vectorizer.h (supportable_narrowing_operation): Remove
71 vec_info parameter.
72 (vect_halve_mask_nunits): Replace vec_info parameter with the
73 mode of the new vector.
74 (vect_double_mask_nunits): Likewise.
75 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
76 (vect_double_mask_nunits): Likewise.
77 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
78 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
79 to vect_halve_mask_nunits, getting the required mode from the unpack
80 patterns.
81 (vect_set_loop_condition_masked): Update call accordingly.
82 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
83 parameter and update call to vect_double_mask_nunits.
84 (vectorizable_conversion): Update call accordingly.
85 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
86 (vectorizable_call): Update call accordingly.
87 (supportable_widening_operation): Update call to
88 vect_halve_mask_nunits.
89 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
90 Use build_truth_vector_type_mode instead of build_truth_vector_type.
91
92 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
93
94 * machmode.h (mode_for_int_vector): Delete.
95 (related_int_vector_mode): Declare.
96 * stor-layout.c (mode_for_int_vector): Delete.
97 (related_int_vector_mode): New function.
98 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
99 instead of mode_for_int_vector.
100 (expand_vec_perm_const): Likewise.
101 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
102 (aarch64_evpc_sve_tbl): Likewise.
103 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
104 (s390_expand_vcond): Likewise.
105
106 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
107
108 * target.def (related_mode): New hook.
109 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
110 * doc/tm.texi: Regenerate.
111 * targhooks.h (default_vectorize_related_mode): Declare.
112 * targhooks.c (default_vectorize_related_mode): New function.
113 * machmode.h (related_vector_mode): Declare.
114 * stor-layout.c (related_vector_mode): New function.
115 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
116 * optabs-query.c (qimode_for_vec_perm): Likewise.
117 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
118 (vectorizable_store, vectorizable_load): Likewise
119
120 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
121
122 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
123 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
124 * config/arm/arm-c.c (arm_cpu_builtins): Define
125 __GCC_ASM_FLAG_OUTPUTS__.
126 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
127 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
128 Define __GCC_ASM_FLAG_OUTPUTS__.
129 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
130 * doc/extend.texi (FlagOutputOperands): Add documentation
131 for ARM and AArch64.
132
133 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
134 * config/arm/predicates.md (nz_comparison_operator): Rename
135 from noov_comparison_operator.
136 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
137 (arm_gen_dicompare_reg): Likewise.
138 (maybe_get_arm_condition_code): Likewise.
139 (thumb1_final_prescan_insn): Likewise.
140 (arm_emit_coreregs_64bit_shift): Likewise.
141 * config/arm/arm.md (addsi3_compare0): Likewise.
142 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
143 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
144 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
145 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
146 (*mulsi3addsi_compare0_scratch): Likewise.
147 (*mulsi3addsi_compare0_scratch_v6): Likewise.
148 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
149 (*zeroextractsi_compare0_scratch): Likewise.
150 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
151 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
152 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
153 (andsi_not_shiftsi_si_scc): Likewise.
154 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
155 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
156 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
157 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
158 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
159 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
160 (return_addr_mask, *check_arch2): Likewise.
161 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
162 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
163 (compare_scc splitters): Likewise.
164 (movcond_addsi): Likewise.
165 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
166 (*thumb2_addsi3_compare0_scratch): Likewise.
167 (*thumb2_mulsi_short_compare0): Likewise.
168 (*thumb2_mulsi_short_compare0_scratch): Likewise.
169 (compare peephole2s): Likewise.
170 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
171 nz_comparison_operator names.
172 (cbranchsi4_insn): Likewise.
173
174 * config/arm/constraints.md (c): Use cc_register predicate.
175
176 * config/aarch64/constraints.md (c): New constraint.
177
178 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
179
180 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
181 ipa_merge_fn_summary_after_inlining): Micro optimize.
182
183 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
184
185 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
186
187 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
188
189 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
190 (ipa_value_range_from_jfunc): New function.
191 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
192 known_value_ranges parameter; use it to evalulate conditions.
193 (evaluate_properties_for_edge): Compute known value ranges.
194 (ipa_fn_summary_t::duplicate): Update use of
195 evaluate_conditions_for_known_args.
196 (estimate_ipcp_clone_size_and_time): Likewise.
197 (ipa_merge_fn_summary_after_inlining): Likewise.
198 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
199
200 2019-11-14 Martin Liska <mliska@suse.cz>
201
202 * ipa-inline.c (want_inline_small_function_p): Use
203 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
204 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
205
206 2019-11-14 Martin Liska <mliska@suse.cz>
207
208 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
209 of a callee to get value of the param.
210 * ipa-inline.c (inline_insns_auto): Use proper
211 opt_for_fn.
212 * opts.c (maybe_default_option): Do not overwrite param
213 value if optimization level does not match. Note that
214 params usually have default value set via Init() keyword.
215 * params.opt: Remove -param=max-inline-insns-auto-O2.
216 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
217 * doc/invoke.texi: Remove documentation of
218 max-inline-insns-auto-O2.
219
220 2019-11-14 Martin Liska <mliska@suse.cz>
221
222 * tree-switch-conversion.c (switch_conversion::switch_conversion):
223 Do not initialize m_other_count.
224 (switch_conversion::collect): Do not count m_default_count and
225 m_other_count as we use frequencies for edges.
226 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
227
228 2019-11-14 Martin Liska <mliska@suse.cz>
229
230 PR other/92329
231 * doc/invoke.texi: Document -fallocation-dce.
232
233 2019-11-14 Martin Liska <mliska@suse.cz>
234
235 PR target/92389
236 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
237 PTA_ICELAKE_CLIENT which is later interited by
238 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
239
240 2019-11-14 Martin Liska <mliska@suse.cz>
241
242 * ipa-icf.c (sem_item_optimizer::execute): Save
243 loaded_symbols.
244 (sem_item_optimizer::parse_nonsingleton_classes):
245 Return number of loaded symbols.
246 (sem_item_optimizer::merge_classes): Print
247 statistics about totally needed symbols.
248 * ipa-icf.h (parse_nonsingleton_classes): Change return
249 type.
250 (merge_classes): Add one argument.
251
252 2019-11-14 Martin Liska <mliska@suse.cz>
253
254 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
255 func_checker::hash_operand by handling of FIELD_DECLs.
256
257 2019-11-14 Martin Liska <mliska@suse.cz>
258
259 * ipa-icf-gimple.h (func_checker::func_checker): Add
260 default constructor.
261 * ipa-icf.c (sem_function::init): Make operand_equal_p
262 and hash_operand public.
263 (sem_item::add_expr): Remove.
264 (sem_item::add_type): Remove.
265 (sem_function::hash_stmt): Use m_checker for hashing
266 of GIMPLE statements.
267 (sem_function::parse): Init with checker.
268 (sem_variable::parse): Pass NULL as checker.
269 (sem_item_optimizer::parse_funcs_and_vars):
270 Pass checker to ::parse function.
271 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
272 (sem_variable::parse): New function.
273 (sem_variable::get_hash): Only return computed hash value.
274 (sem_variable::init): Initialize hash of a variable.
275 * ipa-icf.h: Remove add_expr, add_type and add func_checker
276 to couple of functions as a new argument.
277
278 2019-11-14 Martin Liska <mliska@suse.cz>
279
280 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
281 bail out reason.
282 (func_checker::compare_gimple_assign): Likewise.
283
284 2019-11-14 Jakub Jelinek <jakub@redhat.com>
285
286 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
287 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
288 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
289
290 * omp-general.c (omp_context_name_list_prop): New function.
291 (omp_context_selector_matches): Use it. Return 0 if it returns
292 NULL.
293 (omp_context_selector_props_compare): Allow equivalency of an
294 identifier and a string literal containing no embedded zeros.
295
296 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
297
298 * range-op.cc (RANGE3): Remove.
299 (range_tests): Remove all selftest that check for multi-ranges.
300 Put tests in namespace selftest.
301 * selftest.h: Move range_tests into namespace selftest.
302 * value-range.h (class value_range): Unfriend range_tests.
303
304 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
305
306 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
307 normalize_symbolics and normalize_addresses working in place.
308 (range_fold_unary_symbolics_p): Same.
309 (range_fold_unary_symbolics_p): Same.
310 * value-range.cc (num_pairs): Same.
311 (lower_bound): Same.
312 (upper_bound): Same.
313 (contains_p): Same.
314 (normalize_addresses): Same.
315 (normalize_symbolics): Same.
316 * value-range.h (normalize_symbolics): Same.
317 (normalize_addresses): Same.
318
319 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
320
321 PR ipa/91682
322 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
323 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
324 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
325 (ipa_agg_jump_function): Remove member function equal_to.
326 (ipa_agg_jump_function_p): Remove typedef.
327 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
328 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
329 information for aggregate jump function.
330 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
331 record last definition statement.
332 (load_from_unmodified_param_or_agg): New function.
333 (ipa_known_agg_contents_list): Add new field type and value, remove
334 field constant.
335 (build_agg_jump_func_from_list): Rename parameter const_count to
336 value_count, build aggregate jump function from ipa_load_agg_data.
337 (analyze_agg_content_value): New function.
338 (extract_mem_content): Analyze memory store assignment to prepare
339 information for aggregate jump function generation.
340 (determine_known_aggregate_parts): Add new parameter fbi, remove
341 parameter aa_walk_budeget_p.
342 (update_jump_functions_after_inlining): Update aggregate jump function.
343 (ipa_find_agg_cst_for_param): Change type of parameter agg.
344 (try_make_edge_direct_simple_call): Add new parameter new_root.
345 (try_make_edge_direct_virtual_call): Add new parameter new_root and
346 new_root_info.
347 (update_indirect_edges_after_inlining): Pass new argument to
348 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
349 (ipa_write_jump_function): Write aggregate jump function to file.
350 (ipa_read_jump_function): Read aggregate jump function from file.
351 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
352 * ipa-cp.c (ipa_get_jf_arith_result): New function.
353 (ipa_agg_value_from_node): Likewise.
354 (ipa_agg_value_set_from_jfunc): Likewise.
355 (propagate_vals_across_arith_jfunc): Likewise.
356 (propagate_aggregate_lattice): Likewise.
357 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
358 (propagate_vals_across_pass_through): Call
359 propagate_vals_across_arith_jfunc.
360 (get_clone_agg_value): Move forward.
361 (propagate_aggs_across_jump_function): Handle value propagation for
362 aggregate jump function.
363 (agg_jmp_p_vec_for_t_vec): Remove.
364 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
365 with vec<ipa_agg_value>.
366 (copy_plats_to_inter, intersect_with_plats): Likewise.
367 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
368 (intersect_aggregate_with_edge): Likewise.
369 (find_aggregate_values_for_callers_subset): Likewise.
370 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
371 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
372 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
373 (gather_context_independent_values): Likewise.
374 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
375 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
376 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
377 (evaluate_properties_for_edge): Likewise.
378 (estimate_edge_devirt_benefit): Likewise.
379 (estimate_edge_size_and_time): Likewise.
380 (estimate_calls_size_and_time): Likewise.
381 (ipa_call_context::ipa_call_context): Likewise.
382 (estimate_ipcp_clone_size_and_time): Likewise.
383 * ipa-fnsummary.h (ipa_call_context): Replace
384 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
385 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
386 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
387 (do_estimate_edge_size): Likewise.
388 (do_estimate_edge_hints): Likewise.
389
390 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
391
392 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
393 binary operations.
394
395 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
396
397 * ipa-profile.c (check_argument_count): Check properly that e_info
398 is non-NULL; do not check descriptors.
399
400 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
401
402 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
403 check for ipa profiles.
404
405 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
406
407 PR c++/92421
408 * ipa-prop.c (update_indirect_edges_after_inlining):
409 Mark parameter as used.
410 * ipa-inline.c (recursive_inlining): Reset node cache
411 after inlining.
412 (inline_small_functions): Remove checking ifdef.
413 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
414 cache consistency.
415
416 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
417
418 PR ipa/92498
419 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
420 is NULL.
421 (ipa_profile): Fix reversed test.
422
423 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
424
425 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
426 (propagate_constants_topo): Fix typo.
427
428 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
429
430 * Makefile.in (OBJS): Add value-range.o.
431 (GTFILES): Add value-range.h.
432 * gengtype.c (open_base_files): Add value-range.h to list of
433 header files.
434 * tree-vrp.c: Move the following value_range related functions:
435 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
436 constant_p, set_undefined, set_varying, may_contain_p,
437 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
438 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
439 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
440 value_inside_range, ranges_from_anti_range, union_ranges,
441 intersect_ranges, intersect_helper, union_helper, union_,
442 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
443 upper_bound, contains_p, invert, intersect...
444 * value-range.cc: ...to here.
445 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
446 associated inline methods from here...
447 * value-range.h: ...to here.
448
449 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
450
451 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
452 instead of asserting its value.
453
454 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
455
456 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
457 constructors and set methods so value_range_kind is the last
458 argument and defaults to VR_RANGE.
459 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
460 * ipa-cp.c (propagate_vr_across_jump_function): Same.
461 * ipa-prop.c (ipa_get_value_range): Same.
462 (ipa_compute_jump_functions_for_edge): Same.
463 * range-op.cc (value_range_from_overflowed_bounds): Same.
464 (operator_cast::op1_range): Same.
465 (range_tests): Same.
466 * range.cc (range_nonzero): Same.
467 * tree-ssanames.c (get_range_info): Same.
468 * tree-vrp.c (value_range_equiv::set): Same.
469 (value_range::value_range): Same.
470 (value_range_equiv::value_range_equiv): Same.
471 (value_range_equiv::update): Same.
472 (value_range_equiv::deep_copy): Same.
473 (value_range_equiv::move): Same.
474 (value_range_equiv::set_undefined): Same.
475 (value_range::set): Same.
476 (value_range::set_nonzero): Same.
477 (ranges_from_anti_range): Same.
478 (extract_range_from_plus_minus_expr): Same.
479 (value_range::intersect_helper): Same.
480 (value_range_equiv::intersect): Same.
481 (value_range::union_helper): Same.
482 (value_range_equiv::union_): Same.
483 (value_range::normalize_symbolics): Same.
484 (value_range::invert): Same.
485 (determine_value_range_1): Same.
486 * tree-vrp.h (class value_range): Same.
487 (class value_range_equiv): Same.
488 * vr-values.c (set_value_range_to_nonnegative): Same.
489 (set_value_range_to_truthvalue): Same.
490 (vr_values::update_value_range): Same.
491 (vr_values::extract_range_for_var_from_comparison_expr): Same.
492 (vr_values::extract_range_from_binary_expr): Same.
493 (vr_values::extract_range_from_comparison): Same.
494 (vr_values::extract_range_basic): Same.
495 (vr_values::adjust_range_with_scev): Same.
496 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
497 (vr_values::extract_range_from_phi_node): Same.
498
499 2019-11-13 Ulrich Drepper <drepper@redhat.com>
500
501 * tree-dump.c (dequeue_and_dump): Print first tree operand
502 for VIEW_CONVERT_EXPR.
503
504 2019-11-13 Joseph Myers <joseph@codesourcery.com>
505
506 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
507 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
508 * real.c (get_max_float): Add norm_max argument.
509 * real.h (get_max_float): Update prototype.
510 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
511 get_max_float.
512
513 2019-11-13 Martin Liska <mliska@suse.cz>
514
515 * dbgcnt.c (test_sorted_dbg_counters): New.
516 (dbgcnt_c_tests): Likewise.
517 * selftest-run-tests.c (selftest::run_tests): Likewise.
518 * selftest.h (dbgcnt_c_tests): Likewise.
519
520 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
521 Martin Jambor <mjambor@suse.cz>
522
523 PR ipa/92454
524 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
525 (identify_dead_nodes): Likewise.
526
527 2019-11-13 Martin Liska <mliska@suse.cz>
528
529 * ipa-icf.c (sem_function::equals_private): Do not overuse
530 push/pop_cfun functions.
531
532 2019-11-13 Martin Liska <mliska@suse.cz>
533
534 * common.opt: Document change of -fdbg-cnt option.
535 * dbgcnt.c (DEBUG_COUNTER): Remove.
536 (dbg_cnt_is_enabled): Remove.
537 (dbg_cnt): Work with new intervals.
538 (dbg_cnt_set_limit_by_index): Set to new
539 list of intervals.
540 (dbg_cnt_set_limit_by_name): Likewise.
541 (dbg_cnt_process_single_pair): Process new format.
542 (dbg_cnt_process_opt): Likewise.
543 (dbg_cnt_list_all_counters): Likewise.
544 * doc/invoke.texi: Document change of -fdbg-cnt option.
545 (cmp_tuples): New.
546
547 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
548
549 * ipa-inline.c (ipa_inline): Check that function is defined before
550 flattening.
551
552 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
553 Julian Brown <julian@codesourcery.com>
554
555 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
556 flag_worker_partitioning is not set.
557 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
558 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
559
560 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
561
562 * config/gcn/gcn-run.c (heap_region): New global variable.
563 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
564 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
565 (get_kernarg_region): Move contents to ....
566 (get_memory_region): .... here.
567 (get_heap_region): New function.
568 (init_device): Initialize the heap_region.
569 (device_malloc): Add region parameter.
570 (struct kernargs): Move heap ....
571 (heap): ... to global scope.
572 (main): Allocate heap separate to kernargs.
573
574 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
575
576 * ipa-prop.c (ipa_print_node_jump_functions,
577 ipa_print_node_params): Print info about missing summaries.
578
579 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
580
581 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
582 the cost of generating loop masks.
583
584 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
585
586 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
587 New function.
588 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
589 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
590 (vect_transform_loop): Likewise.
591 (vect_analyze_loop_costing): Don't take the cost of versioning
592 into account for the static profitability threshold if it turns
593 out that no versioning is needed.
594
595 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
596
597 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
598 and target_option_default_node to get -fprofile-generate ctors working
599 right with LTO.
600
601 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
602
603 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
604 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
605 (vectorizable_assignment): Don't add a cost for nop conversions.
606 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
607 Likewise.
608 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
609
610 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
611
612 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
613 number of ncopies as an additional argument.
614 (vectorizable_conversion): Update call accordingly. Use "modifier"
615 to check whether a conversion is between vectors with the same
616 numbers of units.
617
618 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
619
620 * config/aarch64/aarch64-sve-builtins-functions.h
621 (unary_count::expand): Use aarch64_sve_int_mode instead of
622 mode_for_int_vector.
623
624 2019-11-13 Martin Liska <mliska@suse.cz>
625
626 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
627
628 2019-11-13 Martin Liska <mliska@suse.cz>
629
630 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
631 Remove call to finalize_options_struct.
632
633 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
634
635 PR target/92055
636 * config/avr/t-avr (avr-mcus): Do not depend on
637 $(srcdir)/config/avr/t-multilib.
638
639 2019-11-13 Richard Biener <rguenther@suse.de>
640
641 PR tree-optimization/92473
642 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
643 direct optab reduction in the correct type.
644
645 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
646
647 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
648 hexadecimal literal.
649
650 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
651
652 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
653 UNORDERED if !HONOR_NANS (DFmode).
654 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
655 if !HONOR_NANS (<MODE>mode).
656
657 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
658
659 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
660 (ipcp_verify_propagated_values): Likewise.
661 (propagate_constants_across_call): Likewise.
662 (propagate_constants_topo): Likewise.
663 (ipcp_propagate_stage): Likewise.
664
665 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
666
667 PR ipa/92471
668 * ipa-profile.c (check_argument_count): Break out from ...;
669 watch for missing summaries.
670 (ipa_profile): Here.
671
672 2019-11-12 Martin Sebor <msebor@redhat.com>
673
674 PR tree-optimization/92412
675 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
676 extern variables.
677
678 2019-11-12 Martin Sebor <msebor@redhat.com>
679
680 PR middle-end/83688
681 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
682 (directive::argno): New member.
683 (format_result::aliases, format_result::alias_count): New data members.
684 (format_result::append_alias): New member function.
685 (fmtresult::dst_offset): New data member.
686 (pass_sprintf_length::call_info::dst_origin): New data member.
687 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
688 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
689 (get_origin_and_offset): Same.
690 (format_string): Call it.
691 (format_directive): Call append_alias and set directive argument
692 number.
693 (maybe_warn_overlap): New function.
694 (pass_sprintf_length::compute_format_length): Call it.
695 (pass_sprintf_length::handle_gimple_call): Initialize new members.
696 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
697
698 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
699
700 PR rtl-optimization/92430
701 * cfgcleanup.c (pass_jump_after_combine::execute): Free
702 dominance info at the beginning.
703
704 2019-11-12 Richard Biener <rguenther@suse.de>
705
706 PR tree-optimization/92460
707 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
708 expression before gimplifying.
709
710 2019-11-12 Richard Biener <rguenther@suse.de>
711
712 PR tree-optimization/92461
713 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
714 stmt after propagation.
715
716 2019-11-12 Martin Liska <mliska@suse.cz>
717
718 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
719 Use SET_OPTION_IF_UNSET.
720 (ix86_option_override_internal): Likewise.
721 * opts.c (default_options_optimization): Likewise.
722 (finish_options): Likewise.
723 (enable_fdo_optimizations): Likewise.
724 (common_handle_option): Likewise.
725
726 2019-11-12 Martin Liska <mliska@suse.cz>
727
728 * common/common-target.def: Remove option_validate_param and
729 option_default_params.
730 * common/common-targhooks.c (default_option_validate_param):
731 Remove.
732 * common/common-targhooks.h (default_option_validate_param):
733 Remove.
734 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
735 Remove usage of this.
736 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
737 (aarch64_option_validate_param): Likewise.
738 (aarch64_option_default_params): Likewise
739 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
740 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
741 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
742 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
743 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
744 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
745 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
746 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
747 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
748 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
749 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
750 guard_size here.
751 * doc/tm.texi: Remove option_default_params and option_validate_param.
752 * doc/tm.texi.in: Likewise.
753
754 2019-11-12 Martin Liska <mliska@suse.cz>
755
756 * common/common-target.def:
757 Do not mention set_default_param_value
758 and set_param_value.
759 * doc/tm.texi: Likewise.
760
761 2019-11-12 Martin Liska <mliska@suse.cz>
762
763 * common.opt: Remove param_values.
764 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
765 Remove finalize_options_struct.
766 * gcc.c (driver::decode_argv): Do not call global_init_params
767 and finish_params.
768 (driver::finalize): Do not call params_c_finalize
769 and finalize_options_struct.
770 * opt-suggestions.c (option_proposer::get_completions): Remove
771 special casing of params.
772 (option_proposer::find_param_completions): Remove.
773 (test_completion_partial_match): Update expected output.
774 * opt-suggestions.h: Remove find_param_completions.
775 * opts-common.c (add_misspelling_candidates): Add
776 --param with a space.
777 * opts.c (handle_param): Remove.
778 (init_options_struct):. Remove init_options_struct and
779 similar calls.
780 (finalize_options_struct): Remove.
781 (common_handle_option): Use SET_OPTION_IF_UNSET.
782 * opts.h (finalize_options_struct): Remove.
783 * toplev.c (general_init): Do not call global_init_params.
784 (toplev::finalize): Do not call params_c_finalize and
785 finalize_options_struct.
786
787 2019-11-12 Martin Liska <mliska@suse.cz>
788
789 * Makefile.in: Remove PARAMS_H and params.list
790 and params.options.
791 * params-enum.h: Remove.
792 * params-list.h: Remove.
793 * params-options.h: Remove.
794 * params.c: Remove.
795 * params.def: Remove.
796 * params.h: Remove.
797 * asan.c: Do not include params.h.
798 * auto-profile.c: Likewise.
799 * bb-reorder.c: Likewise.
800 * builtins.c: Likewise.
801 * cfgcleanup.c: Likewise.
802 * cfgexpand.c: Likewise.
803 * cfgloopanal.c: Likewise.
804 * cgraph.c: Likewise.
805 * combine.c: Likewise.
806 * common/config/aarch64/aarch64-common.c: Likewise.
807 * common/config/gcn/gcn-common.c: Likewise.
808 * common/config/ia64/ia64-common.c: Likewise.
809 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
810 * common/config/rs6000/rs6000-common.c: Likewise.
811 * common/config/sh/sh-common.c: Likewise.
812 * config/aarch64/aarch64.c: Likewise.
813 * config/alpha/alpha.c: Likewise.
814 * config/arm/arm.c: Likewise.
815 * config/avr/avr.c: Likewise.
816 * config/csky/csky.c: Likewise.
817 * config/i386/i386-builtins.c: Likewise.
818 * config/i386/i386-expand.c: Likewise.
819 * config/i386/i386-features.c: Likewise.
820 * config/i386/i386-options.c: Likewise.
821 * config/i386/i386.c: Likewise.
822 * config/ia64/ia64.c: Likewise.
823 * config/rs6000/rs6000-logue.c: Likewise.
824 * config/rs6000/rs6000.c: Likewise.
825 * config/s390/s390.c: Likewise.
826 * config/sparc/sparc.c: Likewise.
827 * config/visium/visium.c: Likewise.
828 * coverage.c: Likewise.
829 * cprop.c: Likewise.
830 * cse.c: Likewise.
831 * cselib.c: Likewise.
832 * dse.c: Likewise.
833 * emit-rtl.c: Likewise.
834 * explow.c: Likewise.
835 * final.c: Likewise.
836 * fold-const.c: Likewise.
837 * gcc.c: Likewise.
838 * gcse.c: Likewise.
839 * ggc-common.c: Likewise.
840 * ggc-page.c: Likewise.
841 * gimple-loop-interchange.cc: Likewise.
842 * gimple-loop-jam.c: Likewise.
843 * gimple-loop-versioning.cc: Likewise.
844 * gimple-ssa-split-paths.c: Likewise.
845 * gimple-ssa-sprintf.c: Likewise.
846 * gimple-ssa-store-merging.c: Likewise.
847 * gimple-ssa-strength-reduction.c: Likewise.
848 * gimple-ssa-warn-alloca.c: Likewise.
849 * gimple-ssa-warn-restrict.c: Likewise.
850 * graphite-isl-ast-to-gimple.c: Likewise.
851 * graphite-optimize-isl.c: Likewise.
852 * graphite-scop-detection.c: Likewise.
853 * graphite-sese-to-poly.c: Likewise.
854 * graphite.c: Likewise.
855 * haifa-sched.c: Likewise.
856 * hsa-gen.c: Likewise.
857 * ifcvt.c: Likewise.
858 * ipa-cp.c: Likewise.
859 * ipa-fnsummary.c: Likewise.
860 * ipa-inline-analysis.c: Likewise.
861 * ipa-inline.c: Likewise.
862 * ipa-polymorphic-call.c: Likewise.
863 * ipa-profile.c: Likewise.
864 * ipa-prop.c: Likewise.
865 * ipa-split.c: Likewise.
866 * ipa-sra.c: Likewise.
867 * ira-build.c: Likewise.
868 * ira-conflicts.c: Likewise.
869 * loop-doloop.c: Likewise.
870 * loop-invariant.c: Likewise.
871 * loop-unroll.c: Likewise.
872 * lra-assigns.c: Likewise.
873 * lra-constraints.c: Likewise.
874 * modulo-sched.c: Likewise.
875 * opt-suggestions.c: Likewise.
876 * opts.c: Likewise.
877 * postreload-gcse.c: Likewise.
878 * predict.c: Likewise.
879 * reload.c: Likewise.
880 * reorg.c: Likewise.
881 * resource.c: Likewise.
882 * sanopt.c: Likewise.
883 * sched-deps.c: Likewise.
884 * sched-ebb.c: Likewise.
885 * sched-rgn.c: Likewise.
886 * sel-sched-ir.c: Likewise.
887 * sel-sched.c: Likewise.
888 * shrink-wrap.c: Likewise.
889 * stmt.c: Likewise.
890 * targhooks.c: Likewise.
891 * toplev.c: Likewise.
892 * tracer.c: Likewise.
893 * trans-mem.c: Likewise.
894 * tree-chrec.c: Likewise.
895 * tree-data-ref.c: Likewise.
896 * tree-if-conv.c: Likewise.
897 * tree-inline.c: Likewise.
898 * tree-loop-distribution.c: Likewise.
899 * tree-parloops.c: Likewise.
900 * tree-predcom.c: Likewise.
901 * tree-profile.c: Likewise.
902 * tree-scalar-evolution.c: Likewise.
903 * tree-sra.c: Likewise.
904 * tree-ssa-ccp.c: Likewise.
905 * tree-ssa-dom.c: Likewise.
906 * tree-ssa-dse.c: Likewise.
907 * tree-ssa-ifcombine.c: Likewise.
908 * tree-ssa-loop-ch.c: Likewise.
909 * tree-ssa-loop-im.c: Likewise.
910 * tree-ssa-loop-ivcanon.c: Likewise.
911 * tree-ssa-loop-ivopts.c: Likewise.
912 * tree-ssa-loop-manip.c: Likewise.
913 * tree-ssa-loop-niter.c: Likewise.
914 * tree-ssa-loop-prefetch.c: Likewise.
915 * tree-ssa-loop-unswitch.c: Likewise.
916 * tree-ssa-math-opts.c: Likewise.
917 * tree-ssa-phiopt.c: Likewise.
918 * tree-ssa-pre.c: Likewise.
919 * tree-ssa-reassoc.c: Likewise.
920 * tree-ssa-sccvn.c: Likewise.
921 * tree-ssa-scopedtables.c: Likewise.
922 * tree-ssa-sink.c: Likewise.
923 * tree-ssa-strlen.c: Likewise.
924 * tree-ssa-structalias.c: Likewise.
925 * tree-ssa-tail-merge.c: Likewise.
926 * tree-ssa-threadbackward.c: Likewise.
927 * tree-ssa-threadedge.c: Likewise.
928 * tree-ssa-uninit.c: Likewise.
929 * tree-switch-conversion.c: Likewise.
930 * tree-vect-data-refs.c: Likewise.
931 * tree-vect-loop.c: Likewise.
932 * tree-vect-slp.c: Likewise.
933 * tree-vrp.c: Likewise.
934 * tree.c: Likewise.
935 * value-prof.c: Likewise.
936 * var-tracking.c: Likewise.
937
938 2019-11-12 Martin Liska <mliska@suse.cz>
939
940 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
941 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
942 macro.
943 (asan_sanitize_allocas_p): Likewise.
944 (asan_emit_stack_protection): Likewise.
945 (asan_protect_global): Likewise.
946 (instrument_derefs): Likewise.
947 (instrument_builtin_call): Likewise.
948 (asan_expand_mark_ifn): Likewise.
949 * auto-profile.c (auto_profile): Likewise.
950 * bb-reorder.c (copy_bb_p): Likewise.
951 (duplicate_computed_gotos): Likewise.
952 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
953 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
954 (try_crossjump_bb): Likewise.
955 * cfgexpand.c (defer_stack_allocation): Likewise.
956 (stack_protect_classify_type): Likewise.
957 (pass_expand::execute): Likewise.
958 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
959 (estimate_reg_pressure_cost): Likewise.
960 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
961 * combine.c (combine_instructions): Likewise.
962 (record_value_for_reg): Likewise.
963 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
964 (aarch64_option_default_params): Likewise.
965 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
966 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
967 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
968 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
969 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
970 (aarch64_allocate_and_probe_stack_space): Likewise.
971 (aarch64_expand_epilogue): Likewise.
972 (aarch64_override_options_internal): Likewise.
973 * config/alpha/alpha.c (alpha_option_override): Likewise.
974 * config/arm/arm.c (arm_option_override): Likewise.
975 (arm_valid_target_attribute_p): Likewise.
976 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
977 * config/i386/i386.c (get_probe_interval): Likewise.
978 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
979 (ix86_max_noce_ifcvt_seq_cost): Likewise.
980 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
981 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
982 (get_stack_clash_protection_guard_size): Likewise.
983 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
984 * config/s390/s390.c (allocate_stack_space): Likewise.
985 (s390_emit_prologue): Likewise.
986 (s390_option_override_internal): Likewise.
987 * config/sparc/sparc.c (sparc_option_override): Likewise.
988 * config/visium/visium.c (visium_option_override): Likewise.
989 * coverage.c (get_coverage_counts): Likewise.
990 (coverage_compute_profile_id): Likewise.
991 (coverage_begin_function): Likewise.
992 (coverage_end_function): Likewise.
993 * cse.c (cse_find_path): Likewise.
994 (cse_extended_basic_block): Likewise.
995 (cse_main): Likewise.
996 * cselib.c (cselib_invalidate_mem): Likewise.
997 * dse.c (dse_step1): Likewise.
998 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
999 (get_max_insn_count): Likewise.
1000 (make_debug_insn_raw): Likewise.
1001 (init_emit): Likewise.
1002 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1003 * final.c (compute_alignments): Likewise.
1004 * fold-const.c (fold_range_test): Likewise.
1005 (fold_truth_andor): Likewise.
1006 (tree_single_nonnegative_warnv_p): Likewise.
1007 (integer_valued_real_single_p): Likewise.
1008 * gcse.c (want_to_gcse_p): Likewise.
1009 (prune_insertions_deletions): Likewise.
1010 (hoist_code): Likewise.
1011 (gcse_or_cprop_is_too_expensive): Likewise.
1012 * ggc-common.c: Likewise.
1013 * ggc-page.c (ggc_collect): Likewise.
1014 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1015 (MAX_DATAREFS): Likewise.
1016 (OUTER_STRIDE_RATIO): Likewise.
1017 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1018 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1019 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1020 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1021 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1022 (imm_store_chain_info::output_merged_store): Likewise.
1023 (pass_store_merging::process_store): Likewise.
1024 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1025 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1026 (scop_to_isl_ast): Likewise.
1027 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1028 (optimize_isl): Likewise.
1029 * graphite-scop-detection.c (build_scops): Likewise.
1030 * haifa-sched.c (set_modulo_params): Likewise.
1031 (rank_for_schedule): Likewise.
1032 (model_add_to_worklist): Likewise.
1033 (model_promote_insn): Likewise.
1034 (model_choose_insn): Likewise.
1035 (queue_to_ready): Likewise.
1036 (autopref_multipass_dfa_lookahead_guard): Likewise.
1037 (schedule_block): Likewise.
1038 (sched_init): Likewise.
1039 * hsa-gen.c (init_prologue): Likewise.
1040 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1041 (cond_move_process_if_block): Likewise.
1042 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1043 (merge_agg_lats_step): Likewise.
1044 (devirtualization_time_bonus): Likewise.
1045 (hint_time_bonus): Likewise.
1046 (incorporate_penalties): Likewise.
1047 (good_cloning_opportunity_p): Likewise.
1048 (ipcp_propagate_stage): Likewise.
1049 * ipa-fnsummary.c (decompose_param_expr): Likewise.
1050 (set_switch_stmt_execution_predicate): Likewise.
1051 (analyze_function_body): Likewise.
1052 (compute_fn_summary): Likewise.
1053 * ipa-inline-analysis.c (estimate_growth): Likewise.
1054 * ipa-inline.c (caller_growth_limits): Likewise.
1055 (inline_insns_single): Likewise.
1056 (inline_insns_auto): Likewise.
1057 (can_inline_edge_by_limits_p): Likewise.
1058 (want_early_inline_function_p): Likewise.
1059 (big_speedup_p): Likewise.
1060 (want_inline_small_function_p): Likewise.
1061 (want_inline_self_recursive_call_p): Likewise.
1062 (edge_badness): Likewise.
1063 (recursive_inlining): Likewise.
1064 (compute_max_insns): Likewise.
1065 (early_inliner): Likewise.
1066 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
1067 * ipa-profile.c (ipa_profile): Likewise.
1068 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1069 (ipa_analyze_node): Likewise.
1070 (ipcp_transform_function): Likewise.
1071 * ipa-split.c (consider_split): Likewise.
1072 * ipa-sra.c (allocate_access): Likewise.
1073 (process_scan_results): Likewise.
1074 (ipa_sra_summarize_function): Likewise.
1075 (pull_accesses_from_callee): Likewise.
1076 * ira-build.c (loop_compare_func): Likewise.
1077 (mark_loops_for_removal): Likewise.
1078 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1079 * loop-doloop.c (doloop_optimize): Likewise.
1080 * loop-invariant.c (gain_for_invariant): Likewise.
1081 (move_loop_invariants): Likewise.
1082 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
1083 (decide_unroll_runtime_iterations): Likewise.
1084 (decide_unroll_stupid): Likewise.
1085 (expand_var_during_unrolling): Likewise.
1086 * lra-assigns.c (spill_for): Likewise.
1087 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
1088 * modulo-sched.c (sms_schedule): Likewise.
1089 (DFA_HISTORY): Likewise.
1090 * opts.c (default_options_optimization): Likewise.
1091 (finish_options): Likewise.
1092 (common_handle_option): Likewise.
1093 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1094 (if): Likewise.
1095 * predict.c (get_hot_bb_threshold): Likewise.
1096 (maybe_hot_count_p): Likewise.
1097 (probably_never_executed): Likewise.
1098 (predictable_edge_p): Likewise.
1099 (predict_loops): Likewise.
1100 (expr_expected_value_1): Likewise.
1101 (tree_predict_by_opcode): Likewise.
1102 (handle_missing_profiles): Likewise.
1103 * reload.c (find_equiv_reg): Likewise.
1104 * reorg.c (redundant_insn): Likewise.
1105 * resource.c (mark_target_live_regs): Likewise.
1106 (incr_ticks_for_insn): Likewise.
1107 * sanopt.c (pass_sanopt::execute): Likewise.
1108 * sched-deps.c (sched_analyze_1): Likewise.
1109 (sched_analyze_2): Likewise.
1110 (sched_analyze_insn): Likewise.
1111 (deps_analyze_insn): Likewise.
1112 * sched-ebb.c (schedule_ebbs): Likewise.
1113 * sched-rgn.c (find_single_block_region): Likewise.
1114 (too_large): Likewise.
1115 (haifa_find_rgns): Likewise.
1116 (extend_rgns): Likewise.
1117 (new_ready): Likewise.
1118 (schedule_region): Likewise.
1119 (sched_rgn_init): Likewise.
1120 * sel-sched-ir.c (make_region_from_loop): Likewise.
1121 * sel-sched-ir.h (MAX_WS): Likewise.
1122 * sel-sched.c (process_pipelined_exprs): Likewise.
1123 (sel_setup_region_sched_flags): Likewise.
1124 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1125 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1126 * toplev.c (print_version): Likewise.
1127 (process_options): Likewise.
1128 * tracer.c (tail_duplicate): Likewise.
1129 * trans-mem.c (tm_log_add): Likewise.
1130 * tree-chrec.c (chrec_fold_plus_1): Likewise.
1131 * tree-data-ref.c (split_constant_offset): Likewise.
1132 (compute_all_dependences): Likewise.
1133 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
1134 * tree-inline.c (remap_gimple_stmt): Likewise.
1135 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
1136 * tree-parloops.c (MIN_PER_THREAD): Likewise.
1137 (create_parallel_loop): Likewise.
1138 * tree-predcom.c (determine_unroll_factor): Likewise.
1139 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
1140 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1141 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1142 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
1143 (dse_optimize_redundant_stores): Likewise.
1144 (dse_classify_store): Likewise.
1145 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1146 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1147 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
1148 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1149 (try_peel_loop): Likewise.
1150 (tree_unroll_loops_completely): Likewise.
1151 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1152 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
1153 (MAX_CONSIDERED_GROUPS): Likewise.
1154 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
1155 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
1156 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
1157 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
1158 (L1_CACHE_SIZE_BYTES): Likewise.
1159 (L2_CACHE_SIZE_BYTES): Likewise.
1160 (should_issue_prefetch_p): Likewise.
1161 (schedule_prefetches): Likewise.
1162 (determine_unroll_factor): Likewise.
1163 (volume_of_references): Likewise.
1164 (add_subscript_strides): Likewise.
1165 (self_reuse_distance): Likewise.
1166 (mem_ref_count_reasonable_p): Likewise.
1167 (insn_to_prefetch_ratio_too_small_p): Likewise.
1168 (loop_prefetch_arrays): Likewise.
1169 (tree_ssa_prefetch_arrays): Likewise.
1170 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1171 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1172 (convert_mult_to_fma): Likewise.
1173 (math_opts_dom_walker::after_dom_children): Likewise.
1174 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1175 (hoist_adjacent_loads): Likewise.
1176 (gate_hoist_loads): Likewise.
1177 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1178 (compute_partial_antic_aux): Likewise.
1179 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
1180 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
1181 (vn_reference_lookup): Likewise.
1182 (do_rpo_vn): Likewise.
1183 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
1184 * tree-ssa-sink.c (select_best_block): Likewise.
1185 * tree-ssa-strlen.c (new_stridx): Likewise.
1186 (new_addr_stridx): Likewise.
1187 (get_range_strlen_dynamic): Likewise.
1188 (class ssa_name_limit_t): Likewise.
1189 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1190 (create_variable_info_for_1): Likewise.
1191 (init_alias_vars): Likewise.
1192 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1193 (tail_merge_optimize): Likewise.
1194 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1195 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1196 (thread_jumps::find_jump_threads_backwards): Likewise.
1197 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1198 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1199 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1200 (jump_table_cluster::can_be_handled): Likewise.
1201 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1202 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1203 (param_switch_conversion_branch_ratio): Likewise.
1204 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1205 (vect_enhance_data_refs_alignment): Likewise.
1206 (vect_prune_runtime_alias_test_list): Likewise.
1207 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1208 (vect_get_datarefs_in_loop): Likewise.
1209 (vect_analyze_loop): Likewise.
1210 * tree-vect-slp.c (vect_slp_bb): Likewise.
1211 * tree-vectorizer.h: Likewise.
1212 * tree-vrp.c (find_switch_asserts): Likewise.
1213 (vrp_prop::check_mem_ref): Likewise.
1214 * tree.c (wide_int_to_tree_1): Likewise.
1215 (cache_integer_cst): Likewise.
1216 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1217 (reverse_op): Likewise.
1218 (vt_find_locations): Likewise.
1219
1220 2019-11-12 Martin Liska <mliska@suse.cz>
1221
1222 * Makefile.in: Include params.opt.
1223 * flag-types.h (enum parloops_schedule_type): Add
1224 parloops_schedule_type used in params.opt.
1225 * params.opt: New file.
1226
1227 2019-11-12 Martin Liska <mliska@suse.cz>
1228
1229 * common.opt: Remove --param and --param= options.
1230 * opt-functions.awk: Mark CL_PARAMS for options
1231 that have Param keyword.
1232 * opts-common.c (decode_cmdline_options_to_array):
1233 Replace --param key=value with --param=key=value.
1234 * opts.c (print_filtered_help): Remove special
1235 printing of params.
1236 (print_specific_help): Update title for params.
1237 (common_handle_option): Do not handle OPT__param.
1238 opts.h (SET_OPTION_IF_UNSET): New macro.
1239 * doc/options.texi: Document Param keyword.
1240
1241 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1242 Frederik Harwath <frederik@codesourcery.com>
1243 Thomas Schwinge <thomas@codesourcery.com>
1244
1245 gcc/
1246 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1247 enumeration constant.
1248 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1249 (is_gimple_omp_offloaded): Likewise.
1250 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1251 constant. Adjust the value of ORT_NONE accordingly.
1252 (is_gimple_stmt): Handle OACC_SERIAL.
1253 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1254 (gomp_needs_data_present): Likewise.
1255 (gimplify_adjust_omp_clauses): Likewise.
1256 (gimplify_omp_workshare): Handle OACC_SERIAL.
1257 (gimplify_expr): Likewise.
1258 * omp-expand.c (expand_omp_target):
1259 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1260 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1261 * omp-low.c (is_oacc_parallel): Rename function to...
1262 (is_oacc_parallel_or_serial): ... this.
1263 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1264 (scan_sharing_clauses): Adjust accordingly.
1265 (scan_omp_for): Likewise.
1266 (lower_oacc_head_mark): Likewise.
1267 (convert_from_firstprivate_int): Likewise.
1268 (lower_omp_target): Likewise.
1269 (check_omp_nesting_restrictions): Handle
1270 GF_OMP_TARGET_KIND_OACC_SERIAL.
1271 (lower_oacc_reductions): Likewise.
1272 (lower_omp_target): Likewise.
1273 * tree.def (OACC_SERIAL): New tree code.
1274 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1275
1276 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1277
1278 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1279
1280 PR target/92449
1281 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1282 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1283
1284 PR tree-optimization/92452
1285 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1286 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1287 MINUS_EXPR on it.
1288
1289 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1290
1291 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1292 safelen with 0.
1293
1294 2019-11-12 Alan Modra <amodra@gmail.com>
1295
1296 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1297 element of unspec vec.
1298 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1299 PC-relative TLS.
1300 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1301 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1302 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1303 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1304
1305 2019-11-12 Alan Modra <amodra@gmail.com>
1306
1307 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1308 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1309 (IS_NOMARK_TLSGETADDR): Likewise.
1310 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1311 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1312 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1313 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1314 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1315 (rs6000_indirect_call_template_1): Likewise.
1316 (rs6000_pltseq_template): Likewise.
1317 (rs6000_opt_vars): Remove "tls-markers" entry.
1318 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1319 with TARGET_ELF.
1320 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1321 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1322 (pltseq_plt_pcrel<mode>): Likewise.
1323 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1324 (call_value_local64): Likewise.
1325 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1326 output and length attribute sub-expression.
1327 (call_value_nonlocal_sysv<mode>),
1328 (call_value_nonlocal_sysv_secure<mode>),
1329 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1330 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1331 (call_value_indirect_pcrel<mode>): Likewise.
1332 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1333 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1334 * configure: Regenerate.
1335 * config.in: Regenerate.
1336
1337 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1338
1339 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1340 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1341 address being a prefixed load/store.
1342 (stack_protect_testdi): Deal with either address being a prefixed
1343 load.
1344
1345 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR bootstrap/92433
1348 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1349 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1350 std::swap.
1351
1352 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1353
1354 PR tree-optimization/92420
1355 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1356 up file.
1357 (get_group_load_store_type): Use it for reversed SLP accesses.
1358
1359 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1360
1361 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1362 summary.
1363 (ipcp_transformation_t::duplicate): Break out from ...
1364 (ipa_node_params_t::duplicate): ... here; add copying of agg
1365 replacements.
1366 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1367 (ipcp_transformation_t): Add duplicate.
1368
1369 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1370
1371 PR fortran/91828
1372 * doc/install.texi: Document that the minimum MPFR version is
1373 3.1.0.
1374
1375 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1376
1377 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1378 use new register constraint letters.
1379
1380 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1381
1382 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1383 as well, if interesting recover the symbol and re-legitimize the
1384 pic address.
1385
1386 2019-11-11 Martin Liska <mliska@suse.cz>
1387
1388 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1389 alphabetically.
1390
1391 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1392
1393 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1394 account when checking if there are enough iterations to vectorize
1395 epilogue.
1396
1397 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1398 Kwok Cheung Yeung <kcy@codesourcery.com>
1399
1400 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1401 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1402 (LANG_HOOKS_DECLS): Rename also here.
1403 * langhooks.h (lang_hooks_for_decls): Rename
1404 omp_is_optional_argument to omp_check_optional_argument; take
1405 additional bool argument.
1406 * omp-general.h (omp_check_optional_argument): Likewise.
1407 * omp-general.h (omp_check_optional_argument): Likewise.
1408 * omp-low.c (lower_omp_target): Update calls; handle absent
1409 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1410
1411 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1412
1413 PR target/87833
1414 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1415 -fPIC and -shared the last to create offload image.
1416
1417 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1418
1419 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1420 of 'offset'.
1421
1422 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1423 (config.status): Use/depend on it.
1424 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1425 * configure: Regenerate.
1426
1427 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1428
1429 PR tree-optimization/88760
1430 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1431 * gcc/common/config/rs6000/rs6000-common.c
1432 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1433 Turn on -funroll-loops and -munroll-only-small-loops.
1434 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1435 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1436 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1437 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1438 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1439 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1440
1441 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1442
1443 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1444 Make scalar_load, vector_load, unaligned_load and
1445 vector_gather_load cost more to conform hardware latency and
1446 insn cost settings.
1447
1448 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1449
1450 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1451 (MACHO_SYMBOL_LINKER_VIS_P): New.
1452
1453 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1454
1455 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1456 registers in eliminable_regset.
1457
1458 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1459
1460 * ipa-inline.c (compute_uninlined_call_time,
1461 compute_inlined_call_time): Take edge frequency as
1462 parameter rather than computing it by itself.
1463 (big_speedup_p, edge_badness): Manually CSE sreal
1464 frequency calculations.
1465
1466 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1467
1468 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1469 case where profiles are same.
1470
1471 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1472
1473 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1474
1475 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1476
1477 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1478 args summaries of inlined edge unless it holds info about
1479 described reference.
1480
1481 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1482
1483 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1484 (*movcc_internal1): Rename to...
1485 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1486
1487 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1488
1489 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1490 (cgraph_node::create_virtual_clone): Copy it.
1491 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1492 summaries.
1493 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1494 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1495 is disabled.
1496 (propagate_constants_across_call): If callee is not analyzed, give up.
1497 (propagate_constants_topo): Lower to bottom latties of all callees of
1498 functions with ipa-cp disabled.
1499 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1500 (cgraph_edge_brings_value_p): Check for availability first.
1501 (create_specialized_node): Set ipcp_clone.
1502 (ipcp_store_bits_results): Check that info is present.
1503 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1504 thunks.
1505 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1506 conservative when callee summary is missing.
1507 (remap_edge_summaries): Lookup call summary only when needed.
1508 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1509 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1510 Use get_create.
1511 (ipa_analyze_node): Use get_create.
1512 (propagate_controlled_uses): Do not propagate when function is not
1513 analyzed.
1514 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1515 (ipa_read_node_info): Use get_create.
1516 * ipa-prop.h (IPA_NODE_REF): Use get.
1517 (IPA_NODE_REF_GET_CREATE): New.
1518
1519 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1520
1521 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1522 on function symbol.
1523
1524 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1525
1526 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1527 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1528 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1529 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1530
1531 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1532
1533 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1534 capping the growth cumulated.
1535 (offline_size): Break out from ...
1536 (estimate_growth): ... here.
1537 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1538 parameters.
1539 (growth_likely_positive): Turn to ...
1540 (growth_positive_p): Re-implement.
1541 * ipa-inline.h (growth_likely_positive): Remove.
1542 (growth_positive_p): Declare.
1543 * ipa-inline.c (want_inline_small_function_p): Use
1544 growth_positive_p.
1545 (want_inline_function_to_all_callers_p): Likewise.
1546
1547 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1548
1549 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1550 calculation of min_size.
1551 (ipa_update_overall_fn_summary): Likewise.
1552
1553 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1554
1555 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1556 estimate_edge_devirt_benefit when not computing hints;
1557 do not compute time when not asked for.
1558 (estimate_calls_size_and_time): Pass NULL hints and time when
1559 these are not computed; do not evaluate hint predicates when these are
1560 not computed.
1561 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1562 frequency.
1563
1564 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1565
1566 PR tree-optimization/92401
1567 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1568 if res_op->code is an expression with code length 1.
1569 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1570 if res_op->code is an expression with code length 2.
1571 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1572 if res_op->code is an expression with code length 3.
1573
1574 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1575
1576 * config/darwin.c (machopic_mcount_stub_name): Validate the
1577 symbol stub name when it is created.
1578 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1579 stub validation.
1580
1581 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1582
1583 * symtab.c: Fix comment typos.
1584 * cgraphunit.c: Likewise.
1585 * cgraph.h: Likewise.
1586 * cgraphclones.c: Likewise.
1587 * cgraph.c: Likewise.
1588 * varpool.c: Likewise.
1589 * tree-ssa-strlen.c: Likewise.
1590 * ipa-sra.c: Likewise.
1591 (scan_expr_access, check_all_callers_for_issues): Fix typo
1592 in a dump message.
1593
1594 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1595
1596 * config/darwin-protos.h: Add include quard.
1597
1598 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1599
1600 * range-op.h (range_operator::fold_range): Return result in a
1601 reference parameter instead of by value.
1602 (range_operator::wi_fold): Same.
1603 * range-op.cc (range_operator::wi_fold): Return result in a reference
1604 parameter instead of by value.
1605 (range_operator::fold_range): Same.
1606 (value_range_from_overflowed_bounds): Same.
1607 (value_range_with_overflow): Same
1608 (create_possibly_reversed_range): Same.
1609 (operator_equal::fold_range): Same.
1610 (operator_not_equal::fold_range): Same.
1611 (operator_lt::fold_range): Same.
1612 (operator_le::fold_range): Same.
1613 (operator_gt::fold_range): Same.
1614 (operator_ge::fold_range): Same.
1615 (operator_plus::wi_fold): Same.
1616 (operator_plus::op1_range): Change call to fold_range.
1617 (operator_plus::op2_range): Change call to fold_range.
1618 (operator_minus::wi_fold): Return result via reference parameter.
1619 (operator_minus::op1_range): Change call to fold_range.
1620 (operator_minus::op2_range): Change call to fold_range.
1621 (operator_min::wi_fold): Return result via reference parameter.
1622 (operator_max::wi_fold): Same.
1623 (cross_product_operator::wi_cross_product): Same.
1624 (operator_mult::wi_fold): Same.
1625 (operator_div::wi_fold): Same.
1626 (operator_div op_floor_div): Fix whitespace.
1627 (operator_exact_divide::op1_range): Change call to fold_range.
1628 (operator_lshift::fold_range): Return result via reference parameter.
1629 (operator_lshift::wi_fold): Same.
1630 (operator_rshift::fold_range): Same.
1631 (operator_rshift::wi_fold): Same.
1632 (operator_cast::fold_range): Same.
1633 (operator_cast::op1_range): Change calls to fold_range.
1634 (operator_logical_and::fold_range): Return result via reference.
1635 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1636 (operator_bitwise_and::wi_fold): Return result via reference.
1637 (operator_logical_or::fold_range): Same.
1638 (operator_bitwise_or::wi_fold): Same.
1639 (operator_bitwise_xor::wi_fold): Same.
1640 (operator_trunc_mod::wi_fold): Same.
1641 (operator_logical_not::fold_range): Same.
1642 (operator_bitwise_not::fold_range): Same.
1643 (operator_bitwise_not::op1_range): Change call to fold_range.
1644 (operator_cst::fold_range): Return result via reference.
1645 (operator_identity::fold_range): Same.
1646 (operator_abs::wi_fold): Same.
1647 (operator_absu::wi_fold): Same.
1648 (operator_negate::fold_range): Same.
1649 (operator_negate::op1_range): Change call to fold_range.
1650 (operator_addr_expr::fold_range): Return result via reference.
1651 (operator_addr_expr::op1_range): Change call to fold_range.
1652 (operator_pointer_plus::wi_fold): Return result via reference.
1653 (operator_pointer_min_max::wi_fold): Same.
1654 (operator_pointer_and::wi_fold): Same.
1655 (operator_pointer_or::wi_fold): Same.
1656 (range_op_handler): Change call to fold_range.
1657 (range_cast): Same.
1658 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1659 fold_range.
1660 (range_fold_unary_symbolics_p): Same.
1661 (range_fold_binary_expr): Same.
1662 (range_fold_unary_expr): Same.
1663
1664 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1665
1666 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1667 vector type as an argument rather than reading it from the
1668 stmt_vec_info.
1669 (vect_create_epilog_for_reduction): Update accordingly.
1670 (vectorizable_reduction): Likewise.
1671 (vect_transform_cycle_phi): Likewise.
1672
1673 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1674
1675 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1676 the comparison codes that make sense for the mode used, and only the
1677 codes that can be done with a single branch instruction.
1678
1679 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1680
1681 PR tree-optimization/92351
1682 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1683 peeling the main loop for alignment, make sure to set the misalignment
1684 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1685
1686 2019-11-08 Richard Biener <rguenther@suse.de>
1687
1688 * dbgcnt.def (ivopts_loop): Add.
1689 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1690 ivopts_loop before optimizing a loop.
1691
1692 2019-11-08 Richard Biener <rguenther@suse.de>
1693
1694 PR ipa/92409
1695 * tree-inline.c (declare_return_variable): Properly handle
1696 type mismatches for the return slot.
1697
1698 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1699
1700 PR target/92095
1701 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1702 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1703 change.
1704 (got_helper_needed): New static variable.
1705 (output_load_pcrel_sym): New function.
1706 (get_pc_thunk_name): Remove after inlining...
1707 (load_got_register): ...here. Rework the initialization of the GOT
1708 register and of the GOT helper.
1709 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1710 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1711 helper must be emitted. Use output_asm_insn instead of fprintf.
1712 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1713 if optimization is enabled.
1714 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1715 by calling output_load_pcrel_sym.
1716
1717 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1718
1719 * tree-sra.c (create_access): Delay disqualifying the base
1720 for poly_int values until we know we have a base.
1721
1722 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1723
1724 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1725 for loops with SIMDUID set. Enable epilogue vectorization for loops
1726 with SIMDLEN set after finding a main loop with a VF that matches it.
1727
1728 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1729
1730 PR target/92038
1731 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1732 value only, return non-NULL if there is a single non-clobber
1733 constituent store even if there are constituent clobbers and return
1734 one of clobber constituent stores if all constituent stores are
1735 clobbers.
1736 (split_group): Handle clobbers.
1737 (imm_store_chain_info::output_merged_store): When computing
1738 bzero_first, look after all clobbers at the start. Don't count
1739 clobber stmts in orig_num_stmts, except if the first orig store is
1740 a clobber covering the whole area and split_stores cover the whole
1741 area, consider equal number of stmts ok. Punt if split_stores
1742 contains only ->orig stores and their number plus number of original
1743 clobbers is equal to original number of stmts. For ->orig, look past
1744 clobbers in the constituent stores.
1745 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1746 stmts.
1747 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1748 rhs.
1749 (store_valid_for_store_merging_p): Allow clobber stmts.
1750 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1751
1752 PR c++/92384
1753 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1754 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1755 slot.
1756 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1757 force creation of a unique data.stack_parm slot.
1758
1759 2019-11-08 Richard Biener <rguenther@suse.de>
1760
1761 * genmatch.c (expr::gen_transform): Use the resimplify
1762 member function instead of hard-coding the gimple_resimplifyN variant.
1763 (dt_simplify::gen_1): Likewise.
1764
1765 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1766
1767 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1768 POLY_INT_CST.
1769
1770 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1771
1772 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1773 instead of INTEGER_CST.
1774
1775 2019-11-08 Richard Biener <rguenther@suse.de>
1776
1777 PR tree-optimization/92324
1778 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1779 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1780 sign-conversions as necessary.
1781 (vectorizable_reduction): Reject conversions in the chain
1782 that are not sign-conversions, base analysis on a non-converting
1783 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1784 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1785 for debug stmts.
1786 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1787 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1788
1789 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1790
1791 PR target/92055
1792 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1793 Fix a missing '-' when displaying these options in the
1794 help screen.
1795
1796 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1797
1798 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1799
1800 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1801
1802 * config/aarch64/aarch64-builtins.c
1803 (aarch64_builtin_vectorized_function): Remove bswap handling.
1804
1805 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1806
1807 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1808 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1809 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1810 Treat the vector types as indivisible.
1811
1812 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1813
1814 * optabs.def (gather_load_optab, mask_gather_load_optab)
1815 (scatter_store_optab, mask_scatter_store_optab): Turn into
1816 conversion optabs, with the offset mode given explicitly.
1817 * doc/md.texi: Update accordingly.
1818 * config/aarch64/aarch64-sve-builtins-base.cc
1819 (svld1_gather_impl::expand): Likewise.
1820 (svst1_scatter_impl::expand): Likewise.
1821 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
1822 (expand_scatter_store_optab_fn): Likewise.
1823 (direct_gather_load_optab_supported_p): Likewise.
1824 (direct_scatter_store_optab_supported_p): Likewise.
1825 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
1826 to be argument 4.
1827 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
1828 (internal_gather_scatter_fn_supported_p): Replace the offset sign
1829 argument with the offset vector type. Require the two vector
1830 types to have the same number of elements but allow their element
1831 sizes to be different. Treat the optabs as conversion optabs.
1832 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
1833 prototype accordingly.
1834 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
1835 (supports_vec_convert_optab_p): ...this new function.
1836 (supports_vec_gather_load_p): Update accordingly.
1837 (supports_vec_scatter_store_p): Likewise.
1838 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
1839 Replace the offset sign and bits parameters with a scalar type tree.
1840 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
1841 Pass back the offset vector type instead of the scalar element type.
1842 Allow the offset to be wider than the memory elements. Search for
1843 an offset type that the target supports, stopping once we've
1844 reached the maximum of the element size and pointer size.
1845 Update call to internal_gather_scatter_fn_supported_p.
1846 (vect_check_gather_scatter): Update calls accordingly.
1847 When testing a new scale before knowing the final offset type,
1848 check whether the scale is supported for any signed or unsigned
1849 offset type. Check whether the target supports the source and
1850 target types of a conversion before deciding whether to look
1851 through the conversion. Record the chosen offset_vectype.
1852 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
1853 (vect_recog_gather_scatter_pattern): Get the scalar offset type
1854 directly from the gs_info's offset_vectype instead. Pass a zero
1855 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
1856 * tree-vect-stmts.c (check_load_store_masking): Update call to
1857 internal_gather_scatter_fn_supported_p, passing the offset vector
1858 type recorded in the gs_info.
1859 (vect_truncate_gather_scatter_offset): Update call to
1860 vect_check_gather_scatter, leaving it to search for a valid
1861 offset vector type.
1862 (vect_use_strided_gather_scatters_p): Convert the offset to the
1863 element type of the gs_info's offset_vectype.
1864 (vect_get_gather_scatter_ops): Get the offset vector type directly
1865 from the gs_info.
1866 (vect_get_strided_load_store_ops): Likewise.
1867 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
1868 and IFN_MASK_GATHER_LOAD.
1869 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
1870 (gather_load<mode><v_int_equiv>): ...this.
1871 (mask_gather_load<mode>): Rename to...
1872 (mask_gather_load<mode><v_int_equiv>): ...this.
1873 (scatter_store<mode>): Rename to...
1874 (scatter_store<mode><v_int_equiv>): ...this.
1875 (mask_scatter_store<mode>): Rename to...
1876 (mask_scatter_store<mode><v_int_equiv>): ...this.
1877
1878 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
1879
1880 PR target/92132
1881 * config/rs6000/predicates.md
1882 (signed_or_equality_comparison_operator): New predicate.
1883 (unsigned_or_equality_comparison_operator): Likewise.
1884 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
1885 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
1886 * config/rs6000/vector.md
1887 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
1888 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
1889 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
1890 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
1891 vector modes and same-size integer vector modes.
1892 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
1893 (vector_lt<mode> for VEC_F): New expand.
1894 (vector_le<mode> for VEC_F): Likewise.
1895 (vector_ne<mode> for VEC_F): Likewise.
1896 (vector_unge<mode> for VEC_F): Likewise.
1897 (vector_ungt<mode> for VEC_F): Likewise.
1898 (vector_unle<mode> for VEC_F): Likewise.
1899 (vector_unlt<mode> for VEC_F): Likewise.
1900 (vector_uneq<mode>): Expose name.
1901 (vector_ltgt<mode>): Likewise.
1902 (vector_unordered<mode>): Likewise.
1903 (vector_ordered<mode>): Likewise.
1904
1905 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
1906
1907 PR target/92295
1908 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
1909 Enhance ix86_expand_vector_init_concat.
1910
1911 2019-11-08 Joseph Myers <joseph@codesourcery.com>
1912
1913 * doc/invoke.texi (-Wold-style-definition): Document () not being
1914 considered an old-style definition for C2x.
1915
1916 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
1917
1918 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
1919 Enhance comment.
1920 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
1921 insn patterns using ldcw instruction.
1922 (memory_barrier): Remove insn pattern using sync instruction.
1923 * config/pa/pa.opt (coherent-ldcw): New option.
1924 (ordered): New option.
1925
1926 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1927
1928 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
1929 valid conditions.
1930
1931 2019-11-07 Jakub Jelinek <jakub@redhat.com>
1932
1933 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
1934 typo - mistmatch -> mismatch.
1935 * ipa-profile.c (ipa_profile): Likewise.
1936 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
1937 - mistmatch -> mismatch.
1938
1939 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1940
1941 * simplify-rtx.c (comparison_to_mask): New function.
1942 (mask_to_comparison): New function.
1943 (simplify_logical_relational_operation): New function.
1944 (simplify_binary_operation_1): Call
1945 simplify_logical_relational_operation.
1946
1947 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
1948
1949 PR other/92090
1950 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
1951 modes for integer constants.
1952
1953 2019-11-07 Jan Hubicka <jh@suse.cz>
1954
1955 PR ipa/92406
1956 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
1957 summary.
1958
1959 2019-11-07 Jan Hubicka <jh@suse.cz>
1960
1961 * optc-save-gen.awk: Generate cl_target_option_free
1962 and cl_optimization_option_free.
1963 * opth-en.awk: Declare cl_target_option_free
1964 and cl_optimization_option_free.
1965 * tree.c (free_node): Use it.
1966
1967 2019-11-06 Jan Hubicka <jh@suse.cz>
1968
1969 * lto-streamer-in.c: Include alloc-pool.h.
1970 (freeing_string_slot_hasher): Remove.
1971 (string_slot_allocator): New object allocator.
1972 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
1973 (file_name_obstack): New obstack.
1974 (canon_file_name): Allocate in obstack and allocator.
1975 (lto_reader_init): Initialize obstack and allocator.
1976 (lto_free_file_name_hash): New function.
1977 * lto-streamer.h (lto_free_file_name_hash): New.
1978
1979 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
1980
1981 PR tree-optimization/89134
1982 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
1983 * params.def: Add min-loop-cond-split-prob.
1984 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
1985 outside checks on loop into the function.
1986 (split_info): New class.
1987 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
1988 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
1989 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
1990 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
1991 (stmt_semi_invariant_p, branch_removable_p): Likewise.
1992 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
1993 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
1994 (split_loop_on_cond): Likewise.
1995 (tree_ssa_split_loops): Add loop split on conditional statement.
1996
1997 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
1998
1999 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2000 pattern.
2001
2002 2019-11-07 Richard Biener <rguenther@suse.de>
2003
2004 PR tree-optimization/92405
2005 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2006 restrict lane-reducing ops to single stmt chains.
2007
2008 2019-11-07 Martin Jambor <mjambor@suse.cz>
2009
2010 PR lto/70929
2011 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2012 * cgraph.h (gimple_check_call_matching_types): Remove
2013 * cgraph.c (gimple_check_call_args): Likewise.
2014 (gimple_check_call_matching_types): Likewise.
2015 (symbol_table::create_edge): Do not call
2016 gimple_check_call_matching_types.
2017 (cgraph_edge::make_direct): Likewise.
2018 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2019 * value-prof.h (check_ic_target): Remove.
2020 * value-prof.c (check_ic_target): Remove.
2021 (gimple_ic_transform): Do nat call check_ic_target.
2022 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2023 (afdo_indirect_call): Likewise.
2024 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2025 gimple_check_call_matching_types.
2026 * ipa-inline.c (early_inliner): Likewise.
2027
2028 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2029
2030 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2031 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2032 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2033 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2034 * config/arm/iterators.md (USSAT16): New int_iterator.
2035 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2036 (sup): Likewise.
2037 * config/arm/predicates.md (ssat16_imm): New predicate.
2038 (usat16_imm): Likewise.
2039 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2040
2041 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2042
2043 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2044 New define_insns.
2045 (arm_<simd32_op>): New define_expands.
2046 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
2047 __smuad, __smuadx): Define.
2048 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2049 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
2050 (SIMD32_BINOP_Q): Likewise.
2051 (simd32_op): Handle the above.
2052 * config/arm/unspecs.md: Define unspecs for the above.
2053
2054 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2055
2056 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
2057 * config/arm/arm.md (APSRGE_REGNUM): Define.
2058 (arm_<simd32_op>): New define_insn.
2059 (arm_sel): Likewise.
2060 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
2061 (CALL_USED_REGISTERS): Likewise.
2062 (REG_ALLOC_ORDER): Likewise.
2063 (FIRST_PSEUDO_REGISTER): Update value.
2064 (ARM_GE_BITS_READ): Define.
2065 * config/arm/arm.c (arm_conditional_register_usage): Clear
2066 APSRGE_REGNUM from operand_reg_set.
2067 (arm_ge_bits_access): Define.
2068 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
2069 ARM_BUIILTIN_sel.
2070 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
2071 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
2072 FAIL if ARM_GE_BITS_READ.
2073 (*arm_add<mode>3): New define_insn.
2074 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
2075 (*arm_sub<mode>3): New define_insn.
2076 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
2077 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
2078 __usub16): Define.
2079 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2080 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
2081 (simd32_op): Handle the above.
2082 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
2083 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
2084 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
2085 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
2086
2087 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2088
2089 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
2090 (arm_smlabb): New define_expand.
2091 (*maddhisi4tb): Rename to...
2092 (maddhisi4tb): ... This.
2093 (*maddhisi4tt): Rename to...
2094 (maddhisi4tt): ... This.
2095 (arm_smlatb_setq): New define_insn.
2096 (arm_smlatb): New define_expand.
2097 (arm_smlatt_setq): New define_insn.
2098 (arm_smlatt): New define_expand.
2099 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
2100 (arm_<smlaw_op>): New define_expand.
2101 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
2102 __smlawb, __smlawt): Define.
2103 * config/arm_acle_builtins.def: Define builtins for the above.
2104 * config/arm/iterators.md (SMLAWBT): New int_iterator.
2105 (slaw_op): New int_attribute.
2106 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
2107
2108 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2109
2110 * config/arm/arm.md (arm_<ss_op>): New define_expand.
2111 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
2112 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
2113 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
2114 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
2115 (ss_op): New code_attr.
2116
2117 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2118
2119 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
2120 * config/arm/arm.md (APSRQ_REGNUM): Define.
2121 (add_setq): New define_subst.
2122 (add_clobber_q_name): New define_subst_attr.
2123 (add_clobber_q_pred): Likewise.
2124 (maddhisi4): Change to define_expand. Split into mult and add if
2125 ARM_Q_BIT_READ.
2126 (arm_maddhisi4): New define_insn.
2127 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
2128 (*maddhisi4tt): Likewise.
2129 (arm_ssat): New define_expand.
2130 (arm_usat): Likewise.
2131 (arm_get_apsr): New define_insn.
2132 (arm_set_apsr): Likewise.
2133 (arm_saturation_occurred): New define_expand.
2134 (arm_set_saturation): Likewise.
2135 (*satsi_<SAT:code>): Rename to...
2136 (satsi_<SAT:code><add_clobber_q_name>): ... This.
2137 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
2138 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
2139 (CALL_USED_REGISTERS): Mark apsrq.
2140 (FIRST_PSEUDO_REGISTER): Update value.
2141 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
2142 (machine_function): Add q_bit_access.
2143 (ARM_Q_BIT_READ): Define.
2144 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
2145 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
2146 operand_reg_set.
2147 (arm_q_bit_access): Define.
2148 * config/arm/arm-builtins.c: Include stringpool.h.
2149 (arm_sat_binop_imm_qualifiers,
2150 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
2151 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
2152 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
2153 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
2154 SET_SAT_QUALIFIERS): Likewise.
2155 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
2156 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
2157 Handle 0 argument expander.
2158 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
2159 (arm_check_builtin_call): Define.
2160 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
2161 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
2162 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
2163 (arm_q_bit_access): Likewise.
2164 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
2165 __saturation_occurred, __set_saturation_occurred): Define.
2166 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
2167 saturation_occurred, set_saturation_occurred.
2168 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
2169 (UNSPEC_APSR_READ): Likewise.
2170 (VUNSPEC_APSR_WRITE): Likewise.
2171 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
2172 (*arm_ssadd<mode>3): New define_insn.
2173 (sssub<mode>3): Convert to define_expand.
2174 (*arm_sssub<mode>3): New define_insn.
2175 (ssmulsa3): Convert to define_expand.
2176 (*arm_ssmulsa3): New define_insn.
2177 (usmulusa3): Convert to define_expand.
2178 (*arm_usmulusa3): New define_insn.
2179 (ssmulha3): FAIL if ARM_Q_BIT_READ.
2180 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
2181 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
2182
2183 2019-11-07 Martin Liska <mliska@suse.cz>
2184
2185 PR c++/92354
2186 * cgraph.c (delete_function_version): Clear global
2187 variable version_info_node if equal to deleted
2188 function.
2189
2190 2019-11-07 Martin Liska <mliska@suse.cz>
2191
2192 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2193 of CONSTRUCTOR_NO_CLEARING.
2194 (operand_compare::hash_operand): Likewise.
2195
2196 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2197
2198 Support 64-bit double and 64-bit long double configurations.
2199
2200 PR target/92055
2201 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2202 --with-long-double=.
2203 * config/avr/t-multilib: Remove.
2204 * config/avr/t-avr: Output of genmultilib.awk is now fully
2205 dynamically generated and no more part of the repo.
2206 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2207 Pass them down to...
2208 * config/avr/genmultilib.awk: ...here and handle them.
2209 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2210 (-mlong-double=, avr_long_double). New option and var.
2211 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2212 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2213 Set default as requested by --with-double=
2214 (TARGET_HANDLE_OPTION): Define to this...
2215 (avr_handle_option): ...new hook worker.
2216 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2217 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2218 (avr_double_lib): New proto for spec function.
2219 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2220 (DRIVER_SELF_SPECS): Call %:double-lib.
2221 * config/avr/avr.c (avr_option_override): Assert
2222 sizeof(long double) >= sizeof(double) for the target.
2223 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2224 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2225 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2226 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2227 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2228 New built-in define depending on --with-double=, --with-long-double=.
2229 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2230 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2231 * doc/install.texi (Cross-Compiler-Specific Options)
2232 <--with-double=, --with-long-double=>: Doc.
2233
2234 2019-11-07 Richard Biener <rguenther@suse.de>
2235
2236 * dbgcnt.def (gimple_unroll): New.
2237 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2238 gimple_unroll debug counter before applying transform.
2239 (try_peel_loop): Likewise.
2240
2241 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2242
2243 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2244 frame pointer in multiple registers.
2245 (ira_setup_eliminable_regset): Setup eliminable_regset,
2246 ira_no_alloc_regs and regs_ever_live for frame pointer in
2247 multiple registers.
2248
2249 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2250
2251 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2252 V2DI modes.
2253
2254 2019-11-06 Jan Hubicka <jh@suse.cz>
2255
2256 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2257 allocations.
2258 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2259 Do not silently ignore summary corruptions.
2260
2261 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2262
2263 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2264 the epilogue if there are peeled iterations for it to handle.
2265
2266 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2267
2268 * config/arc/arc.c (arc_split_ior): Add asserts.
2269 (arc_split_mov_const): Likewise.
2270 (arc_check_ior_const): Do not match known short immediate values.
2271 * config/arc/arc.md (movsi): Don't split predicated instructions
2272 (iorsi): Likewise.
2273
2274 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2275
2276 * config/arc/arc.opt (mea): Update help string.
2277 * doc/invoke.texi(ARC): Update mea option info.
2278
2279 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2280
2281 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2282 (zero_extendqisi2_ac): Likewise.
2283 (zero_extendhisi2_i): Likewise.
2284 (extendqihi2_i): Likewise.
2285 (extendqisi2_ac): Likewise.
2286 (extendhisi2_i): Likewise.
2287
2288 2019-11-06 Richard Biener <rguenther@suse.de>
2289
2290 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2291 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2292 Simplify single_defuse_cycle condition.
2293
2294 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2295
2296 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2297 epilogue loop, make sure that the VF is small enough or that
2298 the epilogue loop can be fully-masked.
2299
2300 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2301
2302 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2303 loop when we've finished, rather than returning directly from
2304 the loop. Use a local variable to track whether we're still
2305 searching for the preferred simdlen. Make vect_epilogues
2306 record whether the next iteration should try to treat the
2307 loop as an epilogue.
2308
2309 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2310
2311 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2312 __arc_hard_float__, __ARC_HARD_FLOAT__,
2313 __arc_soft_float__, __ARC_SOFT_FLOAT__
2314
2315 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2316
2317 PR tree-optimization/92317
2318 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2319 update phi's with constant phi arguments.
2320
2321 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2322 Alexandre Oliva <oliva@adacore.com>
2323
2324 * common.opt (-fcallgraph-info[=]): New option.
2325 * doc/invoke.texi (Developer options): Document it.
2326 * opts.c (common_handle_option): Handle it.
2327 * builtins.c (expand_builtin_alloca): Record allocation if
2328 -fcallgraph-info=da.
2329 * calls.c (expand_call): If -fcallgraph-info, record the call.
2330 (emit_library_call_value_1): Likewise.
2331 * flag-types.h (enum callgraph_info_type): New type.
2332 * explow.c: Include stringpool.h.
2333 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2334 * function.c (allocate_stack_usage_info): New.
2335 (allocate_struct_function): Call it for -fcallgraph-info.
2336 (prepare_function_start): Call it otherwise.
2337 (record_final_call, record_dynamic_alloc): New.
2338 * function.h (struct callinfo_callee): New.
2339 (CALLEE_FROM_CGRAPH_P): New.
2340 (struct callinfo_dalloc): New.
2341 (struct stack_usage): Add callees and dallocs.
2342 (record_final_call, record_dynamic_alloc): Declare.
2343 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2344 object if -fcallgraph-info=da.
2345 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2346 * print-tree.h (print_decl_identifier): Declare.
2347 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2348 * print-tree.c: Include print-tree.h.
2349 (print_decl_identifier): New function.
2350 * toplev.c: Include print-tree.h.
2351 (callgraph_info_file): New global variable.
2352 (callgraph_info_external_printed): Likewise.
2353 (output_stack_usage): Rename to...
2354 (output_stack_usage_1): ... this. Make it static, add cf
2355 parameter. If -fcallgraph-info=su, print stack usage to cf.
2356 If -fstack-usage, use print_decl_identifier for
2357 pretty-printing.
2358 (INDIRECT_CALL_NAME): New.
2359 (dump_final_node_vcg_start): New.
2360 (dump_final_callee_vcg, dump_final_node_vcg): New.
2361 (output_stack_usage): New.
2362 (lang_dependent_init): Open and start file if
2363 -fcallgraph-info. Allocated callgraph_info_external_printed.
2364 (finalize): If callgraph_info_file is not null, finish it,
2365 close it, and release callgraph_info_external_printed.
2366
2367 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2368 Frederik Harwath <frederik@codesourcery.com>
2369 Thomas Schwinge <thomas@codesourcery.com>
2370
2371 * omp-low.c (struct omp_context): New fields
2372 local_reduction_clauses, outer_reduction_clauses.
2373 (new_omp_context): Initialize these.
2374 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2375 (scan_omp_for): Check reduction clauses for incorrect nesting.
2376
2377 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2378
2379 PR inline-asm/92352
2380 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2381 operands with non-memory constraints.
2382
2383 2019-11-05 Martin Sebor <msebor@redhat.com>
2384
2385 PR tree-optimization/92373
2386 * tree.c (component_ref_size): Only consider initializers of objects
2387 of matching struct types.
2388 Return null for instances of interior zero-length arrays.
2389
2390 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2391
2392 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2393
2394 2019-11-05 Jason Merrill <jason@redhat.com>
2395
2396 PR tree-optimization/91825
2397 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2398
2399 2019-11-05 Jim Wilson <jimw@sifive.com>
2400
2401 PR middle-end/92263
2402 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2403 optimize_insn_for_speed_p is true.
2404
2405 2019-11-05 Martin Sebor <msebor@redhat.com>
2406
2407 PR middle-end/92333
2408 PR middle-end/82608
2409 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2410 size.
2411 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2412 name and location for a temporary variable.
2413
2414 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2415
2416 * tree-vrp.c (value_range::value_range): Fix whitespace.
2417 (defined_ranges_p): Same.
2418 (range_fold_binary_symbolics_p): Same.
2419 (value_range::intersect_helper): Same.
2420 (value_range::union_helper): Same.
2421 * tree-vrp.h (range_fold_binary_expr): Same.
2422
2423 2019-11-04 Martin Sebor <msebor@redhat.com>
2424
2425 PR middle-end/92341
2426 PR middle-end/82612
2427 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2428 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2429 of message printed in a warning for empty arrays.
2430 (vrp_prop::check_mem_ref): Also handle function parameters and
2431 empty arrays.
2432
2433 2019-11-05 Richard Biener <rguenther@suse.de>
2434
2435 PR tree-optimization/92371
2436 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2437 on the original stmt of live stmts in the chain.
2438 (vectorizable_live_operation): Look at the original stmt when
2439 checking STMT_VINFO_REDUC_DEF.
2440
2441 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2442
2443 * gimple-fold.c, gimple-loop-versioning.cc,
2444 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2445 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2446 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2447 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2448 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2449 value_range_equiv, and value_range_base to value_range.
2450
2451 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2452
2453 * expr.c (build_personality_function): Fix generated type to
2454 match actual personality functions.
2455
2456 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2457
2458 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2459 enough bytes for the NULL character.
2460
2461 2019-11-05 Richard Biener <rguenther@suse.de>
2462
2463 PR tree-optimization/92280
2464 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2465 had a single use do not create a new CTOR.
2466 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2467 BIT_FIELD_REF of a CTOR via GENERIC.
2468
2469 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2470
2471 * config/s390/s390.c (s390_vector_alignment): Check if the value
2472 fits into uhwi before using it.
2473
2474 2019-11-05 Martin Liska <mliska@suse.cz>
2475
2476 * symbol-summary.h: Use ggc_delete.
2477
2478 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2479
2480 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2481 Change vec_perm field to 10.
2482
2483 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2484
2485 * doc/install.texi: Further fix syntax for html generation.
2486
2487 2019-11-05 Martin Liska <mliska@suse.cz>
2488
2489 * symbol-summary.h: Rename allocator to m_allocator and
2490 add comment.
2491
2492 2019-11-05 Richard Biener <rguenther@suse.de>
2493
2494 PR tree-optimization/92324
2495 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2496 all signed or unsigned operations.
2497
2498 2019-11-05 Jan Hubicka <jh@suse.cz>
2499
2500 * hsa-brig.c: Include alloc-pool.h
2501 * hsa-dump.c: Likewise.
2502 * hsa-gen.c: Likewise.
2503 * hse-regalloc.c: Likewise.
2504 * ipa-hsa.c: Likewise.
2505 * ipa-predicate.c: Likewise.
2506 * ipa-reference.c: Likewise.
2507 * ipa-sra.c: Likewise.
2508 * omp-expand.c: Likewise.
2509 * omp-general.c: Likewise.
2510 * omp-low.c: Likewise.
2511 * sumbol-summary.h (function_summary_base): Add allocator.
2512 (function_summary<T *>::function_summary): Update construction.
2513 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2514 (call_summary_base): Add allcator.
2515 (call_summary<T *>::call_summary): Update construction.
2516 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2517
2518 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2519
2520 PR tree-optimization/91945
2521 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2522 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2523 Formatting fix.
2524
2525 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2526
2527 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2528 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2529 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2530 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2531 (vrp_set_zero_nonzero_bits): Move to...
2532 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2533 (vr_values::simplify_bit_ops_using_ranges): Rename
2534 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2535
2536 2019-11-05 Martin Liska <mliska@suse.cz>
2537
2538 PR c++/92339
2539 * fold-const.c (operand_compare::hash_operand): Remove
2540 FIELD_DECL handling.
2541
2542 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2543
2544 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2545 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2546 static.
2547
2548 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2549
2550 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2551 properly handle symbolics.
2552 (range_compatible_p): Remove.
2553
2554 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2555
2556 * common.opt (-fabi-version): Document =14.
2557 * doc/invoke.texi (C++ Dialect Options): Likewise.
2558
2559 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2560
2561 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2562
2563 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2564
2565 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2566 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2567 gcn_omp_device_kind_arch_isa.
2568 * config/gcn/t-omp-device: New file.
2569 * configure.ac: Support gcn for omp_device_property.
2570 * configure: Regenerate.
2571
2572 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2573
2574 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2575 (vrp_val_max): Same.
2576 (vrp_val_is_min): Same.
2577 (vrp_val_is_max): Same.
2578 (value_range_base::nonzero_p): Remove last argument to
2579 vrp_val_is_max.
2580 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2581 (vrp_val_max): Same.
2582 (vrp_val_is_min): Same.
2583 (vrp_val_is_max): Same.
2584 (value_range_base::set_varying): Remove last argument to vrp_val*.
2585 (value_range_base::dump): Same.
2586 (value_range_base::set): Same.
2587 (value_range_base::normalize_symbolics): Same.
2588 (value_range_base::num_pairs): Same.
2589 (value_range_base::lower_bound): Same.
2590 (value_range_base::upper_bound): Same.
2591 (ranges_from_anti_range): Remove handle_pointers argument.
2592 (value_range_base::singleton_p): Remove last argument to
2593 ranges_from_anti_range.
2594
2595 2019-11-04 Jan Hubicka <jh@suse.cz>
2596
2597 * ipa-reference.c (init_function_info): Initialize
2598 info->global.statics_read.
2599
2600 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2601
2602 * tree-vrp.c (value_range_base::invert): Use constructors to build
2603 range.
2604
2605 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2606
2607 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2608 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2609
2610 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2611
2612 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2613 VR_UNDEFINED.
2614
2615 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2616
2617 * tree-vrp.c (dump_assert_info): New.
2618 (dump_asserts_info): New.
2619
2620 2019-11-04 Jan Hubicka <jh@suse.cz>
2621
2622 * ipa-inline-transform.c: Include ipa-utils.h
2623 (inline_call): Set thunk_expansion flag.
2624 * ipa-utils.h (thunk_expansion): Declare.
2625 * ipa-devirt.c (thunk_expansion): New global var.
2626 (devirt_node_removal_hook): Do not invalidate cache while
2627 doing thunk expansion.
2628
2629 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2630
2631 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2632
2633 2019-11-04 Martin Sebor <msebor@redhat.com>
2634
2635 PR tree-optimization/92349
2636 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2637 memebers have constant sizes.
2638
2639 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2640
2641 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2642 parameter.
2643 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2644 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2645 vect_analyze_loop.
2646
2647 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2648
2649 * expr.c (store_constructor): Modify to handle single element vectors.
2650 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2651 constructors.
2652 (vect_slp_check_for_constructors): New function.
2653 (vect_slp_analyze_bb_1): Call new function to check for vector
2654 constructors.
2655 (vectorize_slp_instance_root_stmt): New function.
2656 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2657 constructors.
2658 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2659
2660 2019-11-04 Richard Biener <rguenther@suse.de>
2661
2662 PR tree-optimization/92345
2663 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2664 we produced a reduction chain.
2665 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2666 LOOP_VINFO_REDUCTIONS.
2667
2668 2019-11-04 Jan Hubicka <jh@suse.cz>
2669
2670 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2671 duplicate summaries.
2672 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2673 first.
2674 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2675 access call summaries.
2676 (dump_ipa_call_summary): Be ready for missing edge summaries.
2677 (analyze_function_body): Use get instead of get_create to access
2678 edge summary.
2679 (estimate_calls_size_and_time): Do not access summaries of
2680 inlined edges; sanity check they are missing.
2681 (ipa_call_context::estimate_size_and_time): Use get instead
2682 of get_create to access node summary.
2683 (inline_update_callee_summaries): Do not update depth of
2684 inlined edge.
2685 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2686 growth caches.
2687 (ipa_merge_fn_summary_after_inlining): Use get instead
2688 of get_create.
2689 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2690 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2691 fast summary.
2692 (initialize_growth_caches): Update.
2693 (do_estimate_edge_time): Remove redundant copy of context.
2694 (ipa_remove_from_growth_caches): New function.
2695 * ipa-inline.c (flatten_function): Update overall summary
2696 only when optimizing.
2697 (inline_to_all_callers): Update overall summary of function
2698 inlined to.
2699 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2700 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2701 to false.
2702
2703 2019-11-04 Richard Biener <rguenther@suse.de>
2704
2705 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2706 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2707
2708 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2709
2710 * ggc-common.c: Include system.h before malloc.h.
2711
2712 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2713
2714 * configure.ac: Pass --enable-obsolete=* and
2715 --enable-option-checking=* down to build configure, and fail
2716 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2717 * configure: Rebuild.
2718 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2719 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2720
2721 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2722
2723 * config.in: Regenerate.
2724 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2725 -mtiny-printf is used without GCC being configured with
2726 --enable-newlib-nano-formatted-io.
2727 * config/msp430/msp430.h (LINK_SPEC): Pass
2728 "--wrap puts --wrap printf" when -mtiny-printf is used.
2729 * config/msp430/msp430.opt: Document -mtiny-printf.
2730 * configure: Regenerate.
2731 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2732 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2733 --enable-newlib-nano-formatted-io is passed.
2734 * doc/invoke.texi: Document -mtiny-printf.
2735
2736 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2737
2738 * configure: Regenerate.
2739
2740 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2741
2742 * config/msp430/driver-msp430.c
2743 (msp430_get_linker_devices_include_path): New spec function.
2744 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2745 (extract_devices_dir_from_exec_prefix): New function.
2746 (extract_devices_dir_from_collect_gcc): New function.
2747 (msp430_check_env_var_for_devices): New function.
2748 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2749 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2750 devices.csv was not found using other methods.
2751 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2752 New prototype.
2753 (msp430_dirname): Likewise.
2754 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2755 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2756 msp430_get_linker_devices_include_path.
2757 (TARGET_EXTRA_PRE_INCLUDES): Define.
2758 * doc/invoke.texi: Document new ways of searching for support files.
2759
2760 2019-11-04 Richard Biener <rguenther@suse.de>
2761
2762 PR tree-optimization/92301
2763 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2764 as required by epilogue generation
2765
2766 2019-11-04 Martin Liska <mliska@suse.cz>
2767
2768 PR ipa/92304
2769 * fold-const.c (operand_compare::hash_operand): Fix field
2770 hashing of CONSTRUCTOR.
2771
2772 2019-11-04 Martin Liska <mliska@suse.cz>
2773
2774 * ggc.h (ggc_delete): New function.
2775 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2776 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2777 (ipa_free_all_node_params): Likewise.
2778 * ipa-sra.c (ipa_sra_analysis): Likewise.
2779
2780 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2781
2782 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2783 set_switch_stmt_execution_predicate, compute_bb_predicates,
2784 will_be_nonconstant_expr_predicate,
2785 phi_result_unknown_predicate,
2786 analyze_function_body): Pass arround params summary.
2787 (ipa_call_context::duplicate_from): New comment;
2788 only duplicate useful values.
2789 (ipa_call_context::equal_to): Only compare useful values.
2790 (remap_edge_summaries): Pass params_summary.
2791 (remap_hint_predicate): Likewise.
2792 (ipa_merge_fn_summary_after_inlining): Likewise.
2793 (inline_read_section): Initialize params summary used flags.
2794 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2795 around param_summary.
2796 (add_condition): Initialized used params summary flags.
2797 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2798 (inline_param_summary::useless_p): New predicate.
2799 (remap_after_inlining, add_condition): Update prototype
2800 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2801 move_cost.
2802 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2803 summaries.
2804 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2805 (ipa_analyze_virtual_call_uses): Likewise.
2806 (update_indirect_edges_after_inlining): Update param summaries.
2807 (ipa_print_node_params): Print used flags.
2808 (ipa_read_indirect_edge_info): Update param summareis.
2809 * ipa-prop.h (ipa_param_descriptor): Add
2810 used_by_ipa_predicates, used_by_indirect_call
2811 and used_by_polymorphic_call.
2812 (ipa_set_param_used_by_ipa_predicates,
2813 ipa_set_param_used_by_indirect_call,
2814 ipa_set_param_used_by_polymorphic_call,
2815 ipa_is_param_used_by_ipa_predicates,
2816 ipa_is_param_used_by_indirect_call,
2817 ipa_is_param_used_by_polymorphic_call): New inline functions.
2818
2819 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2820
2821 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
2822 member function.
2823 (ipa_call_context::release): Add ALL parameter.
2824 (ipa_call_context::equal_to): New member function.
2825 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
2826 duplicate_form, release, equal_to and exists_p member functoins.
2827 * ipa-inline-analysis.c (node_context_cache_entry): New
2828 class.
2829 (node_context_summary): Likewise.
2830 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
2831 node_context_clear): New static vars.
2832 (initialize_growth_caches): New function.
2833 (free_growth_caches): Also delete node_context_cache; output stats.
2834 (do_estimate_edge_time): Cache contexts.
2835 (reset_node_cache): New function.
2836 * ipa-inline.c (reset_edge_caches): Reset also node cache.
2837 (inline_small_functions): Initialize growth caches.
2838 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
2839 Declare.
2840 * ipa-predicate.h (inline_param_summary::equal_to): New.
2841 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
2842 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
2843 (ipa_agg_jump_function): Implement equal_to member function.
2844
2845 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2846
2847 * ipa-fnsummary.c (inline_read_section): Set vector size
2848 ahead of time.
2849
2850 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2851
2852 * ipa-fnsummary.c (ipa_call_context): New constructor.
2853 (estimate_node_size_and_time): Turn to ...
2854 (ipa_call_context::estimate_size_and_time): ... this one.
2855 (ipa_call_context::release): New.
2856 * ipa-fnsummary.h (ipa_call_context): New class.
2857 (estimate_node_size_and_time): Remove.
2858 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
2859 do_estimate_edge_hints): Update.
2860
2861 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2862
2863 * config.in: Regenerate.
2864 * configure: Regenerate.
2865 * configure.ac: Check for mallinfo.
2866 * ggc-common.c: Include malloc.h if available;
2867 include options.h
2868 (report_heap_memory_use): New functoin.
2869 * ggc-page.c (ggc_grow): Do not print "start".
2870 * ggc.h (report_heap_memory_use): Declare.
2871 * pases.c (execute_one_pass): Report memory after IPA passes.
2872 (ipa_read_summaries_1): Likewise.
2873 (ipa_read_optimization_summaries_1): Likewise.
2874
2875 2019-11-02 Jakub Jelinek <jakub@redhat.com>
2876
2877 * gimplify.h (omp_construct_selector_matches): Change return
2878 type to int, add a new SCORES argument.
2879 * gimplify.c (omp_construct_selector_matches): Likewise. If
2880 SCORES is non-NULL, compute scores of each construct.
2881 * omp-general.h (omp_get_context_selector): Declare.
2882 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
2883 Adjust omp_construct_selector_matches callers.
2884 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
2885 (omp_context_compute_score): New function.
2886 (omp_resolve_declare_variant): Compute scores and decide based on
2887 that.
2888
2889 PR bootstrap/92314
2890 * configure.ac: Don't look for omp-device-properties files from
2891 installed offloading compilers. Instead add tmake_file snippets
2892 for configured offloading targets and use files they generate.
2893 * Makefile.in (install): Don't depend on
2894 install-omp-device-properties.
2895 (install-omp-device-properties): Remove goal.
2896 * config/i386/t-omp-device: New file.
2897 * config/i386/t-intelmic (omp-device-properties): Remove goal.
2898 * config/nvptx/t-omp-device: New file.
2899 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
2900 * configure: Regenerated.
2901
2902 * omp-general.h (omp_context_selector_set_compare): Declare.
2903 * omp-general.c (omp_construct_simd_compare,
2904 omp_context_selector_props_compare, omp_context_selector_set_compare,
2905 omp_context_selector_compare): New functions.
2906 (omp_resolve_declare_variant): Prune variants that are strict subset
2907 of another variant.
2908
2909 2019-11-01 Martin Sebor <msebor@redhat.com>
2910
2911 PR middle-end/91679
2912 PR middle-end/91647
2913 PR middle-end/91463
2914 PR middle-end/92312
2915 * doc/invoke.texi (-Wzero-length-bounds): Document.
2916 * gimple-match-head.c (try_conditional_simplification): Use memcpy
2917 instead of a hand-rolled loop to avoid PR 92323.
2918 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
2919 with initializers.
2920 (vrp_prop::check_mem_ref): Handle declared struct objects.
2921 * tree.c (last_field): New function.
2922 (array_at_struct_end_p): Handle MEM_REF.
2923 (get_initializer_for): New helper.
2924 (component_ref_size): Add argument. Rename locals. Call
2925 get_initializer_for instead of fold_ctor_reference. Correct handling
2926 of flexible array members.
2927 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
2928
2929 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2930
2931 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
2932 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
2933 UNSPEC_VSX_CVSPUXDS): Remove.
2934 (vsx_xvcvspdp): New define_expand, old define_insn split to...
2935 (vsx_xvcvspdp_be): ... this. New. And...
2936 (vsx_xvcvspdp_le): ... this. New.
2937 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
2938 (vsx_xvcv<su>xwdp_be): ... this. New. And...
2939 (vsx_xvcv<su>xwdp_le): ... this. New.
2940 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
2941 (vsx_xvcvsp<su>xds_be): ... this. New. And...
2942 (vsx_xvcvsp<su>xds_le): ... this. New.
2943
2944 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2945
2946 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
2947 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
2948 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
2949 UNSPEC_VSX_XVCVSPSXWS): Remove.
2950 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
2951 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
2952
2953 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
2954
2955 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
2956 (UNSPEC_VSX_XVCDPSP): Remove.
2957 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
2958 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
2959
2960 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
2961
2962 * hooks.c (hook_tree_tree_bool_null): New.
2963 * hooks.h (hook_tree_tree_bool_null): Declare.
2964 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
2965 (LANG_HOOKS_DECLS): Add it.
2966 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
2967 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
2968 (lower_omp_target): Handle Fortran array with descriptor in
2969 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
2970
2971 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
2972
2973 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2974 Assert that the type we store in abi_vector_types is its own
2975 main variant.
2976 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
2977
2978 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2979
2980 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
2981 from a CONST_INT address when TARGET_THUMB2.
2982
2983 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
2984
2985 * config/arm/arm.md (add_not_cin): New insn.
2986 (add_not_shift_cin): Likewise.
2987
2988 2019-10-31 Martin Liska <mliska@suse.cz>
2989
2990 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
2991 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
2992 and compare_memory_operand.
2993
2994 2019-10-31 Jakub Jelinek <jakub@redhat.com>
2995
2996 * configure.ac: Compute and substitute omp_device_properties and
2997 omp_device_property_deps.
2998 * Makefile.in (generated_files): Add omp-device-properties.h.
2999 (omp-general.o): Depend on omp-device-properties.h.
3000 (omp_device_properties): New make variable.
3001 (omp-device-properties.h, s-omp-device-properties-h,
3002 install-omp-device-properties): New goals.
3003 (install): Depend on install-omp-device-properties for accelerators.
3004 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3005 * target.h (enum omp_device_kind_arch_isa): New enum.
3006 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3007 documentation.
3008 * omp-general.c: Include omp-device-properties.h.
3009 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3010 colon instead of comma.
3011 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3012 functions.
3013 (omp_context_selector_matches): Implement device set arch/isa
3014 selectors, improve device set kind selector handling.
3015 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3016 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3017 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3018 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3019 ix86_omp_device_kind_arch_isa.
3020 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3021 definition from ix86_target_string to file scope.
3022 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3023 to file scope.
3024 (ix86_omp_device_kind_arch_isa): New function.
3025 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3026 isa_opts definitions to file scope.
3027 * config/i386/t-intelmic (omp-device-properties): New goal.
3028 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3029 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3030 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3031 nvptx_omp_device_kind_arch_isa.
3032 * configure: Regenerate.
3033 * doc/tm.texi: Regenerate.
3034
3035 PR middle-end/92231
3036 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3037 DECL_BUILT_IN in comment. Remove redundant ()s around return
3038 argument.
3039 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3040 before calling fndecl_built_in_p.
3041 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3042 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3043 fndecl_built_in_p on it.
3044
3045 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3046
3047 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
3048
3049 2019-10-31 Martin Liska <mliska@suse.cz>
3050
3051 * config/arm/arm.c (arm_get_pcs_model): Remove usage
3052 of cgraph_local_info and use local_info_node instead.
3053 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
3054 (bfin_function_ok_for_sibcall): Likewise.
3055 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
3056 (must_reload_pic_reg_p): Likewise.
3057
3058 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3059
3060 PR c++/90947
3061 * tree.h (type_initializer_zero_p): Remove.
3062 * tree.c (type_initializer_zero_p): Remove.
3063
3064 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3065
3066 * doc/invoke.texi (-Wshadow, -Wshadow=global
3067 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
3068
3069 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3070
3071 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
3072 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
3073 and 'target exit data'.
3074
3075 2019-10-30 Martin Jambor <mjambor@suse.cz>
3076
3077 ipa/92278
3078 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
3079 availability comparison.
3080
3081 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3082
3083 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
3084 calls to __mspabi_mpy* functions.
3085 * config/msp430/msp430.md (mulhisi3): New define_expand.
3086 (umulhisi3): New define_expand.
3087 (*mulhisi3_inline): Use old mulhisi3 define_insn.
3088 (*umulhisi3_inline): Use old umulhisi3 define_insn.
3089
3090 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3091
3092 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
3093 (msp430_check_plus_not_high_mem): New.
3094 (msp430_op_not_in_high_mem): Use new functions to check if the operand
3095 might be in low memory.
3096 Indicate that a 16-bit absolute address is in lower memory.
3097
3098 2019-10-30 Martin Jambor <mjambor@suse.cz>
3099
3100 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
3101 ultimate_alias_target.
3102
3103 2019-10-30 Richard Biener <rguenther@suse.de>
3104
3105 PR tree-optimization/92275
3106 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
3107 Copy all loop-closed PHIs.
3108
3109 2019-10-30 Martin Liska <mliska@suse.cz>
3110
3111 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
3112 const_tree as function argument.
3113 (func_checker::compare_decl): Likewise.
3114 (func_checker::operand_equal_p): Likewise.
3115 (func_checker::compare_variable_decl): Likewise.
3116 (func_checker::parse_labels): Likewise.
3117 * ipa-icf-gimple.h: Likewise.
3118
3119 2019-10-30 Martin Liska <mliska@suse.cz>
3120
3121 * ipa-icf-gimple.c (func_checker::compatible_types_p):
3122 Do not compare alias sets. It's handled by operand_equal_p.
3123
3124 2019-10-30 Martin Liska <mliska@suse.cz>
3125
3126 * ipa-icf-gimple.c (func_checker::func_checker): Do not
3127 initialize m_compare_polymorphic.
3128 (func_checker::compare_decl): Do not compare polymorphic types.
3129 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
3130 * ipa-icf.c (sem_function::equals_private): Do not call
3131 compare_polymorphic_p.
3132
3133 2019-10-30 Martin Liska <mliska@suse.cz>
3134
3135 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
3136 compare_operand.
3137 (func_checker::compare_memory_operand): Remove.
3138 (func_checker::compare_cst_or_decl): Remove.
3139 (func_checker::operand_equal_valueize): Do not handle
3140 FIELD_DECL.
3141 (func_checker::compare_gimple_call): Call compare_operand.
3142 (func_checker::compare_gimple_assign): Likewise.
3143 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
3144 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
3145 * ipa-icf.h (icf_handled_component_p): Remove.
3146
3147 2019-10-30 Martin Liska <mliska@suse.cz>
3148
3149 * ipa-icf-gimple.c (func_checker::hash_operand): New.
3150 (func_checker::compare_cst_or_decl): Remove handling
3151 of FIELD_DECL.
3152 (func_checker::compare_operand): Transform to ...
3153 (func_checker::operand_equal_p): ... this.
3154 * ipa-icf-gimple.h (class func_checker): Add
3155 operand_equal_p and hash_operand.
3156 * ipa-icf.c (sem_function::equals_private): Fix
3157 pushing and popping of cfun.
3158
3159 2019-10-30 Martin Liska <mliska@suse.cz>
3160
3161 * fold-const.c (operand_equal_p): Move to ...
3162 (operand_compare::operand_equal_p): ... here.
3163 (operand_compare::verify_hash_value): New.
3164 (add_expr): Move to ...
3165 (operand_compare::hash_operand): ... here.
3166 * fold-const.h (operand_equal_p): Move to the class.
3167 (class operand_compare): New.
3168 * tree.c (add_expr): Remove.
3169
3170 2019-10-30 Martin Liska <mliska@suse.cz>
3171
3172 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
3173 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
3174
3175 2019-10-30 Martin Liska <mliska@suse.cz>
3176
3177 PR lto/91393
3178 PR lto/88220
3179 * cgraph.c (cgraph_node::get_create): Overwrite node->order
3180 from a first_clone in order to get proper LTO section
3181 in LTO stream.
3182 (cgraph_node::get_untransformed_body):
3183 Use lto_get_section_data where symtab_node::order
3184 must be provided.
3185 * cgraphclones.c (cgraph_node::find_replacement):
3186 Update also symbol order.
3187 * ipa-fnsummary.c (ipa_fn_summary_read):
3188 Use new function lto_get_summary_section_data.
3189 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3190 * ipa-icf.c (sem_item_optimizer::read_summary):
3191 Likewise.
3192 * ipa-prop.c (ipa_prop_read_jump_functions):
3193 Likewise.
3194 (ipcp_read_transformation_summaries): Likewise.
3195 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3196 * lto-cgraph.c (input_node): Add also order_base.
3197 (input_varpool_node): Likewise.
3198 (input_cgraph_1): Assign the order_base.
3199 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3200 * lto-opts.c (lto_write_options): Pass new argument.
3201 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3202 (lto_get_summary_section_data): New.
3203 (lto_get_raw_section_data): Add order argument.
3204 (lto_create_simple_input_block): Likewise.
3205 * lto-section-out.c (lto_destroy_simple_output_block):
3206 Likewise.
3207 * lto-streamer-in.c (lto_input_toplevel_asms):
3208 Use lto_get_summary_section_data.
3209 (lto_input_mode_table): Likewise.
3210 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3211 (lto_output_toplevel_asms): Pass new argument.
3212 (copy_function_or_variable): Likewise.
3213 (produce_lto_section):Likewise.
3214 (produce_symtab): Likewise.
3215 (lto_write_mode_table): Likewise.
3216 (produce_asm_for_decls): Likewise.
3217 * lto-streamer.c (lto_get_section_name): Concat symbol name
3218 and symbol order.
3219 * lto-streamer.h (lto_get_section_data): Add order argument.
3220 (lto_get_summary_section_data): New.
3221 (lto_get_raw_section_data): Add order argument.
3222 (lto_get_section_name): Likewise.
3223 * varpool.c (varpool_node::get_constructor): Pass order argument.
3224
3225 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3226
3227 PR tree-optimization/92262
3228 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3229 ubase or cbase here.
3230 (remove_unused_ivs): Unshare comp before using it.
3231
3232 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3233
3234 * ipa-prop.c (update_jump_functions_after_inlining):
3235 Watch for missing summaries.
3236
3237 2019-10-30 Richard Biener <rguenther@suse.de>
3238
3239 PR tree-optimization/65930
3240 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3241 chains also allow a leading and trailing conversion.
3242 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3243 intermediate reduction chains.
3244 (vect_analyze_slp_instance): Likewise. Build a SLP
3245 node for a trailing conversion manually.
3246
3247 2019-10-30 Martin Liska <mliska@suse.cz>
3248
3249 * cgraph.c (cgraph_node::local_info): Transform to ...
3250 (cgraph_node::local_info_node): ... this.
3251 (cgraph_node::dump): Remove cgraph_local_info and
3252 put its fields directly into cgraph_node.
3253 (cgraph_node::get_availability): Likewise.
3254 (cgraph_node::make_local): Likewise.
3255 (cgraph_node::verify_node): Likewise.
3256 * cgraph.h (struct GTY): Likewise.
3257 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3258 (duplicate_thunk_for_node): Likewise.
3259 (cgraph_node::create_clone): Likewise.
3260 (cgraph_node::create_virtual_clone): Likewise.
3261 (cgraph_node::create_version_clone): Likewise.
3262 * cgraphunit.c (cgraph_node::reset): Likewise.
3263 (cgraph_node::finalize_function): Likewise.
3264 (cgraph_node::add_new_function): Likewise.
3265 (analyze_functions): Likewise.
3266 * combine.c (setup_incoming_promotions): Likewise.
3267 * config/i386/i386.c (ix86_function_regparm): Likewise.
3268 (ix86_function_sseregparm): Likewise.
3269 (init_cumulative_args): Likewise.
3270 * ipa-cp.c (determine_versionability): Likewise.
3271 (count_callers): Likewise.
3272 (set_single_call_flag): Likewise.
3273 (initialize_node_lattices): Likewise.
3274 (estimate_local_effects): Likewise.
3275 (create_specialized_node): Likewise.
3276 (identify_dead_nodes): Likewise.
3277 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3278 (ipa_fn_summary_generate): Likewise.
3279 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3280 (process_hsa_functions): Likewise.
3281 * ipa-icf.c (set_local): Likewise.
3282 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3283 * ipa-inline.c (speculation_useful_p): Likewise.
3284 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3285 (ipa_profile): Likewise.
3286 * ipa-split.c (split_function): Likewise.
3287 (execute_split_functions): Likewise.
3288 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3289 (ipa_sra_ipa_function_checks): Likewise.
3290 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3291 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3292 * lto-cgraph.c (lto_output_node): Likewise.
3293 (input_overwrite_node): Likewise.
3294 * multiple_target.c (expand_target_clones): Likewise.
3295 * omp-simd-clone.c (simd_clone_create): Likewise.
3296 * trans-mem.c (expand_call_tm): Likewise.
3297 (ipa_tm_mayenterirr_function): Likewise.
3298 (ipa_tm_diagnose_tm_safe): Likewise.
3299 (ipa_tm_diagnose_transaction): Likewise.
3300 (ipa_tm_create_version): Likewise.
3301 (ipa_tm_transform_calls_redirect): Likewise.
3302 (ipa_tm_execute): Likewise.
3303 * tree-inline.c (expand_call_inline): Likewise.
3304
3305 2019-10-29 Martin Liska <mliska@suse.cz>
3306
3307 * symbol-summary.h (function_summary): Pass memory location
3308 to underlaying hash_map (or vec).
3309 (V>::fast_function_summary): Likewise.
3310
3311 2019-10-29 Martin Liska <mliska@suse.cz>
3312
3313 * ggc.h (ggc_alloc_no_dtor): New function.
3314 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3315 destructor and ggc_free.
3316 (ipa_free_size_summary): Call delete instead
3317 of release.
3318 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3319 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3320 (ipa_free_all_edge_args): Call destructor and ggc_free.
3321 (ipa_free_all_node_params): Likewise.
3322 (ipcp_free_transformation_sum): Likewise.
3323 * ipa-prop.h (ipa_check_create_node_params):
3324 Call new ggc_alloc_no_dtor.
3325 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3326 (ipa_sra_analysis): Call destructor and ggc_free.
3327 Replace release with delete operator.
3328 * symbol-summary.h (release): Remove ..
3329 (V>::~fast_function_summary): and move logic here.
3330 Likewise for other classes.
3331
3332 2019-10-29 Richard Biener <rguenther@suse.de>
3333
3334 PR tree-optimization/92260
3335 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3336 lane-reducing ops.
3337
3338 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3339
3340 PR tree-optimization/88915
3341 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3342 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3343 and make the valueize function pointer also take a void pointer.
3344 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3345 around vn_valueize, to call it without a context.
3346 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3347 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3348 (~_loop_vec_info): Release epilogue_vinfos.
3349 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3350 number of iterations of epilogue.
3351 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3352 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3353 versioning threshold needed for main loop.
3354 (vect_analyze_loop): Likewise.
3355 (find_in_mapping): New helper function.
3356 (update_epilogue_loop_vinfo): New function.
3357 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3358 on main loop and call update_epilogue_loop_vinfo to update it.
3359 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3360 stmts on loop preheader edge.
3361 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3362 we decided to vectorize epilogues. Update epilogues NITERS and
3363 construct ADVANCE to update epilogues data references where needed.
3364 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3365 (vect_do_peeling, vect_update_inits_of_drs,
3366 determine_peel_for_niter, vect_analyze_loop): Add or update
3367 declarations.
3368 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3369 created loop_vec_info's for epilogues when available. Otherwise analyse
3370 epilogue separately.
3371
3372 2019-10-29 Richard Biener <rguenther@suse.de>
3373
3374 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3375 example.
3376
3377 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3378
3379 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3380 index for the COND_EXPR from stmt_info rather than reduc_info.
3381
3382 2019-10-29 Richard Biener <rguenther@suse.de>
3383
3384 PR tree-optimization/65930
3385 * tree-vect-loop.c (check_reduction_path): Relax single-use
3386 check allowing out-of-loop uses.
3387 (vect_is_simple_reduction): SLP reduction chains cannot have
3388 intermediate stmts used outside of the loop.
3389 (vect_create_epilog_for_reduction): The adjustment might need
3390 to be converted.
3391 (vectorizable_reduction): Annotate live stmts of the reduction
3392 chain with STMT_VINFO_REDUC_DEF.
3393 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3394
3395 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3396
3397 * calls.c (pass_by_reference): Leave the target to decide whether
3398 POLY_INT_CST-sized arguments should be passed by value or reference,
3399 rather than forcing them to be passed by reference.
3400 (must_pass_in_stack_var_size): Likewise.
3401 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3402 V31_REGNUM to P15_REGNUM.
3403 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3404 Take an extra "silent_p" parameter, defaulting to false.
3405 (aarch64_sve::svbool_type_p): Declare.
3406 (aarch64_sve::nvectors_if_data_type): Likewise.
3407 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3408 (aarch64_frame::reg_offset): Turn into poly_int64s.
3409 (aarch64_frame::save_regs_size): Likewise.
3410 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3411 (aarch64_frame::sve_callee_adjust): Likewise.
3412 (aarch64_frame::spare_reg_reg): Likewise.
3413 (ARM_PCS_SVE): New arm_pcs value.
3414 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3415 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3416 (CUMULATIVE_ARGS::silent_p): Likewise.
3417 (BITS_PER_SVE_PRED): New macro.
3418 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3419 function. Reject aarch64_vector_pcs attributes on SVE functions.
3420 (aarch64_attribute_table): Use the above handler.
3421 (aarch64_sve_abi): New function.
3422 (aarch64_sve_argument_p): Likewise.
3423 (aarch64_returns_value_in_sve_regs_p): Likewise.
3424 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3425 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3426 descriptor for them.
3427 (aarch64_simd_decl_p): Delete.
3428 (aarch64_emit_cfi_for_reg_p): New function.
3429 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3430 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3431 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3432 as partly clobbered for the SVE PCS.
3433 (aarch64_function_ok_for_sibcall): Check whether the two functions
3434 use the same ABI, rather than checking specifically for whether
3435 they're aarch64_vector_pcs functions.
3436 (aarch64_pass_by_reference): Raise an error for attempts to pass
3437 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3438 if there are not enough free registers left, or if the argument is
3439 variadic.
3440 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3441 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3442 tuples in memory.
3443 (aarch64_layout_arg): Take a function_arg_info rather than
3444 individual properties. Handle SVE predicates, vectors and tuples.
3445 Raise an error if they are passed to unprototyped functions.
3446 (aarch64_function_arg): If the silent_p flag is set, suppress the
3447 usual error about using float registers without TARGET_FLOAT.
3448 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3449 it in the cumulative_args structure. Initialize aapcs_nprn and
3450 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3451 error about using float registers without TARGET_FLOAT.
3452 If the silent_p flag is not set, also raise an error about
3453 using SVE functions when SVE is disabled.
3454 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3455 and call it for SVE functions too. Update aapcs_nprn similarly
3456 to the other register counts.
3457 (aarch64_layout_frame): If a big-endian function needs to save
3458 and restore Z8-Z15, search for a spare predicate that it can use.
3459 Store SVE predicates at the bottom of the register save area,
3460 followed by SVE vectors, then followed by the normal slots.
3461 Keep pointing the hard frame pointer at the base of the normal slots,
3462 above the SVE vectors. Update the various frame creation and
3463 tear-down strategies for the new layout, initializing the new
3464 sve_callee_adjust field. Add an additional layout for frames
3465 whose saved registers are all SVE registers.
3466 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3467 (aarch64_return_address_signing_enabled): Likewise.
3468 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3469 aarch64_reg_save_mode.
3470 (aarch64_adjust_sve_callee_save_base): New function.
3471 (aarch64_add_cfa_expression): Move earlier in file. Take the
3472 saved register as an rtx rather than a register number and use
3473 its mode for the MEM slot.
3474 (aarch64_save_callee_saves): Remove the mode argument and instead
3475 use aarch64_reg_save_mode to get the mode of each save slot.
3476 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3477 offsets. Allow GP offsets to be saved at a VL-based offset from
3478 the stack, handling this case using the frame pointer if available
3479 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3480 big-endian SVE functions; use normal moves for other SVE saves.
3481 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3482 returns true. Add explicit CFA notes when not storing via the
3483 stack pointer. Do not try to pair SVE saves.
3484 (aarch64_restore_callee_saves): Cope with poly_int64 register
3485 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3486 use normal moves for other SVE restores. Only add CFA restore notes
3487 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3488 SVE restores.
3489 (aarch64_get_separate_components): Always keep the first SVE save
3490 in the prologue if we need to use it as a stack probe. Don't allow
3491 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3492 Likewise the spare predicate register that they need. Update the
3493 offset calculation to account for the SVE save area. Use the
3494 appropriate range check for SVE LDR and STR instructions.
3495 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3496 (aarch64_process_components): Likewise. Update the offset
3497 calculation to account for the SVE save area. Only mark the
3498 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3499 Do not try to pair SVE saves.
3500 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3501 reg_offsets. When handling the final allocation, expect the
3502 first SVE register save to be part of the initial allocation
3503 and for it to act as a probe at SP. Account for the SVE callee
3504 save area in the dump information.
3505 (aarch64_expand_prologue): Update the frame diagram. Fold the
3506 SVE callee allocation into the initial allocation if stack clash
3507 protection is enabled. Use new variables to track the offset
3508 of the frame chain (and hard frame pointer) from the current
3509 stack pointer, and likewise the offset of the bottom of the
3510 register save area. Update calls to aarch64_save_callee_saves
3511 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3512 saving the FP&SIMD registers. Save the predicate registers.
3513 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3514 into account when setting the stack pointer from the frame pointer,
3515 and when deciding whether we can inherit the initial adjustment
3516 amount from the prologue. Restore the predicate registers after
3517 the vector registers, then apply sve_callee_adjust, then restore
3518 the general registers.
3519 (aarch64_secondary_reload): Don't use secondary SVE reloads
3520 for VNx16BImode.
3521 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3522 (aarch64_short_vector_p): Return false for SVE types.
3523 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3524 at the start of the function. Return false for SVE types.
3525 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3526 functions too.
3527 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3528 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3529 to big-endian targets for bytewise moves.
3530 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3531
3532 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3533 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3534 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3535
3536 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3537 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3538 aarch64-sve-builtins-base.o to extra_objs. Add
3539 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3540 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3541 (aarch64-sve-builtins-shapes.o): Likewise.
3542 (aarch64-sve-builtins-base.o): New rules.
3543 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3544 (aarch64_resolve_overloaded_builtin): Likewise.
3545 (aarch64_check_builtin_call): Likewise.
3546 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3547 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3548 pragma.
3549 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3550 (aarch64_svprfop): New enum.
3551 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3552 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3553 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3554 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3555 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3556 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3557 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3558 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3559 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3560 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3561 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3562 (aarch64_sve::mangle_builtin_type): Likewise.
3563 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3564 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3565 (aarch64_sve::expand_builtin): Likewise.
3566 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3567 (aarch64_sve_int_mode): Likewise.
3568 (aarch64_ptrue_all_mode): New function.
3569 (aarch64_convert_sve_data_to_pred): Make public.
3570 (svprfop_token): New function.
3571 (aarch64_output_sve_prefetch): Likewise.
3572 (aarch64_fold_sve_cnt_pat): Likewise.
3573 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3574 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3575 instead of gen_while_ult.
3576 (aarch64_replace_reg_mode): Make public.
3577 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3578 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3579 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3580 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3581 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3582 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3583 (aarch64_sve_ptrue_svpattern_p): Likewise.
3584 (aarch64_sve_pred_valid_immediate): Check
3585 aarch64_sve_ptrue_svpattern_p.
3586 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3587 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3588 functions.
3589 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3590 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3591 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3592 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3593 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3594 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3595 New unspecs.
3596 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3597 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3598 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3599 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3600 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3601 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3602 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3603 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3604 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3605 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3606 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3607 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3608 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3609 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3610 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3611 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3612 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3613 (Vesize): Handle partial vector modes.
3614 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3615 mode attributes.
3616 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3617 iterators.
3618 (s, paired_extend, inc_dec): New code attributes.
3619 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3620 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3621 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3622 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3623 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3624 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3625 UNSPEC_COND_FMULX.
3626 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3627 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3628 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3629 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3630 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3631 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3632 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3633 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3634 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3635 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3636 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3637 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3638 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3639 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3640 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3641 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3642 UNSPEC_COND_FSCALE.
3643 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3644 (binqops_op, binqops_op_rev, last_op): New int attributes.
3645 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3646 (fn, ab): New int attributes.
3647 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3648 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3649 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3650 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3651 UNSPEC_RBIT.
3652 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3653 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3654 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3655 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3656 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3657 UNSPEC_COND_FMULX.
3658 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3659 (brk_reg_con, brk_reg_opno): New int attributes.
3660 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3661 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3662 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3663 UNSPEC_COND_FMIN.
3664 (max_elem_bits): New int attribute.
3665 (min_elem_bits): Handle UNSPEC_RBIT.
3666 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3667 TRUNCATE as well as SUBREG.
3668 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3669 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3670 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3671 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3672 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3673 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3674 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3675 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3676 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3677 (aarch64_gather_scale_operand_h): New predicates.
3678 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3679 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3680 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3681 (*aarch64_sve_reinterpret<mode>): Allow any source register
3682 instead of requiring an exact match.
3683 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3684 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3685 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3686 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3687 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3688 (aarch64_update_ffrt): New patterns.
3689 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3690 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3691 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3692 (@aarch64_ld<fn>f1<mode>): New patterns.
3693 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3694 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3695 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3696 (@aarch64_ldnt1<mode>): New patterns.
3697 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3698 the scalar part of the address.
3699 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3700 scalar part of the addresse and add an alternative for handling
3701 nonzero offsets.
3702 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3703 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3704 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3705 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3706 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3707 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3708 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3709 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3710 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3711 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3712 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3713 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3714 (@aarch64_sve_prefetch<mode>): New patterns.
3715 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3716 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3717 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3718 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3719 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3720 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3721 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3722 (@aarch64_stnt1<mode>): New patterns.
3723 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3724 the scalar part of the address.
3725 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3726 the scalar part of the addresse and add an alternative for handling
3727 nonzero offsets.
3728 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3729 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3730 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3731 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3732 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3733 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3734 New patterns.
3735 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3736 (extract_last_<mode>): Generalize to...
3737 (@extract_<LAST:last_op>_<mode>): ...this.
3738 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3739 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3740 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3741 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3742 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3743 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3744 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3745 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3746 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3747 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3748 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3749 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3750 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3751 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3752 (*aarch64_adr_uxtw_unspec): Likewise.
3753 (*aarch64_adr_uxtw): Rename to...
3754 (*aarch64_adr_uxtw_and): ...this.
3755 (@aarch64_adr<mode>_shift): New expander.
3756 (*aarch64_adr_shift_sxtw): New pattern.
3757 (aarch64_<su>abd<mode>_3): Rename to...
3758 (@aarch64_pred_<su>abd<mode>): ...this.
3759 (<su>abd<mode>_3): Update accordingly.
3760 (@aarch64_cond_<su>abd<mode>): New expander.
3761 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3762 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3763 (*<su>mul<mode>3_highpart): Rename to...
3764 (@aarch64_pred_<optab><mode>): ...this.
3765 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3766 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3767 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3768 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3769 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3770 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3771 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3772 (*v<ASHIFT:optab><mode>3): Rename to...
3773 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3774 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3775 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3776 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3777 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3778 (@cond_asrd<mode>): New expander.
3779 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3780 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3781 (*sdiv_pow2<mode>3): Delete.
3782 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3783 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3784 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3785 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3786 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3787 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3788 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3789 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3790 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3791 (*add<SVE_F:mode>3): Rename to...
3792 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3793 for SVE_STRICT_GP.
3794 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3795 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3796 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3797 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3798 (*sub<SVE_F:mode>3): Rename to...
3799 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3800 for SVE_STRICT_GP.
3801 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3802 (*fabd<SVE_F:mode>3): Rename to...
3803 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3804 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3805 (*mul<SVE_F:mode>3): Rename to...
3806 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3807 for SVE_STRICT_GP.
3808 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3809 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3810 to...
3811 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3812 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3813 (*<nlogical><PRED_ALL:mode>3): Rename to...
3814 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3815 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3816 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
3817 (*<logical_nn><PRED_ALL:mode>3): Rename to...
3818 (aarch64_pred_<logical_nn><mode>_z): ...this.
3819 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
3820 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
3821 (*fma<SVE_I:mode>4): Rename to...
3822 (@aarch64_pred_fma<SVE_I:mode>): ...this.
3823 (*fnma<SVE_I:mode>4): Rename to...
3824 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
3825 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
3826 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
3827 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
3828 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
3829 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
3830 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
3831 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
3832 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
3833 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
3834 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
3835 (@aarch64_sve_tmad<mode>): Likewise.
3836 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
3837 (*aarch64_sel_dup<mode>): Rename to...
3838 (@aarch64_sel_dup<mode>): ...this.
3839 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
3840 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
3841 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
3842 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
3843 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
3844 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
3845 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
3846 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
3847 (*fcm<cmp_op><mode>): Rename to...
3848 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
3849 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3850 (*fcmuo<mode>): Rename to...
3851 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
3852 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
3853 (@aarch64_pred_fac<cmp_op><mode>): New expander.
3854 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
3855 (fold_extract_last_<mode>): Generalize to...
3856 (@fold_extract_<last_op>_<mode>): ...this.
3857 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
3858 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
3859 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
3860 DImode result explicit.
3861 (reduc_plus_scal_<mode>): Update accordingly.
3862 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
3863 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
3864 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
3865 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
3866 (*aarch64_sve_tbl<mode>): Rename to...
3867 (@aarch64_sve_tbl<mode>): ...this.
3868 (@aarch64_sve_compact<mode>): New pattern.
3869 (*aarch64_sve_dup_lane<mode>): Rename to...
3870 (@aarch64_sve_dup_lane<mode>): ...this.
3871 (@aarch64_sve_dupq_lane<mode>): New pattern.
3872 (@aarch64_sve_splice<mode>): Likewise.
3873 (aarch64_sve_<perm_insn><mode>): Rename to...
3874 (@aarch64_sve_<perm_insn><mode>): ...this.
3875 (*aarch64_sve_ext<mode>): Rename to...
3876 (@aarch64_sve_ext<mode>): ...this.
3877 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
3878 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
3879 to...
3880 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
3881 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3882 Rename to...
3883 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
3884 ...this.
3885 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
3886 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
3887 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
3888 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
3889 to...
3890 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
3891 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
3892 a "@" marker.
3893 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
3894 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
3895 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
3896 pattern.
3897 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
3898 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
3899 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
3900 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
3901 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
3902 "@" marker.
3903 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
3904 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
3905 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
3906 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
3907 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
3908 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
3909 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
3910 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
3911 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
3912 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
3913 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
3914 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
3915 (aarch64_sve_cnt_pat): Likewise.
3916 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3917 (*aarch64_sve_incsi_pat): Likewise.
3918 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3919 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3920 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3921 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3922 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3923 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
3924 (*aarch64_sve_decsi_pat): Likewise.
3925 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
3926 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
3927 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
3928 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
3929 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
3930 (@aarch64_pred_cntp<mode>): Likewise.
3931 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3932 New expander.
3933 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3934 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3935 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3936 New expander.
3937 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3938 New pattern.
3939 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
3940 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3941 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
3942 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3943 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
3944 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3945 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
3946 New expander.
3947 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
3948 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
3949 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3950 New expander.
3951 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
3952 New pattern.
3953 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
3954 expander.
3955 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
3956 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
3957 expander.
3958 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
3959 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
3960 expander.
3961 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
3962 * config/aarch64/arm_sve.h: New file.
3963 * config/aarch64/aarch64-sve-builtins.h: Likewise.
3964 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
3965 * config/aarch64/aarch64-sve-builtins.def: Likewise.
3966 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
3967 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
3968 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
3969 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
3970 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
3971 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
3972
3973 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3974
3975 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
3976 New pattern.
3977 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
3978 SVE modes.
3979
3980 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3981
3982 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
3983 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
3984 FFRT_REGNUM + 1.
3985 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
3986 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
3987 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
3988 (aarch64_hard_regno_nregs): Handle the new register classes.
3989 (aarch64_hard_regno_mode_ok): Likewise.
3990 (aarch64_regno_regclass): Likewise.
3991 (aarch64_class_max_nregs): Likewise.
3992 (aarch64_register_move_cost): Likewise.
3993 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
3994 as general register_operands.
3995
3996 2019-10-29 Martin Liska <mliska@suse.cz>
3997
3998 * ggc-common.c: One can't subtract unsigned types
3999 in compare function.
4000
4001 2019-10-29 Martin Liska <mliska@suse.cz>
4002
4003 * cgraphunit.c (symbol_table::compile): Pass
4004 title as dump_memory_report argument.
4005 * toplev.c (dump_memory_report): New argument.
4006 (finalize): Pass new argument.
4007 * toplev.h (dump_memory_report): Add argument.
4008
4009 2019-10-29 Martin Liska <mliska@suse.cz>
4010
4011 * ggc-common.c: Move Leak to the first column.
4012
4013 2019-10-29 Martin Liska <mliska@suse.cz>
4014
4015 * cgraphunit.c (symbol_table::compile): Remove argument
4016 for dump_memory_report.
4017 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4018 (compare_final): Remove in order to make report
4019 better readable.
4020 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4021 * mem-stats.h (mem_alloc_description::get_list):
4022 Do not pass cmp.
4023 (mem_alloc_description::dump): Likewise here.
4024 * toplev.c (dump_memory_report): Remove final
4025 argument.
4026 (finalize): Likewise.
4027 * toplev.h (dump_memory_report): Remove argument.
4028
4029 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4030
4031 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4032 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4033 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4034 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4035 accept "const".
4036
4037 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4038
4039 * coretypes.h (string_int_pair): New typedef.
4040 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4041 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4042 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4043
4044 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4045
4046 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
4047 (simulate_builtin_function_decl): Declare.
4048 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
4049 (LANG_HOOKS_INITIALIZER): Include it.
4050 * langhooks.c (add_builtin_function_common): Rename to...
4051 (build_builtin_function): ...this. Add a location parameter and use
4052 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
4053 the decl instead.
4054 (add_builtin_function): Update accordingly, passing the returned
4055 decl to the lang hook.
4056 (add_builtin_function_ext_scope): Likewise
4057 (simulate_builtin_function_decl): New function.
4058
4059 2019-10-29 Jakub Jelinek <jakub@redhat.com>
4060
4061 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
4062 example, use actual names of supported offload targets.
4063
4064 PR target/92258
4065 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
4066
4067 2019-10-28 Martin Sebor <msebor@redhat.com>
4068
4069 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
4070 (handle_store): Pass argument to get_addr_stridx.
4071
4072 2019-10-28 Martin Sebor <msebor@redhat.com>
4073
4074 PR tree-optimization/92226
4075 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
4076 the offset is in the open range outlined by SI's length.
4077
4078 2019-10-28 Martin Sebor <msebor@redhat.com>
4079
4080 PR c/66970
4081 * doc/cpp.texi (__has_builtin): Document.
4082 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
4083
4084 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4085
4086 PR target/82981
4087 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
4088 doubleword and low doubleword result of multiplication on
4089 MIPS64R6.
4090
4091 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
4092 pure qualifier to the built-in.
4093 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
4094 built-ins.
4095 (struct mips_builtin_description): Add is_pure flag.
4096 (mips_init_builtins): Mark built-in as pure if the flag in the
4097 corresponding mips_builtin_description struct is set.
4098
4099 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
4100 alternative which covers the floating-point input value. Also
4101 forbid the split of insert.d pattern for floating-point values.
4102
4103 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
4106 * config/riscv/riscv-sr.c: New file.
4107 * config/riscv/riscv.c (riscv_reorg): New function.
4108 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4109 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
4110 (riscv_remove_unneeded_save_restore_calls): Declare.
4111 * config/riscv/t-riscv (riscv-sr.o): New build rule.
4112
4113 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4114
4115 PR tree-optimization/92163
4116 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
4117 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
4118 before calling bitmap_set_bit.
4119 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
4120 delete_dead_or_redundant_assignment.
4121 (dse_dom_walker::dse_optimize_stmt): Likewise.
4122 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
4123
4124 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4125
4126 PR middle-end/91272
4127 * tree-vect-stmts.c (vectorizable_condition): Support
4128 EXTRACT_LAST_REDUCTION with fully-masked loops.
4129
4130 2019-10-28 Richard Biener <rguenther@suse.de>
4131
4132 PR tree-optimization/92252
4133 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
4134 STMT_VINFO_REDUC_IDX when swapping operands.
4135
4136 2019-10-28 Richard Biener <rguenther@suse.de>
4137
4138 PR tree-optimization/92241
4139 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
4140 we failed to update the reduction index do not use the pattern
4141 stmts for the reduction chain.
4142 (vectorizable_reduction): When the reduction chain is corrupt,
4143 fail.
4144 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
4145 fail to update the reduction chain.
4146
4147 2019-10-28 Richard Biener <rguenther@suse.de>
4148
4149 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4150 STMT_VINFO_REDUC_IDX from the actual stmt.
4151 (vect_transform_reduction): Likewise.
4152 (vectorizable_reduction): Compute the reduction chain length,
4153 do not recompute the reduction operand index. Remove no longer
4154 necessary restriction for condition reduction chains.
4155
4156 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4157
4158 PR target/92225
4159 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
4160 condition for V2DImode.
4161
4162 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4163
4164 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
4165 Remove %k operand modifier.
4166 (*vec_extractv2df_1_sse): Remove %q operand modifier.
4167
4168 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
4169
4170 PR rtl-optimization/92007
4171 * cfgcleanup.c (thread_jump): Add an assertion that we don't
4172 call it after reload if hot/cold partitioning has been done.
4173 (class pass_postreload_jump): Rename to
4174 pass_jump_after_combine.
4175 (make_pass_postreload_jump): Rename to
4176 make_pass_jump_after_combine.
4177 * passes.def(pass_postreload_jump): Move before reload, rename
4178 to pass_jump_after_combine.
4179 * tree-pass.h (make_pass_postreload_jump): Rename to
4180 make_pass_jump_after_combine.
4181
4182 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
4183
4184 PR ipa/92242
4185 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4186 for missing EDGE_REF
4187 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4188
4189 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4190
4191 PR tree-optimization/88760
4192 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4193 Enable -funroll-loops for -O2 and above.
4194 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4195 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4196 do not turn on web and rngreg implicitly, if the unroller is not
4197 explicitly enabled.
4198
4199 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4200
4201 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4202 jump functions.
4203
4204 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4205
4206 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4207 * cgraph.h (cgraph_node::rtl_info): Likewise.
4208
4209 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4210
4211 * ipa-cp.c (propagate_constants_across_call): If args are not available
4212 just drop everything to varying.
4213 (find_aggregate_values_for_callers_subset): Watch for missing
4214 edge summary.
4215 (find_more_scalar_values_for_callers_subs): Likewise.
4216 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4217 update_jump_functions_after_inlining, propagate_controlled_uses):
4218 Watch for missing summaries.
4219 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4220 is finished.
4221 (ipa_write_node_info): Watch for missing summaries.
4222 (ipa_read_edge_info): Create new ref.
4223 (ipa_edge_args_sum_t): Add remove.
4224 (IPA_EDGE_REF_GET_CREATE): New macro.
4225 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4226 edge summary.
4227 (remap_edge_change_prob): Likewise.
4228
4229 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4230
4231 * ipa-inline-transform.c (inline_call): update function summaries
4232 after expanidng thunk.
4233
4234 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4235
4236 * ipa-icf.c (sem_function::merge): Update function summaries.
4237 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4238
4239 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4240
4241 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4242 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4243 operand already has scalar mode.
4244 (iptr): Remove SF/DF.
4245
4246 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4247
4248 PR target/91289
4249 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4250 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4251 this.
4252
4253 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4254
4255 * config/i386/sse.md
4256 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4257 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4258 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4259 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4260 <sse>_vmmaskcmp<mode>3):
4261 Change predicates from vector_operand to nonimmediate_operand,
4262 constraints xBm to xm, since scalar operations don't need
4263 memory address alignment.
4264 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4265 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4266 round_saeonly_nimm_predicate with
4267 round_saeonly_nimm_scalar_predicate.
4268 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4269 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4270 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4271 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4272 avx512f_vmfmadd_<mode>_mask3<round_name>,
4273 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4274 *avx512f_vmfmsub_<mode>_mask<round_name>,
4275 avx512f_vmfmsub_<mode>_mask3<round_name>,
4276 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4277 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4278 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4279 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4280 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4281 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4282 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4283 cvtusi2<ssescalarmodesuffix>32<round_name>,
4284 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4285 round_nimm_predicate with round_nimm_scalr_predicate.
4286 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4287 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4288 avx512er_vmrcp28<mode><round_saeonly_name>,
4289 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4290 ): Replace round_saeonly_nimm_predicate with
4291 round_saeonly_nimm_scalar_predicate.
4292 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4293 vector_operand with nonimmediate_operand.
4294 * config/i386/subst.md (round_scalar_nimm_predicate,
4295 round_saeonly_scalar_nimm_predicate): Replace
4296 vector_operand with nonimmediate_operand.
4297
4298 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4299
4300 PR target/89071
4301 * config/i386/i386.md (*rcpsf2_sse): Add
4302 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4303 (*rsqrtsf2_sse): Ditto.
4304 (*sqrt<mode>2_sse): Ditto.
4305 (sse4_1_round<mode>2): separate constraint vm, add
4306 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4307 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4308 by pass rpad.
4309 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4310 Ditto.
4311 (*sse_vmrsqrtv4sf2): Ditto.
4312 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4313 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4314 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4315 <iptr> pointer size modifier since vround support memory operand.
4316
4317 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4318
4319 PR target/85969
4320 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4321 static function.
4322
4323 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4324 Tobias Burnus <tobias@codesourcery.com>
4325
4326 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4327 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4328 common block decls.
4329
4330 2019-10-25 Richard Biener <rguenther@suse.de>
4331
4332 PR tree-optimization/92222
4333 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4334 (_slp_oprnd_info::second_pattern): Likewise.
4335 (_slp_oprnd_info::any_pattern): New.
4336 (vect_create_oprnd_info): Adjust.
4337 (vect_get_and_check_slp_defs): Compute whether any stmt is
4338 in a pattern.
4339 (vect_build_slp_tree_2): Avoid building up a node from scalars
4340 if any of the operand defs, not just the first, is in a pattern.
4341
4342 2019-10-25 Richard Biener <rguenther@suse.de>
4343
4344 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4345 swapping if we actually have to modify the IL on a shared stmt.
4346 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4347 because we no longer modify the IL.
4348
4349 2019-10-25 Martin Liska <mliska@suse.cz>
4350
4351 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4352
4353 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4354
4355 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4356 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4357 handled by vect_transform_reduction. Allow fully-masked loops
4358 to be used with reduction chains.
4359 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4360 operations in fully-masked loops.
4361 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4362 operations in fully-masked loops.
4363
4364 2019-10-25 Richard Biener <rguenther@suse.de>
4365
4366 * tree-vect-loop.c (vectorizable_reduction): Verify
4367 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4368 correctly.
4369 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4370 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4371 stmts.
4372
4373 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4374
4375 * gimplify.h (omp_construct_selector_matches): Declare.
4376 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4377 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4378 called function if needed for flag_openmp.
4379 (gimplify_scan_omp_clauses): Set ctx->code.
4380 (omp_construct_selector_matches): New function.
4381 * omp-general.h (omp_constructor_traits_to_codes,
4382 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4383 * omp-general.c (omp_constructor_traits_to_codes,
4384 omp_context_selector_matches, omp_resolve_declare_variant): New
4385 functions.
4386
4387 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4388 literal.
4389 * config/rx/rx.c (rx_print_operand): Likewise.
4390 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4391 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4392 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4393 Likewise.
4394 * genemit.c (emit_c_code): Likewise.
4395 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4396
4397 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4398
4399 * symbols-summary.h (fast_function_summary<T *, V>::release,
4400 fast_call_summary<T *, V>::release): Free m_vector.
4401
4402 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4403
4404 * cgraphunit.c (symbol_table::process_new_functions): Call
4405 ipa_free_size_summary.
4406 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4407 (devirtualization_time_bonus): Update.
4408 (ipcp_propagate_stage): Update.
4409 * ipa-fnsummary.c (ipa_size_summaries): New.
4410 (ipa_fn_summary_alloc): Alloc size summary.
4411 (dump_ipa_call_summary): Update.
4412 (ipa_dump_fn_summary): Update.
4413 (analyze_function_body): Update.
4414 (compute_fn_summary): Likewise.
4415 (ipa_get_stack_frame_offset): New function.
4416 (inline_update_callee_summaries): Do not update frame offsets.
4417 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4418 remove call and function summary.
4419 (ipa_update_overall_fn_summary): Update.
4420 (inline_read_section): Update.
4421 (ipa_fn_summary_write): Update.
4422 (ipa_free_fn_summary): Do not remove summaries.
4423 (ipa_free_size_summary): New.
4424 (release summary pass): Also run at WPA.
4425 * ipa-fnsummary.h (ipa_size_summary): Declare.
4426 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4427 estimated_self_stack_size.
4428 (ipa_size_summary_t): New type.
4429 (ipa_size_summaries): Declare.
4430 (ipa_free_size_summary): Declare.
4431 (ipa_get_stack_frame_offset): Declare.
4432 * ipa-icf.c (sem_function::merge): Update.
4433 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4434 (estimate_growth): Update.
4435 (growth_likely_positive): Update.
4436 (clone_inlined_nodes): Update.
4437 (inline_call): Update.
4438 * ipa-inline.c (caller_growth_limits): Update.
4439 (edge_badness): Update.
4440 (recursive_inlining): Update.
4441 (inline_small_functions): Update.
4442 (inline_to_all_callers_1): Update.
4443 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4444
4445 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4446
4447 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4448 (uavg<mode>3_ceil): ... This.
4449 (altivec_vavgs<VI_char>): Rename to...
4450 (avg<mode>3_ceil): ... This.
4451 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4452 VAVGUW, VAVGSW): Adjust.
4453
4454 2019-10-24 Nathan Sidwell <nathan@acm.org>
4455
4456 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4457
4458 2019-10-24 Martin Liska <mliska@suse.cz>
4459
4460 * symbol-summary.h (gt_pch_nx): Mark all functions
4461 with gcc_unreachable as we do not expect to be called.
4462
4463 2019-10-24 Richard Biener <rguenther@suse.de>
4464
4465 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4466 chains try harder with operand swapping and instead of
4467 putting a shifted chain into the reduction operands put
4468 a repetition of the final reduction op there as if we'd
4469 reassociate the expression.
4470
4471 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4472
4473 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4474 statics_not_read and statics_not_written to statics_read and
4475 statics_written respectively.
4476 (no_module_statics): New static var.
4477 (ipa_reference_get_not_read_global): Rename to ...
4478 (ipa_reference_get_read_global): ... this.
4479 (ipa_reference_get_not_written_global): Rename to ...
4480 (ipa_reference_get_written_global): ... this.
4481 (dump_static_vars_set_to_file): Dump no_module_statics.
4482 (copy_static_var_set): Add for propagation parameter.
4483 (ipa_init): Initialize no_module_statics.
4484 (ipa_ref_opt_summary_t::duplicate): Update.
4485 (ipa_ref_opt_summary_t::remove): Update.
4486 (propagate): Update.
4487 (write_node_summary_p): Look correctly for bitmap differences.
4488 (ipa_reference_write_optimization_summary): Update.
4489 (ipa_reference_read_optimization_summary): Update.
4490 * ipa-reference.h
4491 (ipa_reference_get_not_read_global): Rename to ...
4492 (ipa_reference_get_read_global): ... this.
4493 (ipa_reference_get_not_written_global): Rename to ...
4494 (ipa_reference_get_written_global): ... this.
4495 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4496 (call_may_clobber_ref_p_1): Update.
4497
4498 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4499
4500 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4501 and add comment.
4502 (msp430_hard_regno_nregs_with_padding): Remove.
4503
4504 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4505
4506 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4507 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4508 shift amount is between 1 and 4.
4509 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4510 is between 1 and 4.
4511
4512 2019-10-24 Richard Biener <rguenther@suse.de>
4513
4514 PR tree-optimization/92205
4515 * tree-vect-loop.c (vectorizable_reduction): Restrict
4516 search for alternate vectype_in to lane-reducing patterns
4517 we support.
4518
4519 2019-10-24 Richard Biener <rguenther@suse.de>
4520
4521 PR tree-optimization/92203
4522 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4523 Skip eliminating conversion stmts inserted by insertion.
4524
4525 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4526
4527 * config/s390/s390.c (s390_get_thread_pointer): Use
4528 gen_get_thread_pointer.
4529 (s390_expand_split_stack_prologue): Likewise.
4530 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4531 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4532 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4533 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4534 parameterized name.
4535
4536 2019-10-24 Richard Biener <rguenther@suse.de>
4537
4538 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4539 SLP discovery fails try to handle the reduction as part
4540 of SLP reduction discovery.
4541
4542 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4543
4544 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4545 declaration.
4546 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4547 attribute if it exists, rather than the insn size. If we use the
4548 insn size, adjust the size to remove the extra size that prefixed
4549 instructions take.
4550 (rs6000_adjust_insn_length): New function.
4551 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4552 update the instruction sized if prefixed instructions are used.
4553 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4554 (non_prefixed_length attribute): Delete.
4555 (num_insns attribute): New insn attribute to return the number of
4556 instructions.
4557 (max_prefixed_insns attribute): New insn attribute to return the
4558 maximum number of prefixed instructions in an insn.
4559 (length attribute): Do not adjust for prefix instructions here,
4560 punt to ADJUST_INSN_LENGTH.
4561 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4562 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4563 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4564 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4565 max_prefixed_insns and num_insns.
4566
4567 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4568 (movtd_64bit_nodm): Reformat.
4569 (mov<mode>_32bit): Reformat.
4570 (mov<mode>_softfloat): Reformat.
4571 (FMOVE128_GPR splitter): Reformat.
4572 (DIFD splitter): Reformat.
4573 (TI2 splitter): Reformat.
4574 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4575 bits of the offset for the memory address are non-zero, use PLWA
4576 if prefixed instructions are available.
4577
4578 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4579
4580 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4581
4582 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4583
4584 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4585 previous patch.
4586
4587 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4588
4589 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4590 (cmp_symbol_files): New.
4591 (lto_output): Copy sections in file order.
4592 * lto-streamer.h (lto_file_decl_data): Add field order.
4593
4594 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4595
4596 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4597 * ipa-reference.c (reference_vars_map_t): new type.
4598 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4599 (ipa_reference_var_uid): Implement.
4600 (varpool_node_hooks): New static var.
4601 (varpool_removal_hook): New function.
4602 (is_improper): Do not check bitmap for id==-1
4603 (get_static_name): Update.
4604 (ipa_init): Initialize new datastructures.
4605 (analyze_function): Do not recompute ids.
4606 (propagate): Free reference_vars_to_consider.
4607 (stream_out_bitmap): Update.
4608 (ipa_reference_read_optimization_summary): Update.
4609
4610 2019-10-23 qing zhao <qing.zhao@oracle.com>
4611
4612 PR gcov-profile/91971
4613 * coverage.c (coverage_init): Mangle the full path of filename when
4614 filename is a absolute path.
4615
4616 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4617
4618 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4619 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4620 (msp430_has_hwmult): New.
4621 (msp430_output_labelref):
4622 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4623 * config/msp430/msp430.md (mulhisi3): Likewise.
4624 (umulhisi3): Likewise.
4625 (mulsidi3): Likewise.
4626 (umulsidi3): Likewise.
4627
4628 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4629
4630 PR ipa/92074
4631 * params.def (inline-heuristics-hint-percent): Set to 600.
4632
4633 2019-10-23 Richard Biener <rguenther@suse.de>
4634
4635 PR tree-optimization/65930
4636 * tree-vect-loop.c (check_reduction_path): Allow conversions
4637 that only change the sign.
4638 (vectorizable_reduction): Relax latch def stmts we handle further.
4639
4640 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4641
4642 PR debug/90231
4643 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4644 (remove_unused_ivs): Use it instead of get_computation_at. When
4645 choosing best candidate, only consider candidates where
4646 get_debug_computation_at actually returns non-NULL.
4647
4648 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4649
4650 PR tree-optimization/92131
4651 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4652 range would be symbolic, drop to varying for any explicit overflow
4653 in the constant part or if neither range is a singleton.
4654
4655 2019-10-23 Martin Liska <mliska@suse.cz>
4656
4657 PR middle-end/81669
4658 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4659 Initialize m_data.
4660
4661 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4662
4663 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4664 int_mode_for_mode rather than mode_for_int_vector for scalars.
4665
4666 2019-10-23 Richard Biener <rguenther@suse.de>
4667
4668 PR tree-optimization/92179
4669 * tree-vect-stmts.c (vectorizable_shift): For shift args
4670 that are all the same remove type restriction in the SLP case.
4671 Adjust SLP code to handle converting of the shift arg to
4672 only apply in case the modes are different.
4673
4674 2019-10-23 Martin Liska <mliska@suse.cz>
4675
4676 PR ipa/91969
4677 * ipa-inline.c (recursive_inlining): Do not print
4678 when curr->count is not initialized.
4679
4680 2019-10-23 Richard Biener <rguenther@suse.de>
4681
4682 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4683 op from scalars in case there's a constant operand in its
4684 definition.
4685
4686 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4687
4688 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4689 against out of range max skip or log values.
4690
4691 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4692
4693 * cgraph.c (dump_graphviz): Change name to dump_name
4694
4695 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4696
4697 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4698 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4699 subtraction from a carry operation.
4700
4701 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4702
4703 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4704
4705 2019-10-22 Richard Biener <rguenther@suse.de>
4706
4707 PR tree-optimization/92173
4708 * tree-vect-loop.c (vectorizable_reduction): If
4709 vect_transform_reduction cannot handle code-generation try without
4710 the single-def-use-cycle optimization. Pass optab_vector to
4711 optab_for_tree_code to get vector shifts as that's what we'd
4712 generate.
4713
4714 2019-10-22 Michael Matz <matz@suse.de>
4715
4716 PR middle-end/90796
4717 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4718 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4719 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4720
4721 2019-10-22 Richard Biener <rguenther@suse.de>
4722
4723 PR tree-optimization/92173
4724 * tree-vect-loop.c (vectorizable_reduction): If
4725 vect_transform_reduction cannot handle code-generation try without
4726 the single-def-use-cycle optimization. Pass optab_vector to
4727 optab_for_tree_code to get vector shifts as that's what we'd
4728 generate.
4729
4730 2019-10-22 Martin Liska <mliska@suse.cz>
4731
4732 * diagnostic-format-json.cc (json_from_expanded_location):
4733 Use json::integer_number.
4734 * gcov.c (output_intermediate_json_line): Use new
4735 json::integer_number.
4736 (output_json_intermediate_file): Likewise.
4737 * json.cc (number::print): Move to ...
4738 (float_number::print): ... this.
4739 (integer_number::print): New.
4740 (test_writing_numbers): Move to ...
4741 (test_writing_float_numbers): ... this.
4742 (test_writing_integer_numbers): New.
4743 (json_cc_tests): Register test_writing_integer_numbers.
4744 * json.h (class value): Add forward declaration
4745 for float_number and integer_number.
4746 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4747 (class number): Move to ...
4748 (class float_number): ... this.
4749 (class integer_number): New.
4750 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4751 Use json::integer_number.
4752 (optrecord_json_writer::location_to_json): Likewise.
4753 (optrecord_json_writer::profile_count_to_json): Likewise.
4754 (optrecord_json_writer::pass_to_json): Likewise.
4755
4756 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4757
4758 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4759 autodetected_vector_size rather than vector_size is zero.
4760 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4761 Set autodetected_vector_size immediately after calling
4762 vect_analyze_loop_2. Check for a fatal error before advancing
4763 next_size.
4764
4765 2019-10-21 Jason Merrill <jason@redhat.com>
4766
4767 * lock-and-run.sh: Check for process existence rather than timeout.
4768
4769 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4770
4771 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4772 widening multiplication.
4773
4774 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4775
4776 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4777 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4778 type attribute.
4779 (subsi3_carryin_shift): Separate into register and constant controlled
4780 alternatives. Use shift_amount_operand for operand 4. Set shift
4781 attribute and simplify type attribute.
4782 (subsi3_carryin_shift_alt): Likewise.
4783 (rsbsi3_carryin_shift): Likewise.
4784 (rsbsi3_carryin_shift_alt): Likewise.
4785 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4786 and register controlled shifts into distinct alternatives.
4787 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4788 (andsi_not_shiftsi_si_scc): Likewise.
4789 (arm_cmpsi_negshiftsi_si): Likewise.
4790 (not_shiftsi): Remove redundant M constraint from alternative 1.
4791 (not_shiftsi_compare0): Likewise.
4792 (arm_cmpsi_insn): Remove redundant alternative 2.
4793 (cmpsi_shift_swp): Likewise.
4794 (sub_shiftsi): Likewise.
4795 (sub_shiftsi_compare0_scratch): Likewise.
4796 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4797 (thumb2_cmpsi_neg_shiftsi): Likewise.
4798
4799 2019-10-21 Richard Biener <rguenther@suse.de>
4800
4801 PR tree-optimization/92162
4802 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4803 STMT_VINFO_REDUC_IDX in reduc_info.
4804 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4805
4806 2019-10-21 Richard Biener <rguenther@suse.de>
4807
4808 * tree-vectorizer.h (_slp_tree::ops): New member.
4809 (SLP_TREE_SCALAR_OPS): New.
4810 (vect_get_slp_defs): Adjust prototype.
4811 * tree-vect-slp.c (vect_free_slp_tree): Release
4812 SLP_TREE_SCALAR_OPS.
4813 (vect_create_new_slp_node): Initialize it. New overload for
4814 initializing by an operands array.
4815 (_slp_oprnd_info::ops): New member.
4816 (vect_create_oprnd_info): Initialize it.
4817 (vect_free_oprnd_info): Release it.
4818 (vect_get_and_check_slp_defs): Populate the operands array.
4819 Do not swap operands in the IL when not necessary.
4820 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
4821 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
4822 swap operands in the operands array. Do not swap operands in
4823 the IL.
4824 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
4825 (vect_gather_slp_loads): Fix.
4826 (vect_detect_hybrid_slp_stmts): Likewise.
4827 (vect_slp_analyze_node_operations_1): Search for a internal
4828 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
4829 (vect_slp_analyze_node_operations): Skip ops-only stmts for
4830 the def-type push/pop dance.
4831 (vect_get_constant_vectors): Compute number_of_vectors here.
4832 Use SLP_TREE_SCALAR_OPS and simplify greatly.
4833 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
4834 (vect_get_slp_defs): Simplify greatly.
4835 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
4836 (vect_transform_reduction): Likewise.
4837 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
4838 (vectorizable_call): Likewise.
4839 (vectorizable_operation): Likewise.
4840 (vectorizable_load): Likewise.
4841 (vectorizable_condition): Likewise.
4842 (vectorizable_comparison): Likewise.
4843
4844 2019-10-21 Richard Biener <rguenther@suse.de>
4845
4846 PR tree-optimization/92161
4847 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
4848 for reductions.
4849
4850 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4851
4852 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
4853 (aarch64_rndr): New define_insn.
4854 (aarch64_rndrrs): Likewise.
4855 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
4856 (TARGET_RNG): Likewise.
4857 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
4858 argument.
4859 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
4860 Add fourth argument in prototype.
4861 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
4862 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
4863 (aarch64_init_rng_builtins): Define.
4864 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
4865 (aarch64_expand_rng_builtin): Define.
4866 (aarch64_general_expand_builtin): Use IGNORE argument, handle
4867 RNG builtins.
4868 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4869 __ARM_FEATURE_RNG when TARGET_RNG.
4870 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
4871
4872 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
4873
4874 * tree-vect-stmts (ensure_base_align): Only change alignment if new
4875 alignment is more restrictive.
4876
4877 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4878
4879 * tree-vectorizer.h (vec_info::vector_size): New member variable.
4880 (vect_update_max_nunits): Update comment.
4881 (current_vector_size): Delete.
4882 * tree-vect-stmts.c (current_vector_size): Likewise.
4883 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
4884 of current_vector_size.
4885 (get_mask_type_for_scalar_type): Likewise.
4886 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
4887 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
4888 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
4889 (vect_double_mask_nunits, vect_transform_loop): Likewise.
4890 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4891 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
4892
4893 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4894
4895 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
4896 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
4897 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
4898 accordingly.
4899
4900 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4901
4902 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
4903 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
4904 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
4905 call accordingly.
4906 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4907
4908 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4909
4910 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
4911 a loop_vec_info.
4912 (vect_set_loop_condition_masked): Update call accordingly.
4913
4914 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4915
4916 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
4917 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
4918 (simple_integer_narrowing): Update call accordingly.
4919 (vectorizable_conversion): Likewise.
4920
4921 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4922
4923 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
4924 (vectorizable_call): Update call accordingly.
4925
4926 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4927
4928 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
4929 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
4930 (duplicate_and_interleave): Update call accordingly.
4931 * tree-vect-loop.c (vectorizable_reduction): Likewise.
4932
4933 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4934
4935 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
4936 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
4937 (vect_get_constant_vectors): Update call accordingly.
4938 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
4939
4940 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4941
4942 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
4943 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
4944 (vect_prologue_cost_for_slp_op): Update call accordingly.
4945 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
4946 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
4947 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
4948 (get_mask_type_for_scalar_type): Likewise.
4949 (vect_get_vector_types_for_stmt): Likewise.
4950 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4951 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4952 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
4953 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
4954 (vect_split_statement, vect_convert_input): Likewise.
4955 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
4956 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
4957 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
4958 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
4959 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
4960 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
4961 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
4962 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
4963 (vect_recog_mask_conversion_pattern): Likewise.
4964 (vect_add_conversion_to_pattern): Likewise.
4965 (vect_recog_gather_scatter_pattern): Likewise.
4966 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
4967 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
4968
4969 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4970
4971 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
4972 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
4973 (vect_check_load_store_mask): Update call accordingly.
4974 (vect_get_mask_type_for_stmt): Likewise.
4975 * tree-vect-patterns.c (check_bool_pattern): Likewise.
4976 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
4977 (vect_convert_mask_for_vectype): Likewise.
4978
4979 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4980
4981 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
4982 a vec_info.
4983 (vect_recog_dot_prod_pattern): Update call accordingly.
4984 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
4985 (vect_recog_widen_sum_pattern): Likewise.
4986
4987 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4988
4989 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
4990 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
4991 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
4992 accordingly.
4993
4994 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
4995
4996 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
4997 get_vectype_for_scalar_type_and_size instead of
4998 get_vectype_for_scalar_type.
4999
5000 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5001
5002 * common.opt (-fcommon): Fix description.
5003
5004 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5005
5006 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5007 * config/i386/i386.c (ix86_pre_reload_split): New function.
5008 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5009 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5010 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5011 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5012 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5013 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5014 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5015 *<shift_insn><dwi>3_doubleword_mask,
5016 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5017 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5018 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5019 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5020 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5021 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5022 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5023 *avx2_<code>v8qiv8si2<mask_name>_2,
5024 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5025 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5026 *avx512f_<code>v8qiv8di2<mask_name>_2,
5027 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5028 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5029 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5030 sse4_2_pcmpistr): Likewise.
5031
5032 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5033
5034 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5035 now defaults to https.
5036
5037 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5038
5039 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5040 skip non-zero array accesses.
5041
5042 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5043
5044 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5045 and return a boolean success value. Move the allocation and
5046 initialization of the bb_vec_info to...
5047 (vect_slp_bb_region): ...here. Update call accordingly.
5048 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
5049 than in vect_slp_analyze_bb_1.
5050
5051 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5052
5053 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
5054 when processing the given datarefs for the first time and
5055 check_datarefs subsequently.
5056 (vect_slp_bb_region): New function, split out of...
5057 (vect_slp_bb): ...here. Don't recompute the region bounds and
5058 dataref sets when retrying with a different vector size.
5059
5060 2019-10-19 Jakub Jelinek <jakub@redhat.com>
5061 Uroš Bizjak <ubizjak@gmail.com>
5062
5063 PR target/92140
5064 * config/i386/predicates.md (int_nonimmediate_operand): New special
5065 predicate.
5066 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
5067 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
5068 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
5069 define_insn_and_split patterns.
5070
5071 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
5072
5073 * config/rs6000/rs6000.md: Delete out--of-date comment about
5074 special-casing integer loads.
5075
5076 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
5077
5078 * escaped_string.h (escaped_string): New header.
5079 * tree.c (escaped_string): Remove escaped_string class.
5080
5081 2019-10-18 Martin Sebor <msebor@redhat.com>
5082
5083 PR tree-optimization/92157
5084 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5085 compute_string_length to return a negative result.
5086
5087 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5088
5089 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
5090 (negvsi3, negvdi3): Delete.
5091 (negdi2_compare): Delete.
5092
5093 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5094
5095 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
5096 operations.
5097 (subdi3_compare1): Delete pattern.
5098 (subvsi3_borrow): New insn pattern.
5099 (subvsi3_borrow_imm): Likewise.
5100
5101 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5102
5103 * config/arm/arm.md (subv<mode>4): Delete.
5104 (subvdi4): New expander pattern.
5105 (subvsi4): Likewise. Handle some immediate values.
5106 (subvsi3_intmin): New insn pattern.
5107 (subvsi3): Likewise.
5108 (subvsi3_imm1): Likewise.
5109 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
5110 idioms.
5111
5112 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5113
5114 * config/arm/arm.md (usubvdi4): Allow registers or integers for
5115 incoming operands. Early split the calculation into SImode
5116 operations.
5117 (usubvsi3_borrow): New insn pattern.
5118 (usubvsi3_borrow_imm): Likewise.
5119
5120 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5121
5122 * config/arm/arm.md (usubv<mode>4): Delete expansion.
5123 (usubvsi4): New pattern. Allow some immediate values for inputs.
5124 (usubvdi4): New pattern.
5125
5126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5127
5128 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
5129 or second operand of the PLUS inside a DImode equality test to be
5130 sign-extend when selecting CC_Vmode.
5131 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
5132 instructions.
5133 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
5134 expand patterns.
5135 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
5136 (addsi3_cin_vout_0): Likewise.
5137 (adddi3_compareV): Delete.
5138
5139 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5140
5141 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
5142 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
5143 to transform this back into the summation version when that leads
5144 to smaller code.
5145
5146 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5147
5148 * config/arm/arm.md (addv<mode>4): Delete.
5149 (addvsi4): New pattern. Handle immediate values that the architecture
5150 supports.
5151 (addvdi4): New pattern.
5152 (addsi3_compareV): Rename to ...
5153 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
5154 and use COMPARE rather than NE.
5155 (addsi3_compareV_imm): New pattern.
5156 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
5157 a signed-overflow check.
5158
5159 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5160
5161 * config/arm/arm-modes.def (CC_ADC): New CC mode.
5162 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
5163 CC_ADCmode.
5164 (maybe_get_arm_condition_code): Handle CC_ADCmode.
5165 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
5166 with overflow.
5167 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
5168 expand patterns.
5169 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
5170 (addsi3_cin_cout_imm_insn): Likewise.
5171 (adddi3_compareC): Delete insn.
5172 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
5173
5174 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5175
5176 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
5177 * (uaddv<mode>4): Delete expansion pattern.
5178 (uaddvsi4): New pattern.
5179 (uaddvdi4): Likewise.
5180 (addsi3_compareC): Delete pattern, change callers to use
5181 addsi3_compare_op1.
5182 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
5183 reduce the number of alternatives and re-work type attribute handling.
5184 (addsi3_compare_op2): Clean up constraints to reduce the number of
5185 alternatives and re-work type attribute handling.
5186 (compare_addsi2_op0): Likewise.
5187 (compare_addsi2_op1): Likewise.
5188
5189 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5190
5191 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5192 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5193 for DImode operands.
5194 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5195 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5196 CC_NCVmode.
5197 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5198 (arm_cmpdi_unsigned): Delete.
5199
5200 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5201
5202 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5203 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5204 unchanged only if that will be cheaper.
5205 (arm_select_cc_mode): Recognize a swapped comparison that will
5206 be regenerated using RSBS or RSCS. Relax restriction on selecting
5207 CC_RSBmode.
5208 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5209 a constant.
5210 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5211 is CC_RSBmode.
5212 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5213 as CCmode.
5214 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5215 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5216
5217 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5218
5219 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5220 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5221 need these modes.
5222 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5223 of EQ, NE, LT, GE, LTU and GEU.
5224 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5225 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5226 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5227 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5228 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5229
5230 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5231
5232 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5233 operand 2.
5234 (cstoredi4): Similarly, but for operand 3.
5235 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5236 canonicalization of unsigned compares with a constant on Arm.
5237 Prefer using const+1 and adjusting the comparison over swapping the
5238 operands whenever the original constant was not valid.
5239 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5240 register here.
5241 (arm_validize_comparison): Do not force invalid DImode operands to
5242 registers here.
5243
5244 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5245
5246 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5247 return CC_Zmode if comparing against a constant where one word is
5248 zero.
5249 (arm_gen_compare_reg): Split DImode handling to ...
5250 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5251 against simple constants.
5252 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5253
5254 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5255
5256 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5257 (rsbsi3_carryin_shift_alt): Likewise.
5258
5259 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5260
5261 * config/arm/arm.md (negscc_borrow): New pattern.
5262 (mov_negscc): Don't split if the insn would match negscc_borrow.
5263 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5264 (thumb2_mov_negscc_strict_it): Likewise.
5265
5266 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5267
5268 * config/arm/arm.c (arm_insn_cost): New function.
5269 (TARGET_INSN_COST): Override default definition.
5270
5271 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5272
5273 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5274 borrow operations.
5275
5276 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5277
5278 * config/arm/arm.c (strip_carry_operation): New function.
5279 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5280 for SImode.
5281
5282 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5283
5284 * config/arm/predicates.md (arm_carry_operation): New special
5285 predicate.
5286 * config/arm/iterators.md (LTUGEU): Delete iterator.
5287 (cnb): Delete code attribute.
5288 (optab): Delete ltu and geu elements.
5289 * config/arm/arm.md (addsi3_carryin): Renamed from
5290 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5291 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5292 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5293 (addsi3_carryin_clobercc): Similarly.
5294 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5295 Thumb2 state.
5296
5297 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5298
5299 * config/arm/arm.md (arm_subdi3): Delete insn.
5300 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5301
5302 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5303
5304 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5305 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5306 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5307 return CC_RSBmode.
5308 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5309 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5310 expand.
5311 (subdi3): Rewrite to early-expand the sub-operations.
5312 (rsb_im_compare): New pattern.
5313 (negdi2): Delete.
5314 (negdi2_insn): Delete.
5315 (arm_negsi2): Correct type attribute to alu_imm.
5316 (negsi2_0compare): New insn pattern.
5317 (negsi2_carryin): New insn pattern.
5318
5319 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5320
5321 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5322 operand 2.
5323
5324 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5325
5326 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5327 to match canonical form.
5328
5329 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5330
5331 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5332 (extend<mode>di2): Likewise.
5333
5334 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5335
5336 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5337 * config/arm/arm.c (arm_decompose_di_binop): New function.
5338 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5339 If not generating Thumb-1 code, decompose the operation into 32-bit
5340 pieces.
5341 * add0si_carryin_<optab>: New pattern.
5342
5343 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5344
5345 * arm.md (adddi3): Only accept register operands.
5346 (arm_adddi3): Convert to simple insn with no split. Do not accept
5347 constants.
5348 (adddi_sesidi_di): Delete patern.
5349 (adddi_zesidi_di): Likewise.
5350 (uaddv<mode>4): Use LTU as condition for branch.
5351 (adddi3_compareV): Convert to simple insn with no split.
5352 (addsi3_compareV_upper): Delete pattern.
5353 (adddi3_compareC): Convert to simple insn with no split. Correct
5354 flags setting expression.
5355 (addsi3_compareC_upper): Delete pattern.
5356 (addsi3_compareC): Correct flags setting expression.
5357 (subdi3_compare1): Convert to simple insn with no split.
5358 (subsi3_carryin_compare): Delete pattern.
5359 (arm_subdi3): Convert to simple insn with no split.
5360 (subdi_zesidi): Delete pattern.
5361 (subdi_di_sesidi): Delete pattern.
5362 (subdi_zesidi_di): Delete pattern.
5363 (subdi_sesidi_di): Delete pattern.
5364 (subdi_zesidi_zesidi): Delete pattern.
5365 (negvdi3): Use s_register_operand.
5366 (negdi2_compare): Convert to simple insn with no split.
5367 (negdi2_insn): Likewise.
5368 (negsi2_carryin_compare): Delete pattern.
5369 (negdi_zero_extendsidi): Delete pattern.
5370 (arm_cmpdi_insn): Convert to simple insn with no split.
5371 (negdi2): Don't call gen_negdi2_neon.
5372 * config/arm/neon.md (adddi3_neon): Delete pattern.
5373 (subdi3_neon): Delete pattern.
5374 (negdi2_neon): Delete pattern.
5375 (splits for negdi2_neon): Delete splits.
5376
5377 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5378
5379 PR middle-end/92153
5380 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5381 than after it.
5382
5383 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5384
5385 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5386 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5387 new multilib variants and new mappings.
5388
5389 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5390
5391 PR target/86040
5392 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5393
5394 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5395 Richard Sandiford <richard.sandiford@arm.com>
5396
5397 PR target/86753
5398 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5399 and define hashmap traits for it.
5400 (loop_vec_info::scalar_cond_masked_set): New member.
5401 (vect_record_loop_mask): Adjust prototype.
5402 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5403 Implement method.
5404 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5405 vect_record_loop_mask.
5406 (vectorizable_live_operation): Likewise.
5407 (vect_record_loop_mask): New param scalar_mask. Add entry
5408 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5409 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5410 Pass it as last arg to vect_record_loop_mask.
5411 (vectorizable_call): Pass scalar_mask as last arg to
5412 vect_record_loop_mask.
5413 (vectorizable_store): Likewise.
5414 (vectorizable_load): Likewise.
5415 (vectorizable_condition): Check if another part of vectorized code
5416 applies loop_mask to condition or to it's inverse, and if yes,
5417 apply loop_mask to result of vector comparison.
5418
5419 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5420
5421 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5422
5423 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5424
5425 PR tree-optimization/92056
5426 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5427 before calling compute_builtin_object_size.
5428
5429 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5430
5431 PR target/65342
5432 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5433 (movdi_low_st): Delete.
5434 * config/rs6000/rs6000.c
5435 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5436 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5437 * config/rs6000/rs6000.md (movsi_low): Delete.
5438
5439 2019-10-17 Jason Merrill <jason@redhat.com>
5440
5441 * gimplify.h (get_initialized_tmp_var): Add default argument to
5442 post_p.
5443 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5444 NULL post_p argument.
5445 * targhooks (std_gimplify_va_arg_expr): Likewise.
5446
5447 2019-10-17 Richard Biener <rguenther@suse.de>
5448
5449 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5450 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5451 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5452 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5453 * tree-vect-loop.c (vect_is_simple_reduction): Set
5454 STMT_VINFO_REDUC_CODE.
5455 (vectorizable_reduction): Remove dead and redundant code, use
5456 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5457
5458 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5459
5460 Fix breakage introduced by r276985.
5461
5462 * config/avr/avr.c (avr_option_override): Remove set of
5463 PARAM_ALLOW_STORE_DATA_RACES.
5464 * common/config/avr/avr-common.c (avr_option_optimization_table)
5465 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5466
5467 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5468
5469 * config/i386/i386.h (processor_costs): Add clear_ratio.
5470 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5471 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5472 of 6 and move_ratio in all cost models.
5473
5474 2019-10-17 Richard Biener <rguenther@suse.de>
5475
5476 * tree-vect-loop.c (check_reduction_path): Compute reduction
5477 operation here.
5478 (vect_is_simple_reduction): Remove special-case of single-stmt
5479 reduction path detection.
5480
5481 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5482
5483 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5484
5485 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5486
5487 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5488 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5489 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5490 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5491 New combine patterns.
5492 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5493 above.
5494 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5495
5496 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5497
5498 * tree-vrp.c (value_range_base::dump): Display +INF for both
5499 pointers and integers when appropriate.
5500
5501 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5502
5503 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5504 when to use versioning threshold.
5505
5506 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5507
5508 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5509 outlined code from ...
5510 (vect_analyze_loop_2): ... here.
5511
5512 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5513
5514 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5515 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5516 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5517
5518 2019-10-17 Richard Biener <rguenther@suse.de>
5519
5520 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5521 (vect_is_simple_reduction): Move all validity checks ...
5522 (vectorizable_reduction): ... here. Compute whether we
5523 need a fold-left reduction here.
5524 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5525 both overloads, check needs_fold_left_reduction_p directly.
5526 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5527
5528 2019-10-17 Richard Biener <rguenther@suse.de>
5529
5530 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5531 TARGET_MEM_REF creation.
5532
5533 2019-10-17 Richard Biener <rguenther@suse.de>
5534
5535 PR tree-optimization/92129
5536 * tree-vect-loop.c (vectorizable_reduction): Also fail
5537 on GIMPLE_SINGLE_RHS.
5538
5539 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5540
5541 PR tree-optimization/92056
5542 * tree-object-size.c (cond_expr_object_size): Return early if then_
5543 processing resulted in unknown size.
5544
5545 PR tree-optimization/92115
5546 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5547 temporary if it could trap.
5548
5549 2019-10-17 Richard Biener <rguenther@suse.de>
5550
5551 PR debug/91887
5552 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5553 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5554
5555 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5556
5557 * tree-ssa-strlen.c (maybe_invalidate): Use
5558 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5559
5560 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5561 Jim Wilson <jimw@sifive.com>
5562
5563 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5564 regs to SIBCALL_REGS.
5565 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5566 passing regs to SIBCALL_REGS.
5567
5568 2019-10-16 Martin Sebor <msebor@redhat.com>
5569
5570 PR tree-optimization/83821
5571 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5572 the length of a string when available.
5573 (handle_builtin_memset) Add argument.
5574 (handle_store, strlen_check_and_optimize_call): Same.
5575 (check_and_optimize_stmt): Same. Pass it to callees.
5576
5577 2019-10-16 Martin Sebor <msebor@redhat.com>
5578
5579 PR tree-optimization/91996
5580 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5581 information.
5582 (compare_nonzero_chars): Add an overload.
5583 (count_nonzero_bytes): Add an argument. Call overload above.
5584 Handle non-constant lengths in some range.
5585 (handle_store): Add an argument.
5586 (check_and_optimize_stmt): Pass an argument to handle_store.
5587
5588 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5589
5590 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5591
5592 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5593
5594 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5595 operands which correspond to the same input-output register to
5596 have the same pseudo assigned to them.
5597
5598 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5599
5600 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5601
5602 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5603
5604 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5605 Apply reasonable limit to symbol offsets.
5606
5607 2019-10-16 Richard Biener <rguenther@suse.de>
5608
5609 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5610 (vect_is_simple_reduction): Delay checking to
5611 vectorizable_reduction and relax the checking.
5612 (vectorizable_reduction): Check we have a simple use. Check
5613 for bogus condition reductions.
5614 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5615 are looking at the last stmt in a pattern sequence when
5616 filling in backedge PHI values.
5617
5618 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5619 Jiufu Guo <guojiufu@linux.ibm.com>
5620
5621 PR target/70010
5622 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5623 the callee explicitly disables some isa_flags the caller is using.
5624
5625 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5626
5627 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5628
5629 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5630
5631 * genmodes.c (mode_data::order): New field.
5632 (blank_mode): Update accordingly.
5633 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5634 (make_vector_modes): Likewise.
5635 (VECTOR_MODES): Update use accordingly.
5636 (cmp_modes): Sort by the new order field ahead of sorting by size.
5637 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5638 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5639 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5640 (aarch64_classify_vector_mode): Handle the new partial modes.
5641 (aarch64_vl_bytes): New function.
5642 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5643 when counting the number of registers in an SVE mode.
5644 (aarch64_class_max_nregs): Likewise.
5645 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5646 in registers yet.
5647 (aarch64_classify_address): Treat partial vectors analogously
5648 to full vectors.
5649 (aarch64_print_address_internal): Consolidate the printing of
5650 MUL VL addresses, using aarch64_vl_bytes as the number of
5651 bytes represented by "VL".
5652 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5653
5654 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5655
5656 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5657 rather than known_lt when choosing frame layouts.
5658
5659 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5660
5661 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5662 that all the adjustments add up to the full frame size.
5663 Use crtl->outgoing_args_size directly as the final adjustment
5664 where appropriate.
5665
5666 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5667
5668 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5669 "frame" reference instead of always referring directly to
5670 "cfun->machine->frame".
5671
5672 2019-10-16 Richard Biener <rguenther@suse.de>
5673
5674 PR tree-optimization/92119
5675 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5676 against missing bswap lhs.
5677
5678 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5679
5680 PR middle-end/92033
5681 * poly-int.h (constant_lower_bound_with_limit): New function.
5682 (constant_upper_bound_with_limit): Likewise.
5683 * doc/poly-int.texi: Document them.
5684 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5685 into the worst-case INTEGER_CST bounds.
5686
5687 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5688
5689 PR ipa/91088
5690 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5691 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5692 * ipa-predicat.h (struct expr_eval_op): New struct.
5693 (expr_eval_ops): New typedef.
5694 (struct condition): Add type and param_ops fields, remove size field.
5695 (add_condition): Replace size parameter with type parameter, add
5696 param_ops parameter.
5697 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5698 (predicate::add_clause): Add comparisons on type and param_ops.
5699 (dump_condition): Add debug dump for param_ops.
5700 (remap_after_inlining): Adjust call arguments to add_condition.
5701 (add_condition): Replace size parameter with type parameter, add
5702 param_ops parameter. Unshare constant value used in conditions.
5703 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5704 parameter expressions using param_ops.
5705 (decompose_param_expr): New function.
5706 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5707 to replace call to unmodified_parm_or_parm_agg_item.
5708 (set_switch_stmt_execution_predicate): Likewise.
5709 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5710 with type.
5711 (inline_read_section): Read param_ops from summary stream.
5712 (ipa_fn_summary_write): Write param_ops to summary stream.
5713
5714 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5715
5716 PR rtl-optimization/92107
5717 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5718 expression written.
5719
5720 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5721
5722 * config/darwin.c: Update description of fix and continue.
5723
5724 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5725
5726 * config/darwin.c (darwin_binds_local_p): Update to call
5727 default_binds_local_p_3 () directly. amend comments.
5728
5729 2019-10-15 Richard Biener <rguenther@suse.de>
5730
5731 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5732 (tree_is_indexable): Use it.
5733 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5734 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5735 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5736
5737 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5738
5739 * config/msp430/msp430.md (zero_extendqipsi2): New.
5740 (zero_extendqisi2): Optimize case where src register and base dst
5741 register are the same.
5742 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5743 (zero_extendpsisi2): Optimize r->m case.
5744 Add unnamed insn patterns to catch insns combine searches for when
5745 optimizing pointer manipulation.
5746
5747 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5748
5749 * config/msp430/msp430.md: Group zero_extend* insns together.
5750
5751 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5752
5753 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5754 constraint.
5755 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5756 POST_INC.
5757 (msp430_subreg): Likewise.
5758 (msp430_split_addsi): Likewise.
5759 (msp430_print_operand_addr): Likewise.
5760 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5761 (USE_STORE_POST_INCREMENT): Define.
5762 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5763 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5764 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5765 (msp430_general_dst_operand): New.
5766 (msp430_general_dst_nonv_operand): New.
5767 (msp430_nonsubreg_operand): Remove.
5768 (msp430_nonsubreg_dst_operand): New.
5769 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5770 of defunct msp430_nonsubreg_operand.
5771 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5772
5773 2019-10-15 Richard Biener <rguenther@suse.de>
5774
5775 PR tree-optimization/91929
5776 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5777 (get_or_alloc_expr_for_name): Initialize it.
5778 (get_or_alloc_expr_for_constant): Likewise.
5779 (phi_translate_1): Copy it.
5780 (create_expression_by_pieces): Use the original location
5781 of the expression for the inserted stmt.
5782 (compute_avail): Record the location of the stmt for the
5783 expressions created.
5784
5785 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5786
5787 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5788 before using tree_to_uhwi.
5789
5790 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5791
5792 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5793
5794 2019-10-15 Richard Biener <rguenther@suse.de>
5795
5796 PR tree-optimization/92094
5797 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5798 do not adjust the reduction definition def type.
5799 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5800 defines the latch argument of the PHI.
5801
5802 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5803
5804 PR target/92035
5805 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5806 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5807 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5808 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5809 _mm_maskz_roundscale_round_sd): New intrinsics.
5810 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5811 __builtin_ia32_rndscales?_mask_round builtins instead of
5812 __builtin_ia32_rndscales?_round.
5813 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5814 __builtin_ia32_rndscalesd_round): Remove.
5815 (__builtin_ia32_rndscaless_mask_round,
5816 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
5817 * config/i386/sse.md
5818 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
5819 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5820 ... this, adjust and add subst atrributes to make it maskable.
5821
5822 2019-10-15 Richard Biener <rguenther@suse.de>
5823
5824 PR middle-end/92046
5825 * common.opt (fallow-store-data-races): New.
5826 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
5827 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
5828 * doc/invoke.texi (fallow-store-data-races): Document.
5829 (--param allow-store-data-races): Remove docs.
5830 * opts.c (default_options_table): Enable -fallow-store-data-races
5831 at -Ofast.
5832 (default_options_optimization): Do not enable --param
5833 allow-store-data-races at -Ofast.
5834 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
5835 instead of PARAM_ALLOW_STORE_DATA_RACES.
5836 * tree-ssa-loop-im.c (execute_sm): Likewise.
5837
5838 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5839
5840 PR tree-optimization/92085
5841 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5842 instead of calling it unconditionally after
5843 delete_dead_or_redundant_assignment and fix indentation.
5844
5845 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5846
5847 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
5848 TARGET_VFP_DOUBLE.
5849 (*fmsub<SDF:mode>4): Likewise.
5850 *fnmsub<SDF:mode>4): Likewise.
5851 (*fnmadd<SDF:mode>4): Likewise.
5852
5853 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
5854
5855 * doc/tree-ssa.texi: Update renamed macro name.
5856
5857 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5858
5859 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
5860 vector constants.
5861
5862 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
5863
5864 * config/darwin.c: Use unsigned ints for the picbase label
5865 counters, initialise the vars explicitly.
5866 (update_pic_label_number_if_needed): Move a variable declaration
5867 to where it's needed.
5868 (machopic_output_function_base_name): Use a more strict checking
5869 assert, and and unsigned int for the picbase label counter.
5870 (machopic_get_function_picbase): Likewise.
5871
5872 2019-10-14 Richard Biener <rguenther@suse.de>
5873
5874 PR middle-end/92046
5875 * dse.c (scan_insn): Use param max_active_local_stores.
5876 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
5877 based on optimization level.
5878 * loop-invariant.c (move_loop_invariants): Adjust
5879 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
5880 * opts.c (default_options_optimization): Do not adjust
5881 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
5882 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
5883
5884 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5885
5886 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
5887
5888 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
5889
5890 * config/arm/arm.c (arm_option_override): Don't override sched
5891 pressure algorithm.
5892
5893 2019-10-14 Richard Biener <rguenther@suse.de>
5894
5895 PR tree-optimization/92069
5896 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
5897 cycles do not set vect_nested_cycle on the latch definition.
5898
5899 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
5900
5901 * function-abi.h (expr_callee_abi): Declare.
5902 * function-abi.cc (expr_callee_abi): New function.
5903
5904 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
5905
5906 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
5907 into [1,MAX].
5908 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
5909 non-zero being represented as [1,MAX].
5910
5911 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5912
5913 * tree-sra.c (dump_access): Add missing braces.
5914
5915 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5916
5917 * config/darwin.c (machopic_indirection_name): Rework the
5918 function to emit linker-visible symbols only for indirections
5919 in the data section. Clean up the code and update comments.
5920
5921 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
5922
5923 * config/darwin.c (machopic_indirect_data_reference): Remove
5924 redundant code.
5925
5926 2019-10-13 Nathan Sidwell <nathan@acm.org>
5927
5928 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
5929
5930 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5931
5932 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
5933 c99_runtime.
5934
5935 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
5936
5937 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
5938 so non-virutal are before virutals.
5939 (output_function): Avoid body modifications.
5940
5941 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5942
5943 * config/pa/pa.c (pa_output_call): Load descriptor address to register
5944 %r22. Load function address before global pointer.
5945 (pa_attr_length_indirect_call): Adjust length of inline versions of
5946 $$dyncall.
5947 (pa_output_indirect_call): Remove fast inline version of $$dyncall
5948 before normal cases. Update inline $$dyncall sequences to preserve
5949 function descriptor address in register %r22.
5950 (TRAMPOLINE_CODE_SIZE): Adjust.
5951 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
5952 register %r22 contains trampoline address.
5953 (pa_trampoline_init): Adjust offsets.
5954 (pa_trampoline_adjust_address): Likewise.
5955 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
5956
5957 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5958
5959 PR target/67183
5960 * config/darwin.c (machopic_indirection): New field to flag
5961 non-lazy-symbol-pointers in the data section.
5962 (machopic_indirection_name): Compute if an indirection should
5963 appear in the data section.
5964 (machopic_output_data_section_indirection): New callback split
5965 from machopic_output_indirection.
5966 (machopic_output_stub_indirection): Likewise.
5967 (machopic_output_indirection): Retain the code for non-lazy
5968 symbol pointers in their regular section.
5969 (machopic_finish): Use the new callbacks to order the indirection
5970 output.
5971
5972 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5973
5974 * config/darwin-protos.h (machopic_finish): Delete.
5975 * config/darwin.c (machopic_finish): Make static.
5976
5977 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
5978
5979 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
5980 sections when building kernel extension code.
5981
5982 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
5983
5984 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
5985 later standard."
5986
5987 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
5988
5989 * config/pa/pa.c (pa_option_override): Remove trailing comma
5990 from warning.
5991
5992 2019-10-12 Jakub Jelinek <jakub@redhat.com>
5993
5994 PR middle-end/92063
5995 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
5996 <case VEC_COND_EXPR>: Return false with *handled = false.
5997 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
5998 recursing on the first operand.
5999 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6000 instead of tree_could_trap_p.
6001 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6002
6003 2019-10-11 Jim Wilson <jimw@sifive.com>
6004
6005 PR rtl-optimization/91860
6006 * combine.c (subst): If new_rtx is a constant, also check for
6007 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6008
6009 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6010
6011 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6012 INTVAL when calling store_bit_field.
6013
6014 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6015
6016 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6017 size.
6018
6019 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6020
6021 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6022 vectorizable_live_operation.
6023 (vectorizable_live_operation): Adjust parameters.
6024 * tree-vect-stmts.c (vect_init_vector,
6025 vect_gen_widened_results_half): Fix typo in function comment.
6026 (can_vectorize_live_stmts): Adjust function comment.
6027 Adjust parameters. Adjust call to vectorizable_live_operation.
6028 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6029 (vect_transform_stmt): Adjust function comment. Adjust call to
6030 can_vectorize_live_stmts.
6031 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6032
6033 2019-10-11 Richard Biener <rguenther@suse.de>
6034
6035 PR tree-optimization/90883
6036 PR tree-optimization/91091
6037 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6038 alias-sets both for recording VN table entries and continuing
6039 walking after translating through copies. Handle same-sized
6040 reads from SSA names by returning the plain SSA name.
6041 (eliminate_dom_walker::eliminate_stmt): Properly handle
6042 non-size precision stores in redundant store elimination.
6043
6044 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6045
6046 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
6047 (ggc_collect): Dump later to not interfere with release_page dump.
6048 (ggc_trim): New function.
6049 * ggc-none.c (ggc_trim): New.
6050 * ggc.h (ggc_trim): Declare.
6051
6052 2019-10-11 Richard Biener <rguenther@suse.de>
6053
6054 PR tree-optimization/92066
6055 PR tree-optimization/92046
6056 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6057 Fix bogus cost model check.
6058
6059 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6060
6061 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
6062 (LANG_HOOKS_DECLS): Add it.
6063 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
6064 update comment for omp_is_optional_argument.
6065 * omp-general.c (omp_is_allocatable_or_ptr): New.
6066 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
6067 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
6068 Fortran's optional arguments and allocatable/pointer scalars
6069 with use_device_addr.
6070
6071 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
6072
6073 PR target/77918
6074 * config/s390/2827.md: Add new opcodes.
6075 * config/s390/2964.md: Likewise.
6076 * config/s390/3906.md: Likewise.
6077 * config/s390/8561.md: Likewise.
6078 * config/s390/s390-builtins.def (s390_vfchesb): Use
6079 the new vec_cmpgev4sf_quiet_nocc.
6080 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
6081 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
6082 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
6083 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
6084 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
6085 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
6086 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
6087 * config/s390/s390-modes.def (CCSFPS): New mode.
6088 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
6089 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
6090 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
6091 (s390_expand_vec_compare): Use non-signaling patterns where
6092 necessary.
6093 (s390_reverse_condition): Support CCSFPS.
6094 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
6095 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
6096 (asm_fcmp_op): Likewise.
6097 (*smaxv2df3_vx): Use pattern for quiet comparison.
6098 (*sminv2df3_vx): Likewise.
6099 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
6100 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
6101 (vec_cmpgt<mode>_quiet_nocc): Likewise.
6102 (vec_cmplt<mode>_quiet_nocc): New expander.
6103 (vec_cmpge<mode>_quiet_nocc): New pattern.
6104 (vec_cmple<mode>_quiet_nocc): New expander.
6105 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
6106 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
6107 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
6108 (*vec_cmpge<mode>_signaling_nocc): Likewise.
6109 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
6110 (vec_cmpungt<mode>): New expander.
6111 (vec_cmpunge<mode>): Likewise.
6112 (vec_cmpuneq<mode>): Use quiet patterns.
6113 (vec_cmpltgt<mode>): Allow only on z14+.
6114 (vec_cmpordered<mode>): Use quiet patterns.
6115 (vec_cmpunordered<mode>): Likewise.
6116 (VEC_CMP_EXPAND): Add ungt and unge.
6117
6118 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6119
6120 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
6121 parameter.
6122 * lto-streamer-out.c: Include tree-dfa.h.
6123 (output_cfg): Do not use cfun.
6124 (lto_prepare_function_for_streaming): New.
6125 (output_function): Do not push cfun; do not initialize loop optimizer.
6126 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
6127 * passes.c (ipa_write_summaries): Use it.
6128 (ipa_write_optimization_summaries): Do not modify bodies.
6129 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
6130 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
6131 * tree-ssa-dse.c (pass_dse::execute): Update use of
6132 renumber_gimple_stmt_uids.
6133 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
6134
6135 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
6136
6137 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6138 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
6139
6140 2019-10-10 Joseph Myers <joseph@codesourcery.com>
6141
6142 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
6143 macros.
6144 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
6145 Also define DFP macros for these conditions.
6146 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
6147 DEC128_SUBNORMAL_MIN): Do not define.
6148 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
6149 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
6150
6151 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
6152 Sandra Loosemore <sandra@codesourcery.com>
6153
6154 PR middle-end/26241
6155 * doc/lto.texi (IPA): Reference to the IPA passes.
6156 * doc/passes.texi (Pass manager): Add node IPA passes and
6157 description for each IPA pass.
6158
6159 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6160
6161 * ipa-reference.c: Do not include splay-tree.h
6162 (reference_vars_to_consider): Turn to hash map.
6163 (get_static_name, ipa_init, analyze_function, propagate,
6164 stream_out_bitmap, ipa_reference_write_optimization_summary,
6165 ipa_reference_write_optimization_summary): Update.
6166
6167 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6168
6169 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
6170
6171 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
6172
6173 * config/darwin.c: Lookup Objective C metadata and force indirection
6174 for IVAR refs.
6175
6176 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
6177
6178 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
6179 addresses.
6180 (mem_operand_gpr): Add check for prefixed addresses.
6181 (mem_operand_ds_form): Add check for prefixed addresses.
6182 (rs6000_legitimate_offset_address_p): If we support prefixed
6183 addresses, check for a 34-bit offset instead of 16-bit.
6184 (rs6000_legitimate_address_p): Add check for prefixed addresses.
6185 Do not allow load/store with update if the address is prefixed.
6186 (rs6000_mode_dependent_address): If we support prefixed
6187 addresses, check for a 34-bit offset instead of 16-bit.
6188
6189 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6190
6191 PR target/77918
6192 * config/s390/vector.md (vcond_comparison_operator): New
6193 predicate.
6194 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6195
6196 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6197
6198 PR 87488
6199 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6200 -D.
6201 * configure.ac (--with-documentation-root-url): New option.
6202 * configure: Regenerate.
6203 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6204 option URL, add it as a new string field of the diagnostic option.
6205 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6206 (print_option_information): If get_option_url is non-NULL, call
6207 it, and if the result is non-NULL, potentially emit an escape
6208 sequence to markup the option text with the resulting URL.
6209 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6210 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6211 example of JSON output.
6212 * opts-diagnostic.h (get_option_url): New decl.
6213 * opts.c (get_option_url): New function.
6214 * toplev.c (general_init): Initialize the get_option_url callback.
6215
6216 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6217
6218 PR 87488
6219 * common.opt (fdiagnostics-urls=): New option.
6220 (diagnostic-url.h): Add SourceInclude.
6221 (diagnostic_url_rule): New enum.
6222 * diagnostic-color.c: Include "diagnostic-url.h".
6223 (diagnostic_urls_enabled_p): New function.
6224 * diagnostic-url.h: New file.
6225 * diagnostic.c: Include "diagnostic-url.h".
6226 (diagnostic_urls_init): New function.
6227 * diagnostic.h (diagnostic_urls_init): New decl.
6228 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6229 -fdiagnostics-urls to the list.
6230 (-fdiagnostics-urls): New option.
6231 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6232 (driver::global_initializations): Call diagnostic_urls_init.
6233 * opts-global.c (init_options_once): Likewise.
6234 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6235 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6236 show_urls.
6237 (pp_begin_url): New function.
6238 (pp_end_url): New function.
6239 (selftest::test_urls): New selftest.
6240 (selftest::pretty_print_c_tests): Call it.
6241 * pretty-print.h (pretty_printer::show_urls): New field.
6242 (pp_begin_url): New decl.
6243 (pp_end_url): New decl.
6244
6245 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6246
6247 PR target/92022
6248 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6249
6250 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6251
6252 PR target/88630
6253 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6254 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6255 also for TARGET_FPU_SH4_300.
6256 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6257 TARGET_SH4_300.
6258 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6259 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6260 (*negsf2_i): Split into ...
6261 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6262 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6263 (**abssf2_i): Split into ...
6264 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6265 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6266 (*negdf2_i): Split into ...
6267 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6268 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6269 (**abssf2_i): Split into ...
6270 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6271
6272 2019-10-10 Richard Biener <rguenther@suse.de>
6273
6274 PR middle-end/92046
6275 * opts.c (finish_options): Do not influence global --params
6276 from options that are adjustable per function.
6277 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6278 Apply --param adjustment based on active cost-model.
6279 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6280 further store-sinking when vectorization or if-conversion
6281 are not enabled.
6282
6283 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6284
6285 PR middle-end/92037
6286 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6287 rather than ggc_alloc_cleared to alloc symbol table.
6288 * toplev.c (general_init): Likewise.
6289 * cgraph.h (symbol_table): Explicitly construct every field.
6290
6291 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6292
6293 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6294 (PF_Z15): ... this.
6295 * config.gcc: Add z15 as option for --with-arch and --with-tune
6296 configure switches.
6297 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6298 error reporting for unsupported builtins.
6299 * config/s390/s390-opts.h (enum processor_type): Rename
6300 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6301 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6302 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6303 Likewise.
6304 * config/s390/s390-builtins.def: Likewise.
6305 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6306 (s390_expand_builtin): Add missing check for unsupported builtins.
6307 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6308 (s390_rtx_costs): Likewise.
6309 (s390_get_sched_attrmask): Rename arch13 to z15.
6310 (s390_get_unit_mask): Likewise.
6311 (s390_is_fpd): Likewise.
6312 (s390_is_fxd): Likewise.
6313 * config/s390/s390.h (enum processor_flags): Likewise.
6314 * config/s390/s390.md: Likewise.
6315 * config/s390/vector.md: Likewise.
6316 * config/s390/vx-builtins.md: Likewise.
6317 * config/s390/s390.opt: Add z15 to processor_type value.
6318
6319 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6320
6321 PR target/91035
6322 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6323 prototype.
6324 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6325 ("split_stack_data", "split_stack_call")
6326 ("split_stack_call_<mode>", "split_stack_cond_call")
6327 ("split_stack_cond_call_<mode>"): Remove.
6328 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6329 insn definition.
6330 * config/s390/s390.c (s390_output_split_stack_data): New function.
6331 (s390_expand_split_stack_prologue): Use the merged expander.
6332
6333 2019-10-09 Martin Sebor <msebor@redhat.com>
6334
6335 PR tree-optimization/90879
6336 * builtins.c (check_access): Avoid using maxbound when null.
6337 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6338 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6339 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6340 conditional.
6341 (get_range_strlen): Overwrite initial maxbound when non-null.
6342 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6343 changes.
6344 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6345 (used_only_for_zero_equality): New function.
6346 (handle_builtin_memcmp): Call it.
6347 (determine_min_objsize): Return an integer instead of tree.
6348 (get_len_or_size, strxcmp_eqz_result): New functions.
6349 (maybe_warn_pointless_strcmp): New function.
6350 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6351 between a longer string and a smaller array.
6352 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6353
6354 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6355
6356 * config/darwin.c (darwin_override_options): Make the check for
6357 Objective-C ABI version more specific for 64bit code.
6358
6359 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6360
6361 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6362 indicate that the new symbol is an indirection.
6363 (machopic_indirect_call_target): Likewise.
6364 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6365 (MACHO_SYMBOL_INDIRECTION_P): New.
6366 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6367
6368 2019-10-08 Jason Merrill <jason@redhat.com>
6369
6370 * doc/invoke.texi: Document -fconcepts-ts.
6371
6372 2019-10-09 Richard Biener <rguenther@suse.de>
6373
6374 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6375 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6376
6377 2019-10-08 Richard Biener <rguenther@suse.de>
6378
6379 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6380 (_stmt_vec_info::force_single_cycle): Likewise.
6381 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6382 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6383 * tree-vect-loop.c (vectorizable_reduction): Set
6384 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6385 (vect_transform_reduction): Use them to remove redundant code.
6386 (vect_transform_cycle_phi): Likewise.
6387
6388 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6389
6390 PR tree-optimization/90836
6391 * match.pd (popcount): New pattern.
6392
6393 2019-10-08 Martin Sebor <msebor@redhat.com>
6394
6395 PR middle-end/92026
6396 PR middle-end/92014
6397 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6398 again once nbytes has been set. Set the access size when not yet set.
6399
6400 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6401
6402 * config/darwin.c (machopic_select_section): Remove dead code for
6403 old Objective-C section selection method, replace with unreachable.
6404
6405 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6406
6407 * config/darwin.c (machopic_indirect_data_reference): Check for
6408 required indirections before making direct access to defined
6409 values.
6410 (machopic_output_indirection): Place the indirected pointes for
6411 required indirections into the non-lazy symbol pointers section.
6412 (darwin_encode_section_info):
6413 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6414 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6415
6416 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6417
6418 PR target/91994
6419 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6420 instead of ALL_SSE_REG to check if function call preserves some
6421 256-bit SSE registers.
6422
6423 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6424
6425 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6426 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6427 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6428
6429 2019-10-08 Richard Biener <rguenther@suse.de>
6430
6431 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6432 (_stmt_vec_info::is_reduc_info): Add.
6433 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6434 (vectorizable_condition): Remove.
6435 (vectorizable_shift): Likewise.
6436 (vectorizable_reduction): Adjust.
6437 (info_for_reduction): New.
6438 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6439 (vect_analyze_scalar_cycles_1): ... here.
6440 (vect_analyze_loop_operations): Adjust.
6441 (needs_fold_left_reduction_p): Simplify for single caller.
6442 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6443 for nested cycles not part of double reductions.
6444 (vect_model_reduction_cost): Pass in the reduction type.
6445 (info_for_reduction): New function.
6446 (vect_create_epilog_for_reduction): Use it, access reduction
6447 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6448 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6449 (vectorize_fold_left_reduction): Remove pointless assert.
6450 (vectorizable_reduction): Analyze the full reduction when
6451 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6452 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6453 stmt code-generation to vectorizable_* in most cases. Verify
6454 code-generation only for cases handled by
6455 vect_transform_reductuon.
6456 (vect_transform_reduction): Use info_for_reduction to get at
6457 reduction meta. Simplify.
6458 (vect_transform_cycle_phi): Likewise.
6459 (vectorizable_live_operation): Likewise.
6460 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6461 at the PHI node for STMT_VINFO_REDUC_TYPE.
6462 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6463 longer necessary code.
6464 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6465 (vectorizable_condition): Likewise. Get at reduction related
6466 info via info_for_reduction.
6467 (vect_analyze_stmt): Adjust.
6468 (vect_transform_stmt): Likewise.
6469 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6470 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6471
6472 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6473
6474 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6475 -fno-fp-int-builtin-inexact default for C2X.
6476
6477 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6478 Richard Biener <rguenther@suse.de>
6479
6480 PR tree-optimization/91532
6481 * tree-if-conv.c: Include tree-ssa-dse.h.
6482 (ifcvt_local_dce): Change param from bb to loop,
6483 and call dse_classify_store.
6484 (tree_if_conversion): Pass loop instead of loop->header as arg
6485 to ifcvt_local_dce.
6486 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6487 (delete_dead_or_redundant_assignment): Remove static qualifier from
6488 declaration, and add prototype in tree-ssa-dse.h.
6489 (dse_store_status): Move to tree-ssa-dse.h.
6490 (dse_classify_store): Remove static qualifier and add new tree param
6491 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6492 * tree-ssa-dse.h: New header.
6493
6494 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6495
6496 * config/darwin.c (machopic_output_indirection): Don't put
6497 hidden symbol indirections into the .data section, use the
6498 non-lazy symbol pointers section as normal.
6499 (darwin_encode_section_info): Record if a symbol is hidden.
6500 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6501 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6502
6503 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6504
6505 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6506 predicates instead of accessing bits directly.
6507 (machopic_indirect_call_target): Likewise.
6508 (machopic_output_indirection): Likewise.
6509 (darwin_encode_section_info): Improve description. Use renamed
6510 symbol flags. Use predicate macros for variables and functions.
6511 * config/darwin.h:
6512 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6513 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6514 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6515 (MACHO_SYMBOL_VARIABLE_P): New.
6516 (MACHO_SYMBOL_DEFINED_P):New.
6517 (MACHO_SYMBOL_STATIC_P): New.
6518 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6519 (SYMBOL_FLAG_SUBT_DEP): New.
6520 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6521
6522 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6523
6524 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6525 (msp430_expand_epilogue): Likewise.
6526 * config/msp430/predicates.md: Likewise.
6527 * config/msp430/msp430.md: Likewise.
6528 Replace blocks of 8 spaces with tabs.
6529
6530 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6531
6532 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6533 * config/msp430/msp430.c (msp430_split_addsi): New.
6534 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6535 a block of C code for splitting addsi.
6536
6537 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6538
6539 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6540 ix86_expand_rounddf_32): Reorder functions.
6541 * config/i386/i386-protos.h: Update.
6542
6543 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6544
6545 * config.in: Regenerate.
6546 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6547 Add new "Yx" constraint.
6548 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6549 function.
6550 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6551 prototype.
6552 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6553 code/data region to be selected in the small memory model.
6554 (msp430_section_attr): Don't warn if the "section" and "lower"
6555 attributes are used together.
6556 (msp430_handle_generic_attribute): Likewise.
6557 (msp430_var_in_low_mem): New function.
6558 (TARGET_ENCODE_SECTION_INFO): Define.
6559 (msp430_encode_section_info): New function.
6560 (gen_prefix): Return early in the small memory model.
6561 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6562 ".lower" prefix if -m{code,data}-region=lower have been passed.
6563 (msp430_output_aligned_decl_common): Emit common symbols when
6564 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6565 set.
6566 (TARGET_ASM_FILE_END): Define.
6567 (msp430_file_end): New function.
6568 (msp430_do_not_relax_short_jumps): Allow relaxation when
6569 function will be in the lower region.
6570 (msp430_op_not_in_high_mem): New function.
6571 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6572 the 'X' operand selector.
6573 Clarify comment for 'x' operand selector.
6574 * config/msp430/msp430.h (LINK_SPEC): Propagate
6575 -m{code,data}-region to the linker via spec function
6576 msp430_propagate_region_opt.
6577 (msp430_propagate_region_opt): New prototype.
6578 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6579 (SYMBOL_FLAG_LOW_MEM): Define.
6580 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6581 selector.
6582 (zero_extendqihi2): Fix operand number used by "%X" selector.
6583 (zero_extendqisi2): Likewise.
6584 (zero_extendhisi2): Likewise.
6585 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6586 (movhi): Likewise.
6587 (addqi3): Likewise.
6588 (addhi3): Likewise.
6589 (addsi3): Likewise.
6590 (addhi3_cy): Likewise.
6591 (addchi4_cy): Likewise.
6592 (subqi3): Likewise.
6593 (subhi3): Likewise.
6594 (subsi3): Likewise.
6595 (bic<mode>3): Likewise.
6596 (and<mode>3): Likewise.
6597 (ior<mode>3): Likewise.
6598 (xor<mode>3): Likewise.
6599 (slli_1): Add missing "%X" operand selector.
6600 (slll_1): Likewise.
6601 (slll_2): Likewise.
6602 (srai_1): Likewise.
6603 (sral_1): Likewise.
6604 (sral_2): Likewise.
6605 (srli_1): Likewise.
6606 (srll_1): Likewise.
6607 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6608 selector.
6609 (cbranchhi4_real): Likewise.
6610 (cbranchqi4_reversed): Likewise.
6611 (cbranchhi4_reversed): Likewise.
6612 (*bitbranch<mode>4): Likewise.
6613 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6614 * config/msp430/msp430.opt (mcode-region=): Set default to
6615 MSP430_REGION_LOWER. Improve docstring.
6616 (mdata-region=): Likewise.
6617 (muse-lower-region-prefix): New option.
6618 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6619 mdata-region=none multilib.
6620 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6621 mdata-region=none multilib.
6622 MULTILIB_EXCEPTIONS: Remove.
6623 MULTILIB_REQUIRED: Define.
6624 * configure: Regenerate.
6625 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6626 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6627 * doc/extend.texi: Clarify comment for {upper,lower,either}
6628 function attributes.
6629 Add separate description for "lower" variable attribute.
6630
6631 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6632
6633 PR target/77918
6634 * optabs-tree.c (vcond_icode_p): New function.
6635 (vcond_eq_icode_p): Likewise.
6636 (expand_vec_cond_expr_p): Use vcond_icode_p and
6637 vcond_eq_icode_p.
6638 * optabs.c (can_vcond_compare_p): New function.
6639 * optabs.h (can_vcond_compare_p): Likewise.
6640
6641 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6642
6643 PR target/77918
6644 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6645 caller passes a non-trapping condition.
6646 (is_gimple_condexpr): Allow trapping conditions.
6647 (is_gimple_condexpr_1): New helper function.
6648 (is_gimple_condexpr_for_cond): New function, acts like old
6649 is_gimple_condexpr.
6650 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6651 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6652 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6653 * gimplify.c (gimplify_cond_expr): Use
6654 is_gimple_condexpr_for_cond.
6655 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6656 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6657 VEC_COND_EXPR.
6658 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6659 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6660 is_gimple_condexpr_for_cond, remove pointless tmp check
6661 (forward_propagate_into_cond): Remove pointless tmp check.
6662
6663 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6664
6665 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6666 match that of other gsi_next_* functions. Adjust the comment.
6667 (gsi_start_nonvirtual_phis): New function.
6668 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6669 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6670
6671 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6672
6673 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6674 setjmp situation here. Fix a verb's ending: "the exact variables or
6675 elements for which there are warnings depends" -> "... depend".
6676
6677 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6678
6679 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6680
6681 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6682
6683 * ipa-prop.c (ipa_vr::nonzero_p): New.
6684 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6685 non-zero range.
6686 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6687 * tree-vrp.c (range_has_numeric_bounds_p): New.
6688 (range_int_cst_p): Use range_has_numeric_bounds_p.
6689 (get_range_op_handler): New.
6690 (supported_types_p): New.
6691 (defined_ranges_p): New.
6692 (drop_undefines_to_varying): New.
6693 (range_fold_binary_symbolics_p): New.
6694 (range_fold_unary_symbolics_p): New.
6695 (range_fold_unary_expr): Extract out into above functions.
6696 (range_fold_binary_expr): Same.
6697 (value_range_base::normalize_addresses): New.
6698 (value_range_base::normalize_symbolics): Normalize addresses.
6699 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6700
6701 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6702
6703 * tree-vrp.c (value_range_base::singleton_p): Use
6704 value_range_base::num_pairs instead of vrp_val_is* to check
6705 if a range has one sub-range.
6706
6707 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6708
6709 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6710 DEF is not a true earlyclobber but is tied to a specific input
6711 operand, and so is effectively earlyclobber wrt inputs that have
6712 different values.
6713 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6714
6715 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6716
6717 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6718 (pod_mode): Mark operators likewise.
6719 (scalar_int_mode): Mark non-default constructors and
6720 operators with CONSTEXPR.
6721 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6722 (fixed_size_mode): Likewise.
6723
6724 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6725
6726 PR target/91994
6727 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6728 and wrap the unspec_volatile in a parallel.
6729 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6730 the unspec_volatile.
6731 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6732 unspec_volatile to be wrapped in a parallel.
6733 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6734 (ix86_add_reg_usage_to_vzerouppers): New functions.
6735 (rest_of_handle_insert_vzeroupper): Use them to add register
6736 usage information to the vzeroupper instructions.
6737
6738 2019-10-07 Richard Biener <rguenther@suse.de>
6739
6740 PR tree-optimization/91975
6741 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6742 handle invariants.
6743
6744 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6745
6746 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6747 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6748
6749 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6750
6751 * config/darwin.c (darwin_override_options): Adjust objective-c
6752 ABI version error messages to avoid punctuation and contracted
6753 negations.
6754
6755 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6756
6757 * ipa-inline.c: Fix type; compute size rather than self_size
6758 for size of caller function.
6759
6760 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6761
6762 PR target/59888
6763 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6764 choose const_data section for constants with relocations.
6765 (machopic_select_section): Pass relocation flag to
6766 darwin_rodata_section ().
6767
6768 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6769
6770 PR tree-optimization/91734
6771 * generic-match-head.c: Include fold-const-call.h.
6772 * match.pd (sqrt(x) cmp c): Check the boundary value and
6773 in case inexact computation of c*c affects comparison of the boundary,
6774 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6775 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6776 for -frounding-math. For c2, try the next smaller or larger floating
6777 point constant depending on comparison code and if it has the same
6778 sqrt as c2, use it instead of c2.
6779
6780 2019-10-04 Martin Sebor <msebor@redhat.com>
6781
6782 PR middle-end/91977
6783 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6784 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6785 uninitialized objects.
6786
6787 2019-10-04 Martin Sebor <msebor@redhat.com>
6788
6789 * builtins.c (compute_objsize): Add an argument.
6790 * tree-object-size.c (addr_object_size): Same.
6791 (compute_builtin_object_size): Same.
6792 * tree-object-size.h (compute_builtin_object): Same.
6793
6794 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6795
6796 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6797
6798 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6799
6800 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6801
6802 2019-10-04 Martin Jambor <mjambor@suse.cz>
6803
6804 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6805 fntype when switching to calling memcpy instead of memset.
6806
6807 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6808
6809 * hash-table.h (hash_table::empty_slow): Don't assign
6810 size_t values to int variables.
6811
6812 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6813
6814 * expr.c (convert_mode_scalar): Remove shadowing local var.
6815 (emit_block_move): Rename local vars.
6816 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
6817 (emit_push_insn): Rename local vars.
6818 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
6819 shadowing local vars.
6820 (store_constructor): Remove shadowing local vars. Rename local var.
6821 (store_field, expand_cond_expr_using_cmove,
6822 expand_expr_real_2): Remove shadowing local vars.
6823 (expand_expr_real_1,
6824 do_store_flag): Remove shadowing local vars. Rename local vars.
6825
6826 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6827
6828 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
6829
6830 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6831
6832 * genmatch.c (commutate): Rename local var.
6833 (lower_cond): Reuse local var.
6834 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
6835 dt_operand::gen, dt_operand::gen_gimple_expr,
6836 dt_simplify::gen): Add a param. Rename generated vars.
6837 (decision_tree::insert_operand,
6838 (capture_info::walk_match, capture_info::walk_result,
6839 capture_info::walk_c_expr): Rename local vars.
6840 (expr::gen_transform): Rename generated vars.
6841 Use snprintf. Rename local vars.
6842 (capture::gen_transform, dt_operand::get_name,
6843 dt_operand::gen_opname): Rename generated vars.
6844 (write_predicate): Adjust call to gen_kids.
6845 (parser::get_internal_capture_id): Rename generated vars.
6846 (parser::parse_expr): Rename local vars.
6847 (parser::parse_if): Remove local var.
6848 (parser::parse_pattern, add_operator): Rename local vars.
6849
6850 2019-10-04 Joseph Myers <joseph@codesourcery.com>
6851
6852 * builtins.def (DEF_C2X_BUILTIN): New macro.
6853 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
6854 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
6855 (strndup): Use DEF_C2X_BUILTIN.
6856 * coretypes.h (enum function_class): Add function_c2x_misc.
6857
6858 2019-10-04 Maya Rashish <coypu@sdf.org>
6859
6860 * ira-color.c (update_costs_from_allocno): Call
6861 ira_init_register_move_cost_if_necessary.
6862
6863 2019-10-04 Jeff Law <law@redhat.com>
6864
6865 * config/h8300/h8300.md (cpymemsi): Disable.
6866 (movmd, movmd_internal_<mode>, movstr, movsd):
6867 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
6868 (movmd splitter, movsd splitter): Likewise.
6869
6870 * range-op.cc (range_tests): Avoid two tests when ints and
6871 shorts are the same size.
6872
6873 2019-10-04 Richard Biener <rguenther@suse.de>
6874
6875 PR lto/91968
6876 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
6877 BLOCK_VARS.
6878
6879 2019-10-04 Richard Biener <rguenther@suse.de>
6880
6881 PR tree-optimization/91982
6882 * tree-vect-loop.c (vectorizable_live_operation): Also guard
6883 against EXTRACT_LAST_REDUCTION.
6884 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
6885
6886 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
6887
6888 * range-op.o (value_range_from_overflowed_bounds): Rename from
6889 adjust_overflow_bound.
6890 (value_range_with_overflow): Rename from
6891 create_range_with_overflow.
6892 (create_possibly_reversed_range): Adjusted for above renames.
6893 (operator_*::wi_fold): Same.
6894 (cross_product_operator::wi_cross_productor): Same.
6895
6896 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6897
6898 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
6899 -Wshadow=compatible-local): Fix description.
6900 Add an example where -Wshadow=compatible-local does not
6901 warn.
6902
6903 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
6904
6905 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
6906
6907 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
6908 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
6909
6910 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6911
6912 * expr.c (emit_block_move_hints): Slightly cleaner fix to
6913 can_move_by_pieces issue.
6914
6915 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
6916
6917 PR target/87243
6918 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
6919 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
6920 is available and the user has not set one on the command line.
6921
6922 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6923
6924 PR target/91769
6925 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
6926 instead of REGNO equality check on addr.reg.
6927
6928 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
6929
6930 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
6931 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
6932 * doc/invoke.texi (inline-heuristics-hint-percent,
6933 inline-heuristics-hint-percent-O2): Document.
6934 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
6935 hint attribute.
6936 (can_inline_edge_by_limits_p): Use it.
6937
6938 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
6939
6940 * config/arm/arm.c (arm_print_value): Use real_to_decimal
6941 to print CONST_DOUBLEs.
6942
6943 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
6944
6945 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
6946 * ipa-prop.c (ipcp_free_transformation_sum): New function.
6947 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
6948
6949 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
6950
6951 * Makefile.in (OBJS): Add range.o and range-op.o.
6952 Remove wide-int-range.o.
6953 * function-tests.c (test_ranges): New.
6954 (function_tests_c_tests): Call test_ranges.
6955 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
6956 range_fold_unary_expr instead of extract_range_from_unary_expr.
6957 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
6958 * range-op.cc: New file.
6959 * range-op.h: New file.
6960 * range.cc: New file.
6961 * range.h: New file.
6962 * selftest.h (range_tests): New prototype.
6963 * ssa.h: Include range.h.
6964 * tree-vrp.c (value_range_base::value_range_base): New
6965 constructors.
6966 (value_range_base::singleton_p): Do not call
6967 ranges_from_anti_range until sure we will need to.
6968 (value_range_base::type): Rename gcc_assert to
6969 gcc_checking_assert.
6970 (vrp_val_is_max): New argument.
6971 (vrp_val_is_min): Same.
6972 (wide_int_range_set_zero_nonzero_bits): Move from
6973 wide-int-range.cc.
6974 (extract_range_into_wide_ints): Remove.
6975 (extract_range_from_multiplicative_op): Remove.
6976 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
6977 from extract_range_from_binary_expr.
6978 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
6979 from extract_range_from_binary_expr.
6980 (extract_range_from_binary_expr): Remove.
6981 (normalize_for_range_ops): New.
6982 (range_fold_binary_expr): New.
6983 (range_fold_unary_expr): New.
6984 (value_range_base::num_pairs): New.
6985 (value_range_base::lower_bound): New.
6986 (value_range_base::upper_bound): New.
6987 (value_range_base::upper_bound): New.
6988 (value_range_base::contains_p): New.
6989 (value_range_base::invert): New.
6990 (value_range_base::union_): New.
6991 (value_range_base::intersect): New.
6992 (range_compatible_p): New.
6993 (value_range_base::operator==): New.
6994 (determine_value_range_1): Call range_fold_*expr instead of
6995 extract_range_from_*expr.
6996 * tree-vrp.h (class value_range_base): Add new constructors.
6997 Add methods for union_, intersect, operator==, contains_p,
6998 num_pairs, lower_bound, upper_bound, invert.
6999 (vrp_val_is_min): Add handle_pointers argument.
7000 (vrp_val_is_max): Same.
7001 (extract_range_from_unary_expr): Remove.
7002 (extract_range_from_binary_expr): Remove.
7003 (range_fold_unary_expr): New.
7004 (range_fold_binary_expr): New.
7005 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7006 range_fold_binary_expr instead of extract_range_from_binary_expr.
7007 (vr_values::extract_range_basic): Same.
7008 (vr_values::extract_range_from_unary_expr): Call
7009 range_fold_unary_expr instead of extract_range_from_unary_expr.
7010 * wide-int-range.cc: Remove.
7011 * wide-int-range.h: Remove.
7012
7013 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7014
7015 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7016 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7017 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7018 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7019 macro.
7020
7021 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7022
7023 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7024 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7025 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7026 * glimits.h: Likewise.
7027
7028 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7029
7030 PR rtl-optimization/91976
7031 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7032 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7033 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7034
7035 2019-10-02 Martin Sebor <msebor@redhat.com>
7036
7037 PR tree-optimization/80936
7038 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7039
7040 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7041
7042 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7043 instead of reg_class_contents[ALL_REGS].
7044
7045 2019-09-30 Jason Merrill <jason@redhat.com>
7046
7047 Add some hash_map_safe_* functions like vec_safe_*.
7048 * hash-map.h (default_hash_map_size): New variable.
7049 (create_ggc): Use it as default argument.
7050 (hash_map_maybe_create, hash_map_safe_get)
7051 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
7052
7053 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
7054
7055 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
7056 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
7057 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
7058 (can_inline_edge_by_limits_p): Use it.
7059 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
7060 (want_inline_small_function_p): Use O2 bounds.
7061 (edge_badness): LIkewise.
7062 * opts.c (default_options): Add OPT_finline_functions.
7063 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
7064 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
7065 New parameters.
7066 * doc/invoke.texi (-finline-functions): Update documentation.
7067 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
7068 inline-min-speedup-O2): Document.
7069 (early-inlining-insns-O2): Simplify docs.
7070
7071 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
7072
7073 PR rtl-optimization/87047
7074 * ifcvt.c (average_cost): New static function. Use it...
7075 (noce_process_if_block): ... here.
7076
7077 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7078
7079 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
7080 * config/rs6000/rs6000-string.c (expand_block_move): Add
7081 might_overlap parm.
7082 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
7083 (cpymemsi): Add might_overlap parm to expand_block_move() call.
7084
7085 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7086
7087 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
7088 (expand_builtin_memcpy): Use might_overlap parm.
7089 (expand_builtin_mempcpy_args): Use might_overlap parm.
7090 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
7091 (expand_builtin_memory_copy_args): Add might_overlap parm.
7092 * expr.c (emit_block_move_via_cpymem): Rename to
7093 emit_block_move_via_pattern, add might_overlap parm, use cpymem
7094 or movmem optab as appropriate.
7095 (emit_block_move_hints): Add might_overlap parm, do the right
7096 thing for might_overlap==true.
7097 * expr.h (emit_block_move_hints): Update prototype.
7098
7099 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
7100
7101 * tree-eh.h (unsplit_eh_edges): Declare.
7102 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
7103 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
7104 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
7105 (struct store_immediate_info): Add lp_nr field.
7106 (store_immediate_info::store_immediate_info): Add NR2 parameter and
7107 initialize lp_nr with it.
7108 (struct merged_store_group): Add lp_nr and only_constants fields.
7109 (merged_store_group::merged_store_group): Initialize them.
7110 (merged_store_group::can_be_merged_into): Deal with them.
7111 (pass_store_merging): Rename terminate_and_release_chain into
7112 terminate_and_process_chain.
7113 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
7114 renaming and remove useless assertions.
7115 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
7116 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
7117 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
7118 instead of always recomputing it and compare lp_nr.
7119 (imm_store_chain_info::output_merged_store): If the group is in an
7120 active EH region, register new stores if they can throw. Moreover,
7121 if the insertion has created new basic blocks, adjust the PHI nodes
7122 of the post landing pad.
7123 (imm_store_chain_info::output_merged_stores): If the original stores
7124 are in an active EH region, deregister them.
7125 (lhs_valid_for_store_merging_p): Prettify.
7126 (adjust_bit_pos): New function extracted from...
7127 (mem_valid_for_store_merging): ...here. Use it for the base address
7128 and also for the offset if it is the addition of a constant.
7129 (lp_nr_for_store): New function.
7130 (pass_store_merging::process_store): Change return type to bool.
7131 Call lp_nr_for_store to initialize the store info. Propagate the
7132 return status of various called functions to the return value.
7133 (store_valid_for_store_merging_p): New predicate.
7134 (enum basic_block_status): New enumeration.
7135 (get_status_for_store_merging): New function.
7136 (pass_store_merging::execute): If the function can throw and catch
7137 non-call exceptions, unsplit the EH edges on entry and clean up the
7138 CFG on exit if something changed. Call get_status_for_store_merging
7139 for every basic block and keep the chains open across basic blocks
7140 when possible. Terminate and process open chains at the end, if any.
7141
7142 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7143
7144 * reginfo.c (globalize_reg): Fix shadowed variable in
7145 function_abis walk.
7146
7147 2019-10-02 Martin Jambor <mjambor@suse.cz>
7148
7149 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
7150 do not compute some stuff when set.
7151 (cgraph_node::create_edge): Likewise.
7152 (cgraph_node::create_indirect_edge): Renamed last parameter to
7153 coning_p and flipped its meaning, don't even calculate
7154 inline_failed when set.
7155 * cgraph.h (cgraph_node::create_edge): Add new parameter.
7156 (symbol_table::::create_edge): Likewise.
7157 (cgraph_node::create_indirect_edge): Rename last parameter, flip
7158 the default value.
7159 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
7160 call graph edge creating functions.
7161
7162 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7163
7164 PR c++/91222
7165 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
7166 namespace types.
7167
7168 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
7169
7170 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
7171
7172 2019-10-02 Richard Biener <rguenther@suse.de>
7173
7174 * tree-vectorizer.h (vect_transform_reduction): Declare.
7175 * tree-vect-stmts.c (vect_transform_stmt): Use it.
7176 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
7177 stmt transform to ...
7178 (vect_transform_reduction): ... this.
7179
7180 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
7181
7182 * omp-low.c (lower_omp_target): Dereference optional argument
7183 to work with the right pointer.
7184
7185 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7186
7187 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7188 false.
7189 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7190 * langhooks.h (omp_is_optional_argument): New hook.
7191 * omp-general.c (omp_is_optional_argument): New.
7192 * omp-general.h (omp_is_optional_argument): New declaration.
7193 * omp-low.c (lower_omp_target): Create temporary for received value
7194 and take the address for new_var if the original variable was a
7195 DECL_BY_REFERENCE. Use size of referenced object when a
7196 pass-by-reference optional argument used as argument to firstprivate.
7197
7198 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7199
7200 PR tree-optimization/91940
7201 * tree-vect-patterns.c: Include tree-vector-builder.h and
7202 vec-perm-indices.h.
7203 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7204 unpromoting the argument back to uint16_t, or by converting into a
7205 rotate, or into shifts plus ior.
7206
7207 2019-10-02 Richard Biener <rguenther@suse.de>
7208
7209 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7210 New.
7211 (vect_transform_cycle_phi): Declare.
7212 * tree-vect-stmts.c (vect_transform_stmt): Call
7213 vect_transform_cycle_phi.
7214 * tree-vect-loop.c (vectorizable_reduction): Split out
7215 PHI transformation stage to ...
7216 (vect_transform_cycle_phi): ... here.
7217
7218 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7219
7220 PR middle-end/91957
7221 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7222 eliminable registers.
7223 (make_hard_regno_live): Likewise, and don't make them live.
7224
7225 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7226
7227 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7228 Call pp_emit_prefix.
7229 (layout::print_source_line): Likewise.
7230 (layout::start_annotation_line): Likewise.
7231 (diagnostic_show_locus): Remove call to temporarily clear the
7232 prefix.
7233 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7234 interaction of pp_set_prefix with rulers and fix-it hints.
7235 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7236 prefix when calling diagnostic_show_locus, rather than destroying
7237 it afterwards.
7238 (print_parseable_fixits): Temporarily clear prefix.
7239 * pretty-print.c (pp_format): Save and restore line_length, rather
7240 than assuming it is zero.
7241 (pp_output_formatted_text): Remove assertion that line_length is
7242 zero.
7243
7244 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7245
7246 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7247 Rename to ...
7248 (nonoverlapping_refs_since_match_p): ... this; handle also
7249 ARRAY_REFs.
7250 (alias_stats): Update stats.
7251 (dump_alias_stats): Likewise.
7252 (cheap_array_ref_low_bound): New function.
7253 (aliasing_matching_component_refs_p): Add partial_overlap
7254 argument;
7255 pass it to nonoverlapping_refs_since_match_p.
7256 (aliasing_component_refs_walk): Update call of
7257 aliasing_matching_component_refs_p
7258 (nonoverlapping_array_refs_p): New function.
7259 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7260 indirect_refs_may_alias_p): Update calls of
7261 nonoverlapping_refs_since_match_p.
7262
7263 2019-10-01 Maya Rashish <coypu@sdf.org>
7264
7265 PR target/85401
7266 * ira-color.c (allocno_copy_cost_saving): Call
7267 ira_init_register_move_cost_if_necessary.
7268
7269 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7270
7271 * Makefile.in (gnat_install_lib): New variable.
7272 * configure.ac: Substitute it.
7273 * configure: Regenerate.
7274
7275 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7276
7277 PR lto/91222
7278 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7279 is matched with non-C++ type
7280
7281 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7282
7283 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7284 after local CSE.
7285
7286 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7287
7288 * doc/invoke.texi (early-inlining-insns-O2): Document.
7289 (early-inlining-insns): Update.
7290 * params.def (early-inlining-insns-O2): New bound.
7291 (early-inlining-insns): Update docs.
7292 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7293
7294 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7295
7296 PR target/88562
7297 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7298 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7299 a memory access insn.
7300
7301 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7302
7303 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7304 vpmsumd.
7305
7306 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7307
7308 PR target/77918
7309 * config/s390/s390.c (s390_expand_vec_compare): Use
7310 gen_vec_cmpordered and gen_vec_cmpunordered.
7311 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7312 vec_unordered): Delete.
7313 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7314 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7315 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7316 (vec_cmp<code>): Generic dispatcher.
7317
7318 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7319
7320 PR target/77918
7321 * config/s390/vector.md (V_HW): Add V1TI in order to make
7322 vcond$a$b generate vcondv1tiv1tf.
7323
7324 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7325
7326 PR rtl-optimization/91948
7327 * ira-build.c (ira_create_allocno): Initialize
7328 ALLOCNO_CROSSED_CALLS_ABIS.
7329 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7330 than regno to ira_need_caller_save_p.
7331
7332 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7333
7334 * config/i386/i386-options.c
7335 (ix86_recompute_optlev_based_flags): New, moved out of...
7336 (ix86_option_override_internal): ... this. Call it.
7337 (ix86_override_options_after_change): Call it here too.
7338
7339 PR debug/91507
7340 * dwarf2out.c (override_type_for_decl_p): New.
7341 (gen_variable_die): Use it.
7342
7343 2019-10-01 Richard Biener <rguenther@suse.de>
7344
7345 * tree-vect-loop.c (vectorizable_reduction): Move variables
7346 to where they are used.
7347
7348 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7349
7350 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7351 (build_def_use): Use PC instead of CC0 in a comment.
7352
7353 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7354
7355 * rtl.def (CLOBBER_HIGH): Delete.
7356 * doc/rtl.texi (clobber_high): Remove documentation.
7357 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7358 (reg_is_clobbered_by_clobber_high): Delete.
7359 (gen_hard_reg_clobber_high): Likewise.
7360 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7361 * cfgexpand.c (expand_gimple_stmt): Likewise.
7362 * combine-stack-adj.c (single_set_for_csa): Likewise.
7363 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7364 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7365 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7366 * cse.c (invalidate_reg): Remove clobber_high parameter.
7367 (invalidate): Update call accordingly.
7368 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7369 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7370 (count_reg_usage, insn_live_p): Likewise.
7371 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7372 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7373 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7374 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7375 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7376 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7377 (mark_nonreg_stores_2): Likewise.
7378 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7379 (df_get_call_refs): Likewise.
7380 * dwarf2out.c (mem_loc_descriptor): Likewise.
7381 * emit-rtl.c (verify_rtx_sharing): Likewise.
7382 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7383 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7384 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7385 * genemit.c (gen_exp, gen_insn): Likewise.
7386 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7387 * haifa-sched.c (haifa_classify_rtx): Likewise.
7388 * ira-build.c (create_insn_allocnos): Likewise.
7389 * ira-costs.c (scan_one_insn): Likewise.
7390 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7391 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7392 * jump.c (mark_jump_label_1): Likewise.
7393 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7394 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7395 handling.
7396 (mark_not_eliminable): Likewise.
7397 * lra-lives.c (process_bb_lives): Likewise.
7398 * lra.c (new_insn_reg): Remove clobber_high parameter.
7399 (collect_non_operand_hard_regs): Likewise. Update call to new
7400 insn_reg. Remove CLOBBER_HIGH handling.
7401 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7402 to collect_non_operand_hard_regs.
7403 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7404 Update call to new_insn_reg.
7405 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7406 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7407 (move2add_note_store): Likewise.
7408 * print-rtl.c (print_pattern): Likewise.
7409 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7410 (if_test_bypass_p): Likewise.
7411 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7412 * reginfo.c (reg_scan_mark_refs): Likewise.
7413 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7414 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7415 (forget_old_reloads_1): Likewise.
7416 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7417 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7418 (dbr_schedule): Likewise.
7419 * resource.c (update_live_status, mark_referenced_resources)
7420 (mark_set_resources): Likewise.
7421 * rtl.c (copy_rtx): Likewise.
7422 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7423 (note_pattern_stores): Likewise.
7424 (reg_is_clobbered_by_clobber_high): Delete.
7425 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7426 CLOBBER_HIGH handling.
7427
7428 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7429
7430 PR target/91452
7431 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7432 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7433 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7434 Handle ARM_PCS_TLSDESC.
7435 (aarch64_tlsdesc_abi_id): New function.
7436 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7437 rtx instead of a list of clobbers and clobber_highs.
7438 (tlsdesc_small_<mode>): Update accordingly.
7439
7440 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7441
7442 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7443 extra callee_abi argument.
7444 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7445 Insert a CALLEE_ABI unspec into the call pattern as the second
7446 element in the PARALLEL.
7447 (aarch64_simd_call_p): Delete.
7448 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7449 the new CALLEE_ABI element of the PARALLEL.
7450 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7451 from the function type, if given.
7452 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7453 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7454 when passed the function_arg_info end marker.
7455 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7456 final argument of gen_sibcall.
7457 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7458 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7459 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7460 pattern.
7461 (call_value): Likewise operand 3.
7462 (sibcall): Likewise operand 2. Place the unspec before rather than
7463 after the return.
7464 (sibcall_value): Likewise operand 3.
7465 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7466 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7467 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7468 constraint strings.
7469 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7470
7471 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7472
7473 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7474 choose_hard_reg_mode.
7475 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7476
7477 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7478
7479 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7480 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7481 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7482
7483 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7484
7485 * diagnostic-show-locus.c (line_label::line_label): Initialize
7486 m_has_vbar.
7487 (line_label::comparator): Reverse the sort order by m_state_idx,
7488 so that when the list is walked backwards the labels appear in
7489 order of insertion into the rich_location.
7490 (line_label::m_has_vbar): New field.
7491 (layout::print_any_labels): When dealing with multiple labels at
7492 the same line and column, only print vertical bars for the one
7493 with the highest label_line.
7494 (selftest::test_one_liner_labels): Update test for multiple labels
7495 to expect the labels to be in the order of insertion into the
7496 rich_location. Add a test for many such labels, where the column
7497 numbers are out-of-order relative to the insertion order.
7498
7499 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7500
7501 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7502 (ix86_frame::expensive_count): Likewise.
7503 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7504 of use_fast_prologue_epilogue robust against incidental changes
7505 in function size.
7506
7507 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7508
7509 PR target/77918
7510 * config/s390/vector.md (vec_unordered<mode>): Call
7511 gen_vec_ordered<mode>.
7512
7513 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7514
7515 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7516 New pattern for ASRD.
7517 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7518 * internal-fn.def (IFN_DIV_POW2): New internal function.
7519 * optabs.def (sdiv_pow2_optab): New optab.
7520 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7521 Modify pattern to support new operation.
7522 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7523 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7524 Document new target selector.
7525
7526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7527
7528 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7529 to test whether we're compiling a vector PCS function and to test
7530 whether the function needs to save a particular register.
7531 Remove the vector PCS handling of df_set_regs_ever_live.
7532 (aarch64_components_for_bb): Use crtl->abi to test whether
7533 the function needs to save a particular register.
7534 (aarch64_process_components): Use crtl->abi to test whether
7535 we're compiling a vector PCS function.
7536 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7537 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7538
7539 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7540
7541 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7542 Delete.
7543 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7544 whether the block calls a function that clobbers more registers
7545 than the current function is allowed to.
7546 (aarch64_use_simple_return_insn_p): Delete.
7547 * config/aarch64/aarch64.md (simple_return): Remove condition.
7548
7549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7550
7551 * function-abi.h (function_abi_aggregator): New class.
7552 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7553 function.
7554 * ira.c (update_equiv_regs_prescan): New function. Call
7555 set_paradoxical_subreg here rather than...
7556 (update_equiv_regs): ...here.
7557 (ira): Call update_equiv_regs_prescan.
7558
7559 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7560
7561 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7562 IN_TARGET_CODE.
7563 (call_used_or_fixed_regs): Likewise.
7564 (call_used_or_fixed_reg_p): Likewise.
7565 * reginfo.c (regs_invalidated_by_call): New macro.
7566
7567 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7568
7569 * shrink-wrap.c: Include function-abi.h.
7570 (requires_stack_frame_p): Use crtl->abi to test whether the
7571 current function can use a register without saving it first.
7572
7573 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7574
7575 * sel-sched-ir.h (_def::crosses_call): Replace with...
7576 (_def::crossed_call_abis): ..this new field.
7577 (def_list_add): Take a mask of ABIs instead of a crosses_call
7578 boolean.
7579 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7580 of _def accordingly.
7581 * sel-sched.c: Include function-abi.h.
7582 (hard_regs_data::regs_for_call_clobbered): Delete.
7583 (reg_rename::crosses_call): Replace with...
7584 (reg_rename::crossed_call_abis): ...this new field.
7585 (fur_static_params::crosses_call): Replace with...
7586 (fur_static_params::crossed_call_abis): ...this new field.
7587 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7588 (init_hard_regs_data): Use crtl->abi to test which registers the
7589 current function would need to save before it uses them.
7590 (mark_unavailable_hard_regs): Update handling of call-clobbered
7591 registers, using call_clobbers_in_region to find out which registers
7592 might be call-clobbered (but without taking -fipa-ra into account
7593 for now). Remove separate handling of partially call-clobbered
7594 registers.
7595 (verify_target_availability): Use crossed_call_abis instead of
7596 crosses_call.
7597 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7598 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7599
7600 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7601
7602 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7603 function to test whether a register is fully or partly clobbered.
7604
7605 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7606
7607 * rtlanal.c: Include function-abi.h.
7608 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7609 function and clobbers_reg_p to test whether the register
7610 is call-clobbered.
7611 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7612 to get the ABI of the called function and full_reg_clobbers to
7613 get the set of fully call-clobbered registers. Warn about the
7614 pitfalls of using this mode.
7615
7616 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7617
7618 * reload.c: Include function-abi.h.
7619 (find_equiv_reg): Use clobbers_reg_p to test whether either
7620 of the equivalent registers is clobbered by a call.
7621 * reload1.c: Include function-abi.h.
7622 (reg_reloaded_call_part_clobbered): Delete.
7623 (reload): Use crtl->abi to test which registers would need
7624 saving in the prologue before use.
7625 (find_reg): Likewise.
7626 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7627 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7628 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7629
7630 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7631
7632 * regrename.h (du_head::call_clobber_mask): New field.
7633 (du_head::need_caller_save_reg): Replace with...
7634 (du_head::call_abis): ...this new field.
7635 * regrename.c: Include function-abi.h.
7636 (call_clobbered_in_chain_p): New function.
7637 (check_new_reg_p): Use crtl->abi when deciding whether a register
7638 is free for use after RA. Use call_clobbered_in_chain_p to test
7639 whether a candidate register would be clobbered by a call.
7640 (find_rename_reg): Don't add call-clobber conflicts here.
7641 (rename_chains): Check call_abis instead of need_caller_save_reg.
7642 (merge_chains): Update for changes to du_head.
7643 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7644 target. Record the ABI identifier in call_abis and the set of
7645 fully or partially clobbered registers in call_clobber_mask.
7646 Add fully-clobbered registers to hard_conflicts here rather
7647 than in find_rename_reg.
7648 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7649 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7650 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7651 function-abi.h.
7652 * config/c6x/c6x.c: Likewise.
7653
7654 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7655
7656 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7657 mode of the register when deciding whether it is no longer
7658 available after a call.
7659
7660 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7661
7662 * recog.c: Include function-abi.h.
7663 (peep2_find_free_register): Use crtl->abi when deciding whether
7664 a register is free for use after RA.
7665
7666 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7667
7668 * postreload-gcse.c: Include regs.h and function-abi.h.
7669 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7670 call insn target. Conservatively assume that partially-clobbered
7671 registers are altered.
7672
7673 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7674
7675 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7676 when deciding whether a register is free for use after RA.
7677 (reload_combine): Remove unnecessary use of fixed_reg_set.
7678 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7679 call insn target. Use reg_mode when testing whether a register
7680 is no longer available.
7681
7682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7683
7684 * target.def (return_call_with_max_clobbers): Delete.
7685 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7686 * doc/tm.texi: Regenerate.
7687 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7688 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7689 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7690 (lra_reg::call_insn): Delete.
7691 * lra.c: Include function-abi.h.
7692 (initialize_lra_reg_info_element): Don't initialize the fields above.
7693 (lra): Use crtl->abi to test whether the current function needs to
7694 save a register in the prologue. Remove special pre-inheritance
7695 lra_create_live_ranges pass for flag_ipa_ra.
7696 * lra-assigns.c: Include function-abi.h
7697 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7698 function needs to save a register in the prologue.
7699 (lra_assign): Assert that registers aren't allocated to a
7700 conflicting register, rather than checking only for overlaps
7701 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7702 and for registers that are not live across a call.
7703 * lra-constraints.c (last_call_for_abi): New variable.
7704 (full_and_partial_call_clobbers): Likewise.
7705 (setup_next_usage_insn): Remove the register from
7706 full_and_partial_call_clobbers.
7707 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7708 whether the register needs a caller save.
7709 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7710 of call_used_or_fixed_regs.
7711 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7712 full_and_partial_call_clobbers.
7713 * lra-lives.c (check_pseudos_live_through_calls): Replace
7714 last_call_used_reg_set and call_insn arguments with an abi argument.
7715 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7716 as the set of conflicting registers.
7717 (calls_have_same_clobbers_p): Delete.
7718 (process_bb_lives): Track the ABI of the last call instead of an
7719 insn/HARD_REG_SET pair. Update calls to
7720 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7721 the set of registers that could be clobbered by an EH edge.
7722 Include partially-clobbered as well as fully-clobbered registers.
7723 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7724 * lra-remat.c: Include function-abi.h.
7725 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7726 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7727 registers and bitmap_view to combine them into dead_regs.
7728 (call_used_input_regno_present_p): Take a function_abi argument
7729 and use it to test whether a register is call-clobbered.
7730 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7731 call insn target. Update tje call to call_used_input_regno_present_p.
7732 (do_remat): Likewise.
7733 (lra_remat): Remove the initialization of call_used_regs_arr_len
7734 and call_used_regs_arr.
7735
7736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7737
7738 * loop-iv.c: Include regs.h and function-abi.h.
7739 (simplify_using_initial_values): Use insn_callee_abi to get the
7740 ABI of the call insn target. Conservatively assume that
7741 partially-clobbered registers are altered.
7742
7743 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7744
7745 * function-abi.h (call_clobbers_in_region): Declare.
7746 (call_clobbered_in_region_p): New function.
7747 * function-abi.cc (call_clobbers_in_region): Likewise.
7748 * ira-int.h: Include function-abi.h.
7749 (ira_allocno::crossed_calls_abis): New field.
7750 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7751 (ira_need_caller_save_regs): New function.
7752 (ira_need_caller_save_p): Likewise.
7753 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7754 of call_used_or_fixed_regs.
7755 (do_reload): Use crtl->abi to test whether the current function
7756 needs to save a register in the prologue. Count registers that
7757 need to be saved rather than registers that don't.
7758 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7759 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7760 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7761 (propagate_some_info_from_allocno): Likewise.
7762 (copy_info_to_removed_store_destinations): Likewise.
7763 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7764 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7765 (ira_build): Use ira_need_caller_save_regs instead of
7766 call_used_or_fixed_regs.
7767 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7768 whether the current function would need to save a register
7769 before using it.
7770 (calculate_spill_cost): Likewise.
7771 (allocno_reload_assign): Use ira_need_caller_save_regs and
7772 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7773 * ira-conflicts.c (ira_build_conflicts): Use
7774 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7775 as the set of call-clobbered registers. Remove the
7776 call_used_or_fixed_regs mask from the calculation of
7777 temp_hard_reg_set and mask its use instead. Remove special
7778 handling of partially-clobbered registers.
7779 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7780 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7781 calculate the set of conflicting registers for calls that
7782 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7783 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7784 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7785 Use eh_edge_abi to calculate the set of registers that could
7786 be clobbered by an EH edge. Include partially-clobbered as
7787 well as fully-clobbered registers.
7788
7789 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7790
7791 * haifa-sched.c: Include function-abi.h.
7792 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7793 the function would need to save a register before using it.
7794
7795 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7796
7797 * gcse.c: Include function-abi.h.
7798 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7799 the call insn target. Invalidate partially call-clobbered
7800 registers as well as fully call-clobbered ones.
7801
7802 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7803
7804 * function.c (aggregate_value_p): Work out which ABI the
7805 function is using before testing which registers are at least
7806 partly preserved by a call.
7807
7808 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7809
7810 * early-remat.c: Include regs.h and function-abi.h.
7811 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7812 registers here.
7813 (early_remat::restrict_remat_for_unavail_regs): New function.
7814 (early_remat::restrict_remat_for_call): Likewise.
7815 (early_remat::process_block): Before calling emit_remat_insns
7816 for a previous call in the block, invalidate any candidates
7817 that would clobber call-preserved registers.
7818 (early_remat::emit_remat_insns_for_block): Likewise for the
7819 final call in a block. Do the same thing for live-in registers
7820 when calling emit_remat_insns at the head of a block.
7821
7822 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7823
7824 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
7825 whether the current function needs to save at least part of a
7826 register before using it.
7827 (df_get_exit_block_use_set): Likewise for epilogue restores.
7828
7829 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7830
7831 * df-problems.c: Include regs.h and function-abi.h.
7832 (df_rd_problem_data): Rename sparse_invalidated_by_call to
7833 sparse_invalidated_by_eh and dense_invalidated_by_call to
7834 dense_invalidated_by_eh.
7835 (df_print_bb_index): Update accordingly.
7836 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
7837 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
7838 that are clobbered by an EH edge. Clobber partially-clobbered
7839 registers as well as fully-clobbered ones.
7840 (df_md_confluence_n): Likewise.
7841 (df_rd_local_compute): Likewise. Update for changes to
7842 df_rd_problem_data.
7843 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
7844 of registers that are clobbered by an EH edge. Includde partially-
7845 clobbered registers as well as fully-clobbered ones.
7846
7847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7848
7849 * cselib.c (cselib_process_insn): If we know what mode a
7850 register was set in, check whether it is clobbered in that
7851 mode by a call. Only fall back to reg_raw_mode if that fails.
7852
7853 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7854
7855 * cse.c: Include regs.h and function-abi.h.
7856 (invalidate_for_call): Take the call insn as an argument.
7857 Use insn_callee_abi to get the ABI of the call and invalidate
7858 partially clobbered registers as well as fully clobbered ones.
7859 (cse_insn): Update call accordingly.
7860
7861 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7862
7863 * combine.c: Include function-abi.h.
7864 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
7865 of the target of call insns. Invalidate partially-clobbered
7866 registers as well as fully-clobbered ones.
7867
7868 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7869
7870 * cfgloopanal.c: Include regs.h and function-abi.h.
7871 (init_set_costs): Use default_function_abi to test whether
7872 a general register is call-clobbered.
7873
7874 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7875
7876 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
7877 instead of the call-clobbered sets.
7878
7879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7880
7881 * caller-save.c (setup_save_areas): Remove redundant |s of
7882 fixed_reg_set.
7883 (save_call_clobbered_regs): Likewise. Use the call ABI rather
7884 than call_used_or_fixed_regs to decide whether a REG_RETURNED
7885 value is useful.
7886
7887 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7888
7889 * rtl.h (predefined_function_abi): Declare.
7890 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7891 instead of a boolean call_save flag.
7892 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
7893 accordingly.
7894 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7895 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7896 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
7897 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7898 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7899 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
7900 * reginfo.c (init_reg_modes_target): Likewise.
7901 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
7902 instead of a boolean call_save flag.
7903 * targhooks.c: Include function-abi.h.
7904 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
7905 using eh_edge_abi to choose the mode.
7906
7907 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7908
7909 * target.def (hard_regno_call_part_clobbered): Take an ABI
7910 identifier instead of an rtx_insn.
7911 * doc/tm.texi: Regenerate.
7912 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
7913 (hook_bool_uint_uint_mode_false): New function.
7914 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
7915 (hook_bool_uint_uint_mode_false): New function.
7916 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7917 Take an ABI identifier instead of an rtx_insn.
7918 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
7919 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
7920 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
7921 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
7922 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7923 Likewise.
7924 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
7925 * cselib.c: Include function-abi.h.
7926 (cselib_process_insn): Update call to
7927 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7928 to get the appropriate ABI identifier.
7929 * function-abi.cc (predefined_function_abi::initialize): Update call
7930 to targetm.hard_regno_call_part_clobbered.
7931 * ira-conflicts.c (ira_build_conflicts): Likewise.
7932 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7933 * lra-constraints.c: Include function-abi.h.
7934 (need_for_call_save_p): Update call to
7935 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7936 to get the appropriate ABI identifier.
7937 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7938 * regcprop.c (copyprop_hardreg_forward_1): Update call
7939 to targetm.hard_regno_call_part_clobbered.
7940 * reginfo.c (choose_hard_reg_mode): Likewise.
7941 * regrename.c (check_new_reg_p): Likewise.
7942 * reload.c (find_equiv_reg): Likewise.
7943 * reload1.c (emit_reload_insns): Likewise.
7944 * sched-deps.c: Include function-abi.h.
7945 (deps_analyze_insn): Update call to
7946 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
7947 to get the appropriate ABI identifier.
7948 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
7949 call to targetm.hard_regno_call_part_clobbered.
7950 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7951
7952 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7953
7954 * config/i386/i386.c: Include function-abi.h.
7955 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
7956 if they preserve some 256-bit or 512-bit SSE registers.
7957
7958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7959
7960 * target.def (insn_callee_abi): New hook.
7961 (remove_extra_call_preserved_regs): Delete.
7962 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
7963 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7964 * doc/tm.texi: Regenerate.
7965 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
7966 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
7967 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
7968 insn argument.
7969 (aarch64_remove_extra_call_preserved_regs): Delete.
7970 (aarch64_insn_callee_abi): New function.
7971 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
7972 (TARGET_INSN_CALLEE_ABI): New macro.
7973 * rtl.h (get_call_fndecl): Declare.
7974 (cgraph_rtl_info): Fix formatting. Tweak comment for
7975 function_used_regs. Remove function_used_regs_valid.
7976 * rtlanal.c (get_call_fndecl): Moved from final.c
7977 * function-abi.h (insn_callee_abi): Declare.
7978 (target_function_abi_info): Mention insn_callee_abi.
7979 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
7980 way to get_call_reg_set_usage did.
7981 (insn_callee_abi): New function.
7982 * regs.h (get_call_reg_set_usage): Delete.
7983 * final.c: Include function-abi.h.
7984 (collect_fn_hard_reg_usage): Add fixed and stack registers to
7985 function_used_regs before the main loop rather than afterwards.
7986 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
7987 if function_used_regs ends up not being useful.
7988 (get_call_fndecl): Move to rtlanal.c
7989 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
7990 * caller-save.c: Include function-abi.h.
7991 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
7992 instead of get_call_reg_set_usage.
7993 * cfgcleanup.c: Include function-abi.h.
7994 (old_insns_match_p): Use insn_callee_abi instead of
7995 get_call_reg_set_usage.
7996 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
7997 a tree.
7998 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
7999 function_used_regs.
8000 * df-scan.c: Include function-abi.h.
8001 (df_get_call_refs): Use insn_callee_abi instead of
8002 get_call_reg_set_usage.
8003 * ira-lives.c: Include function-abi.h.
8004 (process_bb_node_lives): Use insn_callee_abi instead of
8005 get_call_reg_set_usage.
8006 * lra-lives.c: Include function-abi.h.
8007 (process_bb_lives): Use insn_callee_abi instead of
8008 get_call_reg_set_usage.
8009 * postreload.c: Include function-abi.h.
8010 (reload_combine): Use insn_callee_abi instead of
8011 get_call_reg_set_usage.
8012 * regcprop.c: Include function-abi.h.
8013 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8014 get_call_reg_set_usage.
8015 * resource.c: Include function-abi.h.
8016 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8017 instead of get_call_reg_set_usage.
8018 * var-tracking.c: Include function-abi.h.
8019 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8020 get_call_reg_set_usage.
8021
8022 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8023
8024 * target.def (fntype_abi): New target hook.
8025 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8026 * doc/tm.texi: Regenerate.
8027 * target.h (predefined_function_abi): Declare.
8028 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8029 if defined.
8030 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8031 * config/aarch64/aarch64.c: Include function-abi.h.
8032 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8033 (TARGET_FNTYPE_ABI): Define.
8034
8035 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8036
8037 * Makefile.in (OBJS): Add function-abi.o.
8038 (GTFILES): Add function-abi.h.
8039 * function-abi.cc: New file.
8040 * function-abi.h: Likewise.
8041 * emit-rtl.h (rtl_data::abi): New field.
8042 * function.c: Include function-abi.h.
8043 (prepare_function_start): Initialize crtl->abi.
8044 * read-rtl-function.c: Include regs.h and function-abi.h.
8045 (read_rtl_function_body): Initialize crtl->abi.
8046 (read_rtl_function_body_from_file_range): Likewise.
8047 * reginfo.c: Include function-abi.h.
8048 (init_reg_sets_1): Initialize default_function_abi.
8049 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
8050 when making a register global.
8051 * target-globals.h (this_target_function_abi_info): Declare.
8052 (target_globals::function_abi_info): New field.
8053 (restore_target_globals): Copy it.
8054 * target-globals.c: Include function-abi.h.
8055 (default_target_globals): Initialize the function_abi_info field.
8056 (target_globals): Allocate it.
8057 (save_target_globals): Free it.
8058
8059 2019-09-30 Nick Clifton <nickc@redhat.com>
8060
8061 PR target/85978
8062 * config/frv/frv.c (frv_register_move_cost): Add break statements
8063 to avoid falling through to the wrong cases. Tidy code.
8064
8065 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8066
8067 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8068 For multi-registers modes, test how big each register part is.
8069
8070 2019-09-30 Nick Clifton <nickc@redhat.com>
8071
8072 PR target/59205
8073 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
8074 (TARGET_ASM_SELECT_SECTION): Remove definition.
8075 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
8076
8077 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8078
8079 * emit-rtl.c (init_raw_REG): New function.
8080 (gen_raw_REG): Use init_raw_REG.
8081 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
8082 macros.
8083 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
8084 * rtl.h (rtx_init): New function.
8085 (rtx_alloca): New function.
8086 (init_raw_REG): New function.
8087 (alloca_raw_REG): New macro.
8088
8089 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
8090
8091 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
8092 (pcrel_local_address): Replace pcrel_address predicate, use the
8093 new function address_to_insn_form.
8094 (pcrel_external_address): Replace with new implementation using
8095 address_to_insn_form..
8096 (prefixed_mem_operand): Delete predicate which is now unused.
8097 (pcrel_external_mem_operand): Delete predicate which is now
8098 unused.
8099 * config/rs6000/rs6000-protos.h (enum insn_form): New
8100 enumeration.
8101 (enum non_prefixed_form): New enumeration.
8102 (address_to_insn_form): New declaration.
8103 (prefixed_load_p): New declaration.
8104 (prefixed_store_p): New declaration.
8105 (prefixed_paddi_p): New declaration.
8106 (rs6000_asm_output_opcode): New declaration.
8107 (rs6000_final_prescan_insn): Move declaration and update calling
8108 signature.
8109 (address_is_prefixed): New helper inline function.
8110 * config/rs6000/rs6000.c(print_operand_address): Check for either
8111 PC-relative local symbols or PC-relative external symbols.
8112 (rs6000_emit_move): Support loading PC-relative addresses.
8113 (mode_supports_prefixed_address_p): Delete, no longer used.
8114 (rs6000_prefixed_address_mode_p): Delete, no longer used.
8115 (address_to_insn_form): New function to decode an address format.
8116 (reg_to_non_prefixed): New function to identify what the
8117 non-prefixed memory instruction format is for a register.
8118 (prefixed_load_p): New function to identify prefixed loads.
8119 (prefixed_store_p): New function to identify prefixed stores.
8120 (prefixed_paddi_p): New function to identify prefixed load
8121 immediates.
8122 (next_insn_prefixed_p): New static state variable.
8123 (rs6000_final_prescan_insn): New function to determine if an insn
8124 uses a prefixed instruction.
8125 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
8126 prefixed instruction.
8127 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
8128 (ASM_OUTPUT_OPCODE): New target hook.
8129 * config/rs6000/rs6000.md (prefixed): New insn attribute for
8130 prefixed instructions.
8131 (prefixed_length): New insn attribute for the size of prefixed
8132 instructions.
8133 (non_prefixed_length): New insn attribute for the size of
8134 non-prefixed instructions.
8135 (pcrel_local_addr): New insn to load up a local PC-relative
8136 address.
8137 (pcrel_extern_addr): New insn to load up an external PC-relative
8138 address.
8139 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
8140 GPR and loading a 128-bit floating point type to a GPR.
8141
8142 2019-09-30 Richard Biener <rguenther@suse.de>
8143
8144 * gimple.c (gimple_get_lhs): For PHIs return the result.
8145 * tree-vectorizer.h (vectorizable_live_operation): Also get the
8146 SLP instance as argument.
8147 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
8148 double-reduction PHIs with vectorizable_lc_phi.
8149 (vect_analyze_loop_operations): Adjust.
8150 (vect_create_epilog_for_reduction): Remove all code not dealing
8151 with reduction LC PHI or epilogue generation.
8152 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
8153 for live stmts of reductions.
8154 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
8155 do not handle defs that are not vect_internal_def.
8156 (can_vectorize_live_stmts): Adjust.
8157 (vect_analyze_stmt): When the vectorized stmt defined a value
8158 used on backedges adjust the backedge uses of vectorized PHIs.
8159
8160 2019-09-30 Martin Jambor <mjambor@suse.cz>
8161
8162 PR ipa/91853
8163 * tree-inline.c (force_value_to_type): New function.
8164 (setup_one_parameter): Use force_value_to_type to convert type.
8165 * tree-inline.c (force_value_to_type): Declare.
8166 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
8167 with register type mismatches.
8168
8169 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
8170
8171 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
8172 32-bit PowerPC.
8173 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
8174 * config/rs6000/t-freebsd64: Make use of the above define and build
8175 the 32-bit libraries with secure-plt.
8176
8177 2019-09-30 Jakub Jelinek <jakub@redhat.com>
8178
8179 PR target/91931
8180 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
8181 gen_int_mode instead of GEN_INT.
8182
8183 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
8184
8185 * config/darwin.c (gen_macho_low): Amend to include the mode
8186 argument.
8187 (machopic_indirect_data_reference): Amend gen_macho_low call
8188 to include mode argument
8189 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8190 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8191 the macho_high expander and two define_insn entries.
8192
8193 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8194
8195 PR bootstrap/90543
8196 * optc-save-gen.awk: Fix up printing string option differences.
8197
8198 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8199
8200 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8201 vec_perm cost to 1 for non-Power7 VSX architectures.
8202
8203 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8204
8205 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8206 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8207 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8208
8209 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8210
8211 * config/darwin.c (gen_macho_high): Amend to include the mode
8212 argument.
8213 (machopic_indirect_data_reference): Amend gen_macho_high call
8214 to include mode argument.
8215 (machopic_legitimize_pic_address): Likewise.
8216 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8217 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8218 the macho_high expander and two define_insn entries.
8219
8220 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8221
8222 PR target/86805
8223 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8224
8225 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8226
8227 PR target/80672
8228 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8229 std::string::compare instead of std::string::find.
8230
8231 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8232
8233 * configure: Regenerate.
8234
8235 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8236
8237 PR middle-end/91920
8238 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8239 variables as shared.
8240
8241 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8242
8243 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8244 replaces the expander and two define_insn entries.
8245 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8246 call.
8247 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8248
8249 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8250
8251 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8252 (fibonacci_heap::nodes): Likewise.
8253 (fibonacci_heap::min_key): Likewise.
8254 (fibonacci_heap::min): Likewise.
8255
8256 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8257
8258 * cgraph.c (cgraph_node::get_fun): Make const.
8259 * cgraph.h (cgraph_node::get_fun): Likewise.
8260
8261 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8262
8263 PR target/91919
8264 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8265 of SImode MULT.
8266
8267 2019-09-27 Richard Biener <rguenther@suse.de>
8268
8269 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8270 (STMT_VINFO_REDUC_FN): Likewise.
8271 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8272 STMT_VINFO_REDUC_FN.
8273 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8274 for condition reductions.
8275 (vect_create_epilog_for_reduction): Compute all required state
8276 from the stmt to be vectorized.
8277 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8278 invocation and remove then dead code. For single def-use chains
8279 record only a single vector stmt.
8280
8281 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8282
8283 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8284 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8285 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8286 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8287 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8288 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8289 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8290 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8291 (aarch64_general_builtin_rsqrt): Declare.
8292 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8293 New function.
8294 (aarch64_mangle_builtin_type): Rename to...
8295 (aarch64_general_mangle_builtin_type): ...this.
8296 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8297 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8298 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8299 aarch64_general_add_builtin instead of add_builtin_function.
8300 (aarch64_init_builtins): Rename to...
8301 (aarch64_general_init_builtins): ...this. Use
8302 aarch64_general_add_builtin instead of add_builtin_function.
8303 (aarch64_builtin_decl): Rename to...
8304 (aarch64_general_builtin_decl): ...this and remove the unused
8305 arguments.
8306 (aarch64_expand_builtin): Rename to...
8307 (aarch64_general_expand_builtin): ...this and remove the unused
8308 arguments.
8309 (aarch64_builtin_rsqrt): Rename to...
8310 (aarch64_general_builtin_rsqrt): ...this.
8311 (aarch64_fold_builtin): Rename to...
8312 (aarch64_general_fold_builtin): ...this. Take the function subcode
8313 and return type as arguments. Remove the "ignored" argument.
8314 (aarch64_gimple_fold_builtin): Rename to...
8315 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8316 subcode and gcall as arguments, and return the new function call.
8317 * config/aarch64/aarch64.c (aarch64_init_builtins)
8318 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8319 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8320 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8321 instead of aarch64_builtin_rsqrt.
8322 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8323 instead of aarch64_mangle_builtin_type.
8324
8325 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8326
8327 * target.def (check_builtin_call): New target hook.
8328 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8329 * doc/tm.texi: Regenerate.
8330
8331 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8332
8333 PR tree-optimization/91909
8334 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8335 reduc_index parameter. When handling COND_REDUCTION, make sure
8336 that the reduction phi operand is in the correct arm of the
8337 VEC_COND_EXPR.
8338 (vectorizable_reduction): Pass reduc_index to the above.
8339
8340 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8341
8342 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8343 New combine pattern.
8344
8345 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8346
8347 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8348 loop instruction into new basic block before the loop when basic
8349 block that precedes the loop is empty.
8350
8351 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8352
8353 * function.c (gimplify_parameters): Use build_clobber function.
8354 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8355 * tree-inline.c (expand_call_inline): Likewise.
8356 * tree-sra.c (clobber_subtree): Likewise.
8357 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8358 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8359 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8360 lower_omp_target): Likewise.
8361 * omp-expand.c (expand_omp_for_generic): Likewise.
8362 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8363
8364 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8365
8366 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8367 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8368 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8369 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8370 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8371 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8372 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8373 LD_ELEMREV_V16QI): Use the PURE attribute.
8374
8375 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8376
8377 * config/rs6000/darwin.md: Replace the expanders for
8378 load_macho_picbase and reload_macho_picbase with use of '@'
8379 and <mode> in their respective define_insns.
8380 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8381 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8382 Pmode to gen_load_macho_picbase.
8383 * config/rs6000/rs6000.md: Likewise.
8384
8385 2019-09-25 Richard Biener <rguenther@suse.de>
8386
8387 PR tree-optimization/91896
8388 * tree-vect-loop.c (vectorizable_reduction): The single
8389 def-use cycle optimization cannot apply when there's more
8390 than one pattern stmt involved.
8391
8392 2019-09-26 Richard Biener <rguenther@suse.de>
8393
8394 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8395 loop-closed PHIs that are vect_internal_def.
8396 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8397 Simplify.
8398 (vectorizable_lc_phi): New.
8399 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8400 (vect_transform_stmt): Likewise.
8401 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8402 (vectorizable_lc_phi): Declare.
8403
8404 2019-09-26 Richard Biener <rguenther@suse.de>
8405
8406 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8407 vectorizable_reduction for vect_double_reduction_def.
8408 (vect_transform_loop): Likewise.
8409 (vect_create_epilog_for_reduction): Move double-reduction
8410 PHI creation and preheader argument setting of PHIs ...
8411 (vectorizable_reduction): ... here. Also process
8412 vect_double_reduction_def PHIs, creating the vectorized
8413 PHI nodes, remembering the scalar adjustment computed for
8414 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8415 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8416 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8417 Initialize STMT_VINFO_REDUC_CODE.
8418 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8419 (_stmt_vec_info::reduc_code): Likewise.
8420 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8421 (STMT_VINFO_REDUC_CODE): Likewise.
8422
8423 2019-09-26 Matt Turner <mattst88@gmail.com>
8424
8425 PR driver/69471
8426 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8427 (mtune=): Add Negative(mtune=).
8428 (mcpu=): Add Negative(mcpu=).
8429 * config/arm/arm.opt: Likewise.
8430
8431 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8432
8433 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8434 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8435 Define.
8436 * config/arm/arm_acle.h: Define builtins for the above.
8437 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8438 (simd32_op): Handle the above.
8439 * config/arm/unspecs.md: Define unspecs for the above.
8440
8441 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8442
8443 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8444 (arm_<sup>xtb16): Likewise.
8445 (arm_usada8): Likewise.
8446 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8447 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8448 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8449 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8450 __sxtb16, __uxtab16, __uxtb16): Define.
8451 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8452 * config/arm/unspecs.md: Define unspecs for the above.
8453 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8454 (USXTB16): Likewise.
8455 (simd32_op): New int_attribute.
8456 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8457 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8458
8459 2019-09-26 Martin Jambor <mjambor@suse.cz>
8460
8461 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8462 internal_error.
8463
8464 2019-09-26 Martin Jambor <mjambor@suse.cz>
8465
8466 * ipa-sra.c (process_scan_results): Fix continue condition.
8467
8468 2019-09-26 Martin Liska <mliska@suse.cz>
8469
8470 PR tree-optimization/91885
8471 * tree-vectorizer.c (try_vectorize_loop_1): Add
8472 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8473
8474 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8475
8476 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8477 aarch64_plus_immediate rather than aarch64_uimm12_shift
8478 to test for valid PLUS immediates.
8479
8480 2019-09-25 Martin Jambor <mjambor@suse.cz>
8481
8482 * tree-sra.c (no_accesses_p): Remove.
8483 (no_accesses_representant): Likewise.
8484
8485 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8486
8487 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8488 consistenly.
8489 (vaba_s16): Likewise.
8490 (vaba_s32): Likewise.
8491 (vaba_u8): Likewise.
8492 (vaba_u16): Likewise.
8493 (vaba_u32): Likewise.
8494 (vabal_high_s8): Likewise.
8495 (vabal_high_s16): Likewise.
8496 (vabal_high_s32): Likewise.
8497 (vabal_high_u8): Likewise.
8498 (vabal_high_u16): Likewise.
8499 (vabal_high_u32): Likewise.
8500 (vabal_s8): Likewise.
8501 (vabal_s16): Likewise.
8502 (vabal_s32): Likewise.
8503 (vabal_u8): Likewise.
8504 (vabal_u16): Likewise.
8505 (vabal_u32): Likewise.
8506 (vabaq_s8): Likewise.
8507 (vabaq_s16): Likewise.
8508 (vabaq_s32): Likewise.
8509 (vabaq_u8): Likewise.
8510 (vabaq_u16): Likewise.
8511 (vabaq_u32): Likewise.
8512 (vabd_s8): Likewise.
8513 (vabd_s16): Likewise.
8514 (vabd_s32): Likewise.
8515 (vabd_u8): Likewise.
8516 (vabd_u16): Likewise.
8517 (vabd_u32): Likewise.
8518 (vabdl_high_s8): Likewise.
8519 (vabdl_high_s16): Likewise.
8520 (vabdl_high_s32): Likewise.
8521 (vabdl_high_u8): Likewise.
8522 (vabdl_high_u16): Likewise.
8523 (vabdl_high_u32): Likewise.
8524 (vabdl_s8): Likewise.
8525 (vabdl_s16): Likewise.
8526 (vabdl_s32): Likewise.
8527 (vabdl_u8): Likewise.
8528 (vabdl_u16): Likewise.
8529 (vabdl_u32): Likewise.
8530 (vabdq_s8): Likewise.
8531 (vabdq_s16): Likewise.
8532 (vabdq_s32): Likewise.
8533 (vabdq_u8): Likewise.
8534 (vabdq_u16): Likewise.
8535 (vabdq_u32): Likewise.
8536 (vaddlv_s8): Likewise.
8537 (vaddlv_s16): Likewise.
8538 (vaddlv_u8): Likewise.
8539 (vaddlv_u16): Likewise.
8540 (vaddlvq_s8): Likewise.
8541 (vaddlvq_s16): Likewise.
8542 (vaddlvq_s32): Likewise.
8543 (vaddlvq_u8): Likewise.
8544 (vaddlvq_u16): Likewise.
8545 (vaddlvq_u32): Likewise.
8546 (vcvtx_f32_f64): Likewise.
8547 (vcvtx_high_f32_f64): Likewise.
8548 (vcvtxd_f32_f64): Likewise.
8549 (vmla_n_f32): Likewise.
8550 (vmla_n_s16): Likewise.
8551 (vmla_n_s32): Likewise.
8552 (vmla_n_u16): Likewise.
8553 (vmla_n_u32): Likewise.
8554 (vmla_s8): Likewise.
8555 (vmla_s16): Likewise.
8556 (vmla_s32): Likewise.
8557 (vmla_u8): Likewise.
8558 (vmla_u16): Likewise.
8559 (vmla_u32): Likewise.
8560 (vmlal_high_n_s16): Likewise.
8561 (vmlal_high_n_s32): Likewise.
8562 (vmlal_high_n_u16): Likewise.
8563 (vmlal_high_n_u32): Likewise.
8564 (vmlal_high_s8): Likewise.
8565 (vmlal_high_s16): Likewise.
8566 (vmlal_high_s32): Likewise.
8567 (vmlal_high_u8): Likewise.
8568 (vmlal_high_u16): Likewise.
8569 (vmlal_high_u32): Likewise.
8570 (vmlal_n_s16): Likewise.
8571 (vmlal_n_s32): Likewise.
8572 (vmlal_n_u16): Likewise.
8573 (vmlal_n_u32): Likewise.
8574 (vmlal_s8): Likewise.
8575 (vmlal_s16): Likewise.
8576 (vmlal_s32): Likewise.
8577 (vmlal_u8): Likewise.
8578 (vmlal_u16): Likewise.
8579 (vmlal_u32): Likewise.
8580 (vmlaq_n_f32): Likewise.
8581 (vmlaq_n_s16): Likewise.
8582 (vmlaq_n_s32): Likewise.
8583 (vmlaq_n_u16): Likewise.
8584 (vmlaq_n_u32): Likewise.
8585 (vmlaq_s8): Likewise.
8586 (vmlaq_s16): Likewise.
8587 (vmlaq_s32): Likewise.
8588 (vmlaq_u8): Likewise.
8589 (vmlaq_u16): Likewise.
8590 (vmlaq_u32): Likewise.
8591 (vmls_n_f32): Likewise.
8592 (vmls_n_s16): Likewise.
8593 (vmls_n_s32): Likewise.
8594 (vmls_n_u16): Likewise.
8595 (vmls_n_u32): Likewise.
8596 (vmls_s8): Likewise.
8597 (vmls_s16): Likewise.
8598 (vmls_s32): Likewise.
8599 (vmls_u8): Likewise.
8600 (vmls_u16): Likewise.
8601 (vmls_u32): Likewise.
8602 (vmlsl_high_n_s16): Likewise.
8603 (vmlsl_high_n_s32): Likewise.
8604 (vmlsl_high_n_u16): Likewise.
8605 (vmlsl_high_n_u32): Likewise.
8606 (vmlsl_high_s8): Likewise.
8607 (vmlsl_high_s16): Likewise.
8608 (vmlsl_high_s32): Likewise.
8609 (vmlsl_high_u8): Likewise.
8610 (vmlsl_high_u16): Likewise.
8611 (vmlsl_high_u32): Likewise.
8612 (vmlsl_n_s16): Likewise.
8613 (vmlsl_n_s32): Likewise.
8614 (vmlsl_n_u16): Likewise.
8615 (vmlsl_n_u32): Likewise.
8616 (vmlsl_s8): Likewise.
8617 (vmlsl_s16): Likewise.
8618 (vmlsl_s32): Likewise.
8619 (vmlsl_u8): Likewise.
8620 (vmlsl_u16): Likewise.
8621 (vmlsl_u32): Likewise.
8622 (vmlsq_n_f32): Likewise.
8623 (vmlsq_n_s16): Likewise.
8624 (vmlsq_n_s32): Likewise.
8625 (vmlsq_n_u16): Likewise.
8626 (vmlsq_n_u32): Likewise.
8627 (vmlsq_s8): Likewise.
8628 (vmlsq_s16): Likewise.
8629 (vmlsq_s32): Likewise.
8630 (vmlsq_u8): Likewise.
8631 (vmlsq_u16): Likewise.
8632 (vmlsq_u32): Likewise.
8633 (vmovl_high_s8): Likewise.
8634 (vmovl_high_s16): Likewise.
8635 (vmovl_high_s32): Likewise.
8636 (vmovl_high_u8): Likewise.
8637 (vmovl_high_u16): Likewise.
8638 (vmovl_high_u32): Likewise.
8639 (vmovl_s8): Likewise.
8640 (vmovl_s16): Likewise.
8641 (vmovl_s32): Likewise.
8642 (vmovl_u8): Likewise.
8643 (vmovl_u16): Likewise.
8644 (vmovl_u32): Likewise.
8645 (vmovn_high_s16): Likewise.
8646 (vmovn_high_s32): Likewise.
8647 (vmovn_high_s64): Likewise.
8648 (vmovn_high_u16): Likewise.
8649 (vmovn_high_u32): Likewise.
8650 (vmovn_high_u64): Likewise.
8651 (vmovn_s16): Likewise.
8652 (vmovn_s32): Likewise.
8653 (vmovn_s64): Likewise.
8654 (vmovn_u16): Likewise.
8655 (vmovn_u32): Likewise.
8656 (vmovn_u64): Likewise.
8657 (vmull_high_n_s16): Likewise.
8658 (vmull_high_n_s32): Likewise.
8659 (vmull_high_n_u16): Likewise.
8660 (vmull_high_n_u32): Likewise.
8661 (vmull_high_p8): Likewise.
8662 (vmull_high_s8): Likewise.
8663 (vmull_high_s16): Likewise.
8664 (vmull_high_s32): Likewise.
8665 (vmull_high_u8): Likewise.
8666 (vmull_high_u16): Likewise.
8667 (vmull_high_u32): Likewise.
8668 (vmull_n_s16): Likewise.
8669 (vmull_n_s32): Likewise.
8670 (vmull_n_u16): Likewise.
8671 (vmull_n_u32): Likewise.
8672 (vmull_p8): Likewise.
8673 (vmull_s8): Likewise.
8674 (vmull_s16): Likewise.
8675 (vmull_s32): Likewise.
8676 (vmull_u8): Likewise.
8677 (vmull_u16): Likewise.
8678 (vmull_u32): Likewise.
8679 (vpadal_s8): Likewise.
8680 (vpadal_s16): Likewise.
8681 (vpadal_s32): Likewise.
8682 (vpadal_u8): Likewise.
8683 (vpadal_u16): Likewise.
8684 (vpadal_u32): Likewise.
8685 (vpadalq_s8): Likewise.
8686 (vpadalq_s16): Likewise.
8687 (vpadalq_s32): Likewise.
8688 (vpadalq_u8): Likewise.
8689 (vpadalq_u16): Likewise.
8690 (vpadalq_u32): Likewise.
8691 (vpaddl_s8): Likewise.
8692 (vpaddl_s16): Likewise.
8693 (vpaddl_s32): Likewise.
8694 (vpaddl_u8): Likewise.
8695 (vpaddl_u16): Likewise.
8696 (vpaddl_u32): Likewise.
8697 (vpaddlq_s8): Likewise.
8698 (vpaddlq_s16): Likewise.
8699 (vpaddlq_s32): Likewise.
8700 (vpaddlq_u8): Likewise.
8701 (vpaddlq_u16): Likewise.
8702 (vpaddlq_u32): Likewise.
8703 (vpaddq_s8): Likewise.
8704 (vpaddq_s16): Likewise.
8705 (vpaddq_s32): Likewise.
8706 (vpaddq_s64): Likewise.
8707 (vpaddq_u8): Likewise.
8708 (vpaddq_u16): Likewise.
8709 (vpaddq_u32): Likewise.
8710 (vpaddq_u64): Likewise.
8711 (vqdmulh_n_s16): Likewise.
8712 (vqdmulh_n_s32): Likewise.
8713 (vqdmulhq_n_s16): Likewise.
8714 (vqdmulhq_n_s32): Likewise.
8715 (vqmovn_high_s16): Likewise.
8716 (vqmovn_high_s32): Likewise.
8717 (vqmovn_high_s64): Likewise.
8718 (vqmovn_high_u16): Likewise.
8719 (vqmovn_high_u32): Likewise.
8720 (vqmovn_high_u64): Likewise.
8721 (vqmovun_high_s16): Likewise.
8722 (vqmovun_high_s32): Likewise.
8723 (vqmovun_high_s64): Likewise.
8724 (vqrdmulh_n_s16): Likewise.
8725 (vqrdmulh_n_s32): Likewise.
8726 (vqrdmulhq_n_s16): Likewise.
8727 (vqrdmulhq_n_s32): Likewise.
8728 (vrsqrte_u32): Likewise.
8729 (vrsqrteq_u32): Likewise.
8730 (vtst_p8): Likewise.
8731 (vtst_p16): Likewise.
8732 (vtst_p64): Likewise.
8733 (vtstq_p8): Likewise.
8734 (vtstq_p16): Likewise.
8735 (vtstq_p64): Likewise.
8736 (vaddlv_s32): Likewise.
8737 (vaddlv_u32): Likewise.
8738 (vqtbl1_p8): Likewise.
8739 (vqtbl1_s8): Likewise.
8740 (vqtbl1_u8): Likewise.
8741 (vqtbl1q_p8): Likewise.
8742 (vqtbl1q_s8): Likewise.
8743 (vqtbl1q_u8): Likewise.
8744 (vqtbx1_s8): Likewise.
8745 (vqtbx1_u8): Likewise.
8746 (vqtbx1_p8): Likewise.
8747 (vqtbx1q_s8): Likewise.
8748 (vqtbx1q_u8): Likewise.
8749 (vqtbx1q_p8): Likewise.
8750 (vtbl1_s8): Likewise.
8751 (vtbl1_u8): Likewise.
8752 (vtbl1_p8): Likewise.
8753 (vtbl2_s8): Likewise.
8754 (vtbl2_u8): Likewise.
8755 (vtbl2_p8): Likewise.
8756 (vtbl3_s8): Likewise.
8757 (vtbl3_u8): Likewise.
8758 (vtbl3_p8): Likewise.
8759 (vtbl4_s8): Likewise.
8760 (vtbl4_u8): Likewise.
8761 (vtbl4_p8): Likewise.
8762 (vtbx2_s8): Likewise.
8763 (vtbx2_u8): Likewise.
8764 (vtbx2_p8): Likewise.
8765 (vld1_f32): Likewise.
8766 (vld1_f64): Likewise.
8767 (vld1_p8): Likewise.
8768 (vld1_p16): Likewise.
8769 (vld1_p64): Likewise.
8770 (vld1_s8): Likewise.
8771 (vld1_s16): Likewise.
8772 (vld1_s32): Likewise.
8773 (vld1_s64): Likewise.
8774 (vld1_u8): Likewise.
8775 (vld1_u16): Likewise.
8776 (vld1_u32): Likewise.
8777 (vld1_u64): Likewise.
8778 (vld1q_f32): Likewise.
8779 (vld1q_f64): Likewise.
8780 (vld1q_p8): Likewise.
8781 (vld1q_p16): Likewise.
8782 (vld1q_p64): Likewise.
8783 (vld1q_s8): Likewise.
8784 (vld1q_s16): Likewise.
8785 (vld1q_s32): Likewise.
8786 (vld1q_s64): Likewise.
8787 (vld1q_u8): Likewise.
8788 (vld1q_u16): Likewise.
8789 (vld1q_u32): Likewise.
8790 (vld1q_u64): Likewise.
8791 (vpmax_s8): Likewise.
8792 (vpmax_s16): Likewise.
8793 (vpmax_s32): Likewise.
8794 (vpmax_u8): Likewise.
8795 (vpmax_u16): Likewise.
8796 (vpmax_u32): Likewise.
8797 (vpmaxq_s8): Likewise.
8798 (vpmaxq_s16): Likewise.
8799 (vpmaxq_s32): Likewise.
8800 (vpmaxq_u8): Likewise.
8801 (vpmaxq_u16): Likewise.
8802 (vpmaxq_u32): Likewise.
8803 (vpmax_f32): Likewise.
8804 (vpmaxq_f32): Likewise.
8805 (vpmaxq_f64): Likewise.
8806 (vpmaxqd_f64): Likewise.
8807 (vpmaxs_f32): Likewise.
8808 (vpmaxnm_f32): Likewise.
8809 (vpmaxnmq_f32): Likewise.
8810 (vpmaxnmq_f64): Likewise.
8811 (vpmaxnmqd_f64): Likewise.
8812 (vpmaxnms_f32): Likewise.
8813 (vpmin_s8): Likewise.
8814 (vpmin_s16): Likewise.
8815 (vpmin_s32): Likewise.
8816 (vpmin_u8): Likewise.
8817 (vpmin_u16): Likewise.
8818 (vpmin_u32): Likewise.
8819 (vpminq_s8): Likewise.
8820 (vpminq_s16): Likewise.
8821 (vpminq_s32): Likewise.
8822 (vpminq_u8): Likewise.
8823 (vpminq_u16): Likewise.
8824 (vpminq_u32): Likewise.
8825 (vpmin_f32): Likewise.
8826 (vpminq_f32): Likewise.
8827 (vpminq_f64): Likewise.
8828 (vpminqd_f64): Likewise.
8829 (vpmins_f32): Likewise.
8830 (vpminnm_f32): Likewise.
8831 (vpminnmq_f32): Likewise.
8832 (vpminnmq_f64): Likewise.
8833 (vpminnmqd_f64): Likewise.
8834 (vpminnms_f32): Likewise.
8835 (vmla_f32): Likewise.
8836 (vmlaq_f32): Likewise.
8837 (vmlaq_f64): Likewise.
8838 (vmls_f32): Likewise.
8839 (vmlsq_f32): Likewise.
8840 (vmlsq_f64): Likewise.
8841 (vqtbl2_s8): Likewise.
8842 (vqtbl2_u8): Likewise.
8843 (vqtbl2_p8): Likewise.
8844 (vqtbl2q_s8): Likewise.
8845 (vqtbl2q_u8): Likewise.
8846 (vqtbl2q_p8): Likewise.
8847 (vqtbl3_s8): Likewise.
8848 (vqtbl3_u8): Likewise.
8849 (vqtbl3_p8): Likewise.
8850 (vqtbl3q_s8): Likewise.
8851 (vqtbl3q_u8): Likewise.
8852 (vqtbl3q_p8): Likewise.
8853 (vqtbl4_s8): Likewise.
8854 (vqtbl4_u8): Likewise.
8855 (vqtbl4_p8): Likewise.
8856 (vqtbl4q_s8): Likewise.
8857 (vqtbl4q_u8): Likewise.
8858 (vqtbl4q_p8): Likewise.
8859 (vqtbx2_s8): Likewise.
8860 (vqtbx2_u8): Likewise.
8861 (vqtbx2_p8): Likewise.
8862 (vqtbx2q_s8): Likewise.
8863 (vqtbx2q_u8): Likewise.
8864 (vqtbx2q_p8): Likewise.
8865 (vqtbx3_s8): Likewise.
8866 (vqtbx3_u8): Likewise.
8867 (vqtbx3_p8): Likewise.
8868 (vqtbx3q_s8): Likewise.
8869 (vqtbx3q_u8): Likewise.
8870 (vqtbx3q_p8): Likewise.
8871 (vqtbx4_s8): Likewise.
8872 (vqtbx4_u8): Likewise.
8873 (vqtbx4_p8): Likewise.
8874 (vqtbx4q_s8): Likewise.
8875 (vqtbx4q_u8): Likewise.
8876 (vqtbx4q_p8): Likewise.
8877 (vrev16_p8): Likewise.
8878 (vrev16_s8): Likewise.
8879 (vrev16_u8): Likewise.
8880 (vrev16q_p8): Likewise.
8881 (vrev16q_s8): Likewise.
8882 (vrev16q_u8): Likewise.
8883 (vrev32_p8): Likewise.
8884 (vrev32_p16): Likewise.
8885 (vrev32_s8): Likewise.
8886 (vrev32_s16): Likewise.
8887 (vrev32_u8): Likewise.
8888 (vrev32_u16): Likewise.
8889 (vrev32q_p8): Likewise.
8890 (vrev32q_p16): Likewise.
8891 (vrev32q_s8): Likewise.
8892 (vrev32q_s16): Likewise.
8893 (vrev32q_u8): Likewise.
8894 (vrev32q_u16): Likewise.
8895 (vrev64_f32): Likewise.
8896 (vrev64_p8): Likewise.
8897 (vrev64_p16): Likewise.
8898 (vrev64_s8): Likewise.
8899 (vrev64_s16): Likewise.
8900 (vrev64_s32): Likewise.
8901 (vrev64_u8): Likewise.
8902 (vrev64_u16): Likewise.
8903 (vrev64_u32): Likewise.
8904 (vrev64q_f32): Likewise.
8905 (vrev64q_p8): Likewise.
8906 (vrev64q_p16): Likewise.
8907 (vrev64q_s8): Likewise.
8908 (vrev64q_s16): Likewise.
8909 (vrev64q_s32): Likewise.
8910 (vrev64q_u8): Likewise.
8911 (vrev64q_u16): Likewise.
8912 (vrev64q_u32): Likewise.
8913 (vsha1cq_u32): Likewise.
8914 (vsha1mq_u32): Likewise.
8915 (vsha1pq_u32): Likewise.
8916 (vsha1h_u32): Likewise.
8917 (vsha1su0q_u32): Likewise.
8918 (vsha1su1q_u32): Likewise.
8919 (vsha256hq_u32): Likewise.
8920 (vsha256h2q_u32): Likewise.
8921 (vsha256su0q_u32): Likewise.
8922 (vsha256su1q_u32): Likewise.
8923 (vmull_p64): Likewise.
8924 (vmull_high_p64): Likewise.
8925 (vsqrt_f32): Likewise.
8926 (vsqrtq_f32): Likewise.
8927 (vsqrt_f64): Likewise.
8928 (vsqrtq_f64): Likewise.
8929 (vst1_f32): Likewise.
8930 (vst1_f64): Likewise.
8931 (vst1_p8): Likewise.
8932 (vst1_p16): Likewise.
8933 (vst1_p64): Likewise.
8934 (vst1_s8): Likewise.
8935 (vst1_s16): Likewise.
8936 (vst1_s32): Likewise.
8937 (vst1_s64): Likewise.
8938 (vst1_u8): Likewise.
8939 (vst1_u16): Likewise.
8940 (vst1_u32): Likewise.
8941 (vst1_u64): Likewise.
8942 (vst1q_f32): Likewise.
8943 (vst1q_f64): Likewise.
8944 (vst1q_p8): Likewise.
8945 (vst1q_p16): Likewise.
8946 (vst1q_p64): Likewise.
8947 (vst1q_s8): Likewise.
8948 (vst1q_s16): Likewise.
8949 (vst1q_s32): Likewise.
8950 (vst1q_s64): Likewise.
8951 (vst1q_u8): Likewise.
8952 (vst1q_u16): Likewise.
8953 (vst1q_u32): Likewise.
8954 (vst1q_u64): Likewise.
8955 (vst1_s64_x2): Likewise.
8956 (vst1_u64_x2): Likewise.
8957 (vst1_f64_x2): Likewise.
8958 (vst1_s8_x2): Likewise.
8959 (vst1_p8_x2): Likewise.
8960 (vst1_s16_x2): Likewise.
8961 (vst1_p16_x2): Likewise.
8962 (vst1_s32_x2): Likewise.
8963 (vst1_u8_x2): Likewise.
8964 (vst1_u16_x2): Likewise.
8965 (vst1_u32_x2): Likewise.
8966 (vst1_f16_x2): Likewise.
8967 (vst1_f32_x2): Likewise.
8968 (vst1_p64_x2): Likewise.
8969 (vst1q_s8_x2): Likewise.
8970 (vst1q_p8_x2): Likewise.
8971 (vst1q_s16_x2): Likewise.
8972 (vst1q_p16_x2): Likewise.
8973 (vst1q_s32_x2): Likewise.
8974 (vst1q_s64_x2): Likewise.
8975 (vst1q_u8_x2): Likewise.
8976 (vst1q_u16_x2): Likewise.
8977 (vst1q_u32_x2): Likewise.
8978 (vst1q_u64_x2): Likewise.
8979 (vst1q_f16_x2): Likewise.
8980 (vst1q_f32_x2): Likewise.
8981 (vst1q_f64_x2): Likewise.
8982 (vst1q_p64_x2): Likewise.
8983 (vst1_s64_x3): Likewise.
8984 (vst1_u64_x3): Likewise.
8985 (vst1_f64_x3): Likewise.
8986 (vst1_s8_x3): Likewise.
8987 (vst1_p8_x3): Likewise.
8988 (vst1_s16_x3): Likewise.
8989 (vst1_p16_x3): Likewise.
8990 (vst1_s32_x3): Likewise.
8991 (vst1_u8_x3): Likewise.
8992 (vst1_u16_x3): Likewise.
8993 (vst1_u32_x3): Likewise.
8994 (vst1_f16_x3): Likewise.
8995 (vst1_f32_x3): Likewise.
8996 (vst1_p64_x3): Likewise.
8997 (vst1q_s8_x3): Likewise.
8998 (vst1q_p8_x3): Likewise.
8999 (vst1q_s16_x3): Likewise.
9000 (vst1q_p16_x3): Likewise.
9001 (vst1q_s32_x3): Likewise.
9002 (vst1q_s64_x3): Likewise.
9003 (vst1q_u8_x3): Likewise.
9004 (vst1q_u16_x3): Likewise.
9005 (vst1q_u32_x3): Likewise.
9006 (vst1q_u64_x3): Likewise.
9007 (vst1q_f16_x3): Likewise.
9008 (vst1q_f32_x3): Likewise.
9009 (vst1q_f64_x3): Likewise.
9010 (vst1q_p64_x3): Likewise.
9011 (vst2_s64): Likewise.
9012 (vst2_u64): Likewise.
9013 (vst2_f64): Likewise.
9014 (vst2_s8): Likewise.
9015 (vst2_p8): Likewise.
9016 (vst2_s16): Likewise.
9017 (vst2_p16): Likewise.
9018 (vst2_s32): Likewise.
9019 (vst2_u8): Likewise.
9020 (vst2_u16): Likewise.
9021 (vst2_u32): Likewise.
9022 (vst2_f16): Likewise.
9023 (vst2_f32): Likewise.
9024 (vst2_p64): Likewise.
9025 (vst2q_s8): Likewise.
9026 (vst2q_p8): Likewise.
9027 (vst2q_s16): Likewise.
9028 (vst2q_p16): Likewise.
9029 (vst2q_s32): Likewise.
9030 (vst2q_s64): Likewise.
9031 (vst2q_u8): Likewise.
9032 (vst2q_u16): Likewise.
9033 (vst2q_u32): Likewise.
9034 (vst2q_u64): Likewise.
9035 (vst2q_f16): Likewise.
9036 (vst2q_f32): Likewise.
9037 (vst2q_f64): Likewise.
9038 (vst2q_p64): Likewise.
9039 (vst3_s64): Likewise.
9040 (vst3_u64): Likewise.
9041 (vst3_f64): Likewise.
9042 (vst3_s8): Likewise.
9043 (vst3_p8): Likewise.
9044 (vst3_s16): Likewise.
9045 (vst3_p16): Likewise.
9046 (vst3_s32): Likewise.
9047 (vst3_u8): Likewise.
9048 (vst3_u16): Likewise.
9049 (vst3_u32): Likewise.
9050 (vst3_f16): Likewise.
9051 (vst3_f32): Likewise.
9052 (vst3_p64): Likewise.
9053 (vst3q_s8): Likewise.
9054 (vst3q_p8): Likewise.
9055 (vst3q_s16): Likewise.
9056 (vst3q_p16): Likewise.
9057 (vst3q_s32): Likewise.
9058 (vst3q_s64): Likewise.
9059 (vst3q_u8): Likewise.
9060 (vst3q_u16): Likewise.
9061 (vst3q_u32): Likewise.
9062 (vst3q_u64): Likewise.
9063 (vst3q_f16): Likewise.
9064 (vst3q_f32): Likewise.
9065 (vst3q_f64): Likewise.
9066 (vst3q_p64): Likewise.
9067 (vst4_s64): Likewise.
9068 (vst4_u64): Likewise.
9069 (vst4_f64): Likewise.
9070 (vst4_s8): Likewise.
9071 (vst4_p8): Likewise.
9072 (vst4_s16): Likewise.
9073 (vst4_p16): Likewise.
9074 (vst4_s32): Likewise.
9075 (vst4_u8): Likewise.
9076 (vst4_u16): Likewise.
9077 (vst4_u32): Likewise.
9078 (vst4_f16): Likewise.
9079 (vst4_f32): Likewise.
9080 (vst4_p64): Likewise.
9081 (vst4q_s8): Likewise.
9082 (vst4q_p8): Likewise.
9083 (vst4q_s16): Likewise.
9084 (vst4q_p16): Likewise.
9085 (vst4q_s32): Likewise.
9086 (vst4q_s64): Likewise.
9087 (vst4q_u8): Likewise.
9088 (vst4q_u16): Likewise.
9089 (vst4q_u32): Likewise.
9090 (vst4q_u64): Likewise.
9091 (vst4q_f16): Likewise.
9092 (vst4q_f32): Likewise.
9093 (vst4q_f64): Likewise.
9094 (vst4q_p64): Likewise.
9095 (vtbx4_s8): Likewise.
9096 (vtbx4_u8): Likewise.
9097 (vtbx4_p8): Likewise.
9098 (vtrn_f32): Likewise.
9099 (vtrn_p8): Likewise.
9100 (vtrn_p16): Likewise.
9101 (vtrn_s8): Likewise.
9102 (vtrn_s16): Likewise.
9103 (vtrn_s32): Likewise.
9104 (vtrn_u8): Likewise.
9105 (vtrn_u16): Likewise.
9106 (vtrn_u32): Likewise.
9107 (vtrnq_f32): Likewise.
9108 (vtrnq_p8): Likewise.
9109 (vtrnq_p16): Likewise.
9110 (vtrnq_s8): Likewise.
9111 (vtrnq_s16): Likewise.
9112 (vtrnq_s32): Likewise.
9113 (vtrnq_u8): Likewise.
9114 (vtrnq_u16): Likewise.
9115 (vtrnq_u32): Likewise.
9116 (vrsqrte_f16): Likewise.
9117 (vrsqrteq_f16): Likewise.
9118 (vsqrt_f16): Likewise.
9119 (vsqrtq_f16): Likewise.
9120 (vabd_f16): Likewise.
9121 (vabdq_f16): Likewise.
9122 (vpadd_f16): Likewise.
9123 (vpaddq_f16): Likewise.
9124 (vpmax_f16): Likewise.
9125 (vpmaxq_f16): Likewise.
9126 (vpmaxnm_f16): Likewise.
9127 (vpmaxnmq_f16): Likewise.
9128 (vpmin_f16): Likewise.
9129 (vpminq_f16): Likewise.
9130 (vpminnm_f16): Likewise.
9131 (vpminnmq_f16): Likewise.
9132 (vrsqrts_f16): Likewise.
9133 (vrsqrtsq_f16): Likewise.
9134
9135 2019-09-25 Richard Biener <rguenther@suse.de>
9136
9137 PR tree-optimization/91896
9138 * tree-vect-loop.c (vectorizable_reduction): The single
9139 def-use cycle optimization cannot apply when there's more
9140 than one pattern stmt involved.
9141
9142 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9143
9144 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
9145 the 'P' mode iterator, replacing the (removed) SI and DI variants.
9146 (reload_macho_picbase_<mode>): Likewise.
9147
9148 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9149
9150 * config/rs6000/rs6000.md: Move darwin.md include until
9151 after the definition of the mode iterators.
9152
9153 2019-09-23 Martin Sebor <msebor@redhat.com>
9154
9155 PR tree-optimization/91570
9156 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
9157 non-constant minlen, maxlen and maxbound.
9158
9159 2019-09-24 Richard Biener <rguenther@suse.de>
9160
9161 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
9162 Rename to...
9163 (_stmt_vec_info::cond_reduc_code): ... this.
9164 (_stmt_vec_info::induc_cond_initial_val): Add.
9165 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
9166 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
9167 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
9168 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
9169 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
9170 the reduction code.
9171 (vect_create_epilog_for_reduction): Drop special
9172 induction condition reduction params, pass in reduction code
9173 and simplify.
9174 (vectorizable_reduction): Perform condition reduction kind
9175 selection only at analysis time. Adjust passing on state.
9176
9177 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9178
9179 * config/aarch64/aarch64.md (mov<mode>): Don't call
9180 aarch64_split_dimode_const_store on volatile MEM.
9181
9182 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
9183
9184 * config/aarch64/aarch64-option-extensions.def (fp16fml):
9185 Update hwcap string for fp16fml.
9186
9187 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9188
9189 PR middle-end/91866
9190 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9191 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9192
9193 2019-09-24 Martin Liska <mliska@suse.cz>
9194
9195 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9196 instead of if-elseif-elseif-...
9197 * gimple-expr.c (extract_ops_from_tree): Likewise.
9198 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9199 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9200
9201 2019-09-24 Martin Jambor <mjambor@suse.cz>
9202
9203 PR ipa/91831
9204 * ipa-param-manipulation.c (carry_over_param): Make a method of
9205 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9206 in case of a context mismatch.
9207 (ipa_param_body_adjustments::common_initialization): Adjust call to
9208 carry_over_param.
9209 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9210 private method carry_over_param.
9211
9212 2019-09-24 Martin Jambor <mjambor@suse.cz>
9213
9214 PR ipa/91832
9215 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9216
9217 2019-09-24 Richard Biener <rguenther@suse.de>
9218
9219 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9220 base.
9221
9222 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9223
9224 * config/arm/t-arm (arm-builtins.o): Add dependency on
9225 arm_acle_builtins.def.
9226
9227 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9228
9229 PR target/91823
9230 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9231 canonical CONST_INTs. Use gen_rtvec.
9232
9233 2019-09-23 Richard Biener <rguenther@suse.de>
9234
9235 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9236 avoid adjusting by + 0 or * 1.
9237 (vect_create_epilog_for_reduction): Get reduction code only
9238 when necessary. Deal with adjustment_def only when necessary.
9239
9240 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9241
9242 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9243 memmodel index.
9244
9245 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9246
9247 PR ipa/91835
9248 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9249 "ipa-sra".
9250
9251 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9252
9253 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9254 code. Merge code blocks with common conditionals. Use declared
9255 macro instead of a magic number for PIC level.
9256
9257 2019-09-21 Martin Sebor <msebor@redhat.com>
9258
9259 PR middle-end/91830
9260 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9261 Simplify computation of the offset of the referenced subobject.
9262
9263 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9264
9265 * config/darwin.c (machopic_legitimize_pic_address): Check
9266 for lra not reload.
9267
9268 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9269
9270 * ira-conflicts.c (can_use_same_reg_p): New function.
9271 (process_reg_shuffles): Take an insn parameter. Ignore cases
9272 in which input operand op_num could seemingly never be allocated
9273 to the same register as the destination.
9274 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9275
9276 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9277
9278 * simplify-rtx.c (neg_const_int): Replace with...
9279 (neg_poly_int_rtx): ...this new function.
9280 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9281 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9282 (simplify_plus_minus): Likewise for constant terms here.
9283
9284 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9285
9286 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9287 HOST_WIDE_PRINT_UNSIGNED.
9288
9289 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9290
9291 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9292 character.
9293
9294 2019-09-20 Maya Rashish <coypu@sdf.org>
9295
9296 PR target/86811
9297 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9298 Define to speculation_safe_value_not_needed.
9299
9300 2019-09-20 Richard Biener <rguenther@suse.de>
9301 Uros Bizjak <ubizjak@gmail.com>
9302
9303 PR target/91814
9304 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9305 previous change.
9306 (general_scalar_chain::convert_op): Force not suitable memory
9307 operands to a register.
9308
9309 2019-09-20 Richard Biener <rguenther@suse.de>
9310
9311 PR tree-optimization/91821
9312 * tree-vect-loop.c (check_reduction_path): Check we can compute
9313 reduc_idx.
9314 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9315 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9316 operands in canonical order.
9317 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9318 STMT_VINFO_REDUC_IDX.
9319 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9320 (STMT_VINFO_REDUC_IDX): Likewise.
9321
9322 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9323
9324 PR target/91269
9325 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9326
9327 2019-09-20 Richard Biener <rguenther@suse.de>
9328
9329 PR tree-optimization/91822
9330 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9331 parameter.
9332 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9333 for reduc_index in nested cycles, adjust vectorizable_condition
9334 calls.
9335 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9336 parameter.
9337 (vect_analyze_stmt): Adjust.
9338 (vect_transform_stmt): Likewise.
9339
9340 2019-09-20 Richard Biener <rguenther@suse.de>
9341
9342 PR target/91767
9343 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9344 Ensure there's a sequence point between allocating the new register
9345 and passing a reference to a reg via regno_reg_rtx.
9346
9347 2019-09-20 Martin Jambor <mjambor@suse.cz>
9348
9349 * coretypes.h (cgraph_edge): Declare.
9350 * ipa-param-manipulation.c: Rewrite.
9351 * ipa-param-manipulation.h: Likewise.
9352 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9353 (OBJS): Added ipa-sra.o.
9354 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9355 and ref_p, added fields param_adjustments and performed_splits.
9356 (struct cgraph_clone_info): Remove ags_to_skip and
9357 combined_args_to_skip, new field param_adjustments.
9358 (cgraph_node::create_clone): Changed parameters to use
9359 ipa_param_adjustments.
9360 (cgraph_node::create_virtual_clone): Likewise.
9361 (cgraph_node::create_virtual_clone_with_body): Likewise.
9362 (tree_function_versioning): Likewise.
9363 (cgraph_build_function_type_skip_args): Removed.
9364 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9365 using ipa_param_adjustments.
9366 (clone_of_p): Likewise.
9367 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9368 (build_function_decl_skip_args): Likewise.
9369 (duplicate_thunk_for_node): Adjust parameters using
9370 ipa_param_body_adjustments, copy param_adjustments instead of
9371 args_to_skip.
9372 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9373 (cgraph_node::create_virtual_clone): Likewise.
9374 (cgraph_node::create_version_clone_with_body): Likewise.
9375 (cgraph_materialize_clone): Likewise.
9376 (symbol_table::materialize_all_clones): Likewise.
9377 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9378 ipa_replace_map check.
9379 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9380 (initialize_node_lattices): Make aware that some parameters might have
9381 already been removed.
9382 (want_remove_some_param_p): New function.
9383 (create_specialized_node): Convert to using ipa_param_adjustments and
9384 deal with possibly pre-existing adjustments.
9385 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9386 (output_node_opt_summary): Do not stream removed fields. Stream
9387 parameter adjustments instead of argumetns to skip.
9388 (input_node_opt_summary): Likewise.
9389 (input_node_opt_summary): Likewise.
9390 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9391 * lto-streamer.h (lto_section_type): Likewise.
9392 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9393 param_body_adjs.
9394 (copy_decl_to_var): Declare.
9395 * tree-inline.c (update_clone_info): Do not remap old_tree.
9396 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9397 statements, walk all extra generated statements and remap their
9398 operands.
9399 (redirect_all_calls): Add killed SSA names to a hash set.
9400 (remap_ssa_name): Do not remap killed SSA names.
9401 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9402 half of functionality moved to ipa_param_body_adjustments.
9403 (copy_decl_to_var): Make exported.
9404 (copy_body): Destroy killed_new_ssa_names hash set.
9405 (expand_call_inline): Remap performed splits.
9406 (update_clone_info): Likewise.
9407 (tree_function_versioning): Simplify tree_map processing. Updated to
9408 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9409 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9410 for the new interface.
9411 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9412 (simd_clone_compute_base_data_type): Likewise.
9413 (simd_clone_init_simd_arrays): Adjust for the new interface.
9414 (simd_clone_adjust_argument_types): Likewise.
9415 (struct modify_stmt_info): Likewise.
9416 (ipa_simd_modify_stmt_ops): Likewise.
9417 (ipa_simd_modify_function_body): Likewise.
9418 (simd_clone_adjust): Likewise.
9419 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9420 (type_internals_preclude_sra_p): Make public.
9421 * tree-sra.h: New file.
9422 * ipa-inline-transform.c (save_inline_function_body): Update to
9423 refelct new tree_function_versioning signature.
9424 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9425 ipa_param_adjustments to get current parameter indices.
9426 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9427 (ipcp_update_bits): Likewise.
9428 (ipcp_update_vr): Likewise.
9429 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9430 * ipa-sra.c: New file.
9431 * multiple_target.c (create_target_clone): Update to reflet new type
9432 of create_version_clone_with_body.
9433 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9434 tree_function_versioning.
9435 (modify_function): Update to reflect new type of
9436 tree_function_versioning.
9437 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9438 * passes.def: Remove old IPA-SRA and add new one.
9439 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9440 (make_pass_ipa_sra): Declare.
9441 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9442 ipa_sra_retvalues.
9443 * doc/invoke.texi (ipa-sra-max-replacements): New.
9444
9445 2019-09-19 Martin Sebor <msebor@redhat.com>
9446
9447 PR middle-end/91631
9448 * builtins.c (component_size): Correct trailing array computation,
9449 rename to component_ref_size and move...
9450 (compute_objsize): Adjust.
9451 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9452 (builtin_access::strict): Do not consider memmove.
9453 (builtin_access::write_off): New function.
9454 (builtin_memref::builtin_memref): Initialize refsize.
9455 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9456 refsize.
9457 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9458 Handle refsize.
9459 (builtin_access::builtin_access): Initialize dstoff to destination
9460 refeence offset here instead of in maybe_diag_overlap. Adjust
9461 referencess even to unrelated objects. Adjust sizrange of bounded
9462 string functions to reflect bound. For strcat, adjust destination
9463 sizrange by that of source.
9464 (builtin_access::strcat_overlap): Adjust offsets and sizes
9465 to reflect the increase in destination sizrange above.
9466 (builtin_access::overlap): Do not set dstoff here but instead
9467 in builtin_access::builtin_access.
9468 (check_bounds_or_overlap): Use builtin_access::write_off.
9469 (maybe_diag_access_bounds): Add argument. Add informational notes.
9470 (dump_builtin_memref, dump_builtin_access): New functions.
9471 * tree.c (component_ref_size): ...to here.
9472 * tree.h (component_ref_size): Declare.
9473 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9474 nul in the size of the source string.
9475
9476 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9477
9478 PR c/67224
9479 * doc/cpp.texi: Document support for extended characters in
9480 identifiers.
9481 * doc/cppopts.texi: Likewise.
9482
9483 2019-09-19 Richard Biener <rguenther@suse.de>
9484
9485 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9486 (check_reduction_path): New overload having the path as result.
9487 (vect_is_simple_reduction): From the detected reduction
9488 path build a SLP reduction chain if possible.
9489
9490 2019-09-19 Richard Biener <rguenther@suse.de>
9491
9492 PR target/91814
9493 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9494 Force operand to a register if it isn't nonimmediate_operand.
9495
9496 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9497
9498 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9499 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9500 (logical_op): Remove code attribute.
9501 (logical_OP): Likewise.
9502
9503 2019-09-19 Martin Liska <mliska@suse.cz>
9504
9505 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9506 Use proper casting.
9507
9508 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9509
9510 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9511 registers with %R.
9512
9513 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9514 for NE comparison of TImode values.
9515 (aarch64_emit_load_exclusive): Add support for TImode.
9516 (aarch64_emit_store_exclusive): Likewise.
9517 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9518 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9519 Change iterator from ALLI to ALLI_TI.
9520 (@atomic_compare_and_swap<JUST_TI>): New.
9521 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9522 (aarch64_load_exclusive_pair): New.
9523 (aarch64_store_exclusive_pair): New.
9524 * config/aarch64/iterators.md (JUST_TI): New.
9525
9526 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9527 strong_zero_p for aarch64_track_speculation; unify some code paths;
9528 use aarch64_gen_compare_reg instead of open-coding.
9529
9530 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9531 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9532 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9533 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9534 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9535 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9536 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9537 (atomic_<atomic_op><ALLI>): Likewise.
9538 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9539 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9540 * doc/invoke.texi: Document -moutline-atomics.
9541
9542 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9543
9544 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9545 trivial predicate for condition branch.
9546 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9547 for switch case.
9548 (compute_bb_predicates): Update predicate based on post-dominating
9549 relationship.
9550 (analyze_function_body): Calculate post-dominating information.
9551
9552 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9553
9554 * tree-vectorizer.h (vectorizable_condition): Take an int
9555 reduction index instead of a boolean flag.
9556 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9557 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9558 reductions if the reduction accumulator is the "then" rather
9559 than the "else" value.
9560 (vect_analyze_stmt): Update call accordingly.
9561 (vect_transform_stmt): Likewise.
9562 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9563 asserting that the index is > 0.
9564
9565 2019-09-19 Martin Liska <mliska@suse.cz>
9566
9567 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9568 (sort_congruence_classes_by_decl_uid): Likewise.
9569 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9570 easier sorting.
9571 (sem_item_optimizer::merge_classes): Likewise.
9572
9573 2019-09-19 Richard Biener <rguenther@suse.de>
9574
9575 PR tree-optimization/91812
9576 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9577 volatile loads.
9578
9579 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9580
9581 * defaults.h (TARGET_UNIT): New macro.
9582 (target_unit): New type.
9583 * rtl.h (native_encode_rtx, native_decode_rtx)
9584 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9585 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9586 * rtlanal.c (subreg_lsb_1): Delete.
9587 (subreg_size_lsb): New function.
9588 * simplify-rtx.c: Include rtx-vector-builder.h
9589 (simplify_immed_subreg): Delete.
9590 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9591 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9592 functions.
9593 (simplify_subreg): Use them.
9594 (test_vector_subregs_modes, test_vector_subregs_repeating)
9595 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9596 (test_vector_subregs): New functions.
9597 (test_vector_ops): Call test_vector_subregs for integer vector
9598 modes with at least 2 elements.
9599
9600 2019-09-19 Richard Biener <rguenther@suse.de>
9601
9602 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9603 LOOP_VINFO_OPERANDS_SWAPPED.
9604 (parloops_is_simple_reduction): Likewise.
9605 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9606 initialize operands_swapped.
9607 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9608 (vect_is_slp_reduction): Do not swap operands.
9609 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9610 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9611
9612 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9613
9614 PR target/87007
9615 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9616 Add avx_partial_xmm_update.
9617
9618 2019-09-18 Jim Wilson <jimw@sifive.com>
9619
9620 PR target/91683
9621 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9622 (riscv_move_integer): Likewise.
9623 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9624 riscv_move_integer arg.
9625 (riscv_legitimize_move): Likewise.
9626 (riscv_force_temporary): New parameter in_splitter. Don't call
9627 force_reg if true.
9628 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9629 arg.
9630 (riscv_add_offset): Likewise.
9631 (riscv_split_symbol): New parameter in_splitter. Pass to
9632 riscv_force_temporary.
9633 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9634 arg.
9635 (riscv_move_integer): New parameter in_splitter. New local
9636 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9637 in_splitter TRUE.
9638 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9639 riscv_split_symbol, and riscv_force_temporary args.
9640 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9641 riscv_move_integer arg.
9642 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9643
9644 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 PR target/90878
9647 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9648 hard register store cost to 6.
9649
9650 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9651
9652 PR target/91446
9653 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9654 pseudo register store cost from 3 to 6 to make it the same as
9655 QImode and HImode.
9656
9657 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9658
9659 PR target/91738
9660 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9661 (one_cmpldi2): Likewise.
9662 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9663 of the constant parts is simple.
9664 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9665 (logical_op): Add new code attribute.
9666 (logical_OP): Likewise.
9667 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9668 (arm_iordi_operand): Add predicate.
9669 (arm_xordi_operand): Add predicate.
9670
9671 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9672
9673 * config/arm/arm.md (maddsidi4): Remove expander.
9674 (mulsidi3adddi): Remove pattern.
9675 (mulsidi3adddi_v6): Likewise.
9676 (mulsidi3_nov6): Likewise.
9677 (mulsidi3_v6): Likewise.
9678 (umulsidi3): Remove expander.
9679 (umulsidi3_nov6): Remove pattern.
9680 (umulsidi3_v6): Likewise.
9681 (umulsidi3adddi): Likewise.
9682 (umulsidi3adddi_v6): Likewise.
9683 (<Us>mulsidi3): Add combined expander.
9684 (<Us>maddsidi4): Likewise.
9685 (<US>mull): Add combined umull and smull pattern.
9686 (<US>mlal): Likewise.
9687 * config/arm/iterators.md (Us): Add new iterator.
9688
9689 2019-09-18 Richard Biener <rguenther@suse.de>
9690
9691 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9692 swapping.
9693 (vectorize_fold_left_reduction): Remove assert.
9694 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9695 operand in position 2. Remove assert.
9696
9697 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9698
9699 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9700 (smulsi3_highpart_nov6): Remove pattern.
9701 (smulsi3_highpart_v6): Likewise.
9702 (umulsi3_highpart): Likewise.
9703 (umulsi3_highpart_nov6): Likewise.
9704 (umulsi3_highpart_v6): Likewise.
9705 (<US>mull_high): Add new combined multiply pattern.
9706
9707 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9708
9709 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9710 (arm_mulsi3_v6): Likewise.
9711 (mulsi3addsi_v6): Likewise.
9712 (mulsi3subsi): Likewise.
9713 (mul): Add new multiply pattern.
9714 (mla): Likewise.
9715 (mls): Likewise.
9716
9717 2019-09-18 Richard Biener <rguenther@suse.de>
9718
9719 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9720 (parloops_valid_reduction_input_p): Copy from
9721 valid_reduction_input_p.
9722 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9723 (parloops_needs_fold_left_reduction_p): Copy from
9724 needs_fold_left_reduction_p.
9725 (parloops_is_simple_reduction): Copy from
9726 vect_is_simple_reduction.
9727 (parloops_force_simple_reduction): Copy from
9728 vect_force_simple_reduction.
9729 (gather_scalar_reductions): Adjust.
9730 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9731 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9732
9733 2019-09-18 Richard Biener <rguenther@suse.de>
9734
9735 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9736 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9737 static.
9738 (vect_create_epilog_for_reduction): Remove dead code.
9739
9740 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9741
9742 * varasm.c (assemble_real): Generate canonical const_ints.
9743
9744 2019-09-18 Richard Biener <rguenther@suse.de>
9745
9746 PR lto/91763
9747 * lto-streamer-in.c (input_eh_regions): Move EH init to
9748 lto_materialize_function.
9749 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9750 Likewise.
9751
9752 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9753
9754 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9755 are INTEGER_CSTs.
9756
9757 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9758
9759 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9760 of checking specifically for INTEGER_CST.
9761
9762 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9763
9764 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9765 sizes instead of uhwi sizes.
9766
9767 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9768
9769 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9770 (add_const_value_attribute): Handle CONST_POLY_INT.
9771
9772 2019-09-18 Martin Liska <mliska@suse.cz>
9773
9774 * dbgcnt.def (store_merging): New counter.
9775 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9776 Use it in store merging.
9777
9778 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9779
9780 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9781 function.
9782 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9783 * config/arm/arm.c (arm_sched_variable_issue): New function.
9784 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9785
9786 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9787
9788 * config/arm/types.md (no_reservation): New reservation.
9789 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9790 no_insn here.
9791 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9792 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9793 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9794 * config/arm/arm1020e.md (1020alu_op): Likewise.
9795 * config/arm/arm1026ejs.md (alu_op): Likewise.
9796 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9797 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9798 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9799 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9800 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9801 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9802 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9803 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9804 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9805 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9806 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9807 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9808 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9809 * config/arm/fa526.md (526_alu_op): Likewise.
9810 * config/arm/fa606te.md (606te_alu_op): Likewise.
9811 * config/arm/fa626te.md (626te_alu_op): Likewise.
9812 * config/arm/fa726te.md (726te_alu_op): Likewise.
9813 * config/arm/xgene1.md (xgene1_nop): Likewise.
9814
9815 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9816
9817 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
9818 "no_insn" to "branch".
9819
9820 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9821
9822 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
9823
9824 2019-09-17 Richard Biener <rguenther@suse.de>
9825
9826 PR debug/91772
9827 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
9828 was missing generate locations only once.
9829
9830 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
9831
9832 PR ipa/91089
9833 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
9834 option.
9835 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
9836 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
9837 for switch default case using range analysis information.
9838
9839 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
9840
9841 PR target/91749
9842 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
9843 mode attributed is supported by FDPIC.
9844
9845 2019-09-17 Richard Biener <rguenther@suse.de>
9846
9847 PR tree-optimization/91790
9848 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
9849 use the correct DR for setting up realignment.
9850
9851 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
9852
9853 PR target/91719
9854 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
9855 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
9856 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
9857 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
9858
9859 2019-09-16 Jason Merrill <jason@redhat.com>
9860
9861 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
9862
9863 2019-09-16 Martin Liska <mliska@suse.cz>
9864
9865 * gimple-fold.c (or_comparisons_1): Remove rules moved
9866 to ...
9867 * match.pd: ... here.
9868
9869 2019-09-16 Martin Liska <mliska@suse.cz>
9870
9871 * gimple-fold.c (or_comparisons_1): Remove rules
9872 moved to ...
9873 * match.pd: ... here.
9874
9875 2019-09-16 Martin Liska <mliska@suse.cz>
9876
9877 * genmatch.c (dt_node::append_simplify): Do not print
9878 warning when we have duplicate patterns belonging
9879 to a same simplify rule.
9880 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
9881 (maybe_fold_comparisons_from_match_pd): Handle
9882 tcc_comparison as a results.
9883 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
9884
9885 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9886 Qi Feng <ffengqi@linux.ibm.com>
9887
9888 PR middle-end/88784
9889 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
9890 (x > y && x == XXX_MIN): Optimize into 'false'.
9891 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
9892 (x < y && x != XXX_MAX): Optimize into 'x < y'.
9893 (x < y && x == XXX_MAX): Optimize into 'false'.
9894 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
9895 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
9896 (x <= y || x != XXX_MIN): Optimize into 'true'.
9897 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
9898 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
9899 (x >= y || x != XXX_MAX): Optimize into 'true'.
9900 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
9901
9902 2019-09-16 Li Jia He <helijia@linux.ibm.com>
9903 Martin Liska <mliska@suse.cz>
9904
9905 * gimple-fold.c (and_comparisons_1): Add type as first
9906 argument.
9907 (and_var_with_comparison): Likewise.
9908 (and_var_with_comparison_1): Likewise.
9909 (or_comparisons_1): Likewise.
9910 (or_var_with_comparison): Likewise.
9911 (or_var_with_comparison_1): Likewise.
9912 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
9913 (maybe_fold_or_comparisons): Likewise.
9914 (maybe_fold_comparisons_from_match_pd): New.
9915 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
9916 (maybe_fold_or_comparisons): Likewise.
9917 * gimple.c (gimple_size): Make it public and add num_ops argument.
9918 (gimple_init): New function.
9919 (gimple_alloc): Call gimple_init.
9920 * gimple.h (gimple_size): New.
9921 (gimple_init): Likewise.
9922 * tree-if-conv.c (fold_or_predicates): Pass type.
9923 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9924 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
9925 (optimize_vec_cond_expr): Likewise.
9926 (ovce_extract_ops): Return type of conditional expression.
9927 * tree-ssanames.c (init_ssa_name_imm_use): New.
9928 (make_ssa_name_fn): Use init_ssa_name_imm_use.
9929 * tree-ssanames.h (init_ssa_name_imm_use): New.
9930
9931 2019-09-16 Richard Biener <rguenther@suse.de>
9932
9933 PR tree-optimization/91756
9934 PR tree-optimization/87132
9935 * tree-ssa-alias.h (enum translate_flags): New.
9936 (get_continuation_for_phi): Use it instead of simple bool flag.
9937 (walk_non_aliased_vuses): Likewise.
9938 * tree-ssa-alias.c (maybe_skip_until): Adjust.
9939 (get_continuation_for_phi): When looking across backedges only
9940 disallow valueization.
9941 (walk_non_aliased_vuses): Adjust.
9942 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
9943 if requested.
9944
9945 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
9946
9947 PR middle-end/80791
9948 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
9949 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9950 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9951 * target.def (have_count_reg_decr_p): New hook.
9952 (doloop_cost_for_generic): Likewise.
9953 (doloop_cost_for_address): Likewise.
9954 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
9955 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
9956 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
9957 * doc/tm.texi: Regenerate.
9958 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
9959 addend.
9960 (record_group): Init doloop_p.
9961 (add_candidate_1): Add optional argument doloop, change the handlings
9962 accordingly.
9963 (add_candidate): Likewise.
9964 (generic_predict_doloop_p): Update attribute.
9965 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
9966 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
9967 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
9968 MIN_EXPR.
9969 (get_computation_cost): Update for doloop IV cand extra cost.
9970 (determine_group_iv_cost_cond): Update for doloop IV cand.
9971 (determine_iv_cost): Likewise.
9972 (ivopts_estimate_reg_pressure): Likewise.
9973 (may_eliminate_iv): Update handlings for doloop IV cand.
9974 (add_iv_candidate_for_doloop): New function.
9975 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
9976 (iv_ca_set_no_cp): Update for doloop IV cand.
9977 (iv_ca_set_cp): Likewise.
9978 (iv_ca_dump): Dump register cost.
9979 (find_doloop_use): New function.
9980 (analyze_and_mark_doloop_use): Likewise.
9981 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
9982
9983 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9984
9985 PR middle-end/91708
9986 * cse.c (cse_insn): Do not replace anything with a
9987 MEM.
9988
9989 2019-09-13 Ian Lance Taylor <iant@golang.org>
9990
9991 * doc/invoke.texi (Optimize Options): Fix typo.
9992
9993 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
9994
9995 PR tree-optimization/89386
9996 * config/i386/sse.md (smulhrs<mode>3): New expander.
9997 (smulhrsv4hi3): Ditto.
9998
9999 2019-09-12 Richard Biener <rguenther@suse.de>
10000
10001 PR tree-optimization/91750
10002 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10003 in the type of the evolution.
10004
10005 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10006
10007 PR tree-optimization/89386
10008 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10009 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10010 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10011 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10012 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10013 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10014 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10015 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10016 (su, r): Handle the unspecs above.
10017 (bt): New int attribute.
10018 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10019 * internal-fn.c (first_commutative_argument): Commutativity info for
10020 above.
10021 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10022 (umulhrs_optab): New optabs.
10023 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10024 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10025 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10026 function.
10027 (vect_vect_recog_func_ptrs): Add it.
10028
10029 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10030
10031 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10032 code.
10033
10034 2019-09-11 Nathan Sidwell <nathan@acm.org>
10035
10036 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10037 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10038
10039 2019-09-11 Richard Biener <rguenther@suse.de>
10040
10041 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10042 * lto-wrapper.c (merge_and_complain): Pick up -g.
10043 (append_compiler_options): Likewise.
10044 (run_gcc): Re-instantiate handling -g0 at link-time.
10045 * doc/invoke.texi (flto): Document debug info generation.
10046
10047 2019-09-11 Richard Biener <rguenther@suse.de>
10048
10049 PR tree-optimization/90387
10050 * vr-values.c (vr_values::extract_range_basic): After inlining
10051 simplify non-constant __builtin_constant_p to false.
10052
10053 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
10054
10055 PR rtl-optimization/89795
10056 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
10057 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
10058
10059 2019-09-11 Jakub Jelinek <jakub@redhat.com>
10060
10061 PR tree-optimization/91723
10062 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
10063 instead of pointer equality when checking if argument vectypes are
10064 the same.
10065
10066 PR middle-end/91725
10067 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
10068 of get_nonzero_bits, only call it for integral types.
10069
10070 2019-09-11 Richard Biener <rguenther@suse.de>
10071
10072 Revert
10073 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10074
10075 * match.pd: Add flag_unsafe_math_optimizations check
10076 before deciding on the widest type in a binary math operation.
10077
10078 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10079
10080 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
10081 and CALL_REALLY_USED_REGISTERS must be defined, and that
10082 CALL_REALLY_USED_REGISTERS is preferred.
10083 * doc/tm.texi: Regenerate.
10084 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
10085 (call_really_used_regs): Likewise.
10086 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
10087 CALL_REALLY_USED_REGISTERS are defined.
10088 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
10089 initial value if defined.
10090 (initial_call_really_used_regs): Delete.
10091 (saved_call_really_used_regs): Likewise.
10092 (CALL_REALLY_USED_REGNO_P): Likewise.
10093 (init_reg_sets): Remove handling of call_really_used_regs.
10094 (save_register_info, restore_register_info, globalize_reg): Likewise.
10095 (init_reg_sets_1): Likewise. Use call_used_regs instead of
10096 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
10097 outside operand_reg_set.
10098 (fix_register): Don't change call_used_regs if
10099 CALL_REALLY_USED_REGISTERS is defined.
10100 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
10101 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
10102 instead of call_really_used_regs.
10103 (csky_conditional_register_usage): Remove the old handling of
10104 call_used_regs and change the handling of call_really_used_regs
10105 to use call_used_regs instead.
10106 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
10107 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
10108 making a register fixed.
10109 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
10110 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
10111 instead of call_really_used_regs.
10112 (m32r_conditional_register_usage): Don't set call_used_regs when
10113 making a register fixed.
10114 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
10115 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
10116 instead of call_really_used_regs.
10117 (mips_interrupt_extra_call_saved_reg_p): Likewise.
10118 (mips_cfun_call_saved_reg_p): Likewise.
10119 (mips_swap_registers): Remove the old handling of call_used_regs
10120 and change the handling of call_really_used_regs to use call_used_regs
10121 instead.
10122 (mips_conditional_register_usage): Likewise.
10123 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
10124 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
10125 instead of call_really_used_regs.
10126 (mn10300_get_live_callee_saved_regs): Likewise.
10127 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
10128 (mn10300_conditional_register_usage): Don't set call_used_regs when
10129 making a register fixed.
10130 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
10131 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10132 Remove the old handling of call_used_regs and change the handling
10133 of call_really_used_regs to use call_used_regs instead.
10134 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
10135 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
10136 instead of call_really_used_regs.
10137 (s390_register_info_gprtofpr, s390_register_info): Likewise.
10138 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
10139 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
10140 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
10141 (s390_conditional_register_usage): Remove the old handling of
10142 call_used_regs and change the handling of call_really_used_regs
10143 to use call_used_regs instead.
10144 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
10145 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
10146 (sh_fix_range, reg_unused_after): Likewise.
10147 (sh_conditional_register_usage): Remove the old handling of
10148 call_used_regs and change the handling of call_really_used_regs
10149 to use call_used_regs instead.
10150 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
10151 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
10152 call_used_regs when making a register fixed.
10153 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
10154 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
10155 call_used_regs when making a register fixed.
10156 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
10157 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
10158 set call_used_regs when making a register fixed.
10159 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
10160 * config/visium/visium.c (visium_conditional_register_usage): Remove
10161 the old handling of call_used_regs and change the handling of
10162 call_really_used_regs to use call_used_regs instead.
10163
10164 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10165
10166 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
10167 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
10168 * reginfo.c (call_used_regs): New macro.
10169
10170 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10171
10172 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
10173 fixed_regs test.
10174 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10175 (bpf_expand_epilogue): Likewise.
10176 * config/c6x/c6x.c (c6x_save_reg): Likewise.
10177 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10178 (ft32_expand_epilogue): Likewise.
10179 * config/i386/i386.c (ix86_save_reg): Likewise.
10180 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
10181 (moxie_expand_epilogue): Likewise.
10182 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10183 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10184 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10185
10186 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10187
10188 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10189 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10190 instead of testing call_used_regs directly.
10191 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10192 (aarch64_components_for_bb): Likewise.
10193 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10194 * config/arc/arc.c (arc_must_save_register): Likewise.
10195 (arc_epilogue_uses): Likewise.
10196 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10197 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10198 (arm_compute_save_reg0_reg12_mask): Likewise.
10199 (arm_compute_save_core_reg_mask): Likewise.
10200 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10201 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10202 (cmse_nonsecure_entry_clear_before_return): Likewise.
10203 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10204 (arm_expand_epilogue): Likewise.
10205 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10206 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10207 (_reg_unused_after): Likewise.
10208 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10209 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10210 (add_to_reg, hwloop_optimize): Likewise.
10211 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10212 (bpf_expand_epilogue): Likewise.
10213 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10214 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10215 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10216 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10217 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10218 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10219 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10220 * config/frv/frv.c (frv_stack_info): Likewise.
10221 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10222 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10223 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10224 (move_callee_saved_registers): Likewise.
10225 * config/h8300/h8300.c (byte_reg): Likewise.
10226 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10227 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10228 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10229 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10230 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10231 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10232 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10233 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10234 * config/m32c/m32c.c (need_to_save): Likewise.
10235 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10236 * config/mcore/mcore.c (calc_live_regs): Likewise.
10237 * config/microblaze/microblaze.c (microblaze_must_save_register):
10238 Likewise.
10239 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10240 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10241 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10242 (mmix_expand_epilogue): Likewise.
10243 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10244 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10245 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10246 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10247 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10248 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10249 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10250 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10251 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10252 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10253 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10254 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10255 * config/rl78/rl78.c (need_to_save): Likewise.
10256 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10257 (rs6000_stack_info, generate_set_vrsave): Likewise.
10258 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10259 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10260 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10261 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10262 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10263 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10264 (save_local_or_in_reg_p): Likewise.
10265 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10266 (xstormy16_epilogue_uses): Likewise.
10267 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10268 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10269 * config/v850/v850.c (compute_register_save_size): Likewise.
10270 * config/vax/vax.c (vax_expand_prologue): Likewise.
10271 * config/visium/visium.c (visium_save_reg_p): Likewise.
10272 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10273 * cselib.c (cselib_process_insn): Likewise.
10274 * df-scan.c (df_get_entry_block_def_set): Likewise.
10275 * function.c (aggregate_value_p): Likewise.
10276 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10277 * ira-lives.c (process_bb_node_lives): Likewise.
10278 * ira.c (do_reload): Likewise.
10279 * lra-lives.c (process_bb_lives): Likewise.
10280 * lra-remat.c (lra_remat): Likewise.
10281 * lra.c (lra): Likewise.
10282 * postreload.c (reload_combine_recognize_pattern): Likewise.
10283 (reload_cse_move2add): Likewise.
10284 * recog.c (peep2_find_free_register): Likewise.
10285 * regrename.c (check_new_reg_p): Likewise.
10286 * reload.c (find_equiv_reg): Likewise.
10287 * reload1.c (reload, find_reg): Likewise.
10288 * sel-sched.c (init_hard_regs_data): Likewise.
10289
10290 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10291
10292 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10293 regs_invalidated_by_call & ~fixed_reg_set instead of
10294 call_used_or_fixed_regs & ~fixed_reg_set.
10295 * config/sh/sh.c (output_stack_adjust): Likewise.
10296
10297 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10298
10299 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10300 (call_used_reg_set): Delete.
10301 (call_used_or_fixed_regs): New macro.
10302 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10303 of call_used_reg_set.
10304 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10305 instead of call_used_regs.
10306 (save_call_clobbered_regs): Likewise.
10307 * cfgcleanup.c (old_insns_match_p): Likewise.
10308 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10309 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10310 Likewise.
10311 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10312 * config/sh/sh.c (output_stack_adjust): Likewise.
10313 * final.c (collect_fn_hard_reg_usage): Likewise.
10314 * ira-build.c (ira_build): Likewise.
10315 * ira-color.c (calculate_saved_nregs): Likewise.
10316 (allocno_reload_assign, calculate_spill_cost): Likewise.
10317 * ira-conflicts.c (ira_build_conflicts): Likewise.
10318 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10319 * ira-lives.c (process_bb_node_lives): Likewise.
10320 * ira.c (setup_reg_renumber): Likewise.
10321 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10322 * lra-constraints.c (need_for_call_save_p): Likewise.
10323 (need_for_split_p, inherit_in_ebb): Likewise.
10324 * lra-lives.c (process_bb_lives): Likewise.
10325 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10326 * postreload.c (reload_combine): Likewise.
10327 * regrename.c (find_rename_reg): Likewise.
10328 * reload1.c (reload_as_needed): Likewise.
10329 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10330 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10331 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10332
10333 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10334
10335 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10336 (no_caller_save_reg_set): Delete.
10337 * caller-save.c (init_caller_save): Don't initialize it.
10338 * ira-conflicts.c (ira_build_conflicts): Calculate
10339 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10340
10341 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10342
10343 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10344 (target_hard_regs::x_savable_regs): New field.
10345 (call_fixed_reg_set): Delete.
10346 (savable_regs): New macro,
10347 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10348 (init_reg_sets_1): Likewise. Initialize savable_regs.
10349 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10350 for all registers. Set savable_regs instead of call_fixed_reg_set.
10351 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10352 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10353 * config/sh/sh.c (output_stack_adjust): Likewise.
10354
10355 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10356
10357 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10358 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10359 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10360
10361 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10362
10363 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10364 * rtlanal.c (get_call_rtx_from): Likewise.
10365 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10366 than the pattern to get_call_rtx_from.
10367 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10368 an rtx_insn * instead of an rtx.
10369 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10370
10371 2019-09-10 Martin Liska <mliska@suse.cz>
10372
10373 * common.opt: Use newly added WarnRemoved.
10374 * config/aarch64/aarch64.opt: Likewise.
10375 * config/arm/arm.opt: Likewise.
10376 * config/i386/i386.opt: Likewise.
10377 * config/ia64/ia64.opt: Likewise.
10378 * config/rs6000/rs6000.opt: Likewise.
10379 * doc/options.texi: Document WarnRemoved properly.
10380 * dwarf2out.c (gen_producer_string): Handle renamed
10381 OPT_SPECIAL_warn_removed.
10382 * lto-opts.c (lto_write_options): Likewise.
10383 * lto-wrapper.c (merge_and_complain): Likewise.
10384 * opts-common.c (decode_cmdline_option): Likewise.
10385 (prune_options): Likewise.
10386 (read_cmdline_option): Likewise.
10387 (control_warning_option): Likewise.
10388 * opts.c (print_filtered_help): Likewise.
10389 * optc-gen.awk: Parse for WarnRemoved and make usage
10390 of Deprecated an error.
10391 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10392
10393 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10394
10395 * doc/install.texi: Fix syntax for html generation.
10396
10397 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10398
10399 PR middle-end/91680
10400 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10401 the shift type to type.
10402
10403 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10404
10405 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10406 FDPIC mode.
10407 (stack_protect_combined_test_insn): Likewise.
10408
10409 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10410 Mickaël Guêné <mickael.guene@st.com>
10411
10412 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10413 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10414 (load_tp_soft_fdpic): New pattern.
10415 (load_tp_soft): Disable in FDPIC mode.
10416
10417 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10418 Mickaël Guêné <mickael.guene@st.com>
10419
10420 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10421 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10422 (arm_call_tls_get_addr): Add FDPIC support.
10423 (legitimize_tls_address): Likewise.
10424 (arm_emit_tls_decoration): Likewise.
10425
10426 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10427 Mickaël Guêné <mickael.guene@st.com>
10428
10429 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10430 support.
10431 (arm_trampoline_init): Likewise.
10432 (arm_trampoline_adjust_address): Likewise.
10433 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10434
10435 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10436 Mickaël Guêné <mickael.guene@st.com>
10437
10438 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10439 (legitimize_pic_address): Enforce binding rules on function
10440 pointers in FDPIC mode.
10441 (arm_assemble_integer): Likewise.
10442
10443 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10444 Mickaël Guêné <mickael.guene@st.com>
10445
10446 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10447 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10448 FDPIC.
10449
10450 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10451 Mickaël Guêné <mickael.guene@st.com>
10452
10453 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10454 field.
10455
10456 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10457 Mickaël Guêné <mickael.guene@st.com>
10458
10459 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10460 in FDPIC mode.
10461 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10462 new function.
10463 * config/arm/arm.c (arm_option_override): Define pic register to
10464 FDPIC_REGNUM.
10465 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10466 have no decl or go through PLT.
10467 (calculate_pic_address_constant): New function.
10468 (legitimize_pic_address): Call calculate_pic_address_constant.
10469 (arm_load_pic_register): Handle TARGET_FDPIC.
10470 (arm_is_segment_info_known): New function.
10471 (arm_pic_static_addr): Add support for FDPIC.
10472 (arm_load_function_descriptor): New function.
10473 (arm_emit_call_insn): Add support for FDPIC.
10474 (arm_assemble_integer): Add support for FDPIC.
10475 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10476 Define. (FDPIC_REGNUM): New define.
10477 * config/arm/arm.md (call): Add support for FDPIC.
10478 (call_value): Likewise.
10479 (restore_pic_register_after_call): New pattern.
10480 (untyped_call): Disable if FDPIC.
10481 (untyped_return): Likewise.
10482 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10483
10484 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10485 Mickaël Guêné <mickael.guene@st.com>
10486
10487 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10488 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10489 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10490 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10491 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10492 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10493 * config/arm/uclinuxfdpiceabi.h: New file.
10494
10495 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10496
10497 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10498
10499 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10500 Mickaël Guêné <mickael.guene@st.com>
10501
10502 * config/arm/arm.opt: Add -mfdpic option.
10503 * doc/invoke.texi: Add documentation for -mfdpic.
10504
10505 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10506
10507 * expmed.c (extract_bit_field): Update function comment
10508 regarding alt_rtl.
10509 * expr.c (expand_expr_real): Update function comment
10510 regarding alt_rtl.
10511 (expand_misaligned_mem_ref): New helper function.
10512 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10513 Remove duplicate assignment to "base" at case MEM_REF.
10514 Remove a shadowed variable "unsignedp" at case VCE.
10515
10516 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10517
10518 * regset.h (regs_invalidated_by_call_regset): Delete.
10519 (fixed_reg_set_regset): Likewise.
10520 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10521 (fixed_reg_set_regset, persistent_obstack): Likewise.
10522 (init_reg_sets_1, globalize_reg): Update accordingly.
10523 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10524 instead of a bitmap.
10525 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10526 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10527 instead of regs_invalidated_by_call_regset.
10528 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10529 * df-scan.c (df_scan_start_dump): Likewise.
10530 * dse.c (copy_fixed_regs): Likewise.
10531 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10532
10533 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10534
10535 * array-traits.h: New file.
10536 * coretypes.h (array_traits, bitmap_view): New types.
10537 * bitmap.h: Include "array-traits.h"
10538 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10539 (base_bitmap_view, bitmap_view): New classes.
10540 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10541 * hard-reg-set.h: Include array-traits.h.
10542 (array_traits<HARD_REG_SET>): New struct.
10543 * regset.h (IOR_REG_SET_HRS): New macro.
10544 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10545 rather than iterating over each hard register.
10546 * sched-deps.c (sched_analyze_insn): Likewise.
10547 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10548
10549 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10550
10551 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10552 instead of a HARD_REG_SET *.
10553 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10554 (ira_build): Update call accordingly.
10555 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10556
10557 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10558
10559 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10560 (HARD_REG_SET::operator!=): Likewise.
10561 (hard_reg_set_equal_p): Delete.
10562 * cfgcleanup.c (old_insns_match_p): Use == instead of
10563 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10564 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10565 (add_allocno_hard_regs_to_forest): Likewise.
10566 (setup_allocno_available_regs_num): Likewise.
10567 * ira.c (setup_pressure_classes): Likewise.
10568 (setup_allocno_and_important_classes): Likewise.
10569 (setup_reg_class_relations): Likewise.
10570 * lra-lives.c (process_bb_lives): Likewise.
10571 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10572
10573 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10574
10575 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10576 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10577 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10578 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10579 Likewise.
10580 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10581 * ira.c (setup_reg_renumber): Likewise.
10582 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10583 * regrename.c (regrename_find_superclass): Likewise.
10584 * reload1.c (find_reg): Likewise.
10585
10586 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10587
10588 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10589 * caller-save.c (setup_save_areas): Use "&~" instead of
10590 AND_COMPL_HARD_REG_SET.
10591 (save_call_clobbered_regs): Likewise.
10592 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10593 Likewise.
10594 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10595 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10596 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10597 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10598 (mips_conditional_register_usage): Likewise.
10599 * config/sh/sh.c (output_stack_adjust): Likewise.
10600 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10601 (setup_profitable_hard_regs): Likewise.
10602 (get_conflict_and_start_profitable_regs): Likewise.
10603 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10604 (ira_build_conflicts): Likewise.
10605 * ira-costs.c (restrict_cost_classes): Likewise.
10606 (setup_regno_cost_classes_by_aclass): Likewise.
10607 * ira-lives.c (process_bb_node_lives): Likewise.
10608 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10609 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10610 (setup_allocno_and_important_classes, setup_class_translate_array)
10611 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10612 Likewise.
10613 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10614 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10615 (process_alt_operands, inherit_in_ebb): Likewise.
10616 * lra-eliminations.c (update_reg_eliminate): Likewise.
10617 * lra-lives.c (process_bb_lives): Likewise.
10618 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10619 * resource.c (find_dead_or_set_registers): Likewise.
10620 (mark_target_live_regs): Likewise.
10621 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10622 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10623 (implicit_clobber_conflict_p): Likewise.
10624 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10625 (try_shrink_wrapping): Likewise.
10626
10627 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10628
10629 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10630 (HARD_REG_SET::operator|=): Likewise.
10631 (IOR_HARD_REG_SET): Delete.
10632 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10633 IOR_HARD_REG_SET.
10634 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10635 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10636 * final.c (collect_fn_hard_reg_usage): Likewise.
10637 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10638 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10639 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10640 (propagate_some_info_from_allocno): Likewise.
10641 (copy_info_to_removed_store_destinations): Likewise.
10642 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10643 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10644 (fast_allocation): Likewise.
10645 * ira-conflicts.c (ira_build_conflicts): Likewise.
10646 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10647 (process_bb_node_lives): Likewise.
10648 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10649 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10650 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10651 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10652 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10653 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10654 (process_bb_lives): Likewise.
10655 * lra-spills.c (assign_spill_hard_regs): Likewise.
10656 * postreload.c (reload_combine): Likewise.
10657 * reginfo.c (init_reg_sets_1): Likewise.
10658 * regrename.c (merge_overlapping_regs, find_rename_reg)
10659 (merge_chains): Likewise.
10660 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10661 (find_reload_regs, finish_spills, choose_reload_regs_init)
10662 (emit_reload_insns): Likewise.
10663 * reorg.c (redundant_insn): Likewise.
10664 * resource.c (find_dead_or_set_registers, mark_set_resources)
10665 (mark_target_live_regs): Likewise.
10666 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10667 * sched-deps.c (sched_analyze_insn): Likewise.
10668 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10669 (find_best_reg_for_expr): Likewise.
10670 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10671
10672 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10675 (HARD_REG_SET::operator&): Likewise.
10676 (AND_HARD_REG_SET): Delete.
10677 * caller-save.c (setup_save_areas): Use "&" instead of
10678 AND_HARD_REG_SET.
10679 (save_call_clobbered_regs): Likewise.
10680 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10681 * config/m32c/m32c.c (reduce_class): Likewise.
10682 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10683 * final.c (get_call_reg_set_usage): Likewise.
10684 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10685 (setup_left_conflict_sizes_p): Likewise.
10686 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10687 (ira_build_conflicts): Likewise.
10688 * ira-costs.c (restrict_cost_classes): Likewise.
10689 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10690 (setup_reg_class_relations): Likewise.
10691 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10692 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10693 * resource.c (find_dead_or_set_registers): Likewise.
10694 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10695
10696 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10697
10698 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10699 (COMPL_HARD_REG_SET): Delete.
10700 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10701 of COMPL_HARD_REG_SET.
10702 (try_rename_operands): Likewise.
10703 * config/sh/sh.c (push_regs): Likewise.
10704 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10705 * lra-constraints.c (contains_reg_p): Likewise.
10706 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10707
10708 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10709
10710 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10711 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10712 of COPY_HARD_REG_SET.
10713 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10714 (epiphany_conditional_register_usage): Likewise.
10715 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10716 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10717 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10718 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10719 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10720 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10721 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10722 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10723 * config/sh/sh.c (output_stack_adjust): Likewise.
10724 * final.c (collect_fn_hard_reg_usage): Likewise.
10725 (get_call_reg_set_usage): Likewise.
10726 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10727 (ira_flattening): Likewise.
10728 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10729 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10730 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10731 (ira_reassign_pseudos): Likewise.
10732 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10733 (ira_build_conflicts): Likewise.
10734 * ira-costs.c (restrict_cost_classes): Likewise.
10735 (setup_regno_cost_classes_by_aclass): Likewise.
10736 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10737 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10738 (setup_stack_reg_pressure_class, setup_pressure_classes)
10739 (setup_allocno_and_important_classes, setup_class_translate_array)
10740 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10741 (ira_setup_eliminable_regset): Likewise.
10742 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10743 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10744 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10745 (process_alt_operands, inherit_in_ebb): Likewise.
10746 * lra-lives.c (process_bb_lives): Likewise.
10747 * lra-spills.c (assign_spill_hard_regs): Likewise.
10748 * lra.c (lra): Likewise.
10749 * mode-switching.c (new_seginfo): Likewise.
10750 * postreload.c (reload_combine): Likewise.
10751 * reg-stack.c (straighten_stack): Likewise.
10752 * reginfo.c (save_register_info, restore_register_info): Likewise.
10753 (init_reg_sets_1, record_subregs_of_mode): Likewise
10754 * regrename.c (create_new_chain, rename_chains): Likewise.
10755 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10756 (find_reload_regs): Likewise.
10757 * resource.c (find_dead_or_set_registers): Likewise.
10758 (mark_target_live_regs): Likewise.
10759 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10760
10761 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10762
10763 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10764 (note_pattern_stores): Declare.
10765 (note_stores): Take an rtx_insn *.
10766 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10767 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10768 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10769 (note_stores): Take an rtx_insn * as argument and process
10770 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10771 (note_pattern_stores): ...this.
10772 (find_first_parameter_load): Pass the insn rather than
10773 its pattern to note_stores.
10774 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10775 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10776 (insert_one_insn): Likewise.
10777 * combine.c (combine_instructions): Likewise.
10778 (likely_spilled_retval_p): Likewise.
10779 (try_combine): Use note_pattern_stores instead of note_stores.
10780 (record_dead_and_set_regs): Pass the insn rather than its pattern
10781 to note_stores.
10782 (reg_dead_at_p): Likewise.
10783 * config/bfin/bfin.c (workaround_speculation): Likewise.
10784 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10785 rather than an rtx.
10786 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10787 instead of note_stores.
10788 (frv_optimize_membar_local): Pass the insn rather than its pattern
10789 to note_stores.
10790 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10791 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10792 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10793 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10794 (mips_reorg_process_insns): Likewise.
10795 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10796 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10797 rather than rtxes.
10798 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10799 its pattern to note_stores.
10800 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10801 of note_stores.
10802 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10803 the insn to note_stores.
10804 (prescan_insns_for_dce): Update call accordingly.
10805 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10806 to note_stores.
10807 * df-problems.c (can_move_insns_across): Likewise.
10808 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10809 * function.c (assign_parm_setup_reg): Likewise.
10810 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10811 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10812 (single_set_gcse): Likewise.
10813 * ira.c (validate_equiv_mem): Likewise.
10814 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10815 for no_equiv.
10816 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
10817 pattern to note_stores.
10818 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10819 * loop-iv.c (simplify_using_initial_values): Likewise.
10820 * mode-switching.c (optimize_mode_switching): Likewise.
10821 * optabs.c (emit_libcall_block_1): Likewise.
10822 (expand_atomic_compare_and_swap): Likewise.
10823 * postreload-gcse.c (load_killed_in_block_p): Likewise.
10824 (record_opr_changes): Likewise. Remove explicit handling of
10825 CALL_INSN_FUNCTION_USAGE.
10826 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
10827 * regcprop.c (kill_clobbered_values): Likewise.
10828 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
10829 to note_stores.
10830 * regrename.c (build_def_use): Likewise.
10831 * reload1.c (reload): Use note_pattern_stores instead of note_stores
10832 for mark_not_eliminable.
10833 (reload_as_needed): Pass the insn rather than its pattern
10834 to note_stores.
10835 (emit_output_reload_insns): Likewise.
10836 * resource.c (mark_target_live_regs): Likewise.
10837 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
10838 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
10839 instead of note_stores.
10840 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
10841 its pattern to note_stores.
10842 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
10843 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
10844
10845 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10846
10847 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
10848 than a #define. Use a structure rather than an array as the
10849 fallback definition. Remove special cases for low array sizes.
10850 (const_hard_reg_set): New typedef.
10851 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
10852 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
10853 (hard_reg_set_empty_p): Likewise.
10854 (SET_HARD_REG_BIT): Use a function rather than a macro to
10855 handle the case in which HARD_REG_SET is a structure.
10856 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
10857 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10858 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10859 (IOR_COMPL_HARD_REG_SET): Likewise.
10860 (hard_reg_set_iterator::pset): Constify the pointer target.
10861 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
10862 of a "const HARD_REG_SET". Update the handling of non-integer
10863 HARD_REG_SETs.
10864 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
10865 * reload.h: Likewise.
10866 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
10867 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
10868 of a "const HARD_REG_SET".
10869 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
10870 (range_in_hard_reg_set_p): Likewise.
10871 * ira-costs.c (restrict_cost_classes): Likewise.
10872 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
10873 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10874 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
10875 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
10876 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
10877 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
10878 take an unsigned int and open-code the HARD_REG_SET operations.
10879
10880 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10881
10882 * Makefile.in (OBJS): Remove bt-load.o.
10883 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
10884 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10885 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
10886 document that the option no longer does anything.
10887 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
10888 * target.def (branch_target_register_class): Delete.
10889 (branch_target_register_callee_saved): Likewise.
10890 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10891 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
10892 * doc/tm.texi: Regenerate.
10893 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
10894 (make_pass_branch_target_load_optimize2): Likewise.
10895 * passes.def (pass_branch_target_load_optimize1): Likewise.
10896 (pass_branch_target_load_optimize2): Likewise.
10897 * targhooks.h (default_branch_target_register_class): Likewise.
10898 * targhooks.c (default_branch_target_register_class): Likewise.
10899 * opt-suggestions.c (test_completion_valid_options): Remove
10900 -fbtr-bb-exclusive from the list of test options.
10901 * bt-load.c: Remove.
10902
10903 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10904
10905 * match.pd: Add flag_unsafe_math_optimizations check
10906 before deciding on the widest type in a binary math operation.
10907
10908 2019-09-09 Martin Liska <mliska@suse.cz>
10909
10910 * config/i386/i386.opt: Update comment of removed
10911 options that are preserved only for backward
10912 compatibility.
10913
10914 2019-09-09 Jakub Jelinek <jakub@redhat.com>
10915
10916 PR target/87853
10917 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
10918 instead of __v16qs.
10919
10920 PR target/91704
10921 * config/i386/avxintrin.h (__v32qs): New typedef.
10922 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
10923 instead of __v32qi.
10924
10925 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10926
10927 * doc/invoke.texi (Option Summary): Cover eBPF.
10928 (eBPF Options): New section.
10929 * doc/extend.texi (BPF Built-in Functions): Likewise.
10930 (BPF Kernel Helpers): Likewise.
10931
10932 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10933
10934 * config.gcc: Support for bpf-*-* targets.
10935 * common/config/bpf/bpf-common.c: New file.
10936 * config/bpf/t-bpf: Likewise.
10937 * config/bpf/predicates.md: Likewise.
10938 * config/bpf/constraints.md: Likewise.
10939 * config/bpf/bpf.opt: Likewise.
10940 * config/bpf/bpf.md: Likewise.
10941 * config/bpf/bpf.h: Likewise.
10942 * config/bpf/bpf.c: Likewise.
10943 * config/bpf/bpf-protos.h: Likewise.
10944 * config/bpf/bpf-opts.h: Likewise.
10945 * config/bpf/bpf-helpers.h: Likewise.
10946 * config/bpf/bpf-helpers.def: Likewise.
10947
10948 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10949
10950 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10951 indirect_calls.
10952
10953 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
10954
10955 * opt-functions.awk (integer_range_info): Make sure values are in
10956 numeric context before operating with them.
10957
10958 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
10959
10960 * genemit.c (gen_split): Print the filename and line number where the
10961 splitter (or peephole2) was defined, to the dump file.
10962
10963 2019-09-07 Jakub Jelinek <jakub@redhat.com>
10964
10965 PR tree-optimization/91665
10966 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
10967 incompatible with the type of PHI result.
10968
10969 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
10970
10971 PR target/91684
10972 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
10973 gen_unaligned_storedi for 4-byte aligned addresses.
10974
10975 2019-09-06 Jim Wilson <jimw@sifive.com>
10976
10977 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
10978 change.
10979
10980 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10981
10982 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
10983
10984 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
10985
10986 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
10987 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
10988
10989 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
10990
10991 PR target/91654
10992 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
10993 cost of SSE->integer and integer->SSE moves from 2 to 6.
10994 (core_cost): Ditto.
10995
10996 2019-09-06 Jakub Jelinek <jakub@redhat.com>
10997
10998 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
10999 before testing TYPE_TRANSPARENT_AGGR.
11000 * calls.c (initialize_argument_information, load_register_parameters):
11001 Likewise.
11002
11003 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11004
11005 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11006 high regs.
11007 (cmp_ior): Likewise.
11008
11009 2019-09-06 Martin Liska <mliska@suse.cz>
11010
11011 * doc/match-and-simplify.texi: Separate tuples with ;.
11012
11013 2019-09-06 Martin Liska <mliska@suse.cz>
11014
11015 PR c++/91125
11016 * Makefile.in: Remove tlink.o.
11017 * collect2.c (do_link): New function isolated
11018 from do_tlink.
11019 (main): Use.
11020 * collect2.h (do_tlink): Remove declaration of do_tlink.
11021 * doc/extend.texi: Remove documentation of -frepo.
11022 * doc/invoke.texi: Likewise.
11023 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11024 * tlink.c: Remove.
11025
11026 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11027 Jim Wilson <jimw@sifive.com>
11028
11029 PR target/91635
11030 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11031 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11032 paradoxical_subreg_p (operands[0]).
11033 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11034 use as intermediate value.
11035
11036 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11037
11038 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11039 (sync_compare_and_swap<mode>_insn): Likewise.
11040
11041 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11042
11043 PR middle-end/91615
11044 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11045 without movmisalign optab.
11046
11047 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11048
11049 PR middle-end/91001
11050 PR middle-end/91105
11051 PR middle-end/91106
11052 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
11053 types, use type of their first field instead of type of
11054 args[i].tree_value.
11055
11056 2019-09-05 Richard Biener <rguenther@suse.de>
11057
11058 PR rtl-optimization/91656
11059 * postreload-gcse.c (record_last_mem_set_info): Revert addition
11060 of early out.
11061
11062 2019-09-05 Richard Biener <rguenther@suse.de>
11063
11064 PR middle-end/90501
11065 * tree-inline.c (declare_return_variable): Mark the return
11066 slot as addressable after building an address of it.
11067
11068 2019-09-05 Arnaud Charlet <charlet@adacore.com>
11069
11070 * doc/install.texi: Update and clarify requirements to build GNAT.
11071
11072 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
11073
11074 PR middle-end/91577
11075 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
11076 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
11077 call to be in memory.
11078 (pass_expand::execute): Call discover_nonconstant_array_refs before
11079 setting currently_expanding_to_rtl.
11080
11081 2019-09-04 Caroline Tice <cmtice@google.com>
11082
11083 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
11084 specified together.
11085
11086 2019-09-04 Marek Polacek <polacek@redhat.com>
11087
11088 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
11089
11090 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
11091
11092 PR target/32413
11093 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11094 for QI and HImode moves between SSE and general registers.
11095
11096 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11097
11098 PR c/78736
11099 * doc/invoke.texi: Document -Wenum-conversion.
11100
11101 2019-09-04 Richard Biener <rguenther@suse.de>
11102
11103 PR rtl-optimization/36262
11104 * postreload-gcse.c: Include intl.h and gcse.h.
11105 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
11106 to avoid linear list walk.
11107 (record_last_mem_set_info): Gate off if not computing transparentness.
11108 (get_bb_avail_insn): If transparentness isn't computed give up
11109 early.
11110 (gcse_after_reload_main): Skip compute_transp and extended PRE
11111 if gcse_or_cprop_is_too_expensive says so.
11112
11113 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11114
11115 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
11116 noinit section.
11117 (msp430_select_section): Handle decls with the "noinit" attribute with
11118 default_elf_select_section.
11119 Handle SECCAT_RODATA_MERGE_* section types with
11120 default_elf_select_section.
11121 Add comments about handling of unsupported section types.
11122 (msp430_section_type_flags): Remove handling of the noinit section.
11123
11124 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11125
11126 * config/msp430/msp430.c (msp430_attr): Remove warnings about
11127 conflicting msp430-specific attributes.
11128 (msp430_section_attr): Likewise.
11129 Add warnings about conflicts with generic "noinit" and "section"
11130 attributes.
11131 Fix grammar in -mlarge error message.
11132 (msp430_data_attr): Rename to msp430_persist_attr.
11133 Add warnings about conflicts with generic "noinit" and "section"
11134 attributes.
11135 Add warning for when variable is not initialized.
11136 Chain conditionals which prevent the attribute being added.
11137 (ATTR_EXCL): New helper.
11138 (attr_reent_exclusions): New exclusion table.
11139 (attr_naked_exclusions): Likewise.
11140 (attr_crit_exclusions): Likewise.
11141 (attr_lower_exclusions): Likewise.
11142 (attr_upper_exclusions): Likewise.
11143 (attr_either_exclusions): Likewise.
11144 (attr_persist_exclusions): Likewise.
11145 (msp430_attribute_table): Update with exclusion rules.
11146 (msp430_output_aligned_decl_common): Don't output common symbol if decl
11147 has a section.
11148
11149 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11150
11151 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
11152 (msp430_handle_generic_attribute): New function.
11153 * doc/tm.texi: Regenerate.
11154 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
11155 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11156 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11157 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
11158
11159 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
11160
11161 PR tree-optimization/91504
11162 * match.pd: Add ((~a & b) ^a) --> (a | b).
11163
11164 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11165
11166 PR target/91604
11167 * config/i386/i386-expand.c (split_double_mode): If there is more than
11168 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
11169 already split matching MEM operand instead of calling adjust_address
11170 again.
11171
11172 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
11173
11174 * config.gcc: Obsolete spu target. Remove references to spu.
11175 * configure.ac: Remove references to spu.
11176 * configure: Regenerate.
11177 * config/spu/: Remove directory.
11178 * common/config/spu/: Remove directory.
11179
11180 * doc/extend.texi: Remove references to spu.
11181 * doc/invoke.texi: Likewise.
11182 * doc/md.texi: Likewise.
11183 * doc/sourcebuild.texi: Likewise.
11184
11185 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11186
11187 PR middle-end/91603
11188 PR middle-end/91612
11189 PR middle-end/91613
11190 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11191 and SSA_NAME referring to CONSTANT_P correctly.
11192
11193 2019-09-03 Richard Biener <rguenther@suse.de>
11194
11195 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11196 (vn_nary_op_insert): Likewise.
11197 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11198 (vn_nary_op_lookup): Likewise.
11199 (vn_nary_op_insert): Likewise.
11200
11201 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11202
11203 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11204 (*op0, 1) instead of XEXP (*op1, 0).
11205
11206 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11207
11208 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11209 (aarch64_fjcvtzs): New define_insn.
11210 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11211 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11212 Add AARCH64_JSCVT.
11213 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11214 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11215 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11216 __ARM_FEATURE_JCVT where appropriate.
11217 * config/aarch64/arm_acle.h (__jcvt): Define.
11218
11219 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11220
11221 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11222 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11223 (aarch64_<frintnzs_op><mode>): New define_insn.
11224 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11225 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11226 __ARM_FEATURE_FRINT when appropriate.
11227 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11228 frint32x, frint64z, frint64x.
11229 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11230 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11231 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11232 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11233 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11234 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11235 * config/aarch64/iterators.md (VSFDF): Define.
11236 (FRINTNZX): Likewise.
11237 (frintnzs_op): Likewise.
11238
11239 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11240
11241 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11242 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11243 Cortex-A34.
11244 * config/aarch64/aarch64-tune.md: Regenerated.
11245 * doc/invoke.texi: Document the new processors.
11246
11247 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11248
11249 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11250 string.
11251 (ssbs): Likewise.
11252 (sve2): Likewise.
11253 (sve2-sm4): Likewise.
11254 (sveaes): Likewise.
11255 (svesha3): Likewise.
11256 (svebitperm): Likewise.
11257
11258 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11259 Richard Biener <rguenther@suse.de>
11260
11261 PR tree-optimization/91597
11262 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11263 BIT_AND_EXPR optimization for pointers, even if both operand
11264 ranges don't include NULL, the result can be NULL.
11265
11266 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11267
11268 PR middle-end/91605
11269 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11270 (non_mem_decl_p): ...this.
11271 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11272 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11273 unconditionally as before.
11274
11275 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11276
11277 PR target/91323
11278 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11279 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11280 * tree.def (LTGT_EXPR): Likewise.
11281 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11282
11283 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11284
11285 PR go/91617
11286 * fold-const.c (range_check_type): For enumeral and boolean
11287 type, pass 1 to type_for_size langhook instead of
11288 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11289 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11290 (build_range_check): Don't call unsigned_type_for for pointer types.
11291 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11292 range_check_type result.
11293
11294 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11295
11296 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11297 (replace_ref): Do not replace a chain of only two candidates which are
11298 valid memory references.
11299
11300 2019-09-02 Martin Liska <mliska@suse.cz>
11301
11302 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11303 Bail out when we'll end up with the same number of clusters as
11304 at the beginning.
11305 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11306 (jump_table_cluster::can_be_handled): Remove the guard
11307 as it's already handled in ::is_enabled. Allocate output
11308 after early bail out.
11309
11310 2019-09-02 Martin Liska <mliska@suse.cz>
11311
11312 PR gcov-profile/91601
11313 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11314 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11315 also negative edges.
11316 (circuit): Handle also negative edges as they can happen
11317 in some situations.
11318
11319 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11320
11321 PR target/91472
11322 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11323 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11324 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11325
11326 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11327
11328 PR middle-end/91623
11329 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11330 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11331 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11332 zero vector.
11333
11334 PR lto/91572
11335 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11336 GIMPLE_ASM TREE_LIST operands.
11337
11338 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11339
11340 * doc/generic.texi (Unary and Binary Expressions): Mark up
11341 an instance of TYPE_MIN.
11342
11343 2019-08-31 Stafford Horne <shorne@gmail.com>
11344
11345 * config/or1k/constraints.md (t): New constraint.
11346 * config/or1k/or1k.h (GOT_REGS): New register class.
11347 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11348
11349 2019-08-30 Jim Wilson <jimw@sifive.com>
11350
11351 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11352 and -fpic and -mplt then disable -msave-restore and warn.
11353
11354 2019-08-30 Martin Sebor <msebor@redhat.com>
11355
11356 PR middle-end/91599
11357 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11358 the statement doesn't have one.
11359 * gimple-pretty-print.c (percent_G_format): Same.
11360
11361 PR middle-end/91584
11362 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11363 before using them to validate MEM_REF offset.
11364
11365 2019-08-30 Marek Polacek <polacek@redhat.com>
11366
11367 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11368
11369 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11370
11371 * config/arm/arm.md (unaligned_loaddi,
11372 unaligned_storedi): New unspec insn patterns.
11373 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11374 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11375 and unaligned_storedi for 4-byte aligned memory.
11376 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11377 4-byte aligned memory.
11378
11379 2019-08-30 Martin Jambor <mjambor@suse.cz>
11380
11381 tree-optimization/91579
11382 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11383 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11384 appropriate.
11385 (arg_needs_copy_p): Removed.
11386 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11387 arg_needs_copy_p.
11388 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11389
11390 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11391
11392 * config/i386/i386-features.c
11393 (general_scalar_chain::compute_convert_gain):
11394 Correct cost for double-word shifts.
11395 (general_scalar_to_vector_candidate_p): Reject count operands
11396 greater or equal to mode bitsize.
11397
11398 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11399
11400 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11401 for moves between SSE and non-general registers and between
11402 mask and non-general registers.
11403 (ix86_register_move_cost): Remove stalled comment.
11404
11405 2019-08-29 Richard Biener <rguenther@suse.de>
11406
11407 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11408 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11409
11410 2019-08-29 Richard Biener <rguenther@suse.de>
11411
11412 PR bootstrap/91580
11413 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11414 Do not emit scalar copies for debug-insns, instead replace
11415 their uses with the reg copy used in the chain or reset them
11416 if there is a reaching definition outside of the chain as well.
11417
11418 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11419
11420 PR target/91560
11421 * config/i386/i386-expand.c (expand_vec_perm_movs,
11422 expand_vec_perm_blend, expand_vec_perm_vpermil,
11423 expand_vec_perm_pshufb, expand_vec_perm_1,
11424 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11425 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11426 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11427 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11428 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11429 comments - replace ix86_expand_vec_perm_builtin_1 with
11430 ix86_expand_vec_perm_const_1.
11431 (expand_vec_perm2_vperm2f128_vblend): New function.
11432 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11433 expand_vec_perm2_vperm2f128_vblend as last resort.
11434 (canonicalize_perm): Formatting fix.
11435
11436 PR tree-optimization/91351
11437 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11438 unsigned_type_for.
11439 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11440 range_check_type returns NULL.
11441 * tree-switch-conversion.c (switch_conversion::build_one_array):
11442 Use range_check_type instead of unsigned_type_for, don't perform
11443 linear opt if it returns NULL.
11444 (bit_test_cluster::find_bit_tests): Formatting fix.
11445 (bit_test_cluster::emit): Use range_check_type instead of
11446 unsigned_type_for.
11447 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11448 returns NULL.
11449
11450 2019-08-29 Richard Biener <rguenther@suse.de>
11451
11452 PR tree-optimization/91568
11453 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11454 (vect_update_max_nunits): Add overload for poly_uint64.
11455 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11456 (vect_build_slp_tree): Record max_nunits into the subtree
11457 and merge it upwards.
11458 (vect_print_slp_tree): Print max_nunits.
11459
11460 2019-08-28 Marek Polacek <polacek@redhat.com>
11461
11462 Implement P1152R4: Deprecating some uses of volatile.
11463 PR c++/91361
11464 * doc/invoke.texi: Document -Wvolatile.
11465
11466 2019-08-28 Marek Polacek <polacek@redhat.com>
11467
11468 PR c++/91360 - Implement C++20 P1143R2: constinit.
11469 * doc/invoke.texi: Document -Wc++20-compat.
11470
11471 2019-08-28 Martin Sebor <msebor@redhat.com>
11472
11473 PR tree-optimization/91457
11474 * builtins.c (component_size): New function.
11475 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11476 * builtins.h (compute_objsize): Add argument.
11477 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11478 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11479 (vrp_prop::check_mem_ref): Same.
11480 (vrp_prop::search_for_addr_array): Set no-warning bit.
11481 (check_array_bounds): Same.
11482
11483 2019-08-28 Martin Sebor <msebor@redhat.com>
11484
11485 PR driver/80545
11486 * opts-common.c (option_enabled): Correct checking for language
11487 options.
11488
11489 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11490
11491 * config/i386/i386.c (ix86_register_move_cost): Do not
11492 limit the cost of moves to/from XMM register to minimum 8.
11493
11494 2019-08-28 Martin Jambor <mjambor@suse.cz>
11495
11496 PR ipa/91468
11497 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11498 checking assert a normal assert to test it really is redundant.
11499 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11500 redundant test.
11501 (update_jump_functions_after_inlining): Removed combining unary
11502 arithmetic operations with an ancestor jump function.
11503 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11504 instead of t.
11505
11506 2019-08-28 Richard Biener <rguenther@suse.de>
11507
11508 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11509 add the MD problem.
11510
11511 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11512 Richard Biener <rguenther@suse.de>
11513
11514 * expr.c (expand_assignment): Handle misaligned DECLs.
11515 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11516 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11517 too.
11518 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11519 * varasm.c (build_constant_desc): Align constants of misaligned types.
11520 * config/arm/predicates.md (aligned_operand): New predicate.
11521 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11522 aligned_operand to check restrictions on memory addresses.
11523 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11524 * config/arm/vec-common.md (mov<VALL>): Likewise.
11525
11526 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11527
11528 PR libgomp/91530
11529 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11530 V_128 iterator instead of VI_128.
11531
11532 2019-08-28 Martin Liska <mliska@suse.cz>
11533
11534 PR tree-optimization/90970
11535 * builtins.c (check_access): Remove assignment to maxread
11536 as it hasn't been used since when it was introduced in r255755.
11537
11538 2019-08-27 Martin Sebor <msebor@redhat.com>
11539
11540 PR tree-optimization/91567
11541 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11542 of unknown strings.
11543 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11544 to PTRDIFF_MAX - 2.
11545
11546 2019-08-27 Jeff Law <law@redhat.com>
11547
11548 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11549 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11550
11551 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11552
11553 PR target/91528
11554 * config/i386/i386-features.c (convert_scalars_to_vector):
11555 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11556 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11557 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11558 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11559
11560 2019-08-27 Richard Biener <rguenther@suse.de>
11561
11562 * config/i386/i386-features.h
11563 (general_scalar_chain::~general_scalar_chain): Add.
11564 (general_scalar_chain::insns_conv): New bitmap.
11565 (general_scalar_chain::n_sse_to_integer): New.
11566 (general_scalar_chain::n_integer_to_sse): Likewise.
11567 (general_scalar_chain::make_vector_copies): Adjust signature.
11568 * config/i386/i386-features.c
11569 (general_scalar_chain::general_scalar_chain): Outline,
11570 initialize new members.
11571 (general_scalar_chain::~general_scalar_chain): New.
11572 (general_scalar_chain::mark_dual_mode_def): Record insns
11573 we need to insert conversions at and count them.
11574 (general_scalar_chain::compute_convert_gain): Account
11575 for conversion instructions at chain boundary.
11576 (general_scalar_chain::make_vector_copies): Generate a single
11577 copy for a def by a specific insn.
11578 (general_scalar_chain::convert_registers): First populate
11579 defs_map, then make copies at out-of chain insns.
11580
11581 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11582
11583 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11584 comment.
11585 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11586
11587 2019-08-27 Martin Liska <mliska@suse.cz>
11588
11589 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11590 loop.
11591 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11592 Enclose in anonymous namespace.
11593 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11594 hard_register initialization in braces.
11595 * tree-vrp.h (value_range_base::supports_type_p): Return false
11596 for function with boolean return type.
11597
11598 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11599
11600 * config/i386/i386.c (emit_i387_cw_initialization)
11601 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11602
11603 2019-08-26 Martin Sebor <msebor@redhat.com>
11604
11605 PR c++/83431
11606 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11607 (sprintf_dom_walker): Remove class.
11608 (get_int_range): Make argument const.
11609 (directive::fmtfunc, directive::set_precision): Same.
11610 (format_none): Same.
11611 (build_intmax_type_nodes): Same.
11612 (adjust_range_for_overflow): Same.
11613 (format_floating): Same.
11614 (format_character): Same.
11615 (format_string): Same.
11616 (format_plain): Same.
11617 (get_int_range): Cast away constness.
11618 (format_integer): Same.
11619 (get_string_length): Call get_range_strlen_dynamic. Handle
11620 null lendata.maxbound.
11621 (should_warn_p): Adjust argument scope qualifier.
11622 (maybe_warn): Same.
11623 (format_directive): Same.
11624 (parse_directive): Same.
11625 (is_call_safe): Same.
11626 (try_substitute_return_value): Same.
11627 (sprintf_dom_walker::handle_printf_call): Rename...
11628 (handle_printf_call): ...to this. Initialize target to host charmap
11629 here instead of in pass_sprintf_length::execute.
11630 (struct call_info): Make global.
11631 (sprintf_dom_walker::compute_format_length): Make global.
11632 (sprintf_dom_walker::handle_gimple_call): Same.
11633 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11634 * print-rtl.c (print_pattern): Reduce the number of spaces to
11635 avoid -Wformat-truncation.
11636 * tree-pass.h (make_pass_warn_printf): New function.
11637 * tree-ssa-strlen.c (strlen_optimize): New variable.
11638 (get_string_length): Add comments.
11639 (get_range_strlen_dynamic): New function.
11640 (check_and_optimize_call): New function.
11641 (handle_integral_assign): New function.
11642 (strlen_check_and_optimize_stmt): Factor code out into
11643 strlen_check_and_optimize_call and handle_integral_assign.
11644 (strlen_dom_walker::evrp): New member.
11645 (strlen_dom_walker::before_dom_children): Use evrp member.
11646 (strlen_dom_walker::after_dom_children): Use evrp member.
11647 (printf_strlen_execute): New function.
11648 (pass_strlen::gate): Update to handle printf calls.
11649 (dump_strlen_info): New function.
11650 (pass_data_warn_printf): New variable.
11651 (pass_warn_printf): New class.
11652 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11653 (handle_printf_call): Same.
11654 * tree-vrp.c (value_range_base::type): Adjust assertion.
11655 * vr-values.c (vr_values::update_value_range): Use type of the first
11656 argument rather than the second.
11657
11658 2019-08-26 Richard Biener <rguenther@suse.de>
11659
11660 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11661 Remove.
11662 (convert_scalars_to_vector): Do not call it.
11663
11664 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11665 Uros Bizjak <ubizjak@gmail.com>
11666
11667 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11668 CASE_MATHFN_FLOATN for roundeven.
11669 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11670 I387_ROUNDEVEN.
11671 (ix86_mode_needed): Likewise.
11672 (ix86_mode_after): Likewise.
11673 (ix86_mode_entry): Likewise.
11674 (ix86_mode_exit): Likewise.
11675 (ix86_emit_mode_set): Likewise.
11676 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11677 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11678 (ix86_entity): Add I387_ROUNDEVEN.
11679 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11680 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11681 (define_int_iterator): Likewise.
11682 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11683 (define_constant): Define ROUND_ROUNDEVEN mode.
11684 (define_attr): Add roundeven mode for i387_cw.
11685 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11686 * internal-fn.def (ROUNDEVEN): New builtin function.
11687 * optabs.def (roundeven_optab): New optab.
11688
11689 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11690
11691 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11692 for ROUNDEVEN.
11693 * builtins.def: Added function definitions for roundeven function
11694 variants.
11695 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11696 function call. Adjust condition for floor, ceil, trunc and round.
11697 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11698 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11699 (integer_valued_real_call_p): Added case for roundeven function.
11700 * real.c (is_even): New function. Returns true if real number is even,
11701 otherwise returns false.
11702 (is_halfway_below): New function. Returns true if real number is
11703 halfway between two integers, else return false.
11704 (real_roundeven): New function. Round real number to nearest integer,
11705 rounding halfway cases towards even.
11706 * real.h (real_value): Added descriptive comments. Added function
11707 declaration for roundeven function.
11708 * doc/extend.texi (Other Builtins): List roundeven variants among
11709 functions which can be handled as builtins.
11710
11711 2019-08-26 Richard Biener <rguenther@suse.de>
11712
11713 PR target/91522
11714 PR target/91527
11715 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11716 New member.
11717 (general_scalar_chain::replace_with_subreg): Remove.
11718 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11719 (general_scalar_chain::convert_reg): Adjust signature.
11720 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11721 iterate over all defs of a reg.
11722 (general_scalar_chain::replace_with_subreg): Remove.
11723 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11724 (general_scalar_chain::make_vector_copies): Populate defs_map,
11725 place copy only after defs that are used as vectors in the chain.
11726 (general_scalar_chain::convert_reg): Emit a copy for a specific
11727 def in a specific instruction.
11728 (general_scalar_chain::convert_op): All reg uses are converted here.
11729 (general_scalar_chain::convert_insn): Emit copies for scalar
11730 uses of defs here. Replace uses with the copies we created.
11731 Replace and convert the def. Adjust REG_DEAD notes, remove
11732 REG_EQUIV/EQUAL notes.
11733 (general_scalar_chain::convert_registers): Only handle copies
11734 into the chain here.
11735
11736 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11737
11738 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11739
11740 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11741
11742 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11743 Add nop_convert case.
11744 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11745 Fold all statements if requested.
11746 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11747 Allow to fold all statements.
11748 * tree-vrp.c (class vrp_folder):
11749 Let substitute_and_fold_engine fold all statements.
11750
11751 2019-08-26 Richard Biener <rguenther@suse.de>
11752
11753 PR tree-optimization/91526
11754 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11755 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11756 TODO_update_address_taken.
11757
11758 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11759
11760 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11761 __STDC_HOSTED__.
11762
11763 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11764
11765 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11766 machine mode for unspec_volatile operand.
11767
11768 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11769
11770 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11771 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11772 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11773 (prefer_neon_for_64bits): Remove.
11774 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11775 (tune_params): Remove PREF_NEON_64_FALSE uses.
11776 (arm_option_override): Remove prefer_neon selection code.
11777 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11778 * config/arm/arm-protos.h (tune_params): Remove
11779 prefer_neon_for_64bits.
11780 (prefer_neon_for_64bits): Remove.
11781
11782 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11783
11784 PR pch/61250
11785 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11786 and issue any diagnostics needed before collecting the pre-PCH
11787 state.
11788
11789 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11790
11791 PR middle-end/91283
11792 * common.opt (fexcess-precision=): Add Optimization flag. Use
11793 flag_excess_precision variable instead of
11794 flag_excess_precision_cmdline.
11795 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11796 member.
11797 (flag_excess_precision): Don't define.
11798 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11799 flag_excess_precision_cmdline. Remove comment.
11800 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11801 and x_flag_excess_precision instead of
11802 frontend_set_flag_excess_precision_cmdline and
11803 x_flag_excess_precision_cmdline.
11804 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11805 x_flag_excess_precision_cmdline.
11806 * toplev.c (init_excess_precision): Remove.
11807 (lang_dependent_init_target): Don't call it.
11808
11809 2019-08-23 Martin Liska <mliska@suse.cz>
11810
11811 * lto-wrapper.c (run_gcc): When setting jobserver
11812 set also parallel to 1. This was done so before r273908.
11813
11814 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11815
11816 * config/arm/arm-cpus.in (cortex-m35p): New entry.
11817 (cortex-a76ae): Likewise.
11818 (cortex-a77): Likewise
11819 * config/arm/arm-tables.opt: Regenerate.
11820 * config/arm/arm-tune.md: Likewise.
11821 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
11822 cortex-a77 CPU options.
11823
11824 2019-08-23 Martin Liska <mliska@suse.cz>
11825
11826 * profile.c (instrument_values): Do not set
11827 0 as last argument.
11828 * tree-profile.c (gimple_gen_interval_profiler): Remove
11829 last argument.
11830 (gimple_gen_pow2_profiler): Likewise.
11831 (gimple_gen_topn_values_profiler): Likewise.
11832 (gimple_gen_ic_profiler): Likewise.
11833 (gimple_gen_time_profiler): Likewise.
11834 (gimple_gen_average_profiler): Likewise.
11835 (gimple_gen_ior_profiler): Likewise.
11836 * value-prof.c (dump_histogram_value): Use default
11837 in switch statement instead of HIST_TYPE_MAX.
11838 (stream_in_histogram_value): Likewise.
11839 (gimple_duplicate_stmt_histograms): Do not
11840 use NULL for implicitly set arguments.
11841 (gimple_divmod_values_to_profile): Do not use
11842 reserve+quick_push.
11843 (gimple_indirect_call_to_profile): Likewise.
11844 (gimple_find_values_to_profile): Use implicit
11845 function call arguments.
11846 * value-prof.h (gimple_alloc_histogram_value):
11847 Set default values.
11848 (gimple_gen_interval_profiler): Remove last argument.
11849 (gimple_gen_pow2_profiler): Likewise.
11850 (gimple_gen_topn_values_profiler): Likewise.
11851 (gimple_gen_ic_profiler): Likewise.
11852 (gimple_gen_time_profiler): Likewise.
11853 (gimple_gen_average_profiler): Likewise.
11854 (gimple_gen_ior_profiler): Likewise.
11855
11856 2019-08-22 Martin Sebor <msebor@redhat.com>
11857
11858 PR middle-end/91490
11859 * builtins.c (c_strlen): Rename argument and introduce new local.
11860 Set no-warning bit on original argument.
11861 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
11862 Fold empty and zero constructors into empty strings.
11863 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
11864 for missing initializers.
11865 * tree.c (build_string_literal): Handle optional argument.
11866 * tree.h (build_string_literal): Add defaulted argument.
11867 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
11868 no-warning bit on original expression.
11869
11870 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11871
11872 PR target/91481
11873 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11874 and UNSPEC_DARN_RAW.
11875 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
11876 UNSPECV_DARN_RAW.
11877 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
11878 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
11879 (darn): Use an unspec_volatile, and UNSPECV_DARN.
11880
11881 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
11882
11883 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
11884 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
11885 * config/rs6000/rs6000.md (unspec): ... here.
11886 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
11887 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11888 cmpeqb, *cmpeqb_internal): Delete, move to...
11889 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
11890 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
11891 cmpeqb, *cmpeqb_internal): ... here.
11892
11893 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11894
11895 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
11896 intrinsics if __ARM_FP.
11897 Use __ARM_FEATURE_CRC32 ifdef guard.
11898
11899 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11900
11901 * config/arm/arm.md (neon_for_64bits): Remove.
11902 (avoid_neon_for_64bits): Remove.
11903 (arm_adddi3): Always split early.
11904 (arm_subdi3): Always split early.
11905 (negdi2): Remove Neon expansion.
11906 (split zero_extend): Split before reload.
11907 (split sign_extend): Split before reload.
11908
11909 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11910
11911 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
11912 (qhs_extenddi_cstr): Likewise.
11913 * config/arm/arm.md (ashldi3): Always expand early.
11914 (ashlsi3): Likewise.
11915 (ashrsi3): Likewise.
11916 (zero_extend<mode>di2): Remove Neon variants.
11917 (extend<mode>di2): Likewise.
11918 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
11919 (signed_shift_di3_neon): Likewise.
11920 (unsigned_shift_di3_neon): Likewise.
11921 (ashrdi3_neon_imm_noclobber): Likewise.
11922 (lshrdi3_neon_imm_noclobber): Likewise.
11923 (<shift>di3_neon): Likewise.
11924 (split extend): Remove DI extend split patterns.
11925
11926 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
11927
11928 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
11929 (split not): Add DImode not splitter.
11930 (anddi3): Remove pattern.
11931 (anddi3_insn): Likewise.
11932 (anddi_zesidi_di): Likewise.
11933 (anddi_sesdi_di): Likewise.
11934 (anddi_notdi_di): Likewise.
11935 (anddi_notzesidi_di): Likewise.
11936 (anddi_notsesidi_di): Likewise.
11937 (iordi3): Likewise.
11938 (iordi3_insn): Likewise.
11939 (iordi_zesidi_di): Likewise.
11940 (iordi_sesidi_di): Likewise.
11941 (xordi3): Likewise.
11942 (xordi3_insn): Likewise.
11943 (xordi_sesidi_di): Likewise.
11944 (xordi_zesidi_di): Likewise.
11945 (one_cmpldi2): Likewise.
11946 (one_cmpldi2_insn): Likewise.
11947 * config/arm/constraints.md: Remove De, Df, Dg constraints.
11948 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
11949 alternative.
11950 (iwmmxt_xordi3): Likewise.
11951 (iwmmxt_anddi3): Likewise.
11952 * config/arm/neon.md (orndi3_neon): Remove pattern.
11953 (anddi_notdi_di): Likewise.
11954 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
11955 (arm_iordi_operand_neon): Likewise.
11956 (arm_xordi_operand_neon): Likewise.
11957 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
11958 (iordi_notzesidi_di): Likewise.
11959 (iordi_notdi_zesidi): Likewise.
11960 (iordi_notsesidi_di): Likewise.
11961
11962 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
11963
11964 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
11965 insn.
11966 (iorsi3_compare0_scratch): Likewise.
11967
11968 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
11969
11970 * config/aarch64/aarch64-simd-builtins.def:
11971 (ld1x4): New.
11972 (st1x4): Likewise.
11973 * config/aarch64/aarch64-simd.md:
11974 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
11975 (aarch64_st1x4<VALLDIF:mode>): Likewise.
11976 (aarch64_ld1_x4_<mode>): Likewise.
11977 (aarch64_st1_x4_<mode>): Likewise.
11978 * config/aarch64/arm_neon.h:
11979 (vld1_s8_x4): New function.
11980 (vld1q_s8_x4): Likewise.
11981 (vld1_s16_x4): Likewise.
11982 (vld1q_s16_x4): Likewise.
11983 (vld1_s32_x4): Likewise.
11984 (vld1q_s32_x4): Likewise.
11985 (vld1_u8_x4): Likewise.
11986 (vld1q_u8_x4): Likewise.
11987 (vld1_u16_x4): Likewise.
11988 (vld1q_u16_x4): Likewise.
11989 (vld1_u32_x4): Likewise.
11990 (vld1q_u32_x4): Likewise.
11991 (vld1_f16_x4): Likewise.
11992 (vld1q_f16_x4): Likewise.
11993 (vld1_f32_x4): Likewise.
11994 (vld1q_f32_x4): Likewise.
11995 (vld1_p8_x4): Likewise.
11996 (vld1q_p8_x4): Likewise.
11997 (vld1_p16_x4): Likewise.
11998 (vld1q_p16_x4): Likewise.
11999 (vld1_s64_x4): Likewise.
12000 (vld1_u64_x4): Likewise.
12001 (vld1_p64_x4): Likewise.
12002 (vld1q_s64_x4): Likewise.
12003 (vld1q_u64_x4): Likewise.
12004 (vld1q_p64_x4): Likewise.
12005 (vld1_f64_x4): Likewise.
12006 (vld1q_f64_x4): Likewise.
12007 (vst1_s8_x4): Likewise.
12008 (vst1q_s8_x4): Likewise.
12009 (vst1_s16_x4): Likewise.
12010 (vst1q_s16_x4): Likewise.
12011 (vst1_s32_x4): Likewise.
12012 (vst1q_s32_x4): Likewise.
12013 (vst1_u8_x4): Likewise.
12014 (vst1q_u8_x4): Likewise.
12015 (vst1_u16_x4): Likewise.
12016 (vst1q_u16_x4): Likewise.
12017 (vst1_u32_x4): Likewise.
12018 (vst1q_u32_x4): Likewise.
12019 (vst1_f16_x4): Likewise.
12020 (vst1q_f16_x4): Likewise.
12021 (vst1_f32_x4): Likewise.
12022 (vst1q_f32_x4): Likewise.
12023 (vst1_p8_x4): Likewise.
12024 (vst1q_p8_x4): Likewise.
12025 (vst1_p16_x4): Likewise.
12026 (vst1q_p16_x4): Likewise.
12027 (vst1_s64_x4): Likewise.
12028 (vst1_u64_x4): Likewise.
12029 (vst1_p64_x4): Likewise.
12030 (vst1q_s64_x4): Likewise.
12031 (vst1q_u64_x4): Likewise.
12032 (vst1q_p64_x4): Likewise.
12033 (vst1_f64_x4): Likewise.
12034 (vst1q_f64_x4): Likewise.
12035
12036 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12037
12038 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12039
12040 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12041 Richard Sandiford <richard.sandiford@arm.com>
12042
12043 PR target/88839
12044 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12045 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
12046
12047 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12048
12049 PR target/90724
12050 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
12051 in reg if it fails aarch64_plus_operand predicate.
12052
12053 2019-08-21 Richard Biener <rguenther@suse.de>
12054
12055 PR tree-optimization/91482
12056 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
12057 BUILT_IN_ASSUME_ALIGNED calls.
12058
12059 2019-08-21 Richard Biener <rguenther@suse.de>
12060
12061 PR target/91498
12062 PR target/91503
12063 * config/i386/i386-features.c
12064 (general_scalar_chain::make_vector_copies): Copy stack temporary
12065 rtx when using it multiple times.
12066 (general_scalar_chain::convert_reg): Likewise.
12067
12068 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12069
12070 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
12071
12072 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
12073
12074 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
12075 catch more redundant zero initialization cases.
12076 (dse_dom_walker::dse_optimize_stmt): Likewise.
12077
12078 2019-08-20 Richard Biener <rguenther@suse.de>
12079
12080 PR lto/91307
12081 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
12082 by collect2 when targetm.have_ctors_dtors which avoids dragging
12083 in temporary filenames from LTO input objects.
12084
12085 2019-08-20 Richard Biener <rguenther@suse.de>
12086
12087 PR tree-optimization/37242
12088 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
12089 to (T)a + (T)b if we know that a + b does not overflow.
12090
12091 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
12092
12093 PR rtl-optimization/91347
12094 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
12095 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
12096
12097 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12098
12099 * calls.h (function_arg_info): Add a pass_by_reference field,
12100 defaulting to false.
12101 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12102 when applying pass-by-reference semantics.
12103 (initialize_argument_information): Likewise.
12104 (emit_library_call_value_1): Likewise.
12105 * function.c (assign_parm_data_one): Remove passed_pointer field.
12106 (assign_parm_find_data_types): Don't set it.
12107 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
12108 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
12109 arg.pass_by_reference instead of passed_pointer.
12110
12111 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12112
12113 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
12114 into a single function_arg_info, updating its fields when we
12115 apply pass-by-reference and promotion semantics. Use the
12116 function_arg_info to track the mode rather than keeping it in
12117 a separate local variable.
12118 (initialize_argument_information): Likewise. Base the final
12119 arg_to_skip on this new function_arg_info rather than creating
12120 a new one from scratch.
12121
12122 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12123
12124 * function.c (assign_parm_data_one): Replace passed_type,
12125 promoted_mode and named_arg with a function_arg_info field.
12126 (assign_parm_find_data_types): Remove local variables and
12127 assign directly to "data". Make data->passed_mode shadow
12128 data->arg.mode until promotion, then assign the promoted
12129 mode to data->arg.mode.
12130 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
12131 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
12132 (assign_parm_remove_parallels, assign_parm_setup_block_p)
12133 (assign_parm_setup_block, assign_parm_setup_reg)
12134 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
12135 arg.mode instead of promoted_mode, arg.type instead of passed_type
12136 and arg.named instead of named_arg. Use data->arg for
12137 function_arg_info structures that had the field values passed_type,
12138 promoted_mode and named_arg. Base other function_arg_infos on
12139 data->arg, changing the necessary properties.
12140
12141 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12142
12143 * calls.h (apply_pass_by_reference_rules): Declare.
12144 * calls.c (apply_pass_by_reference_rules): New function.
12145 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
12146 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
12147 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12148 * function.c (assign_parm_find_data_types): Likewise.
12149 * var-tracking.c (prepare_call_arguments): Likewise.
12150
12151 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12152
12153 * target.def (must_pass_in_stack): Take a function_arg_info instead
12154 of a mode and a type.
12155 * doc/tm.texi: Regenerate.
12156 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
12157 instead of a mode and a type.
12158 (must_pass_in_stack_var_size_or_pad): Likewise.
12159 * calls.c (must_pass_in_stack_var_size): Likewise.
12160 (must_pass_in_stack_var_size_or_pad): Likewise.
12161 (initialize_argument_information): Update call to
12162 targetm.calls.must_pass_in_stack.
12163 (must_pass_va_arg_on_stack): Likewise.
12164 * function.c (assign_parm_find_entry_rtl): Likewise.
12165 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
12166 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12167 (alpha_function_arg_advance): Likewise.
12168 * config/cr16/cr16.c (cr16_function_arg): Likewise.
12169 (cr16_function_arg_advance): Likewise.
12170 * config/cris/cris.c (cris_pass_by_reference): Likewise.
12171 (cris_arg_partial_bytes): Likewise.
12172 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12173 * config/lm32/lm32.c (lm32_function_arg): Likewise.
12174 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
12175 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
12176 * config/mips/mips.c (mips_pass_by_reference): Likewise.
12177 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
12178 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
12179 * config/sh/sh.c (sh_pass_by_reference): Likewise.
12180 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12181 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12182 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
12183 instead of a mode and a type.
12184 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
12185 (fr30_num_arg_regs): Likewise.
12186 (fr30_setup_incoming_varargs): Update calls accordingly.
12187 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12188 (fr30_function_arg_advance): Likewise.
12189 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12190 instead of a mode and a type.
12191 * config/gcn/gcn.c (num_arg_regs): Likewise.
12192 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12193 num_arg_regs and targetm.calls.must_pass_in_stack.
12194 (gcn_arg_partial_bytes): Likewise.
12195 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12196 function_arg_info instead of a mode and a type.
12197 (classify_argument): Update call accordingly.
12198 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12199 function_arg_info instead of a mode and a type.
12200 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12201 Likewise.
12202 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12203 (rs6000_parm_needs_stack): Update call accordingly.
12204 (setup_incoming_varargs): Likewise.
12205
12206 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12207
12208 * target.def (callee_copies): Take a function_arg_info instead
12209 of a mode, type and named flag.
12210 * doc/tm.texi: Regenerate.
12211 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12212 instead of a mode, type and named flag.
12213 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12214 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12215 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12216 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12217 instead of a mode, type and named flag.
12218 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12219 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12220 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12221 * calls.h (reference_callee_copied): Take a function_arg_info
12222 instead of a mode, type and named flag.
12223 * calls.c (reference_callee_copied): Likewise.
12224 (initialize_argument_information): Update call accordingly.
12225 (emit_library_call_value_1): Likewise.
12226 * function.c (gimplify_parameters): Likewise.
12227 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12228 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12229 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12230 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12231 (TARGET_CALLEE_COPIES): Define to
12232 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12233 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12234 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12235 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12236 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12237 instead of a mode, type and named flag.
12238 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12239 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12240 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12241 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12242 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12243 (TARGET_CALLEE_COPIES): Define to
12244 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12245 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12246 instead of a mode, type and named flag.
12247 * config/sh/sh.c (sh_callee_copies): Likewise.
12248 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12249 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12250 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12251
12252 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12253
12254 * target.def (function_arg_advance): Take a function_arg_info instead
12255 of a mode, type and named flag.
12256 * doc/tm.texi: Regenerate.
12257 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12258 instead of a mode, type and named flag.
12259 * targhooks.c (default_function_arg_advance): Likewise.
12260 * calls.c (initialize_argument_information): Update call to
12261 targetm.calls.function_arg_advance.
12262 (emit_library_call_value_1): Likewise.
12263 * dse.c (get_call_args): Likewise.
12264 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12265 * function.c (assign_parms, gimplify_parameters): Likewise.
12266 * var-tracking.c (prepare_call_arguments): Likewise.
12267 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12268 function_arg_info instead of a mode, type and named flag.
12269 (aarch64_setup_incoming_varargs): Update call accordingly.
12270 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12271 function_arg_info instead of a mode, type and named flag.
12272 (alpha_setup_incoming_varargs): Update call accordingly.
12273 * config/arc/arc.c (arc_function_arg_advance): Take a
12274 function_arg_info instead of a mode, type and named flag.
12275 (arc_setup_incoming_varargs): Update call accordingly.
12276 * config/arm/arm.c (arm_function_arg_advance): Take a
12277 function_arg_info instead of a mode, type and named flag.
12278 (cmse_func_args_or_return_in_stack): Update call accordingly.
12279 (arm_function_ok_for_sibcall): Likewise.
12280 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12281 * config/avr/avr.c (avr_function_arg_advance): Take a
12282 function_arg_info instead of a mode, type and named flag.
12283 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12284 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12285 (c6x_call_saved_register_used): Update call accordingly.
12286 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12287 function_arg_info instead of a mode, type and named flag.
12288 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12289 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12290 (csky_setup_incoming_varargs): Update call accordingly.
12291 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12292 function_arg_info instead of a mode, type and named flag.
12293 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12294 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12295 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12296 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12297 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12298 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12299 (ix86_setup_incoming_varargs): Update call accordingly.
12300 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12301 function_arg_info instead of a mode, type and named flag.
12302 (ia64_setup_incoming_varargs): Update call accordingly.
12303 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12304 function_arg_info instead of a mode, type and named flag.
12305 (iq2000_expand_prologue): Update call accordingly.
12306 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12307 function_arg_info instead of a mode, type and named flag.
12308 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12309 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12310 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12311 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12312 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12313 Likewise.
12314 (microblaze_expand_prologue): Update call accordingly.
12315 * config/mips/mips.c (mips_function_arg_advance): Take a
12316 function_arg_info instead of a mode, type and named flag.
12317 (mips_setup_incoming_varargs): Update call accordingly.
12318 (mips_output_args_xfer): Likewise.
12319 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12320 function_arg_info instead of a mode, type and named flag.
12321 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12322 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12323 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12324 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12325 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12326 (nios2_setup_incoming_varargs): Update call accordingly.
12327 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12328 function_arg_info instead of a mode, type and named flag.
12329 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12330 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12331 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12332 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12333 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12334 (riscv_setup_incoming_varargs): Update call accordingly.
12335 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12336 function_arg_info instead of a mode, type and named flag.
12337 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12338 Likewise.
12339 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12340 (rs6000_parm_needs_stack): Update call accordingly.
12341 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12342 instead of a mode, type and named flag.
12343 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12344 (s390_call_saved_register_used): Update call accordingly.
12345 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12346 instead of a mode, type and named flag.
12347 (sh_output_mi_thunk): Update call accordingly.
12348 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12349 function_arg_info instead of a mode, type and named flag.
12350 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12351 (spu_setup_incoming_varargs): Update call accordingly.
12352 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12353 function_arg_info instead of a mode, type and named flag.
12354 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12355 (tilegx_setup_incoming_varargs): Update call accordingly.
12356 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12357 function_arg_info instead of a mode, type and named flag.
12358 (tilegx_setup_incoming_varargs): Update call accordingly.
12359 * config/v850/v850.c (v850_function_arg_advance): Take a
12360 function_arg_info instead of a mode, type and named flag.
12361 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12362 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12363 (visium_setup_incoming_varargs): Update call accordingly.
12364 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12365 function_arg_info instead of a mode, type and named flag.
12366
12367 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12368
12369 * target.def (function_arg, function_incoming_arg): Take a
12370 function_arg_info instead of a mode, tree and named flag.
12371 * doc/tm.texi: Regenerate.
12372 * targhooks.h (default_function_arg): Take a function_arg_info
12373 instead of a mode, tree and named flag.
12374 (default_function_incoming_arg): Likewise.
12375 * targhooks.c (default_function_arg): Likewise.
12376 (default_function_incoming_arg): Likewise.
12377 * calls.h (function_arg_info::end_marker_p): New function.
12378 (function_arg_info::end_marker): Likewise.
12379 * calls.c (prepare_call_address, initialize_argument_information)
12380 (expand_call, emit_library_call_value_1): Update calls to
12381 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12382 * dse.c: Include calls.h.
12383 (get_call_args): Update call to targetm.calls.function_arg.
12384 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12385 * var-tracking.c (prepare_call_arguments): Likewise.
12386 * function.c (assign_parm_find_entry_rtl): Update call to
12387 targetm.calls.function_incoming_arg.
12388 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12389 function_arg_info instead of a mode, tree and named flag.
12390 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12391 * config/arc/arc.c (arc_function_arg): Likewise.
12392 * config/arm/arm.c (arm_function_arg): Likewise.
12393 (cmse_func_args_or_return_in_stack): Update call accordingly.
12394 (arm_function_ok_for_sibcall): Likewise.
12395 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12396 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12397 instead of a mode, tree and named flag.
12398 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12399 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12400 (c6x_call_saved_register_used): Update call accordingly.
12401 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12402 instead of a mode, tree and named flag.
12403 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12404 (cris_function_arg_1): Likewise.
12405 * config/csky/csky.c (csky_function_arg): Likewise.
12406 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12407 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12408 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12409 (frv_function_arg_1): Likewise.
12410 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12411 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12412 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12413 * config/i386/i386.c (ix86_function_arg): Likewise.
12414 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12415 (ia64_function_arg_1): Likewise.
12416 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12417 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12418 accordingly.
12419 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12420 instead of a mode, tree and named flag.
12421 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12422 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12423 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12424 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12425 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12426 (microblaze_expand_prologue): Update call accordingly.
12427 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12428 instead of a mode, tree and named flag.
12429 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12430 (mmix_function_arg_1): Likewise.
12431 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12432 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12433 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12434 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12435 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12436 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12437 (nvptx_function_incoming_arg): Likewise.
12438 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12439 * config/pa/pa.c (pa_function_arg): Likewise.
12440 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12441 * config/pru/pru.c (pru_function_arg): Likewise.
12442 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12443 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12444 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12445 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12446 (rs6000_parm_needs_stack): Update call accordingly.
12447 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12448 instead of a mode, tree and named flag.
12449 * config/s390/s390.c (s390_function_arg): Likewise.
12450 (s390_call_saved_register_used): Update call accordingly.
12451 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12452 instead of a mode, tree and named flag.
12453 (sh_output_mi_thunk): Update call accordingly.
12454 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12455 (sparc_function_incoming_arg): Take a function_arg_info instead of
12456 a mode, tree and named flag.
12457 * config/spu/spu.c (spu_function_arg): Likewise.
12458 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12459 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12460 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12461 * config/v850/v850.c (v850_function_arg): Likewise.
12462 * config/vax/vax.c (vax_function_arg): Likewise.
12463 * config/visium/visium.c (visium_function_arg): Likewise.
12464 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12465 (xtensa_function_incoming_arg): Likewise.
12466
12467 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12468
12469 * target.def (setup_incoming_varargs): Take a function_arg_info
12470 instead of a mode and tree.
12471 * doc/tm.texi: Regenerate.
12472 * targhooks.h (default_setup_incoming_varargs): Take a
12473 function_arg_info instead of a mode and tree.
12474 * targhooks.c (default_setup_incoming_varargs): Likewise.
12475 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12476 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12477 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12478 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12479 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12480 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12481 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12482 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12483 Likewise.
12484 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12485 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12486 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12487 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12488 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12489 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12490 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12491 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12492 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12493 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12494 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12495 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12496 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12497 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12498 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12499 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12500 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12501 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12502 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12503 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12504 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12505 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12506 * function.c (assign_parms_setup_varargs): Update call to
12507 targetm.calls.setup_incoming_varargs.
12508
12509 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12510
12511 * target.def (pass_by_reference): Take a function_arg_info instead
12512 of a mode, type and named flag.
12513 * doc/tm.texi: Regenerate.
12514 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12515 accordingly.
12516 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12517 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12518 function_arg_info instead of a mode, type and named flag.
12519 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12520 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12521 mode, type and named flag.
12522 * calls.c (pass_by_reference): Likewise.
12523 (pass_va_arg_by_reference): Update call accordingly.
12524 (initialize_argument_information): Likewise.
12525 (emit_library_call_value_1): Likewise.
12526 * function.c (assign_parm_find_data_types): Likewise.
12527 * var-tracking.c (prepare_call_arguments): Likewise.
12528 * stor-layout.c: Include calls.h.
12529 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12530 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12531 function_arg_info instead of a mode, type and named flag.
12532 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12533 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12534 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12535 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12536 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12537 (c6x_call_saved_register_used): Update call to pass_by_reference.
12538 * config/cris/cris.c (cris_pass_by_reference): Take a
12539 function_arg_info instead of a mode, type and named flag.
12540 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12541 function_arg_info instead of a mode, type and named flag.
12542 (epiphany_arg_partial_bytes): Update call accordingly.
12543 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12544 function_arg_info instead of a mode, type and named flag.
12545 (ft32_arg_partial_bytes): Update call accordingly.
12546 * config/i386/i386.c (ix86_pass_by_reference): Take a
12547 function_arg_info instead of a mode, type and named flag.
12548 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12549 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12550 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12551 (m32r_return_in_memory): Update call accordingly.
12552 * config/mips/mips.c (mips_pass_by_reference): Take a
12553 function_arg_info instead of a mode, type and named flag.
12554 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12555 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12556 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12557 (moxie_arg_partial_bytes): Update call accordingly.
12558 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12559 function_arg_info instead of a mode, type and named flag.
12560 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12561 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12562 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12563 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12564 (riscv_return_in_memory): Update call accordingly.
12565 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12566 function_arg_info instead of a mode, type and named flag.
12567 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12568 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12569 * config/s390/s390.c (s390_pass_by_reference): Take a
12570 function_arg_info instead of a mode, type and named flag.
12571 (s390_call_saved_register_used): Update call accordingly.
12572 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12573 instead of a mode, type and named flag.
12574 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12575 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12576 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12577 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12578 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12579 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12580
12581 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12582
12583 * target.def (arg_partial_bytes): Take a function_arg_info instead
12584 of a mode, type and named flag.
12585 * doc/tm.texi: Regenerate.
12586 * target.h (function_arg_info): Declare.
12587 * calls.h (function_arg_info): New class.
12588 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12589 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12590 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12591 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12592 * calls.c (initialize_argument_information): Update call to
12593 targetm.calls.partial_bytes.
12594 (emit_library_call_value_1): Likewise.
12595 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12596 * function.c (assign_parm_find_entry_rtl): Likewise.
12597 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12598 function_arg_info instead of a mode, type and named flag.
12599 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12600 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12601 (cmse_func_args_or_return_in_stack): Update accordingly.
12602 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12603 function_arg_info instead of a mode, type and named flag.
12604 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12605 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12606 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12607 * config/fr30/fr30.c: Include calls.h.
12608 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12609 type and named flag.
12610 * config/frv/frv.c: Include calls.h.
12611 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12612 type and named flag.
12613 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12614 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12615 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12616 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12617 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12618 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12619 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12620 Likewise.
12621 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12622 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12623 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12624 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12625 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12626 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12627 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12628 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12629 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12630 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12631 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12632 (rs6000_parm_needs_stack): Update call accordingly.
12633 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12634 function_arg_info instead of a mode, type and named flag.
12635 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12636 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12637
12638 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12639
12640 * calls.h (must_pass_va_arg_in_stack): Declare.
12641 * calls.c (must_pass_va_arg_in_stack): New function.
12642 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12643 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12644 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12645 Likewise.
12646 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12647
12648 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12649
12650 * calls.h (pass_va_arg_by_reference): Declare.
12651 * calls.c (pass_va_arg_by_reference): New function.
12652 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12653 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12654 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12655 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12656 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12657 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12658 (mips_gimplify_va_arg_expr): Likewise.
12659 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12660 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12661 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12662 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12663 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12664 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12665 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12666 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12667 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12668 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12669 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12670
12671 2019-08-20 Richard Biener <rguenther@suse.de>
12672
12673 PR target/91498
12674 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12675 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12676 (convert_scalars_to_vector): Add timode_p parameter and use it
12677 to guard TImode-only operation.
12678 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12679 (pass_stv::execute): Pass down timode_p.
12680
12681 2019-08-20 Lili Cui <lili.cui@intel.com>
12682
12683 * common/config/i386/i386-common.c
12684 (processor_names): Add tigerlake and cooperlake.
12685 (processor_alias_table): Add tigerlake and cooperlake.
12686 * config.gcc: Add -march=tigerlake and cooperlake.
12687 * config/i386/driver-i386.c
12688 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12689 Add "has_avx" to classify processor.
12690 * config/i386/i386-builtins.c (processor_model) :
12691 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12692 (arch_names_table): Add tigerlake and cooperlake.
12693 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12694 and PROCESSOR_COOPERLAKE.
12695 * config/i386/i386-c.c
12696 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12697 * config/i386/i386-options.c
12698 (m_TIGERLAKE): Define.
12699 (m_COOPERLAKE): Ditto.
12700 (m_CORE_AVX512): Ditto.
12701 (processor_cost_table): Add cascadelake.
12702 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12703 * config/i386/i386.h
12704 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12705 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12706 (PTA_MOVDIRI): Ditto.
12707 (PTA_MOVDIR64B): Ditto.
12708 (PTA_COOPERLAKE): Ditto.
12709 (PTA_TIGERLAKE): Ditto.
12710 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12711 * doc/extend.texi: Add tigerlake and cooperlake.
12712 * doc/invoke.texi: Add tigerlake and cooperlake.
12713
12714 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12715
12716 * doc/install.texi (Specific, alpha): Remove note to use
12717 binutils 2.11.2 or later.
12718
12719 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12720
12721 PR middle-end/89544
12722 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12723 when possible.
12724
12725 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12726
12727 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12728 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12729 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12730 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12731 * config/aarch64/constraints.md (Dt): New constraint
12732 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12733
12734 2019-08-19 Richard Biener <rguenther@suse.de>
12735
12736 PR tree-optimization/91403
12737 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12738 cases we can handle with tail-recursion...
12739 (follow_ssa_edge_expr): ... here. Do so.
12740
12741 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12742
12743 PR target/91441
12744 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12745 implemented for -fsanitize=kernel-address, and merge check logic
12746 with -fsanitize=address.
12747
12748 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12749
12750 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12751 for cpu and machine. Factor 64/32b builtins.
12752
12753 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12754
12755 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12756 gone, point to sourceforge.net.
12757
12758 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12759
12760 * doc/ux.texi (User Experience Guidelines): Update reference.
12761
12762 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12763
12764 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12765 not LGPL".
12766
12767 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12768
12769 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12770 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12771
12772 2019-08-16 Martin Sebor <msebor@redhat.com>
12773
12774 * tree.def (TYPE_SIZE): Clarify.
12775 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12776
12777 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12778
12779 PR tree-optimization/91109
12780 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12781 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12782 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12783
12784 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12785
12786 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12787 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12788 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12789 (uavg<mode>3_ceil): New expander.
12790 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12791 mode iterator when creating CONST1_RTX.
12792 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12793 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12794 mode iterator for const1_operand predicate.
12795
12796 2019-08-16 Richard Biener <rguenther@suse.de>
12797
12798 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12799 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12800 follow_ssa_edge.
12801 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12802 (analyze_evolution_in_loop): Likewise.
12803 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12804 (follow_ssa_edge_expr): ... here. Refactor code.
12805
12806 2019-08-16 Richard Biener <rguenther@suse.de>
12807
12808 PR target/91469
12809 * config/i386/i386-features.c
12810 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12811
12812 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12813
12814 PR other/91255
12815 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12816 only if subst_name matches curr_attr string.
12817
12818 2019-08-16 Richard Biener <rguenther@suse.de>
12819
12820 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
12821 stmt at gsi_p, instead replace it with a NOP removed later.
12822 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
12823 that became dead because of that.
12824
12825 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
12826
12827 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
12828 for which we can't represent a range.
12829 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
12830 set_varying.
12831 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12832 Set VR_UNDEFINED if type is not supported.
12833 * tree-ssanames.c (get_range_info): Pass type to set_varying.
12834 * tree-vrp.c (value_range_base::check): Assert that a varying has
12835 min/max set.
12836 (value_range_base::equal_p): Early bail for undefines.
12837 (value_range_base::set_varying): Accept a type.
12838 (value_range::set_varying): Same.
12839 (value_range_base::type): VARYING can have a type, while UNDEFINE
12840 is typeless.
12841 (value_range_base::dump): Print type for VARYING nodes.
12842 (value_range_base::set): Add type to VARYING.
12843 (extract_range_from_multiplicative_op): Pass type to set_varying.
12844 (extract_range_from_binary_expr): Same.
12845 (value_range_base::intersect_helper): Same.
12846 (value_range_base::union_helper): Same.
12847 (value_range_base::normalize_symbolics): Same.
12848 (determine_value_range_1): Same.
12849 * tree-vrp.h (class value_range_base): Add type to set_varying.
12850 Add prototype for dump(void).
12851 Add prototype for supports_type_p.
12852 (class value_range): Add type to set_varying.
12853 Add prototype for dump(void).
12854 * vr-values.c (set_value_range_to_truthvalue): Pass type to
12855 set_varying.
12856 (vr_values::get_lattice_entry): Set varying even if propagation
12857 finished.
12858 Pass type to set_varying.
12859 (vr_values::get_value_range): Remove vr_const_varying.
12860 Reallocate the lattice if needed.
12861 (vr_values::update_value_range): Pass type to set_varying.
12862 (vr_values::extract_range_for_var_from_comparison_expr): Same.
12863 (vr_values::extract_range_from_binary_expr): Same.
12864 (vr_values::extract_range_from_unary_expr): Same.
12865 (vr_values::extract_range_from_cond_expr): Same.
12866 (vr_values::check_for_binary_op_overflow): Same.
12867 (vr_values::extract_range_basic): Same.
12868 (vr_values::extract_range_from_assignment): Same.
12869 (vr_values::vr_values): Increase size of num_vr_values.
12870 (vr_values::extract_range_from_phi_node): Pass type to
12871 set_varying.
12872
12873 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
12874
12875 PR target/90878
12876 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
12877 for costs of hard register moves.
12878 (ix86_register_move_cost): Likewise.
12879 * config/i386/i386.h (processor_costs): Move costs of hard
12880 register moves to hard_register. Add int_load, int_store,
12881 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12882 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
12883 for costs of RTL expressions.
12884 * config/i386/x86-tune-costs.h: Move costs of hard register
12885 moves to hard_register. Duplicate int_load, int_store,
12886 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
12887 sse_load, sse_store for costs of RTL expressions.
12888
12889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
12890
12891 * target.def (setup_incoming_vararg_bounds): Remove.
12892 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
12893 * doc/tm.texi: Regenerate.
12894 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
12895 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
12896 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12897 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
12898
12899 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12900
12901 MSP430: Fix lines over 80 characters long in
12902 config/msp430/*.{c,h} files
12903
12904 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
12905 specifier in string.
12906 (msp430_select_hwmult_lib): Split line more than 80 characters long.
12907 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
12908 redundant old comment.
12909 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
12910 Split line more than 80 characters long.
12911 * config/msp430/msp430.c (msp430_option_override): Likewise.
12912 (msp430_return_in_memory): Likewise.
12913 (msp430_gimplify_va_arg_expr): Likewise.
12914 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
12915 (msp430_legitimate_constant): Likewise.
12916 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
12917 (msp430_attr): Likewise.
12918 (msp430_data_attr): Likewise.
12919 (msp430_start_function): Likewise.
12920 (gen_prefix): Likewise.
12921 (msp430_init_sections): Likewise.
12922 (msp430_select_section): Likewise.
12923 (msp430_function_section): Likewise.
12924 (msp430_unique_section): Likewise.
12925 (msp430_output_aligned_decl_common): Likewise.
12926 (msp430_do_not_relax_short_jumps): Likewise.
12927 (msp430_init_builtins): Likewise.
12928 (msp430_expand_delay_cycles): Likewise.
12929 (msp430_expand_prologue): Likewise.
12930 (msp430_expand_epilogue): Likewise.
12931 (msp430_expand_helper): Likewise.
12932 (msp430_split_movsi): Likewise.
12933 (msp430_print_operand): Likewise.
12934 (msp430_return_addr_rtx): Likewise.
12935 (msp430x_extendhisi): Likewise.
12936 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
12937 (ASM_SPEC): Likewise.
12938 Remove very obvious comments.
12939 (LIB_SPEC): Split line more than 80 characters long.
12940 (EH_RETURN_HANDLER_RTX): Likewise.
12941 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12942
12943 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12944
12945 MSP430: Fix whitespace errors and incorrect indentation in
12946 config/msp430/*.{c,h} files
12947
12948 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
12949 (msp430_select_hwmult_lib): Likewise.
12950 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
12951 (msp430_extract_mcu_data): Likewise.
12952 (struct t_msp430_mcu_data): Likewise.
12953 * config/msp430/msp430.c (struct machine_function): Remove whitespace
12954 before left square bracket.
12955 (msp430_option_override): Fix indentation.
12956 (msp430_hard_regno_nregs_with_padding): Likewise.
12957 (msp430_initial_elimination_offset): Likewise.
12958 (msp430_special_register_convention_p): Remove whitespace before left
12959 square bracket and after exclamation mark.
12960 (msp430_evaluate_arg): Likewise.
12961 (msp430_callee_copies): Fix indentation.
12962 (msp430_gimplify_va_arg_expr): Likewise.
12963 (msp430_function_arg_advance): Remove whitespace before left square
12964 bracket.
12965 (reg_ok_for_addr): Likewise.
12966 (msp430_preserve_reg_p): Likewise.
12967 (msp430_compute_frame_info): Likewise.
12968 (msp430_asm_output_addr_const_extra): Add space between function name
12969 and open parenthesis.
12970 (has_section_name): Fix indentation.
12971 (msp430_attr): Remove trailing whitespace.
12972 (msp430_section_attr): Likewise.
12973 (msp430_data_attr): Likewise.
12974 (struct msp430_attribute_table): Fix comment and whitespace.
12975 (msp430_start_function): Remove whitespace before left square bracket.
12976 Add space between function name and open parenthesis.
12977 (msp430_select_section): Remove trailing whitespace.
12978 (msp430_section_type_flags): Remove trailing whitespace.
12979 (msp430_unique_section): Remove space before closing parenthesis.
12980 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
12981 (msp430_builtins): Remove whitespace before left square bracket.
12982 (msp430_init_builtins): Fix indentation.
12983 (msp430_expand_prologue): Remove whitespace before left square bracket.
12984 Remove space before closing parenthesis.
12985 (msp430_expand_epilogue): Remove whitespace before left square bracket.
12986 (msp430_split_movsi): Remove space before closing parenthesis.
12987 (helper_function_name_mappings): Fix indentation.
12988 (msp430_use_f5_series_hwmult): Fix whitespace.
12989 (use_32bit_hwmult): Likewise.
12990 (msp430_no_hwmult): Likewise.
12991 (msp430_output_labelref): Remove whitespace before left square bracket.
12992 (msp430_print_operand_raw): Likewise.
12993 (msp430_print_operand_addr): Likewise.
12994 (msp430_print_operand): Add two spaces after '.' in comment.
12995 Fix trailing whitespace.
12996 (msp430x_extendhisi): Fix indentation.
12997 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
12998 tab.
12999 (PC_REGNUM): Likewise.
13000 (STACK_POINTER_REGNUM): Likewise.
13001 (CC_REGNUM): Likewise.
13002
13003 2019-08-15 Richard Biener <rguenther@suse.de>
13004
13005 PR target/91454
13006 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13007 helper.
13008 (general_scalar_chain::make_vector_copies): Use it.
13009
13010 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13011
13012 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13013
13014 2019-08-15 Martin Liska <mliska@suse.cz>
13015
13016 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13017 operators with no arguments.
13018 (eliminate_unnecessary_stmts): Likewise here.
13019
13020 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13021
13022 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13023 <case COMPARE>: Revert 2019-08-14 change.
13024 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13025 for (TARGET_64BIT || mode != DImode).
13026
13027 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13028
13029 * tree-vrp.c (value_range_base::set): Merge in code from
13030 value_range_base::set_and_canonicalize.
13031 Enforce canonicalization at set time.
13032 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13033 (value_range_base::set_undefined): Inline call to set().
13034 (value_range_base::set_varying): Same.
13035 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13036 (vrp_val_max): New argument handle_pointers.
13037 (vrp_val_min): Same.
13038 (ranges_from_anti_range): Same.
13039 (extract_range_into_wide_ints): Use tree argument instead of sign
13040 and precision.
13041 (extract_range_from_multiplicative_op): Take in tree type instead
13042 of precision and sign. Adapt function for canonicalized ranges.
13043 (extract_range_from_binary_expr): Pass type to
13044 extract_range_from_multiplicative_op.
13045 Adapt for canonicalized ranges.
13046 (extract_range_from_unary_expr): Same.
13047 (value_range_base::intersect_helper): Adjust for canonicalized
13048 ranges.
13049 (value_range_base::union_helper): Same.
13050 (value_range_base::normalize_symbolics): New.
13051 * tree-vrp.h (class value_range_base): Remove
13052 set_and_canonicalize.
13053 New prototype for normalize_symbolics.
13054 (class value_range): Remove set_and_canonicalize.
13055 (vrp_val_min): Adjust prototype.
13056 (vrp_val_max): Same.
13057 * vr-values.c
13058 (vr_values::extract_range_for_var_from_comparison_expr): Call set
13059 instead of set_and_canonicalize.
13060
13061 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13062
13063 PR middle-end/91444
13064 * tree-vect-stmts.c (vectorizable_call): Check that the function
13065 is a BUILT_IN_MD function before passing it to
13066 targetm.vectorize.builtin_md_vectorized_function.
13067
13068 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13069
13070 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
13071 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
13072 (aarch64_select_early_remat_modes): Use it.
13073
13074 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13075
13076 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
13077 16 for SVE predicates even if they are fixed-length.
13078
13079 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13080
13081 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
13082 operand order match the MOV /Z alias.
13083
13084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13085
13086 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
13087 the vector pattern as an aarch64_svpattern argument. Update the
13088 overloaded caller accordingly.
13089 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
13090 (aarch64_output_sve_vector_inc_dec): Likewise.
13091
13092 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
13095 multiplication case, try to compute VG * (lowest set bit) directly
13096 rather than always basing the multiplication on VG. Use
13097 expand_mult for the multiplication if we can.
13098
13099 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13100
13101 * config/aarch64/aarch64-protos.h
13102 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
13103 (aarch64_sve_inc_dec_immediate_p): Rename to...
13104 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13105 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
13106 (aarch64_output_sve_scalar_inc_dec): Declare.
13107 (aarch64_output_sve_inc_dec_immediate): Rename to...
13108 (aarch64_output_sve_vector_inc_dec): ...this.
13109 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
13110 (aarch64_output_sve_scalar_inc_dec): New functions.
13111 (aarch64_output_sve_addvl_addpl): Remove the base and offset
13112 arguments. Only handle true ADDVL and ADDPL instructions;
13113 don't emit an INC or DEC.
13114 (aarch64_sve_inc_dec_immediate_p): Rename to...
13115 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13116 (aarch64_output_sve_inc_dec_immediate): Rename to...
13117 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
13118 aarch64_sve_vector_inc_dec_immediate_p.
13119 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
13120 (aarch64_sve_plus_immediate): New predicates.
13121 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
13122 rather than aarch64_sve_addvl_addpl_immediate.
13123 (aarch64_sve_inc_dec_immediate): Rename to...
13124 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
13125 aarch64_sve_vector_inc_dec_immediate_p.
13126 (aarch64_sve_add_operand): Update accordingly.
13127 * config/aarch64/constraints.md (Uai): New constraint.
13128 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
13129 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
13130 operand into a register if it satisfies aarch64_sve_plus_immediate.
13131 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
13132 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
13133 * config/aarch64/aarch64-sve.md (add<mode>3): Call
13134 aarch64_output_sve_vector_inc_dec instead of
13135 aarch64_output_sve_inc_dec_immediate.
13136
13137 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13138
13139 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
13140 (UNSPEC_REVW): New constants.
13141 (elem_bits): New mode attribute.
13142 (SVE_INT_UNARY): New int iterator.
13143 (optab): Handle UNSPEC_REV[BHW].
13144 (sve_int_op): New int attribute.
13145 (min_elem_bits): Handle VNx16QI and the predicate modes.
13146 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
13147 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
13148 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
13149 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
13150 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
13151 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
13152 unspecs based on the total width of the reversed data.
13153 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
13154 reinterpret followed by a subreg on big-endian targets.
13155
13156 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13157 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13158
13159 * config/aarch64/aarch64-sve.md
13160 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
13161 alternatives in which one of the inputs is in the same register
13162 as the output.
13163
13164 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13165
13166 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
13167 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
13168
13169 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13170
13171 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
13172 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
13173
13174 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13176
13177 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
13178 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
13179 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
13180
13181 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13182 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13183
13184 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
13185 Add an alternative that uses reversed shifts.
13186
13187 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13188
13189 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13190 struct.
13191
13192 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13193
13194 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13195 a commutativity marker.
13196
13197 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13198 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13199
13200 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13201 (aarch64_prepare_sve_cond_int_fma): Declare.
13202 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13203 (aarch64_prepare_sve_int_fma): New functions.
13204 (aarch64_prepare_sve_cond_int_fma): Likewise.
13205 * config/aarch64/aarch64-sve.md
13206 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13207 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13208 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13209 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13210 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13211 (*madd<mode>): Rename to...
13212 (*fma<mode>4): ...this.
13213 (*msub<mode>): Rename to...
13214 (*fnma<mode>4): ...this.
13215
13216 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13217 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13218
13219 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13220 Print 2.0 naturally.
13221 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13222 * config/aarch64/predicates.md
13223 (aarch64_sve_float_negated_arith_immediate): New predicate,
13224 renamed from aarch64_sve_float_arith_with_sub_immediate.
13225 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13226 positive and negative constants.
13227 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13228 or an aarch64_sve_float_arith_with_sub_immediate.
13229 * config/aarch64/constraints.md (vsN): Use
13230 aarch64_sve_float_negated_arith_immediate.
13231 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13232 iterator.
13233 (sve_pred_fp_rhs2_immediate): New int attribute.
13234 * config/aarch64/aarch64-sve.md
13235 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13236 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13237 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13238 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13239 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13240 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13241
13242 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13243 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13244
13245 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13246 (*aarch64_cond_abd<SVE_F:mode>_3)
13247 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13248
13249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13250 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13251
13252 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13253 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13254
13255 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13256 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13257
13258 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13259 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13260 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13261 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13262 optabs.
13263 * optabs.h (create_convert_operand_from): Expand comment.
13264 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13265 when mapping scalar rtxes to vector operands.
13266 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13267 ashiftrt and lshiftrt.
13268 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13269 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13270 (*cond_<optab><mode>_any_const): New patterns.
13271
13272 2019-08-15 Martin Liska <mliska@suse.cz>
13273
13274 PR ipa/91438
13275 * cgraph.c (cgraph_node::remove): When setting
13276 n->origin = NULL for all nested functions, reset
13277 also next_nested.
13278
13279 2019-08-15 Martin Liska <mliska@suse.cz>
13280
13281 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13282 and next_nested.
13283
13284 2019-08-15 Martin Liska <mliska@suse.cz>
13285
13286 PR ipa/91404
13287 * passes.c (order): Remove.
13288 (uid_hash_t): Likewise).
13289 (remove_cgraph_node_from_order): Remove from set
13290 of pointers (cgraph_node *).
13291 (insert_cgraph_node_to_order): New.
13292 (duplicate_cgraph_node_to_order): New.
13293 (do_per_function_toporder): Register all 3 cgraph hooks.
13294 Skip removed_nodes now as we know about all of them.
13295
13296 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13297
13298 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13299 <case E_V8QImode>: Use vector_set path for
13300 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13301 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13302 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13303
13304 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13305
13306 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13307
13308 2019-08-14 Martin Sebor <msebor@redhat.com>
13309
13310 PR tree-optimization/91294
13311 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13312 source length as exact.
13313
13314 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13315
13316 * doc/extend.texi: Add "noinit" attribute documentation.
13317 * doc/sourcebuild.texi: Add noinit effective target documentation.
13318 * varasm.c (default_section_type_flags): Add support for "noinit"
13319 section.
13320 (default_elf_select_section): Add support for "noinit" attribute.
13321 * config/msp430/msp430.c (msp430_attribute_table): Remove
13322 "noinit" entry.
13323
13324 2019-08-14 Richard Biener <rguenther@suse.de>
13325 Uroš Bizjak <ubizjak@gmail.com>
13326
13327 PR target/91154
13328 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13329 mode arguments.
13330 (scalar_chain::smode): New member.
13331 (scalar_chain::vmode): Likewise.
13332 (dimode_scalar_chain): Rename to...
13333 (general_scalar_chain): ... this.
13334 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13335 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13336 base with TImode and V1TImode.
13337 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13338 (general_scalar_chain::vector_const_cost): Adjust for SImode
13339 chains.
13340 (general_scalar_chain::compute_convert_gain): Likewise. Add
13341 {S,U}{MIN,MAX} support.
13342 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13343 (general_scalar_chain::make_vector_copies): Likewise. Handle
13344 non-DImode chains appropriately.
13345 (general_scalar_chain::convert_reg): Likewise.
13346 (general_scalar_chain::convert_op): Likewise.
13347 (general_scalar_chain::convert_insn): Likewise. Add
13348 fatal_insn_not_found if the result is not recognized.
13349 (convertible_comparison_p): Pass in the scalar mode and use that.
13350 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13351 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13352 (scalar_to_vector_candidate_p): Remove by inlining into single
13353 caller.
13354 (general_remove_non_convertible_regs): Rename from
13355 dimode_remove_non_convertible_regs.
13356 (remove_non_convertible_regs): Remove by inlining into single caller.
13357 (convert_scalars_to_vector): Handle SImode and DImode chains
13358 in addition to TImode chains.
13359 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13360 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13361 (*<maxmin>di3_doubleword): Likewise.
13362
13363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13364 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13365
13366 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13367 (*cond_bic<mode>_any): New patterns.
13368
13369 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13370
13371 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13372 take the equivalent mask, as well as a bit count.
13373 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13374 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13375 (aarch64_sve_pred_and_operand): New predicates.
13376 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13377 code attribute.
13378 * config/aarch64/aarch64-sve.md
13379 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13380 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13381
13382 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13383
13384 * config/aarch64/aarch64-sve.md
13385 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13386 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13387 New patterns.
13388
13389 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13390 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13391
13392 * config/aarch64/aarch64-sve.md
13393 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13394 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13395
13396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13398
13399 * config/aarch64/aarch64-sve.md
13400 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13401 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13402
13403 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13404
13405 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13406 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13407 New pattern.
13408
13409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13410 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13411
13412 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13413
13414 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13415 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13416
13417 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13418 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13419 (aarch64_print_operand): Add support for %I.
13420 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13421 Bitcast floating-point constants to the corresponding integer constant.
13422 (aarch64_float_const_representable_p): Handle vectors as well
13423 as scalars.
13424 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13425 for the new vcond_mask_<mode><vpred> expander.
13426 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13427 test aarch64_float_const_representable_p.
13428 (aarch64_sve_reg_or_dup_imm): New predicate.
13429 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13430 gen_vcond_mask_<mode><vpred> instead of
13431 gen_aarch64_sve_dup<mode>_const.
13432 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13433 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13434 for operands 1 and 2 respectively. Force operand 2 into a
13435 register if operand 1 is a register. Fold old define_insn...
13436 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13437 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13438 floating-point constants that can be moved as integers. Add
13439 alternatives for MOV /M and FMOV /M.
13440 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13441 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13442 1 and 2 respectively.
13443 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13444 as scalars.
13445 (vss): New constraint.
13446
13447 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13448
13449 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13450 (aarch64_sve_float_maxmin_operand): New predicates.
13451 * config/aarch64/constraints.md (vsB): New constraint.
13452 (vsM): Fix typo.
13453 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13454 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13455 UNSPEC_COND_FMINNM.
13456 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13457 Use aarch64_sve_float_maxmin_operand for operand 2.
13458 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13459 Add alternatives for the constant forms.
13460
13461 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13462
13463 * config/aarch64/constraints.md (vsb): New constraint.
13464 (vsm): Generalize description.
13465 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13466 iterator.
13467 (sve_imm_con): Handle smax, smin, umax and umin.
13468 (sve_imm_prefix): New code attribute.
13469 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13470 (aarch64_sve_vsb_operand): New predicates.
13471 (aarch64_sve_mul_immediate): Rename to...
13472 (aarch64_sve_vsm_immediate): ...this.
13473 (aarch64_sve_mul_operand): Rename to...
13474 (aarch64_sve_vsm_operand): ...this.
13475 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13476 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13477 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13478 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13479 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13480 add movprfx support for the immediate alternatives.
13481 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13482 of the above.
13483 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13484 for operand 3.
13485
13486 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13487
13488 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13489 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13490 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13491
13492 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13493
13494 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13495 (optab, sve_int_op): Handle them.
13496 * config/aarch64/aarch64-sve.md: Expand comment.
13497
13498 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13499
13500 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13501 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13502 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13503
13504 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13505
13506 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13507 (aarch64_expand_sve_const_pred_trn): New functions.
13508 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13509 use the above functions when the parameter is true.
13510 (aarch64_expand_sve_const_pred): Update call accordingly.
13511 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13512 Rename to...
13513 (@aarch64_sve_<perm_insn><mode>): ...this.
13514
13515 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13516
13517 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13518 Declare.
13519 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13520 (aarch64_sve_emit_int_cmp): New functions.
13521 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13522 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13523 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13524 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13525 (UNSPEC_PRED_Z): New unspec.
13526 (set_clobber_cc_nzc): Delete.
13527 * config/aarch64/aarch64-sve.md: Add a block comment about
13528 UNSPEC_PRED_Z.
13529 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13530 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13531 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13532 UNSPEC_MERGE_PTRUE.
13533 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13534 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13535 check for compatible predicates.
13536 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13537 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13538 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13539 comparisons above.
13540
13541 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13542
13543 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13544 * config/aarch64/aarch64-sve.md: Add a section describing it.
13545 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13546 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13547 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13548 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13549 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13550 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13551 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13552 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13553 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13554 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13555 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13556 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13557 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13558 (aarch64_evpc_rev_local): Update accordingly.
13559
13560 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13561
13562 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13563 iterators.
13564 (SVE_BHSI, SVE_SDI): Tweak comment.
13565 (SVE_HSDI): Likewise. Fix definition.
13566 (SVE_SDF): New mode iterator.
13567 (elem_bits): New mode attribute.
13568 (SVE_COND_FCVT): New int iterator.
13569 * config/aarch64/aarch64-sve.md
13570 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13571 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13572 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13573 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13574 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13575 ...these new patterns.
13576 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13577 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13578 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13579 Merge into...
13580 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13581 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13582 ...these new patterns.
13583 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13584 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13585 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13586 ...this new pattern.
13587 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13588 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13589 ...this new pattern.
13590 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13591
13592 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13593
13594 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13595 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13596 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13597 unspecs.
13598 (optab, su): Handle them.
13599 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13600 * config/aarch64/aarch64-sve.md
13601 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13602 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13603 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13604 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13605 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13606 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13607 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13608 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13609 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13610 FIXUORS.
13611 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13612 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13613 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13614 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13615 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13616 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13617 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13618 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13619 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13620 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13621 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13622 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13623 of UNSPEC_FLOAT_CONVERT.
13624 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13625 aarch64_sve_extend<mode><Vwide>2.
13626
13627 2019-08-14 Richard Biener <rguenther@suse.de>
13628
13629 PR target/91154
13630 * config/i386/i386-features.c
13631 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13632 individual instruction gain. Fix reg-reg copy GRP cost. Use
13633 ix86_cost->sse_op for vector instruction costs.
13634
13635 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13636
13637 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13638 (cmp_op): Handle it.
13639 (SVE_COND_FP_CMP): Rename to...
13640 (SVE_COND_FP_CMP_I0): ...this.
13641 (SVE_FP_CMP): Remove.
13642 * config/aarch64/aarch64-sve.md
13643 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13644 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13645 using unspecs to represent the comparison.
13646 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13647 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13648 accordingly.
13649 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13650 (aarch64_unspec_cond_code): Move after integer code. Handle
13651 UNORDERED.
13652 (aarch64_emit_sve_predicated_cond): Replace with...
13653 (aarch64_emit_sve_fp_cond): ...this new function.
13654 (aarch64_emit_sve_or_conds): Replace with...
13655 (aarch64_emit_sve_or_fp_conds): ...this new function.
13656 (aarch64_emit_sve_inverted_cond): Replace with...
13657 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13658 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13659
13660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13661
13662 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13663 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13664 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13665 SVE_HSD instead of SVE_SD.
13666
13667 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13668 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13669
13670 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13671 iterator.
13672 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13673 attributes.
13674 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13675 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13676 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13677 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13678 (*div<SVE_F:mode>3): Generalize to...
13679 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13680
13681 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13682 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13683
13684 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13685 constants.
13686 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13687 predicate.
13688 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13689 Declare.
13690 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13691 function.
13692 * config/aarch64/aarch64-sve.md: Add a block comment about the
13693 handling of predicated FP operations.
13694 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13695 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13696 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13697 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13698 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13699 operand.
13700 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13701 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13702 operand.
13703 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13704 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13705 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13706 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13707 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13708 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13709 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13710 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13711 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13712 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13713 strictness operands. Use aarch64_sve_pred_dominates_p to check
13714 whether the predicate on the conditional operation is suitable
13715 for merging. Split patterns into the canonical equal-predicate form.
13716 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13717 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13718
13719 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13720 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13721
13722 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13723 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13724 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13725 rtx codes.
13726 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13727 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13728 unspecs.
13729
13730 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13731 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13732
13733 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13734 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13735 actually has, rather than relying on REG_EQUAL notes.
13736 Make the insn operand order match the SVE operand order.
13737 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13738 the SVE operand order.
13739
13740 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13741
13742 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13743 (aarch64_emit_set_immediate): Likewise.
13744 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13745 (aarch64_pfalse_reg): Likewise.
13746 (aarch64_convert_sve_data_to_pred): New function.
13747 (aarch64_sve_move_pred_via_while): Take an optional target register
13748 and the required register mode.
13749 (aarch64_expand_sve_const_pred_1): New function.
13750 (aarch64_expand_sve_const_pred): Likewise.
13751 (aarch64_expand_mov_immediate): Build an all-true predicate
13752 if the significant bits of the immediate are all true. Use
13753 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13754 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13755 before register allocation.
13756 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13757 a VNx16BI PTRUE when splitting the memory alternative.
13758 (vec_duplicate<mode>): Update accordingly.
13759 (*pred_cmp<cmp_op><mode>): Rename to...
13760 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13761
13762 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13763
13764 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13765 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13766 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13767 (UNSPEC_PTEST): New unspec.
13768 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13769 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13770 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13771 * config/aarch64/aarch64-sve.md: Add a new section describing the
13772 handling of UNSPEC_PTEST.
13773 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13774 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13775 (ptest_ptrue<mode>): Replace with...
13776 (aarch64_ptest<mode>): ...this new pattern.
13777 (cbranch<mode>4): Update after above changes.
13778 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13779 UNSPEC_PTEST_PTRUE.
13780 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13781 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13782 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13783
13784 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13785
13786 PR lto/91287
13787 * builtins.c (builtin_with_linkage_p): New function.
13788 * builtins.h (builtin_with_linkage_p): New function.
13789 * symtab.c (write_symbol): Remove redundant assert.
13790 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13791 Remove FIXME and use builtin_with_linkage_p.
13792
13793 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13794
13795 PR middle-end/91421
13796 * tree-core.h (function_decl::function_code): Change type to
13797 unsigned int.
13798 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13799 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13800 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13801 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13802 is BUILT_IN_NORMAL.
13803 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13804 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13805 (fndecl_built_in_p): Change the type of the "name" argument to
13806 unsigned int.
13807 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13808 after check for DECL_BUILT_IN_CLASS.
13809 * cgraphclones.c (build_function_decl_skip_args): Use
13810 set_decl_built_in_function.
13811 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13812 * ipa-split.c (split_function): Likewise.
13813 * langhooks.c (add_builtin_function_common): Likewise.
13814 * omp-simd-clone.c (simd_clone_create): Likewise.
13815 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13816 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
13817 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
13818 DECL_FUNCTION_CODE.
13819 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
13820 instead of DECL_FUNCTION_CODE.
13821 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
13822 instead of DECL_FUNCTION_CODE.
13823 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
13824 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
13825 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
13826 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
13827 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
13828 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
13829 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
13830 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
13831 (alpha_gimple_fold_builtin): Likewise.
13832 * config/arc/arc.c (arc_expand_builtin): Likewise.
13833 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
13834 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
13835 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
13836 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
13837 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
13838 * config/frv/frv.c (frv_expand_builtin): Likewise.
13839 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
13840 (gcn_expand_builtin): Likewise.
13841 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
13842 (fold_builtin_cpu): Likewise.
13843 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
13844 * config/i386/i386.c (ix86_fold_builtin): Likewise.
13845 (ix86_gimple_fold_builtin): Likewise.
13846 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
13847 (ia64_expand_builtin): Likewise.
13848 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
13849 * config/mips/mips.c (mips_expand_builtin): Likewise.
13850 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
13851 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13852 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
13853 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
13854 * config/pa/pa.c (pa_expand_builtin): Likewise.
13855 * config/pru/pru.c (pru_expand_builtin): Likewise.
13856 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
13857 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13858 Likewise.
13859 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
13860 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
13861 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
13862 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
13863 (rs6000_builtin_reciprocal): Likewise.
13864 * config/rx/rx.c (rx_expand_builtin): Likewise.
13865 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13866 * config/s390/s390.c (s390_expand_builtin): Likewise.
13867 * config/sh/sh.c (sh_expand_builtin): Likewise.
13868 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
13869 (sparc_fold_builtin): Likewise.
13870 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13871 * config/spu/spu.c (spu_expand_builtin): Likewise.
13872 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
13873 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
13874 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
13875 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13876 (xtensa_expand_builtin): Likewise.
13877
13878 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13879
13880 PR middle-end/91421
13881 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
13882 before the DECL_FUNCTION_CODE.
13883 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
13884 to check for a BUILT_IN_ALLOCA call.
13885 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
13886 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
13887 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
13888 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13889 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
13890 for BUILT_IN_NORMAL functions.
13891 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
13892 test for BUILT_IN_TM_ABORT.
13893 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
13894 to check for a BUILT_IN_STACK_RESTORE call.
13895 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
13896 * tree-ssa-threadedge.c
13897 (record_temporary_equivalences_from_stmts_at_dest): Check for a
13898 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
13899 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
13900 test for a BUILT_IN_NORMAL call instead of a negative test for
13901 an internal function call.
13902
13903 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13904
13905 * tree.h (build_vector_a_then_b): Declare.
13906 * tree.c (build_vector_a_then_b): New function.
13907 * fold-const-call.c (fold_while_ult): Likewise.
13908 (fold_const_call): Use it to handle IFN_WHILE_ULT.
13909 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
13910 (aarch64_svpattern): New enum.
13911 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
13912 constants through aarch64_expand_mov_immediate.
13913 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
13914 than general_operand as the predicate for operand 1.
13915 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
13916 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
13917 insn_type.
13918 (simd_immediate_info::simd_immediate_info): New overload that
13919 takes a scalar_int_mode and an svpattern.
13920 (simd_immediate_info::u): Add a "pattern" field.
13921 (svpattern_token): New function.
13922 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
13923 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
13924 (aarch64_sve_move_pred_via_while): New functions.
13925 (aarch64_expand_mov_immediate): Try using
13926 aarch64_sve_move_pred_via_while for predicates that contain N ones
13927 followed by M zeros but that do not correspond to a VLnnn pattern.
13928 (aarch64_sve_pred_valid_immediate): New function.
13929 (aarch64_simd_valid_immediate): Use it instead of dealing directly
13930 with PTRUE and PFALSE.
13931 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
13932 forms.
13933
13934 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
13935
13936 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
13937 flag.
13938 (darwin_override_options): Likewise.
13939 * config/darwin.h: Likewise.
13940 * config/darwin.opt: Likewise.
13941 * config/i386/i386.c (output_pic_addr_const): Likewise.
13942 * config/rs6000/darwin.h: Likewise.
13943 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
13944 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
13945 ... this TARGET_MACHO_SYMBOL_STUBS.
13946 (FUNCTION_PROFILER):Likewise.
13947 * config/i386/i386.h: Likewise.
13948
13949 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
13950
13951 * config/i386/i386-expand.c (ix86_expand_vector_extract)
13952 <case E_V2SImode>: Use vec_extr path for
13953 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13954 <case E_V8QImode>: Ditto.
13955 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
13956 Use SWI48 mode iterator. Use %k to output operand 0.
13957 (*mmx_pextrw): New insn pattern.
13958 (*mmx_pextrb): Ditto.
13959 (*mmx_pextrb_zext): Ditto.
13960
13961 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
13962
13963 * target.def (libc_has_function, libc_has_fast_function): Improve
13964 documentation strings.
13965 * doc/tm.texi: Regenerate.
13966
13967 2019-08-13 Caroline Tice <cmtice@google.com>
13968
13969 PR other/91396
13970 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
13971 vtv_end.o or vtv_end_preinit.o files if !static.
13972
13973 2019-08-13 Olivier Hainque <hainque@adacore.com>
13974
13975 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
13976
13977 2019-08-13 Olivier Hainque <hainque@adacore.com>
13978
13979 * rtlanal.c (tablejump_casesi_pattern): New function, to
13980 determine if a tablejump insn is a casesi dispatcher. Extracted
13981 from patch_jump_insn.
13982 * rtl.h (tablejump_casesi_pattern): Declare.
13983 * cfgrtl.c (patch_jump_insn): Use it.
13984 * dwarf2cfi.c (create_trace_edges): Use it.
13985
13986 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
13987
13988 PR target/81800
13989 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
13990 operand is larger than a long int.
13991
13992 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13993
13994 * machmode.h (opt_mode::else_mode): New function.
13995 (opt_mode::else_blk): Use it.
13996 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
13997 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
13998 (aarch64_gen_stepped_int_parallel): Likewise.
13999 (aarch64_stepped_int_parallel_p): Likewise.
14000 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14001 argument.
14002 * config/aarch64/aarch64.c
14003 (aarch64_expand_sve_widened_duplicate): Delete.
14004 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14005 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14006 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14007 argument. Use early returns in the !CONST_INT_P handling.
14008 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14009 than handling some inline.
14010 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14011 from...
14012 (aarch64_simd_container_mode): ...here.
14013 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14014 (aarch64_sve_ld1rq_operand_p): New functions.
14015 * config/aarch64/predicates.md (descending_int_parallel)
14016 (aarch64_sve_ld1rq_operand): New predicates.
14017 * config/aarch64/constraints.md (UtQ): New constraint.
14018 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14019 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14020 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14021 (@aarch64_sve_reinterpret<mode>): New expander.
14022 (*aarch64_sve_reinterpret<mode>): New pattern.
14023 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14024 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14025 (*sve_ld1rq<Vesize>): Replace with...
14026 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14027
14028 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14029
14030 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14031 16:12.
14032
14033 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14034
14035 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14036 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14037 (msp430_check_path_for_devices): New.
14038 (parse_devices_csv_1): New.
14039 (parse_devices_csv): New.
14040 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14041 MCU data in devices.csv before using the hard-coded data.
14042 Warn if devices.csv isn't found and the MCU wasn't found in the
14043 hard-coded data either.
14044 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14045 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
14046 Search for devices.csv on -I and -L paths.
14047 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
14048 msp430_set_driver_var.
14049 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
14050 -mdevices-csv-loc=.
14051 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
14052 searched for devices.csv.
14053 (mwarn-devices-csv): Document option.
14054
14055 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14056
14057 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
14058 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
14059 Use a single Dn alternative instead of separate Dz and Dm
14060 alternatives. Use aarch64_output_sve_move_immediate.
14061 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
14062 function.
14063 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
14064 for predicates too.
14065 (aarch64_output_sve_mov_immediate): Handle predicate modes.
14066 (aarch64_output_ptrue): Delete.
14067
14068 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14069
14070 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
14071 INDEX.
14072 (simd_immediate_info::value, simd_immediate_info::step)
14073 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
14074 with...
14075 (simd_immediate_info::u): ...this new union.
14076 (simd_immediate_info::simd_immediate_info): Update accordingly.
14077 (aarch64_output_simd_mov_immediate): Likewise.
14078 (aarch64_output_sve_mov_immediate): Likewise.
14079
14080 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14081
14082 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
14083 extra_gcc_objs.
14084 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
14085 (msp430_select_cpu): New spec function.
14086 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
14087 MCU data.
14088 * config/msp430/msp430-devices.c: New file.
14089 * config/msp430/msp430-devices.h: New file.
14090 * config/msp430/msp430.c: Remove msp430_mcu_data.
14091 (msp430_option_override): Use msp430_extract_mcu_data to extract
14092 MCU data.
14093 (msp430_use_f5_series_hwmult): Likewise.
14094 (use_32bit_hwmult): Likewise.
14095 (msp430_no_hwmult): Likewise.
14096 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
14097 assembler.
14098 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
14099 and -mcpu option.
14100 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
14101 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
14102 Remove hard-coded MCU multilib data.
14103
14104 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14105
14106 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
14107 based on the mode instead of testing properties of it.
14108
14109 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14110
14111 * doc/md.texi: Document the x and y constraints for AArch64.
14112 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
14113 (FP_LO8_REGS): New reg_class.
14114 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
14115 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
14116 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
14117 * config/aarch64/predicates.md (aarch64_simd_register): Use
14118 FP_REGNUM_P instead of checking the classes manually.
14119 * config/aarch64/constraints.md (y): New constraint.
14120
14121 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14122
14123 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
14124 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
14125 * config/aarch64/aarch64-simd.md
14126 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
14127 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
14128 from the asm template.
14129 * config/aarch64/aarch64-sve.md
14130 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
14131 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
14132 from the asm template.
14133 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
14134 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
14135 from the asm template.
14136 * config/aarch64/aarch64-simd-builtins.def: Update comment.
14137
14138 2019-08-13 Martin Liska <mliska@suse.cz>
14139
14140 * value-prof.c (gimple_ic_transform): Add new line.
14141 Print details with MSG_NOTE.
14142
14143 2019-08-13 Martin Liska <mliska@suse.cz>
14144
14145 * doc/invoke.texi: Document automatic detection of jobserver.
14146 * lto-wrapper.c (run_gcc): Detect jobserver always.
14147
14148 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14149
14150 * config/i386/i386-expand.c (ix86_expand_vector_set)
14151 <case E_V2SImode>: Use vec_merge path for
14152 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14153 <case E_V8QImode>: Ditto.
14154 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
14155 (*mmx_pinsrb): Ditto.
14156
14157 2019-08-12 Jakub Jelinek <jakub@redhat.com>
14158
14159 PR target/83250
14160 PR target/91340
14161 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
14162 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
14163 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
14164 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
14165 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
14166
14167 2019-08-12 Richard Biener <rguenther@suse.de>
14168
14169 PR lto/91375
14170 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
14171 flag_devirtualize.
14172
14173 2019-08-12 Richard Biener <rguenther@suse.de>
14174
14175 PR driver/91130
14176 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
14177 lang_mask option, always use CL_DRIVER.
14178 (get_options_from_collect_gcc_options): Adjust.
14179 (find_and_merge_options): Likewise.
14180 (run_gcc): Likewise.
14181
14182 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14183
14184 * ipa-predicate.c (add_condition): Restore inverted test.
14185
14186 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14187
14188 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14189 (enum omp_clause_device_type_kind): New enum.
14190 (struct tree_omp_clause): Add subcode.device_type_kind.
14191 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14192 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14193 for device_type clause.
14194 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14195 * tree-pretty-print.c (dump_omp_clause): Likewise.
14196
14197 PR target/91408
14198 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14199 vector_operand.
14200
14201 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14202
14203 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14204 handling spilled pseudos.
14205
14206 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14207
14208 PR target/91386
14209 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14210 to preserve the contents of the original insns.
14211
14212 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14213
14214 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14215 (addsi3_compare_op2): Likewise.
14216
14217 2019-08-09 Martin Liska <mliska@suse.cz>
14218
14219 * alias.c (alias_ptr_types_compatible_p): Strengten
14220 type comparison in LTO mode.
14221
14222 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14223
14224 PR middle-end/90313
14225 * tree-tailcall.c (find_tail_calls): Reject calls that might
14226 read from an escaped RESULT_DECL.
14227
14228 2019-08-09 Martin Liska <mliska@suse.cz>
14229
14230 * doc/invoke.texi: Document the option value.
14231 * lto-wrapper.c (run_gcc): Set auto_parallel
14232 only with -flto=auto.
14233
14234 2019-08-09 Martin Liska <mliska@suse.cz>
14235
14236 * opts.c (common_handle_option): Error for an invalid argument
14237 to -flto=.
14238
14239 2019-08-09 Martin Liska <mliska@suse.cz>
14240
14241 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14242 use dump_printf to report optimization.
14243 (sem_variable::merge): Likwise.
14244 (sem_item_optimizer::merge_classes): Use dump_printf to report
14245 ICF hits.
14246
14247 2019-08-09 Martin Liska <mliska@suse.cz>
14248
14249 * value-prof.c (gimple_divmod_fixed_value_transform):
14250 Use dump_printf_loc.
14251 (gimple_mod_pow2_value_transform): Likewise.
14252 (gimple_mod_subtract_transform): Likewise.
14253 (init_node_map): Likewise.
14254 (gimple_ic_transform): Likewise.
14255 (gimple_stringops_transform): Likewise.
14256
14257 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14258
14259 * doc/extend.texi: Add const qualifier to ld intrinsics.
14260
14261 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14262
14263 * config/rs6000/dfp.md (D64_D128): Rename to ...
14264 (DDTD): ... this, throughout.
14265 (dfp_suffix): Rename to ...
14266 (q): ... this, throughout.
14267
14268 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14269
14270 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14271 (dfp_suffix): Ditto.
14272 (adddd3, addtd3): Merge to ...
14273 (add<mode>3 for D64_D128): ... this.
14274 (subdd3, subtd3): Merge to ...
14275 (sub<mode>3 for D64_D128): ... this.
14276 (muldd3, multd3): Merge to ...
14277 (mul<mode>3 for D64_D128): ... this.
14278 (divdd3, divtd3): Merge to ...
14279 (div<mode>3 for D64_D128): ... this.
14280 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14281 (*cmp<mode>_internal1 for D64_D128): ... this.
14282 (ftruncdd2, ftrunctd2): Merge to ...
14283 (ftrunc<mode>2 for D64_D128): ... this.
14284 (fixdddi2, fixtddi2): Merge to ...
14285 (fix<mode>di2 for D64_D128): ... this.
14286
14287 2019-08-08 Jim Wilson <jimw@sifive.com>
14288
14289 PR target/91229
14290 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14291 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14292 Pass into recursive call.
14293 (riscv_flatten_aggregate_argument): New arg. Pass to
14294 riscv_flatten_aggregate_field.
14295 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14296 riscv_flatten_aggregate_argument twice, with false and true as last
14297 arg. Process result twice. Compare results and warn if different.
14298 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14299
14300 2019-08-08 Martin Liska <mliska@suse.cz>
14301
14302 PR bootstrap/91352
14303 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14304 * lto-wrapper.c (jobserver_active_p): Likewise.
14305
14306 2019-08-08 Martin Liska <mliska@suse.cz>
14307
14308 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14309 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14310 (create_version_clone_with_body): Likewise.
14311
14312 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14313
14314 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14315 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14316 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14317 GOVD_EXPLICIT flags.
14318 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14319 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14320 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14321 call install_var_field with mask 11 instead of 3.
14322 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14323 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14324
14325 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14326
14327 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14328 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14329
14330 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14331
14332 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14333 MOVPRFX alternatives. Make the GPR alternatives more expensive
14334 than the FPR ones.
14335
14336 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14337
14338 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14339 Disparage the GPR alternative relative to the FPR one.
14340 Fix handling of 8-bit and 16-bit FPR values.
14341
14342 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14343
14344 * config/aarch64/iterators.md (BITWISEV): Delete.
14345 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14346 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14347 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14348 UNSPEC_FMINNMV, UNSPEC_FMINV.
14349 (bit_reduc_op): Delete.
14350 (sve_int_op): New int attribute.
14351 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14352 UNSPEC_FMINNMV, UNSPEC_FMINV.
14353 * config/aarch64/aarch64-sve.md
14354 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14355 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14356 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14357 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14358 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14359 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14360 new patterns.
14361 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14362 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14363 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14364 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14365 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14366 new patterns.
14367
14368 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14369
14370 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14371 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14372 (fms<mode>4, *fms<mode>4): Replace with...
14373 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14374 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14375 Use unspecs instead of rtx codes.
14376 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14377 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14378
14379 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14380
14381 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14382 int iterator.
14383 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14384 * config/aarch64/aarch64-sve.md
14385 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14386 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14387 use a single unspec for the rhs.
14388 (*<su><maxmin><mode>3): Delete.
14389 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14390
14391 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14392
14393 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14394 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14395 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14396 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14397 (optab, sve_fp_op): Handle them.
14398 (SVE_FP_UNARY): Delete.
14399 (optab): Remove sqrt entry.
14400 (sve_fp_op): Remove neg, abs and sqrt entries.
14401 (SVE_COND_FP_UNARY): New int iterator.
14402 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14403 (*<frint_pattern><mode>2): Delete.
14404 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14405 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14406 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14407 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14408
14409 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14410
14411 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14412
14413 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14414
14415 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14416 (UNSPEC_COND_FADD): ...this.
14417 (UNSPEC_COND_SUB): Rename to...
14418 (UNSPEC_COND_FSUB): ...this.
14419 (UNSPEC_COND_MUL): Rename to...
14420 (UNSPEC_COND_FMUL): ...this.
14421 (UNSPEC_COND_DIV): Rename to...
14422 (UNSPEC_COND_FDIV): ...this.
14423 (UNSPEC_COND_MAX): Rename to...
14424 (UNSPEC_COND_FMAXNM): ...this.
14425 (UNSPEC_COND_MIN): Rename to...
14426 (UNSPEC_COND_FMINNM): ...this.
14427 (UNSPEC_COND_LT): Rename to...
14428 (UNSPEC_COND_FCMLT): ...this.
14429 (UNSPEC_COND_LE): Rename to...
14430 (UNSPEC_COND_FCMLE): ...this.
14431 (UNSPEC_COND_EQ): Rename to...
14432 (UNSPEC_COND_FCMEQ): ...this.
14433 (UNSPEC_COND_NE): Rename to...
14434 (UNSPEC_COND_FCMNE): ...this.
14435 (UNSPEC_COND_GE): Rename to...
14436 (UNSPEC_COND_FCMGE): ...this.
14437 (UNSPEC_COND_GT): Rename to...
14438 (UNSPEC_COND_FCMGT): ...this.
14439 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14440 (sve_fp_op_rev): Update accordingly.
14441 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14442
14443 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14444
14445 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14446 banner comments.
14447 * config/aarch64/check-sve-md.awk: New file.
14448 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14449 (insn-conditions.md): Depend on it.
14450
14451 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14452
14453 PR target/91385
14454 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14455 (*negsi2_cmpz_zext): Ditto.
14456
14457 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14458
14459 * config/aarch64/iterators.md (commutative): Remove.
14460
14461 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14462
14463 PR driver/91130
14464 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14465 processing COLLECT_GCC_OPTIONS.
14466 (run_gcc): Likewise.
14467
14468 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14469
14470 PR tree-optimization/91109
14471 * lra-remat.c (update_scratch_ops): Remove assignment of the
14472 hard register.
14473
14474 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14475
14476 * data-streamer.h (streamer_write_poly_uint64): Declare.
14477 (streamer_read_poly_uint64): Likewise.
14478 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14479 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14480 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14481 (add_condition): Take a poly_int64 size.
14482 * ipa-predicate.c (add_condition): Likewise.
14483 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14484 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14485 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14486 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14487 condition::size as a poly_int64.
14488 (unmodified_parm_1): Take a poly_int64 size pointer.
14489 (unmodified_parm): Likewise.
14490 (unmodified_parm_or_parm_agg_item): Likewise.
14491 (set_cond_stmt_execution_predicate): Update accordingly.
14492 (set_switch_stmt_execution_predicate): Likewise.
14493 (will_be_nonconstant_expr_predicate): Likewise.
14494 (will_be_nonconstant_predicate): Likewise.
14495 (inline_read_section): Stream condition::size as a poly_int.
14496 (ipa_fn_summary_write): Likewise.
14497
14498 2019-08-07 Martin Liska <mliska@suse.cz>
14499
14500 * fold-const.c (twoval_comparison_p): Replace int
14501 with bool as a return type.
14502 (simple_operand_p): Likewise.
14503 (operand_equal_p): Replace int with bool as a return type.
14504 * fold-const.h (operand_equal_p): Likewise.
14505
14506 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14507
14508 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14509 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14510 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14511 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14512 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14513 * tree-pretty-print.c (dump_omp_clause): Likewise.
14514 * tree-nested.c (convert_nonlocal_omp_clauses,
14515 convert_local_omp_clauses): Likewise.
14516 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14517 Likewise.
14518 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14519 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14520 clause with array or reference to array types, no matter what type
14521 except for reference it has.
14522
14523 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14524
14525 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14526
14527 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14528
14529 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14530 (arch_canonicalize): Support rv32g and rv64g and fix error
14531 handling.
14532
14533 2019-08-06 Martin Liska <mliska@suse.cz>
14534
14535 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14536 and DECL_IS_OPERATOR_DELETE_P.
14537
14538 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14539
14540 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14541 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14542 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14543 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14544 (gimplify_omp_for): Don't do C++ random access iterator clause
14545 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14546 don't predetermine the artificial iterator in case of C++ random
14547 access iterators as lastprivate, but private. For OMP_LOOP, force
14548 bind expr around simd body and force for_pre_body before the
14549 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14550 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14551 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14552 diff var of C++ random access iterators. Handle
14553 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14554 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14555 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14556 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14557 * omp-low.c (lower_rec_input_clauses): For
14558 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14559 variables instead of default constructing them.
14560 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14561 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14562 is_taskloop_ctx check from the assert to the guarding condition.
14563
14564 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14565
14566 * config/riscv/multilib-generator: (canonical_order): New.
14567 (arch_canonicalize): Dito.
14568 Apply arch_canonicalize for alts.
14569
14570 2019-08-05 Martin Sebor <msebor@redhat.com>
14571
14572 * doc/extend.texi (Common Variable Attributes): Document alias
14573 attribute.
14574
14575 2019-08-05 Marek Polacek <polacek@redhat.com>
14576
14577 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14578 * doc/invoke.texi: Document -Wcomma-subscript.
14579
14580 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14581
14582 * tree-core.h (tree_function_decl): Make function_code an
14583 independent field. Group the remaining bitfields into bytes
14584 and move decl_type so that it contines to be at a byte boundary.
14585 Leave 12 bits for future expansion.
14586
14587 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14588
14589 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14590 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14591 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14592 IFN_MASK_STORE.
14593
14594 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14595
14596 * gimple.h (gimple_move_vops): Declare.
14597 * gimple.c (gimple_move_vops): New function
14598 * gimple-fold.c (replace_call_with_call_and_fold)
14599 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14600 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14601 (gimple_fold_call): Use it.
14602 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14603 * tree-call-cdce.c (use_internal_fn): Likewise.
14604 * tree-if-conv.c (predicate_load_or_store): Likewise.
14605 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14606 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14607 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14608 (update_call_from_tree): Likewise.
14609 * tree-vect-stmts.c (vectorizable_load): Likewise.
14610 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14611
14612 2019-08-05 Martin Liska <mliska@suse.cz>
14613
14614 PR c++/91334
14615 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14616 with not arguments.
14617 (eliminate_unnecessary_stmts): Likewise.
14618
14619 2019-08-05 Richard Biener <rguenther@suse.de>
14620
14621 PR middle-end/91169
14622 * fold-const.c (get_array_ctor_element_at_index): Create
14623 offset_ints according to the sign of the index type and treat
14624 that as signed if it is obviously so.
14625
14626 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14627
14628 PR target/91341
14629 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14630 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14631 _mm256_storeu2_m128i): New function.
14632
14633 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14634
14635 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14636 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14637
14638 2019-08-05 Alan Modra <amodra@gmail.com>
14639
14640 PR target/91349
14641 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14642 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14643
14644 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14645
14646 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14647 bug that was fixed in Tcl 8.6.1.
14648
14649 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14650
14651 * config/rs6000/future.md: New file.
14652 * config/rs6000/rs6000.md: Include future.md.
14653 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14654
14655 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14656
14657 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14658 check to use targetm.slow_unaligned_access instead.
14659
14660 * function.c (assign_param_data_one): Remove unused data members.
14661
14662 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14663
14664 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14665 build_distinct_type_copy.
14666 (simd_clone_adjust_argument_types): Ditto.
14667 (simd_clone_adjust): Call build_distinct_type_copy here.
14668 (expand_simd_clones): Ditto.
14669
14670 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14671
14672 PR target/91201
14673 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14674
14675 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14676
14677 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14678 from 'const void *'.
14679 (sort_locs_in_loop_postorder_cmp): Likewise.
14680
14681 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14682
14683 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14684 (hot-bb-count-ws-permille): Likewise.
14685 (hot-bb-frequency-fraction): Likewise.
14686 (unlikely-bb-count-fraction): Likewise.
14687 * params.def (hot-bb-count-fraction): Rework description.
14688 (hot-bb-count-ws-permille): Likewise.
14689 (hot-bb-frequency-fraction): Likewise.
14690 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14691 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14692
14693 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14694
14695 PR target/91323
14696 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14697 Return false.
14698
14699 2019-08-02 Richard Biener <rguenther@suse.de>
14700
14701 * vec.h (vec::sort): Add gcc_qsort_r support.
14702 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14703 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14704 to gcc_qsort_r style callback.
14705 (sort_locs_in_loop_postorder_cmp): Likewise.
14706 (analyze_memory_references): Use gcc_sort_r interfaces.
14707 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14708
14709 2019-08-02 Martin Liska <mliska@suse.cz>
14710
14711 PR lto/91313
14712 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14713 to detect working job server.
14714 (driver::detect_jobserver): Test whether jobserver
14715 is active from GCC driver. That will prevent situation where
14716 GCC is invoked from a LD plugin and the linker already uses
14717 file descriptors suggested by make. That leads to a wrong
14718 detection.
14719 * gcc.h (driver): Add detect_jobserver.
14720 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14721 not scanning for --jobserver-auth prefix.
14722
14723 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14724
14725 PR tree-optimization/91201
14726 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14727 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14728 extraction.
14729
14730 2019-08-01 Martin Sebor <msebor@redhat.com>
14731
14732 PR c++/90947
14733 * tree.c (type_initializer_zero_p): Define.
14734 * tree.h (type_initializer_zero_p): New function.
14735
14736 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14737
14738 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14739
14740 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14741
14742 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14743 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14744 * predict.c (maybe_hot_count_p): Likewise.
14745 (maybe_hot_bb_p): Tweak comment.
14746 (maybe_hot_edge_p): Likewise.
14747 (probably_never_executed): Likewise. Minor tweak.
14748 (probably_never_executed_bb_p): Likewise.
14749 (unlikely_executed_edge_p): Likewise.
14750 (probably_never_executed_edge_p): Likewise.
14751 (optimize_function_for_size_p): Likewise.
14752 (optimize_function_for_speed_p): Likewise.
14753 (function_optimization_type): Likewise.
14754 (optimize_bb_for_size_p): Likewise.
14755 (optimize_bb_for_speed_p): Likewise.
14756 (bb_optimization_type): Likewise.
14757 (optimize_edge_for_size_p): Likewise.
14758 (optimize_edge_for_speed_p): Likewise.
14759 (optimize_insn_for_size_p): Likewise.
14760 (optimize_insn_for_speed_p): Likewise.
14761 (optimize_loop_for_size_p): Likewise.
14762 (optimize_loop_for_speed_p): Likewise.
14763 (optimize_loop_nest_for_speed_p): Likewise.
14764 (optimize_loop_nest_for_size_p): Likewise.
14765 (predictable_edge_p): Likewise.
14766 (handle_missing_profiles): Minor tweak.
14767
14768 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14769
14770 * config/rs6000/predicates.md (pcrel_external_address): Update
14771 comment.
14772
14773 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14774
14775 PR target/85693
14776 * config/i386/mmx.md (usadv8qi): New expander.
14777
14778 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14779
14780 PR c++/90590
14781 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14782 with reserved names that are in a system header.
14783
14784 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14785
14786 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14787 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14788 (*vec_extractv2si_0_zext): Ditto.
14789 (*vec_extractv2si_1): Add (rm,x) alternative.
14790 (*vec_extractv2si_1_zext): New insn pattern.
14791 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14792 insn constraint.
14793
14794 2019-08-01 Richard Biener <rguenther@suse.de>
14795
14796 * domwalk.c (bb_postorder): Remove static variable.
14797 (cmp_bb_postorder): Adjust.
14798 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14799 (dom_walker::walk): Adjust.
14800
14801 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14802
14803 * sort.cc (sort_r_ctx): New struct.
14804 (reorder23): Make templated on context type.
14805 (reorder45): Ditto.
14806 (cmp1): Ditto. Adjust signature.
14807 (netsort): Ditto.
14808 (mergesort): Ditto.
14809 [CHECKING_P] (cmp2to3): New static function. Use it...
14810 (gcc_qsort) [CHECKING_P]: ...here.
14811 (gcc_sort_r): New function.
14812 * system.h (sort_r_cmp_fn): New function typedef.
14813 (qsort_chk): Adjust signature.
14814 (gcc_sort_r): Declare.
14815 * vec.c (qsort_chk_error): Adjust.
14816 (qsort_chk): Adjust.
14817
14818 2019-08-01 Richard Biener <rguenther@suse.de>
14819
14820 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
14821 (compute_antic): Localize it here.
14822
14823 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
14824
14825 * common/config/riscv/riscv-common.c: Check -march string ends
14826 with null.
14827
14828 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
14829
14830 * ipa-devirt.c (type_warning_cmp): Make static.
14831 (decl_warning_cmp): Ditto.
14832
14833 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
14834
14835 PR target/91050
14836 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
14837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
14838 use of deleted rs6000_dejagnu_cpu_index variable.
14839 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
14840 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14841 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
14842 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
14843 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
14844 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
14845
14846 2019-07-31 Richard Biener <rguenther@suse.de>
14847
14848 PR tree-optimization/91280
14849 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14850 Decompose MEM_REF manually for offset handling.
14851
14852 2019-07-31 Richard Biener <rguenther@suse.de>
14853
14854 PR tree-optimization/91293
14855 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
14856 of reduction stmts.
14857
14858 2019-07-31 Matt Thomas <matt@3am-software.com>
14859 Nick Hudson <nick@nthcliff.demon.co.uk>
14860 Matthew Green <mrg@eterna.com.au>
14861 Maya Rashish <coypu@sdf.org>
14862
14863 * config.gcc (hppa*-*-netbsd*): New target.
14864 * config/pa/pa-netbsd.h: New file.
14865 * config/pa/pa32-netbsd.h: New file.
14866
14867 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14868
14869 PR tree-optimization/91201
14870 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
14871
14872 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
14873
14874 * config/gcn/gcn-valu.md
14875 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
14876 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14877 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14878 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
14879 struct ilist. Add nops for delayeduse insns.
14880 * config/gcn/gcn.md (delayeduse): New attribute.
14881 (*movbi): Remove s_waitcnt from stores.
14882 (*mov<mode>_insn): Likewise.
14883 (*movti_insn): Likewise. Add delayeduse attribute.
14884 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
14885 (atomic_store<mode>): Remove or adjust s_waitcnt.
14886
14887 2019-07-31 Richard Biener <rguenther@suse.de>
14888
14889 * vr-values.h (vr_values::swap_vr_value): New.
14890 (vr_values::free_value_range): likewise.
14891 * vr-values.c (vr_values::swap_vr_value): Implement.
14892 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
14893 Do not return a range or take a var.
14894 (evrp_range_analyzer::stack): Change back to recording a non-const
14895 value_range *.
14896 * gimple-ssa-evrp-analyze.c
14897 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
14898 value-range.
14899 (evrp_range_analyzer::pop_to_marker): Adjust.
14900 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
14901 (evrp_range_analyzer::pop_value_range): Likewise. Free the
14902 no longer needed value-range.
14903
14904 2019-07-31 Martin Liska <mliska@suse.cz>
14905
14906 * tree-ssa-dce.c (propagate_necessity): Delete operator can
14907 have size and (or) alignment as 2nd and later arguments.
14908 Mark all of them as necessary.
14909
14910 2019-07-31 Richard Biener <rguenther@suse.de>
14911
14912 PR tree-optimization/91178
14913 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14914 Use tail-recursion.
14915
14916 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14917
14918 PR tree-optimization/91201
14919 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
14920 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
14921 TARGET_AVX512F.
14922 (reduc_plus_scal_<mode>): Improve formatting by introducing
14923 a temporary.
14924
14925 2019-07-31 Sudakshina Das <sudi.das@arm.com>
14926
14927 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
14928 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
14929 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
14930 (aarch64_init_tme_builtins): New.
14931 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
14932 (aarch64_expand_builtin_tme): New.
14933 (aarch64_expand_builtin): Handle TME builtins.
14934 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14935 __ARM_FEATURE_TME when enabled.
14936 * config/aarch64/aarch64-option-extensions.def: Add "tme".
14937 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
14938 (TARGET_TME): New.
14939 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
14940 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
14941 UNSPECV_TCANCEL.
14942 (tstart, ttest, tcommit, tcancel): New instructions.
14943 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
14944 (__tcancel, __ttest): New.
14945 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
14946 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
14947 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
14948 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
14949 * config/arm/types.md: Add new tme type attr.
14950 * doc/invoke.texi: Document "tme".
14951
14952 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
14953
14954 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
14955 warn_unused_result attribute.
14956 (cmse_check_address_range): Add warn_unused_result attribute.
14957
14958 2019-07-31 Richard Biener <rguenther@suse.de>
14959
14960 PR tree-optimization/91257
14961 * tree-vrp.c (union_ranges): Unify equality and less tests
14962 by using compare_values. Re-order cheap tests first.
14963
14964 2019-07-31 Jakub Jelinek <jakub@redhat.com>
14965
14966 PR middle-end/91301
14967 * gimplify.c (gimplify_omp_for): If for class iterator on
14968 distribute parallel for there is no data sharing clause
14969 on inner_for_stmt, look for private clause on combined
14970 parallel too and if found, move it to inner_for_stmt.
14971
14972 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
14973
14974 * lra-int.h (lra_operand_data): Remove early_clobber field.
14975 (lra_insn_reg): Likewise.
14976 * lra.c (debug_operand_data): Update accordingly.
14977 (setup_operand_alternative): Likewise.
14978 (new_insn_reg): Likewise. Remove early_clobber parameter.
14979 (collect_non_operand_hard_regs): Update call accordingly.
14980 Don't assign to lra_insn_reg::early_clobber.
14981 (add_regs_to_insn_regno_info): Remove early_clobber parameter
14982 and update calls to new_insn_reg.
14983 (lra_update_insn_regno_info): Update calls accordingly.
14984 * lra-constraints.c (update_and_check_small_class_inputs): Take the
14985 alternative number as a parameter and test whether the operand
14986 is earlyclobbered in that particular alternative.
14987 (process_alt_operands): Update call accordingly. Use per-alternative
14988 checks for earyclobber here too.
14989 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
14990 against zero for IRA_UNKNOWN_ALT.
14991
14992 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
14993
14994 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
14995
14996 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
14997
14998 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
14999 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15000
15001 2019-07-30 Martin Liska <mliska@suse.cz>
15002
15003 PR ipa/89330
15004 * cgraph.c (cgraph_edge::make_direct): Use
15005 edge->indirect_unknown_callee as edge->resolve_speculation can
15006 deallocate edge which is this pointer.
15007
15008 2019-07-30 Richard Biener <rguenther@suse.de>
15009
15010 PR tree-optimization/91257
15011 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15012
15013 2019-07-30 Martin Liska <mliska@suse.cz>
15014
15015 * doc/invoke.texi: Document new behavior.
15016 * lto-wrapper.c (cpuset_popcount): New function
15017 is a copy of libgomp/config/linux/proc.c.
15018 (init_num_threads): Likewise.
15019 (run_gcc): Automatically detect core count for -flto.
15020 (jobserver_active_p): New function.
15021
15022 2019-07-30 Richard Biener <rguenther@suse.de>
15023
15024 PR tree-optimization/91257
15025 * bitmap.h (bitmap_ior_into_and_free): Declare.
15026 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15027 whether to add the unliked element to the freelist.
15028 (bitmap_list_insert_element_after): Add defaulted param for
15029 an already allocated element.
15030 (bitmap_ior_into_and_free): New function.
15031 * tree-ssa-structalias.c (condense_visit): Reduce the
15032 ponts-to and edge bitmaps of the SCC members in a
15033 logarithmic fashion rather than all to one.
15034
15035 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15036
15037 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15038 parameter. When nonnull, make sure that the addition or subtraction
15039 has the same condition.
15040 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15041 for CFN_COND_MUL too.
15042
15043 2019-07-30 Richard Biener <rguenther@suse.de>
15044
15045 PR tree-optimization/91291
15046 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
15047 constant values.
15048
15049 2019-07-30 Jakub Jelinek <jakub@redhat.com>
15050
15051 PR middle-end/91216
15052 * omp-low.c (global_nonaddressable_vars): New variable.
15053 (use_pointer_for_field): For global decls, if they are non-addressable,
15054 remember it in the global_nonaddressable_vars bitmap, if they are
15055 addressable and in the global_nonaddressable_vars bitmap, ignore their
15056 TREE_ADDRESSABLE bit.
15057 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
15058 vars in global_nonaddressable_vars bitmap.
15059 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
15060
15061 PR target/91150
15062 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
15063 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
15064 comparison to unsigned HOST_WIDE_INT before shifting it left.
15065
15066 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15067
15068 * config/i386/i386.md (movstrict<mode>): Use register_operand
15069 predicate for operand 0. Add expander condition. Assert that
15070 operand 0 is a SUBREG RTX.
15071 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
15072 Update operand constraints and insn condition.
15073 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
15074 (zero_extendqihi2_and): Do not call gen_movstrictqi.
15075 (*setcc_qi_slp): Use register_operand predicate for operand 0.
15076 Update operand 0 constraints.
15077 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
15078
15079 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15080
15081 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
15082 when -m{code,data}-region are used without -mlarge.
15083 * config/msp430/msp430.c (msp430_option_override): Error when a
15084 non-default code or data region is used without -mlarge.
15085 (msp430_section_attr): Emit a warning and do not add upper/lower/either
15086 attributes when they are used without -mlarge.
15087
15088 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15089
15090 PR target/70320
15091 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
15092
15093 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15094
15095 PR middle-end/91242
15096 * wide-int.h (generic_wide_int::sext_elt): New function.
15097 * inchash.h (hash::add_wide_int): Use it instead of elt.
15098
15099 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15100
15101 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
15102 CODE_FOR_arm_##.
15103 * config/arm/arm.md (<crc_variant>): Rename to...
15104 (arm_<crc_variant>): ... This.
15105 (<cdp>): Rename to...
15106 (arm_<cdp>): ... This.
15107 (<ldc>): Rename to...
15108 (arm_<ldc>): ... This.
15109 (<stc>): Rename to...
15110 (arm_<stc>): ... This.
15111 (<mcr>): Rename to...
15112 (arm_<mcr>): ... This.
15113 (<mrc>): Rename to...
15114 (arm_<mrc>): ... This.
15115 (<mcrr>): Rename to...
15116 (arm_<mcrr>): ... This.
15117 (<mrrc>): Rename to...
15118 (arm_<mrrc>): ... This.
15119
15120 2019-07-29 Richard Biener <rguenther@suse.de>
15121
15122 PR tree-optimization/91257
15123 * tree-ssa-sccvn.h (struct vn_avail): New.
15124 (struct vn_ssa_aux): Add avail member.
15125 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
15126 member, add m_avail_freelist one.
15127 (rpo_elim::~rpo_elim): Remove.
15128 (rpo_elim::eliminate_avail): Adjust to new avail tracking
15129 data structure.
15130 (rpo_elim::eliminate_push_avail): Likewise.
15131 (do_unwind): Likewise.
15132 (do_rpo_vn): Likewise.
15133
15134 2019-07-29 Richard Biener <rguenther@suse.de>
15135
15136 PR tree-optimization/91257
15137 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
15138 most cases, instead call compare_values which handles the
15139 symbolic ranges we handle specially.
15140 (compare_values_warnv): Do not call operand_less_p but open-code
15141 the effective fold calls. Avoid converting so much.
15142
15143 2019-07-29 Martin Liska <mliska@suse.cz>
15144
15145 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
15146 remove LHS of operator new call. It's handled latter.
15147
15148 2019-07-29 Richard Biener <rguenther@suse.de>
15149
15150 PR tree-optimization/91267
15151 * vr-values.c (vr_values::update_value_range): Add early return
15152 for effectively VARYING lattice entry.
15153
15154 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15155
15156 PR debug/86638
15157 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
15158 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
15159 necessary if keep_all_vdefs_p is true.
15160 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
15161 that keep_all_vdefs_p is false.
15162 (mark_all_reaching_defs_necessary): Likewise.
15163 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
15164
15165 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15166
15167 * common.opt (Og): Change the initial value of flag_dse to 0.
15168 * opts.c (default_options_table): Move OPT_ftree_dse from
15169 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
15170 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
15171 entry before the OPT_ftree_sra entry.
15172 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
15173 of flags disabled by Og.
15174
15175 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15176
15177 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
15178 variables for -Og.
15179
15180 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15181
15182 * doc/sourcebuild.texi (check-function-bodies): Document.
15183
15184 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15185
15186 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15187 VEC_DUPLICATE of a fixed-length vector even if the result
15188 is variable-length. Likewise fold a duplicate of a
15189 variable-length vector if the variable-length vector is
15190 itself a duplicate of a fixed-length sequence.
15191 (test_vector_ops_duplicate): Test more cases.
15192
15193 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15194
15195 * vector-builder.h (vector_builder): Add a shape template parameter.
15196 (vector_builder::new_unary_operation): New function, generalizing
15197 the old tree_vector_builder function.
15198 (vector_builder::new_binary_operation): Likewise.
15199 (vector_builder::binary_encoded_nelts): Likewise.
15200 * int-vector-builder.h (int_vector_builder): Update template
15201 parameters to vector_builder.
15202 (int_vector_builder::shape_nelts): New function.
15203 * rtx-vector-builder.h (rtx_vector_builder): Update template
15204 parameters to vector_builder.
15205 (rtx_vector_builder::shape_nelts): New function.
15206 (rtx_vector_builder::nelts_of): Likewise.
15207 (rtx_vector_builder::npatterns_of): Likewise.
15208 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15209 * tree-vector-builder.h (tree_vector_builder): Update template
15210 parameters to vector_builder.
15211 (tree_vector_builder::shape_nelts): New function.
15212 (tree_vector_builder::nelts_of): Likewise.
15213 (tree_vector_builder::npatterns_of): Likewise.
15214 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15215 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15216 (tree_vector_builder::new_binary_operation): Delete.
15217 (tree_vector_builder::binary_encoded_nelts): Likewise.
15218 * simplify-rtx.c: Include rtx-vector-builder.h.
15219 (distributes_over_addition_p): New function.
15220 (simplify_const_unary_operation)
15221 (simplify_const_binary_operation): Generalize handling of vector
15222 constants to include variable-length vectors.
15223 (test_vector_ops_series): Add more tests.
15224
15225 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15226
15227 PR lto/91222
15228 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15229 than INDENTIFIER_POINTER.
15230
15231 2019-07-28 Martin Liska <mliska@suse.cz>
15232
15233 PR ipa/89330
15234 * cgraph.c (symbol_table::create_edge): Always allocate
15235 a cgraph_edge.
15236 (symbol_table::free_edge): Store summary_id to
15237 edge_released_summary_ids if != -1;
15238 * cgraph.h (NEXT_FREE_NODE): Remove.
15239 (SET_NEXT_FREE_NODE): Likewise.
15240 (NEXT_FREE_EDGE): Likewise.
15241 (symbol_table::release_symbol): Store summary_id to
15242 cgraph_released_summary_ids if != -1;
15243 (symbol_table::allocate_cgraph_symbol): Always allocate
15244 a cgraph_node.
15245
15246 2019-07-28 Alan Modra <amodra@gmail.com>
15247
15248 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15249 gen_sibcall.
15250
15251 2019-07-28 Alan Modra <amodra@gmail.com>
15252
15253 PR target/91135
15254 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15255 define.
15256 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15257 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15258 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15259
15260 2019-07-28 Alan Modra <amodra@gmail.com>
15261
15262 PR target/91050
15263 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15264 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15265 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15266 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15267 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15268 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15269 in asm_default spec.
15270 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15271 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15272
15273 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15274
15275 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15276
15277 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15278
15279 PR target/89517
15280 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15281 * config/aarch64/aarch64-option-extensions.def: Add new comments
15282 and restore easier to read options.
15283
15284 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15285
15286 * convert.c (convert_to_real_1): Move part of conversion code...
15287 * match.pd: ...To here.
15288
15289 2019-07-26 Martin Jambor <mjambor@suse.cz>
15290
15291 PR ipa/89330
15292 * ipa-inline-transform.c (check_speculations_1): New function.
15293 (push_all_edges_in_set_to_vec): Likewise.
15294 (check_speculations): Use check_speculations_1, new parameter
15295 new_edges.
15296 (inline_call): Pass new_edges to check_speculations.
15297 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15298 NULL.
15299 (speculation_useful_p): Early return true if edge is inlined, remove
15300 later checks for inline_failed.
15301
15302 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15303
15304 PR rtl-optimization/91223
15305 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15306 matching with INOUT operand.
15307
15308 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15309
15310 * stmt.c (expand_case): Try to narrow the index type if it's larger
15311 than a word. Tidy up.
15312
15313 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15314
15315 * cif-code.def (NEVER_CALL): New code.
15316 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15317 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15318
15319 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15320
15321 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15322 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15323
15324 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15325
15326 * ipa-devirt.c (add_type_duplicate): Fix return value.
15327
15328 2019-07-25 Richard Biener <rguenther@suse.de>
15329
15330 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15331 type parameter and use it instead of guessing expression
15332 type from the first operand.
15333 (extract_range_from_binary_expr): Pass expr_type down.
15334
15335 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15336
15337 * config/arm/arm.md (SATrev): Change to code attribute.
15338 (*satsi_<SAT:code>): Adjust for the above.
15339 (*satsi_<SAT:code>_shift): Likewise.
15340
15341 2019-07-25 Richard Biener <rguenther@suse.de>
15342
15343 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15344 Make value_range * temporary const.
15345 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15346 Likewise.
15347 (evrp_range_analyzer::record_ranges_from_): Likewise.
15348 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15349 deal with having recorded a const one.
15350 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15351 Return a const value_range *.
15352 (evrp_range_analyzer::pop_value_range): Likewise.
15353 (evrp_range_analyzer::stack): Record const value_range *s.
15354 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15355 Adjust.
15356 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15357 (format_integer): Likewise.
15358 (sprintf_dom_walker::handle_gimple_call): Likewise.
15359 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15360 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15361 (vrp_prop::get_value_range): Adjust.
15362 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15363 modifying the lattice in-place.
15364 (vrp_prop::visit_stmt): Likewise.
15365 * vr-values.c (vr_values::get_lattice_entry): New private method.
15366 (vr_values::get_value_range): Wrap it and return a const
15367 value_range *.
15368 (vr_values::set_def_to_varying): New.
15369 (vr_values::set_defs_to_varying): Use it.
15370 (vr_values::update_value_range): Likewise.
15371 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15372 (values::op_with_constant_singleton_va): Likewise.
15373 (vr_values::extract_range_for_var_from_co): Likewise.
15374 (vr_values::extract_range_from_ssa_name): Likewise.
15375 (vr_values::extract_range_from_cond_expr): Likewise.
15376 (vr_values::extract_range_basic): Likewise.
15377 (compare_ranges): Take const value_range *, adjust.
15378 (compare_range_with_value): Likewise.
15379 (vrp_valueize): Adjust.
15380 (vrp_valueize_1): Likewise.
15381 (vr_values::get_vr_for_comparison): Return a const value_range *.
15382 (vr_values::compare_name_with_value): Adjust.
15383 (vr_values::compare_names): Likewise.
15384 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15385 Likewise.
15386 (vr_values::vrp_evaluate_conditional): Likewise.
15387 (find_case_label_ranges): Take a const value_range *.
15388 (vr_values::vrp_visit_switch_stmt): Adjust.
15389 (vr_values::extract_range_from_phi_node): Likewise.
15390 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15391 (vr_values::simplify_abs_using_ranges): Likewise.
15392 (test_for_singularity): Take a const value_range *.
15393 (range_fits_type_p): Likewise.
15394 (vr_values::simplify_cond_using_ranges_1): Adjust.
15395 (vr_values::simplify_cond_using_ranges_2): Likewise.
15396 (vr_values::simplify_switch_using_ranges): Likewise.
15397 (vr_values::simplify_float_conversion_usi): Likewise.
15398 (vr_values::two_valued_val_range_p): Likewise.
15399 * vr-values.h (vr_values::get_value_range): Return a const
15400 value_range *.
15401 (vr_values::set_def_to_varying): New.
15402 (vr_values::get_lattice_entry): New private method.
15403 (vr_values::get_vr_for_comparison): Return a const value_range *.
15404
15405 2019-07-25 Martin Liska <mliska@suse.cz>
15406 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15407
15408 PR c++/23383
15409 * common.opt: Add -fallocation-dce
15410 * gimple.c (gimple_call_operator_delete_p): New.
15411 * gimple.h (gimple_call_operator_delete_p): Likewise.
15412 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15413 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15414 DECL_IS_OPERATOR_DELETE_P.
15415 (mark_all_reaching_defs_necessary_1): Likewise.
15416 (propagate_necessity): Likewise.
15417 (eliminate_unnecessary_stmts): Handle
15418 gimple_call_operator_delete_p.
15419 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15420 Add packing of OPERATOR_DELETE.
15421 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15422 Similarly here.
15423 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15424 (DECL_SET_IS_OPERATOR_DELETE): New.
15425 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15426
15427 2019-07-25 Martin Liska <mliska@suse.cz>
15428
15429 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15430 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15431 * coverage.c (coverage_begin_function): Likewise.
15432 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15433 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15434 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15435 (sem_item::hash_referenced_symbol_properties): Likewise.
15436 * lto-streamer-out.c (hash_tree): Likewise.
15437 * predict.c (expr_expected_value_1): Likewise.
15438 * tree-inline.c (expand_call_inline): Likewise.
15439 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15440 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15441 * tree-core.h (enum function_decl_type): New enum.
15442 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15443 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15444 (set_function_decl_type): Likewise.
15445 (DECL_IS_OPERATOR_NEW_P): New.
15446 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15447 (DECL_LAMBDA_FUNCTION): Likewise.
15448 (DECL_LAMBDA_FUNCTION_P): Likewise.
15449 (DECL_IS_OPERATOR_NEW): Remove.
15450 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15451
15452 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15453
15454 * ipa-profile.c (get_most_common_single_value): Use
15455 get_nth_most_common_value.
15456 * profile.c (sort_hist_value): New function.
15457 (compute_value_histograms): Call sort_hist_value to sort the
15458 values after loading from disk.
15459 * value-prof.c (get_most_common_single_value): Rename to ...
15460 get_nth_most_common_value. Add input params n, return
15461 the n_th value and count.
15462 (gimple_divmod_fixed_value_transform): Use
15463 get_nth_most_common_value.
15464 (gimple_ic_transform): Likewise.
15465 (gimple_stringops_transform): Likewise.
15466 * value-prof.h (get_most_common_single_value): Add input params
15467 n, default to 0.
15468
15469 2019-07-25 Richard Biener <rguenther@suse.de>
15470
15471 PR tree-optimization/91236
15472 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15473 size of CONSTRUCTOR write. Fix buffer size we pass to
15474 native_encode_expr.
15475
15476 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15477
15478 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15479 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15480 r273773.
15481
15482 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15483
15484 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15485 explicitly disabled with --disable-initfini-array.
15486
15487 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15488
15489 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15490 if-exists.
15491
15492 2019-07-24 Martin Sebor <msebor@redhat.com>
15493
15494 PR tree-optimization/91183
15495 PR tree-optimization/86688
15496 * builtins.c (compute_objsize): Handle MEM_REF.
15497 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15498 (get_min_string_length): Remove.
15499 (count_nonzero_bytes): New function.
15500 (handle_char_store): Rename...
15501 (handle_store): to this. Handle multibyte stores via integer types.
15502 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15503 function name.
15504
15505 2019-07-24 Martin Sebor <msebor@redhat.com>
15506
15507 PR driver/80545
15508 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15509 (diagnostic_report_diagnostic): Same.
15510 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15511 (diagnostic_context::lang_mask): New data member.
15512 * ipa-pure-const.c (suggest_attribute): Use
15513 lang_hooks.option_lang_mask ().
15514 * opts-common.c (option_enabled): Handle new argument.
15515 (get_option_state): Pass an additional argument.
15516 * opts.c (print_filtered_help): Print supported languages for
15517 unsupported options. Adjust printing of current state.
15518 * opts.h (option_enabled): Add argument.
15519 * toplev.c (print_switch_values): Use lang_mask.
15520 (general_init): Set global_dc->lang_mask.
15521
15522 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15523
15524 PR bootstrap/87030
15525 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15526
15527 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15528
15529 * cgraphunit.c (symbol_table::compile): Start and stop
15530 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15531 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15532
15533 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15534
15535 * gimplify.c (flag_instrument_functions_exclude_p): Include
15536 namespace/class information in the printable name.
15537 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15538 to tokens entered into the vector.
15539
15540 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15541
15542 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15543 (get_static_chain): Call it instead of build_simple_mem_ref.
15544 (get_frame_field): Likewise.
15545 (get_nonlocal_debug_decl): Likewise.
15546 (convert_nonlocal_reference_op): Likewise.
15547
15548 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15549
15550 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15551 declaration.
15552 (arc_compute_frame_size): Millicode is disabled when compiling
15553 ISR.
15554 (arc_return_address_register): Likewise.
15555 (arc_compute_function_type): Likewise.
15556 (arc_compute_frame_size): Likewise.
15557 (secondary_reload_info): Likewise.
15558 (arc_get_unalign): Likewise.
15559 (arc_can_use_return_insn): Declare.
15560 * config/arc/arc.c (AUX_LP_START): Define
15561 (AUX_LP_END): Likewise.
15562 (arc_frame_info): Update gmask member to 64-bit datum.
15563 (GMASK_LEN): Update.
15564 (arc_compute_function_type): Make it static, move it forward.
15565 (arc_must_save_register): Update, consider the extra regs.
15566 (arc_compute_millicode_save_restore_regs): Update to use the 64
15567 bit gmask.
15568 (arc_compute_frame_size): Likewise.
15569 (arc_enter_leave_p): Likewise.
15570 (arc_save_callee_saves): Likewise.
15571 (arc_restore_callee_saves): Likewise.
15572 (arc_save_callee_enter): Likewise.
15573 (arc_restore_callee_leave): Likewise.
15574 (arc_save_callee_milli): Likewise.
15575 (arc_restore_callee_milli): Likewise.
15576 (arc_expand_prologue): Add new interrupt handling.
15577 (arc_return_address_register): Make it static, move it forward.
15578 (arc_expand_epilogue): Add new interrupt handling.
15579 (arc_get_unalign): Delete.
15580 (arc_epilogue_uses): Make sure we do not remove the extra
15581 saved/restored registers when interrupt.
15582 (arc_can_use_return_insn): New function.
15583 (push_reg): Likewise.
15584 (pop_reg): Likewise.
15585 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15586 procedures.
15587 (arc_restore_callee_saves): Likewise, but restoring.
15588 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15589 (R33_REG): Likewise.
15590 (R34_REG): Likewise.
15591 (R35_REG): Likewise.
15592 (R36_REG): Likewise.
15593 (R37_REG): Likewise.
15594 (R38_REG): Likewise.
15595 (R39_REG): Likewise.
15596 (R45_REG): Likewise.
15597 (R46_REG): Likewise.
15598 (R47_REG): Likewise.
15599 (R48_REG): Likewise.
15600 (R49_REG): Likewise.
15601 (R50_REG): Likewise.
15602 (R51_REG): Likewise.
15603 (R52_REG): Likewise.
15604 (R53_REG): Likewise.
15605 (R54_REG): Likewise.
15606 (R55_REG): Likewise.
15607 (R56_REG): Likewise.
15608 (R58_REG): Likewise.
15609 (type): Add rtie attribute.
15610 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15611 (movsi_insn): Accept moves to lp_count.
15612 (rtie): Update pattern.
15613 (simple_return): Simplify it, don't use this pattern as a return
15614 from an interrupt.
15615 (arc600_rtie): New pattern.
15616 (p_return_i): Clean up.
15617 (return): Likewise.
15618 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15619 family CPUs.
15620 * config/arc/predicates.md (move_src_operand): Consider lp_count
15621 as a register.
15622
15623 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15624
15625 * config/s390/predicates.md (addv_const_operand): New predicate.
15626 * config/s390/s390-modes.def (CCO): New condition code mode.
15627 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15628 (s390_branch_condition_mask): Likewise.
15629 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15630 ("mulv<mode>4"): New expanders.
15631 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15632 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15633 pattern definitions.
15634
15635 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15636
15637 PR middle-end/91166
15638 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15639 (define_predicates): Add entry for uniform_vector_p.
15640 (vec_same_elem_p): New match pattern.
15641
15642 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15643
15644 PR bootstrap/87030
15645 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15646 * config/i386/darwin32-biarch.h .. to here.
15647 * config/i386/darwin64-biarch.h: Adjust comments.
15648 * config/rs6000/darwin32-biarch.h: Likewise.
15649 * config/rs6000/darwin64-biarch.h: Likewise.
15650 * config.gcc: Missed commit from r273746
15651 (*-*-darwin*): Don't include CPU t-darwin here.
15652 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15653 an error message if i686-darwin configuration is attempted for
15654 Darwin >= 18.
15655
15656 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15657
15658 PR bootstrap/87030
15659 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15660 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15661 an error message if i686-darwin configuration is attempted for
15662 Darwin >= 18.
15663 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15664 (powerpc-*-darwin*): Use biarch files where needed.
15665 (powerpc64-*-darwin*): Likewise.
15666 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15667 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15668 arch case.
15669 * config/i386/darwin32-biarch.h: New.
15670 * config/i386/darwin64.h: Rename.
15671 * config/i386/darwin64-biarch.h: To this.
15672 * config/i386/t-darwin: Rename.
15673 * config/i386/t-darwin32-biarch: To this.
15674 * config/i386/t-darwin64: Rename.
15675 * config/i386/t-darwin64-biarch: To this.
15676 * config/rs6000/darwin32-biarch.h: New.
15677 * config/rs6000/darwin64.h: Rename.
15678 * config/rs6000/darwin64-biarch.h: To this.
15679 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15680 arch case.
15681 * config/rs6000/t-darwin8: Rename.
15682 * config/rs6000/t-darwin32-biarch: To this.
15683 * config/rs6000/t-darwin64 Rename.
15684 * config/rs6000/t-darwin64-biarch: To this.
15685
15686 2019-07-23 Martin Sebor <msebor@redhat.com>
15687
15688 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15689
15690 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15691
15692 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15693 (rh): New alias for it.
15694
15695 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15696
15697 * gdbhooks.py: Pass replace=True to
15698 gdb.printing.register_pretty_printer.
15699
15700 2019-07-23 Richard Biener <rguenther@suse.de>
15701
15702 PR debug/91231
15703 * lto-streamer-in.c (input_function): Drop inline-entry markers
15704 that ended up with an unknown location block.
15705
15706 2019-07-23 Richard Biener <rguenther@suse.de>
15707
15708 PR tree-optimization/83518
15709 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15710 init from a constant even when partial defs are already recorded.
15711
15712 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15713
15714 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15715 * config/i386/znver1.md: Enable patterns for znver2 and add store
15716 variants which use extra AGU unit.
15717
15718 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15719
15720 * config/i386/i386-options.c (ix86_option_override_internal): Default
15721 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15722 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15723 for ZNVER2.
15724
15725 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15726
15727 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15728 (znver2_costs): Update 256 bit SSE costs and multiplication.
15729
15730 2019-07-23 Jan Beulich <jbeulich@suse.com>
15731
15732 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15733 Require only AVX512F.
15734 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15735 alternative expanding to vpternlog.
15736
15737 2019-07-23 Martin Liska <mliska@suse.cz>
15738
15739 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15740 to -flto in dwarf producer string.
15741
15742 2019-07-23 Richard Biener <rguenther@suse.de>
15743
15744 * tree-cfg.c (label_for_bb): Remove global var.
15745 (main_block_label): Take label_for_bb as argument.
15746 (cleanup_dead_labels_eh): Likewise, adjust.
15747 (cleanup_dead_labels): Adjust.
15748
15749 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15750
15751 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15752 Configurations): Add documentation for __builtin_mtfsf.
15753
15754 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15755
15756 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15757 * config/riscv/riscv.c (riscv_constant_alignment): Use
15758 riscv_align_data_type.
15759 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15760 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15761 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15762 * config/riscv/riscv.opt (malign-data): New.
15763 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15764
15765 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15766
15767 * cgraph.c (dump_graphviz): New function.
15768 * cgraph.h (dump_graphviz): New function.
15769 * symtab.c (dump_graphviz): New function.
15770
15771 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15772
15773 * config/aarch64/aarch64-simd.md
15774 (*aarch64_simd_sra<mode>): New.
15775 * config/aarch64/iterators.md
15776 (SHIFTRT): New iterator.
15777 (sra_op): New attribute.
15778
15779 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15780
15781 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15782 callee-saved regs R4->R10 in an interrupt function that calls another
15783 function.
15784
15785 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15786
15787 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15788 (_mm_blendv_epi8): New.
15789
15790 2019-07-22 Richard Biener <rguenther@suse.de>
15791
15792 PR tree-optimization/91221
15793 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15794 restrict partial-def handling of empty constructors and
15795 memset to refs with known offset.
15796
15797 2019-07-22 Jan Beulich <jbeulich@suse.com>
15798
15799 * config/i386/sse.md (ternlogsuffix): New.
15800 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15801 AVX512F is in use.
15802 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15803
15804 2019-07-22 Martin Liska <mliska@suse.cz>
15805
15806 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15807 comment.
15808 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15809
15810 2019-07-22 Martin Liska <mliska@suse.cz>
15811
15812 * lto-section-in.c (lto_get_section_data):
15813 Use new function get_compression.
15814 * lto-streamer-out.c (produce_lto_section): Use
15815 set_compression to encode compression algorithm.
15816 * lto-streamer.h (struct lto_section): Do not
15817 use bitfields in the format.
15818
15819 2019-07-22 Martin Liska <mliska@suse.cz>
15820
15821 PR driver/91172
15822 * opts-common.c (decode_cmdline_option): Decode
15823 argument of -Werror and check it for a wrong language.
15824 * opts-global.c (complain_wrong_lang): Remove such case.
15825
15826 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
15827
15828 * config/arc/arc.c (prepare_move_operands): Always use an
15829 intermediate register when storing a TLS symbols.
15830
15831 2019-07-22 Stafford Horne <shorne@gmail.com>
15832
15833 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
15834 force_reg.
15835
15836 2019-07-22 Stafford Horne <shorne@gmail.com>
15837
15838 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
15839 and munordered-float validations.
15840 * config/or1k/constraints.md (d): New register constraint.
15841 * config/or1k/predicates.md (fp_comparison_operator): New.
15842 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
15843 operands.
15844 (or1k_expand_compare): Normalize unordered comparisons.
15845 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
15846 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
15847 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
15848 * config/or1k/or1k.md (type): Add fpu.
15849 (fpu): New instruction reservation.
15850 (F, f, fr, fi, FI, FOP, fop): New.
15851 (<fop><F:mode>3): New ALU instruction definition.
15852 (float<fi><F:mode>2): New conversion instruction definition.
15853 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
15854 (fpcmpcc): New code iterator.
15855 (*sf_fp_insn): New instruction definition.
15856 (cstore<F:mode>4): New expand definition.
15857 (cbranch<F:mode>4): New expand definition.
15858 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
15859 munordered-float): New options.
15860 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
15861 munordered-float.
15862
15863 2019-07-22 Stafford Horne <shorne@gmail.com>
15864
15865 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
15866 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
15867 documenation to be more clear.
15868 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
15869 more clear.
15870 * config/or1k/or1k.opt (mrori): New option.
15871 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
15872 msfimm, mshftimm): Rewrite documentation to be more clear.
15873 * config/or1k/or1k.md (insn_support): Add ror and rori.
15874 (enabled): Add conditions for ror and rori.
15875 (rotrsi3): Replace condition for shftimm with ror and rori.
15876
15877 2019-07-22 Stafford Horne <shorne@gmail.com>
15878
15879 PR target/90363
15880 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
15881 (extend<mode>si2): Update predicate.
15882 * config/or1k/predicates.md (volatile_mem_operand): New.
15883 (reg_or_mem_operand): New.
15884
15885 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
15886
15887 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
15888 * config/rs6000/rs6000-call.c: ... to here.
15889
15890 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15891
15892 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
15893 memory.
15894
15895 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15896
15897 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
15898
15899 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15900
15901 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
15902
15903 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15904
15905 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
15906 (any_memory_operand): New predicate.
15907 (reg_or_mem_operand): Use it.
15908
15909 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15910
15911 PR target/91204
15912 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
15913
15914 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
15915
15916 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
15917 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
15918
15919 2019-07-20 Jakub Jelinek <jakub@redhat.com>
15920
15921 * tree.def (OMP_LOOP): New tree code.
15922 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
15923 (enum omp_clause_bind_kind): New enum.
15924 (struct tree_omp_clause): Add subcode.bind_kind.
15925 * tree.h (OMP_LOOP_CHECK): Rename to ...
15926 (OMP_LOOPING_CHECK): ... this.
15927 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15928 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
15929 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
15930 (OMP_CLAUSE_BIND_KIND): Define.
15931 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15932 bind clause entries.
15933 (walk_tree_1): Handle OMP_CLAUSE_BIND.
15934 * tree-pretty-print.c (dump_omp_clause): Likewise.
15935 (dump_generic_node): Handle OMP_LOOP.
15936 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
15937 (in_omp_construct): New variable.
15938 (is_gimple_stmt): Handle OMP_LOOP.
15939 (gimplify_scan_omp_clauses): For lastprivate don't set
15940 check_non_private if code == OMP_LOOP. For reduction clause
15941 on OMP_LOOP combined with parallel or teams propagate as shared
15942 on the combined construct. Handle OMP_CLAUSE_BIND.
15943 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
15944 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
15945 for constructs from a loop construct to gimplify_scan_omp_clauses.
15946 Don't predetermine iterator linear on OMP_SIMD from loop construct.
15947 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
15948 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
15949 to match the implicit ORT_TARGET construct around whole body.
15950 Temporarily clear in_omp_construct when processing body.
15951 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
15952 etc. temporarily set in_omp_construct when processing body.
15953 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
15954 * omp-low.c (struct omp_context): Add loop_p.
15955 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
15956 in that the original var might be private.
15957 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
15958 (check_omp_nesting_restrictions): Adjust nesting restrictions for
15959 addition of loop construct.
15960 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
15961
15962 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
15963 lastprivate non-addressable iterator of a collapse(1) simd.
15964
15965 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
15966
15967 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
15968 as in rs6000.c.
15969
15970 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
15971
15972 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
15973 refer to default conditions. Warn for the 'y' spec which is ignored
15974 by current linkers.
15975
15976 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
15977
15978 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
15979 cpu_supports_info, builtin_hash_struct, builtin_hasher,
15980 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
15981 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
15982 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
15983 init_cumulative_args, rs6000_promote_function_mode,
15984 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
15985 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
15986 rs6000_function_arg_boundary, rs6000_parm_offset,
15987 rs6000_parm_start, rs6000_arg_size,
15988 rs6000_darwin64_record_arg_advance_flush,
15989 rs6000_darwin64_record_arg_advance_recurse,
15990 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
15991 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
15992 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
15993 rs6000_mixed_function_arg, rs6000_psave_function_arg,
15994 rs6000_finish_function_arg, rs6000_function_arg,
15995 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
15996 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
15997 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
15998 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
15999 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16000 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16001 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16002 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16003 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16004 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16005 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16006 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16007 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16008 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16009 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16010 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16011 get_element_number, altivec_expand_vec_set_builtin,
16012 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16013 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16014 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16015 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16016 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16017 rs6000_expand_builtin, rs6000_vector_type,
16018 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16019 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16020 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16021 to rs6000-call.c.
16022 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16023 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16024 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16025 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16026 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16027 init_cumulative_args, rs6000_promote_function_mode,
16028 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16029 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16030 rs6000_function_arg_boundary, rs6000_parm_offset,
16031 rs6000_parm_start, rs6000_arg_size,
16032 rs6000_darwin64_record_arg_advance_flush,
16033 rs6000_darwin64_record_arg_advance_recurse,
16034 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16035 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16036 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16037 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16038 rs6000_finish_function_arg, rs6000_function_arg,
16039 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16040 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16041 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16042 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16043 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16044 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16045 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16046 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16047 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16048 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16049 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16050 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16051 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16052 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16053 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16054 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16055 get_element_number, altivec_expand_vec_set_builtin,
16056 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16057 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16058 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16059 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16060 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16061 rs6000_expand_builtin, rs6000_vector_type,
16062 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16063 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16064 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
16065 to here from rs6000.c.
16066 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
16067 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
16068 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
16069 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
16070 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
16071 rs6000_return_in_memory, rs6000_return_in_msb,
16072 rs6000_pass_by_reference, setup_incoming_varargs,
16073 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
16074 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
16075 rs6000_function_arg_padding, rs6000_function_arg,
16076 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
16077 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
16078 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
16079 rs6000_passes_long_double, rs6000_passes_vector,
16080 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
16081 altivec_builtin_mask_for_load) Add declarations.
16082 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
16083 * config/config.gcc: Add new source file rs6000-call.c to garbage
16084 collector and extra_objs.
16085
16086 2019-07-19 Jeff Law <law@redhat.com>
16087
16088 PR tree-optimization/86061
16089 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16090 strncpy. Drop some trivial dead code.
16091 (maybe_trim_memstar_call): Handle strncpy.
16092
16093 2019-07-19 Richard Biener <rguenther@suse.de>
16094
16095 PR tree-optimization/91211
16096 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16097 memset encoding size.
16098
16099 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
16100
16101 PR target/91204
16102 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
16103
16104 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
16105
16106 PR ipa/91194
16107 * ipa-inline.c (recursive_inlining): Fix limits check.
16108
16109 2019-07-19 Richard Biener <rguenther@suse.de>
16110
16111 PR tree-optimization/91200
16112 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
16113 no PHI nodes in middle-bb.
16114
16115 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
16116
16117 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
16118 to +sve-bitperm.
16119 * config/aarch64/aarch64-option-extensions.def: Likewise.
16120
16121 2019-07-19 Jakub Jelinek <jakub@redhat.com>
16122
16123 PR middle-end/91190
16124 * function.c (insert_temp_slot_address): Store into the hash table
16125 a copy of address to avoid RTL sharing issues.
16126
16127 2019-07-19 Richard Biener <rguenther@suse.de>
16128
16129 PR tree-optimization/91207
16130 Revert
16131 2019-07-17 Richard Biener <rguenther@suse.de>
16132
16133 PR tree-optimization/91178
16134 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16135 loads with a gap larger than the vector size always use
16136 VMAT_STRIDED_SLP.
16137 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16138 avoid loading vectors that are only contained in the gap
16139 and thus are not needed.
16140
16141 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16142
16143 * config/i386/i386.md (*addqi_2_slp): Remove.
16144 (*<code>qi_2_slp): Ditto.
16145
16146 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
16147
16148 * config/rs6000/predicates.md (prefixed_mem_operand): Call
16149 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
16150 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
16151 Rename function from rs6000_prefixed_address.
16152 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16153 TARGET_HAS_TOC.
16154 (TARGET_TOC): Likewise.
16155 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16156 rs6000.h.
16157 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16158 TARGET_HAS_TOC.
16159 (TARGET_TOC): Likewise.
16160 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16161 rs6000.h.
16162 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16163 TARGET_HAS_TOC.
16164 (TARGET_TOC): Likewise.
16165 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16166 check to require -mcmodel=medium for pc-relative addressing.
16167 (create_TOC_reference): Add assertion for TARGET_TOC.
16168 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
16169 TARGET_NO_TOC.
16170 (rs6000_emit_move): Likewise.
16171 (TOC_alias_set): Rename TOC alias set static variable from 'set'
16172 to 'TOC_alias_set'.
16173 (get_TOC_alias_set): Likewise.
16174 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
16175 TARGET_NO_TOC.
16176 (rs6000_can_eliminate): Likewise.
16177 (rs6000_prefixed_address_mode_p): Rename function from
16178 rs6000_prefixed_address.
16179 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
16180 TARGET_HAS_TOC and not pc-relative.
16181 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
16182 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16183 TARGET_HAS_TOC.
16184 (TARGET_TOC): Likewise.
16185 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16186 rs6000.h.
16187
16188 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16189
16190 PR target/91188
16191 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16192 for operand 0. Do not use (match_dup) to match operand 1 with
16193 operand 0. Add check in insn constraint that either input operand
16194 matches operand 0. Use SWI12 mode iterator to also handle
16195 HImode operands.
16196 (*and<mode>_1_slp): Ditto.
16197 (*<code>qi_1_slp): Ditto.
16198 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16199 Do not use (match_dup) to match operand 1 with operand 0. Add
16200 check in insn constraint that operand 1 matches operand 0.
16201 Use SWI12 mode iterator to also handle HImode operands.
16202 (*ashl<mode>3_1_slp): Ditto.
16203 (*<shift_insn><mode>3_1_slp): Ditto.
16204 (*<rotate_insn><mode>3_1_slp): Ditto.
16205
16206 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16207
16208 * config/arm/arm-builtins.c
16209 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16210 (arm_expand_unop_builtin): Likewise.
16211 * config/arm/crypto.md
16212 (crypto_sha1h): Convert from define_insn to define_expand.
16213 (crypto_<crypto_pattern>): Likewise.
16214 (crypto_sha1h_lb): New define_insn.
16215 (crypto_<crypto_pattern>_lb): Likewise.
16216
16217 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16218
16219 PR target/90317
16220 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16221 (vsha1cq_u32): Likewise.
16222 (vsha1pq_u32): Likewise.
16223 (vsha1mq_u32): Likewise.
16224 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16225 vec select.
16226 (crypto_sha1c): Correct vec select.
16227 (crypto_sha1m): Likewise.
16228 (crypto_sha1p): Likewise.
16229
16230 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16231
16232 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16233 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16234 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16235 (subdi_zesidi_zesidi): Likewise.
16236 (negdi2_compare, negdi2_insn): Likewise.
16237 (negdi_extensidi): Likewise.
16238 (negdi_zero_extendsidi): Likewise.
16239 (arm_cmpdi_insn): Likewise.
16240 (subsi3_carryin): Use arm_borrow_operation.
16241 (subsi3_carryin_const): Likewise.
16242 (subsi3_carryin_const0): Likewise.
16243 (subsi3_carryin_compare): Likewise.
16244 (subsi3_carryin_compare_const): Likewise.
16245 (subsi3_carryin_compare_const0): Likewise.
16246 (subsi3_carryin_shift): Likewise.
16247 (rsbsi3_carryin_shift): Likewise.
16248 (negsi2_carryin_compare): Likewise.
16249
16250 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16251
16252 PR tree-optimization/91137
16253 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16254 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16255 Init, use and fini the above new field.
16256 (determine_base_object_1): New function.
16257 (determine_base_object): Reimplement using walk_tree.
16258
16259 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16260
16261 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16262 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16263 CLEANUP_FORCE_FAST_DCE is set.
16264 * ifcvt.c (rest_of_handle_if_conversion): Pass
16265 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16266 if-conversion succeeded.
16267
16268 2019-07-18 Richard Biener <rguenther@suse.de>
16269
16270 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16271 branches to make code less indented.
16272
16273 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16274
16275 PR middle-end/81824
16276 * attribs.c (decls_mismatched_attributes): Simplify the logic
16277 that avoids duplicates and false positives.
16278
16279 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16280
16281 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16282 data into data section when generating PIC code.
16283 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16284 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16285 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16286 return 2 for SOM and 0 for other targets.
16287
16288 2019-07-17 Jeff Law <law@redhat.com>
16289
16290 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16291 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16292 avoid unexpected switch statement fallthru.
16293
16294 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16295
16296 * config/i386/i386.md (*add<dwi>3_doubleword):
16297 Remove redundant constraints.
16298 (*add<mode>_1): Ditto.
16299 (*addhi_1): Ditto.
16300 (*addqi_1): Ditto.
16301 (*addqi_1_slp): Ditto.
16302 (*add<mode>_2): Ditto.
16303 (*addv<mode>4): Ditto.
16304 (*sub<dwi>3_doubleword): Ditto.
16305 (*sub<mode>_1): Ditto.
16306 (*subqi_1_slp): Ditto.
16307 (*sub<mode>_2): Ditto.
16308 (*subv<mode>4): Ditto.
16309 (*sub<mode>_3): Ditto.
16310 (@add<mode>3_carry): Ditto.
16311 (@sub<mode>3_carry): Ditto.
16312 (*add<mode>3_cc_overflow_1): Ditto.
16313 (*add<mode>3_zext_cc_overflow_2): Ditto.
16314 (*anddi_1): Ditto.
16315 (*and<mode>_1): Ditto.
16316 (*andqi_1): Ditto.
16317 (*andqi_1_slp): Ditto.
16318 (*anddi_2): Ditto.
16319 (*andqi_2_maybe_si): Ditto.
16320 (*and<mode>_2): Ditto.
16321 (*andqi_2_slp): Ditto.
16322 (*<code><mode>_1): Ditto.
16323 (*<code>qi_1): Ditto.
16324 (*<code>qi_1_slp): Ditto.
16325 (*<code><mode>_2): Ditto.
16326 (*<code>qi_2_slp): Ditto.
16327
16328 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16329
16330 * alias.c (record_component_aliases): Do not simplify pointed-to
16331 types of ODR types.
16332
16333 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16334
16335 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16336 partial reg stall on alternative 2.
16337
16338 2019-07-17 Richard Biener <rguenther@suse.de>
16339
16340 PR tree-optimization/91178
16341 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16342 lower SSA names to avoid quadratic behavior in the common case.
16343 * tree-data-ref.c (split_constant_offset): Add limit argument
16344 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16345 (split_constant_offset_1): Add limit argument and use it to
16346 limit SSA def walking. Optimize the common plus/minus case.
16347
16348 2019-07-17 Richard Biener <rguenther@suse.de>
16349
16350 PR tree-optimization/91178
16351 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16352 loads with a gap larger than the vector size always use
16353 VMAT_STRIDED_SLP.
16354 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16355 avoid loading vectors that are only contained in the gap
16356 and thus are not needed.
16357
16358 2019-07-17 Richard Biener <rguenther@suse.de>
16359
16360 PR tree-optimization/91180
16361 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16362 computation for memset partial defs.
16363
16364 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16365
16366 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16367 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16368 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16369 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16370 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16371 * omp-grid.c (grid_process_grid_body,
16372 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16373 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16374 == GF_OMP_FOR_KIND_SIMD.
16375 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16376 check_omp_nesting_restrictions, scan_omp_1_stmt,
16377 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16378 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16379 omp_find_scan): Likewise.
16380 * omp-expand.c (expand_omp_for): Likewise.
16381 * omp-general.c (omp_extract_for_data): Likewise.
16382
16383 PR tree-optimization/91157
16384 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16385 a vector boolean with scalar mode.
16386 (expand_vector_condition): Handle first operand being a vector boolean
16387 with scalar mode.
16388 (expand_vector_operations_1): For comparisons, don't bail out early
16389 if the return type is vector boolean with scalar mode, but comparison
16390 operand type is not.
16391
16392 2019-07-17 Richard Biener <rguenther@suse.de>
16393
16394 PR tree-optimization/91181
16395 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16396 IFN_LOADs as calls.
16397
16398 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16399
16400 * config/i386/i386.md (*testdi_1): Match CCZmode for
16401 constants that might have the SImode sign bit set.
16402 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16403 Use correct constraints for pentium pairing.
16404 (*test<mode>_1): Ditto.
16405
16406 2019-07-16 Jeff Law <law@redhat.com>
16407
16408 PR rtl-optimization/91173
16409 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16410 SSA_NAME with a constant value, fold its value into the offset
16411 and clear the base before calling gen_addr_rtx.
16412
16413 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16414
16415 PR rtl-optimization/91164
16416 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16417 invalidate dominance info.
16418
16419 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16420
16421 * read-md.h (md_reader::record_potential_iterator_use): Add a
16422 file_location parameter.
16423 * read-rtl.c (attribute_use::loc): New field.
16424 (map_attr_string): Take a file_location parameter. Report cases
16425 in which attributes map to multiple distinct values.
16426 (apply_attribute_uses): Update call accordingly.
16427 (md_reader::handle_overloaded_name): Likewise.
16428 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16429 nonnull strings.
16430 (record_attribute_use): Take a file_location parameter.
16431 Initialize attribute_use::loc.
16432 (md_reader::record_potential_iterator_use): Take a file_location
16433 parameter. Update call to record_attribute_use.
16434 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16435 (rtx_reader::read_rtx_code): Likewise.
16436 (rtx_reader::read_rtx_operand): Likewise. Record a location
16437 for implicitly-expanded empty strings.
16438
16439 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16440
16441 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16442 Use file_location instead of separate fields.
16443 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16444 separate filename and line number.
16445 * read-md.c (ptr_loc): As above.
16446 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16447 (md_reader::fprint_md_ptr_loc): Likewise.
16448 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16449 instead of a separate filename and line number.
16450 (md_reader::read_string): Update call accordingly.
16451
16452 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16453
16454 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16455 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16456 leaving the choice between SFDF and P implicit.
16457 (*mov<mode>_update2): Likewise.
16458 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16459 rather than leaving the choice betweem IBM128 and GPR implicit.
16460 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16461 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16462 QHSI implicit.
16463 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16464 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16465 * config/rs6000/vsx.md
16466 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16467 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16468 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16469 and VSX_EXTRACT_I implicit.
16470
16471 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16472
16473 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16474 Explicitly use <MOVEP1:MODE> for the mode attribute.
16475
16476 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16477
16478 PR bootstrap/91176
16479 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16480
16481 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16482
16483 PR target/91050
16484 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16485 .machine directive.
16486
16487 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16488
16489 * config/i386/i386.md (@test<mode>_ccno_1):
16490 Rename from test<mode>_ccno_1.
16491 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16492 (*testqi_1_maybe_si): Remove modrm attribute.
16493 (*test<mode>_1): Ditto.
16494 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16495 gen_test_ccno_1 and gen_extend_insn.
16496
16497 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16498
16499 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16500 to 0.
16501
16502 2019-07-15 Richard Biener <rguenther@suse.de>
16503
16504 PR middle-end/91162
16505 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16506 node make sure to replace all uses with something valid.
16507
16508 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16509
16510 PR tree-optimization/88497
16511 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16512 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16513 function undistribute_bitref_for_vector.
16514 (undistribute_bitref_for_vector): New function.
16515 (cleanup_vinfo_map): Likewise.
16516 (sort_by_mach_mode): Likewise.
16517
16518 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16519
16520 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16521 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16522 and testdi_ccno_1 using SWI48 mode attribute.
16523 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16524 x86_64_szext_general_operand.
16525 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16526 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16527 instead of genera_operand mode attribute.
16528
16529 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16530
16531 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16532 fopen and fclose to their respective types.
16533 (DotFn.invoke): Ditto.
16534
16535 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16536
16537 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16538 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16539 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16540 (array_index_predicate): Remove.
16541 (analyze_function_body): Account cost for variable ofsetted array
16542 indexing.
16543 (estimate_node_size_and_time): Do not compute array index hint.
16544 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16545 (inline_read_section): Do not read array index hint.
16546 (ipa_fn_summary_write): Do not write array index hint.
16547 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16548 * ipa-cp.c (hint_time_bonus): Remove.
16549 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16550 (ipa_fnsummary): Remove array_index.
16551 * ipa-inline.c (want_inline_small_function_p): Do not use
16552 array_index.
16553 (edge_badness): Likewise.
16554 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16555
16556 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16557
16558 PR target/91148
16559 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16560 superfluous "builtin function" phrasing.
16561
16562 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16563
16564 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16565 Break out from ...
16566 (aliasing_component_refs_walk): Break out from ...
16567 (aliasing_component_refs_p): ... here.
16568
16569 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16570
16571 PR target/91148
16572 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16573 "builtin function" phrasing.
16574
16575 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16576
16577 PR target/90723
16578 * recog.h (temporary_volatile_ok): New class.
16579 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16580 volatile_ok temporarily to true using temporary_volatile_ok.
16581 * expr.c (emit_block_move_via_cpymem): Likewise.
16582 * optabs.c (maybe_legitimize_operand): Likewise.
16583
16584 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16585
16586 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16587 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16588 uses inside of order(concurrent) constructs.
16589 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16590 OMP_CLAUSE_ORDER is seen.
16591 * omp-low.c (struct omp_context): Add order_concurrent member.
16592 (scan_sharing_clauses): Set ctx->order_concurrent if
16593 OMP_CLAUSE_ORDER is seen.
16594 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16595 of simd order(concurrent). Diagnose constructs not allowed inside of
16596 for order(concurrent).
16597 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16598 complaining about static double setjmp (double); or class static
16599 methods or non-global namespace setjmps.
16600 (omp_runtime_api_call): New function.
16601 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16602 order(concurrent) loops.
16603
16604 2019-07-12 Martin Sebor <msebor@redhat.com>
16605
16606 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16607 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16608 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16609 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16610
16611 2019-07-12 Jan Hubicka <jh@suse.cz>
16612
16613 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16614 (indirect_refs_may_alias_p): ... here.
16615 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16616 mem refs in the access paths.
16617
16618 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16619
16620 PR tree-optimization/89430
16621 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16622 store elimination for local variable without address escape.
16623
16624 2019-07-12 Jeff Law <law@redhat.com>
16625
16626 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16627 for the ".far" section.
16628
16629 2019-07-12 Richard Biener <rguenther@suse.de>
16630
16631 PR tree-optimization/91145
16632 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16633 chain check.
16634
16635 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16636
16637 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16638 rather than this_state as the lowering context for the ELSE
16639 seq in a GIMPLE_EH_ELSE.
16640
16641 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16642
16643 * vector-builder.h (vector_builder::elt): Allow already-supplied
16644 elements to be read back before building is complete.
16645
16646 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16647
16648 PR rtl-optimization/91136
16649 * df-core.c (ACCESSING REFS): Fix typos in comment.
16650 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16651 the beginning of the block to the initial set of live registers.
16652
16653 2019-07-12 Richard Biener <rguenther@suse.de>
16654
16655 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16656 * fold-const.c (get_array_ctor_element_at_index): Add
16657 ctor_idx output parameter informing the caller where in
16658 the constructor the element was (not) found. Add early exit
16659 for when the ctor is sorted.
16660 * gimple-fold.c (fold_array_ctor_reference): Support constant
16661 folding across multiple array elements.
16662
16663 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16664
16665 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16666 doesn't have location, set the current location to the function's end.
16667
16668 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16669
16670 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16671 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16672 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16673 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16674 * config/aarch64/aarch64-simd.md
16675 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16676 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16677 * config/aarch64/aarch64-sve.md
16678 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16679 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16680
16681 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16682
16683 * doc/md.texi: Document that @ patterns can have different
16684 numbers of operands.
16685 * genemit.c (handle_overloaded_gen): Handle this case.
16686 * genopinit.c (handle_overloaded_gen): Likewise.
16687 * gensupport.c (replace_operands_with_dups): Iterate over
16688 the new rtx's format rather than the old one's.
16689
16690 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16691
16692 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16693 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16694 order clause entries.
16695 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16696 * tree-pretty-print.c (dump_omp_clause): Likewise.
16697 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16698 Likewise.
16699 * omp-low.c (scan_sharing_clauses): Likewise.
16700 * tree-nested.c (convert_nonlocal_omp_clauses,
16701 convert_local_omp_clauses): Likewise.
16702
16703 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16704
16705 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16706 fallthrough target of current basic block isn't the placed
16707 right next.
16708
16709 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16710
16711 PR target/90980
16712 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16713 (_mm512_storeu_epi64): Likewise.
16714 (_mm512_loadu_epi32): Likewise.
16715 (_mm512_storeu_epi32): Likewise.
16716 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16717 (_mm_storeu_epi64): Likewise.
16718 (_mm256_storeu_epi32): Likewise.
16719 (_mm_storeu_epi32): Likewise.
16720
16721 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16722
16723 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16724
16725 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16726
16727 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16728 Handle Modula-2.
16729
16730 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16731
16732 PR target/91124
16733 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16734 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16735 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16736 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16737 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16738 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16739 define_insns.
16740 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16741 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16742 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16743 define_insns.
16744 (sse2_cvttpd2dq<mask_name>): Change into ...
16745 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16746 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16747 (*sse2_cvtpd2dq<mask_name>): Change into ...
16748 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16749 Add "C" constraint to const0_operand.
16750 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16751 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16752 changes.
16753
16754 PR target/91124
16755 * config/i386/i386-builtin-types.def
16756 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16757 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16758 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16759 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16760 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16761 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16762 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16763 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16764 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16765 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16766 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16767 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16768 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16769 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16770 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16771 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16772 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16773 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16774 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16775 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16776 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16777 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16778 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16779 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16780 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16781 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16782 __builtin_ia32_vpdpbusd_v4si_maskz,
16783 __builtin_ia32_vpdpbusds_v16si_mask,
16784 __builtin_ia32_vpdpbusds_v16si_maskz,
16785 __builtin_ia32_vpdpbusds_v8si_mask,
16786 __builtin_ia32_vpdpbusds_v8si_maskz,
16787 __builtin_ia32_vpdpbusds_v4si_mask,
16788 __builtin_ia32_vpdpbusds_v4si_maskz,
16789 __builtin_ia32_vpdpwssd_v16si_mask,
16790 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16791 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16792 __builtin_ia32_vpdpwssd_v4si_maskz,
16793 __builtin_ia32_vpdpwssds_v16si_mask,
16794 __builtin_ia32_vpdpwssds_v16si_maskz,
16795 __builtin_ia32_vpdpwssds_v8si_mask,
16796 __builtin_ia32_vpdpwssds_v8si_maskz,
16797 __builtin_ia32_vpdpwssds_v4si_mask,
16798 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16799 suffixed types rather than *_INT.
16800 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16801 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16802 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16803 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16804 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16805 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16806
16807 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16808
16809 * tree-vrp.c (intersect_ranges): If we know the intersection is
16810 empty, there is no need to conservatively add anything else to
16811 the set.
16812
16813 2019-07-11 Richard Biener <rguenther@suse.de>
16814
16815 PR middle-end/91131
16816 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
16817 when the object is volatile and we have not cleared it even though
16818 there are no nonzero elements.
16819
16820 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
16821
16822 * config/rs6000/predicates.md (cint34_operand): Update
16823 SIGNED_34BIT_OFFSET_P call.
16824 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
16825 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
16826 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
16827 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
16828 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
16829 argument.
16830 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
16831 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
16832 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
16833 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
16834 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
16835
16836 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
16837
16838 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
16839 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
16840 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
16841 (DEF_MIN_OSX_VERSION): New.
16842
16843 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16844
16845 * fold-const.c (fold_relational_const): Fix folding of
16846 vector-to-scalar NE_EXPRs.
16847 (test_vector_folding): Add more tests.
16848
16849 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
16850
16851 PR target/91060
16852 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
16853 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
16854 (vec_setv2di_internal): Reexpress as...
16855 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
16856 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
16857 rather than gen_neon_vset_lane<mode>.
16858
16859 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
16860
16861 PR target/91102
16862 * lra-constraints.c (process_alt_operands): Don't match user
16863 defined regs only if they are early clobbers.
16864
16865 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
16866
16867 * wide-int.h (wi::lshift): Reject negative values for the fast path.
16868
16869 2019-07-10 Richard Biener <rguenther@suse.de>
16870
16871 PR tree-optimization/91126
16872 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
16873 native encoding offset for BYTES_BIG_ENDIAN.
16874 (vn_reference_lookup_3): Likewise.
16875
16876 2019-07-10 Richard Biener <rguenther@suse.de>
16877
16878 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
16879 LHS whenever possible.
16880
16881 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
16882
16883 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
16884 from ...; work also on duplicated types.
16885 (nonoverlapping_component_refs_since_match): ... here
16886 (ncr_type_uid): Break out from ...
16887 (ncr_compar): ... here; look for TYPE_UID of canonical type if
16888 available.
16889 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
16890 the types and nonoverlapping_component_refs_p_1 to disambiguate.
16891
16892 2019-07-09 Martin Sebor <msebor@redhat.com>
16893
16894 PR tree-optimization/90989
16895 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
16896 optimization to just single character stores.
16897
16898 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
16899
16900 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
16901 Swap operands only once.
16902
16903 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16904
16905 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
16906 for both call instructions.
16907
16908 2019-07-09 John Darrington <john@darrington.wattle.id.au>
16909
16910 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
16911 rather than GET_MODE_BITSIZE to better handle partial integer modes.
16912
16913 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
16914
16915 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
16916 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
16917 function from rs6000-logue.c back to rs6000.c.
16918 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
16919
16920 2019-07-09 Martin Sebor <msebor@redhat.com>
16921
16922 PR c++/61339
16923 * auto-profile.c: Change class-key of PODs to struct and others
16924 to class.
16925 * basic-block.h: Same.
16926 * bitmap.c (bitmap_alloc): Same.
16927 * bitmap.h: Same.
16928 * builtins.c (expand_builtin_prefetch): Same.
16929 (expand_builtin_interclass_mathfn): Same.
16930 (expand_builtin_strlen): Same.
16931 (expand_builtin_mempcpy_args): Same.
16932 (expand_cmpstr): Same.
16933 (expand_builtin___clear_cache): Same.
16934 (expand_ifn_atomic_bit_test_and): Same.
16935 (expand_builtin_thread_pointer): Same.
16936 (expand_builtin_set_thread_pointer): Same.
16937 * caller-save.c (setup_save_areas): Same.
16938 (replace_reg_with_saved_mem): Same.
16939 (insert_restore): Same.
16940 (insert_save): Same.
16941 (add_used_regs): Same.
16942 * cfg.c (get_bb_copy): Same.
16943 (set_loop_copy): Same.
16944 * cfg.h: Same.
16945 * cfganal.h: Same.
16946 * cfgexpand.c (alloc_stack_frame_space): Same.
16947 (add_stack_var): Same.
16948 (add_stack_var_conflict): Same.
16949 (add_scope_conflicts_1): Same.
16950 (update_alias_info_with_stack_vars): Same.
16951 (expand_used_vars): Same.
16952 * cfghooks.c (redirect_edge_and_branch_force): Same.
16953 (delete_basic_block): Same.
16954 (split_edge): Same.
16955 (make_forwarder_block): Same.
16956 (force_nonfallthru): Same.
16957 (duplicate_block): Same.
16958 (lv_flush_pending_stmts): Same.
16959 * cfghooks.h: Same.
16960 * cfgloop.c (flow_loops_cfg_dump): Same.
16961 (flow_loop_nested_p): Same.
16962 (superloop_at_depth): Same.
16963 (get_loop_latch_edges): Same.
16964 (flow_loop_dump): Same.
16965 (flow_loops_dump): Same.
16966 (flow_loops_free): Same.
16967 (flow_loop_nodes_find): Same.
16968 (establish_preds): Same.
16969 (flow_loop_tree_node_add): Same.
16970 (flow_loop_tree_node_remove): Same.
16971 (flow_loops_find): Same.
16972 (find_subloop_latch_edge_by_profile): Same.
16973 (find_subloop_latch_edge_by_ivs): Same.
16974 (mfb_redirect_edges_in_set): Same.
16975 (form_subloop): Same.
16976 (merge_latch_edges): Same.
16977 (disambiguate_multiple_latches): Same.
16978 (disambiguate_loops_with_multiple_latches): Same.
16979 (flow_bb_inside_loop_p): Same.
16980 (glb_enum_p): Same.
16981 (get_loop_body_with_size): Same.
16982 (get_loop_body): Same.
16983 (fill_sons_in_loop): Same.
16984 (get_loop_body_in_dom_order): Same.
16985 (get_loop_body_in_custom_order): Same.
16986 (release_recorded_exits): Same.
16987 (get_loop_exit_edges): Same.
16988 (num_loop_branches): Same.
16989 (remove_bb_from_loops): Same.
16990 (find_common_loop): Same.
16991 (delete_loop): Same.
16992 (cancel_loop): Same.
16993 (verify_loop_structure): Same.
16994 (loop_preheader_edge): Same.
16995 (loop_exit_edge_p): Same.
16996 (single_exit): Same.
16997 (loop_exits_to_bb_p): Same.
16998 (loop_exits_from_bb_p): Same.
16999 (get_loop_location): Same.
17000 (record_niter_bound): Same.
17001 (get_estimated_loop_iterations_int): Same.
17002 (max_stmt_executions_int): Same.
17003 (likely_max_stmt_executions_int): Same.
17004 (get_estimated_loop_iterations): Same.
17005 (get_max_loop_iterations): Same.
17006 (get_max_loop_iterations_int): Same.
17007 (get_likely_max_loop_iterations): Same.
17008 * cfgloop.h (simple_loop_desc): Same.
17009 (get_loop): Same.
17010 (loop_depth): Same.
17011 (loop_outer): Same.
17012 (loop_iterator::next): Same.
17013 (loop_outermost): Same.
17014 * cfgloopanal.c (mark_irreducible_loops): Same.
17015 (num_loop_insns): Same.
17016 (average_num_loop_insns): Same.
17017 (expected_loop_iterations_unbounded): Same.
17018 (expected_loop_iterations): Same.
17019 (mark_loop_exit_edges): Same.
17020 (single_likely_exit): Same.
17021 * cfgloopmanip.c (fix_bb_placement): Same.
17022 (fix_bb_placements): Same.
17023 (remove_path): Same.
17024 (place_new_loop): Same.
17025 (add_loop): Same.
17026 (scale_loop_frequencies): Same.
17027 (scale_loop_profile): Same.
17028 (create_empty_if_region_on_edge): Same.
17029 (create_empty_loop_on_edge): Same.
17030 (loopify): Same.
17031 (unloop): Same.
17032 (fix_loop_placements): Same.
17033 (copy_loop_info): Same.
17034 (duplicate_loop): Same.
17035 (duplicate_subloops): Same.
17036 (loop_redirect_edge): Same.
17037 (can_duplicate_loop_p): Same.
17038 (duplicate_loop_to_header_edge): Same.
17039 (mfb_keep_just): Same.
17040 (has_preds_from_loop): Same.
17041 (create_preheader): Same.
17042 (create_preheaders): Same.
17043 (lv_adjust_loop_entry_edge): Same.
17044 (loop_version): Same.
17045 * cfgloopmanip.h: Same.
17046 * cgraph.h: Same.
17047 * cgraphbuild.c: Same.
17048 * combine.c (make_extraction): Same.
17049 * config/i386/i386-features.c: Same.
17050 * config/i386/i386-features.h: Same.
17051 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
17052 (ix86_emit_outlined_ms2sysv_restore): Same.
17053 (ix86_noce_conversion_profitable_p): Same.
17054 (ix86_init_cost): Same.
17055 (ix86_simd_clone_usable): Same.
17056 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
17057 Wstruct-not-pod.
17058 * coretypes.h: Same.
17059 * data-streamer-in.c (string_for_index): Change class-key of PODs
17060 to struct and others to class.
17061 (streamer_read_indexed_string): Same.
17062 (streamer_read_string): Same.
17063 (bp_unpack_indexed_string): Same.
17064 (bp_unpack_string): Same.
17065 (streamer_read_uhwi): Same.
17066 (streamer_read_hwi): Same.
17067 (streamer_read_gcov_count): Same.
17068 (streamer_read_wide_int): Same.
17069 * data-streamer.h (streamer_write_bitpack): Same.
17070 (bp_unpack_value): Same.
17071 (streamer_write_char_stream): Same.
17072 (streamer_write_hwi_in_range): Same.
17073 (streamer_write_record_start): Same.
17074 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
17075 (add_cross_iteration_register_deps): Same.
17076 (build_intra_loop_deps): Same.
17077 * df-core.c (df_analyze): Same.
17078 (loop_post_order_compute): Same.
17079 (loop_inverted_post_order_compute): Same.
17080 * df-problems.c (df_rd_alloc): Same.
17081 (df_rd_simulate_one_insn): Same.
17082 (df_rd_local_compute): Same.
17083 (df_rd_init_solution): Same.
17084 (df_rd_confluence_n): Same.
17085 (df_rd_transfer_function): Same.
17086 (df_rd_free): Same.
17087 (df_rd_dump_defs_set): Same.
17088 (df_rd_top_dump): Same.
17089 (df_lr_alloc): Same.
17090 (df_lr_reset): Same.
17091 (df_lr_local_compute): Same.
17092 (df_lr_init): Same.
17093 (df_lr_confluence_n): Same.
17094 (df_lr_free): Same.
17095 (df_lr_top_dump): Same.
17096 (df_lr_verify_transfer_functions): Same.
17097 (df_live_alloc): Same.
17098 (df_live_reset): Same.
17099 (df_live_init): Same.
17100 (df_live_confluence_n): Same.
17101 (df_live_finalize): Same.
17102 (df_live_free): Same.
17103 (df_live_top_dump): Same.
17104 (df_live_verify_transfer_functions): Same.
17105 (df_mir_alloc): Same.
17106 (df_mir_reset): Same.
17107 (df_mir_init): Same.
17108 (df_mir_confluence_n): Same.
17109 (df_mir_free): Same.
17110 (df_mir_top_dump): Same.
17111 (df_word_lr_alloc): Same.
17112 (df_word_lr_reset): Same.
17113 (df_word_lr_init): Same.
17114 (df_word_lr_confluence_n): Same.
17115 (df_word_lr_free): Same.
17116 (df_word_lr_top_dump): Same.
17117 (df_md_alloc): Same.
17118 (df_md_simulate_one_insn): Same.
17119 (df_md_reset): Same.
17120 (df_md_init): Same.
17121 (df_md_free): Same.
17122 (df_md_top_dump): Same.
17123 * df-scan.c (df_insn_delete): Same.
17124 (df_insn_rescan): Same.
17125 (df_notes_rescan): Same.
17126 (df_sort_and_compress_mws): Same.
17127 (df_install_mws): Same.
17128 (df_refs_add_to_chains): Same.
17129 (df_ref_create_structure): Same.
17130 (df_ref_record): Same.
17131 (df_def_record_1): Same.
17132 (df_find_hard_reg_defs): Same.
17133 (df_uses_record): Same.
17134 (df_get_conditional_uses): Same.
17135 (df_get_call_refs): Same.
17136 (df_recompute_luids): Same.
17137 (df_get_entry_block_def_set): Same.
17138 (df_entry_block_defs_collect): Same.
17139 (df_get_exit_block_use_set): Same.
17140 (df_exit_block_uses_collect): Same.
17141 (df_mws_verify): Same.
17142 (df_bb_verify): Same.
17143 * df.h (df_scan_get_bb_info): Same.
17144 * doc/tm.texi: Same.
17145 * dse.c (record_store): Same.
17146 * dumpfile.h: Same.
17147 * emit-rtl.c (const_fixed_hasher::equal): Same.
17148 (set_mem_attributes_minus_bitpos): Same.
17149 (change_address): Same.
17150 (adjust_address_1): Same.
17151 (offset_address): Same.
17152 * emit-rtl.h: Same.
17153 * except.c (dw2_build_landing_pads): Same.
17154 (sjlj_emit_dispatch_table): Same.
17155 * explow.c (allocate_dynamic_stack_space): Same.
17156 (emit_stack_probe): Same.
17157 (probe_stack_range): Same.
17158 * expmed.c (store_bit_field_using_insv): Same.
17159 (store_bit_field_1): Same.
17160 (store_integral_bit_field): Same.
17161 (extract_bit_field_using_extv): Same.
17162 (extract_bit_field_1): Same.
17163 (emit_cstore): Same.
17164 * expr.c (emit_block_move_via_cpymem): Same.
17165 (expand_cmpstrn_or_cmpmem): Same.
17166 (set_storage_via_setmem): Same.
17167 (emit_single_push_insn_1): Same.
17168 (expand_assignment): Same.
17169 (store_constructor): Same.
17170 (expand_expr_real_2): Same.
17171 (expand_expr_real_1): Same.
17172 (try_casesi): Same.
17173 * flags.h: Same.
17174 * function.c (try_fit_stack_local): Same.
17175 (assign_stack_local_1): Same.
17176 (assign_stack_local): Same.
17177 (cut_slot_from_list): Same.
17178 (insert_slot_to_list): Same.
17179 (max_slot_level): Same.
17180 (move_slot_to_level): Same.
17181 (temp_address_hasher::equal): Same.
17182 (remove_unused_temp_slot_addresses): Same.
17183 (assign_temp): Same.
17184 (combine_temp_slots): Same.
17185 (update_temp_slot_address): Same.
17186 (preserve_temp_slots): Same.
17187 * function.h: Same.
17188 * fwprop.c: Same.
17189 * gcc-rich-location.h: Same.
17190 * gcov.c: Same.
17191 * genattrtab.c (check_attr_test): Same.
17192 (check_attr_value): Same.
17193 (convert_set_attr_alternative): Same.
17194 (convert_set_attr): Same.
17195 (check_defs): Same.
17196 (copy_boolean): Same.
17197 (get_attr_value): Same.
17198 (expand_delays): Same.
17199 (make_length_attrs): Same.
17200 (min_fn): Same.
17201 (make_alternative_compare): Same.
17202 (simplify_test_exp): Same.
17203 (tests_attr_p): Same.
17204 (get_attr_order): Same.
17205 (clear_struct_flag): Same.
17206 (gen_attr): Same.
17207 (compares_alternatives_p): Same.
17208 (gen_insn): Same.
17209 (gen_delay): Same.
17210 (find_attrs_to_cache): Same.
17211 (write_test_expr): Same.
17212 (walk_attr_value): Same.
17213 (write_attr_get): Same.
17214 (eliminate_known_true): Same.
17215 (write_insn_cases): Same.
17216 (write_attr_case): Same.
17217 (write_attr_valueq): Same.
17218 (write_attr_value): Same.
17219 (write_dummy_eligible_delay): Same.
17220 (next_comma_elt): Same.
17221 (find_attr): Same.
17222 (make_internal_attr): Same.
17223 (copy_rtx_unchanging): Same.
17224 (gen_insn_reserv): Same.
17225 (check_tune_attr): Same.
17226 (make_automaton_attrs): Same.
17227 (handle_arg): Same.
17228 * genextract.c (gen_insn): Same.
17229 (VEC_char_to_string): Same.
17230 * genmatch.c (print_operand): Same.
17231 (lower): Same.
17232 (parser::parse_operation): Same.
17233 (parser::parse_capture): Same.
17234 (parser::parse_c_expr): Same.
17235 (parser::parse_simplify): Same.
17236 (main): Same.
17237 * genoutput.c (output_operand_data): Same.
17238 (output_get_insn_name): Same.
17239 (compare_operands): Same.
17240 (place_operands): Same.
17241 (process_template): Same.
17242 (validate_insn_alternatives): Same.
17243 (validate_insn_operands): Same.
17244 (gen_expand): Same.
17245 (note_constraint): Same.
17246 * genpreds.c (write_one_predicate_function): Same.
17247 (add_constraint): Same.
17248 (process_define_register_constraint): Same.
17249 (write_lookup_constraint_1): Same.
17250 (write_lookup_constraint_array): Same.
17251 (write_insn_constraint_len): Same.
17252 (write_reg_class_for_constraint_1): Same.
17253 (write_constraint_satisfied_p_array): Same.
17254 * genrecog.c (optimize_subroutine_group): Same.
17255 * gensupport.c (process_define_predicate): Same.
17256 (queue_pattern): Same.
17257 (remove_from_queue): Same.
17258 (process_rtx): Same.
17259 (is_predicable): Same.
17260 (change_subst_attribute): Same.
17261 (subst_pattern_match): Same.
17262 (alter_constraints): Same.
17263 (alter_attrs_for_insn): Same.
17264 (shift_output_template): Same.
17265 (alter_output_for_subst_insn): Same.
17266 (process_one_cond_exec): Same.
17267 (subst_dup): Same.
17268 (process_define_cond_exec): Same.
17269 (mnemonic_htab_callback): Same.
17270 (gen_mnemonic_attr): Same.
17271 (read_md_rtx): Same.
17272 * ggc-page.c: Same.
17273 * gimple-loop-interchange.cc (dump_reduction): Same.
17274 (dump_induction): Same.
17275 (loop_cand::~loop_cand): Same.
17276 (free_data_refs_with_aux): Same.
17277 (tree_loop_interchange::interchange_loops): Same.
17278 (tree_loop_interchange::map_inductions_to_loop): Same.
17279 (tree_loop_interchange::move_code_to_inner_loop): Same.
17280 (compute_access_stride): Same.
17281 (compute_access_strides): Same.
17282 (proper_loop_form_for_interchange): Same.
17283 (tree_loop_interchange_compute_ddrs): Same.
17284 (prune_datarefs_not_in_loop): Same.
17285 (prepare_data_references): Same.
17286 (pass_linterchange::execute): Same.
17287 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17288 (unroll_jam_possible_p): Same.
17289 (fuse_loops): Same.
17290 (adjust_unroll_factor): Same.
17291 (tree_loop_unroll_and_jam): Same.
17292 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17293 (loop_versioning::expensive_stmt_p): Same.
17294 (loop_versioning::version_for_unity): Same.
17295 (loop_versioning::dump_inner_likelihood): Same.
17296 (loop_versioning::find_per_loop_multiplication): Same.
17297 (loop_versioning::analyze_term_using_scevs): Same.
17298 (loop_versioning::record_address_fragment): Same.
17299 (loop_versioning::analyze_expr): Same.
17300 (loop_versioning::analyze_blocks): Same.
17301 (loop_versioning::prune_conditions): Same.
17302 (loop_versioning::merge_loop_info): Same.
17303 (loop_versioning::add_loop_to_queue): Same.
17304 (loop_versioning::decide_whether_loop_is_versionable): Same.
17305 (loop_versioning::make_versioning_decisions): Same.
17306 (loop_versioning::implement_versioning_decisions): Same.
17307 * gimple-ssa-evrp-analyze.c
17308 (evrp_range_analyzer::record_ranges_from_phis): Same.
17309 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17310 (count_multiple_uses): Same.
17311 (split_group): Same.
17312 (imm_store_chain_info::output_merged_store): Same.
17313 (pass_store_merging::process_store): Same.
17314 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17315 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17316 (is_max): Same.
17317 (alloca_call_type): Same.
17318 (pass_walloca::execute): Same.
17319 * gimple-streamer-in.c (input_phi): Same.
17320 (input_gimple_stmt): Same.
17321 * gimple-streamer.h: Same.
17322 * godump.c (go_force_record_alignment): Same.
17323 (go_format_type): Same.
17324 (go_output_type): Same.
17325 (go_output_fndecl): Same.
17326 (go_output_typedef): Same.
17327 (keyword_hash_init): Same.
17328 (find_dummy_types): Same.
17329 * graph.c (draw_cfg_nodes_no_loops): Same.
17330 (draw_cfg_nodes_for_loop): Same.
17331 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17332 * hsa-brig.c: Same.
17333 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17334 * hsa-dump.c (dump_hsa_cfun): Same.
17335 * hsa-gen.c (gen_function_def_parameters): Same.
17336 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17337 * input.c (dump_line_table_statistics): Same.
17338 (test_lexer): Same.
17339 * input.h: Same.
17340 * internal-fn.c (get_multi_vector_move): Same.
17341 (expand_load_lanes_optab_fn): Same.
17342 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17343 (expand_GOMP_SIMT_EXIT): Same.
17344 (expand_GOMP_SIMT_LAST_LANE): Same.
17345 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17346 (expand_GOMP_SIMT_VOTE_ANY): Same.
17347 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17348 (expand_GOMP_SIMT_XCHG_IDX): Same.
17349 (expand_addsub_overflow): Same.
17350 (expand_neg_overflow): Same.
17351 (expand_mul_overflow): Same.
17352 (expand_call_mem_ref): Same.
17353 (expand_mask_load_optab_fn): Same.
17354 (expand_scatter_store_optab_fn): Same.
17355 (expand_gather_load_optab_fn): Same.
17356 * ipa-cp.c (ipa_get_parm_lattices): Same.
17357 (print_all_lattices): Same.
17358 (ignore_edge_p): Same.
17359 (build_toporder_info): Same.
17360 (free_toporder_info): Same.
17361 (push_node_to_stack): Same.
17362 (ipcp_lattice<valtype>::set_contains_variable): Same.
17363 (set_agg_lats_to_bottom): Same.
17364 (ipcp_bits_lattice::meet_with): Same.
17365 (set_single_call_flag): Same.
17366 (initialize_node_lattices): Same.
17367 (ipa_get_jf_ancestor_result): Same.
17368 (ipcp_verify_propagated_values): Same.
17369 (propagate_scalar_across_jump_function): Same.
17370 (propagate_context_across_jump_function): Same.
17371 (propagate_bits_across_jump_function): Same.
17372 (ipa_vr_operation_and_type_effects): Same.
17373 (propagate_vr_across_jump_function): Same.
17374 (set_check_aggs_by_ref): Same.
17375 (set_chain_of_aglats_contains_variable): Same.
17376 (merge_aggregate_lattices): Same.
17377 (agg_pass_through_permissible_p): Same.
17378 (propagate_aggs_across_jump_function): Same.
17379 (call_passes_through_thunk_p): Same.
17380 (propagate_constants_across_call): Same.
17381 (devirtualization_time_bonus): Same.
17382 (good_cloning_opportunity_p): Same.
17383 (context_independent_aggregate_values): Same.
17384 (gather_context_independent_values): Same.
17385 (perform_estimation_of_a_value): Same.
17386 (estimate_local_effects): Same.
17387 (value_topo_info<valtype>::add_val): Same.
17388 (add_all_node_vals_to_toposort): Same.
17389 (value_topo_info<valtype>::propagate_effects): Same.
17390 (ipcp_propagate_stage): Same.
17391 (ipcp_discover_new_direct_edges): Same.
17392 (same_node_or_its_all_contexts_clone_p): Same.
17393 (cgraph_edge_brings_value_p): Same.
17394 (gather_edges_for_value): Same.
17395 (create_specialized_node): Same.
17396 (find_more_scalar_values_for_callers_subset): Same.
17397 (find_more_contexts_for_caller_subset): Same.
17398 (copy_plats_to_inter): Same.
17399 (intersect_aggregates_with_edge): Same.
17400 (find_aggregate_values_for_callers_subset): Same.
17401 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17402 (decide_about_value): Same.
17403 (decide_whether_version_node): Same.
17404 (spread_undeadness): Same.
17405 (identify_dead_nodes): Same.
17406 (ipcp_store_vr_results): Same.
17407 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17408 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17409 (redirect_to_unreachable): Same.
17410 (edge_set_predicate): Same.
17411 (evaluate_conditions_for_known_args): Same.
17412 (evaluate_properties_for_edge): Same.
17413 (ipa_fn_summary_t::duplicate): Same.
17414 (ipa_call_summary_t::duplicate): Same.
17415 (dump_ipa_call_summary): Same.
17416 (ipa_dump_fn_summary): Same.
17417 (eliminated_by_inlining_prob): Same.
17418 (set_cond_stmt_execution_predicate): Same.
17419 (set_switch_stmt_execution_predicate): Same.
17420 (compute_bb_predicates): Same.
17421 (will_be_nonconstant_expr_predicate): Same.
17422 (phi_result_unknown_predicate): Same.
17423 (analyze_function_body): Same.
17424 (compute_fn_summary): Same.
17425 (estimate_edge_devirt_benefit): Same.
17426 (estimate_edge_size_and_time): Same.
17427 (estimate_calls_size_and_time): Same.
17428 (estimate_node_size_and_time): Same.
17429 (remap_edge_change_prob): Same.
17430 (remap_edge_summaries): Same.
17431 (ipa_merge_fn_summary_after_inlining): Same.
17432 (ipa_fn_summary_generate): Same.
17433 (inline_read_section): Same.
17434 (ipa_fn_summary_read): Same.
17435 (ipa_fn_summary_write): Same.
17436 * ipa-fnsummary.h: Same.
17437 * ipa-hsa.c (ipa_hsa_read_section): Same.
17438 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17439 * ipa-icf.c (sem_function::param_used_p): Same.
17440 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17441 * ipa-inline.c (edge_badness): Same.
17442 (inline_small_functions): Same.
17443 * ipa-polymorphic-call.c
17444 (ipa_polymorphic_call_context::stream_out): Same.
17445 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17446 (predicate::remap_after_inlining): Same.
17447 (predicate::stream_out): Same.
17448 * ipa-predicate.h: Same.
17449 * ipa-profile.c (ipa_profile_read_summary): Same.
17450 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17451 (count_formal_params): Same.
17452 (ipa_dump_param): Same.
17453 (ipa_alloc_node_params): Same.
17454 (ipa_print_node_jump_functions_for_edge): Same.
17455 (ipa_print_node_jump_functions): Same.
17456 (ipa_load_from_parm_agg): Same.
17457 (get_ancestor_addr_info): Same.
17458 (ipa_compute_jump_functions_for_edge): Same.
17459 (ipa_analyze_virtual_call_uses): Same.
17460 (ipa_analyze_stmt_uses): Same.
17461 (ipa_analyze_params_uses_in_bb): Same.
17462 (update_jump_functions_after_inlining): Same.
17463 (try_decrement_rdesc_refcount): Same.
17464 (ipa_impossible_devirt_target): Same.
17465 (update_indirect_edges_after_inlining): Same.
17466 (combine_controlled_uses_counters): Same.
17467 (ipa_edge_args_sum_t::duplicate): Same.
17468 (ipa_write_jump_function): Same.
17469 (ipa_write_indirect_edge_info): Same.
17470 (ipa_write_node_info): Same.
17471 (ipa_read_edge_info): Same.
17472 (ipa_prop_read_section): Same.
17473 (read_replacements_section): Same.
17474 * ipa-prop.h (ipa_get_param_count): Same.
17475 (ipa_get_param): Same.
17476 (ipa_get_type): Same.
17477 (ipa_get_param_move_cost): Same.
17478 (ipa_set_param_used): Same.
17479 (ipa_get_controlled_uses): Same.
17480 (ipa_set_controlled_uses): Same.
17481 (ipa_get_cs_argument_count): Same.
17482 * ipa-pure-const.c (analyze_function): Same.
17483 (pure_const_read_summary): Same.
17484 * ipa-ref.h: Same.
17485 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17486 * ipa-split.c (test_nonssa_use): Same.
17487 (dump_split_point): Same.
17488 (dominated_by_forbidden): Same.
17489 (split_part_set_ssa_name_p): Same.
17490 (find_split_points): Same.
17491 * ira-build.c (finish_loop_tree_nodes): Same.
17492 (low_pressure_loop_node_p): Same.
17493 * ira-color.c (ira_reuse_stack_slot): Same.
17494 * ira-int.h: Same.
17495 * ira.c (setup_reg_equiv): Same.
17496 (print_insn_chain): Same.
17497 (ira): Same.
17498 * loop-doloop.c (doloop_condition_get): Same.
17499 (add_test): Same.
17500 (record_reg_sets): Same.
17501 (doloop_optimize): Same.
17502 * loop-init.c (loop_optimizer_init): Same.
17503 (fix_loop_structure): Same.
17504 * loop-invariant.c (merge_identical_invariants): Same.
17505 (compute_always_reached): Same.
17506 (find_exits): Same.
17507 (may_assign_reg_p): Same.
17508 (find_invariants_bb): Same.
17509 (find_invariants_body): Same.
17510 (replace_uses): Same.
17511 (can_move_invariant_reg): Same.
17512 (free_inv_motion_data): Same.
17513 (move_single_loop_invariants): Same.
17514 (change_pressure): Same.
17515 (mark_ref_regs): Same.
17516 (calculate_loop_reg_pressure): Same.
17517 * loop-iv.c (biv_entry_hasher::equal): Same.
17518 (iv_extend_to_rtx_code): Same.
17519 (check_iv_ref_table_size): Same.
17520 (clear_iv_info): Same.
17521 (latch_dominating_def): Same.
17522 (iv_get_reaching_def): Same.
17523 (iv_constant): Same.
17524 (iv_subreg): Same.
17525 (iv_extend): Same.
17526 (iv_neg): Same.
17527 (iv_add): Same.
17528 (iv_mult): Same.
17529 (get_biv_step): Same.
17530 (record_iv): Same.
17531 (analyzed_for_bivness_p): Same.
17532 (record_biv): Same.
17533 (iv_analyze_biv): Same.
17534 (iv_analyze_expr): Same.
17535 (iv_analyze_def): Same.
17536 (iv_analyze_op): Same.
17537 (iv_analyze): Same.
17538 (iv_analyze_result): Same.
17539 (biv_p): Same.
17540 (eliminate_implied_conditions): Same.
17541 (simplify_using_initial_values): Same.
17542 (shorten_into_mode): Same.
17543 (canonicalize_iv_subregs): Same.
17544 (determine_max_iter): Same.
17545 (check_simple_exit): Same.
17546 (find_simple_exit): Same.
17547 (get_simple_loop_desc): Same.
17548 * loop-unroll.c (report_unroll): Same.
17549 (decide_unrolling): Same.
17550 (unroll_loops): Same.
17551 (loop_exit_at_end_p): Same.
17552 (decide_unroll_constant_iterations): Same.
17553 (unroll_loop_constant_iterations): Same.
17554 (compare_and_jump_seq): Same.
17555 (unroll_loop_runtime_iterations): Same.
17556 (decide_unroll_stupid): Same.
17557 (unroll_loop_stupid): Same.
17558 (referenced_in_one_insn_in_loop_p): Same.
17559 (reset_debug_uses_in_loop): Same.
17560 (analyze_iv_to_split_insn): Same.
17561 * lra-eliminations.c (lra_debug_elim_table): Same.
17562 (setup_can_eliminate): Same.
17563 (form_sum): Same.
17564 (lra_get_elimination_hard_regno): Same.
17565 (lra_eliminate_regs_1): Same.
17566 (eliminate_regs_in_insn): Same.
17567 (update_reg_eliminate): Same.
17568 (init_elimination): Same.
17569 (lra_eliminate): Same.
17570 * lra-int.h: Same.
17571 * lra-lives.c (initiate_live_solver): Same.
17572 * lra-remat.c (create_remat_bb_data): Same.
17573 * lra-spills.c (lra_spill): Same.
17574 * lra.c (lra_set_insn_recog_data): Same.
17575 (lra_set_used_insn_alternative_by_uid): Same.
17576 (init_reg_info): Same.
17577 (expand_reg_info): Same.
17578 * lto-cgraph.c (output_symtab): Same.
17579 (read_identifier): Same.
17580 (get_alias_symbol): Same.
17581 (input_node): Same.
17582 (input_varpool_node): Same.
17583 (input_ref): Same.
17584 (input_edge): Same.
17585 (input_cgraph_1): Same.
17586 (input_refs): Same.
17587 (input_symtab): Same.
17588 (input_offload_tables): Same.
17589 (output_cgraph_opt_summary): Same.
17590 (input_edge_opt_summary): Same.
17591 (input_cgraph_opt_section): Same.
17592 * lto-section-in.c (lto_free_raw_section_data): Same.
17593 (lto_create_simple_input_block): Same.
17594 (lto_free_function_in_decl_state_for_node): Same.
17595 * lto-streamer-in.c (lto_tag_check_set): Same.
17596 (lto_location_cache::revert_location_cache): Same.
17597 (lto_location_cache::input_location): Same.
17598 (lto_input_location): Same.
17599 (stream_input_location_now): Same.
17600 (lto_input_tree_ref): Same.
17601 (lto_input_eh_catch_list): Same.
17602 (input_eh_region): Same.
17603 (lto_init_eh): Same.
17604 (make_new_block): Same.
17605 (input_cfg): Same.
17606 (fixup_call_stmt_edges): Same.
17607 (input_struct_function_base): Same.
17608 (input_function): Same.
17609 (lto_read_body_or_constructor): Same.
17610 (lto_read_tree_1): Same.
17611 (lto_read_tree): Same.
17612 (lto_input_scc): Same.
17613 (lto_input_tree_1): Same.
17614 (lto_input_toplevel_asms): Same.
17615 (lto_input_mode_table): Same.
17616 (lto_reader_init): Same.
17617 (lto_data_in_create): Same.
17618 * lto-streamer-out.c (output_cfg): Same.
17619 * lto-streamer.h: Same.
17620 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17621 (generate_prolog_epilog): Same.
17622 (mark_loop_unsched): Same.
17623 (dump_insn_location): Same.
17624 (loop_canon_p): Same.
17625 (sms_schedule): Same.
17626 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17627 (expand_omp_for_generic): Same.
17628 (expand_omp_for_static_nochunk): Same.
17629 (expand_omp_for_static_chunk): Same.
17630 (expand_omp_simd): Same.
17631 (expand_omp_taskloop_for_inner): Same.
17632 (expand_oacc_for): Same.
17633 (expand_omp_atomic_pipeline): Same.
17634 (mark_loops_in_oacc_kernels_region): Same.
17635 * omp-offload.c (oacc_xform_loop): Same.
17636 * omp-simd-clone.c (simd_clone_adjust): Same.
17637 * optabs-query.c (get_traditional_extraction_insn): Same.
17638 * optabs.c (expand_vector_broadcast): Same.
17639 (expand_binop_directly): Same.
17640 (expand_twoval_unop): Same.
17641 (expand_twoval_binop): Same.
17642 (expand_unop_direct): Same.
17643 (emit_indirect_jump): Same.
17644 (emit_conditional_move): Same.
17645 (emit_conditional_neg_or_complement): Same.
17646 (emit_conditional_add): Same.
17647 (vector_compare_rtx): Same.
17648 (expand_vec_perm_1): Same.
17649 (expand_vec_perm_const): Same.
17650 (expand_vec_cond_expr): Same.
17651 (expand_vec_series_expr): Same.
17652 (maybe_emit_atomic_exchange): Same.
17653 (maybe_emit_sync_lock_test_and_set): Same.
17654 (expand_atomic_compare_and_swap): Same.
17655 (expand_atomic_load): Same.
17656 (expand_atomic_store): Same.
17657 (maybe_emit_op): Same.
17658 (valid_multiword_target_p): Same.
17659 (create_integer_operand): Same.
17660 (maybe_legitimize_operand_same_code): Same.
17661 (maybe_legitimize_operand): Same.
17662 (create_convert_operand_from_type): Same.
17663 (can_reuse_operands_p): Same.
17664 (maybe_legitimize_operands): Same.
17665 (maybe_gen_insn): Same.
17666 (maybe_expand_insn): Same.
17667 (maybe_expand_jump_insn): Same.
17668 (expand_insn): Same.
17669 * optabs.h (create_expand_operand): Same.
17670 (create_fixed_operand): Same.
17671 (create_output_operand): Same.
17672 (create_input_operand): Same.
17673 (create_convert_operand_to): Same.
17674 (create_convert_operand_from): Same.
17675 * optinfo.h: Same.
17676 * poly-int.h: Same.
17677 * predict.c (optimize_insn_for_speed_p): Same.
17678 (optimize_loop_for_size_p): Same.
17679 (optimize_loop_for_speed_p): Same.
17680 (optimize_loop_nest_for_speed_p): Same.
17681 (get_base_value): Same.
17682 (predicted_by_loop_heuristics_p): Same.
17683 (predict_extra_loop_exits): Same.
17684 (predict_loops): Same.
17685 (predict_paths_for_bb): Same.
17686 (predict_paths_leading_to): Same.
17687 (propagate_freq): Same.
17688 (pass_profile::execute): Same.
17689 * predict.h: Same.
17690 * profile-count.c (profile_count::differs_from_p): Same.
17691 (profile_probability::differs_lot_from_p): Same.
17692 * profile-count.h: Same.
17693 * profile.c (branch_prob): Same.
17694 * regrename.c (free_chain_data): Same.
17695 (mark_conflict): Same.
17696 (create_new_chain): Same.
17697 (merge_overlapping_regs): Same.
17698 (init_rename_info): Same.
17699 (merge_chains): Same.
17700 (regrename_analyze): Same.
17701 (regrename_do_replace): Same.
17702 (scan_rtx_reg): Same.
17703 (record_out_operands): Same.
17704 (build_def_use): Same.
17705 * regrename.h: Same.
17706 * reload.h: Same.
17707 * reload1.c (init_reload): Same.
17708 (maybe_fix_stack_asms): Same.
17709 (copy_reloads): Same.
17710 (count_pseudo): Same.
17711 (count_spilled_pseudo): Same.
17712 (find_reg): Same.
17713 (find_reload_regs): Same.
17714 (select_reload_regs): Same.
17715 (spill_hard_reg): Same.
17716 (fixup_eh_region_note): Same.
17717 (set_reload_reg): Same.
17718 (allocate_reload_reg): Same.
17719 (compute_reload_subreg_offset): Same.
17720 (reload_adjust_reg_for_icode): Same.
17721 (emit_input_reload_insns): Same.
17722 (emit_output_reload_insns): Same.
17723 (do_input_reload): Same.
17724 (inherit_piecemeal_p): Same.
17725 * rtl.h: Same.
17726 * sanopt.c (maybe_get_dominating_check): Same.
17727 (maybe_optimize_ubsan_ptr_ifn): Same.
17728 (can_remove_asan_check): Same.
17729 (maybe_optimize_asan_check_ifn): Same.
17730 (sanopt_optimize_walker): Same.
17731 * sched-deps.c (add_dependence_list): Same.
17732 (chain_to_prev_insn): Same.
17733 (add_insn_mem_dependence): Same.
17734 (create_insn_reg_set): Same.
17735 (maybe_extend_reg_info_p): Same.
17736 (sched_analyze_reg): Same.
17737 (sched_analyze_1): Same.
17738 (get_implicit_reg_pending_clobbers): Same.
17739 (chain_to_prev_insn_p): Same.
17740 (deps_analyze_insn): Same.
17741 (deps_start_bb): Same.
17742 (sched_free_deps): Same.
17743 (init_deps): Same.
17744 (init_deps_reg_last): Same.
17745 (free_deps): Same.
17746 * sched-ebb.c: Same.
17747 * sched-int.h: Same.
17748 * sched-rgn.c (add_branch_dependences): Same.
17749 (concat_insn_mem_list): Same.
17750 (deps_join): Same.
17751 (sched_rgn_compute_dependencies): Same.
17752 * sel-sched-ir.c (reset_target_context): Same.
17753 (copy_deps_context): Same.
17754 (init_id_from_df): Same.
17755 (has_dependence_p): Same.
17756 (change_loops_latches): Same.
17757 (bb_top_order_comparator): Same.
17758 (make_region_from_loop_preheader): Same.
17759 (sel_init_pipelining): Same.
17760 (get_loop_nest_for_rgn): Same.
17761 (make_regions_from_the_rest): Same.
17762 (sel_is_loop_preheader_p): Same.
17763 * sel-sched-ir.h (inner_loop_header_p): Same.
17764 (get_all_loop_exits): Same.
17765 * selftest.h: Same.
17766 * sese.c (sese_build_liveouts): Same.
17767 (sese_insert_phis_for_liveouts): Same.
17768 * sese.h (defined_in_sese_p): Same.
17769 * sreal.c (sreal::stream_out): Same.
17770 * sreal.h: Same.
17771 * streamer-hooks.h: Same.
17772 * target-globals.c (save_target_globals): Same.
17773 * target-globals.h: Same.
17774 * target.def: Same.
17775 * target.h: Same.
17776 * targhooks.c (default_has_ifunc_p): Same.
17777 (default_empty_mask_is_expensive): Same.
17778 (default_init_cost): Same.
17779 * targhooks.h: Same.
17780 * toplev.c: Same.
17781 * tree-affine.c (aff_combination_mult): Same.
17782 (aff_combination_expand): Same.
17783 (aff_combination_constant_multiple_p): Same.
17784 * tree-affine.h: Same.
17785 * tree-cfg.c (build_gimple_cfg): Same.
17786 (replace_loop_annotate_in_block): Same.
17787 (replace_uses_by): Same.
17788 (remove_bb): Same.
17789 (dump_cfg_stats): Same.
17790 (gimple_duplicate_sese_region): Same.
17791 (gimple_duplicate_sese_tail): Same.
17792 (move_block_to_fn): Same.
17793 (replace_block_vars_by_duplicates): Same.
17794 (move_sese_region_to_fn): Same.
17795 (print_loops_bb): Same.
17796 (print_loop): Same.
17797 (print_loops): Same.
17798 (debug): Same.
17799 (debug_loops): Same.
17800 * tree-cfg.h: Same.
17801 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17802 (chrec_fold_multiply_poly_poly): Same.
17803 (chrec_evaluate): Same.
17804 (chrec_component_in_loop_num): Same.
17805 (reset_evolution_in_loop): Same.
17806 (is_multivariate_chrec): Same.
17807 (chrec_contains_symbols): Same.
17808 (nb_vars_in_chrec): Same.
17809 (chrec_convert_1): Same.
17810 (chrec_convert_aggressive): Same.
17811 * tree-chrec.h: Same.
17812 * tree-core.h: Same.
17813 * tree-data-ref.c (dump_data_dependence_relation): Same.
17814 (canonicalize_base_object_address): Same.
17815 (data_ref_compare_tree): Same.
17816 (prune_runtime_alias_test_list): Same.
17817 (get_segment_min_max): Same.
17818 (create_intersect_range_checks): Same.
17819 (conflict_fn_no_dependence): Same.
17820 (object_address_invariant_in_loop_p): Same.
17821 (analyze_ziv_subscript): Same.
17822 (analyze_siv_subscript_cst_affine): Same.
17823 (analyze_miv_subscript): Same.
17824 (analyze_overlapping_iterations): Same.
17825 (build_classic_dist_vector_1): Same.
17826 (add_other_self_distances): Same.
17827 (same_access_functions): Same.
17828 (build_classic_dir_vector): Same.
17829 (subscript_dependence_tester_1): Same.
17830 (subscript_dependence_tester): Same.
17831 (access_functions_are_affine_or_constant_p): Same.
17832 (get_references_in_stmt): Same.
17833 (loop_nest_has_data_refs): Same.
17834 (graphite_find_data_references_in_stmt): Same.
17835 (find_data_references_in_bb): Same.
17836 (get_base_for_alignment): Same.
17837 (find_loop_nest_1): Same.
17838 (find_loop_nest): Same.
17839 * tree-data-ref.h (dr_alignment): Same.
17840 (ddr_dependence_level): Same.
17841 * tree-if-conv.c (fold_build_cond_expr): Same.
17842 (add_to_predicate_list): Same.
17843 (add_to_dst_predicate_list): Same.
17844 (phi_convertible_by_degenerating_args): Same.
17845 (idx_within_array_bound): Same.
17846 (all_preds_critical_p): Same.
17847 (pred_blocks_visited_p): Same.
17848 (predicate_bbs): Same.
17849 (build_region): Same.
17850 (if_convertible_loop_p_1): Same.
17851 (is_cond_scalar_reduction): Same.
17852 (predicate_scalar_phi): Same.
17853 (remove_conditions_and_labels): Same.
17854 (combine_blocks): Same.
17855 (version_loop_for_if_conversion): Same.
17856 (versionable_outer_loop_p): Same.
17857 (ifcvt_local_dce): Same.
17858 (tree_if_conversion): Same.
17859 (pass_if_conversion::gate): Same.
17860 * tree-if-conv.h: Same.
17861 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
17862 * tree-loop-distribution.c (bb_top_order_cmp): Same.
17863 (free_rdg): Same.
17864 (stmt_has_scalar_dependences_outside_loop): Same.
17865 (copy_loop_before): Same.
17866 (create_bb_after_loop): Same.
17867 (const_with_all_bytes_same): Same.
17868 (generate_memset_builtin): Same.
17869 (generate_memcpy_builtin): Same.
17870 (destroy_loop): Same.
17871 (build_rdg_partition_for_vertex): Same.
17872 (compute_access_range): Same.
17873 (data_ref_segment_size): Same.
17874 (latch_dominated_by_data_ref): Same.
17875 (compute_alias_check_pairs): Same.
17876 (fuse_memset_builtins): Same.
17877 (finalize_partitions): Same.
17878 (find_seed_stmts_for_distribution): Same.
17879 (prepare_perfect_loop_nest): Same.
17880 * tree-parloops.c (lambda_transform_legal_p): Same.
17881 (loop_parallel_p): Same.
17882 (reduc_stmt_res): Same.
17883 (add_field_for_name): Same.
17884 (create_call_for_reduction_1): Same.
17885 (replace_uses_in_bb_by): Same.
17886 (transform_to_exit_first_loop_alt): Same.
17887 (try_transform_to_exit_first_loop_alt): Same.
17888 (transform_to_exit_first_loop): Same.
17889 (num_phis): Same.
17890 (gen_parallel_loop): Same.
17891 (gather_scalar_reductions): Same.
17892 (get_omp_data_i_param): Same.
17893 (try_create_reduction_list): Same.
17894 (oacc_entry_exit_single_gang): Same.
17895 (parallelize_loops): Same.
17896 * tree-pass.h: Same.
17897 * tree-predcom.c (determine_offset): Same.
17898 (last_always_executed_block): Same.
17899 (split_data_refs_to_components): Same.
17900 (suitable_component_p): Same.
17901 (valid_initializer_p): Same.
17902 (find_looparound_phi): Same.
17903 (insert_looparound_copy): Same.
17904 (add_looparound_copies): Same.
17905 (determine_roots_comp): Same.
17906 (predcom_tmp_var): Same.
17907 (initialize_root_vars): Same.
17908 (initialize_root_vars_store_elim_1): Same.
17909 (initialize_root_vars_store_elim_2): Same.
17910 (finalize_eliminated_stores): Same.
17911 (initialize_root_vars_lm): Same.
17912 (remove_stmt): Same.
17913 (determine_unroll_factor): Same.
17914 (execute_pred_commoning_cbck): Same.
17915 (base_names_in_chain_on): Same.
17916 (combine_chains): Same.
17917 (pcom_stmt_dominates_stmt_p): Same.
17918 (try_combine_chains): Same.
17919 (prepare_initializers_chain_store_elim): Same.
17920 (prepare_initializers_chain): Same.
17921 (prepare_initializers): Same.
17922 (prepare_finalizers_chain): Same.
17923 (prepare_finalizers): Same.
17924 (insert_init_seqs): Same.
17925 * tree-scalar-evolution.c (loop_phi_node_p): Same.
17926 (compute_overall_effect_of_inner_loop): Same.
17927 (add_to_evolution_1): Same.
17928 (add_to_evolution): Same.
17929 (follow_ssa_edge_binary): Same.
17930 (follow_ssa_edge_expr): Same.
17931 (backedge_phi_arg_p): Same.
17932 (follow_ssa_edge_in_condition_phi_branch): Same.
17933 (follow_ssa_edge_in_condition_phi): Same.
17934 (follow_ssa_edge_inner_loop_phi): Same.
17935 (follow_ssa_edge): Same.
17936 (analyze_evolution_in_loop): Same.
17937 (analyze_initial_condition): Same.
17938 (interpret_loop_phi): Same.
17939 (interpret_condition_phi): Same.
17940 (interpret_rhs_expr): Same.
17941 (interpret_expr): Same.
17942 (interpret_gimple_assign): Same.
17943 (analyze_scalar_evolution_1): Same.
17944 (analyze_scalar_evolution): Same.
17945 (analyze_scalar_evolution_for_address_of): Same.
17946 (get_instantiated_value_entry): Same.
17947 (loop_closed_phi_def): Same.
17948 (instantiate_scev_name): Same.
17949 (instantiate_scev_poly): Same.
17950 (instantiate_scev_binary): Same.
17951 (instantiate_scev_convert): Same.
17952 (instantiate_scev_not): Same.
17953 (instantiate_scev_r): Same.
17954 (instantiate_scev): Same.
17955 (resolve_mixers): Same.
17956 (initialize_scalar_evolutions_analyzer): Same.
17957 (scev_reset_htab): Same.
17958 (scev_reset): Same.
17959 (derive_simple_iv_with_niters): Same.
17960 (simple_iv_with_niters): Same.
17961 (expression_expensive_p): Same.
17962 (final_value_replacement_loop): Same.
17963 * tree-scalar-evolution.h (block_before_loop): Same.
17964 * tree-ssa-address.h: Same.
17965 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
17966 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
17967 (record_edge_info): Same.
17968 * tree-ssa-live.c (var_map_base_fini): Same.
17969 (remove_unused_locals): Same.
17970 * tree-ssa-live.h: Same.
17971 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
17972 (pass_ch_vect::execute): Same.
17973 (pass_ch::process_loop_p): Same.
17974 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
17975 (movement_possibility): Same.
17976 (outermost_invariant_loop): Same.
17977 (stmt_cost): Same.
17978 (determine_max_movement): Same.
17979 (invariantness_dom_walker::before_dom_children): Same.
17980 (move_computations): Same.
17981 (may_move_till): Same.
17982 (force_move_till_op): Same.
17983 (force_move_till): Same.
17984 (memref_free): Same.
17985 (record_mem_ref_loc): Same.
17986 (set_ref_stored_in_loop): Same.
17987 (mark_ref_stored): Same.
17988 (sort_bbs_in_loop_postorder_cmp): Same.
17989 (sort_locs_in_loop_postorder_cmp): Same.
17990 (analyze_memory_references): Same.
17991 (mem_refs_may_alias_p): Same.
17992 (find_ref_loc_in_loop_cmp): Same.
17993 (rewrite_mem_ref_loc::operator): Same.
17994 (first_mem_ref_loc_1::operator): Same.
17995 (sm_set_flag_if_changed::operator): Same.
17996 (execute_sm_if_changed_flag_set): Same.
17997 (execute_sm): Same.
17998 (hoist_memory_references): Same.
17999 (ref_always_accessed::operator): Same.
18000 (refs_independent_p): Same.
18001 (record_dep_loop): Same.
18002 (ref_indep_loop_p_1): Same.
18003 (ref_indep_loop_p): Same.
18004 (can_sm_ref_p): Same.
18005 (find_refs_for_sm): Same.
18006 (loop_suitable_for_sm): Same.
18007 (store_motion_loop): Same.
18008 (store_motion): Same.
18009 (fill_always_executed_in): Same.
18010 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18011 (estimated_unrolled_size): Same.
18012 (loop_edge_to_cancel): Same.
18013 (remove_exits_and_undefined_stmts): Same.
18014 (remove_redundant_iv_tests): Same.
18015 (unloop_loops): Same.
18016 (estimated_peeled_sequence_size): Same.
18017 (try_peel_loop): Same.
18018 (canonicalize_loop_induction_variables): Same.
18019 (canonicalize_induction_variables): Same.
18020 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18021 (name_info): Same.
18022 (stmt_after_inc_pos): Same.
18023 (contains_abnormal_ssa_name_p): Same.
18024 (niter_for_exit): Same.
18025 (find_bivs): Same.
18026 (mark_bivs): Same.
18027 (find_givs_in_bb): Same.
18028 (find_induction_variables): Same.
18029 (find_interesting_uses_cond): Same.
18030 (outermost_invariant_loop_for_expr): Same.
18031 (idx_find_step): Same.
18032 (add_candidate_1): Same.
18033 (add_iv_candidate_derived_from_uses): Same.
18034 (alloc_use_cost_map): Same.
18035 (prepare_decl_rtl): Same.
18036 (generic_predict_doloop_p): Same.
18037 (computation_cost): Same.
18038 (determine_common_wider_type): Same.
18039 (get_computation_aff_1): Same.
18040 (get_use_type): Same.
18041 (determine_group_iv_cost_address): Same.
18042 (iv_period): Same.
18043 (difference_cannot_overflow_p): Same.
18044 (may_eliminate_iv): Same.
18045 (determine_set_costs): Same.
18046 (cheaper_cost_pair): Same.
18047 (compare_cost_pair): Same.
18048 (iv_ca_cand_for_group): Same.
18049 (iv_ca_recount_cost): Same.
18050 (iv_ca_set_remove_invs): Same.
18051 (iv_ca_set_no_cp): Same.
18052 (iv_ca_set_add_invs): Same.
18053 (iv_ca_set_cp): Same.
18054 (iv_ca_add_group): Same.
18055 (iv_ca_cost): Same.
18056 (iv_ca_compare_deps): Same.
18057 (iv_ca_delta_reverse): Same.
18058 (iv_ca_delta_commit): Same.
18059 (iv_ca_cand_used_p): Same.
18060 (iv_ca_delta_free): Same.
18061 (iv_ca_new): Same.
18062 (iv_ca_free): Same.
18063 (iv_ca_dump): Same.
18064 (iv_ca_extend): Same.
18065 (iv_ca_narrow): Same.
18066 (iv_ca_prune): Same.
18067 (cheaper_cost_with_cand): Same.
18068 (iv_ca_replace): Same.
18069 (try_add_cand_for): Same.
18070 (get_initial_solution): Same.
18071 (try_improve_iv_set): Same.
18072 (find_optimal_iv_set_1): Same.
18073 (create_new_iv): Same.
18074 (rewrite_use_compare): Same.
18075 (remove_unused_ivs): Same.
18076 (determine_scaling_factor): Same.
18077 * tree-ssa-loop-ivopts.h: Same.
18078 * tree-ssa-loop-manip.c (create_iv): Same.
18079 (compute_live_loop_exits): Same.
18080 (add_exit_phi): Same.
18081 (add_exit_phis): Same.
18082 (find_uses_to_rename_use): Same.
18083 (find_uses_to_rename_def): Same.
18084 (find_uses_to_rename_in_loop): Same.
18085 (rewrite_into_loop_closed_ssa): Same.
18086 (check_loop_closed_ssa_bb): Same.
18087 (split_loop_exit_edge): Same.
18088 (ip_end_pos): Same.
18089 (ip_normal_pos): Same.
18090 (copy_phi_node_args): Same.
18091 (gimple_duplicate_loop_to_header_edge): Same.
18092 (can_unroll_loop_p): Same.
18093 (determine_exit_conditions): Same.
18094 (scale_dominated_blocks_in_loop): Same.
18095 (niter_for_unrolled_loop): Same.
18096 (tree_transform_and_unroll_loop): Same.
18097 (rewrite_all_phi_nodes_with_iv): Same.
18098 * tree-ssa-loop-manip.h: Same.
18099 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
18100 (number_of_iterations_ne): Same.
18101 (assert_no_overflow_lt): Same.
18102 (assert_loop_rolls_lt): Same.
18103 (number_of_iterations_lt): Same.
18104 (adjust_cond_for_loop_until_wrap): Same.
18105 (tree_simplify_using_condition): Same.
18106 (simplify_using_initial_conditions): Same.
18107 (simplify_using_outer_evolutions): Same.
18108 (loop_only_exit_p): Same.
18109 (ssa_defined_by_minus_one_stmt_p): Same.
18110 (number_of_iterations_popcount): Same.
18111 (number_of_iterations_exit): Same.
18112 (find_loop_niter): Same.
18113 (finite_loop_p): Same.
18114 (chain_of_csts_start): Same.
18115 (get_val_for): Same.
18116 (loop_niter_by_eval): Same.
18117 (derive_constant_upper_bound_ops): Same.
18118 (do_warn_aggressive_loop_optimizations): Same.
18119 (record_estimate): Same.
18120 (get_cst_init_from_scev): Same.
18121 (record_nonwrapping_iv): Same.
18122 (idx_infer_loop_bounds): Same.
18123 (infer_loop_bounds_from_ref): Same.
18124 (infer_loop_bounds_from_array): Same.
18125 (infer_loop_bounds_from_pointer_arith): Same.
18126 (infer_loop_bounds_from_signedness): Same.
18127 (bound_index): Same.
18128 (discover_iteration_bound_by_body_walk): Same.
18129 (maybe_lower_iteration_bound): Same.
18130 (estimate_numbers_of_iterations): Same.
18131 (estimated_loop_iterations): Same.
18132 (estimated_loop_iterations_int): Same.
18133 (max_loop_iterations): Same.
18134 (max_loop_iterations_int): Same.
18135 (likely_max_loop_iterations): Same.
18136 (likely_max_loop_iterations_int): Same.
18137 (estimated_stmt_executions_int): Same.
18138 (max_stmt_executions): Same.
18139 (likely_max_stmt_executions): Same.
18140 (estimated_stmt_executions): Same.
18141 (stmt_dominates_stmt_p): Same.
18142 (nowrap_type_p): Same.
18143 (loop_exits_before_overflow): Same.
18144 (scev_var_range_cant_overflow): Same.
18145 (scev_probably_wraps_p): Same.
18146 (free_numbers_of_iterations_estimates): Same.
18147 * tree-ssa-loop-niter.h: Same.
18148 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
18149 (idx_analyze_ref): Same.
18150 (analyze_ref): Same.
18151 (gather_memory_references_ref): Same.
18152 (mark_nontemporal_store): Same.
18153 (emit_mfence_after_loop): Same.
18154 (may_use_storent_in_loop_p): Same.
18155 (mark_nontemporal_stores): Same.
18156 (should_unroll_loop_p): Same.
18157 (volume_of_dist_vector): Same.
18158 (add_subscript_strides): Same.
18159 (self_reuse_distance): Same.
18160 (insn_to_prefetch_ratio_too_small_p): Same.
18161 * tree-ssa-loop-split.c (split_at_bb_p): Same.
18162 (patch_loop_exit): Same.
18163 (find_or_create_guard_phi): Same.
18164 (easy_exit_values): Same.
18165 (connect_loop_phis): Same.
18166 (connect_loops): Same.
18167 (compute_new_first_bound): Same.
18168 (split_loop): Same.
18169 (tree_ssa_split_loops): Same.
18170 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
18171 (is_maybe_undefined): Same.
18172 (tree_may_unswitch_on): Same.
18173 (simplify_using_entry_checks): Same.
18174 (tree_unswitch_single_loop): Same.
18175 (tree_unswitch_loop): Same.
18176 (tree_unswitch_outer_loop): Same.
18177 (empty_bb_without_guard_p): Same.
18178 (used_outside_loop_p): Same.
18179 (get_vop_from_header): Same.
18180 (hoist_guard): Same.
18181 * tree-ssa-loop.c (gate_oacc_kernels): Same.
18182 (get_lsm_tmp_name): Same.
18183 * tree-ssa-loop.h: Same.
18184 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
18185 (build_and_add_sum): Same.
18186 (no_side_effect_bb): Same.
18187 (get_ops): Same.
18188 (linearize_expr): Same.
18189 (should_break_up_subtract): Same.
18190 (linearize_expr_tree): Same.
18191 * tree-ssa-scopedtables.c: Same.
18192 * tree-ssa-scopedtables.h: Same.
18193 * tree-ssa-structalias.c (condense_visit): Same.
18194 (label_visit): Same.
18195 (dump_pred_graph): Same.
18196 (perform_var_substitution): Same.
18197 (move_complex_constraints): Same.
18198 (remove_preds_and_fake_succs): Same.
18199 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18200 (determine_bb_domination_status): Same.
18201 (duplicate_thread_path): Same.
18202 (thread_through_all_blocks): Same.
18203 * tree-ssa-threadupdate.h: Same.
18204 * tree-streamer-in.c (streamer_read_string_cst): Same.
18205 (input_identifier): Same.
18206 (unpack_ts_type_common_value_fields): Same.
18207 (unpack_ts_block_value_fields): Same.
18208 (unpack_ts_translation_unit_decl_value_fields): Same.
18209 (unpack_ts_omp_clause_value_fields): Same.
18210 (streamer_read_tree_bitfields): Same.
18211 (streamer_alloc_tree): Same.
18212 (lto_input_ts_common_tree_pointers): Same.
18213 (lto_input_ts_vector_tree_pointers): Same.
18214 (lto_input_ts_poly_tree_pointers): Same.
18215 (lto_input_ts_complex_tree_pointers): Same.
18216 (lto_input_ts_decl_minimal_tree_pointers): Same.
18217 (lto_input_ts_decl_common_tree_pointers): Same.
18218 (lto_input_ts_decl_non_common_tree_pointers): Same.
18219 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18220 (lto_input_ts_field_decl_tree_pointers): Same.
18221 (lto_input_ts_function_decl_tree_pointers): Same.
18222 (lto_input_ts_type_common_tree_pointers): Same.
18223 (lto_input_ts_type_non_common_tree_pointers): Same.
18224 (lto_input_ts_list_tree_pointers): Same.
18225 (lto_input_ts_vec_tree_pointers): Same.
18226 (lto_input_ts_exp_tree_pointers): Same.
18227 (lto_input_ts_block_tree_pointers): Same.
18228 (lto_input_ts_binfo_tree_pointers): Same.
18229 (lto_input_ts_constructor_tree_pointers): Same.
18230 (lto_input_ts_omp_clause_tree_pointers): Same.
18231 (streamer_read_tree_body): Same.
18232 * tree-streamer.h: Same.
18233 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18234 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18235 (vect_analyze_possibly_independent_ddr): Same.
18236 (vect_analyze_data_ref_dependence): Same.
18237 (vect_compute_data_ref_alignment): Same.
18238 (vect_enhance_data_refs_alignment): Same.
18239 (vect_analyze_data_ref_access): Same.
18240 (vect_check_gather_scatter): Same.
18241 (vect_find_stmt_data_reference): Same.
18242 (vect_create_addr_base_for_vector_ref): Same.
18243 (vect_setup_realignment): Same.
18244 (vect_supportable_dr_alignment): Same.
18245 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18246 (adjust_phi_and_debug_stmts): Same.
18247 (vect_set_loop_mask): Same.
18248 (add_preheader_seq): Same.
18249 (vect_maybe_permute_loop_masks): Same.
18250 (vect_set_loop_masks_directly): Same.
18251 (vect_set_loop_condition_masked): Same.
18252 (vect_set_loop_condition_unmasked): Same.
18253 (slpeel_duplicate_current_defs_from_edges): Same.
18254 (slpeel_add_loop_guard): Same.
18255 (slpeel_can_duplicate_loop_p): Same.
18256 (create_lcssa_for_virtual_phi): Same.
18257 (iv_phi_p): Same.
18258 (vect_update_ivs_after_vectorizer): Same.
18259 (vect_gen_vector_loop_niters_mult_vf): Same.
18260 (slpeel_update_phi_nodes_for_loops): Same.
18261 (slpeel_update_phi_nodes_for_guard1): Same.
18262 (find_guard_arg): Same.
18263 (slpeel_update_phi_nodes_for_guard2): Same.
18264 (slpeel_update_phi_nodes_for_lcssa): Same.
18265 (vect_do_peeling): Same.
18266 (vect_create_cond_for_alias_checks): Same.
18267 (vect_loop_versioning): Same.
18268 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18269 (vect_inner_phi_in_double_reduction_p): Same.
18270 (vect_analyze_scalar_cycles_1): Same.
18271 (vect_fixup_scalar_cycles_with_patterns): Same.
18272 (vect_get_loop_niters): Same.
18273 (bb_in_loop_p): Same.
18274 (vect_get_max_nscalars_per_iter): Same.
18275 (vect_verify_full_masking): Same.
18276 (vect_compute_single_scalar_iteration_cost): Same.
18277 (vect_analyze_loop_form_1): Same.
18278 (vect_analyze_loop_form): Same.
18279 (vect_active_double_reduction_p): Same.
18280 (vect_analyze_loop_operations): Same.
18281 (neutral_op_for_slp_reduction): Same.
18282 (vect_is_simple_reduction): Same.
18283 (vect_model_reduction_cost): Same.
18284 (get_initial_def_for_reduction): Same.
18285 (get_initial_defs_for_reduction): Same.
18286 (vect_create_epilog_for_reduction): Same.
18287 (vectorize_fold_left_reduction): Same.
18288 (vectorizable_reduction): Same.
18289 (vectorizable_induction): Same.
18290 (vectorizable_live_operation): Same.
18291 (loop_niters_no_overflow): Same.
18292 (vect_get_loop_mask): Same.
18293 (vect_transform_loop_stmt): Same.
18294 (vect_transform_loop): Same.
18295 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18296 (vect_determine_precisions): Same.
18297 (vect_pattern_recog_1): Same.
18298 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18299 * tree-vect-stmts.c (stmt_vectype): Same.
18300 (process_use): Same.
18301 (vect_init_vector_1): Same.
18302 (vect_truncate_gather_scatter_offset): Same.
18303 (get_group_load_store_type): Same.
18304 (vect_build_gather_load_calls): Same.
18305 (vect_get_strided_load_store_ops): Same.
18306 (vectorizable_simd_clone_call): Same.
18307 (vectorizable_store): Same.
18308 (permute_vec_elements): Same.
18309 (vectorizable_load): Same.
18310 (vect_transform_stmt): Same.
18311 (supportable_widening_operation): Same.
18312 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18313 (vec_info::free_stmt_vec_info): Same.
18314 (vect_free_loop_info_assumptions): Same.
18315 (vect_loop_vectorized_call): Same.
18316 (set_uid_loop_bbs): Same.
18317 (vectorize_loops): Same.
18318 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18319 * tree.c (add_tree_to_fld_list): Same.
18320 (fld_type_variant_equal_p): Same.
18321 (fld_decl_context): Same.
18322 (fld_incomplete_type_of): Same.
18323 (free_lang_data_in_binfo): Same.
18324 (need_assembler_name_p): Same.
18325 (find_decls_types_r): Same.
18326 (get_eh_types_for_runtime): Same.
18327 (find_decls_types_in_eh_region): Same.
18328 (find_decls_types_in_node): Same.
18329 (assign_assembler_name_if_needed): Same.
18330 * value-prof.c (stream_out_histogram_value): Same.
18331 * value-prof.h: Same.
18332 * var-tracking.c (use_narrower_mode): Same.
18333 (prepare_call_arguments): Same.
18334 (vt_expand_loc_callback): Same.
18335 (resolve_expansions_pending_recursion): Same.
18336 (vt_expand_loc): Same.
18337 * varasm.c (const_hash_1): Same.
18338 (compare_constant): Same.
18339 (tree_output_constant_def): Same.
18340 (simplify_subtraction): Same.
18341 (get_pool_constant): Same.
18342 (output_constant_pool_2): Same.
18343 (output_constant_pool_1): Same.
18344 (mark_constants_in_pattern): Same.
18345 (mark_constant_pool): Same.
18346 (get_section_anchor): Same.
18347 * vr-values.c (compare_range_with_value): Same.
18348 (vr_values::extract_range_from_phi_node): Same.
18349 * vr-values.h: Same.
18350 * web.c (unionfind_union): Same.
18351 * wide-int.h: Same.
18352
18353 2019-07-09 Martin Sebor <msebor@redhat.com>
18354
18355 PR c++/61339
18356 * align.h: Change class-key from class to struct and vice versa
18357 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18358 * alloc-pool.h: Same.
18359 * asan.c (shadow_mem_size): Same.
18360 * auto-profile.c: Same.
18361 * basic-block.h: Same.
18362 * bitmap.h: Same.
18363 * cfgexpand.c (set_rtl): Same.
18364 (expand_one_stack_var_at): Same.
18365 * cfghooks.h: Same.
18366 * cfgloop.h: Same.
18367 * cgraph.h: Same.
18368 * config/i386/i386.h: Same.
18369 * df-problems.c (df_print_bb_index): Same.
18370 * df-scan.c: Same.
18371 * df.h (df_single_use): Same.
18372 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18373 (layout::annotation_line_showed_range_p): Same.
18374 (get_printed_columns): Same.
18375 (correction::ensure_terminated): Same.
18376 (line_corrections::~line_corrections): Same.
18377 * dojump.h: Same.
18378 * dse.c: Same.
18379 * dump-context.h: Same.
18380 * dumpfile.h: Same.
18381 * dwarf2out.c: Same.
18382 * edit-context.c: Same.
18383 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18384 * flags.h: Same.
18385 * function.c (assign_stack_local): Same.
18386 * function.h: Same.
18387 * gcc.c: Same.
18388 * gcov.c (block_info::block_info): Same.
18389 * genattrtab.c: Same.
18390 * genextract.c: Same.
18391 * genmatch.c (comparison_code_p): Same.
18392 (id_base::id_base): Same.
18393 (decision_tree::print): Same.
18394 * genoutput.c: Same.
18395 * genpreds.c (write_one_predicate_function): Same.
18396 * genrecog.c (validate_pattern): Same.
18397 (find_operand_positions): Same.
18398 (optimize_subroutine_group): Same.
18399 (merge_pattern_transition::merge_pattern_transition): Same.
18400 (merge_pattern_info::merge_pattern_info): Same.
18401 (merge_state_result::merge_state_result): Same.
18402 (merge_into_state): Same.
18403 * gensupport.c: Same.
18404 * gensupport.h: Same.
18405 * ggc-common.c (init_ggc_heuristics): Same.
18406 * ggc-tests.c (test_union): Same.
18407 * gimple-loop-interchange.cc (dump_induction): Same.
18408 * gimple-loop-versioning.cc: Same.
18409 * gimple-match.h (gimple_match_cond::any_else): Same.
18410 * gimple-ssa-backprop.c: Same.
18411 * gimple-ssa-sprintf.c: Same.
18412 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18413 Same.
18414 (store_immediate_info::store_immediate_info): Same.
18415 (merged_store_group::apply_stores): Same.
18416 (get_location_for_stmts): Same.
18417 * gimple-ssa-strength-reduction.c: Same.
18418 * gimple-ssa-warn-alloca.c: Same.
18419 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18420 * godump.c (go_type_decl): Same.
18421 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18422 * hash-map.h: Same.
18423 * hash-set-tests.c (test_set_of_strings): Same.
18424 * hsa-brig.c: Same.
18425 * hsa-common.h: Same.
18426 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18427 * input.c (assert_loceq): Same.
18428 * input.h: Same.
18429 * ipa-cp.c: Same.
18430 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18431 * ipa-fnsummary.h: Same.
18432 * ipa-inline.h: Same.
18433 * ipa-prop.h: Same.
18434 * ipa-split.c (visit_bb): Same.
18435 * ira-int.h (minmax_set_iter_next): Same.
18436 * loop-invariant.c: Same.
18437 * loop-iv.c: Same.
18438 * lra-eliminations.c: Same.
18439 * lra-int.h: Same.
18440 * lra-lives.c (mark_regno_dead): Same.
18441 * lra-remat.c: Same.
18442 * lra-spills.c: Same.
18443 * lto-streamer.h: Same.
18444 * mem-stats.h: Same.
18445 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18446 * omp-low.c (omp_clause_aligned_alignment): Same.
18447 * optabs-query.h (get_vcond_eq_icode): Same.
18448 * optabs.h: Same.
18449 * opts.c (wrap_help): Same.
18450 * poly-int.h: Same.
18451 * predict.c (predict_paths_leading_to_edge): Same.
18452 * pretty-print.h: Same.
18453 * profile-count.h: Same.
18454 * read-md.h: Same.
18455 * read-rtl-function.c: Same.
18456 * ree.c: Same.
18457 * reginfo.c: Same.
18458 * regrename.c: Same.
18459 * regrename.h: Same.
18460 * reload.h: Same.
18461 * rtl-iter.h: Same.
18462 * rtl.h (costs_add_n_insns): Same.
18463 * sanopt.c: Same.
18464 * sched-int.h: Same.
18465 * sel-sched-ir.h: Same.
18466 * selftest.h: Same.
18467 * sese.h (vec_find): Same.
18468 * stmt.c: Same.
18469 * target-globals.h: Same.
18470 * tree-affine.c (aff_combination_find_elt): Same.
18471 * tree-affine.h: Same.
18472 * tree-data-ref.h: Same.
18473 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18474 * tree-predcom.c: Same.
18475 * tree-scalar-evolution.c (find_var_scev_info): Same.
18476 * tree-ssa-alias.h: Same.
18477 * tree-ssa-ccp.c: Same.
18478 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18479 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18480 (rewrite_mem_refs): Same.
18481 (execute_sm_if_changed): Same.
18482 (hoist_memory_references): Same.
18483 * tree-ssa-loop-ivopts.c (operator<=): Same.
18484 * tree-ssa-loop.h: Same.
18485 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18486 * tree-ssa-structalias.c: Same.
18487 * tree-switch-conversion.h (cluster::cluster): Same.
18488 (simple_cluster::simple_cluster): Same.
18489 * tree-vect-patterns.c (type_conversion_p): Same.
18490 * tree-vectorizer.c (dump_stmt_cost): Same.
18491 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18492 * tree.c (protected_set_expr_location): Same.
18493 * tree.h (desired_pro_or_demotion_p): Same.
18494 (fndecl_built_in_p): Same.
18495 * unique-ptr-tests.cc: Same.
18496 * var-tracking.c (delete_variable_part): Same.
18497 * varasm.c (assemble_real): Same.
18498 (tree_output_constant_def): Same.
18499 * vec.c: Same.
18500 * wide-int-bitmask.h: Same.
18501 * wide-int.h (decompose): Same.
18502
18503 2019-07-09 Richard Biener <rguenther@suse.de>
18504
18505 PR tree-optimization/91114
18506 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18507 find a vector type isn't fatal.
18508
18509 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18510
18511 * config/aarch64/aarch64-simd.md
18512 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18513 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18514 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18515 (*aarch64_crypto_aese_fused,
18516 *aarch64_crypto_aesd_fused): Update to new definition.
18517 * config/aarch64/aarch64.c
18518 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18519
18520 2019-07-09 Richard Biener <rguenther@suse.de>
18521
18522 * gimple-match.h (gimple_match_op::resimplify): New.
18523 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18524 gimple_resimplify4, gimple_resimplify5): Remove.
18525 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18526 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18527 Make static.
18528 (gimple_match_op::resimplify): New.
18529 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18530 according to availability. Use gimple_match_op::resimplify.
18531
18532 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18533
18534 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18535
18536 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18537
18538 * config/arm/crypto.md:
18539 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18540 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18541 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18542 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18543 * config/arm/arm.c
18544 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18545 * config/arm/aarch-common-protos.h
18546 (aarch_crypto_can_dual_issue): Remove.
18547 * config/arm/aarch-common.c
18548 (aarch_crypto_can_dual_issue): Likewise.
18549 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18550 * config/arm/cortex-a53.md: Likewise.
18551 * config/arm/cortex-a57.md: Likewise.
18552 * config/arm/iterators.md:
18553 (CRYPTO_BINARY): Redefine.
18554 (CRYPTO_UNARY): Removed.
18555 (CRYPTO_AES, CRYPTO_AESMC): New.
18556
18557 2019-07-09 Richard Biener <rguenther@suse.de>
18558
18559 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18560 (vn_reference_lookup_3): If the main ref has no access path recorded
18561 but orig_ref has use it to do access-path based disambiguation.
18562 (vn_reference_lookup_pieces): Adjust.
18563 (vn_reference_lookup): Pass down original ref if we valueized.
18564
18565 2019-07-09 Martin Liska <mliska@suse.cz>
18566
18567 * doc/extend.texi: Document influence on loop
18568 optimizers.
18569
18570 2019-07-09 Martin Liska <mliska@suse.cz>
18571
18572 * lto-compress.c (lto_normalized_zstd_level): Do not use
18573 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18574 of libzstd. One can use 0 as a default compression level.
18575
18576 2019-07-09 Martin Liska <mliska@suse.cz>
18577
18578 * doc/invoke.texi: Add link from -fprofile-dir option.
18579 Use better wording for 'gcno filename'.
18580
18581 2019-07-08 Martin Sebor <msebor@redhat.com>
18582
18583 PR middle-end/71924
18584 PR middle-end/90549
18585 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18586 comment.
18587 (args_loc_t): New type.
18588 (args_loc_t, locmap_t): same.
18589 (diag_returned_locals): New function.
18590 (is_addr_local): Same.
18591 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18592 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18593 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18594
18595 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18596
18597 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18598 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18599 and casts in offset when different, both through gimple stmts
18600 and through trees. Rewritten using loops to minimize code duplication
18601 for each operand.
18602
18603 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18604
18605 * emit-rtl.c (set_insn_locations): New function moved from...
18606 * function.c (set_insn_locations): ...here.
18607 * ira-emit.c (emit_moves): Propagate location of the first instruction
18608 to the inserted move instructions.
18609 * reg-stack.c (compensate_edge): Set the location if the sequence is
18610 inserted on the edge.
18611 * rtl.h (set_insn_locations): Declare.
18612
18613 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18614
18615 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18616 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18617 .machine string.
18618
18619 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18620
18621 PR rtl-optimization/88233
18622 * common.opt (fsplit-wide-types-early): New option.
18623 * common/config/rs6000/rs6000-common.c
18624 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18625 OPT_LEVELS_ALL.
18626 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18627 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18628 flag_split_wide_types_early.
18629 (pass_data_lower_subreg3): New.
18630 (pass_lower_subreg3): New.
18631 (make_pass_lower_subreg3): New.
18632 * passes.def (pass_lower_subreg2): Move after the loop passes.
18633 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18634 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18635 the pass pipeline; its previous place is taken by ...
18636 (make_pass_lower_subreg3): ... this.
18637
18638 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18639
18640 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18641 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18642
18643 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18644
18645 * config/s390/constraints.md: Add new jsc constraint.
18646 * config/s390/predicates.md: New predicates.
18647 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18648 * config/s390/s390.c (s390_valid_shift_count): New function.
18649 (print_shift_count_operand): Use s390_valid_shift_count.
18650 (print_operand): Likewise.
18651 * config/s390/s390.md: Use new predicate.
18652 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18653 * config/s390/vector.md: Use new predicate.
18654
18655 2019-07-08 Andrew Waterman <andrew@sifive.com>
18656 Jim Wilson <jimw@sifive.com>
18657
18658 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18659 bitsize instead of BITS_PER_WORD.
18660
18661 2019-07-08 Martin Liska <mliska@suse.cz>
18662
18663 * collect2.c (defined): Revert to before r254460.
18664 (scan_prog_file): Revert to before r254460.
18665
18666 2019-07-08 Richard Biener <rguenther@suse.de>
18667
18668 PR tree-optimization/83518
18669 * tree-ssa-sccvn.c: Include splay-tree.h.
18670 (struct pd_range, struct pd_data): New.
18671 (struct vn_walk_cb_data): Add data to track partial definitions.
18672 (vn_walk_cb_data::~vn_walk_cb_data): New.
18673 (vn_walk_cb_data::push_partial_def): New.
18674 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18675 (vn_reference_lookup_2): When partial defs are registered give up.
18676 (vn_reference_lookup_3): Track partial defs for memset and
18677 constructor zeroing and for defs from constants.
18678
18679 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18680
18681 * doc/install.texi (bootstrap-Og): Document.
18682
18683 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18684
18685 * config/riscv/pic.md (*local_pic_load_s<mode>)
18686 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18687 referenced by <mode>, giving...
18688 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18689 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18690 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18691 use <X:MODE> for the mode attribute.
18692
18693 2019-07-07 Jeff Law <law@redhat.com>
18694
18695 PR tree-optimization/91090
18696 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18697 in handling of ranges to simplify switch statements.
18698
18699 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18700
18701 * config/darwin.c (darwin_override_options): Make a final check on PIC
18702 options.
18703
18704 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18705
18706 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18707 on for kernel code.
18708
18709 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18710
18711 PR target/91068
18712 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18713 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18714 instead of matching them to "l" output operands.
18715
18716 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18717
18718 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18719 and check whether addr.reg is nonnull before using it.
18720
18721 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18722
18723 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18724 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18725 variable(s). For conditional lastprivate look through outer
18726 GIMPLE_OMP_SCAN context.
18727 (lower_omp_1): For conditional lastprivate look through outer
18728 GIMPLE_OMP_SCAN context.
18729
18730 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18731 member to combined_into_simd_safelen1.
18732 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18733 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18734 clauses if ctx->combined_into_simd_safelen1 put statements after the
18735 predicate conditionalized block rather than into it.
18736
18737 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18738
18739 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18740 operand 1.
18741 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18742 Make the choice of <mode> explicit, giving...
18743 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18744
18745 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18746
18747 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18748 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18749 of .md attributes.
18750 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18751 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18752 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18753 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18754 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18755 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18756 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18757 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18758 (*avx512f_scatterdi<mode>): Likewise.
18759 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18760
18761 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18762
18763 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18764 specify the mode iterator referenced by <mode>, giving...
18765 (*push1_h8300hs_<QHI:mode>): ...this.
18766
18767 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18768
18769 * config/gcn/gcn-valu.md
18770 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18771 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18772 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18773 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18774 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18775 but using the _exec comparison patterns.
18776 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18777 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18778 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18779 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18780 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18781 but using the _exec comparison patterns.
18782
18783 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18784
18785 * config/arm/sync.md
18786 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18787 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18788 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18789 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18790 <SIDI:cas_cmp_str>.
18791
18792 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18793
18794 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18795 (maybe_lookup_ctx): Add forward declaration.
18796 (omp_find_scan): Likewise. Walk into body of simd if composited
18797 with worksharing loop.
18798 (scan_omp_simd_scan): New function.
18799 (scan_omp_1_stmt): Call it.
18800 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18801 ctx->for_simd_scan_phase.
18802 (lower_rec_input_clauses): Do much less work for inscan reductions
18803 in ctx->for_simd_scan_phase is_simd regions.
18804 (lower_omp_scan): Set is_simd also on simd constructs composited
18805 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18806 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18807 emit their body after in simd constructs composited with worksharing
18808 loop.
18809 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18810
18811 * omp-low.c (omp_find_scan): Make static.
18812 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18813 the second loop, var2 represents the first partial sum and so needs
18814 to go before rprivb[ivar].
18815
18816 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
18817
18818 * config/rs6000/rs6000-logue.c: Remove unused code.
18819
18820 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18821
18822 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
18823
18824 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
18825
18826 PR target/90712
18827 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
18828 check with a frame laid out check.
18829
18830 2019-07-05 Richard Biener <rguenther@suse.de>
18831
18832 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
18833 when comparing against a store with possibly the same value.
18834
18835 2019-07-05 Richard Biener <rguenther@suse.de>
18836
18837 PR tree-optimization/91091
18838 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
18839 (walk_non_aliased_vuses): Likewise.
18840 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
18841 (get_continuation_for_phi): New tbaa_p parameter and pass
18842 it down.
18843 (walk_non_aliased_vuses): Likewise.
18844 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
18845 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
18846 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
18847 Likewise.
18848 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
18849 (adjust_offsets_for_equal_base_address): New function.
18850 (vn_reference_lookup_3): Use it to catch more base equivalences.
18851 Handle and pass down tbaa_p flag.
18852 (vn_reference_lookup_pieces): Adjust.
18853 (vn_reference_lookup): Remove alias-set altering, instead pass
18854 down false as tbaa_p.
18855
18856 2019-07-05 Richard Biener <rguenther@suse.de>
18857
18858 PR tree-optimization/91091
18859 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
18860 accesses can happen with -fno-strict-aliasing.
18861
18862 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
18863
18864 * tree-ssa-alias.c (alias_stats): Add
18865 nonoverlapping_component_refs_since_match_p_must_overlap.
18866 (dump_alias_stats): Print it.
18867 (nonoverlapping_component_refs_since_match_p): Add early exit.
18868 (nonoverlapping_component_refs_p): Do not account early exit.
18869
18870 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18871
18872 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
18873 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
18874 (emit_eh_dispatch): Delete.
18875 (lower_catch): Emit the eh_dispatch manually and set the location of
18876 the first catch statement onto it.
18877 (lower_eh_filter): Emit the eh_dispatch manually and set location.
18878 (lower_eh_dispatch): Propagate location.
18879 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
18880 (eliminate_build): Likewise.
18881
18882 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
18883
18884 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
18885 phi nodes if possible.
18886 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
18887 location info on the newly created statement.
18888 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
18889 newly created increment if needed.
18890
18891 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18892
18893 PR middle-end/78884
18894 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
18895 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
18896 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
18897 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
18898 ctx->add_safelen1 is set.
18899
18900 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
18901 GOMP_loop_start at the start of second worksharing loop in a scan.
18902 For nowait, don't emit GOMP_loop_end_nowait at the end of first
18903 worksharing loop in a scan even if there are conditional lastprivates,
18904 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
18905
18906 2019-07-04 Jan Hubicka <jh@suse.cz>
18907
18908 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
18909 Fix check for match in the ref walk.
18910
18911 2019-07-04 Martin Liska <mliska@suse.cz>
18912
18913 * tree-ssa-loop-niter.c
18914 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
18915 (estimate_numbers_of_iterations):
18916 Support __builtin_expect_with_probability for analysis
18917 of # of loop iterations.
18918
18919 2019-07-04 Alexandre Oliva <oliva@adacore.com>
18920
18921 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
18922 * except.c: Likewise.
18923 * expr.c (expand_expr_real_1): Reject it.
18924 * gimplify.c (gimplify_expr): Gimplify it, within
18925 TRY_FINALLY_EXPR.
18926 * tree-dump.c (dequeue_and_dump): Dump it.
18927 * tree-pretty-print.c (dump_generic_node): Likewise.
18928 * tree.c (block_may_fallthru): Handle it.
18929 * tree.def (EH_ELSE_EXPR): Introduce it.
18930 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
18931 with GIMPLE_EH_ELSE as try/finally/else.
18932
18933 2019-07-04 Richard Biener <rguenther@suse.de>
18934
18935 PR ipa/91062
18936 * tree-pass.h (execute_all_ipa_transforms): Add a flag
18937 parameter whether to disable GC collection.
18938 * passes.c (execute_one_ipa_transform_pass): Likewise, and
18939 honor it.
18940 (execute_all_ipa_transforms): Likewise and pass it down.
18941 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
18942 collection from applying IPA transforms.
18943 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
18944 from applying IPA transforms.
18945
18946 2019-07-04 Richard Biener <rguenther@suse.de>
18947
18948 PR tree-optimization/90911
18949 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
18950 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
18951 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18952 scalar_loop_scaling.
18953 (vect_transform_loop): Scale scalar loop profile if needed.
18954 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
18955 the loop copy from if-conversion adjust edge probabilities
18956 and scale the vectorized loop body profile, queue the scalar
18957 profile for updating after peeling.
18958
18959 2019-07-04 Jan Hubicka <jh@suse.cz>
18960
18961 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
18962 parameters; return early for must-alias.
18963 (indirect_ref_may_alias_decl_p): Likewise; when establishing
18964 outer types match, try nonoverlapping_component_refs
18965 if must-alias is not obvious.
18966 (indirect_refs_may_alias_p): Likewise.
18967 (refs_may_alias_p_2): Likewise.
18968
18969 2019-07-04 Richard Biener <rguenther@suse.de>
18970
18971 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
18972 argument.
18973 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
18974 globals into...
18975 (struct vn_walk_cb_data): New callback data struct.
18976 (vn_reference_lookup_2): Adjust.
18977 (vn_reference_lookup_3): Likewise.
18978 (vn_reference_lookup_pieces): Likewise.
18979 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
18980 (visit_reference_op_load): Adjust.
18981
18982 2019-07-04 Jakub Jelinek <jakub@redhat.com>
18983
18984 PR tree-optimization/91063
18985 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
18986 stmt from stmts sequence before calling vect_init_vector_1.
18987 Formatting fix.
18988
18989 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18990
18991 PR target/88833
18992 * fwprop.c (reg_single_def_p): New function.
18993 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
18994 (forward_propagate_into): New parameter reg_prop_only
18995 with default value false.
18996 Propagate def's src into loop only if SET_SRC and SET_DEST
18997 of def_set have single definitions.
18998 Likewise if reg_prop_only is set to true.
18999 (fwprop): New param fwprop_addr_p.
19000 Integrate fwprop_addr into fwprop.
19001 (fwprop_addr): Remove.
19002 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19003 to true.
19004 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19005 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19006 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19007
19008 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19009
19010 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19011 in worksharing loop scans.
19012
19013 PR tree-optimization/91074
19014 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19015 temporary.
19016
19017 PR rtl-optimization/90756
19018 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19019 for VECTOR_TYPE_P.
19020
19021 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19022
19023 * config/aarch64/aarch64.md: Remove redundant constraints from
19024 define_expand but keep some patterns untouched if they are
19025 specially selected by TARGET_SECONDARY_RELOAD hook.
19026 * config/aarch64/aarch64-sve.md: Likewise.
19027 * config/aarch64/atomics.md: Remove redundant constraints from
19028 define_expand.
19029 * config/aarch64/aarch64-simd.md: Likewise.
19030
19031 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19032
19033 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19034 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19035 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19036 clauses.
19037 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19038 DARWIN_NOPIE_SPEC.
19039
19040 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19041
19042 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19043 (STARTFILE_SPEC): Split crt3 into a separate spec.
19044 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19045 (DARWIN_CRT2_SPEC): New.
19046 (DARWIN_CRT3_SPEC): New.
19047 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
19048 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
19049 (DARWIN_CRT3_SPEC): New.
19050
19051 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
19052
19053 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
19054 Change the RTL attribute "length" from "4" to "*" to allow the
19055 length attribute to be adjusted automatically for prefixed load,
19056 store, and add immediate instructions.
19057 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
19058 Likewise.
19059 (extendsi<mode>2, EXTSI iterator): Likewise.
19060 (movsi_internal1): Likewise.
19061 (movsi_from_sf): Likewise.
19062 (movdi_from_sf_zero_ext): Likewise.
19063 (mov<mode>_internal): Likewise.
19064 (movcc_internal1, QHI iterator): Likewise.
19065 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
19066 (movsf_from_si): Likewise.
19067 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
19068 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19069 (mov<mode>, FMOVE128 iterator): Likewise.
19070 (movdi_internal64): Likewise.
19071 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
19072 Likewise.
19073 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
19074 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
19075 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
19076 (vsx_splat_v4sf): Likewise.
19077
19078 2019-07-03 Mark Wielaard <mark@klomp.org>
19079
19080 PR debug/90981
19081 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
19082 DW_AT_addr_base if there is actually a .debug_addr section with
19083 addresses.
19084 (output_addr_table): Add DWARF5 table header generation here after
19085 checking there are actually any addresses from...
19086 (dwarf2out_finish): ...here.
19087
19088 2019-07-03 Richard Biener <rguenther@suse.de>
19089
19090 PR middle-end/91069
19091 * match.pd (vec_perm -> bit_insert): Fix element read from
19092 first vector.
19093
19094 2019-07-03 Martin Liska <mliska@suse.cz>
19095
19096 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
19097 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
19098 condition.
19099 * generic-match-head.c: Include dbgcnt.h.
19100 * gimple-match-head.c: Likewise.
19101
19102 2019-07-03 Martin Liska <mliska@suse.cz>
19103
19104 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
19105 (GCOV_COUNTER_V_TOPN): New.
19106 (GCOV_COUNTER_V_INDIR): Use _topn.
19107 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
19108 (GCOV_TOPN_VALUES): New.
19109 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
19110 (GCOV_TOPN_VALUES_COUNTERS): New.
19111 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
19112 * tree-profile.c:
19113 (gimple_init_gcov_profiler): Rename variables from one_value
19114 to topn_values.
19115 (gimple_gen_one_value_profiler): Remove.
19116 (gimple_gen_topn_values_profiler): New function.
19117 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
19118 names instead of SINGLE_VALUE.
19119 (stream_out_histogram_value): Likewise.
19120 (stream_in_histogram_value): Likewise.
19121 (get_most_common_single_value): Likewise.
19122 (gimple_divmod_fixed_value_transform): Likewise.
19123 (gimple_stringops_transform): Likewise.
19124 (gimple_divmod_values_to_profile): Likewise.
19125 (gimple_stringops_values_to_profile): Likewise.
19126 (gimple_find_values_to_profile): Likewise.
19127 * value-prof.h (enum hist_type): Rename to TOPN.
19128 (gimple_gen_one_value_profiler): Remove.
19129 (gimple_gen_topn_values_profiler): New.
19130
19131 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
19132
19133 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
19134 if it has the DW_AT_data_member_location attribute.
19135
19136 2019-07-03 Richard Biener <rguenther@suse.de>
19137
19138 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
19139 dumping.
19140
19141 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
19142
19143 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
19144 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
19145 (tlsdesc_small_sve_<mode>): Likewise.
19146
19147 2019-07-03 Martin Liska <mliska@suse.cz>
19148
19149 * Makefile.in: Define ZSTD_LIB.
19150 * common.opt: Adjust compression level
19151 to support also zstd levels.
19152 * config.in: Regenerate.
19153 * configure: Likewise.
19154 * configure.ac: Add --with-zstd and --with-zstd-include options
19155 and detect ZSTD.
19156 * doc/install.texi: Mention zstd dependency.
19157 * gcc.c: Print supported LTO compression algorithms.
19158 * lto-compress.c (lto_normalized_zstd_level): Likewise.
19159 (lto_compression_zstd): Likewise.
19160 (lto_uncompression_zstd): Likewise.
19161 (lto_end_compression): Dispatch in between zlib and zstd.
19162 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
19163 (lto_uncompression_zlib): Make it static.
19164 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
19165 * lto-section-in.c (lto_get_section_data): Pass info
19166 about used compression.
19167 * lto-streamer-out.c: By default use zstd when possible.
19168 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
19169 (TV_IPA_LTO_COMPRESS): Likewise for compression.
19170
19171 2019-07-03 Martin Liska <mliska@suse.cz>
19172
19173 * lto-section-in.c (lto_get_section_data): Add "lto" section.
19174 * lto-section-out.c (lto_destroy_simple_output_block): Never
19175 compress LTO_section_lto section.
19176 * lto-streamer-out.c (produce_asm): Do not set major_version
19177 and minor_version.
19178 (lto_output_toplevel_asms): Likewise.
19179 (produce_lto_section): New function.
19180 (lto_output): Call produce_lto_section.
19181 (lto_write_mode_table): Do not set major_version and
19182 minor_version.
19183 (produce_asm_for_decls): Likewise.
19184 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19185 type.
19186 (struct lto_header): Remove.
19187 (struct lto_section): New struct.
19188 (struct lto_simple_header): Do not inherit from lto_header.
19189 (struct lto_file_decl_data): Add lto_section_header field.
19190
19191 2019-07-03 Martin Liska <mliska@suse.cz>
19192
19193 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19194 dead assignemts.
19195 * reg-stack.c (check_asm_stack_operands): Likewise.
19196 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19197 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19198 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19199 force_expand_binop.
19200
19201 2019-07-03 Martin Liska <mliska@suse.cz>
19202
19203 PR tree-optimization/90892
19204 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19205 in string constants.
19206
19207 2019-07-03 Martin Liska <mliska@suse.cz>
19208
19209 PR middle-end/90899
19210 * multiple_target.c (create_dispatcher_calls): Add to comdat
19211 group only if set for ifunc.
19212
19213 2019-07-03 Martin Liska <mliska@suse.cz>
19214
19215 PR target/88056
19216 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19217 Define local_object_name in outer scope in order to handle
19218 use-after-scope issue.
19219
19220 2019-07-03 Martin Liska <mliska@suse.cz>
19221
19222 * common.opt: Add fprofile-note.
19223 * coverage.c (coverage_init): Append the option
19224 to bbg_file_name.
19225 * doc/invoke.texi: Document -fprofile-note.
19226
19227 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19228
19229 PR tree-optimization/91033
19230 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19231 vect_analyze_data_refs): Add bool * arguments.
19232 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19233 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19234 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19235 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19236 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19237 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19238 vect_analyze_data_refs caller.
19239
19240 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19241 clause.
19242 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19243 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19244 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19245 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19246 OMP_CLAUSE__SCANTEMP_ entry.
19247 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19248 * tree-pretty-print.c (dump_omp_clause): Likewise.
19249 * tree-nested.c (convert_nonlocal_omp_clauses,
19250 convert_local_omp_clauses): Likewise.
19251 * omp-general.h (struct omp_for_data): Add have_scantemp and
19252 have_nonctrl_scantemp members.
19253 * omp-general.c (omp_extract_for_data): Initialize them.
19254 * omp-low.c (struct omp_context): Add scan_exclusive member.
19255 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19256 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19257 ctx->scan_exclusive.
19258 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19259 of !ctx->scan_inclusive.
19260 (lower_rec_input_clauses): Simplify gimplification of dtors using
19261 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19262 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19263 loops. Don't add barrier for reduction_omp_orig_ref if
19264 ctx->scan_??xclusive.
19265 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19266 (lower_omp_scan): Use ctx->scan_exclusive instead
19267 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19268 reductions. Use new_vard != new_var instead of repeated
19269 omp_is_reference calls.
19270 (omp_find_scan, lower_omp_for_scan): New functions.
19271 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19272 inscan reductions.
19273 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19274 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19275 and fd->have_scantemp.
19276
19277 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19278 on worksharing loop propagate it as shared clause to containing
19279 combined parallel.
19280
19281 * omp-expand.c (expand_omp_for_static_nochunk,
19282 expand_omp_for_static_chunk): For nowait worksharing loop with
19283 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19284 at the end.
19285
19286 2019-07-02 qing zhao <qing.zhao@oracle.com>
19287
19288 PR preprocessor/90581
19289 * doc/cppopts.texi: Add document for -fmax-include-depth.
19290 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19291
19292 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19293
19294 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19295 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19296 (mmx_packssdw): Ditto.
19297 (mmx_punpckhbw): Ditto.
19298 (mmx_punpcklbw): Ditto.
19299 (mmx_punpckhwd): Ditto.
19300 (mmx_punpcklwd): Ditto.
19301 (mmx_punpckhdq): Ditto.
19302 (mmx_punpckldq): Ditto.
19303 (*vec_dupv4hi): Ditto.
19304 (*vec_dupv2si): Ditto.
19305 (mmx_pmovmskb): Ditto.
19306 * config/i386/sse.md (sse_cvtpi2ps): Use
19307 TARGET_SSE2 && SSE_REG_P in split condition.
19308 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19309 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19310 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19311 (ssse3_pshufbv8qi3): Ditto.
19312 (ssse3_palignrdi): Ditto.
19313
19314 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19315
19316 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19317 with inlined save and restore.
19318
19319 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19320
19321 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19322 to be inserted on single successor edge of the entry block. Then call
19323 commit_edge_insertions instead of inserting the instructions manually.
19324 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19325 RTL expansion and rebuild jump labels chain.
19326
19327 2019-07-02 Richard Biener <rguenther@suse.de>
19328
19329 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19330 TI_CHREC_KNOWN.
19331 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19332 Define here.
19333 * tree.c (build_common_tree_nodes): Initialize them.
19334 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19335 Make declarations comments.
19336 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19337 chrec_known): Remove definitions.
19338 (initialize_scalar_evolutions_analyzer): Remove.
19339 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19340 * tree-streamer.c (preload_common_nodes): Do not preload
19341 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19342
19343 2019-07-02 Jan Hubicka <jh@suse.cz>
19344
19345 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19346 sanity check.
19347
19348 2019-07-02 Jan Hubicka <jh@suse.cz>
19349
19350 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19351 to ..
19352 (nonoverlapping_component_refs_since_match_p): ... this one;
19353 handle also non-decl bases; return -1 if search gave up.
19354 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19355 nonoverlapping_component_refs_of_decl_p_no_alias to
19356 nonoverlapping_component_refs_since_match_p_may_alias,
19357 nonoverlapping_component_refs_since_match_p_no_alias.
19358 (dump_alias_stats): Update dumping.
19359 (aliasing_matching_component_refs_p): Break out from ...;
19360 dispatch to nonoverlapping_component_refs_for_decl_p
19361 and nonoverlapping_component_refs_since_match_p.
19362 (aliasing_component_refs_p): ... here; call
19363 nonoverlapping_component_refs_p in scenarios where we can not
19364 precisely determine base match.
19365 (decl_refs_may_alias_p): Use
19366 nonoverlapping_component_refs_since_match_p.
19367 (indirect_ref_may_alias_decl_p): Do not call
19368 nonoverlapping_component_refs_p.
19369 (indirect_refs_may_alias_p): Likewise.
19370
19371 2019-07-02 Jan Hubicka <jh@suse.cz>
19372
19373 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19374 to clobber of return value.
19375
19376 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19377
19378 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19379 for is_neon_type instructions that have not already been categorized.
19380
19381 2019-07-02 Richard Biener <rguenther@suse.de>
19382
19383 PR tree-optimization/58483
19384 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19385 for MEM_REF base hashing.
19386 (equal_mem_array_ref_p): Likewise for base comparison.
19387
19388 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19389
19390 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19391 parameterized name.
19392 (signbit<mode>2): Use that name. Simplify.
19393
19394 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19395
19396 PR middle-end/66726
19397 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19398 Tune heuristic from PR71016 to allow MIN / MAX.
19399
19400 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19401
19402 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19403 parameterized name.
19404 (abs<mode>2): Use that name. Simplify.
19405
19406 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19407
19408 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19409 parameterized name.
19410 (neg<mode>2): Use that name. Simplify.
19411
19412 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19413
19414 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19415 name.
19416 (abs<mode>2): Use that name. Simplify.
19417
19418 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19419
19420 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19421 name.
19422 (neg<mode>2): Use that name. Simplify.
19423
19424 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19425
19426 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19427 ("enabled" attribute): Handle sse_noavx isa attribute.
19428 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19429 Use TARGET_SSE && SSE_REGNO_P in split condition.
19430 (*vec_dupv2sf): Ditto.
19431
19432 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19433
19434 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19435 name.
19436 (floatsi<mode>2): Use that name. Simplify.
19437
19438 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19439
19440 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19441 parameterized name.
19442 (extenddf<mode>2_vsx): Make this a parameterized name.
19443 (extenddf<mode>2): Use those names. Simplify.
19444
19445 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19446
19447 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19448 name.
19449 (eh_return): Use that name. Simplify.
19450
19451 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19452
19453 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19454 (doloop_end): Use that name. Simplify.
19455
19456 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19457
19458 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19459 parameterized name.
19460 (indirect_jump): Use that name. Simplify.
19461
19462 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19463
19464 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19465 parameterized name.
19466 (abs<mode>2): Use that name. Simplify.
19467
19468 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19469
19470 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19471 parameterized name.
19472 (fix_trunc<mode>si2): Use that name. Simplify.
19473
19474 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19475
19476 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19477 (allocate_stack): Use that name. Simplify.
19478
19479 2019-07-01 Martin Sebor <msebor@redhat.com>
19480
19481 PR middle-end/90923
19482 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19483 (hash_map::get_or_insert): Same. Reformat comment.
19484 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19485 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19486 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19487 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19488 (hash_table::hash_table (const hash_table&)): Use copy ctor
19489 instead of assignment to copy elements.
19490
19491 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19492 John David Anglin <danglin@gcc.gnu.org>
19493
19494 PR target/90963
19495 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19496 using saved frame pointer.
19497
19498 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19499
19500 PR middle-end/64242
19501 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19502 Add frame clobber and schedule blockage.
19503
19504 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19505
19506 * doc/invoke.texi (Link Options): Further editorial changes to
19507 -flinker-output docs.
19508
19509 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19510
19511 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19512 Load both operands of a PLUS into registers separately.
19513
19514 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19515
19516 * config/s390/vector.md: Fix shift count operand printing.
19517
19518 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19519
19520 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19521
19522 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19523
19524 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19525 Use recog_data to test for an output operand.
19526
19527 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19528
19529 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19530 exclude any others that are disparaged or that are bound to need
19531 a reload or spill.
19532 (ira_get_dup_out_num): Expand comment.
19533
19534 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19535
19536 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19537 constraint string for each operand/alternative combo. Only handle
19538 '%' at the start of constraint strings, and look for it outside
19539 the main loop.
19540
19541 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19542
19543 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19544 alternative_mask instead of HARD_REG_SET to represent a
19545 bitmask of alternatives.
19546 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19547 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19548
19549 2019-07-01 Martin Liska <mliska@suse.cz>
19550
19551 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19552 use () for a constructor call.
19553 (test_applying_fixits_line_out_of_range): Likewise.
19554 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19555 argument.
19556 (free_page): Likewise.
19557
19558 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19559
19560 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19561 parameter names to match usage (no functional change).
19562 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19563
19564 2019-07-01 Richard Biener <rguenther@suse.de>
19565
19566 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19567 pass parameter.
19568 (pass_fre::execute): Honor it.
19569 * passes.def: Adjust pass_fre invocations to allow iterating,
19570 add non-iterating pass_fre before late threading/dom.
19571
19572 2019-07-01 Richard Biener <rguenther@suse.de>
19573
19574 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19575 TARGET_MEM_REF handling to also handle address-taken ones.
19576
19577 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19578
19579 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19580 hardware attributes): Document avx512vp2intersect.
19581
19582 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19583
19584 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19585 (abs<mode>2): New expander.
19586 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19587 Use CODE_FOR_ssse3_absv8qi2.
19588 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19589 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19590
19591 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19592
19593 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19594 to sse, sse_noavx and avx. Update all uses.
19595
19596 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19597
19598 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19599 (*mmx_<plusminus_insn><mode>3): Ditto.
19600 (*mmx_mulv4hi3"): Ditto.
19601 (*mmx_smulv4hi3_highpart): Ditto.
19602 (*mmx_umulv4hi3_highpart): Ditto.
19603 (*mmx_pmaddwd): Ditto.
19604 (*sse2_umulv1siv1di3): Ditto.
19605 (*mmx_<code>v4hi3): Ditto.
19606 (*mmx_<code>v8qi3): Ditto.
19607 (mmx_ashr<mode>3): Ditto.
19608 ("mmx_<shift_insn><mode>3): Ditto.
19609 (*mmx_eq<mode>3): Ditto.
19610 (mmx_gt<mode>3): Ditto.
19611 (mmx_andnot<mode>3): Ditto.
19612 (*mmx_<code><mode>3): Ditto.
19613 (*mmx_pinsrw): Ditto.
19614 (*mmx_pextrw): Ditto.
19615 (mmx_pshufw_1): Ditto.
19616 (*mmx_uavgv8qi3): Ditto.
19617 (*mmx_uavgv4hi3): Ditto.
19618 ("mmx_psadbw): Ditto.
19619 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19620 (sse_cvttps2pi): Ditto.
19621 (ssse3_pmaddubsw): Ditto.
19622 (*ssse3_pmulhrswv4hi3): Ditto.
19623 (ssse3_psign<mode>3): Ditto.
19624
19625 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19626
19627 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19628 adjustment for bit-fields to all aggregate types.
19629
19630 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19631
19632 * config/rs6000/predicates.md (pcrel_address): Use
19633 SYMBOL_REF_LOCAL_P to determine if a label is local.
19634 (pcrel_external_address): New predicate.
19635 (non_prefixed_mem_operand): Delete, predicate not used.
19636 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19637 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19638 addressing.
19639 (SYMBOL_REF_PCREL_P): Likewise.
19640
19641 PR target/91009
19642 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19643 alternative.
19644 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19645 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19646 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19647
19648 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19649
19650 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19651 override on extra_headers.
19652
19653 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19654
19655 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19656 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19657 from warning.
19658 (darwin_driver_init): Likewise.
19659
19660 2019-06-28 Jan Beulich <jbeulich@suse.com>
19661
19662 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19663 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19664 Eliminate redundant alternative.
19665
19666 2019-06-28 Jan Beulich <jbeulich@suse.com>
19667
19668 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19669 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19670 Use vector_operand.
19671
19672 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19673
19674 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19675 having a lower cost regardless of the speed option.
19676
19677 2019-06-28 Jan Beulich <jbeulich@suse.com>
19678
19679 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19680 vector_operand plus, on both alternatives, "Bm" constraint.
19681
19682 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19683
19684 * config/arm/arm.md: Remove redundant constraints from
19685 define_expand but leave reload_inm and reload_outm patterns
19686 untouched since they need special constraints to work.
19687 * config/arm/arm-fixed.md: Remove redundant constraints from
19688 define_expand.
19689 * config/arm/iwmmxt.md: Likewise.
19690 * config/arm/neon.md: Likewise.
19691 * config/arm/sync.md: Likewise.
19692 * config/arm/thumb1.md: Likewise.
19693 * config/arm/vec-common.md: Likewise.
19694
19695 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19696
19697 * doc/install.texi: Document --disable-tm-clone-registry.
19698
19699 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19700
19701 PR c++/91024
19702 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19703 statements.
19704
19705 PR tree-optimization/91010
19706 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19707 return true. Otherwise, don't call operand_equal_p if offset1 or
19708 offset2 is NULL and just return false.
19709
19710 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19711
19712 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19713 user-specified float mode choice for kernel mode code.
19714
19715 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19716
19717 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19718 spec.
19719
19720 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19721
19722 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19723 use longcall for 64b code.
19724
19725 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19726
19727 * builtins.c (get_memory_rtx): Fix comment.
19728 * optabs.def (movmem_optab): Change to cpymem_optab.
19729 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19730 (emit_block_move_hints): Change movmem to cpymem.
19731 * defaults.h: Change movmem to cpymem.
19732 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19733 (default_use_by_pieces_infrastructure_p): Ditto.
19734 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19735 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19736 to cpymem.
19737 * config/aarch64/aarch64.h: Change movmem to cpymem.
19738 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19739 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19740 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19741 movmem to cpymem.
19742 * config/arc/arc-protos.h: Change movmem to cpymem.
19743 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19744 * config/arc/arc.h: Change movmem to cpymem in comment.
19745 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19746 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19747 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19748 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19749 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19750 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19751 * config/avr/avr-protos.h: Change movmem to cpymem.
19752 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19753 avr_out_movmem): Change movmem to cpymem.
19754 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19755 Change movmem to cpymem.
19756 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19757 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19758 Change movmem to cpymem.
19759 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19760 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19761 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19762 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19763 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19764 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19765 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19766 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19767 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19768 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19769 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19770 expand_small_cpymem_or_setmem,
19771 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19772 expand_set_or_cpymem_constant_prologue,
19773 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19774 * config/i386/i386-protos.h: Change movmem to cpymem.
19775 * config/i386/i386.h: Change movmem to cpymem in comment.
19776 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19777 (setmem<mode>): Change expansion function name.
19778 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19779 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19780 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19781 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19782 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19783 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19784 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19785 to cpymem.
19786 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19787 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19788 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19789 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19790 Change movmem to cpymem.
19791 * config/mips/mips.h: Change movmem to cpymem.
19792 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19793 * config/nds32/nds32-memory-manipulation.c
19794 (nds32_expand_movmemsi_loop_unknown_size,
19795 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19796 nds32_expand_movmemsi_unroll,
19797 nds32_expand_movmemsi): Change movmem to cpymem.
19798 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19799 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19800 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19801 (pa_adjust_insn_length): Change call to compute_movmem_length.
19802 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19803 movmemdi, movmemdi_prereload,
19804 movmemdi_postreload): Change movmem to cpymem.
19805 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19806 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19807 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19808 * config/riscv/riscv.h: Change movmem to cpymem.
19809 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19810 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19811 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19812 movmem to cpymem.
19813 * config/s390/s390-protos.h: Change movmem to cpymem.
19814 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19815 s390_expand_insv): Change movmem to cpymem.
19816 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
19817 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
19818 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
19819 * config/sparc/sparc.h: Change movmem to cpymem in comment.
19820 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
19821 for nonexistent function.
19822 * config/vax/vax.h: Change movmem to cpymem in comment.
19823 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
19824 * config/visium/visium.h: Change movmem to cpymem in comment.
19825 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
19826 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
19827 * doc/md.texi: Change movmem to cpymem and update description to match.
19828 * doc/rtl.texi: Change movmem to cpymem.
19829 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
19830 * doc/tm.texi: Regenerate.
19831
19832 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
19833
19834 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
19835 -fvariable-expansion-in-unroller by default.
19836 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
19837 default for Power.
19838
19839 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
19840
19841 Revert
19842 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
19843 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
19844
19845 * config.gcc(rs6000-*-*): Define target_gtfiles.
19846
19847 2019-06-27 Jan Hubicka <jh@suse.cz>
19848
19849 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
19850 (add_type_duplicate): When odr hash is not allocated, to nothing.
19851 (odr_based_tbaa_p): New function.
19852 (set_type_canonical_for_odr_type): New function.
19853 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
19854 set_type_canonical_for_odr_type): New.
19855 * tree.c (gimple_canonical_types_compatible_p): ODR types with
19856 ODR based TBAA are not equivalent to non-ODR types.
19857
19858 2019-06-27 Martin Liska <mliska@suse.cz>
19859
19860 PR tree-optimization/90974
19861 PR rtl-optimization/90975
19862 PR rtl-optimization/90976
19863 PR target/91016
19864 PR tree-optimization/91017
19865 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
19866 unused tmp.
19867 * lra.c (lra_set_insn_recog_data): Remove a leftover from
19868 initial commit of IRA.
19869 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
19870 of op0 and op1.
19871 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19872 Remove unused mode1.
19873 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
19874 to new_stmt_info.
19875
19876 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19877
19878 PR target/90991
19879 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
19880 instead of register_operand for operands[1], add m to its constraints
19881 if operands[2] uses "C" constraint. Ensure in condition that if
19882 operands[2] is not 0, then operands[1] is not a MEM. For last two
19883 alternatives, use unaligned loads instead of aligned if operands[1] is
19884 misaligned_operand.
19885
19886 2019-06-27 Martin Liska <mliska@suse.cz>
19887
19888 * asan.c (asan_emit_allocas_unpoison): Remove obviously
19889 dead assignments.
19890 * bt-load.c (move_btr_def): Likewise.
19891 * builtins.c (expand_builtin_apply_args_1): Likewise.
19892 (expand_builtin_apply): Likewise.
19893 * cfgexpand.c (expand_asm_stmt): Likewise.
19894 (construct_init_block): Likewise.
19895 * cfghooks.c (verify_flow_info): Likewise.
19896 * cfgloopmanip.c (remove_path): Likewise.
19897 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
19898 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
19899 * combine.c (simplify_if_then_else): Likewise.
19900 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
19901 (choose_basereg): Likewise.
19902 (ix86_expand_prologue): Likewise.
19903 (ix86_preferred_output_reload_class): Likewise.
19904 * cselib.c (cselib_record_sets): Likewise.
19905 * df-scan.c (df_scan_alloc): Likewise.
19906 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
19907 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
19908 * emit-rtl.c (try_split): Likewise.
19909 * graphite-scop-detection.c (assign_parameter_index_in_region):
19910 Likewise.
19911 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
19912 * ira-color.c (setup_profitable_hard_regs): Likewise.
19913 * ira.c (rtx_moveable_p): Likewise.
19914 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
19915 * read-rtl.c (read_subst_mapping): Likewise.
19916 * regrename.c (scan_rtx): Likewise.
19917 * reorg.c (fill_slots_from_thread): Likewise.
19918 * tree-inline.c (tree_function_versioning): Likewise.
19919 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
19920 * tree-ssa-sink.c (statement_sink_location): Likewise.
19921 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
19922 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
19923 (vect_create_epilog_for_reduction): Likewise.
19924 * tree.c (build_nonstandard_integer_type): Likewise.
19925
19926 2019-06-27 Richard Biener <rguenther@suse.de>
19927
19928 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
19929
19930 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
19931
19932 PR tree-optimization/89772
19933 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
19934 out-of-bound accesses checking.
19935
19936 2019-06-27 Martin Liska <mliska@suse.cz>
19937
19938 PR tree-optimization/91014
19939 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
19940 when LHS is NULL_TREE.
19941
19942 2019-06-27 Martin Liska <mliska@suse.cz>
19943
19944 * symbol-summary.h (traverse): Pass
19945 argument a to the call of callback.
19946 (gt_ggc_mx): Mark arguments as unused.
19947 (gt_pch_nx): Likewise.
19948
19949 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
19950
19951 PR target/62147
19952 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
19953 finiteness.
19954
19955 2019-06-26 Jeff Law <law@redhat.com>
19956
19957 PR tree-optimization/90883
19958 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
19959 (delete_dead_or_redundant_assignment): Likewise.
19960
19961 PR tree-optimization/90883
19962 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
19963 * tree-ssa-dse.c: Update various comments to distinguish between
19964 dead and redundant stores.
19965 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
19966 (dse_optimize_redundant_stores): New function.
19967 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
19968 Distinguish between dead and redundant calls in dump output. All
19969 callers updated.
19970 (delete_dead_or_redundant_assignment): Similarly for assignments.
19971 (dse_optimize_stmt): Handle _CHK variants. For statements which
19972 store 0 into multiple memory locations, try to prove a subsequent
19973 store is redundant.
19974
19975 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
19976
19977 PR target/89021
19978 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
19979 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
19980
19981 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19982
19983 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
19984 (branch_islands): New extern.
19985 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
19986 * config/rs6000/rs6000.c: .. here.
19987
19988 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
19989
19990 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
19991 (powerpc*-*-*) ... to here.
19992
19993 2019-06-26 Jeff Law <law@redhat.com>
19994
19995 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
19996 memcpy, memmove and memset builtins.
19997 (maybe_trim_memstar_call): Likewise.
19998
19999 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20000
20001 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20002
20003 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20004
20005 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20006
20007 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20008
20009 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20010 declaration.
20011 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20012 "static".
20013 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20014 declaration.
20015
20016 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20017
20018 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20019
20020 2019-06-26 Richard Biener <rguenther@suse.de>
20021
20022 PR ipa/90982
20023 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20024
20025 2019-06-26 Richard Biener <rguenther@suse.de>
20026
20027 * lto-streamer.h (lto_bitmap_alloc): Remove.
20028 (lto_bitmap_free): Likewise.
20029 * lto-streamer.c (lto_bitmap_alloc): Remove.
20030 (lto_bitmap_free): Likewise.
20031 (lto_obstack): Likewise.
20032 (lto_obstack_initialized): Likewise.
20033 * lto-streamer-out.c (lto_output): Use own obstack for local
20034 bitmap, free it consistently.
20035
20036 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20037
20038 PR target/90991
20039 * config/i386/sse.md
20040 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20041 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20042 insns if operands[2] is misaligned_operand.
20043
20044 2019-06-26 Li Jia He <helijia@linux.ibm.com>
20045
20046 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
20047 TARGET_POWERPC64.
20048 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
20049 to GPR.
20050
20051 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20052
20053 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
20054
20055 2019-06-26 Martin Liska <mliska@suse.cz>
20056
20057 PR tree-optimization/90973
20058 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
20059 epilogue_cost_vec instead of prologue_cost_vec for
20060 a epilogue cost.
20061
20062 2019-06-26 Martin Liska <mliska@suse.cz>
20063
20064 * bb-reorder.c (connect_better_edge_p): Add missing else
20065 statement in the middle of if-else statements.
20066
20067 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
20068 H.J. Lu <hongjiu.lu@intel.com>
20069 Olga Makhotina <olga.makhotina@intel.com>
20070
20071 * common/config/i386/i386-common.c
20072 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
20073 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
20074 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
20075 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
20076 (ix86_handle_option): Handle -mavx512vp2intersect.
20077 * config/i386/avx512vp2intersectintrin.h: New.
20078 * config/i386/avx512vp2intersectvlintrin.h: New.
20079 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
20080 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20081 AVX512VP2INTERSECT.
20082 * config/i386/i386-builtin-types.def: Add new types.
20083 * config/i386/i386-builtin.def: Add new builtins.
20084 * config/i386/i386-builtins.c: (enum processor_features): Add
20085 F_AVX512VP2INTERSECT.
20086 (static const _isa_names_table isa_names_table): Ditto.
20087 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20088 __AVX512VP2INTERSECT__.
20089 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
20090 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
20091 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
20092 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
20093 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
20094 * config/i386/i386-options.c (ix86_target_string): Add
20095 -mavx512vp2intersect.
20096 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
20097 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
20098 P2HImode and P2QImode.
20099 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
20100 number for P2QImode and P2HImode.
20101 (ix86_regmode_natural_size): New function.
20102 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
20103 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
20104 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
20105 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
20106 * config/i386/i386.opt: Add -mavx512vp2intersect.
20107 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
20108 avx512vp2intersectvlintrin.h.
20109 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
20110 (define_mode_iterator VI48_AVX512VP2VL): New.
20111 (avx512vp2intersect_2intersect<mode>,
20112 avx512vp2intersect_2intersectv16si): New define_insn patterns.
20113 * config.gcc: Add avx512vp2intersectvlintrin.h and
20114 avx512vp2intersectintrin.h to extra_headers.
20115 * doc/invoke.texi: Document -mavx512vp2intersect.
20116
20117 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
20118
20119 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
20120
20121 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20122
20123 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
20124 savres_routine_syms, savres_routine_name, morestack_ref,
20125 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20126 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20127 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20128 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20129 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20130 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20131 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20132 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20133 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20134 get_stack_clash_protection_probe_interval,
20135 get_stack_clash_protection_guard_size,
20136 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20137 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20138 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20139 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20140 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20141 gen_frame_mem_offset, rs6000_savres_routine_name,
20142 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20143 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20144 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20145 rs6000_global_entry_point_prologue_needed_p,
20146 rs6000_get_separate_components, rs6000_components_for_bb,
20147 rs6000_disqualify_components, rs6000_emit_prologue_components,
20148 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20149 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20150 rs6000_output_savres_externs, rs6000_output_function_prologue,
20151 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20152 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20153 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20154 rs6000_output_function_epilogue, gen_add3_const,
20155 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20156 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20157 to rs6000-logue.c.
20158 (machine_function): Moved to rs6000.h.
20159 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
20160 rs6000-internal.h.
20161 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
20162 savres_routine_syms, savres_routine_name, morestack_ref,
20163 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20164 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20165 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20166 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20167 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20168 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20169 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20170 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20171 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20172 get_stack_clash_protection_probe_interval,
20173 get_stack_clash_protection_guard_size,
20174 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20175 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20176 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20177 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20178 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20179 gen_frame_mem_offset, rs6000_savres_routine_name,
20180 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20181 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20182 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20183 rs6000_global_entry_point_prologue_needed_p,
20184 rs6000_get_separate_components, rs6000_components_for_bb,
20185 rs6000_disqualify_components, rs6000_emit_prologue_components,
20186 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20187 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20188 rs6000_output_savres_externs, rs6000_output_function_prologue,
20189 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20190 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20191 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20192 rs6000_output_function_epilogue, gen_add3_const,
20193 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20194 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20195 to here from rs6000.c.
20196 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20197 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20198 quad_address_offset_p) Moved to here from rs6000.c.
20199 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20200 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20201 collector.
20202
20203 2019-06-25 Martin Liska <mliska@suse.cz>
20204
20205 * hash-table.c (hashtab_chk_error): Move here from ...
20206 * hash-table.h (hashtab_chk_error): ... here.
20207
20208 2019-06-25 Martin Liska <mliska@suse.cz>
20209
20210 PR tree-optimization/90978
20211 * df-scan.c (df_update_entry_block_defs): Remove dead else
20212 branch.
20213 (df_update_exit_block_uses): Likewise.
20214
20215 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20216 Andrew Stubbs <ams@codesourcery.com>
20217
20218 * config.gcc (thread_file): Set to gcn for AMD GCN.
20219 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20220 (TARGET_EMUTLS_VAR_INIT): New hook.
20221
20222 2019-06-25 Martin Jambor <mjambor@suse.cz>
20223
20224 PR ipa/90939
20225 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20226
20227 2019-06-25 Richard Biener <rguenther@suse.de>
20228
20229 PR tree-optimization/90930
20230 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20231 into parallel form in the last pass instance.
20232
20233 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20234
20235 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20236 (arc_legitimize_pic_address): Simplify and cleanup the function.
20237 (SYMBOLIC_CONST): Remove.
20238 (prepare_pic_move): Likewise.
20239 (prepare_move_operands): Handle complex mov cases here.
20240 (arc_legitimize_address_0): Remove call to
20241 arc_legitimize_pic_address.
20242 (arc_legitimize_address): Remove call to
20243 arc_legitimize_tls_address.
20244 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20245 (movhi_insn): Likewise.
20246
20247 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20248
20249 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20250 PTRDIFF_TYPE.
20251 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20252 format of "__intN" types for UINTMAX_TYPE.
20253 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20254 format of "__intN" types for SIZETYPE.
20255 * tree.c (build_common_tree_nodes): Accept "__intN__"
20256 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20257 * doc/invoke.texi: Document that __intN__ disables pedantic
20258 warnings.
20259
20260 2019-06-25 Jan Hubicka <jh@suse.cz>
20261
20262 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20263 base2_alias_set is non-zero before doing TBAA based disambiguation.
20264
20265 2019-06-25 Martin Liska <mliska@suse.cz>
20266
20267 PR tree-optimization/90973
20268 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20269 of prologue and epilogue.
20270
20271 2019-06-24 Jan Hubicka <jh@suse.cz>
20272
20273 * ipa-utils.h (type_with_linkage_p): Verify that type is
20274 CXX_ODR_P.
20275 (odr_type_p): Remove extra return.
20276 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20277 hash STRING_FLAG only for arrays and integers.
20278 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20279 Update analogously.
20280 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20281 Likewise.
20282 * print-tree.c (print_node): Print cxx-odr-p
20283 and string-flag.
20284 * tree.c (need_assembler_name_p): Also check that type
20285 is CXX_ODR_TYPE_P
20286 (verify_type_variant): Update verification of SRING_FLAG;
20287 also check CXX_ODR_P.
20288 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20289 (TYPE_STRING_FLAG): Use it.
20290 (TYPE_CXX_ODR_P): New macro.
20291 * dwarf2out.c (gen_array_type_die): First check that type
20292 is an array and then test string flag.
20293
20294 2019-06-24 Richard Biener <rguenther@suse.de>
20295
20296 PR tree-optimization/90972
20297 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20298 in common code, dealing with STRING_CST properly.
20299
20300 2019-06-24 Richard Biener <rguenther@suse.de>
20301
20302 PR tree-optimization/90930
20303 PR tree-optimization/90316
20304 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20305 decrement of limit.
20306
20307 2019-06-24 Martin Sebor <msebor@redhat.com>
20308
20309 * tree-pretty-print.h: Remove unnecessary punctuation characters
20310 from a diagnostic.
20311 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20312
20313 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20314
20315 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20316 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20317 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20318
20319 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20320
20321 * config/rs6000/darwin.h: Handle GCC target pragma.
20322
20323 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20324
20325 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20326
20327 2019-06-22 Jeff Law <law@redhat.com>
20328
20329 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20330
20331 2019-06-22 Jan Hubicka <jh@suse.cz>
20332
20333 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20334 give up on bitfields; continue searching for different refs
20335 appearing later.
20336
20337 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20338
20339 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20340 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20341 containing the offset as possible simd lane access. Look through
20342 widening conversion. Move the
20343 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20344
20345 2019-06-21 Richard Biener <rguenther@suse.de>
20346
20347 PR tree-optimization/90930
20348 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20349 flag on new stmts to avoid re-processing them.
20350
20351 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20352
20353 PR c++/90875 - added -Wswitch-outside-range option
20354 * doc/invoke.texi (Wswitch-outside-range): Document.
20355
20356 2019-06-21 Jeff Law <law@redhat.com>
20357
20358 PR tree-optimization/90949
20359 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20360 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20361
20362 2019-06-21 Richard Biener <rguenther@suse.de>
20363
20364 PR debug/90914
20365 * dwarf2out.c (prune_unused_types_walk): Always consider
20366 function-local extern declarations as used.
20367
20368 2019-06-21 Richard Biener <rguenther@suse.de>
20369
20370 PR tree-optimization/90913
20371 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20372 the scalar variant of if-conversion versioning.
20373
20374 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20375
20376 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20377 create another "omp scan inscan exclusive" array if
20378 !ctx->scan_inclusive.
20379 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20380 (lower_omp_scan): Likewise.
20381 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20382 2-bit bitfield for simd_lane_access_p member.
20383 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20384 aux == (void *)-4 as simd lane access.
20385 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20386 comment with permutations to show the canonical permutation order.
20387 (vectorizable_scan_store): Handle exclusive scan.
20388 (vectorizable_store): Call vectorizable_scan_store even for
20389 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20390
20391 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20392 "omp simd array" arrays with one byte elements.
20393
20394 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20395
20396 * config/alpha/alpha.md (@unaligned_store<mode>):
20397 Rename from unaligned_store<mode>.
20398 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20399 * config/alpha/sync.md (@load_locked_<mode>): Rename
20400 from load_locked_<mode>.
20401 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20402 (@atomic_compare_and_swap<mode>_1): Rename
20403 from atomic_compare_and_swap<mode>_1.
20404 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20405 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20406 Use gen_reload_in_aligned and gen_unaligned_store.
20407 (emit_load_locked): Remove.
20408 (emit_store_conditional): Ditto.
20409 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20410 (alpha_split_compare_and_swap): Ditto.
20411 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20412 (alpha_split_compare_and_swap_12): Use gen_load_locked
20413 and gen_store_conditional.
20414 (alpha_split_atomic_exchange): Ditto.
20415 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20416 (alpha_split_atomic_exchange_12): Use gen_load_locked
20417 and gen_store_conditional.
20418
20419 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20420
20421 * config/aarch64/aarch64-errata.h: New file.
20422 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20423 (CA53_ERR_843419_SPEC): Delete.
20424 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20425 * config/aarch64/aarch64-linux.h: Likewise.
20426 * config/aarch64/aarch64-netbsd.h: Likewise.
20427 * config/aarch64/aarch64-freebsd.h: Likewise.
20428
20429 2019-06-20 Marek Polacek <polacek@redhat.com>
20430
20431 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20432
20433 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20434
20435 * config/rs6000/rs6000.md (isa attribute): Add support for
20436 for a future processor.
20437
20438 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20439
20440 PR target/54855
20441 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20442 standard scalar operation pattern for V2DF.
20443 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20444 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20445 (*ieee_<ieee_maxmin><mode>3): Likewise.
20446 (vec_setv2df_0): Likewise.
20447
20448 2019-06-20 Jan Hubicka <jh@suse.cz>
20449
20450 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20451 parameter; it has no use in gimple memory model.
20452 (indirect_ref_may_alias_decl_p): Update.
20453
20454 2019-06-20 Martin Liska <mliska@suse.cz>
20455
20456 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20457 to 10.
20458
20459 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20460
20461 * tree-vect-stmts.c (enum scan_store_kind): New type.
20462 (scan_store_can_perm_p): Change last argument from int * to
20463 vec<enum scan_store_kind> *, record precisely which permutations
20464 need whole vector left shift or that plus VEC_COND_EXPR.
20465 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20466 and additional VEC_COND_EXPR only for those iterations that need it.
20467
20468 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20469
20470 * config.gcc: Fix ARM --with-fpu checking and error message.
20471
20472 2019-06-19 Marek Polacek <polacek@redhat.com>
20473
20474 PR c++/60364 - noreturn after first decl not diagnosed.
20475 * attribs.c (get_attribute_namespace): No longer static.
20476 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20477 attributes.
20478 (attr_noreturn_exclusions): Make it extern.
20479 * attribs.h (get_attribute_namespace): Declare.
20480 * tree-inline.c (function_attribute_inlinable_p): Use
20481 get_attribute_name.
20482
20483 2019-06-19 Martin Sebor <msebor@redhat.com>
20484
20485 PR tree-optimization/90626
20486 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20487
20488 PR tree-optimization/90626
20489 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20490 (handle_builtin_string_cmp): Call it.
20491
20492 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20493
20494 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20495 and DARWIN_NOPIE_SPEC.
20496 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20497 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20498 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20499 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20500 (DARWIN_EXPORT_DYNAMIC): Delete.
20501 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20502 and pie options processing to darwin.h.
20503 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20504
20505 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20506
20507 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20508 in computing the number of options to be moved.
20509
20510 2019-06-19 Maya Rashish <coypu@sdf.org>
20511
20512 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20513 (CLEAR_INSN_CACHE) Use it.
20514
20515 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20516
20517 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20518
20519 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20520
20521 PR middle-end/84521
20522 * builtins.c (expand_builtin_setjmp_setup): Save
20523 hard_frame_pointer_rtx.
20524 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20525 restore fp.
20526 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20527 non-local goto.
20528 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20529 elimination code.
20530 (remove_reg_equal_offset_note): Remove unused function.
20531 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20532 code.
20533 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20534 (arc_builtin_setjmp_frame_value): Remove function.
20535 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20536 (avr_builtin_setjmp_frame_value): Remove function.
20537 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20538 (ix86_builtin_setjmp_frame_value): Remove function.
20539 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20540 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20541 (sparc_builtin_setjmp_frame_value): Remove function.
20542 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20543 (vax_builtin_setjmp_frame_value): Remove function.
20544 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20545 pointer if has_nonlocal_label.
20546
20547 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20548
20549 * doc/md.texi: Document vec_shl_<mode> pattern.
20550 * optabs.def (vec_shl_optab): New optab.
20551 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20552 argument, if == vec_shl_optab, check for left whole vector shift
20553 pattern rather than right shift.
20554 (expand_vec_perm_const): Add vec_shl_optab support.
20555 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20556 in the comment.
20557 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20558 can be handled by vec_shl_optab.
20559 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20560 (check_scan_store): Use it.
20561 (vectorizable_scan_store): If target can't do normal permutations,
20562 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20563 after it.
20564 * config/i386/sse.md (vec_shl_<mode>): New expander.
20565
20566 * omp-low.c (lower_rec_input_clauses): Handle references properly
20567 in inscan clauses.
20568 (lower_omp_scan): Likewise.
20569
20570 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20571
20572 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20573 mem_mode is BLKmode.
20574
20575 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20576
20577 PR target/90922
20578 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20579 pointer adjustment for the case of no callee-saved registers and
20580 stack frame bigger than 128 bytes.
20581
20582 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20583
20584 PR middle-end/90862
20585 * omp-low.c (check_omp_nesting_restrictions): Handle
20586 GF_OMP_TARGET_KIND_OACC_DECLARE.
20587
20588 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20589
20590 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20591 (@add<mode>3_carry): Rename from add<mode>3_carry.
20592 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20593 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20594 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20595 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20596 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20597 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20598 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20599 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20600 (cmpstrnsi): Use gen_cmp_1.
20601 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20602 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20603 (@umonitor_<mode>): Rename from umonitor_<mode>.
20604 * config/i386/i386-expand.c (ix86_expand_copysign):
20605 Use gen_copysign3_const and gen_copysign3_var.
20606 (ix86_expand_xorsign): Use gen_xorsign3_1.
20607 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20608 gen_sub3_carry_ccgz and gen_cmp1.
20609 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20610 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20611 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20612 (ix86_split_lshr): Ditto.
20613 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20614
20615 2019-06-18 Jason Merrill <jason@redhat.com>
20616
20617 * tree.c (build_constructor): Add MEM_STAT_DECL.
20618
20619 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20620
20621 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20622 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20623 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20624 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20625 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20626 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20627 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20628 Use CC_NZC instead of CC.
20629 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20630 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20631 (aarch64_print_operand): Handle E_CC_NZCmode.
20632 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20633 of gen_set_clobber_cc.
20634
20635 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20636
20637 * config/aarch64/aarch64-sve.md: Tabify file.
20638
20639 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20640
20641 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20642 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20643 * config/aarch64/aarch64-sve.md: Use it.
20644
20645 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20646
20647 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20648 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20649 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20650 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20651 (aarch64_expand_sve_vec_cmp_int): Use it.
20652 (aarch64_expand_sve_vec_cmp_float): Likewise.
20653 * config/aarch64/aarch64-sve.md: Likewise throughout.
20654
20655 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20656 Kugan Vivekanandarajah <kuganv@linaro.org>
20657
20658 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20659 (*cond_<optab><mode>_z): Fold into...
20660 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20661 operand 4 can be tied to operand 0 (either inherently or via RA).
20662
20663 2019-06-18 Richard Biener <rguenther@suse.de>
20664
20665 PR debug/90900
20666 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20667 as if optimized away.
20668
20669 2019-06-18 Tom de Vries <tdevries@suse.de>
20670
20671 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20672 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20673 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20674 Rename to ...
20675 (define_insn "@set_softstack_<mode>"): ... this.
20676 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20677 (define_insn "@omp_simt_enter_<mode>"): ... this.
20678 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20679 (define_insn "@omp_simt_exit_<mode>"): ... this.
20680
20681 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20682
20683 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20684 vf parameter. Restore the previous iv step of nscalars_step,
20685 but give it iv_type rather than compare_type. Tweak code order
20686 to match the comments.
20687 (vect_set_loop_condition_masked): Update accordingly.
20688 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20689 for iv_precision. Tweak comment formatting.
20690
20691 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20692
20693 * config/darwin.c: Strip trailing whitespace.
20694
20695 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20696
20697 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20698 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20699
20700 2019-06-18 Martin Jambor <mjambor@suse.cz>
20701
20702 PR ipa/90889
20703 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20704 caller does not have flag_ipa_cp set.
20705
20706 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20707
20708 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20709 from "*fold_left_plus_<mode>", updated operands order.
20710 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20711 * internal-fn.c (mask_fold_left_direct): New define.
20712 (expand_mask_fold_left_optab_fn): Likewise.
20713 (direct_mask_fold_left_optab_supported_p): Likewise.
20714 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20715 * optabs.def (mask_fold_left_plus_optab): New optab.
20716 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20717 masked internal_fn for a reduction ifn.
20718 (vectorize_fold_left_reduction): Add support for masking reductions.
20719
20720 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20721
20722 PR middle-end/80791
20723 * target.def (predict_doloop_p): New hook.
20724 * targhooks.h (default_predict_doloop_p): New declaration.
20725 * targhooks.c (default_predict_doloop_p): New function.
20726 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20727 * doc/tm.texi: Regenerate.
20728 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20729 (TARGET_PREDICT_DOLOOP_P): New macro.
20730 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20731
20732 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20733
20734 * omp-low.c (struct omp_context): Add scan_inclusive field.
20735 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20736 if inclusive scan.
20737 (struct omplow_simd_context): Add lastlane member.
20738 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20739 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20740 1 or 2 argument.
20741 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20742 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20743 (lower_omp_scan): New function.
20744 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20745 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20746 check 3rd argument if present rather than 2nd.
20747 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20748 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20749 2-bit bitfield.
20750 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20751 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20752 than 2nd.
20753 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20754 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20755 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20756 init.
20757 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20758 IFN_GOMP_SIMD_LANE argument.
20759 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20760 encoded ->aux value.
20761 * tree-vect-stmts.c: Include attribs.h.
20762 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20763 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20764 functions.
20765 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20766 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20767
20768 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20769
20770 PR target/62055
20771 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20772 (*nabs<mode>2_1): Ditto.
20773 (nabs sse-reg splitter): New splitter.
20774 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20775
20776 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20777
20778 PR bootstrap/90873.
20779 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20780 TMR index check.
20781
20782 2019-06-17 Tom de Vries <tdevries@suse.de>
20783
20784 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20785 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20786 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20787 ...
20788 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20789 match_operand 0.
20790 (define_insn "omp_simt_enter_insn"): Rename to ...
20791 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20792 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20793 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20794 gen_omp_simt_enter_si.
20795 (define_expand "omp_simt_exit"): New.
20796 (define_insn "omp_simt_exit"): Rename to ...
20797 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20798 match_operand 0.
20799
20800 2019-06-17 Matthew Green <mrg@eterna.com.au>
20801 Maya Rashish <coypu@sdf.org>
20802
20803 * config.gcc (aarch64*-*-netbsd*): New target.
20804 * config/aarch64/aarch64-netbsd.h: New file.
20805 * config/aarch64/t-aarch64-netbsd: Likewise.
20806
20807 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20808
20809 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20810 the access path from base to first VIEW_CONVERT_EXPR or
20811 BIT_FIELD_REF.
20812
20813 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20814
20815 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20816 access path on BIT_FIELD_REFs.
20817
20818 2019-06-17 Martin Liska <mliska@suse.cz>
20819
20820 PR ipa/90874
20821 * ipa-utils.h (odr_type_p): Remove dead code.
20822
20823 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20824
20825 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
20826 alternative Solaris 11.4 format.
20827 * configure: Regenerate.
20828
20829 2019-06-17 Tom de Vries <tdevries@suse.de>
20830
20831 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
20832 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
20833 match_operand 0.
20834 (define_insn "call_value_insn"): Rename to ...
20835 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
20836 match_operand 0.
20837 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
20838 DI.
20839
20840 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
20841
20842 PR middle-end/64242
20843 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
20844 frame clobbers and schedule block.
20845 (builtin_longjmp): Likewise.
20846
20847 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20848
20849 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
20850 describe how to perform MSPABI compliant 64-bit shift.
20851 * config/msp430/msp430.md (ashldi3): New define_expand.
20852 (ashrdi3): New define_expand.
20853 (lshrdi3): New define_expand.
20854
20855 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20856
20857 * doc/sourcebuild.texi: Document new effective target keyword
20858 longlong64.
20859
20860 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20861
20862 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
20863 indirect_refs_may_alias_p): Revert accidental commits.
20864
20865 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
20866 at the end of structures.
20867
20868 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20869
20870 * config/darwin.c (machopic_indirect_call_target): Use renamed
20871 darwin_picsymbol_stubs to decide on output.
20872 (darwin_override_options): Handle darwin_picsymbol_stubs.
20873 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
20874 (LD64_VERSION): Revise default.
20875 * config/darwin.opt: (mpic-symbol-stubs): New option.
20876 (darwin_picsymbol_stubs): New variable.
20877 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
20878 rename to TARGET_MACHO_PICSYM_STUBS.
20879 * config/i386/i386.c (output_pic_addr_const): Likewise.
20880 * config/i386/i386.h Likewise.
20881 * config/rs6000/darwin.h: Likewise.
20882 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
20883 darwin_picsymbol_stubs.
20884
20885 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
20886
20887 * config/darwin.opt (prebind, noprebind, seglinkedit,
20888 noseglinkedit): Add RejectNegative.
20889
20890 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
20891
20892 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
20893 in my previous patch.
20894
20895 2019-06-16 Tom de Vries <tdevries@suse.de>
20896
20897 PR tree-optimization/89376
20898 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
20899
20900 2019-06-15 Maya Rashish <coypu@sdf.org>
20901
20902 * doc/invoke.texi (Spec Files): Update location of the
20903 Fortran spec file.
20904
20905 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
20906
20907 * doc/extend.texi (Common Function Attributes): Clarify
20908 no_sanitize. Fix grammar.
20909
20910 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
20911
20912 * tree-ssa-alias.c (alias_stats): Add
20913 nonoverlapping_component_refs_p_may_alias,
20914 nonoverlapping_component_refs_p_no_alias,
20915 nonoverlapping_component_refs_of_decl_p_may_alias,
20916 nonoverlapping_component_refs_of_decl_p_no_alias.
20917 (dump_alias_stats): Dump them.
20918 (nonoverlapping_component_refs_of_decl_p): Add stats.
20919 (nonoverlapping_component_refs_p): Add stats; do not stop on first
20920 ARRAY_REF.
20921
20922 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
20923
20924 * config/i386/i386.md (and<mode>3): Generate zero-extends for
20925 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
20926 only.
20927 (*anddi3_doubleword): Split before reload. Merge with
20928 anddi->zext pre-reload splitter.
20929 (*andndi3_doubleword): Split before reload.
20930 (*<code>di3_doubleword): Ditto.
20931 (*one_cmpldi2_doubleword): Ditto.
20932
20933 2019-06-15 Jakub Jelinek <jakub@redhat.com>
20934
20935 PR middle-end/90779
20936 * gimplify.c: Include omp-offload.h and context.h.
20937 (gimplify_bind_expr): Add "omp declare target" attributes
20938 to static block scope variables inside of target region or target
20939 functions.
20940
20941 2019-06-15 Tom de Vries <tdevries@suse.de>
20942
20943 PR tree-optimization/90009
20944 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
20945 Return NULL if bb contains IFN_UNIQUE.
20946
20947 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
20948
20949 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
20950 (un): New define_mode_attr.
20951 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
20952 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
20953 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
20954 merge into ...
20955 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
20956
20957 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
20958
20959 * config/darwin.opt: Add RejectNegative where needed, reorder
20960 and add minimal functional descriptions.
20961
20962 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20963
20964 PR rtl-optimization/90765
20965 * calls.c (update_stack_alignment_for_call): New function.
20966 (expand_call): Call update_stack_alignment_for_call when
20967 outgoing parameter is passed in the stack.
20968 (emit_library_call_value_1): Likewise.
20969 * function.c (locate_and_pad_parm): Don't update
20970 stack_alignment_needed and preferred_stack_boundary.
20971
20972 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
20973
20974 PR target/90877
20975 * config/i386/i386-features.c
20976 (dimode_scalar_chain::compute_convert_gain): Replace
20977 mmxsse_to_integer with sse_to_integer.
20978 * config/i386/i386.c (ix86_register_move_cost): Verify that
20979 moves between MMX and non-MMX units require secondary memory.
20980 Correct costs of moves between SSE and integer units.
20981 * config/i386/i386.h (processor_costs): Rename cost of moving
20982 SSE register to integer to sse_to_integer. Rename cost of
20983
20984 2019-06-14 Matt Thomas <matt@3am-software.com>
20985 Matthew Green <mrg@eterna.com.au>
20986 Nick Hudson <skrll@netbsd.org>
20987 Maya Rashish <coypu@sdf.org>
20988 Richard Earnshaw <rearnsha@arm.com>
20989
20990 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
20991 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
20992 * config/arm/netbsd-eabi.h: New file.
20993 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
20994 redefining.
20995 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
20996 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
20997 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
20998 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
20999
21000 2019-06-14 Richard Biener <rguenther@suse.de>
21001
21002 * tree-loop-distribution.c (classify_partition): Return
21003 whether a reduction appeared in all partitions and do not
21004 stop builtin detection because of this.
21005 (distribute_loop): Sort a non-builtin partition last if
21006 there's a reduction in all partitions and make sure the
21007 partition prevailing as last is not a builtin.
21008
21009 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21010
21011 PR ipa/90401
21012 * ipa-prop.c (add_to_agg_contents_list): New function.
21013 (clobber_by_agg_contents_list_p): Likewise.
21014 (extract_mem_content): Likewise.
21015 (get_place_in_agg_contents_list): Delete.
21016 (determine_known_aggregate_parts): Renamed from
21017 determine_locally_known_aggregate_parts. New parameter
21018 aa_walk_budget_p.
21019
21020 2019-06-13 Martin Sebor <msebor@redhat.com>
21021
21022 PR tree-optimization/90662
21023 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21024 to the same type.
21025
21026 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21027
21028 PR bootstrap/90873
21029 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21030 dbase is not TARGET_MEM_REF.
21031
21032 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21033
21034 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21035 Update all uses.
21036 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21037 Do not generate DImode extends for 32bit targets.
21038 (and->zext post-reload splitter): Use gen_extend_insn
21039 instead of indirect functions.
21040 (anddi->zext pre-reload splitter): New.
21041 (*zext<mode>_doubleword_and): Remove.
21042 (*zext<mode>_doubleword): Ditto.
21043 (*zextsi_doubleword): Dittto.
21044
21045 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21046
21047 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
21048 Use gen_sub3_insn instead of indirect function.
21049 (ix86_expand_ashl_const): Use gen_add2_insn instead of
21050 indirect function.
21051 (ix86_adjust_counter): Ditto.
21052
21053 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
21054 Lijia He <helijia@linux.ibm.com>
21055
21056 PR tree-optimization/77820
21057 * tree-ssa-threadedge.c
21058 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
21059 function.
21060 (thread_across_edge): Add call to
21061 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
21062
21063 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
21064
21065 * config/darwin-driver.c (validate_macosx_version_min): New.
21066 (darwin_default_min_version): Cleanup and validate supplied version.
21067 (darwin_driver_init): Likewise and push cleaned version into opts.
21068
21069 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21070
21071 PR tree-optimization/90869
21072 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
21073 converts in MEM_REF referencing decl rather than view converts
21074 from decl type to MEM_REF type.
21075
21076 2019-06-13 Richard Biener <rguenther@suse.de>
21077
21078 PR tree-optimization/90856
21079 * tree-sra.c (build_ref_for_model): Only use
21080 build_reconstructed_reference when address-spaces are the same.
21081
21082 2019-06-13 Jakub Jelinek <jakub@redhat.com>
21083
21084 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
21085 wrap ei variable name in the declaration in ()s.
21086 (nvptx_single): Actually use mode_label variable. Formatting fix.
21087
21088 2019-06-13 Richard Biener <rguenther@suse.de>
21089
21090 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
21091 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
21092 also return the condition stmt.
21093 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
21094 loop we can version and version that, reusing the loop version
21095 created by if-conversion instead of versioning again.
21096
21097 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
21098
21099 * gimple-loop-versioning.cc (prune_loop_conditions): Use
21100 may_contain_p.
21101 * tree-vrp (value_range_base::may_contain_p): Call into
21102 value_inside_range.
21103 (value_inside_range): Make private inside value_range_base class.
21104 Take min/max from *this.
21105 (range_includes_p): Remove.
21106 * tree-vrp.h (value_range_base): Add value_inside_range.
21107 (range_includes_p): Remove.
21108 (range_includes_zero_p): Call may_contain_p.
21109 * vr-values.c (compare_range_with_value): Same.
21110
21111 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
21112
21113 * doc/extend.texi (ARC Function Attributes): Update info.
21114
21115 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
21116
21117 PR tree-optimization/89713
21118 * doc/invoke.texi (-ffinite-loops): Document new option.
21119 * common.opt (-ffinite-loops): New option.
21120 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
21121 IFN_GOACC_LOOP calls as necessary.
21122 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
21123 is finite.
21124 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
21125 IFN_GOACC_LOOP call is not used.
21126 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
21127
21128 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21129
21130 PR target/88838
21131 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
21132 compare_type is not with Pmode size, we will create an IV with
21133 Pmode size with truncated use (i.e. converted to the correct type).
21134 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
21135 (vect_iv_limit_for_full_masking): New. Factored out of
21136 vect_set_loop_condition_masked.
21137 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
21138 (vect_iv_limit_for_full_masking): Declare.
21139
21140 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21141
21142 PR target/88834
21143 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
21144 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
21145 (get_alias_ptr_type_for_ptr_address): Likewise.
21146 (add_iv_candidate_for_use): Add scaled index candidate if useful.
21147 * tree-ssa-address.c (preferred_mem_scale_factor): New.
21148 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
21149 allow_reg_index_p.
21150
21151 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21152
21153 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
21154
21155 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
21156
21157 * common/config/pru/pru-common.c: New file.
21158 * config.gcc: Add PRU target.
21159 * config/pru/alu-zext.md: New file.
21160 * config/pru/constraints.md: New file.
21161 * config/pru/predicates.md: New file.
21162 * config/pru/pru-opts.h: New file.
21163 * config/pru/pru-passes.c: New file.
21164 * config/pru/pru-pragma.c: New file.
21165 * config/pru/pru-protos.h: New file.
21166 * config/pru/pru.c: New file.
21167 * config/pru/pru.h: New file.
21168 * config/pru/pru.md: New file.
21169 * config/pru/pru.opt: New file.
21170 * config/pru/t-pru: New file.
21171 * doc/extend.texi: Document PRU pragmas.
21172 * doc/invoke.texi: Document PRU-specific options.
21173 * doc/md.texi: Document PRU asm constraints.
21174
21175 2019-06-12 Martin Sebor <msebor@redhat.com>
21176
21177 PR middle-end/90676
21178 * tree-pretty-print.c (dump_mem_ref): New function. Include
21179 MEM_REF type in output when different size than operand.
21180 (dump_generic_node): Move code to dump_mem_ref and call it.
21181
21182 2019-06-12 Martin Sebor <msebor@redhat.com>
21183
21184 PR tree-optimization/90662
21185 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21186 to arrays.
21187
21188 2019-06-12 Tom de Vries <tdevries@suse.de>
21189
21190 PR tree-optimization/90009
21191 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21192
21193 2019-06-12 Martin Liska <mliska@suse.cz>
21194
21195 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21196 the created map.
21197 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21198 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21199 Do not sanitize created maps.
21200
21201 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21202
21203 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21204 value_range::singleton_p.
21205 * tree-vrp.c (value_range_constant_singleton): Remove.
21206 * tree-vrp.h (value_range_constant_singleton): Remove.
21207 * vr-values.c (vr_values::singleton): Use
21208 value_range::singleton_p.
21209
21210 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21211
21212 PR target/90811
21213 * cfgexpand.c (align_local_variable): Add really_expand argument,
21214 don't SET_DECL_ALIGN if it is false.
21215 (add_stack_var): Add really_expand argument, pass it through to
21216 align_local_variable.
21217 (expand_one_stack_var_1): Pass true as really_expand to
21218 align_local_variable.
21219 (expand_one_ssa_partition): Pass true as really_expand to
21220 add_stack_var.
21221 (expand_one_var): Pass really_expand through to add_stack_var.
21222
21223 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21224
21225 * config/arm/iterators.md (VABAL): New int iterator.
21226 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21227 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21228 UNSPEC_VABAL_U values.
21229
21230 2019-06-12 Martin Liska <mliska@suse.cz>
21231
21232 * value-prof.c (stream_out_histogram_value): Only first value
21233 can't be negative.
21234
21235 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21236
21237 PR c/90760
21238 * symtab.c (symtab_node::set_section): Allow being called on aliases
21239 as long as they aren't analyzed yet.
21240
21241 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21242
21243 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21244 to `mips_set_text_contents_type' to indicate whether a
21245 non-debug insn follows.
21246
21247 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21248
21249 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21250 enabling -mpcrel by default.
21251 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21252 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21253 that the test against -mcpu=future is done first. Then test if
21254 -mprefixed-addr is on for -mpcrel.
21255 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21256
21257 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21258
21259 PR target/90811
21260 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21261 instead of and.u%d.
21262
21263 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21264
21265 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21266
21267 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21268
21269 PR c++/90449 - add -Winaccessible-base option.
21270 * doc/invoke.texi (Winaccessible-base): Document.
21271
21272 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21273
21274 PR tree-optimization/62041
21275 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21276
21277 2019-06-11 Jason Merrill <jason@redhat.com>
21278
21279 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21280 * tree.c (get_tree_code_name): Likewise.
21281 * print-tree.c (print_node): Only briefly print a node with an
21282 invalid code.
21283
21284 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21285
21286 PR bootstrap/90819
21287 * trans-mem.c (tm_memopt_compute_available): Add assertion
21288 that blocks is not empty. Formatting fix.
21289
21290 2019-06-11 Martin Liska <mliska@suse.cz>
21291
21292 PR c++/87847
21293 * hash-table.h: Extend create_gcc, add one parameter
21294 that is passed into hash_table::hash_table.
21295
21296 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21297
21298 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21299 New prototype.
21300 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21301 Emit clobber also for non-sse operations.
21302 (ix86_split_fp_absneg_operator): New function.
21303 * config/i386/i386.md (SSEMODEF): New mode iterator.
21304 (ssevecmodef): New mode attribute.
21305 (<code>tf2): Use absneg code iterator.
21306 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21307 Add three-operand AVX alternatives.
21308 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21309 Use absneg code iterator and X87MODEF mode iterator.
21310 (absneg fp_reg non-sse splitter): Call absneg code iterator
21311 and X87MODEF mode iterator.
21312 (absneg general_reg non-sse splitter): Use absneg code iterator
21313 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21314 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21315 code iterator. Add three-operand AVX alternative.
21316 (absneg sse_reg splitter): Use absneg code iterator
21317 and SSEMODEF mode iterator. Handle AVX operands.
21318 (absneg fp_reg splitter): Use absneg code iterator
21319 and MODEF mode iterator.
21320 (absneg general_reg splitter): Merge splitters using MODEF mode
21321 iterator. Use absneg code iterator. Call
21322 ix86_split_fp_absneg_operator.
21323 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21324 Do not enable for non-sse modes before reload.
21325 (CSGNMODE): Remove.
21326 (CSGNVMODE): Ditto.
21327 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21328 ssevecmodef mode attribute instaed of CSGNVMODE.
21329 (copysign<mode>3_const): Ditto.
21330 (copysign<mode>3_var): Ditto.
21331 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21332 Use absneg code iterator. Simplify code using std::swap.
21333 * config/i386/predicates.md (absneg_operator): Remove.
21334
21335 2019-06-10 Martin Sebor <msebor@redhat.com>
21336
21337 * gimple-fold.c (get_range_strlen): Update comment that didn't
21338 make it into r267503 or related commits.
21339
21340 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21341
21342 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21343 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21344
21345 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21346
21347 * tree.def (OMP_SCAN): New tree code.
21348 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21349 OMP_CLAUSE_EXCLUSIVE.
21350 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21351 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21352 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21353 OMP_CLAUSE_{IN,EX}CLUSIVE.
21354 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21355 * tree-nested.c (convert_nonlocal_reference_stmt,
21356 convert_local_reference_stmt, convert_gimple_call): Handle
21357 GIMPLE_OMP_SCAN.
21358 * tree-pretty-print.c (dump_omp_clause): Handle
21359 OMP_CLAUSE_{IN,EX}CLUSIVE.
21360 (dump_generic_node): Handle OMP_SCAN.
21361 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21362 * gimple.h (gomp_scan): New type.
21363 (is_a_helper <gomp_scan *>::test,
21364 is_a_helper <const gomp_scan *>::test): New templates.
21365 (gimple_build_omp_scan): Declare.
21366 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21367 gimple_omp_scan_set_clauses): New inline functions.
21368 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21369 * gimple.c (gimple_build_omp_scan): New function.
21370 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21371 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21372 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21373 GIMPLE_OMP_TASKGROUP.
21374 (dump_gimple_omp_scan): New function.
21375 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21376 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21377 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21378 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21379 (is_gimple_stmt): Handle OMP_SCAN.
21380 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21381 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21382 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21383 mentioned in nested #pragma omp scan. Handle
21384 OMP_CLAUSE_{IN,EX}CLUSIVE.
21385 (gimplify_expr): Handle OMP_SCAN.
21386 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21387 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21388 simd constructs.
21389 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21390 GIMPLE_OMP_SCAN.
21391
21392 2019-06-10 Martin Liska <mliska@suse.cz>
21393
21394 * ipa-cp.c (ignore_edge_p): New function.
21395 (build_toporder_info): Use it.
21396 * ipa-inline.c (ignore_edge_p): New function.
21397 (inline_small_functions): Use it.
21398 * ipa-pure-const.c (ignore_edge_for_nothrow):
21399 Verify opt_for_fn for caller and callee.
21400 (ignore_edge_for_pure_const): Likewise.
21401 * ipa-reference.c (ignore_edge_p): Extend to check
21402 for opt_for_fn.
21403 * ipa-utils.c (searchc): Refactor.
21404 * ipa-utils.h: Fix coding style.
21405
21406 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21407
21408 * config/arc/arc.c (arc_rtx_costs): Update costs.
21409
21410 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21411
21412 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21413 (arc_split_ior): Likewise.
21414 (arc_check_mov_const): Likewise.
21415 (arc_split_mov_const): Likewise.
21416 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21417 (arc_rtx_costs): Replace check Crr with Cax constraint.
21418 (prepare_move_operands): Cleanup, remove unused code.
21419 (arc_split_ior): New function.
21420 (arc_check_ior_const): Likewise.
21421 (arc_split_mov_const): Likewise.
21422 (arc_check_mov_const): Likewise.
21423 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21424 in define_insn_and_split pattern.
21425 (iorsi3): Likewise.
21426 (mulsi3_v2): Add new matching variant.
21427 (andsi3_i): Cleanup pattern.
21428 (rotrsi3_cnt1): Update pattern.
21429 (rotrsi3_cnt8): New pattern.
21430 (ashlsi2_cnt8): Likewise.
21431 (ashlsi2_cnt16): Likewise.
21432 * config/arc/constraints.md (C0p): Update constraint.
21433 (Crr): Remove it.
21434 (C0x): New pattern.
21435 (Cax): New pattern.
21436
21437 2019-06-10 Martin Liska <mliska@suse.cz>
21438
21439 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21440 Update coding style.
21441 (sem_item_optimizer::dump_cong_classes):
21442 Print how many items are in a non-singular class. Improve
21443 coding style.
21444
21445 2019-06-10 Martin Liska <mliska@suse.cz>
21446
21447 * value-prof.c (dump_histogram_value): Change dump format.
21448 (gimple_mod_subtract_transform): Remove legacy comment.
21449
21450 2019-06-10 Martin Liska <mliska@suse.cz>
21451
21452 * value-prof.c (dump_histogram_value): Print histogram values
21453 only if present.
21454
21455 2019-06-10 Martin Liska <mliska@suse.cz>
21456
21457 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21458 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21459 * ipa-profile.c (ipa_profile_generate_summary):
21460 Use get_most_common_single_value.
21461 * tree-profile.c (gimple_init_gcov_profiler):
21462 Instrument with __gcov_one_value_profiler_v2
21463 and __gcov_indirect_call_profiler_v4.
21464 * value-prof.c (dump_histogram_value):
21465 Print all values for HIST_TYPE_SINGLE_VALUE.
21466 (stream_out_histogram_value): Update assert for
21467 N values.
21468 (stream_in_histogram_value): Set number of
21469 counters for HIST_TYPE_SINGLE_VALUE.
21470 (get_most_common_single_value): New.
21471 (gimple_divmod_fixed_value_transform):
21472 Use get_most_common_single_value.
21473 (gimple_ic_transform): Likewise.
21474 (gimple_stringops_transform): Likewise.
21475 (gimple_find_values_to_profile): Set number
21476 of counters for HIST_TYPE_SINGLE_VALUE.
21477 * value-prof.h (get_most_common_single_value): New.
21478
21479 2019-06-10 Martin Liska <mliska@suse.cz>
21480
21481 * hash-map.h: Pass default value to hash_table ctor.
21482 * hash-table.h: Add default value to call of a ctor.
21483
21484 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21485
21486 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21487 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21488
21489 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21490
21491 PR target/90751
21492 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21493 Call pa_output_function_label.
21494 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21495 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21496 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21497 to declaration.
21498 (pa_linux_output_function_prologue): Declare.
21499 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21500 (pa_output_function_label): New.
21501 (pa_output_function_prologue): Revise to use pa_output_function_label.
21502 (pa_linux_output_function_prologue): New.
21503 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21504
21505 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21506
21507 * tree-vrp.h (value_range_base::intersect): New.
21508 (value_range::intersect_helper): Move from here...
21509 (value_range_base::intersect_helper): ...to here.
21510 * tree-vrp.c (value_range::intersect_helper): Rename to...
21511 (value_range_base::intersect_helper): ...this, and rewrite to
21512 return a value instead of modifying THIS in place.
21513 Also, move equivalence handling...
21514 (value_range::intersect): ...here, while calling intersect_helper.
21515 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21516 calling intersect.
21517 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21518 Same.
21519 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21520
21521 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21522
21523 * Makefile.in (genprogerr): Add condmd.
21524 (genprog): Remove it here.
21525
21526 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21527
21528 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21529
21530 2019-06-07 Richard Biener <rguenther@suse.de>
21531
21532 PR debug/90574
21533 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21534 that appear after user labels.
21535
21536 2019-06-07 Martin Liska <mliska@suse.cz>
21537
21538 * cselib.c (cselib_init): Disable hash table
21539 sanitization.
21540 * hash-set.h: Pass new default argument to m_table.
21541 * hash-table.c: Add global variable with hash table
21542 sanitization limit.
21543 * hash-table.h (Allocator>::hash_table): Add new argument
21544 to ctor.
21545 (hashtab_chk_error): New.
21546 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21547 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21548 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21549
21550 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21551
21552 * common.opt (flto-odr-type-merging): Ignore.
21553 * invoke.texi (-flto-odr-type-merging): Remove.
21554 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21555 (can_be_vtable_hashed_p): Remove.
21556 (hash_odr_vtable): Remove.
21557 (odr_vtable_hasher::hash): Remove.
21558 (types_same_for_odr): Remove.
21559 (types_odr_comparable): Remove.
21560 (odr_vtable_hasher::equal): Remove.
21561 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21562 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21563 (get_odr_type): Do not use vtable hash.
21564 (dump_odr_type): Remove commented out code.
21565 (build_type_inheritance_graph): Do not allocate vtable hash.
21566 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21567 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21568 (odr_type_p): Likewise.
21569 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21570 test.
21571
21572 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21573
21574 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21575 immediately after same_types_for_tbaa_p returns -1 and continue
21576 looking for possible exact match; if matching types are arrays
21577 watch for partial overlaps.
21578 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21579 (indirect_refs_may_alias_p): Do type based disambiguation first;
21580 update comment.
21581
21582 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21583
21584 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21585
21586 2019-06-07 Martin Liska <mliska@suse.cz>
21587
21588 * doc/invoke.texi: Remove param.
21589 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21590 Remove.
21591 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21592 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21593 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21594 * profile.c (instrument_values): Remove
21595 HIST_TYPE_INDIR_CALL_TOPN.
21596 * tree-profile.c (init_ic_make_global_vars):
21597 Always build __gcov_indirect_call only.
21598 (gimple_init_gcov_profiler): Remove usage
21599 of PARAM_INDIR_CALL_TOPN_PROFILE.
21600 (gimple_gen_ic_profiler): Likewise.
21601 * value-prof.c (dump_histogram_value): Likewise.
21602 (stream_in_histogram_value): Likewise.
21603 (gimple_indirect_call_to_profile): Likewise.
21604 (gimple_find_values_to_profile): Likewise.
21605 * value-prof.h (enum hist_type): Likewise.
21606
21607 2019-06-07 Martin Liska <mliska@suse.cz>
21608
21609 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21610 function.
21611
21612 2019-06-07 Martin Liska <mliska@suse.cz>
21613
21614 PR tree-optimization/78902
21615 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21616 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21617 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21618 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21619 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21620 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21621 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21622 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21623 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21624 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21625 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21626 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21627 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21628 New.
21629 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21630 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21631 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21632 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21633 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21634 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21635 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21636 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21637 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21638 warn_unused_result attribute.
21639 (BUILT_IN_STRDUP): Likewise.
21640 (BUILT_IN_STRNDUP): Likewise.
21641 (BUILT_IN_ALLOCA): Likewise.
21642 (BUILT_IN_CALLOC): Likewise.
21643 (BUILT_IN_MALLOC): Likewise.
21644 (BUILT_IN_REALLOC): Likewise.
21645
21646 2019-06-06 Jim Wilson <jimw@sifive.com>
21647
21648 PR target/89955
21649 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21650 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21651 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21652
21653 2019-06-06 Martin Sebor <msebor@redhat.com>
21654
21655 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21656 (handle_builtin_malloc): Remove trailing spaces.
21657 (handle_builtin_memset): Same.
21658 (handle_builtin_memcmp): Same.
21659 (compute_string_length): Same.
21660 (determine_min_objsize): Same.
21661 (handle_builtin_string_cmp): Same.
21662 (handle_char_store): Same. Break up excessively long line.
21663
21664 2019-06-06 Martin Jambor <mjambor@suse.cz>
21665
21666 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21667 check.
21668
21669 2019-06-06 Martin Jambor <mjambor@suse.cz>
21670
21671 * tree-sra.c (struct access): New field grp_same_access_path.
21672 (dump_access): Dump it.
21673 (build_reconstructed_reference): New function.
21674 (build_ref_for_model): Use it if possible.
21675 (path_comparable_for_same_access): New function.
21676 (same_access_path_p): Likewise.
21677 (sort_and_splice_var_accesses): Set the new flag.
21678 (analyze_access_subtree): Likewise.
21679 (propagate_subaccesses_across_link): Propagate zero value of the new
21680 flag down the access tree.
21681
21682 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21683
21684 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21685 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21686 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21687 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21688 Add gfx906.
21689
21690 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21691
21692 PR tree-optimization/90332
21693 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21694 Handle VALS containing two vectors.
21695 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21696 to...
21697 (@aarch64_combinez<mode>): ... This.
21698 (*aarch64_combinez_be<mode>): Rename to...
21699 (@aarch64_combinez_be<mode>): ... This.
21700 (vec_init<mode><Vhalf>): New define_expand.
21701 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21702
21703 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21704
21705 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21706 library functions only when not optimizing for size.
21707 (ashlsi3): Likewise.
21708 (ashrhi3): Likewise.
21709 (ashrsi3): Likewise.
21710 (lshrhi3): Likewise.
21711 (lshrsi3): Likewise.
21712
21713 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21714
21715 PR rtl-optimization/88751
21716 * ira.c (ira): Use the number of the actually referenced registers
21717 when calculating the threshold.
21718
21719 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21720
21721 * configure: Regenerate.
21722
21723 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21724
21725 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21726 register if it is in memory, so the shift can be emulated with a rotate
21727 instruction.
21728 (ashrhi3): Likewise.
21729 (lshrhi3): Likewise.
21730
21731 2019-06-06 Martin Liska <mliska@suse.cz>
21732
21733 PR tree-optimization/87954
21734 * match.pd: Simplify mult where both arguments are 0 or 1.
21735
21736 2019-06-06 Richard Biener <rguenther@suse.de>
21737
21738 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21739 put equivalences on UNDEFINED ranges.
21740 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21741 Make sure to drop defs of stmts added during simplification
21742 to VARYING.
21743
21744 2019-06-06 Richard Biener <rguenther@suse.de>
21745
21746 * tree-ssa-structalias.c: Include tree-cfg.h.
21747 (make_heapvar): Do not make heap vars artificial.
21748 (find_func_aliases_for_builtin_call): Handle stack allocation
21749 functions.
21750 (find_func_aliases): Delay processing of simple enough returns
21751 in non-IPA mode.
21752 (set_uids_in_ptset): Adjust.
21753 (find_what_var_points_to): Likewise.
21754 (solve_constraints): Do not dump points-to sets here.
21755 (compute_points_to_sets): Post-process return statements,
21756 amending the escaped solution. Dump points-to sets afterwards.
21757 (ipa_pta_execute): Dump points-to sets.
21758
21759 2019-06-06 Martin Liska <mliska@suse.cz>
21760
21761 PR web/87933
21762 * doc/install.texi: Fix HTML headers and
21763 titles for 'Installing GCC' pages.
21764
21765 2019-06-06 Martin Liska <mliska@suse.cz>
21766
21767 * ipa-icf-gimple.h (dump_message_1): Remove.
21768 (dump_message): Likewise.
21769 (return_false_with_message_1): Print also file.
21770 (return_false_with_msg): Likewise.
21771 (return_with_result): Likewise.
21772 (return_with_debug): Likewise.
21773 * ipa-icf.c (sem_function::equals_private): Remove call
21774 to dump_message.
21775
21776 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21777
21778 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21779 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21780 memory operand for it.
21781 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21782
21783 2019-06-05 Martin Sebor <msebor@redhat.com>
21784
21785 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21786 Adjust quoting and hyphenation.
21787 * convert.c (convert_to_real_1): Same.
21788 * gcc.c (driver_wrong_lang_callback): Same.
21789 (driver::handle_unrecognized_options): Same.
21790 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21791 * opts-common.c (cmdline_handle_error): Same.
21792 (read_cmdline_option): Same.
21793 * opts-global.c (complain_wrong_lang): Same.
21794 (print_ignored_options): Same.
21795 (handle_common_deferred_options): Same.
21796 * pretty-print.h: Same.
21797 * print-rtl.c (debug_bb_n_slim): Same.
21798 * sched-rgn.c (make_pass_sched_fusion): Same.
21799 * tree-cfg.c (verify_gimple_assign_unary): Same.
21800 (verify_gimple_label): Same.
21801 * tree-ssa-operands.c (verify_ssa_operands): Same.
21802 * varasm.c (do_assemble_alias): Same.
21803 (assemble_alias): Same.
21804
21805 2019-06-05 Richard Henderson <rth@twiddle.net>
21806
21807 * config/alpha/alpha.c (direct_return): Move down after
21808 struct machine_function definition; use saved frame_size;
21809 return bool.
21810 (struct machine_function): Add sa_mask, sa_size, frame_size.
21811 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21812 (alpha_compute_frame_layout): ... new function.
21813 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21814 (alpha_initial_elimination_offset): Use saved sa_size.
21815 (alpha_vms_initial_elimination_offset): Likewise.
21816 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
21817 (alpha_expand_prologue): Use saved frame data. Merge integer
21818 and fp register save loops.
21819 (alpha_expand_epilogue): Likewise.
21820 (alpha_start_function): Use saved frame data.
21821 * config/alpha/alpha-protos.h (direct_return): Update.
21822 (alpha_sa_size): Remove.
21823
21824 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
21825
21826 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
21827 multiplication by a power-of-two value.
21828 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
21829 and turn the modulo operation into a masking operation.
21830
21831 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21832
21833 PR debug/90733
21834 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
21835 with VOIDmode inner operands.
21836
21837 2019-06-05 Richard Biener <rguenther@suse.de>
21838
21839 PR middle-end/90726
21840 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
21841 turn an expression graph into a tree.
21842
21843 2019-06-05 Jakub Jelinek <jakub@redhat.com>
21844
21845 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
21846 member.
21847 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
21848 treat it like explicit monotonic schedule modifier.
21849 (expand_omp_for): Initialize has_lastprivate_conditional.
21850 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
21851 schedule modifier.
21852
21853 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
21854 references, lookup in in hash map MEM_REF operand instead of the
21855 MEM_REF itself.
21856 (lower_omp_1): When looking for lastprivate conditional assignments,
21857 handle MEM_REFs with REFERENCE_TYPE operands.
21858
21859 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
21860 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
21861 and references a VLA. Handle references to non-VLAs if is_simd
21862 all privatization clauses like reductions.
21863 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
21864 If omp_is_reference, use always omp simd arrays and set
21865 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
21866 fails, emit reference initialization.
21867
21868 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21869
21870 PR target/89803
21871 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
21872 _mm_mask_fpclass_sd_mask): New intrinsics.
21873 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
21874 * config/i386/i386-builtin.def
21875 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
21876 New builtins.
21877 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
21878 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
21879 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
21880 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
21881 case QI_FTYPE_V2SF_INT): Ditto.
21882 * config/i386/sse.md
21883 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
21884 Extended to insnstructions with mask operands.
21885
21886 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21887
21888 * config/rs6000/constraints.md (define_register_constraint "wp"):
21889 Delete.
21890 (define_register_constraint "wq"): Delete.
21891 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21892 (rs6000_init_hard_regno_mode_ok): Adjust.
21893 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21894 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
21895 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
21896 (define_mode_attr VSa): Delete.
21897 (define_mode_attr VSisa): New.
21898 (rest of file): Adjust.
21899 * doc/md.texi (Machine Constraints): Adjust.
21900
21901 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21902
21903 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
21904 (define_attr "enabled"): Handle those new isa values.
21905
21906 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21907
21908 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
21909 (define_mode_attr VSr5): Delete.
21910 (define_mode_attr VStype_sqrt): Delete.
21911 (define_mode_iterator VSX_SPDP): Delete.
21912 (define_mode_attr VS_spdp_res): Delete.
21913 (define_mode_attr VS_spdp_insn): Delete.
21914 (define_mode_attr VS_spdp_type): Delete.
21915 (*vsx_sqrt<mode>2): Adjust.
21916 (vsx_<VS_spdp_insn>): Delete, split to...
21917 (vsx_xscvdpsp): ... this. New. And...
21918 (vsx_xvcvspdp): ... this. New. And...
21919 (vsx_xvcvdpsp): ... this. New.
21920
21921 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21922
21923 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
21924 and V2DF.
21925 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
21926 (rest of file): Adjust.
21927
21928 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21929
21930 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
21931 (vsx_extract_<mode>_var): Ditto.
21932
21933 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21934
21935 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
21936 with just "wa".
21937
21938 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21939
21940 * config/rs6000/constraints.md (define_register_constraint "ww"):
21941 Delete.
21942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21943 (rs6000_init_hard_regno_mode_ok): Adjust.
21944 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21945 RS6000_CONSTRAINT_ww.
21946 * config/rs6000/rs6000.md: Adjust.
21947 * config/rs6000/vsx.md: Adjust.
21948 * doc/md.texi (Machine Constraints): Adjust.
21949
21950 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21951
21952 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
21953 (define_mode_attr sd): New.
21954 (define_mode_attr s): New.
21955 (define_mode_attr Ftrad): Delete.
21956 (define_mode_attr Fvsx): Delete.
21957 (define_mode_attr Fs): Delete.
21958 (rest of file): Use the new mode attributes.
21959 * config.rs6000/vsx.md: Use the new mode attributes.
21960
21961 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21962
21963 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
21964 with just "wa".
21965
21966 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21967
21968 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
21969 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21970 used with VSX_B, VSX_D, or VSX_F, with just "wa".
21971
21972 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
21973
21974 PR target/78263
21975 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
21976 C++ with strict ANSI requirements.
21977
21978 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
21979
21980 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
21981 computations when step is 1.
21982
21983 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
21984
21985 * config/rs6000/constraints.md (define_register_constraint "wf"):
21986 Delete.
21987 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
21988 (rs6000_init_hard_regno_mode_ok): Adjust.
21989 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
21990 RS6000_CONSTRAINT_wf.
21991 * config/rs6000/rs6000.md: Adjust.
21992 * config/rs6000/vsx.md: Adjust.
21993 * doc/md.texi (Machine Constraints): Adjust.
21994
21995 2019-06-04 Andrew Pinski <apinski@marvell.com>
21996
21997 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
21998 Fix ILP32 value.
21999
22000 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22001
22002 * config/rs6000/constraints.md (define_register_constraint "wd"):
22003 Delete.
22004 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22005 (rs6000_init_hard_regno_mode_ok): Adjust.
22006 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22007 RS6000_CONSTRAINT_wd.
22008 * config/rs6000/rs6000.md: Adjust.
22009 * config/rs6000/vsx.md: Adjust.
22010 * doc/md.texi (Machine Constraints): Adjust.
22011
22012 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22013
22014 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22015 (rest of file): Adjust.
22016
22017 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22018
22019 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22020 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22021 (vsx_splat_<mode>_reg): Adjust.
22022
22023 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22024
22025 * config/rs6000/constraints.md (define_register_constraint "ws"):
22026 Delete.
22027 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22028 (rs6000_init_hard_regno_mode_ok): Adjust.
22029 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22030 RS6000_CONSTRAINT_ws.
22031 * config/rs6000/rs6000.md: Adjust.
22032 * config/rs6000/vsx.md: Adjust.
22033 * doc/md.texi (Machine Constraints): Adjust.
22034
22035 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22036
22037 * config/rs6000/constraints.md (define_register_constraint "wv"):
22038 Delete.
22039 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22040 (rs6000_init_hard_regno_mode_ok): Adjust.
22041 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22042 RS6000_CONSTRAINT_wv.
22043 * config/rs6000/rs6000.md: Adjust.
22044 * config/rs6000/vsx.md: Adjust.
22045 * doc/md.texi (Machine Constraints): Adjust.
22046
22047 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22048
22049 * config/rs6000/constraints.md (define_register_constraint "wi"):
22050 Delete.
22051 (define_register_constraint "wt"): Delete.
22052 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22053 (rs6000_init_hard_regno_mode_ok): Adjust.
22054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22055 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
22056 * config/rs6000/rs6000.md: Adjust.
22057 * config/rs6000/vsx.md: Adjust.
22058 * doc/md.texi (Machine Constraints): Adjust.
22059
22060 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22061
22062 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
22063 const.
22064 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
22065 default_elf_asm_output_external.
22066
22067 2019-06-04 Martin Liska <mliska@suse.cz>
22068
22069 * ipa-icf.c (INCLUDE_LIST): Remove.
22070 (sem_item_optimizer::execute): Remove call to init_wpa.
22071 * ipa-icf.h (init_wpa): Remove.
22072
22073 2019-06-04 Jakub Jelinek <jakub@redhat.com>
22074
22075 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
22076 conditional on combined for simd.
22077 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
22078 member.
22079 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
22080 constructs, don't remove lastprivate_conditional_map, but instead set
22081 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
22082 to parent construct temporaries.
22083 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
22084 like !ctx->lastprivate_conditional_map.
22085 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
22086 use up->outer context instead of up.
22087 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
22088 gimple_omp_for_combined_p.
22089 (expand_omp_for_static_nochunk): Likewise.
22090 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
22091 probably moved over into expand_omp_for_generic rather than being copied
22092 there.
22093
22094 2019-06-04 Martin Liska <mliska@suse.cz>
22095
22096 * value-prof.c (dump_histogram_value): Fix typo.
22097 (gimple_mod_subtract_transform): Likewise.
22098
22099 2019-06-04 Richard Biener <rguenther@suse.de>
22100
22101 PR middle-end/90726
22102 * tree-chrec.c (chrec_contains_symbols): Add to visited.
22103 (tree_contains_chrecs): Likewise.
22104 (chrec_contains_symbols_defined_in_loop): Move here and avoid
22105 exponential behaivor from ...
22106 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22107 ... here.
22108 (expression_expensive_p): Avoid exponential behavior and compute
22109 expanded size, rejecting any expansion.
22110 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
22111 (idx_contains_abnormal_ssa_name_p): Likewise.
22112 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
22113 (contains_abnormal_ssa_name_p): Simplify and use
22114 walk_tree_without_duplicates.
22115
22116 2019-06-04 Richard Biener <rguenther@suse.de>
22117
22118 PR tree-optimization/90738
22119 Revert
22120 2019-06-03 Richard Biener <rguenther@suse.de>
22121
22122 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22123 full reference tree and record in ref->ref.
22124 (vn_reference_lookup_3): Pass in original ref to
22125 ao_ref_init_from_vn_reference.
22126 (vn_reference_lookup): Likewise.
22127 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22128 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22129 Handle non-decl bases in the original reference.
22130
22131 2019-06-04 Martin Liska <mliska@suse.cz>
22132
22133 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
22134 number of references.
22135 (sem_item_optimizer::do_congruence_step):
22136 (sem_item_optimizer::worklist_push): Dump how references
22137 a class has.
22138 (sem_item_optimizer::worklist_pop): Use heap.
22139 (sem_item_optimizer::process_cong_reduction): Likewise.
22140 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
22141
22142 2019-06-04 Martin Liska <mliska@suse.cz>
22143
22144 * ipa-icf.h (struct sem_usage_pair_hash): New.
22145 (sem_usage_pair_hash::hash): Likewise.
22146 (sem_usage_pair_hash::equal): Likewise.
22147 (struct sem_usage_hash): Likewise.
22148 * ipa-icf.c (sem_item::sem_item): Initialize
22149 referenced_by_count.
22150 (sem_item::add_reference): Register a reference
22151 in ref_map and not in target->usages.
22152 (sem_item::setup): Remove initialization of
22153 dead vectors.
22154 (sem_item::~sem_item): Remove usage of dead vectors.
22155 (sem_item::dump): Remove dump of references.
22156 (sem_item_optimizer::sem_item_optimizer): Initialize
22157 m_references.
22158 (sem_item_optimizer::read_section): Remove useless
22159 dump.
22160 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
22161 (sem_item_optimizer::build_graph): Pass m_references
22162 to ::add_reference.
22163 (sem_item_optimizer::verify_classes): Remove usage of dead
22164 vectors.
22165 (sem_item_optimizer::traverse_congruence_split): Return true
22166 when a class is split.
22167 (sem_item_optimizer::do_congruence_step_for_index): Use
22168 hash_map for look up of (sem_item *, index). That brings
22169 significant speed up.
22170 (sem_item_optimizer::do_congruence_step): Return true
22171 when a split is done.
22172 (congruence_class::is_class_used): Use referenced_by_count.
22173
22174 2019-06-04 Alan Modra <amodra@gmail.com>
22175
22176 PR target/90689
22177 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
22178 error.
22179
22180 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22181
22182 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
22183 * config/rs6000/rs6000.c (direct_move_p): Adjust.
22184 (rs6000_secondary_reload_simple_move): Adjust.
22185 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22186 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22187 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22188 comment.
22189 (power6x): Adjust.
22190 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22191 (floatunssi<mode>2_lfiwzx): Adjust.
22192 (fix_trunc<mode>si2_stfiwx): Adjust.
22193 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22194 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22195 (mfpgpr): Mark as deprecated.
22196 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22197 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22198 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22199
22200 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22201
22202 * config/rs6000/constraints.md (define_register_constraint "wg"):
22203 Delete.
22204 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22205 RS6000_CONSTRAINT_wg.
22206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22207 (rs6000_init_hard_regno_mode_ok): Adjust.
22208 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22209 Delete "wg" alternatives.
22210 * doc/md.texi (Machine Constraints): Adjust.
22211
22212 2019-06-03 Alan Modra <amodra@gmail.com>
22213
22214 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22215 (get_uncond_jump_length): Assert length less than INT_MAX and
22216 non-negative.
22217
22218 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22219
22220 PR middle-end/64242
22221 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22222 block.
22223 (expand_builtin_nonlocal_goto): Likewise.
22224
22225 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22226
22227 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22228 (aarch64_asm_output_external): Declare.
22229 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22230 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22231 (aarch64_asm_output_alias): New.
22232 (aarch64_asm_output_external): New.
22233 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22234 (ASM_OUTPUT_EXTERNAL): Define.
22235
22236 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22237 * tree-vrp.h (value_range_base::nonzero_p): New.
22238 (value_range_base::set_nonnull): Rename to...
22239 (value_range_base::set_nonzero): ...this.
22240 (value_range_base::set_null): Rename to...
22241 (value_range_base::set_zero): ...this.
22242 (value_range::set_nonnull): Remove.
22243 (value_range::set_null): Remove.
22244 * tree-vrp.c (range_is_null): Remove.
22245 (range_is_nonnull): Remove.
22246 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22247 instead of range_is_*null.
22248 (extract_range_from_unary_expr): Same.
22249 (value_range_base::set_nonnull): Rename to...
22250 (value_range_base::set_nonzero): ...this.
22251 (value_range::set_nonnull): Remove.
22252 (value_range_base::set_null): Rename to...
22253 (value_range_base::set_zero): ...this.
22254 (value_range::set_null): Remove.
22255 (extract_range_from_binary_expr): Rename set_*null uses to
22256 set_*zero.
22257 (extract_range_from_unary_expr): Same.
22258 (union_helper): Same.
22259 * vr-values.c (get_value_range): Use set_*zero instead of
22260 set_*null.
22261 (vr_values::extract_range_from_binary_expr): Same.
22262 (vr_values::extract_range_basic): Same.
22263
22264 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22265
22266 PR driver/90684
22267 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22268
22269 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22270
22271 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22272 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22273 Rename to...
22274 (aarch64_<su>abd<mode>_3): ... This.
22275 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22276
22277 2019-06-03 Richard Biener <rguenther@suse.de>
22278
22279 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22280 full reference tree and record in ref->ref.
22281 (vn_reference_lookup_3): Pass in original ref to
22282 ao_ref_init_from_vn_reference.
22283 (vn_reference_lookup): Likewise.
22284 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22285 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22286 Handle non-decl bases in the original reference.
22287
22288 2019-06-03 Martin Liska <mliska@suse.cz>
22289
22290 * doc/generic.texi: Remove Java Trees.
22291
22292 2019-06-03 Martin Liska <mliska@suse.cz>
22293
22294 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22295 returns 0 when operands are equal.
22296
22297 2019-06-03 Richard Biener <rguenther@suse.de>
22298
22299 PR tree-optimization/90716
22300 * tree-loop-distribution.c (destroy_loop): Process blocks in
22301 correct order.
22302
22303 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22304
22305 PR target/88837
22306 * vector-builder.h (vector_builder::count_dups): New method.
22307 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22308 Declare prototype.
22309 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22310 (vec_init<mode><Vel>): New pattern.
22311 * config/aarch64/aarch64.c (emit_insr): New function.
22312 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22313 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22314 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22315 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22316
22317 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22318
22319 PR tree-optimization/90681
22320 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22321 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22322 special case for SLP, but fail on non-groupped loads.
22323
22324 2019-06-03 Martin Liska <mliska@suse.cz>
22325
22326 * cfg.c (debug): Use TDF_DETAILS for debug and
22327 print edge info only once.
22328
22329 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22330
22331 PR fortran/90539
22332 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22333
22334 2019-06-01 Martin Sebor <msebor@redhat.com>
22335
22336 PR middle-end/90694
22337 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22338
22339 2019-05-31 Jan Hubicka <jh@suse.cz>
22340
22341 * alias.c: Include ipa-utils.h.
22342 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22343 * ipa-devirt.c (prevailing_odr_type): New.
22344 * ipa-utils.h (previaling_odr_type): Declare.
22345
22346 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22347 Hongtao Liu <hongtao.liu@intel.com>
22348
22349 PR target/89355
22350 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22351 NOTE_INSN_DELETED_LABEL check.
22352
22353 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22354 Robert Suchanek <robert.suchanek@mips.com>
22355
22356 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22357 and 3rd operands of the fmadd/fmsub/maddv builtin.
22358
22359 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22360
22361 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22362 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22363 on OMP_SIMD if not nested inside of worksharing loop that also has
22364 lastprivate conditional clause for the same decl.
22365 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22366 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22367 on simd.
22368 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22369 on simd construct.
22370 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22371 on simd construct.
22372 (lower_lastprivate_clauses): Likewise.
22373 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22374 calling lower_rec_input_clauses.
22375 (lower_omp_for): Likewise.
22376 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22377 clause on simd construct.
22378 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22379 OMP_CLAUSE__CONDTEMP_ clause is present.
22380
22381 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22382 ivar and lvar.
22383
22384 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22385
22386 PR c/43673
22387 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22388 TEX_D32, TEX_D64 or TEX_D128.
22389
22390 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22391
22392 * match.pd (~(vec?cst1:cst2)): New transformation.
22393
22394 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22395
22396 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22397 ((size_t)(A /[ex] B) CMP C): New transformation.
22398
22399 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22400
22401 * doc/md.texi: Document define_insn_and_rewrite.
22402 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22403 * gensupport.c (queue_elem): Update comment.
22404 (replace_operands_with_dups): New function.
22405 (gen_rewrite_sequence): Likewise.
22406 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22407 * read-rtl.c (apply_subst_iterator): Likewise.
22408 (add_condition_to_rtx, named_rtx_p): Likewise.
22409 (rtx_reader::read_rtx_operand): Likewise.
22410 * config/aarch64/aarch64-sve.md
22411 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22412 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22413 define_insn_and_rewrite.
22414 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22415 Remove separate define_split.
22416
22417 2019-05-31 Jan Hubicka <jh@suse.cz>
22418
22419 * tree-ssa-alias.c (type_has_components_p): New function.
22420 (aliasing_component_refs_p): Use it.
22421
22422 2019-05-31 Martin Liska <mliska@suse.cz>
22423
22424 * gdbhooks.py: Add const_tree to TreePrinter.
22425
22426 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22427
22428 PR debug/86964
22429 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22430 * doc/invoke.texi (Debugging Options): Document new default of
22431 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22432
22433 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22434
22435 PR tree-optimization/90671
22436 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22437 template_block used to be empty on the first call, don't use
22438 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22439 seq with bb_seq and set it with set_bb_seq.
22440
22441 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22442
22443 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22444
22445 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22446 Michael Meissner <meissner@linux.ibm.com>
22447
22448 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22449 (prefixed_mem_operand): Likewise.
22450 (non_prefixed_mem_operand): Likewise.
22451 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22452 prototype.
22453 * config/rs6000/rs6000.c (print_operand_address): Handle
22454 PC-relative addresses.
22455 (mode_supports_prefixed_address_p): New function.
22456 (rs6000_prefixed_address): New function.
22457 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22458 (SYMBOL_REF_PCREL_P): Likewise.
22459
22460 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22461
22462 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22463 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22464 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22465 is nested inside of parallel region, add _condtemp_ clause to both.
22466 * tree-nested.c (convert_nonlocal_omp_clauses,
22467 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22468 assertion failure.
22469 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22470 member.
22471 * omp-general.c (omp_extract_for_data): Compute it.
22472 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22473 (lower_rec_input_clauses): Likewise.
22474 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22475 clause is already present, just add one further one after it.
22476 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22477 (lower_send_shared_vars): Clear _condtemp_ vars.
22478 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22479 or section or taskgroup.
22480 * omp-expand.c (determine_parallel_type): Disallow combining only if
22481 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22482 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22483 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22484 expand_omp_for_static_chunk, expand_omp_for): Use
22485 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22486 determine if a special set of API routines are needed and if condtemp
22487 needs to be initialized, while always initialize cond_var if
22488 fd->lastprivate_conditional is non-zero.
22489
22490 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22491 Michael Meissner <meissner@linux.ibm.com>
22492
22493 * config/rs6000/constraints.md (eI): New constraint.
22494 * config/rs6000/predicates.md (cint34_operand): New predicate.
22495 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22496 (SIGNED_34BIT_OFFSET_P): Likewise.
22497 * doc/md.texi (eI): Document constraint.
22498
22499 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22500
22501 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22502
22503 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22504 Michael Meissner <meissner@linux.ibm.com>
22505
22506 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22507 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22508 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22509 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22510 (OTHER_FUTURE_MASKS): Likewise.
22511 (POWERPC_MASKS): Likewise.
22512 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22513 specified without -mprefixed-addr or -mcpu=future. Error if
22514 -mprefixed-addr is specified without -mcpu=future.
22515 (rs6000_opt_masks): Add entry for prefixed-addr.
22516 * rs6000.opt (mprefixed-addr): New option.
22517
22518 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22519
22520 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22521 cfun->is_thunk check.
22522
22523 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22524
22525 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22526 to length.
22527
22528 2019-05-30 Martin Liska <mliska@suse.cz>
22529
22530 * gdbinit.in: Fix 'ptc' command. Add trt
22531 that prints TREE_TYPE($).
22532
22533 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22534 Alan Modra <amodra@gmail.com>
22535
22536 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22537 calls here...
22538 (rs6000_indirect_call_template_1): ...and here.
22539 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22540 plt16_ha, plt16_lo, mtctr indirect calls. Use
22541 rs6000_pltseq_enum.
22542 (rs6000_decl_ok_for_sibcall): New function.
22543 (rs6000_function_ok_for_sibcall): Refactor.
22544 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22545 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22546 when pcrel. Reorganize.
22547 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22548 * rs6000.h (rs6000_pltseq_enum): New enum.
22549 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22550 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22551 (*pltseq_plt16_ha): Likewise.
22552 (*pltseq_plt16_lo): Likewise.
22553 (*pltseq_mtctr): Likewise.
22554 (*pltseq_plt_pcrel): New insn.
22555 (*call_local_aix): Handle @notoc calls.
22556 (*call_value_local_aix): Likewise.
22557 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22558 (*call_value_nonlocal_aix): Likewise.
22559 (*call_indirect_pcrel): New insn.
22560 (*call_value_indirect_pcrel): Likewise.
22561
22562 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22563
22564 * config/i386/sse.md (*save_multiple<mode>): Rename from
22565 save_multiple<mode>.
22566 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22567 (*restore_multiple_and_return<mode>): Rename from
22568 restore_multiple_and_return<mode>.
22569 (*restore_multiple_leave_return<mode>): Rename from
22570 restore_multiple_leave_return<mode>.
22571
22572 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22573
22574 * config.gcc (rx-*-linux*): New target.
22575 * config/rx/elf.opt: New file.
22576 * config/rx/linux.h: Likewise.
22577 * config/rx/t-linux: Likewise.
22578 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22579 make it zero.
22580 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22581 (ASM_APP_OFF): Likewise.
22582 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22583 moved elsewhere.
22584
22585 2019-05-29 Jan Hubicka <jh@suse.cz>
22586
22587 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22588 variants are pointer equivalent.
22589
22590 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22591
22592 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22593 * config/aarch64/aarch64-sve2.md: New file.
22594 (<u>avg<mode>3_floor): New pattern.
22595 (<u>avg<mode>3_ceil): Likewise.
22596 (*<sur>h<addsub><mode>): Likewise.
22597 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22598 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22599
22600 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22601
22602 PR bootstrap/90543
22603 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22604 for var_opt_string printing. In cl_optimization_print_diff, print
22605 (null) instead of invoking undefined behavior if one of the
22606 var_opt_string pointers is NULL and use && instead of first || in the
22607 guarding condition. For var_target_other options, handle const char *
22608 target variables similarly to const char * optimize node variables.
22609
22610 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22611
22612 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22613 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22614 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22615 Add autib1716 and pacib1716 initialisation.
22616 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22617 for autib1716 and pacib1716.
22618 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22619 aarch64_post_cfi_startproc): Define.
22620 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22621 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22622 aarch64_handle_pac_ret_protection): Set default sign key to A.
22623 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22624 aarch64_expand_prologue): Add check for b-key.
22625 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22626 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22627 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22628 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22629 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22630 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22631 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22632 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22633 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22634 pauth_hint_num_a with pauth_hint_num.
22635 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22636 pauth_hint_num_a with pauth_hint_num.
22637 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22638 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22639 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22640 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22641 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22642 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22643 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22644 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22645 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22646 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22647 UNSPEC_AUTIA1716 respectively.
22648 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22649 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22650 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22651 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22652 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22653 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22654
22655 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22656
22657 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22658 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22659 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22660 explicit clause on combined parallel into implicit shared clause.
22661 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22662 and firstprivate if the decl has one too from combined parallel to
22663 the worksharing construct.
22664
22665 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22666 Michael Meissner <meissner@linux.ibm.com>
22667
22668 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22669
22670 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22671
22672 * rtl.h (LABEL_REF_P): New #define.
22673
22674 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22675
22676 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22677
22678 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22679
22680 * internal-fn.c: Marked mask_load_direct as vectorizable.
22681 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22682 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22683 combined even if masks different with allow_slp_p param.
22684 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22685 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22686 dissolve SLP-only vectorizable groups when SLP has been discarded.
22687 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22688 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22689 masks.
22690 (vect_build_slp_tree_1): Fixed comment typo.
22691 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22692 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22693 loads for SLP only.
22694 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22695 vectorizable.
22696 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22697
22698 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22699
22700 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22701 Remove obsolete use_thunk reference.
22702 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22703 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22704 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22705 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22706 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22707 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22708 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22709 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22710 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22711
22712 2019-05-28 Nathan Sidwell <nathan@acm.org>
22713
22714 * tree.h (IDENTIFIER_ANON_P): New.
22715 (anon_aggrname_format, anon_aggname_p): Don't declare.
22716 (make_anon_name): Declare.
22717 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22718 (hash_tree): Likewise.
22719 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22720 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22721 (anon_cnt, make_anon_name): New.
22722
22723 2019-05-28 Martin Liska <mliska@suse.cz>
22724
22725 PR other/90315
22726 * opts-global.c (decode_options): Print help for all
22727 help_option_arguments.
22728 * opts.c (print_help): Add new argument.
22729 (common_handle_option): Remember all values into
22730 help_option_arguments.
22731 * opts.h (print_help): Add new argument.
22732
22733 2019-05-28 Martin Liska <mliska@suse.cz>
22734
22735 PR ipa/90555
22736 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22737 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22738 (func_checker::compare_bb): Call compare_loops.
22739
22740 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22741
22742 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22743 on sections construct.
22744 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22745 construct.
22746 (lower_omp_sections): Handle lastprivate conditional.
22747 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22748 lastprivate_conditional_map.
22749 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22750
22751 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22752 critical, taskgroup and section regions when looking for a region
22753 with non-NULL lastprivate_conditional_map.
22754
22755 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22756
22757 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22758 (*ix86_gen_sub3): Ditto.
22759 (*ix86_gen_sub3_carry): Ditto.
22760 (*ix86_gen_one_cmpl2): Ditto.
22761 (*ix86_gen_andsp): Ditto.
22762 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22763 (gen_and2_insn): New static function.
22764 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22765 Use gen_add3_insn instead of ix86_gen_add3.
22766 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22767 instead of ix86_gen_add3.
22768 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22769 Use gen_sub3_insn instead of ix86_gen_sub3.
22770 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22771 instead of ix86_gen_add3.
22772 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22773 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22774 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22775 * config/i386/i386-options.c (ix86_option_override_internal):
22776 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22777 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22778
22779 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22780
22781 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22782 and DW_OP_GNU_const_index opcodes.
22783
22784 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22785
22786 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22787
22788 2019-05-27 Richard Biener <rguenther@suse.de>
22789
22790 PR tree-optimization/90637
22791 * tree-ssa-sink.c (statement_sink_location): Honor the
22792 computed sink location for single-uses.
22793
22794 2019-05-27 Richard Biener <rguenther@suse.de>
22795
22796 PR middle-end/90610
22797 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22798 a bit-insert.
22799
22800 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22801
22802 * config/i386/i386.md (@sub<mode>3_carry): Rename
22803 from sub<mode>3_carry.
22804 (@leave_<mode>): New expander.
22805 (*leave): Rename from leave.
22806 (*leave_rex64): Rename from leave_rex64.
22807 (@monitorx_<mode>): Rename from monitorx_<mode>.
22808 (@clzero_<mode>): Rename from clzero_<mode>.
22809 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22810 from sse3_monitor_<mode>.
22811 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22812 (*ix86_gen_leave): Ditto.
22813 (*ix86_gen_monitor): Ditto.
22814 (*ix86_gen_monitorx): Ditto.
22815 (*ix86_gen_clzero): Ditto.
22816 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
22817 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
22818 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
22819 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
22820 Use gen_sse3_monitor instead of ix86_gen_monitor.
22821 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
22822 instead of ix86_gen_monitorx.
22823 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
22824 instead of ix86_gen_clzero.
22825 * config/i386/i386-options.c (ix86_option_override_internal):
22826 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
22827 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
22828
22829 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22830
22831 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
22832 Rename from tls_global_dynamic_64_<mode>.
22833 (@tls_local_dynamic_base_64_<mode>): Rename from
22834 tls_local_dynamic_base_64_<mode>.
22835 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
22836 Remove indirect function.
22837 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
22838 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
22839 instead of ix86_gen_tls_global_dynamic_64.
22840 Use gen_tls_local_dynamic_base_64 instead of
22841 ix86_gen_tls_local_dynamic_base_64.
22842 * config/i386/i386-options.c (ix86_option_override_internal):
22843 Do not initialize ix86_gen_tls_global_dynamic_64 and
22844 ix86_gen_tls_local_dynamic_base_64.
22845
22846 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22847
22848 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
22849 Rename from pro_epilogue_adjust_stack_<mode>_add.
22850 (@pro_epilogue_adjust_stack_sub_<mode>)
22851 Rename from pro_epilogue_adjust_stack_<mode>_sub.
22852 (@allocate_stack_worker_probe_<mode>):
22853 Rename from allocate_stack_worker_probe_<mode>.
22854 (allocate_stack): Use gen_allocate_stack_worker_probe.
22855 (probe_stack): Use gen_probe_stack_1.
22856 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
22857 (@adjust_stack_and_probe_<mode>): Rename from
22858 adjust_stack_and_probe<mode>.
22859 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
22860 (stack_protect_set): Use gen_stack_protect_set_1.
22861 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
22862 (stack_protect_test): Use gen_stack_protect_test_1.
22863 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
22864 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
22865 Remove indirect function.
22866 (*ix86_gen_adjust_stack_and_probe): Ditto.
22867 (*ix86_gen_probe_stack_range): Ditto.
22868 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
22869 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
22870 (ix86_adjust_stack_and_probe_stack_clash): Use
22871 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
22872 (ix86_adjust_stack_and_probe): Ditto.
22873 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
22874 of ix86_gen_probe_stack_range.
22875 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
22876 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
22877 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
22878 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
22879 CODE_FOR_stack_protect_test_{si,di}.
22880 * config/i386/i386-options.c (ix86_option_override_internal):
22881 Do not initialize ix86_gen_allocate_stack_worker,
22882 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
22883
22884 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
22885
22886 * doc/invoke.texi (Link Options): Many editorial changes around
22887 -flinker-output.
22888
22889 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22890
22891 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
22892 pre-Solaris 11 referene and most Studio compiler details.
22893
22894 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
22895
22896 PR target/90530
22897 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
22898 DImode to SImode in floating-point registers on 64-bit target.
22899 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
22900 register_operand in xmpyu patterns.
22901
22902 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22903
22904 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
22905 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
22906 OMP_CLAUSE__REDUCTEMP_.
22907 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22908 OMP_CLAUSE__CONDTEMP_.
22909 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
22910 * tree-pretty-print.c (dump_omp_clause): Likewise.
22911 * tree-nested.c (convert_nonlocal_omp_clauses,
22912 convert_local_omp_clauses): Likewise.
22913 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
22914 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
22915 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
22916 on OMP_FOR.
22917 (gimplify_omp_for): Warn and disable conditional modifier from
22918 lastprivate on loop iterators.
22919 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
22920 member.
22921 * omp-general.c (omp_extract_for_data): Initialize it.
22922 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
22923 member.
22924 (delete_omp_context): Delete it.
22925 (lower_lastprivate_conditional_clauses): New function.
22926 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
22927 handle lastprivate conditional clauses.
22928 (lower_reduction_clauses): Add CLIST argument, emit it into
22929 the critical section if any.
22930 (lower_omp_sections): Adjust lower_lastprivate_clauses and
22931 lower_reduction_clauses callers.
22932 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
22933 to lower_lastprivate_clauses.
22934 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
22935 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
22936 clist into a critical section if not emitted there already by
22937 lower_reduction_clauses.
22938 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
22939 callers.
22940 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
22941 conditional variables.
22942 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
22943 clause is present.
22944 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22945 expand_omp_for_static_chunk): Handle lastprivate conditional.
22946 (expand_omp_for): Handle fd.lastprivate_conditional like
22947 fd.have_reductemp.
22948
22949 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22950
22951 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
22952 kernel does not exit cleanly.
22953 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
22954
22955 2019-05-24 Jason Merrill <jason@redhat.com>
22956
22957 Revert:
22958 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
22959
22960 2019-05-24 Richard Biener <rguenther@suse.de>
22961
22962 PR testsuite/90607
22963 * tree-loop-distribution.c (struct partition): Add location
22964 member.
22965 (partition_alloc): Initialize all fields.
22966 (generate_memset_builtin): Use the location recorded in the
22967 partition for the generated call.
22968 (generate_memcpy_builtin): Likewise.
22969 (classify_partition): Record the location of a single store
22970 as location for the partition.
22971
22972 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
22973
22974 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
22975 for lo-part.
22976
22977 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
22978
22979 PR target/90588
22980 * common/config/aarch64/aarch64-common.c
22981 (aarch64_rewrite_selected_cpu): Change local temporary variable
22982 type from unsigned long to uint64_t.
22983 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
22984 aarch64_get_extension_string_for_isa_flags): Change declaration to
22985 match new definition by replacing unsigned long with uint64_t.
22986
22987 2019-05-24 Jakub Jelinek <jakub@redhat.com>
22988
22989 PR target/90568
22990 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
22991 gen_attr_type just once instead of 4-7 times. Formatting fixes.
22992 Handle stack_protect_test_<mode> codegen similarly to corresponding
22993 sub instruction.
22994
22995 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
22996
22997 * config/i386/darwin.h: Reject -mfentry*.
22998 * doc/sourcebuild.texi: Document mfentry target support.
22999
23000 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23001
23002 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23003 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23004 false for PC-relative functions.
23005 (rs6000_output_function_prologue): Change called function name to
23006 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23007 name,1" for PC-relative functions.
23008 (rs6000_elf_declare_function_name): Change called function name to
23009 rs6000_global_entry_point_prologue_needed_p.
23010
23011 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23012
23013 PR target/90552
23014 * config/i386/i386.c (gen_rtx_cost):
23015 Use ix86_tune_cost instead of ix86_cost.
23016
23017 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23018 Michael Meissner <meissner@linux.ibm.com>
23019 Segher Boessenkool <segher@kernel.crashing.org>
23020
23021 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23022 OPTION_MASK_PCREL.
23023 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23024 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23025 (rs6000_fndecl_pcrel_p): Likewise.
23026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23027 error if -mpcrel is requested without -mcpu=future.
23028 (rs6000_opt_masks): Add entry for pcrel.
23029 (rs6000_fndecl_pcrel_p): New function.
23030 (rs6000_pcrel_p): Likewise.
23031 * config/rs6000/rs6000.opt (mpcrel): New option.
23032 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23033
23034 2019-05-23 Jan Hubicka <jh@suse.cz>
23035 Martin Liska <mliska@suse.cz>
23036
23037 PR tree-optimization/90576
23038 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23039 poly_int_tree_p.
23040 (aliasing_component_refs_p): Fix three way size compare conditional;
23041 give up earlier in case we can not decide on equivalence.
23042
23043 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23044 Michael Meissner <meissner@linux.ibm.com>
23045 Segher Boessenkool <segher@kernel.crashing.org>
23046
23047 * config.gcc: Add future cpu.
23048 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
23049 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
23050 #define.
23051 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
23052 (RS6000_CPU): New instantiation for future cpu.
23053 * config/rs6000/rs6000-opts.h (enum processor_type): Add
23054 PROCESSOR_FUTURE.
23055 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23056 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
23057 * config/rs6000/rs6000-tables.opt: Regenerate.
23058 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
23059 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
23060 (rs6000_machine_from_flags): Handle future cpu.
23061 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
23062 PROCESSOR_POWER9 for now.
23063 (rs6000_adjust_cost): Likewise.
23064 (rs6000_issue_rate): Likewise.
23065 (rs6000_register_move_cost): Likewise.
23066 (rs6000_opt_masks): Add entry for future.
23067 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
23068 (MASK_FUTURE): New #define.
23069 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
23070 * config/rs6000/rs6000.opt (mfuture): New target option.
23071 * doc/invoke.texi (mcpu): Add future cpu.
23072
23073 2019-05-23 Martin Liska <mliska@suse.cz>
23074
23075 PR c++/90587
23076 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
23077 operation points to a temporary (pointed via tree_to_wide_ref)
23078 that is out of scope after the &.
23079
23080 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
23081
23082 PR c++/90592
23083 * doc/extend.texi (Function Names): Add missing word.
23084
23085 2019-05-23 Richard Biener <rguenther@suse.de>
23086
23087 PR tree-optimization/88440
23088 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
23089 at -O[2s]+.
23090 * tree-loop-distribution.c (generate_memset_builtin): Fold the
23091 generated call.
23092 (generate_memcpy_builtin): Likewise.
23093 (distribute_loop): Pass in whether to only distribute patterns.
23094 (prepare_perfect_loop_nest): Also allow size optimization.
23095 (pass_loop_distribution::execute): When optimizing a loop
23096 nest for size allow pattern replacement.
23097
23098 2019-05-23 Jakub Jelinek <jakub@redhat.com>
23099
23100 PR target/90568
23101 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
23102 of xor.
23103
23104 2019-05-23 Martin Liska <mliska@suse.cz>
23105
23106 PR sanitizer/90570
23107 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
23108 expression similarly to gimplify_decl_expr.
23109
23110 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23111
23112 * cse.c (cse_dump_path): s/dump_file/f.
23113
23114 2019-05-22 David Malcolm <dmalcolm@redhat.com>
23115
23116 PR c++/90462
23117 * diagnostic-format-json.cc: Include "selftest.h".
23118 (json_from_expanded_location): Only add "file" key for non-NULL
23119 file strings.
23120 (json_from_location_range): Don't add "start" and "finish"
23121 children if they are UNKNOWN_LOCATION.
23122 (selftest::test_unknown_location): New selftest.
23123 (selftest::test_bad_endpoints): New selftest.
23124 (selftest::diagnostic_format_json_cc_tests): New function.
23125 * json.cc (json::object::get): New function.
23126 (selftest::test_object_get): New selftest.
23127 (selftest::json_cc_tests): Call it.
23128 * json.h (json::object::get): New decl.
23129 * selftest-run-tests.c (selftest::run_tests): Call
23130 selftest::diagnostic_format_json_cc_tests.
23131 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
23132 decl.
23133
23134 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
23135 Andrew Stubbs <amd@codesourcery.com>
23136
23137 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
23138 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
23139 (kernel): Rename to...
23140 (main_kernel): ... this.
23141 (load_image): Load _init_array and _fini_array kernels.
23142 (run): Add argument for kernel to run.
23143 (main): Run init_array_kernel before main_kernel, and
23144 fini_array_kernel after.
23145 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
23146 amdgpu_hsa_kernel attribute on functions.
23147 (gcn_disable_constructors): Delete.
23148 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
23149 * config/gcn/crt0.c (size_t): Define.
23150 (_init_array, _fini_array): New.
23151 (__preinit_array_start, __preinit_array_end,
23152 __init_array_start, __init_array_end,
23153 __fini_array_start, __fini_array_end): Declare weak references.
23154
23155 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
23156
23157 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
23158
23159 2019-05-22 Jason Merrill <jason@redhat.com>
23160
23161 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23162
23163 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
23164
23165 PR target/88483
23166 * config/i386/i386-options.c (ix86_init_machine_status): Set
23167 stack_frame_required to true.
23168 * config/i386/i386.c (ix86_get_frame_size): New function.
23169 (ix86_frame_pointer_required): Replace get_frame_size with
23170 ix86_get_frame_size.
23171 (ix86_compute_frame_layout): Likewise.
23172 (ix86_find_max_used_stack_alignment): Changed to void. Set
23173 stack_frame_required.
23174 (ix86_finalize_stack_frame_flags): Always call
23175 ix86_find_max_used_stack_alignment. Replace get_frame_size with
23176 ix86_get_frame_size.
23177 * config/i386/i386.h (machine_function): Add stack_frame_required.
23178
23179 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23180
23181 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
23182
23183 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
23184
23185 * common/config/aarch64/aarch64-common.c
23186 (struct aarch64_option_extension, struct processor_name_to_arch,
23187 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23188 aarch64_contains_opt,
23189 aarch64_get_extension_string_for_isa_flags): Change type of
23190 variables storing flags to uint64_t.
23191 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23192 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23193 * config/aarch64/aarch64.c (struct processor,
23194 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23195 aarch64_validate_march, aarch64_override_options,
23196 aarch64_option_print, aarch64_handle_attr_isa_flags,
23197 aarch64_declare_function_name, aarch64_start_file): Make flag
23198 variables uint64_t.
23199 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23200 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23201 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23202 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23203 * config/aarch64/driver-aarch64.c
23204 (struct aarch64_arch_extension, struct aarch64_core_data,
23205 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23206 flag variables uint64_t.
23207 * doc/invoke.texi: Add documentation for new arguments.
23208
23209 2019-05-22 Richard Biener <rguenther@suse.de>
23210
23211 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23212 rewrite ...
23213 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23214
23215 2019-05-22 Martin Liska <mliska@suse.cz>
23216
23217 PR lto/90500
23218 * doc/extend.texi: Document the change.
23219
23220 2019-05-22 Richard Biener <rguenther@suse.de>
23221
23222 PR tree-optimization/90450
23223 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23224 (mem_ref_hasher::equal): Check it.
23225 (mem_ref_alloc): Initialize it.
23226 (gather_mem_refs_stmt): Set it.
23227
23228 2019-05-22 Richard Biener <rguenther@suse.de>
23229
23230 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23231 Add ABS_EXPR.
23232 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23233 as ABSU_EXPR.
23234
23235 2019-05-22 Alan Modra <amodra@gmail.com>
23236
23237 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23238 (ASM_CPU_SPEC): Conditionally add -many.
23239 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23240 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23241 (rs6000_file_start): ..extracted from here, and modified to
23242 test all ISA bits.
23243 (rs6000_output_function_prologue): Emit .machine as necessary.
23244
23245 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23246
23247 PR middle-end/90553
23248 * ira-lives.c (process_bb_node_lives): Consider defs
23249 for a call insn to be die before the call, not after.
23250
23251 * function.c (assign_parm_setup_block): Raise alignment of
23252 stacked parameter only for STRICT_ALIGNMENT targets.
23253
23254 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23255
23256 * config/rs6000/constraints.md (define_register_constraint "wz"):
23257 Delete.
23258 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23259 RS6000_CONSTRAINT_wz.
23260 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23261 (rs6000_init_hard_regno_mode_ok): Adjust.
23262 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23263 * doc/md.texi (Machine Constraints): Adjust.
23264
23265 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23266
23267 * config/rs6000/constraints.md (define_register_constraint "wl"):
23268 Delete.
23269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23270 RS6000_CONSTRAINT_wl.
23271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23272 (rs6000_init_hard_regno_mode_ok): Adjust.
23273 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23274 * doc/md.texi (Machine Constraints): Adjust.
23275
23276 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23277
23278 * config/rs6000/constraints.md (define_register_constraint "wm"):
23279 Delete.
23280 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23281 RS6000_CONSTRAINT_wm.
23282 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23283 (rs6000_init_hard_regno_mode_ok): Adjust.
23284 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23285 * doc/md.texi (Machine Constraints): Adjust.
23286
23287 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23288
23289 * config/rs6000/constraints.md (define_register_constraint "wk"):
23290 Delete.
23291 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23292 RS6000_CONSTRAINT_wk.
23293 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23294 (rs6000_init_hard_regno_mode_ok): Adjust.
23295 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23296 * doc/md.texi (Machine Constraints): Adjust.
23297
23298 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23299
23300 * config/rs6000/constraints.md (define_register_constraint "wj"):
23301 Delete.
23302 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23303 RS6000_CONSTRAINT_wj.
23304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23305 (rs6000_init_hard_regno_mode_ok): Adjust.
23306 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23307 (VS_64dm): Delete.
23308 * config/rs6000/vsx.md: Ditto.
23309 * doc/md.texi (Machine Constraints): Adjust.
23310
23311 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23312
23313 * config/rs6000/constraints.md (define_register_constraint "wh"):
23314 Delete.
23315 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23316 RS6000_CONSTRAINT_wh.
23317 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23318 (rs6000_init_hard_regno_mode_ok): Adjust.
23319 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23320 * doc/md.texi (Machine Constraints): Adjust.
23321
23322 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23323
23324 PR target/90547
23325 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23326 Avoid calling gen_lowpart with CONST operand.
23327
23328 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23329
23330 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23331 field template_last_to_copy.
23332 (ssa_create_duplicates): Set it, and use it. Attempt to
23333 preserve more debug stmts.
23334
23335 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23336
23337 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23338 (signbit<mode>2): New expander
23339
23340 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23341
23342 PR bootstrap/87338
23343 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23344 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23345
23346 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23347
23348 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23349 %ebx and %ecx bafore calling cpuid with leaf 1 or
23350 non-constant leaf argument.
23351
23352 2019-05-21 Alan Modra <amodra@gmail.com>
23353
23354 PR target/90545
23355 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23356 power9 direct move cost.
23357
23358 2019-05-21 Richard Biener <rguenther@suse.de>
23359
23360 PR middle-end/90510
23361 * fold-const.c (fold_read_from_vector): New function.
23362 * fold-const.h (fold_read_from_vector): Declare.
23363 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23364 single-element insert permutations. Canonicalize selector
23365 further and fix issue with last commit.
23366
23367 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23368
23369 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23370 parameter with default value false to declaration.
23371 (split_edges_for_insertion): New inline function. Wrapper for
23372 split_critical_edges with for_edge_insertion_p = true.
23373 * tree-cfg.c (split_critical_edges): Don't split non-critical
23374 edges if for_edge_insertion_p is false. Fix whitespace.
23375 * tree-ssa-pre.c (pass_pre::execute): Call
23376 split_edges_for_insertion instead of split_critical_edges.
23377 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23378 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23379 (pass_data_sink_code): Update function name in the comment.
23380
23381 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23382
23383 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23384 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23385 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23386 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23387 positives.
23388
23389 2019-05-21 Martin Liska <mliska@suse.cz>
23390
23391 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23392 an extra newline.
23393 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23394 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23395 vec_lvsr.
23396 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23397 Quote a C type.
23398 (rs6000_function_arg): Likewise.
23399 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23400 (rs6000_expand_ternop_builtin): Use interval syntax.
23401 (get_element_number): Likewise.
23402 (altivec_expand_builtin): Likewise.
23403 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23404
23405 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23406
23407 PR c++/59813
23408 PR target/90418
23409 * function.h (struct function): Add calls_eh_return member.
23410 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23411 gimplifying __builtin_eh_return call.
23412 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23413 to cfun.
23414 (expand_call_inline): Or in src_cfun->calls_eh_return into
23415 dst_cfun->calls_eh_return.
23416 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23417 cfun->calls_eh_return.
23418 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23419 * lto-streamer-out.c (output_struct_function_base): Write
23420 calls_eh_return.
23421
23422 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23423
23424 PR rtl-optimization/43147
23425 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23426 IX86_BUILTIN_SHUFPD.
23427
23428 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23429
23430 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23431 (refs_may_alias_p_1): ... here; update stats.
23432 (refs_may_alias_p): Do not update stats here.
23433
23434 2019-05-20 Richard Biener <rguenther@suse.de>
23435
23436 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23437 doesn't produce pointers.
23438 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23439 the first operand points to.
23440
23441 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23442
23443 * tree-ssa-alias.c (compare_sizes): New function.
23444 (sompare_type_sizes): New function
23445 (aliasing_component_refs_p): Use it.
23446 (indirect_ref_may_alias_decl_p): Likewise.
23447
23448 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23449
23450 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23451
23452 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23453
23454 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23455 (LIBLSAN_EARLY_SPEC): Likewise.
23456 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23457
23458 2019-05-20 Martin Liska <mliska@suse.cz>
23459
23460 * config/i386/i386.c (ix86_libc_has_fast_function):
23461 Add ATTRIBUTE_UNUSED for the argument.
23462
23463 2019-05-20 Richard Biener <rguenther@suse.de>
23464
23465 * gimple-match-head.c: Include vec-perm-indices.h.
23466 * generic-match-head.c: Likewise.
23467 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23468 is included.
23469 * fold-const.c (fold_vec_perm): Export.
23470 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23471 (match.pd): ...here.
23472
23473 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23474
23475 * cfgloop.h (struct loop): Add simdlen member.
23476 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23477 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23478 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23479 as new argument to autovectorize_vector_sizes target hook. If
23480 loop->simdlen, pick up vector size where the vectorization factor
23481 is equal to loop->simd, and if there is none, fall back to the first
23482 successful one.
23483 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23484 caller.
23485 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23486 * omp-general.c (omp_max_vf): Likewise.
23487 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23488 * tree-vect-slp.c (vect_slp_bb): Likewise.
23489 * target.def (autovectorize_vector_sizes): Add ALL argument and
23490 document it.
23491 * doc/tm.texi: Adjust documentation.
23492 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23493 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23494 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23495 bool argument.
23496 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23497 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23498 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23499 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23500 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23501 preferred vector size is not 512-bit or 256-bit, just put those
23502 unpreferred ones last.
23503
23504 2019-05-20 Martin Liska <mliska@suse.cz>
23505
23506 * targhooks.c (default_libc_has_fast_function): New function.
23507 * targhooks.h (default_libc_has_fast_function): Likewise.
23508
23509 2019-05-20 Martin Liska <mliska@suse.cz>
23510
23511 PR middle-end/90263
23512 * builtins.c (expand_builtin_memory_copy_args): When having a
23513 target with fast mempcpy implementation do now use memcpy.
23514 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23515 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23516 * doc/tm.texi: Likewise.
23517 * doc/tm.texi.in: Likewise.
23518 * target.def:
23519 * expr.c (emit_block_move_hints): Add 2 new arguments.
23520 * expr.h (emit_block_move_hints): Bail out when libcall
23521 to memcpy would be used.
23522
23523 2019-05-20 Martin Liska <mliska@suse.cz>
23524
23525 * profile-count.c: Add vertical spacing in order
23526 to separate functions.
23527 * profile-count.h: Likewise.
23528
23529 2019-05-20 Martin Liska <mliska@suse.cz>
23530
23531 * profile-count.h: Do not use full qualified
23532 names if possible.
23533 * profile-count.c (profile_count::to_frequency): Likewise.
23534
23535 2019-05-20 Martin Liska <mliska@suse.cz>
23536
23537 * profile-count.h (enum profile_quality): Use capital letters
23538 for enum value names. Use the adjusted names.
23539 * profile-count.c: Use the adjusted names.
23540
23541 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23542
23543 * config/rs6000/constraints.md (define_register_constraint "wH"):
23544 Delete.
23545 (define_register_constraint "wI"): Delete.
23546 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23547 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23548 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23549 (rs6000_init_hard_regno_mode_ok): Adjust.
23550 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23551 resp. "d", or with "wa" as appropriate, all with "p8v".
23552 * config/rs6000/vsx.md: Ditto.
23553 * doc/md.texi (Machine Constraints): Adjust.
23554
23555 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23556
23557 * config/rs6000/constraints.md (define_register_constraint "wy"):
23558 Delete.
23559 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23560 RS6000_CONSTRAINT_wy.
23561 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23562 (rs6000_init_hard_regno_mode_ok): Adjust.
23563 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23564 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23565 (define_mode_attr Fisa): New.
23566 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23567 * doc/md.texi (Machine Constraints): Adjust.
23568
23569 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23570
23571 * config/rs6000/constraints.md (define_register_constraint "wu"):
23572 Delete.
23573 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23574 RS6000_CONSTRAINT_wu.
23575 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23576 (rs6000_init_hard_regno_mode_ok): Adjust.
23577 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23578 both with "p8v".
23579 (define_mode_attr Fa): Delete.
23580 * config/rs6000/vsx.md: Ditto.
23581 * doc/md.texi (Machine Constraints): Adjust.
23582
23583 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23584
23585 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23586 Delete.
23587 (define_register_constraint "wK"): Delete.
23588 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23589 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23590 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23591 (rs6000_init_hard_regno_mode_ok): Adjust.
23592 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23593 Replace "wK" constraint by "wH" with "p9v".
23594 * config/rs6000/vsx.md: Ditto.
23595 * doc/md.texi (Machine Constraints): Adjust.
23596
23597 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23598
23599 * config/rs6000/constraints.md (define_register_constraint "wb"):
23600 Delete.
23601 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23602 RS6000_CONSTRAINT_wb.
23603 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23604 (rs6000_init_hard_regno_mode_ok): Adjust.
23605 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23606 * config/rs6000/vsx.md: Ditto.
23607 * doc/md.texi (Machine Constraints): Adjust.
23608
23609 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23610
23611 * config/rs6000/constraints.md (define_register_constraint "wo"):
23612 Delete.
23613 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23614 RS6000_CONSTRAINT_wo.
23615 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23616 (rs6000_init_hard_regno_mode_ok): Adjust.
23617 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23618 * config/rs6000/altivec.md: Ditto.
23619 * doc/md.texi (Machine Constraints): Adjust.
23620
23621 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23622
23623 * config/darwin-c.c (darwin_register_objc_includes): Do not
23624 prepend the sysroot when building gnu-runtime header search
23625 paths.
23626
23627 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23628
23629 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23630 instead of direct output of the asm.
23631
23632 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23633
23634 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23635 argument to be type bool (was int before).
23636 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23637 at first use. Use type bool for some variables. Fix a theoretical
23638 eh_return bug for svr4.
23639
23640 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23641
23642 * config/rs6000/rs6000.md (isa): New attribute.
23643 (enabled): New attribute.
23644
23645 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23646
23647 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23648 assemble_start_function and assemble_end_function.
23649
23650 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23651
23652 PR middle-end/89433
23653 * omp-general.c (oacc_verify_routine_clauses): Change formal
23654 parameters. Add checking if already marked with an OpenACC
23655 'routine' directive. Adjust all users.
23656
23657 PR middle-end/89433
23658 * omp-general.c (oacc_build_routine_dims): Move some of its
23659 processing into...
23660 (oacc_verify_routine_clauses): ... this new function.
23661 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23662
23663 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23664
23665 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23666 formating of picbase labels to match other ports.
23667
23668 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23669
23670 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23671 in the generated code.
23672
23673 2019-05-16 Martin Sebor <msebor@redhat.com>
23674
23675 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23676 identifiers, keywords, operators, and types in diagnostics. Correct
23677 quoting, spelling, and sentence capitalization issues.
23678 (expand_builtin_atomic_is_lock_free): Same.
23679 (fold_builtin_next_arg): Same.
23680 * cfgexpand.c (expand_one_var): Same.
23681 (tree_conflicts_with_clobbers_p): Same.
23682 (expand_asm_stmt): Same.
23683 (verify_loop_structure): Same.
23684 * cgraphunit.c (process_function_and_variable_attributes): Same.
23685 * collect-utils.c (collect_execute): Same.
23686 * collect2.c (maybe_run_lto_and_relink): Same.
23687 (is_lto_object_file): Same.
23688 (scan_prog_file): Same.
23689 * convert.c (convert_to_real_1): Same.
23690 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23691 * except.c (verify_eh_tree): Same.
23692 * gcc.c (execute): Same.
23693 (eval_spec_function): Same.
23694 (run_attempt): Same.
23695 (driver::set_up_specs): Same.
23696 (compare_debug_auxbase_opt_spec_function): Same.
23697 * gcov-tool.c (unlink_gcda_file): Same.
23698 (do_merge): Same.
23699 (do_rewrite): Same.
23700 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23701 * gimplify.c (gimplify_asm_expr): Same.
23702 (gimplify_adjust_omp_clauses): Same.
23703 * hsa-gen.c (gen_hsa_addr_insns): Same.
23704 (gen_hsa_insns_for_load): Same.
23705 (gen_hsa_cmp_insn_from_gimple): Same.
23706 (gen_hsa_insns_for_operation_assignment): Same.
23707 (gen_get_level): Same.
23708 (gen_hsa_alloca): Same.
23709 (omp_simple_builtin::generate): Same.
23710 (gen_hsa_atomic_for_builtin): Same.
23711 (gen_hsa_insns_for_call): Same.
23712 * input.c (dump_location_info): Same.
23713 * ipa-devirt.c (compare_virtual_tables): Same.
23714 * ira.c (ira_setup_eliminable_regset): Same.
23715 * lra-assigns.c (lra_assign): Same.
23716 * lra-constraints.c (lra_constraints): Same.
23717 * lto-streamer-in.c (lto_input_mode_table): Same.
23718 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23719 (merge_and_complain): Same.
23720 (compile_offload_image): Same.
23721 (compile_images_for_offload_targets): Same.
23722 (debug_objcopy): Same.
23723 (run_gcc): Same.
23724 (main): Same.
23725 * opts.c (print_specific_help): Same.
23726 (parse_no_sanitize_attribute): Same.
23727 (print_help): Same.
23728 (handle_param): Same.
23729 * plugin.c (add_new_plugin): Same.
23730 (parse_plugin_arg_opt): Same.
23731 (try_init_one_plugin): Same.
23732 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23733 operators, and types in diagnostics. Correct quoting and spelling
23734 issues.
23735 * read-rtl-function.c (parse_edge_flag_token): Same.
23736 (function_reader::parse_enum_value): Same.
23737 * reg-stack.c (check_asm_stack_operands): Same.
23738 * regcprop.c (validate_value_data): Same.
23739 * sched-rgn.c (make_pass_sched_fusion): Same.
23740 * stmt.c (check_unique_operand_names): Same.
23741 * targhooks.c (default_target_option_pragma_parse): Same.
23742 * tlink.c (recompile_files): Same.
23743 * toplev.c (process_options): Same.
23744 (do_compile): Same.
23745 * trans-mem.c (diagnose_tm_1): Same.
23746 (ipa_tm_scan_irr_block): Same.
23747 (ipa_tm_diagnose_transaction): Same.
23748 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23749 format a tree code name in a diagnostic.
23750 (verify_types_in_gimple_min_lval): Same.
23751 (verify_types_in_gimple_reference): Same.
23752 (verify_gimple_call): Same.
23753 (verify_gimple_assign_unary): Same.
23754 (verify_gimple_assign_binary): Same.
23755 (verify_gimple_assign_ternary): Same.
23756 (verify_gimple_assign_single): Same.
23757 (verify_gimple_switch): Same.
23758 (verify_gimple_label): Same.
23759 (verify_gimple_phi): Same.
23760 (verify_gimple_in_seq): Same.
23761 (verify_eh_throw_stmt_node): Same.
23762 (collect_subblocks): Same.
23763 (gimple_verify_flow_info): Same.
23764 (do_warn_unused_result): Same.
23765 * tree-inline.c (expand_call_inline): Same.
23766 * tree-into-ssa.c (update_ssa): Same.
23767 * tree.c (tree_int_cst_elt_check_failed): Same.
23768 (tree_vec_elt_check_failed): Same.
23769 (omp_clause_operand_check_failed): Same.
23770 (verify_type_variant): Same.
23771 (verify_type): Same.
23772 * value-prof.c (verify_histograms): Same.
23773 * varasm.c (assemble_start_function): Same.
23774
23775 2019-05-16 Martin Sebor <msebor@redhat.com>
23776
23777 * config/i386/i386-expand.c (get_element_number): Quote keywords
23778 and other internal names in diagnostics. Adjust other diagnostic
23779 formatting issues noted by -Wformat-diag.
23780 * config/i386/i386-features.c
23781 (ix86_mangle_function_version_assembler_name): Same.
23782 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23783 * config/i386/i386.c (ix86_function_type_abi): Same.
23784 (ix86_function_ms_hook_prologue): Same.
23785 (classify_argument): Same.
23786 (ix86_expand_prologue): Same.
23787 (ix86_md_asm_adjust): Same.
23788 (ix86_memmodel_check): Same.
23789
23790 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23791
23792 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23793 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23794 and fpxx modes.
23795
23796 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23797
23798 PR target/90497
23799 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23800 intrinsics without SSE/SSE2/SSSE3.
23801 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23802 check.
23803 (*mmx_uavgv8qi3): Likewise.
23804
23805 2019-05-17 Richard Biener <rguenther@suse.de>
23806
23807 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23808 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23809
23810 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23811
23812 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23813 vec_sldw insn pattern.
23814
23815 2019-05-17 Richard Biener <rguenther@suse.de>
23816
23817 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
23818
23819 2019-05-17 Martin Liska <mliska@suse.cz>
23820
23821 PR driver/90496
23822 * toplev.c (output_stack_usage): With LTO and sanitizer it
23823 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
23824 has no file location.
23825
23826 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23827
23828 PR c++/90484
23829 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
23830 sz0 is equal to sz1, instead return false in that case.
23831
23832 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
23833 has non-constant expression, force sctx.lane and use two
23834 argument IFN_GOMP_SIMD_LANE instead of single argument.
23835 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
23836 two argument IFN_GOMP_SIMD_LANE without lhs.
23837 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
23838 member.
23839 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
23840 Define.
23841 (LOOP_REQUIRES_VERSIONING): Or in
23842 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
23843 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23844 simd_if_cond.
23845 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
23846 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
23847 from simd if clause if needed.
23848
23849 2019-05-16 Richard Biener <rguenther@suse.de>
23850
23851 * tree-affine.c (expr_to_aff_combination): New function split
23852 out from...
23853 (tree_to_aff_combination): ... here.
23854 (aff_combination_expand): Avoid building a GENERIC tree.
23855
23856 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
23857
23858 * cgraphunit.c (cgraph_node::expand_thunk): Remove
23859 assemble_start_function and assemble_end_function calls.
23860 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
23861 assemble_start_function and assemble_end_function.
23862 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
23863 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
23864 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
23865 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
23866 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
23867 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
23868 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
23869 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
23870 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23871 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23872 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
23873 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
23874 Likewise.
23875 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
23876 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
23877 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
23878 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
23879 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23880 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23881 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
23882 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
23883 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23884 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23885 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23886 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23887 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
23888 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
23889 Likewise.
23890 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23891 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23892 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
23893
23894 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
23895
23896 * tree-ssa-alias.c (alias_stats): Add
23897 aliasing_component_refs_p_may_alias and
23898 aliasing_component_refs_p_no_alias.
23899 (dump_alias_stats): Print aliasing_component_refs_p stats.
23900 (aliasing_component_refs_p): Update stats.
23901
23902 2019-05-16 Martin Liska <mliska@suse.cz>
23903
23904 PR lto/90500
23905 * multiple_target.c (expand_target_clones): Do not allow
23906 target_clones being used with a symbol that is an alias.
23907
23908 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
23909
23910 PR tree-optimization/90394
23911 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
23912 positives rather than ICE for cases where (code2 == NE_EXPR
23913 && code1 == BIT_AND_EXPR).
23914
23915 2019-05-16 Jakub Jelinek <jakub@redhat.com>
23916
23917 PR fortran/90329
23918 * tree-core.h (struct tree_decl_common): Document
23919 decl_nonshareable_flag for PARM_DECLs.
23920 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
23921 * calls.c (expand_call): Don't try tail call if caller
23922 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
23923 passed on the stack and callee needs to pass any arguments on the
23924 stack.
23925 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23926 else if instead of series of mutually exclusive ifs. Handle
23927 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
23928 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23929
23930 * lto-streamer.h (LTO_major_version): Bump to 9.
23931
23932 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
23933
23934 PR tree-optimization/90106
23935 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
23936 new parameter as new internal function call, also move it to new
23937 basic block.
23938 (use_internal_fn): Pass internal function call to
23939 shrink_wrap_one_built_in_call_with_conds.
23940
23941 2019-05-15 Jakub Jelinek <jakub@redhat.com>
23942
23943 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
23944 max_vf to 1.
23945 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
23946 safelen_int and set loop->dont_vectorize.
23947
23948 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23949
23950 PR target/89021
23951 * config/i386/i386-builtin.def: Enable MMX intrinsics with
23952 SSE/SSE2/SSSE3.
23953 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23954 Likewise.
23955 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
23956 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
23957 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
23958 is defined.
23959
23960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23961
23962 PR target/89021
23963 * config/i386/mmx.md (*vec_dupv2sf): Changed to
23964 define_insn_and_split to support SSE emulation.
23965 (*vec_extractv2sf_0): Likewise.
23966 (*vec_extractv2sf_1): Likewise.
23967 (*vec_extractv2si_0): Likewise.
23968 (*vec_extractv2si_1): Likewise.
23969 (*vec_extractv2si_zext_mem): Likewise.
23970 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
23971 (vec_extractv2sf_1 splitter): Likewise.
23972 (vec_extractv2sfsf): Likewise.
23973 (vec_setv2si): Likewise.
23974 (vec_extractv2si_1 splitter): Likewise.
23975 (vec_extractv2sisi): Likewise.
23976 (vec_setv4hi): Likewise.
23977 (vec_extractv4hihi): Likewise.
23978 (vec_setv8qi): Likewise.
23979 (vec_extractv8qiqi): Likewise.
23980 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23981 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
23982 (vec_extractv2sisi): Likewise.
23983 (vec_extractv4hihi): Likewise.
23984 (vec_extractv8qiqi): Likewise.
23985 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
23986 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
23987 (vec_initv2sisi): Likewise.
23988 (vec_initv4hihi): Likewise.
23989 (vec_initv8qiqi): Likewise.
23990 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
23991 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
23992 (vec_setv4hi): Likewise.
23993 (vec_setv8qi): Likewise.
23994
23995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
23996
23997 PR target/89021
23998 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
23999 TARGET_MMX_WITH_SSE.
24000 (MMXMODE:*mov<mode>_internal): Likewise.
24001 (MMXMODE:movmisalign<mode>): Likewise.
24002
24003 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24004
24005 PR target/89021
24006 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24007 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24008 (sse2_cvtpd2pi): Ditto.
24009 (sse2_cvttpd2pi): Ditto.
24010 (*vec_concatv2sf_sse4_1): Ditto.
24011 (*vec_concatv2sf_sse): Ditto.
24012 (*vec_concatv2si_sse4_1): Ditto.
24013 (*vec_concatv2si): Ditto.
24014 (*vec_concatv4si_0): Ditto.
24015 (*vec_concatv2di_0): Ditto.
24016
24017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24018
24019 PR target/89021
24020 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24021
24022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24023
24024 PR target/89021
24025 * config/i386/sse.md (ssse3_palignrdi): Changed to
24026 define_insn_and_split to support SSE emulation.
24027
24028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24029
24030 PR target/89021
24031 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24032
24033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24034
24035 PR target/89021
24036 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24037 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24038 SSE emulation.
24039
24040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24041
24042 PR target/89021
24043 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24044 or TARGET_MMX_WITH_SSE.
24045 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
24046
24047 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24048
24049 PR target/89021
24050 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
24051
24052 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24053
24054 PR target/89021
24055 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
24056 Changed to define_insn_and_split to support SSE emulation.
24057
24058 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24059
24060 PR target/89021
24061 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
24062 Changed to define_insn_and_split to support SSE emulation.
24063
24064 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24065
24066 PR target/89021
24067 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
24068 (*mmx_<emms>): This.
24069 (mmx_<emms>): New expander.
24070
24071 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24072
24073 PR target/89021
24074 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
24075 support.
24076 (*sse2_umulv1siv1di3): Add SSE2 emulation.
24077
24078 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24079
24080 PR target/89021
24081 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
24082
24083 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24084
24085 PR target/89021
24086 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
24087
24088 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24089
24090 PR target/89021
24091 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
24092 TARGET_MMX_WITH_SSE.
24093 (*mmx_uavgv4hi3): Add SSE emulation.
24094
24095 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24096
24097 PR target/89021
24098 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
24099 and TARGET_MMX_WITH_SSE.
24100 (*mmx_uavgv8qi3): Add SSE emulation.
24101
24102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24103
24104 PR target/89021
24105 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
24106 maskmovdqu for __MMX_WITH_SSE__.
24107
24108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24109
24110 PR target/89021
24111 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
24112 TARGET_MMX and TARGET_MMX_WITH_SSE.
24113 (*mmx_umulv4hi3_highpart): Add SSE emulation.
24114
24115 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24116
24117 PR target/89021
24118 * config/i386/mmx.md (mmx_pmovmskb): Changed to
24119 define_insn_and_split to support SSE emulation.
24120
24121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24122
24123 PR target/89021
24124 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
24125 and TARGET_MMX_WITH_SSE.
24126 (mmx_<code>v8qi3): Likewise.
24127 (smaxmin:<code>v4hi3): New.
24128 (umaxmin:<code>v8qi3): Likewise.
24129 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
24130 (umaxmin:*mmx_<code>v8qi3): Likewise.
24131
24132 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24133
24134 PR target/89021
24135 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
24136 TARGET_MMX_WITH_SSE.
24137 (*mmx_pinsrw): Add SSE emulation.
24138
24139 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24140
24141 PR target/89021
24142 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
24143
24144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24145
24146 PR target/89021
24147 * config/i386/sse.md (sse_cvtpi2ps): Changed to
24148 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24149 SSE emulation.
24150
24151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24152
24153 PR target/89021
24154 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
24155 (sse_cvttps2pi): Likewise.
24156
24157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24158
24159 PR target/89021
24160 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
24161 TARGET_MMX_WITH_SSE.
24162 (mmx_pshufw_1): Add SSE emulation.
24163 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
24164 TARGET_MMX_WITH_SSE to support SSE emulation.
24165
24166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24167
24168 PR target/89021
24169 * config/i386/constraints.md (Yw): New constraint.
24170 * config/i386/mmx.md (*vec_dupv2si): Changed to
24171 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
24172 support SSE emulation.
24173
24174 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24175
24176 PR target/89021
24177 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
24178 TARGET_MMX_WITH_SSE.
24179 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24180 support.
24181 (mmx_gt<mode>3): Likewise.
24182
24183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24184
24185 PR target/89021
24186 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24187 TARGET_MMX_WITH_SSE. Add SSE support.
24188
24189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24190
24191 PR target/89021
24192 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24193 TARGET_MMX_WITH_SSE.
24194 (any_logic:<code><mode>3): New.
24195 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24196 Add SSE support.
24197
24198 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24199
24200 PR target/89021
24201 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24202 TARGET_MMX_WITH_SSE. Add SSE emulation.
24203 (mmx_<shift_insn><mode>3): Likewise.
24204 (ashr<mode>3): New.
24205 (<shift_insn><mode>3): Likewise.
24206
24207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24208
24209 PR target/89021
24210 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24211 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24212
24213 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24214
24215 PR target/89021
24216 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24217 TARGET_MMX_WITH_SSE.
24218 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24219 SSE support.
24220
24221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24222
24223 PR target/89021
24224 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24225 TARGET_MMX_WITH_SSE.
24226 (mulv4hi3): New.
24227 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24228 support.
24229
24230 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24231
24232 PR target/89021
24233 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24234 (plusminus:mmx_<plusminus_insn><mode>3): Check
24235 TARGET_MMX_WITH_SSE.
24236 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24237 (<plusminus_insn><mode>3): New.
24238 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24239 (*mmx_<plusminus_insn><mode>3): Likewise.
24240
24241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24242
24243 PR target/89021
24244 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24245 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24246 prototype.
24247 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24248 define_insn_and_split to support SSE emulation.
24249 (mmx_punpcklbw): Likewise.
24250 (mmx_punpckhwd): Likewise.
24251 (mmx_punpcklwd): Likewise.
24252 (mmx_punpckhdq): Likewise.
24253 (mmx_punpckldq): Likewise.
24254
24255 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24256 Uros Bizjak <ubizjak@gmail.com>
24257
24258 PR target/89021
24259 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24260 New function.
24261 (ix86_split_mmx_pack): Likewise.
24262 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24263 New prototype.
24264 (ix86_split_mmx_pack): Likewise.
24265 * config/i386/i386.md (mmx_isa): New.
24266 (enabled): Also check mmx_isa.
24267 * config/i386/mmx.md (any_s_truncate): New code iterator.
24268 (s_trunsuffix): New code attr.
24269 (mmx_packsswb): Removed.
24270 (mmx_packssdw): Likewise.
24271 (mmx_packuswb): Likewise.
24272 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24273 MMX packsswb/packuswb with SSE2.
24274 (mmx_packssdw): Likewise.
24275 * config/i386/predicates.md (register_mmxmem_operand): New.
24276
24277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24278
24279 PR target/89021
24280 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24281 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24282 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24283 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24284 (ix86_vector_mode_supported_p): Likewise.
24285 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24286
24287 2019-05-15 Martin Liska <mliska@suse.cz>
24288
24289 PR middle-end/90478
24290 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24291 Check for overflow.
24292
24293 2019-05-15 Richard Biener <rguenther@suse.de>
24294
24295 * tree-into-ssa.c (pass_build_ssa::execute): Run
24296 update_address_taken before going into SSA.
24297
24298 2019-05-15 Richard Biener <rguenther@suse.de>
24299
24300 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24301 as __BIT_FIELD_REF with type with -gimple.
24302
24303 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24304
24305 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24306 semantically equivalent branches (left over after prior refactorings).
24307
24308 2019-05-15 Richard Biener <rguenther@suse.de>
24309
24310 PR tree-optimization/88828
24311 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24312 bogus check.
24313
24314 2019-05-14 Richard Biener <rguenther@suse.de>
24315
24316 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24317 as __VIEW_CONVERT with -gimple.
24318
24319 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24320
24321 PR target/82920
24322 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24323 Darwin.
24324
24325 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24326
24327 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24328 define_split to become a define_insn_and_split.
24329
24330 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24331
24332 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24333 arguments.
24334 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24335 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24336 (sibcall_epilogue): Adjust.
24337 (epilogue): Adjust.
24338
24339 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24340
24341 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24342 to unsupported ones.
24343 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24344 * config.host: Likewise.
24345 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24346 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24347 __svr4__]: Remove "brand" fallback.
24348 [!KSTAT_DATA_STRING]: Remove.
24349 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24350 to *-*-solaris2*.
24351 (comdat_group): Likewise.
24352 (set_have_as_tls): Likewise.
24353 (gcc_cv_target_dl_iterate_phdr): Likewise.
24354 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24355 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24356 * configure: Regenerate.
24357 * doc/install.texi: Simplify Solaris target triplets.
24358 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24359 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24360 Remove Solaris 10 references.
24361 Remove obsolete Solaris bug reference.
24362 (Specific, sparc-sun-solaris2.10): Remove.
24363
24364 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24365
24366 * config/i386/i386.md (any_div): New code iterator.
24367 (paired_mod): New code attribute.
24368 (sgnprefix): Handle DIV and UDIV RTXes.
24369 (u): Ditto.
24370 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24371 and udivmod<mode>4 patterns using any_div code iterator.
24372 (divmod splitters): Macroize splitters using any_div code iterator.
24373 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24374 (*udivmodsi4_pow2_zext_2): Ditto.
24375 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24376 and *udivmod<mode>4_noext patterns using any_div code iterator.
24377 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24378 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24379 patterns using any_div code iterator.
24380 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24381 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24382 patterns using any_div code iterator.
24383 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24384 udivmodhiqi3 patterns using any_extend code iterator.
24385
24386 2019-05-14 Richard Biener <rguenther@suse.de>
24387 H.J. Lu <hongjiu.lu@intel.com>
24388
24389 PR tree-optimization/88828
24390 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24391 permuting in a single non-constant element not extracted
24392 from a vector.
24393
24394 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24395
24396 * internal-fn.def (SIGNBIT): New.
24397 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24398 defined.
24399 (signbitv4sf2): Likewise.
24400
24401 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24402
24403 PR target/90357
24404 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24405 next insn when the SRC reg is dead.
24406
24407 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24408
24409 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24410 (alloc_cand_and_find_basis): Ditto.
24411 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24412 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24413 (create_add_imm_cand, slsr_process_cast): Ditto.
24414 (slsr_process_copy, replace_mult_candidate): Ditto.
24415 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24416 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24417 (pass_strength_reduction::execute): Init the first NULL element.
24418
24419 2019-05-13 Nathan Sidwell <nathan@acm.org>
24420
24421 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24422 (run_attempt): Reformat line break.
24423
24424 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24425
24426 PR target/90418
24427 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24428 data registers in sibcall epilogues.
24429 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24430
24431 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24432
24433 PR target/89221
24434 * configure.ac (--enable-frame-pointer):
24435 Disable by default for cygwin and mingw.
24436 * configure: Regenerate.
24437
24438 2019-05-13 Nathan Sidwell <nathan@acm.org>
24439
24440 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24441 piece of code.
24442 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24443 (gen_member_die): Move abstract origin check earlier. Only VARs
24444 can be static_inline_p. Simplify splicing control flow.
24445
24446 2019-05-13 Richard Biener <rguenther@suse.de>
24447
24448 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24449 VIEW_CONVERT_EXPR.
24450 (vect_build_slp_tree_1): Likewise.
24451
24452 2019-05-13 Richard Biener <rguenther@suse.de>
24453
24454 PR tree-optimization/90402
24455 * tree-if-conv.c (tree_if_conversion): Value number only
24456 the loop body by making the latch an exit of the region
24457 as well.
24458 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24459 processing PHIs.
24460 (do_rpo_vn): Deal with multiple edges into the entry block
24461 that are not backedges inside the region by skipping PHIs
24462 of the entry block.
24463
24464 2019-05-13 Richard Biener <rguenther@suse.de>
24465
24466 PR tree-optimization/90316
24467 * tree-ssa-pre.c (insert_aux): Fold into ...
24468 (insert): ... this function. Use a RPO walk to reduce the
24469 number of required iterations.
24470
24471 2019-05-13 Martin Liska <mliska@suse.cz>
24472
24473 PR tree-optimization/90416
24474 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24475 string instead of passing the second part as va_arg argument.
24476
24477 2019-05-13 Martin Liska <mliska@suse.cz>
24478
24479 PR gcov-profile/90380
24480 * gcov.c (handle_cycle): Do not support zero cycle count,
24481 it should not be possible.
24482 (path_contains_zero_cycle_arc): New function.
24483 (circuit): Ignore zero cycle arc counts.
24484
24485 2019-05-13 Martin Liska <mliska@suse.cz>
24486
24487 PR gcov-profile/90380
24488 * gcov.c (enum loop_type): Remove the enum and
24489 the operator.
24490 (handle_cycle): Assert that we should not reach
24491 a negative count.
24492 (circuit): Use loop_found instead of a tri-state loop_type.
24493 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24494 happen.
24495
24496 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24497
24498 PR target/82920
24499 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24500 (ix86_output_indirect_branch_via_reg): Use output mechanism
24501 accounting for __USER_LABEL_PREFIX__.
24502 (ix86_output_indirect_branch_via_push): Likewise.
24503 (ix86_output_function_return): Likewise.
24504 (ix86_output_indirect_function_return): Likewise.
24505
24506 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24507
24508 * doc/md.texi: Document use of code attributes in rtx patterns.
24509 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24510 * read-rtl.c (find_code): Split out search loops into...
24511 (maybe_find_code): ...this new function.
24512 (check_code_iterator): Make the error message more informative.
24513 (check_code_attribute): New function.
24514 (rtx_reader::rtx_alloc_for_name): Likewise.
24515 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24516 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24517 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24518 <max_opp> directly as an rtx code instead of via a match_operator.
24519 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24520 (<su>abd<mode>_3): Update accordingly.
24521
24522 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24523
24524 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24525 is given, print the state of the EH "save world" computation for
24526 Darwin.
24527
24528 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24529
24530 PR c++/59813
24531 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24532 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24533
24534 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24535
24536 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24537 Use pinsrd for TARGET_SSE4_1.
24538 * config/i386/sse.md (movdi_to_sse): Ditto.
24539
24540 2019-05-10 Richard Biener <rguenther@suse.de>
24541
24542 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24543 (do_rpo_vn): Initialize next_value_id.
24544
24545 2019-05-10 Martin Liska <mliska@suse.cz>
24546
24547 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24548 Fix plural form.
24549
24550 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24551
24552 PR tree-optimization/90385
24553 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24554 arguments of the exit phis.
24555
24556 PR c++/90383
24557 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24558 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24559 id->do_not_fold.
24560 (copy_tree_body_r): Likewise.
24561 (copy_fn): Set id.do_not_fold to true.
24562
24563 2019-05-10 Martin Liska <mliska@suse.cz>
24564
24565 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24566 Reapply changes from r269790.
24567
24568 2019-05-10 Martin Liska <mliska@suse.cz>
24569
24570 PR middle-end/90340
24571 * doc/invoke.texi: New params.
24572 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24573 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24574 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24575 Use it.
24576 * tree-switch-conversion.h (struct jump_table_cluster):
24577 Likewise.
24578
24579 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24580
24581 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24582
24583 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24584
24585 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24586
24587 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24588
24589 PR rtl-optimization/88879
24590 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24591
24592 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24593
24594 PR target/90405
24595 * config/arm/arm.c (callee_saved_reg_p): Move before
24596 thumb_find_work_register.
24597 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24598 thumb_find_work_register. Only call df_get_live_out once.
24599 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24600 (thumb_find_work_register): Use
24601 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24602 algorithms to locate a spare call clobbered reg.
24603
24604 2019-05-09 Martin Liska <mliska@suse.cz>
24605
24606 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24607 and MAX_EXPR in GIMPLE FE format.
24608
24609 2019-05-09 Martin Liska <mliska@suse.cz>
24610
24611 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24612 * gimple-pretty-print.c (dump_gimple_bb_header):
24613 Dump BB count.
24614 (pp_cfg_jump): Dump edge probability.
24615 * profile-count.c (profile_quality_as_string): Simplify
24616 with a static array.
24617 (parse_profile_quality): New function.
24618 (profile_count::dump): Simplify with a static array.
24619 (profile_count::from_gcov_type): Add new argument.
24620 * profile-count.h (parse_profile_quality): Likewise.
24621 * predict.h (set_hot_bb_threshold): New.
24622 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24623 New param.
24624 * predict.c (get_hot_bb_threshold): Set from the new param.
24625 (set_hot_bb_threshold): New.
24626
24627 2019-05-09 Richard Biener <rguenther@suse.de>
24628
24629 PR tree-optimization/90395
24630 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24631 rewrite vector stores that throw internally.
24632
24633 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24634
24635 * cif-code.def (CHKP): Remove.
24636
24637 PR target/89221
24638 * configure.ac (--enable-frame-pointer): Disable by default for
24639 GNU systems.
24640 * configure: Regenerate.
24641
24642 2019-05-09 Alan Modra <amodra@gmail.com>
24643
24644 PR target/89271
24645 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24646 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24647 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24648 cost for general <-> vsx when direct moves are available.
24649 Cost union classes at minimal cost for any reg in the class.
24650 Correct calculation for moves between vsx, float, and altivec.
24651 Don't return a low cost for moves between special regs. Don't
24652 use hard coded register numbers.
24653 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24654 (rs6000_ira_change_pseudo_allocno_class): New function.
24655 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24656 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24657 alternatives.
24658 (movsi_internal1): Don't disparage vector alternatives.
24659 (mov<mode>_internal): Likewise, excepting alternative that
24660 will be split.
24661 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24662 we <- b alternative.
24663
24664 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24665
24666 PR c++/59813
24667 PR tree-optimization/89060
24668 * tree-ssa-live.h (live_vars_map): New typedef.
24669 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24670 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24671 (struct compute_live_vars_data): New type.
24672 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24673 live_vars_at_stmt, destroy_live_vars): New functions.
24674 * tree-tailcall.c: Include tree-ssa-live.h.
24675 (live_vars, live_vars_vec): New global variables.
24676 (find_tail_calls): Perform variable life analysis before punting.
24677 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24678 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24679 member.
24680 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24681 Perform variable life analysis to select variables that really need
24682 clobbers added.
24683 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24684 instead set id->eh_landing_pad_dest and assert it is the same.
24685 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24686
24687 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24688 Richard Earnshaw <rearnsha@arm.com>
24689
24690 PR target/88167
24691 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24692 function.
24693 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24694 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24695 register if both the epilogue and prologue can use call-clobbered
24696 regs.
24697 (thumb1_unexpanded_epilogue): Use
24698 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24699 picking temporaries for restoring high regs to match that of the
24700 prologue where possible.
24701 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24702 the list of work registers. Detect if the return address is still live
24703 at the end of the prologue and avoid using it for a work register if so.
24704 If the return address is not live, add LR to the list of pushable regs
24705 after the first pass.
24706
24707 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24708
24709 PR tree-optimization/90078
24710 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24711 (INFTY): Increase the value for infinite cost.
24712 (struct comp_cost): Promote type of members to int64_t.
24713 (infinite_cost): Don't set complexity in initialization.
24714 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24715 overflows to infinite_cost.
24716 (adjust_setup_cost): Promote type of parameter and cost computation
24717 to int64_t.
24718 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24719 int64_t.
24720 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24721 cost computation to int64_t.
24722 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24723 int64_t's format specifier in dump.
24724
24725 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24726
24727 PR tree-optimization/90240
24728 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24729 with respect to scaling factor pre-computed for each basic block.
24730 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24731 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24732 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24733 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24734 live range for array of loop's basic blocks. Cleanup aux field of
24735 loop's basic blocks.
24736
24737 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24738
24739 PR tree-optimization/90356
24740 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24741
24742 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24743
24744 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24745 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24746 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24747 (ix86_handle_option): Handle -mavx512bf16.
24748 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24749 to extra_headers.
24750 * config/i386/avx512bf16vlintrin.h: New.
24751 * config/i386/avx512bf16intrin.h: New.
24752 * config/i386/cpuid.h (bit_AVX512BF16): New.
24753 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24754 * config/i386/i386-builtin-types.def: Add new types.
24755 * config/i386/i386-builtin.def: Add new builtins.
24756 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24757 __AVX512BF16__.
24758 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24759 (ix86_option_override_internal): Handle BF16.
24760 (ix86_valid_target_attribute_inner_p): Ditto.
24761 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24762 * config/i386/i386-builtin.c (enum processor_features): Add
24763 F_AVX512BF16.
24764 (static const _isa_names_table isa_names_table): Ditto.
24765 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24766 (PTA_AVX512BF16): Ditto.
24767 * config/i386/i386.opt: Add -mavx512bf16.
24768 * config/i386/immintrin.h: Include avx512bf16intrin.h
24769 and avx512bf16vlintrin.h.
24770 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24771 avx512f_cvtneps2bf16_<mode><mask_name>,
24772 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24773 * config/i386/subst.md (mask_half): Add new subst.
24774 * doc/invoke.texi: Document -mavx512bf16.
24775
24776 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24777
24778 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24779 Delete declaration.
24780 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24781 (rs6000_debug_legitimize_reload_address): Delete.
24782 (rs6000_legitimize_reload_address_ptr): Delete.
24783 (rs6000_option_override_internal): Adjust.
24784 (mem_operand_gpr): Adjust comment.
24785 (legitimate_lo_sum_address_p): Ditto.
24786 (rs6000_legitimize_reload_address): Delete.
24787 (rs6000_debug_legitimize_reload_address): Delete.
24788 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24789
24790 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24791
24792 PR target/89765
24793 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24794 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24795 to compute vector element selector for both constant and variable
24796 operands.
24797
24798 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24799
24800 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24801 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24802 ashrdi3_cvt using SWI48 mode iterator.
24803
24804 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24805
24806 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24807 (aarch64_<su>abd<mode>_3): Likewise.
24808 (*aarch64_<su>abd<mode>_3): New define_insn.
24809 (<sur>sad<vsi2qi>): New define_expand.
24810 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24811 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24812 (build_vect_cond_expr): Likewise.
24813
24814 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24815
24816 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
24817 clobbers outside of accessible_reg_set.
24818 * config/i386/i386.c (ix86_conditional_register_usage):
24819 Disable register sets by clearing corresponding bits in
24820 accessible_reg_set. Do not set corresponding bits in fixed_regs,
24821 call_used_regs and don't clear corresponding reg_names array members.
24822
24823 2019-05-07 Richard Biener <rguenther@suse.de>
24824
24825 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
24826 not specified still compute a comp_vectype for invariant
24827 compares.
24828
24829 2019-05-07 Richard Biener <rguenther@suse.de>
24830
24831 PR tree-optimization/90316
24832 * tree-ssa-pre.c (translate_vuse_through_block): When
24833 same_valid is NULL do not bother to search for a virtual
24834 PHI continuation.
24835 (phi_translate_1): When operands changed we cannot keep
24836 the same value-number so do not bother to ask whether
24837 that's possible from translate_vuse_through_block.
24838
24839 2019-05-07 Martin Liska <mliska@suse.cz>
24840
24841 * bitmap.c (bitmap_register): Come up with
24842 alloc_descriptor_max_uid and assign it for
24843 a new bitmap.
24844 (register_overhead): Use get_descriptor as
24845 a descriptor.
24846 (release_overhead): New.
24847 (bitmap_elem_to_freelist): Call it.
24848 (bitmap_elt_clear_from): Likewise.
24849 (bitmap_obstack_free): Likewise.
24850 (bitmap_move): Sensitively release memory.
24851 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
24852 (bitmap_initialize): Initialize alloc_descriptor to zero.
24853 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
24854
24855 2019-05-07 Richard Biener <rguenther@suse.de>
24856
24857 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
24858 we build a SLP node. Remove max_size and limiting.
24859 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
24860
24861 2019-05-07 Richard Biener <rguenther@suse.de>
24862
24863 PR tree-optimization/90316
24864 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
24865 limit by reference.
24866 (walk_non_aliased_vuses): Take walking limit argument.
24867 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
24868 walking if it is reached instead of just counting.
24869 (get_continuation_for_phi): Likewise.
24870 (walk_non_aliased_vuses): Likewise, instead of leaving counter
24871 limiting to the callback.
24872 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
24873 (vn_reference_lookup_3): Likewise.
24874 (vn_reference_lookup_pieces): Likewise.
24875 (vn_reference_lookup): Likewise.
24876 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
24877 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
24878 (avail_exprs_stack::lookup_avail_expr): Likewise.
24879
24880 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
24881
24882 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
24883 for comparaible types in the second direction even if first one
24884 hits incomparable type.
24885
24886 2019-05-07 Richard Biener <rguenther@suse.de>
24887
24888 PR lto/90369
24889 * lto-wrapper.c (debug_objcopy): Use the original filename
24890 including archive offset for the filename used for -save-temps.
24891
24892 2019-05-07 Li Jia He <helijia@linux.ibm.com>
24893
24894 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
24895 detection.
24896
24897 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
24898 Hongtao Liu <hongtao.liu@intel.com>
24899
24900 PR target/89750
24901 PR target/86444
24902 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
24903 Modified, original implementation isn't correct.
24904
24905 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24906
24907 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
24908 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
24909 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
24910 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
24911 (FRAME_POINTER_REGNUM): Change numbering.
24912 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
24913 (alt_reg_names): Adjust.
24914 (rs6000_conditional_register_usage): Don't mark hard register 64 as
24915 fixed.
24916 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24917 (DWARF_FRAME_REGISTERS): Delete.
24918 (DWARF2_FRAME_REG_OUT): Fix whitespace.
24919 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24920 Adjust.
24921 (REG_ALLOC_ORDER): Adjust.
24922 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
24923 (REG_CLASS_CONTENTS): Adjust.
24924 (RETURN_ADDR_RTX): Change comment.
24925 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
24926 instead of 67.
24927 (REGISTER_NAMES): Adjust.
24928 (ADDITIONAL_REGISTER_NAMES): Adjust.
24929 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24930
24931 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24932
24933 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
24934 Delete.
24935 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
24936 (DWARF_FRAME_REGISTERS): Adjust.
24937 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
24938 Adjust.
24939 (REG_ALLOC_ORDER): Adjust.
24940 (enum reg_class): Delete SPR_REGS.
24941 (REG_CLASS_NAMES): Delete SPR_REGS.
24942 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
24943 (REGISTER_NAMES): Adjust.
24944 (ADDITIONAL_REGISTER_NAMES): Adjust.
24945 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
24946 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
24947 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
24948 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
24949 (htm_spr_regno): Delete.
24950 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
24951 argument.
24952 (rs6000_dbx_register_number): Adjust.
24953
24954 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24955
24956 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
24957
24958 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
24959
24960 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
24961 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
24962
24963 2019-05-06 Jakub Jelinek <jakub@redhat.com>
24964
24965 PR tree-optimization/88709
24966 PR tree-optimization/90271
24967 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
24968 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
24969 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
24970 variable.
24971 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
24972 of the store merging group is larger than
24973 PARAM_STORE_MERGING_MAX_SIZE parameter.
24974 (split_group): Add bzero_first argument. If set, always emit first
24975 the first store which must be = {} of the whole area and then for the
24976 rest of the stores consider all zero bytes as paddings.
24977 (imm_store_chain_info::output_merged_store): Check if first store
24978 is = {} of the whole area and if yes, determine which setting of
24979 bzero_first for split_group gives smaller number of stores. Adjust
24980 split_group callers.
24981 (lhs_valid_for_store_merging_p): Allow decls.
24982 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
24983 no elts.
24984 (pass_store_merging::process_store): Likewise.
24985
24986 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
24987
24988 PR target/89424
24989 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24990 handling of V1TImode.
24991
24992 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
24993
24994 PR target/89221
24995 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
24996 and enable_frame_pointer ...
24997 * configure.ac: ... here. Update help strings for
24998 --enable-frame-pointer.
24999 * configure: Regenerate.
25000 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25001 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25002 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25003 (USE_X86_64_FRAME_POINTER): Ditto.
25004
25005 2019-05-06 Martin Liska <mliska@suse.cz>
25006
25007 * config.gcc: Append to target_gtfiles and fix indentation.
25008
25009 2019-05-06 Richard Biener <rguenther@suse.de>
25010
25011 PR tree-optimization/90358
25012 * tree-vect-stmts.c (get_group_load_store_type): Properly
25013 detect unused upper half of load.
25014 (vectorizable_load): Likewise.
25015
25016 2019-05-06 Richard Biener <rguenther@suse.de>
25017
25018 PR tree-optimization/88828
25019 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25020 (simplify_vector_constructor): ...here. Handle constants in
25021 the constructor.
25022
25023 2019-05-06 Richard Biener <rguenther@suse.de>
25024
25025 PR tree-optimization/90328
25026 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25027 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25028 is valid in the loop nest before using it.
25029 (initialize_data_dependence_relation): Adjust.
25030 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25031 loop as loop-nest to dr_may_alias_p.
25032
25033 2019-05-06 Richard Biener <rguenther@suse.de>
25034
25035 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25036
25037 2019-05-06 Richard Biener <rguenther@suse.de>
25038
25039 PR tree-optimization/90316
25040 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25041 compute target on demand.
25042 (get_continuation_for_phi): Remove code walking stmts to
25043 get to a target virtual operand which could end up being
25044 quadratic.
25045
25046 2019-05-06 Martin Liska <mliska@suse.cz>
25047
25048 PR sanitizer/90312
25049 * config/i386/i386-options.c (ix86_option_override_internal): Error only
25050 when -mabi is selected to a non-default version.
25051
25052 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
25053 Martin Liska <mliska@suse.cz>
25054
25055 * Makefile.in: Add lto-dump.texi.
25056 * cgraph.h: Add new functions get_visibility_string and
25057 get_symtab_type_string.
25058 * doc/gcc.texi: Include lto-dump section.
25059 * doc/lto-dump.texi: New file.
25060 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
25061 (parse_dump_option): Factor out this function.
25062 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
25063 (parse_dump_option): Export the function.
25064 * symtab.c (symtab_node::get_visibility_string): New function.
25065 (symtab_node::get_symtab_type_string): Likewise.
25066
25067 2019-05-06 Martin Liska <mliska@suse.cz>
25068
25069 * config/i386/i386-builtins.c: New file.
25070 * config/i386/i386-builtins.h: New file.
25071 * config/i386/i386-expand.c: New file.
25072 * config/i386/i386-expand.h: New file.
25073 * config/i386/i386-features.c: New file.
25074 * config/i386/i386-features.h: New file.
25075 * config/i386/i386-options.c: New file.
25076 * config/i386/i386-options.h: New file.
25077 * config.gcc: Add new files into extra_objs and
25078 target_gtfiles.
25079 * config/i386/i386.c: Split content of the file
25080 into newly introduced files.
25081 * config/i386/i386.h: Declare common variables
25082 and macros.
25083 * config/i386/t-i386: Define dependencies for new files.
25084
25085 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
25086
25087 PR target/89400
25088 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
25089 Restrict 'all' variant to 32-bit configurations.
25090 (unaligned_loadhiu): Likewise.
25091 (unaligned_storehi): Likewise.
25092 (unaligned_storesi): Likewise.
25093 (unaligned_loadhis): Disable when compiling for thumb1.
25094
25095 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
25096
25097 PR tree-optimization/90269
25098 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25099 Ignore clobbers.
25100
25101 2019-05-03 Martin Liska <mliska@suse.cz>
25102
25103 * hash-map.h: Add is_empty function.
25104 * hash-set.h: Likewise.
25105 * hash-table.h: Likewise.
25106 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
25107 elements () == 0 (and similar usages).
25108 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
25109 * gimplify.c (gimplify_bind_expr): Likewise.
25110 (gimplify_switch_expr): Likewise.
25111 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
25112 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
25113 * postreload-gcse.c (dump_hash_table): Likewise.
25114 (gcse_after_reload_main): Likewise.
25115 * predict.c (combine_predictions_for_bb): Likewise.
25116 * tree-parloops.c (reduction_phi): Likewise.
25117 (separate_decls_in_region): Likewise.
25118 (transform_to_exit_first_loop): Likewise.
25119 (gen_parallel_loop): Likewise.
25120 (gather_scalar_reductions): Likewise.
25121 (try_create_reduction_list): Likewise.
25122 * var-tracking.c (dump_vars): Likewise.
25123 (emit_notes_for_changes): Likewise.
25124 (vt_emit_notes): Likewise.
25125
25126 2019-05-03 Richard Biener <rguenther@suse.de>
25127
25128 PR tree-optimization/90316
25129 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
25130 before running VN.
25131
25132 2019-05-03 Richard Biener <rguenther@suse.de>
25133
25134 * tree-vect-stmts.c (get_group_load_store_type): Avoid
25135 peeling for gaps by loading only lower halves of vectors
25136 if possible.
25137 (vectorizable_load): Likewise.
25138
25139 2019-05-03 Richard Biener <rguenther@suse.de>
25140
25141 PR middle-end/89518
25142 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
25143
25144 2019-05-03 Richard Biener <rguenther@suse.de>
25145
25146 PR middle-end/87314
25147 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
25148 Handle STRING_CST vs DECL or STRING_CST.
25149
25150 2019-05-03 Richard Biener <rguenther@suse.de>
25151
25152 PR tree-optimization/88963
25153 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
25154 vector loads feeding only BIT_FIELD_REFs to component
25155 loads. Rewrite stores fed by CONSTRUCTORs to component
25156 stores.
25157
25158 2019-05-03 Jakub Jelinek <jakub@redhat.com>
25159
25160 * opts.h (finish_options): Remove lang_mask argument.
25161 (print_help, help_option_argument): Declare.
25162 * opts.c (print_help): Remove forward declaration, no longer static.
25163 (finish_options): Remove lang_mask argument, don't call print_help
25164 here.
25165 * opts-global.c (decode_options): Adjust finish_option caller, call
25166 print_help here.
25167
25168 PR tree-optimization/90303
25169 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
25170 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
25171
25172 2019-05-03 Richard Biener <rguenther@suse.de>
25173
25174 PR tree-optimization/89698
25175 * gimple-fold.c (canonicalize_constructor_val): Early out
25176 for constants, handle unfolded INTEGER_CSTs as they appear in
25177 C++ virtual table ctors.
25178
25179 2019-05-03 Richard Biener <rguenther@suse.de>
25180
25181 * passes.c (execute_function_todo): Remove dead code.
25182
25183 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25184
25185 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25186 the internal register number, for any "real" register.
25187
25188 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25189
25190 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25191 correct numbers for TFHAR, TFIAR, TEXASR.
25192
25193 2019-05-02 Richard Biener <rguenther@suse.de>
25194
25195 PR tree-optimization/89653
25196 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25197 update-address-taken before the pass.
25198 * passes.def (pass_tree_loop_init): Put comment before it.
25199
25200 2019-05-02 Richard Biener <rguenther@suse.de>
25201
25202 PR tree-optimization/89509
25203 * tree-ssa-structalias.c (compute_dependence_clique): Look
25204 at the first subvar when determining whether it is restrict.
25205
25206 2019-05-02 Richard Biener <rguenther@suse.de>
25207
25208 PR tree-optimization/90273
25209 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25210 useless debug stmts.
25211
25212 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25213
25214 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25215 ACLE branch.
25216 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25217 SVE ACLE branch.
25218 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25219 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25220 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25221 (vectorizable_reduction): Use the functions above to vectorize in a
25222 fully masked loop codes that don't have a conditional internal
25223 function.
25224
25225 2019-05-02 Martin Liska <mliska@suse.cz>
25226
25227 * cgraphclones.c: Call valid_attribute_p with 1 for
25228 target_clone.
25229 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25230 it's for target attribute.
25231 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25232 Add new boolean argument.
25233 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25234 Likewise.
25235 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25236 to ix86_valid_target_attribute_inner_p.
25237 (ix86_valid_target_attribute_p): Pass flags argument to
25238 ix86_valid_target_attribute_inner_p.
25239 (get_builtin_code_for_version): Use 0 as it's target attribute.
25240
25241 2019-05-02 Martin Liska <mliska@suse.cz>
25242
25243 * gcc.c (process_command): Add dummy file only
25244 if n_infiles == 0.
25245 * opts-global.c (decode_options): Pass lang_mask.
25246 * opts.c (print_help): New function.
25247 (finish_options): Print --help if help_option_argument
25248 is set.
25249 (common_handle_option): Factor out content of OPT__help_
25250 into print_help.
25251 * opts.h (finish_options): Add new argument.
25252
25253 2019-05-02 Martin Liska <mliska@suse.cz>
25254
25255 PR target/88809
25256 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25257 With -minline-all-stringops use inline expansion using 4B loop.
25258 * doc/invoke.texi: Document the change of
25259 -minline-all-stringops.
25260
25261 2019-05-01 Jeff Law <law@redhat.com>
25262
25263 PR tree-optimization/88797
25264 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25265 PHI feeds a conditional on the RHS of an assignment.
25266
25267 2019-04-30 Andrew Waterman <andrew@sifive.com>
25268 Jim Wilson <jimw@sifive.com>
25269
25270 * config/riscv/constraints.md (L): New.
25271 * config/riscv/predicates.md (lui_operand): New.
25272 (sfb_alu_operand): New.
25273 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25274 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25275 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25276 * config/riscv/risc.md (type): Add sfb_alu.
25277 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25278 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25279 (branch_zero<mode>): Delete.
25280 (mov<mode>cc): New.
25281 (mov<GPR:mode><X:mode>cc): Likewise.
25282 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25283
25284 2019-04-30 Nathan Sidwell <nathan@acm.org>
25285
25286 * tree.h (MARK_TS_EXP): New.
25287
25288 2019-04-30 Martin Liska <mliska@suse.cz>
25289
25290 * opts.c (enable_warning_as_error): Provide hints
25291 for unknown options.
25292
25293 2019-04-30 Martin Liska <mliska@suse.cz>
25294
25295 PR debug/90288
25296 * doc/invoke.texi: Add missing dash for gas-locview-support
25297 and gno-as-locview-support.
25298
25299 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25300
25301 PR target/89093
25302 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25303 whitespace at the start of target attribute string.
25304
25305 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25306
25307 PR target/86538
25308 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25309 Define __ARM_FEATURE_ATOMICS.
25310
25311 2019-04-30 Martin Liska <mliska@suse.cz>
25312
25313 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25314 into built_in_function enum. Remove code for endp == 2 and
25315 use BUILT_IN_* constants.
25316 (gimple_fold_builtin): Call the function with fcode.
25317
25318 2019-04-30 Martin Liska <mliska@suse.cz>
25319
25320 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25321 DECL_FUNCTION_CODE into ix86_builtins enum before
25322 the switch statement.
25323
25324 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25325
25326 PR tree-optimization/89475
25327 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25328 calls.
25329
25330 2019-04-30 Martin Liska <mliska@suse.cz>
25331
25332 PR translation/90274
25333 * opts.c (print_filtered_help): Wrap string in _(...).
25334
25335 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25336
25337 PR tree-optimization/90240
25338 Revert:
25339 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25340
25341 PR tree-optimization/90078
25342 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25343 checks for infinite_cost overflow.
25344
25345 2019-04-29 Jeff Law <law@redhat.com>
25346
25347 * passes.def: Move -Wrestrict pass after copy propagation.
25348
25349 2019-04-29 Maya Rashish <coypu@sdf.org>
25350
25351 * config.gcc (default_gnu_indirect_function): Default to yes
25352 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25353 sparc*-*-netbsd*, x86_64-*-netbsd*.
25354
25355 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25356
25357 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25358 where cond2 is NE_EXPR.
25359 (is_value_included_in): Update comment.
25360
25361 2019-04-29 Richard Biener <rguenther@suse.de>
25362
25363 PR tree-optimization/90278
25364 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25365 EH on comparison simplification.
25366
25367 2019-04-29 Jason Merrill <jason@redhat.com>
25368
25369 PR c++/82081 - tail call optimization breaks noexcept
25370 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25371 nothrow function to a might-throw function into a tail call.
25372
25373 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25374
25375 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25376 (DDR_INNER_LOOP): Likewise.
25377 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25378 (initialize_data_dependence_relation): Likewise.
25379 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25380
25381 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25382
25383 PR rtl-optimization/90257
25384 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25385 return value.
25386
25387 Revert the revert:
25388 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25389
25390 PR target/90178
25391 Revert:
25392 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25393
25394 Revert the revert:
25395 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25396
25397 Revert:
25398 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25399
25400 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25401
25402 2019-04-29 Richard Biener <rguenther@suse.de>
25403
25404 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25405 rhs issue a reset.
25406
25407 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25408
25409 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25410 varasm.h, and netbsd-protos.h.
25411
25412 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25413
25414 PR target/89261
25415 * config/i386/i386-protos.h (ix86_data_alignment): Change
25416 the second argument type to unsigned int.
25417 * config/i386/i386.c (ix86_data_alignment): Change "align"
25418 argument type to unsigned int.
25419
25420 2019-04-27 Martin Liska <mliska@suse.cz>
25421
25422 PR middle-end/90258
25423 * opt-suggestions.c (option_proposer::build_option_suggestions):
25424 When get_valid_option_values returns empty values, add the
25425 misspelling candidate.
25426
25427 2019-04-26 Jim Wilson <jimw@sifive.com>
25428
25429 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25430 parameter.
25431 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25432 Pass orig_mode to riscv_build_integer.
25433 (riscv_split_integer): Pass mode to riscv_move_integer.
25434 (riscv_legitimize_const_move): Likewise.
25435 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25436 promoted_mode. Replace force_reg call with code to load constant into
25437 promoted reg and then subreg it for the store.
25438 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25439 riscv_move_integer.
25440
25441 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25442
25443 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25444 corrupt codes.
25445
25446 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25447
25448 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25449 commentary about the encoding of precision.
25450
25451 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25452
25453 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25454 * config/i386/t-freebsd64: New file.
25455 * config.gcc: Add the t-freebsd64 for multilib support.
25456
25457 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25458
25459 * doc/extend.texi (vector_size): Add missing comma after @xref.
25460
25461 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25462
25463 * BASE-VER: Set to 10.0.0.
25464
25465 2019-04-25 Richard Biener <rguenther@suse.de>
25466
25467 PR middle-end/89765
25468 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25469 VIEW_CONVERT_EXPR into one operating on an rvalue.
25470
25471 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25472
25473 PR target/89929
25474 * config/i386/i386.c (feature_priority): Moved to file scope.
25475 (processor_features): Likewise.
25476 (processor_model): Likewise.
25477 (_arch_names_table): Likewise.
25478 (arch_names_table): Likewise.
25479 (_feature_list): Removed.
25480 (feature_list): Likewise.
25481 (_isa_names_table): Moved to file scope. Add priority.
25482 (isa_names_table): Likewise.
25483 (get_builtin_code_for_version): Replace feature_list with
25484 isa_names_table. Update error message for P_ZERO priority.
25485
25486 2019-04-25 Richard Biener <rguenther@suse.de>
25487
25488 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25489 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25490
25491 2019-04-24 Jeff Law <law@redhat.com>
25492
25493 PR tree-optimization/90037
25494 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25495 * passes.def: Replace all instance of phi-only cprop with the
25496 lattice propagator. Move propagation pass from after erroneous
25497 path isolation to before erroneous path isolation.
25498 * tree-ssa-phionlycprop.c: Remove.
25499
25500 2019-04-24 Richard Biener <rguenther@suse.de>
25501
25502 PR middle-end/90213
25503 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25504 by size and BITS_PER_UNIT on poly-wide-ints.
25505
25506 2019-04-25 Richard Biener <rguenther@suse.de>
25507
25508 PR middle-end/90194
25509 * match.pd: Add pattern to simplify view-conversion of an
25510 empty constructor.
25511
25512 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25513
25514 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25515 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25516 for Go on 32 bit AIX.
25517 * config/rs6000/aix72.h: Likewise.
25518
25519 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25520
25521 PR target/90193
25522 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25523 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25524
25525 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25526
25527 PR target/89952
25528 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25529 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25530 for restored hard frame pointer.
25531 (s390_sched_dependencies_evaluation): Implement new target hook.
25532 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25533
25534 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25535
25536 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25537 * config/arc/arc.c (arc_init): Cleanup warning message.
25538 (arc_override_options): Likewise.
25539
25540 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25541
25542 PR target/90187
25543 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25544 a register if both if_true and if_false are MEMs.
25545
25546 PR tree-optimization/90208
25547 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25548 after labels of new_bb, not before them.
25549
25550 PR tree-optimization/90211
25551 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25552 which are not SSA_NAMEs.
25553
25554 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25555
25556 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25557 AArch64.
25558 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25559
25560 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25561
25562 PR rtl-optimization/87979
25563 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25564 not equal zero.
25565
25566 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25567
25568 PR rtl-optimization/84032
25569 * modulo-sched.c (ps_insn_find_column): Change condition so that
25570 branch will always be the last insn in a row inside partial
25571 schedule.
25572
25573 2019-04-23 Richard Biener <rguenther@suse.de>
25574
25575 PR debug/90131
25576 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25577 dest_single_pred_p argument.
25578 (remove_forwarder_block): Adjust.
25579 (remove_forwarder_block_with_phi): Likewise.
25580
25581 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25582 Bernd Edlinger <bernd.edlinger@hotmail.de>
25583 Jakub Jelinek <jakub@redhat.com>
25584
25585 PR target/89093
25586 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25587 if used with general-regs-only.
25588 (arm_conditional_register_usage): Don't add non-general regs if
25589 general-regs-only.
25590 (arm_valid_target_attribute_rec): Handle general-regs-only.
25591 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25592 general-regs-only.
25593 (TARGET_HARD_FLOAT_SUB): Define.
25594 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25595 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25596 (TARGET_REALLY_IWMMXT2): Likewise.
25597 * config/arm/arm.opt: Add -mgeneral-regs-only.
25598 * doc/extend.texi: Document ARM general-regs-only target.
25599 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25600
25601 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25602
25603 PR tree-optimization/90078
25604 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25605 checks for infinite_cost overflow.
25606
25607 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25608
25609 PR tree-optimization/90021
25610 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25611 and check univariate against it.
25612 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25613 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25614
25615 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25616
25617 PR target/90178
25618 Revert:
25619 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25620
25621 Revert the revert:
25622 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25623
25624 Revert:
25625 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25626
25627 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25628
25629 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25630
25631 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25632 names using operand format, rather than hard-wired.
25633 (speculation_barrier): Likewise.
25634
25635 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25636
25637 PR tree-optimization/88055
25638 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25639 (gen_one_condition): Use it if !HONOR_NANS.
25640
25641 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25642
25643 PR middle-end/90139
25644 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25645 assign_temp instead of gen_reg_rtx.
25646
25647 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25648
25649 PR translation/90118
25650 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25651 Add missing space before %<.
25652
25653 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25654
25655 PR rtl-optimization/87871
25656 * ira-lives.c (make_object_dead): Don't add conflicts to
25657 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25658
25659 2019-04-18 Martin Sebor <msebor@redhat.com>
25660
25661 PR middle-end/89797
25662 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25663 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25664 assuming type size fits in SHWI.
25665
25666 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25667
25668 PR ipa/85051
25669 * ipa-inline.c (flatten_function): New parameter UPDATE.
25670 (ipa_inline, early_inliner): Use it.
25671
25672 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25673
25674 * fold-const.c (int_const_binop): Return early on failure.
25675
25676 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25677
25678 PR middle-end/85164
25679 * combine.c (force_int_to_mode): Cast the argument rather than
25680 the result of known_alignment.
25681 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25682
25683 2019-04-18 Richard Biener <rguenther@suse.de>
25684
25685 PR debug/90131
25686 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25687 out from ...
25688 (remove_forwarder_block): ... here.
25689 (remove_forwarder_block_with_phi): Also move debug stmts here.
25690
25691 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25692
25693 PR translation/79183
25694 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25695 inform where appropriate.
25696
25697 2019-04-18 Richard Biener <rguenther@suse.de>
25698
25699 * tree.c (get_qualified_type): Put found type variants at the
25700 head of the variant list.
25701
25702 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25703
25704 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25705
25706 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25707
25708 PR target/90125
25709 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25710 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25711 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25712 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25713 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25714
25715 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25716
25717 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25718 even for allocno's with no conflicts.
25719 (print_conflicts): Print an extra newline.
25720
25721 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25722
25723 * auto-inc-dec.c (attempt_change): Set the alignment of the
25724 temporary memory to that of the original.
25725
25726 2019-04-17 Joao Moreira <jmoreira@suse.de>
25727
25728 * targhooks.c (default_print_patchable_function_entry): Emit
25729 __patchable_function_entries section with writable flags to allow
25730 relocation resolution.
25731
25732 2019-04-17 Jonny Grant <jg@jguk.org>
25733
25734 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25735
25736 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25737
25738 PR middle-end/90095
25739 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25740 on lowpart SUBREGs.
25741
25742 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25743
25744 * config/arc/arc.c (arc_init): Format diagnostic string.
25745 (arc_override_options): Likewise.
25746 (check_if_valid_regno_const): Likewise.
25747 (arc_reorg): Likewise.
25748
25749 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25750
25751 PR target/17108
25752 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25753 name.
25754 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25755 name.
25756 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25757 (*movdi_update1): Use Pmode.
25758 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25759 (movdi_<mode>_update_stack): Rename to ...
25760 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25761 use Pmode.
25762 (*movsi_update1): Use Pmode.
25763 (*movsi_update2): Use Pmode.
25764 (movsi_update): Rename to ...
25765 (movsi_<mode>_update): ... this. Use Pmode.
25766 (movsi_update_stack): Fix condition.
25767 (*movhi_update1): Use Pmode. Fix argument to
25768 avoiding_indexed_address_p.
25769 (*movhi_update2): Ditto.
25770 (*movhi_update3): Ditto.
25771 (*movhi_update4): Ditto.
25772 (*movqi_update1): Ditto.
25773 (*movqi_update2): Ditto.
25774 (*movqi_update3): Ditto.
25775 (*movsf_update1, *movdf_update1): Merge, rename to...
25776 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25777 avoiding_indexed_address_p. Add "size" attribute.
25778 (*movsf_update2, *movdf_update2): Merge, rename to...
25779 (*mov<mode>_update2): This. Ditto.
25780 (*movsf_update3): Use Pmode. Fix argument to
25781 avoiding_indexed_address_p.
25782 (*movsf_update4): Ditto.
25783 (allocate_stack): Simplify condition. Adjust pattern names.
25784
25785 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25786
25787 PR target/89093
25788 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25789 whitespace at the start of target attribute string.
25790
25791 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25792
25793 PR target/84369
25794 * config/rs6000/power9.md: Add store forwarding bypass.
25795
25796 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25797
25798 PR debug/89528
25799 * valtrack.c (dead_debug_insert_temp): Reset debug references
25800 to the return value of a call being removed.
25801
25802 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25803
25804 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25805 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25806 implement target hook.
25807 (arc_memory_move_cost): New function.
25808 (TARGET_REGISTER_MOVE_COST): Define.
25809 (TARGET_MEMORY_MOVE_COST): Likewise.
25810 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25811 (MEMORY_MOVE_COST): Likewise.
25812
25813 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25814
25815 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25816 (sibcall_value_insn): Likewise.
25817 * config/arc/constraints.md (Rs5): Remove.
25818
25819 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25820
25821 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
25822 for last two fake registers.
25823 (arc_conditional_register_usage): Make sure fake frame and arg
25824 pointer regs are in general regs class.
25825 (FRAME_POINTER_MASK): Remove.
25826 (RETURN_ADDR_MASK): Remove.
25827 (arc_must_save_register): Use hard frame regnum.
25828 (frame_restore_reg): Use hard_frame_pointer_rtx.
25829 (arc_save_callee_saves): Likewise.
25830 (arc_restore_callee_saves): Likewise.
25831 (arc_save_callee_enter): Likewise.
25832 (arc_restore_callee_leave): Likewise.
25833 (arc_save_callee_milli): Likewise.
25834 (arc_eh_return_address_location): Likewise.
25835 (arc_check_multi): Use hard frame regnum.
25836 (arc_can_eliminate): Likewise.
25837 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
25838 for register allocator.
25839 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
25840 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
25841 (FRAME_POINTER_REGNUM): Change it to a fake register.
25842 (HARD_FRAME_POINTER_REGNUM): Defined.
25843 (ARG_POINTER_REGNUM): Change it to a new fake register.
25844 (ELIMINABLE_REGS): Update.
25845 (REGISTER_NAMES): Update names.
25846 * config/arc/arc.md (LP_START): Remove.
25847 (LP_END): Likewise.
25848 (shift_si3_loop): Update pattern.
25849
25850 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25851
25852 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
25853 to avoid delay slot scheduling.
25854 (arc_must_save_register): Don't save SP.
25855 * config/arc/arc.md (stack_tie): Remove.
25856 (UNSPEC_ARC_STKTIE): Likewise.
25857
25858 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
25859 Shiva Chen <shiva0217@gmail.com>
25860
25861 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
25862 code gen with large shift amount.
25863
25864 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
25865
25866 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
25867 subreg.
25868
25869 2019-04-16 Jakub Jelinek <jakub@redhat.com>
25870
25871 PR target/90096
25872 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
25873 print -m64/-mx32/-m32 if it is true.
25874 (ix86_debug_options, ix86_function_specific_print): Pass true as
25875 ADD_ABI_P to ix86_target_string.
25876 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
25877 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
25878 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
25879
25880 PR rtl-optimization/90082
25881 * dce.c (can_delete_call): New function.
25882 (deletable_insn_p, mark_insn): Use it.
25883
25884 PR tree-optimization/90090
25885 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
25886 throw internally.
25887 (is_division_by_square): Likewise. Formatting fix.
25888
25889 2019-04-16 Richard Biener <rguenther@suse.de>
25890
25891 PR tree-optimization/56049
25892 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
25893 equality check if alias-set zero will prevail.
25894
25895 2019-04-15 Jeff Law <law@redhat.com>
25896
25897 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
25898 size and alignment as unsigned.
25899
25900 2019-04-15 Richard Biener <rguenther@suse.de>
25901
25902 PR debug/90074
25903 * tree-loop-distribution.c (destroy_loop): Preserve correct
25904 debug info.
25905
25906 2019-04-15 Richard Biener <rguenther@suse.de>
25907
25908 PR tree-optimization/90071
25909 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
25910 abnormal operands from def stmts.
25911
25912 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
25913
25914 PR rtl-optimization/89794
25915 * combine.c (count_auto_inc): New function.
25916 (try_combine): Count how many auto_inc expressions there were in the
25917 original instructions. Ensure we have the same number in the new
25918 instructions. Remove the code that tried to ensure auto_inc side
25919 effects on i1 and i0 are not lost.
25920
25921 2019-04-15 Richard Biener <rguenther@suse.de>
25922
25923 PR ipa/88936
25924 * tree.h (auto_var_p): Declare.
25925 * tree.c (auto_var_p): New function, split out from ...
25926 (auto_var_in_fn_p): ... here.
25927 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
25928 member.
25929 (new_var_info): Initialize it.
25930 (set_uids_in_ptset): Also set the shadow variable uid if required.
25931 (ipa_pta_execute): Postprocess points-to solutions assigning
25932 shadow variable uids for locals that may reach their containing
25933 function recursively.
25934 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
25935 assert but instead check whether the points-to solution is
25936 a singleton.
25937
25938 2019-04-15 Martin Jambor <mjambor@suse.cz>
25939
25940 PR ipa/pr89693
25941 * cgraph.c (clone_of_p): Loop over clone chain for each step in
25942 the thunk chain.
25943
25944 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25945
25946 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
25947
25948 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
25949 Kito Cheng <kito.cheng@gmail.com>
25950 Shiva Chen <shiva0217@gmail.com>
25951
25952 * config/nds32/nds32-md-auxiliary.c
25953 (nds32_legitimize_pic_address): Use new PIC pattern.
25954 (nds32_legitimize_tls_address): Use new TLS pattern.
25955 (nds32_output_symrel): New.
25956 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
25957 (nds32_alloc_relax_group_id): Ditto.
25958 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
25959 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
25960 relax_group_id.
25961 (nds32_group_tls_insn): Ditto.
25962 (nds32_group_float_insns): Ditto.
25963 * config/nds32/nds32.md (tls_le): New.
25964 (sym_got): Ditto.
25965
25966 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
25967
25968 * configure: Add nds32 target for dwarf2 debug_line checking.
25969 * configure.ac: Regenerated.
25970
25971 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
25972
25973 PR lto/89358
25974 * ipa-devirt.c (skip_in_fields_list_p): New.
25975 (odr_types_equivalent_p): Use it.
25976
25977 2019-04-13 Jakub Jelinek <jakub@redhat.com>
25978
25979 PR target/89093
25980 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
25981 instead of strncmp when checking for thumb and arm. Formatting fixes.
25982
25983 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
25984
25985 * doc/install.texi: Document --with-target-system-zlib.
25986
25987 2019-04-12 Martin Sebor <msebor@redhat.com>
25988
25989 PR c/88383
25990 PR c/89288
25991 PR c/89798
25992 PR c/89797
25993 * targhooks.c (default_vector_alignment): Avoid assuming
25994 argument fits in SHWI.
25995 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
25996 a shift expression.
25997 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
25998
25999 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26000
26001 PR rtl-optimization/89965
26002 * dce.c: Include rtl-iter.h.
26003 (struct check_argument_load_data): New type.
26004 (check_argument_load): New function.
26005 (find_call_stack_args): Check for loads from stack slots still tracked
26006 in sp_bytes and punt if any is found.
26007
26008 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26009
26010 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26011
26012 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26013 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26014
26015 2019-04-12 Martin Liska <mliska@suse.cz>
26016
26017 PR middle-end/89970
26018 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26019 in error message.
26020 (separate_attrs): Handle multiple 'default's.
26021 (expand_target_clones): Rework error handling code.
26022
26023 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26024
26025 PR target/87532
26026 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26027 mode of vector rather than mode of destination for move instruction.
26028 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26029 Use QI inner mode with V16QI vector mode.
26030
26031 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26032
26033 PR target/52726
26034 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26035 "invalid %%t operand" in output_operand_lossage message.
26036
26037 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26038
26039 * config/s390/predicates.md (permute_pattern_operand): New
26040 predicate.
26041 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26042 operand for the permute pattern.
26043 ("*vec_perm<mode>"): New insn definition.
26044 ("bswap<mode>"): Generate the permute pattern operand in the
26045 expander and perform the operand reloads for pre arch13 level
26046 already.
26047 ("*bswap<mode>_emu"): Rename to ...
26048 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
26049 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
26050 Add the USE operand for the permute pattern.
26051 ("*vec_set_bswap_vec<mode>"): Likewise.
26052
26053 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26054
26055 PR c/89946
26056 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
26057 and gcc_unreachable if it fails, just call tree_to_uhwi which
26058 verifies that too. Test TREE_CHAIN instead of list_length > 1.
26059 Start warning message with a lower-case letter. Formatting fixes.
26060
26061 PR rtl-optimization/90026
26062 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
26063 successors, look for BARRIERs inside of the whole BB_FOOTER chain
26064 rather than just at the start of it. If e->src BB_FOOTER is not NULL
26065 in cfglayout mode, use emit_barrier_after_bb.
26066
26067 2018-04-11 Steve Ellcey <sellcey@marvell.com>
26068
26069 PR rtl-optimization/87763
26070 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
26071 New Instruction.
26072
26073 2019-04-11 Tom de Vries <tdevries@suse.de>
26074
26075 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
26076 max macro using statement expression.
26077
26078 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
26079
26080 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
26081 * xcoffout.c (xcoff_private_rodata_section_name): Define.
26082 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
26083 read_only_private_data_section using xcoff_private_rodata_section_name.
26084 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
26085
26086 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
26087
26088 PR target/90016
26089 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
26090
26091 2019-04-11 Jakub Jelinek <jakub@redhat.com>
26092
26093 PR rtl-optimization/89965
26094 * dce.c (sp_based_mem_offset): New function.
26095 (find_call_stack_args): Use sp_based_mem_offset.
26096
26097 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
26098
26099 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
26100
26101 2019-04-11 Richard Biener <rguenther@suse.de>
26102
26103 PR tree-optimization/90020
26104 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
26105 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
26106 * tree-ssa-pre.c (compute_avail): Use it to not put
26107 possibly trapping references after a call that might not
26108 return into EXP_GEN.
26109 * gcse.c (compute_hash_table_work): Do not elide
26110 marking a block containing a call if the call might not
26111 return.
26112
26113 2019-04-11 Richard Biener <rguenther@suse.de>
26114
26115 PR tree-optimization/90018
26116 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
26117 Test both SLP and interleaving variants.
26118
26119 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
26120
26121 * config/s390/8561.md: New file.
26122 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26123 Add arch13 cpu model.
26124 * config/s390/s390-opts.h (enum processor_type): Likewise.
26125 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
26126 (s390_get_unit_mask): Likewise.
26127 (s390_is_fpd): Likewise.
26128 (s390_is_fxd): Likewise.
26129 * config/s390/s390.h (s390_tune_attr): Likewise.
26130 * config/s390/s390.md: Include arch13 pipeline description.
26131 * config/s390/s390.opt: Add arch13.
26132
26133 2018-04-10 Steve Ellcey <sellcey@marvell.com>
26134
26135 PR rtl-optimization/87763
26136 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
26137 New prototype.
26138 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
26139 New function.
26140 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
26141 New instruction.
26142 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
26143 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
26144 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
26145 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
26146
26147 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
26148
26149 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
26150 "Although" in -fipa-icf documentation.
26151
26152 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
26153 of using multiple -g options.
26154
26155 2019-04-10 Martin Liska <mliska@suse.cz>
26156
26157 PR gcov-profile/89959
26158 * doc/gcov.texi: Make documentation of -x option
26159 more precise.
26160
26161 2019-04-10 Richard Biener <rguenther@suse.de>
26162
26163 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
26164 member.
26165 (DR_GROUP_SAME_DR_STMT): Remove.
26166 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
26167 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
26168 replace with assert.
26169 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
26170 (vect_record_grouped_load_vectors): Remove unreachable code.
26171
26172 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
26173
26174 PR target/90016
26175 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
26176 obsolete reference to N.
26177
26178 2019-04-10 Jakub Jelinek <jakub@redhat.com>
26179
26180 PR middle-end/90025
26181 * expr.c (store_expr): Set properly size on the MEM passed to
26182 clear_storage.
26183
26184 PR c++/90010
26185 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26186 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26187 translation is needed, and when translation is needed, only append
26188 ... if the string length is hostsz or more bytes long. Avoid using
26189 strncpy or strcat.
26190
26191 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26192
26193 PR target/90024
26194 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26195 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26196 into three.
26197 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26198 differences directly.
26199 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26200
26201 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26202
26203 PR translation/90011
26204 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26205 from diagnostics.
26206 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26207 diagnostics.
26208 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26209 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26210 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26211 trailing space from -gsplit-dwarf diagnostics.
26212
26213 PR tree-optimization/89998
26214 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26215 instead of integer_type_node if possible, don't add ranges if return
26216 type is not compatible with int.
26217 * gimple-fold.c (gimple_fold_builtin_sprintf,
26218 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26219 integer_type_node.
26220
26221 2019-04-09 Martin Liska <mliska@suse.cz>
26222
26223 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26224 * doc/install.texi: Document the new config.
26225
26226 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26227
26228 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26229 use gimple_expr_type for load and store calls. Skip over the
26230 condition argument in a conditional internal function.
26231 Protect use of TREE_INT_CST_LOW.
26232
26233 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26234
26235 PR target/90015
26236 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26237 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26238 trailing period from it too.
26239
26240 2019-04-08 wu yuan <wuyuan5@huawei.com>
26241
26242 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26243 * config/aarch64/aarch64.md: Add "tsv110.md".
26244 * config/aarch64/tsv110.md: New file.
26245
26246 2019-04-08 Richard Biener <rguenther@suse.de>
26247
26248 PR tree-optimization/90006
26249 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26250 calls like lrint.
26251
26252 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26253
26254 PR target/83033
26255 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26256 construction.
26257 (fma_root_node): Likewise.
26258 (func_fma_steering): Likewise.
26259
26260 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26261
26262 PR rtl-optimization/89865
26263 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26264
26265 PR rtl-optimization/89865
26266 * config/i386/i386.md
26267 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26268 numbers not to clash with the additional operands[4].
26269 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26270 with extra register copy in the middle.
26271
26272 2019-04-08 Martin Liska <mliska@suse.cz>
26273
26274 PR gcov-profile/89961
26275 * doc/gcov.texi: Document data_file.
26276 * gcov.c (generate_results): Add data_info into JSON output.
26277
26278 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26279
26280 PR tree-optimization/89725
26281 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26282 loop's chrec as invariant symbol.
26283 * tree-chrec.h (chrec_contains_symbols): New parameter.
26284 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26285 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26286 function of loops not in DDR's loop_nest.
26287 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26288
26289 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26290
26291 PR target/89623
26292 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26293 Mask.
26294
26295 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26296
26297 PR target/89945
26298 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26299 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26300
26301 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26302
26303 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26304 targetm.fixed_condition_code_regs.
26305
26306 2019-04-05 Richard Biener <rguenther@suse.de>
26307
26308 PR debug/89892
26309 PR debug/89905
26310 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26311 debug bind stmts but reset them if they are not valid at the
26312 destination.
26313
26314 2019-04-05 Martin Liska <mliska@suse.cz>
26315
26316 PR translation/89936
26317 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26318 order to wrap keywords or arguments.
26319 * collect2.c (main): Likewise.
26320 (scan_prog_file): Likewise.
26321 (scan_libraries): Likewise.
26322 * common/config/riscv/riscv-common.c
26323 (riscv_subset_list::parsing_subset_version): Likewise.
26324 (riscv_subset_list::parse_std_ext): Likewise.
26325 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26326 Likewise.
26327 * config/arm/arm.c (arm_option_override): Likewise.
26328 * config/cris/cris.c (cris_print_operand): Likewise.
26329 * config/darwin-c.c (darwin_pragma_options): Likewise.
26330 (darwin_pragma_unused): Likewise.
26331 (darwin_pragma_ms_struct): Likewise.
26332 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26333 * config/i386/i386.c (print_reg): Likewise.
26334 (ix86_print_operand): Likewise.
26335 * config/i386/xm-djgpp.h: Likewise.
26336 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26337 * config/m32c/m32c.c (m32c_option_override): Likewise.
26338 * config/msp430/msp430.c (msp430_option_override): Likewise.
26339 * config/nds32/nds32.c (nds32_option_override): Likewise.
26340 * config/nvptx/mkoffload.c (main): Likewise.
26341 * config/rx/rx.c (rx_print_operand): Likewise.
26342 (valid_psw_flag): Likewise.
26343 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26344 (vms_pragma_nomember_alignment): Likewise.
26345 (vms_pragma_extern_model): Likewise.
26346 * lto-wrapper.c (compile_offload_image): Likewise.
26347 * omp-offload.c (oacc_parse_default_dims): Likewise.
26348 * symtab.c (symtab_node::verify_base): Likewise.
26349 * tlink.c (recompile_files): Likewise.
26350 (start_tweaking): Likewise.
26351 * tree-profile.c (parse_profile_filter): Likewise.
26352
26353 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26354
26355 PR tree-optimization/89956
26356 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26357 multiple negates of the same value.
26358
26359 2019-04-04 Martin Sebor <msebor@redhat.com>
26360
26361 PR middle-end/89957
26362 PR middle-end/89911
26363 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26364 have the same precision since the function crashes otherwise.
26365 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26366 has non-zero arguments.
26367
26368 2019-04-04 Martin Sebor <msebor@redhat.com>
26369
26370 PR middle-end/89934
26371 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26372 out if the number of arguments is less than expected.
26373
26374 2019-04-04 Jeff Law <law@redhat.com>
26375
26376 PR rtl-optimization/89399
26377 * ree.c (combine_set_extension): Use single_set rather than
26378 digging into PATTERN for items on the candidate list.
26379 (combine_reaching_defs): Likewise.
26380
26381 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26382
26383 PR rtl-optimization/46590
26384 * loop-invariant.c (find_defs): Move df_remove_problem and
26385 df_process_deferred_rescans to move_invariants.
26386 Move df_live_add_problem and df_live_set_all_dirty calls
26387 to move_invariants.
26388 (move_invariants): Likewise.
26389 (move_loop_invariants): Likewise, making the df_live calls
26390 conditional on -O. Remove the problem again if we added it
26391 locally.
26392
26393 2019-04-03 qing zhao <qing.zhao@oracle.com>
26394
26395 PR tree-optimization/89730
26396 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26397 -flive-patching=inline-only-static.
26398 (can_inline_edge_by_limits_p): Add the checking for
26399 -flive-patching=inline-only-static and grant always_inline
26400 even when -flive-patching=inline-only-static is specified.
26401
26402 2019-04-03 Jeff Law <law@redhat.com>
26403
26404 PR rtl-optimization/81025
26405 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26406
26407 2019-04-03 Richard Biener <rguenther@suse.de>
26408
26409 PR tree-optimization/84101
26410 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26411 regs.h for hard_regno_nregs.
26412 (cfun_returns): New helper.
26413 (vect_model_store_cost): When vectorizing a store to a decl
26414 we return and the function ABI returns in a multi-reg location
26415 account for the possible spilling that will happen.
26416
26417 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26418
26419 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26420 displacement addresses for vector mode operands.
26421
26422 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26423
26424 * config/arc/arc.c (GMASK_LEN): Define.
26425 (arc_restore_callee_saves): Restore first blink when
26426 !optimize_size.
26427
26428 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26429
26430 * doc/extend.texi: Add deprecated comment on sign-return-address
26431 function attribute and add mbranch-protection.
26432 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26433
26434 2019-04-03 Richard Biener <rguenther@suse.de>
26435
26436 PR lto/89896
26437 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26438 the all target phony.
26439
26440 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26441
26442 PR target/89902
26443 PR target/89903
26444 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26445 Return false for variable DImode shifts.
26446 (dimode_scalar_chain::compute_convert_gain): Do not handle
26447 register count operand in variable DImode shifts.
26448 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26449 count argument of a variable shift instruction to a vector register.
26450 (dimode_scalar_chain::convert_reg): Remove support to convert
26451 count argument of a variable shift instruction.
26452
26453 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26454
26455 PR rtl-optimization/84206
26456 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26457 iterating over loop headers.
26458
26459 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26460
26461 PR rtl-optimization/85876
26462 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26463 beyond the original fence.
26464
26465 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26466
26467 * config.gcc: Mark spu* targets as deprecated/obsolete.
26468
26469 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26470
26471 * config/s390/s390-builtin-types.def: New builtin function type
26472 definitions. Remove unused types.
26473 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26474 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26475 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26476 overloaded builtins.
26477 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26478 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26479 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26480 (vec_double, vec_signed, vec_unsigned): Define to use the new
26481 overloaded builtins.
26482 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26483 Remove expanders.
26484
26485 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26486
26487 * config/s390/s390-builtin-types.def: New builtin function type
26488 definitions.
26489 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26490 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26491 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26492 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26493 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26494 constant definitions.
26495 * config/s390/vecintrin.h (vec_search_string_cc)
26496 (vec_search_string_until_zero_cc): New builtin name definitions.
26497 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26498 expanders.
26499 ("vec_vstrs<mode>"): New insn definition.
26500
26501 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26502
26503 * config/s390/s390-builtin-types.def: Add new builtin function
26504 types.
26505 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26506 New overloaded builtins.
26507 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26508 s390_vsrd.
26509 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26510 (UNSPEC_VEC_SLDBYTE): ... this.
26511 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26512 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26513 definitions.
26514 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26515 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26516 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26517
26518 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26519
26520 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26521 New insn definition.
26522 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26523 * config/s390/vector.md (V_HW_HSD): ... here.
26524
26525 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26526
26527 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26528 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26529 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26530 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26531 New insn definitions.
26532
26533 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26534
26535 * config/s390/s390-builtin-types.def: Add new builtin function type.
26536 * config/s390/s390-builtins.def: Add overloaded builtin
26537 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26538 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26539 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26540 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26541 ("eltswap<mode>"): New expander.
26542 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26543 insn definitions.
26544
26545 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26546
26547 * config/s390/s390-builtin-types.def: Add new builtin function types.
26548 * config/s390/s390-builtins.def: Add overloaded builtin
26549 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26550 instructions.
26551 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26552 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26553 ("bswap<mode>"): New expander.
26554 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26555
26556 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26557
26558 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26559 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26560 vector builtin version number in __VEC__.
26561
26562 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26563
26564 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26565 iterators.
26566 (SFSI): New mode attribute.
26567 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26568 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26569 rename to ...
26570 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26571 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26572 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26573 ("floatsi<mode>2"): Add wcefb instruction.
26574
26575 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26576
26577 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26578 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26579 mode iterators.
26580 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26581 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26582 support 32 bit fp-int conversions. Rename to ...
26583 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26584 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26585 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26586 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26587 ... to these.
26588
26589 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26590
26591 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26592 if-then-else constructs if we can use the select instruction.
26593 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26594
26595 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26596
26597 * config/s390/s390.md ("*popcountdi_arch13_cc")
26598 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26599 definition.
26600 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26601 Append _z196 to make it ...
26602 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26603 ("popcounthi2_z196"): ... this.
26604 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26605 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26606
26607 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26608
26609 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26610 certain compares for arch13 in order to make use of the condition
26611 code result produced by the new instructions.
26612 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26613 nxrk, and nxgrk instruction patterns.
26614 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26615 (inv_no): Add new code iterator together with some attributes.
26616 ("*andc_split_<mode>"): Disable splitter for arch13.
26617 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26618 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26619 ("*<ANDOR:bitops_name>c<GPR:mode>")
26620 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26621 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26622 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26623 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26624
26625 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26626
26627 * common/config/s390/s390-common.c (processor_flags_table): New
26628 entry for arch13.
26629 * config.gcc: Support arch13 with the --with-arch= configure flag.
26630 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26631 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26632 * config/s390/s390.c (s390_get_sched_attrmask)
26633 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26634 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26635 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26636 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26637 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26638 definitions.
26639 * config/s390/s390.opt: Support arch13 as processor type in
26640 command line options.
26641
26642 2019-04-02 Martin Liska <mliska@suse.cz>
26643
26644 PR translation/89912
26645 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26646 Fix param description of graphite-max-arrays-per-scop.
26647
26648 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26649
26650 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26651 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26652 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26653
26654 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26655
26656 PR rtl-optimization/85412
26657 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26658 sel_sched_region_1, not after.
26659
26660 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26661
26662 PR rtl-optimization/86928
26663 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26664 compute_live if necessary.
26665 (sel_redirect_edge_and_branch): Likewise.
26666
26667 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26668
26669 PR rtl-optimization/89865
26670 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26671 register if it is a part of small class.
26672
26673 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26674
26675 PR rtl-optimization/87273
26676 * sel-sched-ir.c (merge_fences): Remove assert.
26677
26678 2019-04-01 Richard Biener <rguenther@suse.de>
26679
26680 PR tree-optimization/46590
26681 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26682 (dom_walker::m_reachability): Add in place of...
26683 (dom_walker::m_skip_unreachable_blocks): ...this.
26684 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26685 Move complex initialization ...
26686 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26687 lazily and initialize edge flags on each invocation.
26688 (dom_walker::bb_reachable): Use m_reachability.
26689
26690 2019-04-01 Martin Liska <mliska@suse.cz>
26691
26692 PR driver/89861
26693 * opt-suggestions.c (option_proposer::build_option_suggestions):
26694 Add variant without any argument in order to provide better
26695 hints.
26696
26697 2019-04-01 Richard Biener <rguenther@suse.de>
26698
26699 PR c/71598
26700 * gimple.c: Include langhooks.h.
26701 (gimple_get_alias_set): Treat enumeral types as the underlying
26702 integer type.
26703
26704 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26705 Eric Botcazou <ebotcazou@adacore.com>
26706
26707 PR rtl-optimization/89862
26708 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26709 that operates on the full registers for WORD_REGISTER_OPERATIONS
26710 architectures.
26711
26712 2019-03-29 Jim Wilson <jimw@sifive.com>
26713
26714 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26715 Clear MASK_RVC and then set if C subset supported.
26716
26717 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26718
26719 PR c/89872
26720 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26721 non-addressable complit into its initializer if it is volatile.
26722
26723 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26724
26725 * opts-common.c (integral_argument): Set errno properly in one case.
26726
26727 2019-03-29 Martin Liska <mliska@suse.cz>
26728
26729 * doc/invoke.texi: Remove -Wchkp from documentation.
26730
26731 2019-03-29 Martin Liska <mliska@suse.cz>
26732
26733 * dbgcnt.c (print_limit_reach): New function.
26734 (dbg_cnt): Use it.
26735
26736 2019-03-29 Martin Liska <mliska@suse.cz>
26737
26738 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26739 (dbg_cnt_process_opt): Parse first tokens aas
26740 dbg_cnt_process_single_pair is also using strtok.
26741
26742 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26743
26744 PR rtl-optimization/87485
26745 * function.c (expand_function_end): Move stack_protect_epilogue
26746 before loading of return value into hard register(s).
26747
26748 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26749
26750 PR middle-end/89621
26751 * tree-inline.h (struct copy_body_data): Add
26752 dont_remap_vla_if_no_change flag.
26753 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26754 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26755 and remap_type_2 returns false.
26756 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26757 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26758 only from where it is copied to nested contexts.
26759
26760 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26761
26762 PR target/89865
26763 * config/i386/i386.md (RMW operation with LEA peephole):
26764 Use LEAMODE mode attribute instead of SWI mode iterator for
26765 LEA pattern.
26766
26767 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26768
26769 PR target/89848
26770 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26771 Also process XEXP (src, 0) of a shift insn.
26772
26773 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26774
26775 PR middle-end/89725
26776 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26777 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26778
26779 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26780
26781 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26782 test.
26783 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26784 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26785 immediately after first one with df_analyze in between, but rather
26786 process all bbs, queueing ones that need second pass in a worklist,
26787 df_analyze, process queued debug insn changes and if second pass is
26788 needed, process bbs from worklist, df_analyze, process queued debug
26789 insns again.
26790
26791 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26792 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26793 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26794
26795 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26796
26797 PR c/79022
26798 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26799 definition.
26800
26801 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26802
26803 PR target/85667
26804 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26805 function for 32-bit MS_ABI.
26806 (function_value_ms_32): New function.
26807
26808 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26809
26810 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26811 (movdi): Call gen_movdi_symbol_save_scc.
26812 (gen_movdi_symbol_save_scc): New insn and split.
26813
26814 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26815
26816 PR rtl-optimization/89313
26817 * function.c (matching_constraint_num): New static function.
26818 (match_asm_constraints_1): Use it. Fixup white space and comment.
26819 Don't replace inputs with non-matching constraints which conflict
26820 with early clobber outputs.
26821
26822 2019-03-27 Jeff Law <law@redhat.com>
26823
26824 PR rtl-optimization/87761
26825 PR rtl-optimization/89826
26826 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
26827 slightly later.
26828 (pass_cprop_hardreg::execute): Call df_analyze after adding the
26829 note problem to get REG_DEAD/REG_UNUSED notes updated.
26830
26831 2019-03-27 Richard Biener <rguenther@suse.de>
26832
26833 PR tree-optimization/89463
26834 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
26835 queue edges to remove.
26836 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
26837 dead stmts. Delay edge removal until PHIs are removed to
26838 make debug-stmt creation not confused by seemingly degenerate
26839 PHIs.
26840
26841 2019-03-27 Alan Modra <amodra@gmail.com>
26842
26843 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
26844 throughout file.
26845 * config/rs6000/darwin.h: Likewise.
26846 * config/rs6000/rs6000.c: Likewise.
26847
26848 2019-03-27 Alan Modra <amodra@gmail.com>
26849
26850 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
26851 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
26852
26853 2019-03-26 Andrew Waterman <andrew@sifive.com>
26854 Jim Wilson <jimw@sifive.com>
26855
26856 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
26857 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
26858 (generic_idivdi, generic_fmul_single, generic_fmul_double)
26859 (generic_fdiv, generic_fsqrt): Add check for generic tune.
26860 (generic_alu): Add auipc to type list.
26861 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
26862 (riscv_microarchitecture): Declare.
26863 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
26864 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
26865 field.
26866 (riscv_microarchitecture): New.
26867 (sifive_7_tune_info): New.
26868 (riscv_cpu_info_table): Add microarchitecture value for rocket and
26869 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
26870 entries.
26871 (riscv_store_data_bypass_p): New.
26872 (riscv_option_override): Set riscv_microarchitecture from
26873 cpu->microarchitecture.
26874 * config/riscv/riscv.md: Include sifive-7.md.
26875 (type): Add auipc.
26876 (tune): New.
26877 (auipc<mode>): Change type to auipc.
26878 (restore_stack_nonlocal): New.
26879 * config/riscv/sifive-7.md: New.
26880 * doc/invoke.texi (RISC-V Options): Update mtune docs.
26881
26882 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
26883
26884 PR target/89827
26885 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
26886 Also process XEXP (src, 0) of a shift insn.
26887
26888 2019-03-26 Richard Biener <rguenther@suse.de>
26889
26890 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
26891 (copy_debug_stmt): Likewise.
26892 (expand_call_inline): Likewise.
26893 (copy_bb): Avoid redundant lookup & set of gimple_block.
26894 * gimple-low.c (lower_gimple_return): Likewise.
26895 (lower_builtin_setjmp): Likewise.
26896
26897 2019-03-26 Jakub Jelinek <jakub@redhat.com>
26898
26899 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
26900 is constant 0, turn into static const data member initialized to false.
26901 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
26902 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
26903
26904 2019-03-26 Jason Merrill <jason@redhat.com>
26905 Jakub Jelinek <jakub@redhat.com>
26906
26907 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
26908 method.
26909 (mem_alloc_description::release_object_overhead): Fix comment typos.
26910 * hash-table.h (hash_table::~hash_table): Call
26911 release_instance_overhead only if m_entries is non-NULL, otherwise
26912 call unregister_descriptor.
26913
26914 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
26915
26916 PR tree-optimization/81740
26917 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26918 In case of outer loop vectorization, check for backward dependence
26919 at the inner loop if outer loop dependence is reversed.
26920
26921 2019-03-26 Alan Modra <amodra@gmail.com>
26922
26923 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
26924 rs6000_vector_mem init. Correct wI and wJ comment.
26925
26926 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
26927
26928 PR rtl-optimization/88347
26929 PR rtl-optimization/88423
26930 * sched-deps.c (sched_analyze_insn): Take into account that for
26931 tablejumps the barrier appears after a label and a jump_table_data.
26932
26933 2019-03-25 Martin Sebor <msebor@redhat.com>
26934
26935 PR c/89812
26936 * c-common.c (check_user_alignment): Rename local. Correct maximum
26937 alignment in diagnostic. Avoid assuming argument fits in SHWI,
26938 convert it to UHWI when it fits.
26939
26940 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
26941
26942 PR debug/86964
26943 * dwarf2out.c (premark_used_variables): New function.
26944 (prune_unused_types_walk): Do not mark not premarked external
26945 variables.
26946 (prune_unused_types): Call premark_used_variables.
26947
26948 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
26949
26950 PR rtl-optimization/89676
26951 * lra-constraints.c (curr_insn_transform): Do match reload for
26952 early clobbers when the match was successful only for different
26953 registers.
26954
26955 2019-03-25 Martin Sebor <msebor@redhat.com>
26956
26957 * doc/extend.texi (Common Type Attributes): Document vector_size.
26958 (Common Variable Attributes): Mention size constraint. Correct
26959 quoting and typos.
26960 (Vector Extensions): Use @dfn when defining bas type. Clarify
26961 base type and size constraints.
26962
26963 2019-03-25 Richard Biener <rguenther@suse.de>
26964
26965 PR tree-optimization/89789
26966 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
26967 changes from non-undefined back to undefined.
26968
26969 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
26970
26971 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
26972 heap string and a gc string, but since this variable is unknown to
26973 ggc the gc string might get reused and corrupted. Fixed by always
26974 using a heap string.
26975
26976 2019-03-25 Richard Biener <rguenther@suse.de>
26977
26978 PR tree-optimization/89779
26979 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
26980 to remove IV defs, delay actual removal.
26981 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
26982 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
26983 very end, properly also reset loop control IV information.
26984
26985 2019-03-25 Richard Biener <rguenther@suse.de>
26986
26987 PR tree-optimization/89802
26988 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
26989 move EH data to folded stmt.
26990
26991 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26992
26993 * config/s390/s390-builtin-types.def: Remove few unused types and
26994 fix sort order for others.
26995
26996 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
26997
26998 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
26999 expected and found types with -mdebug during builtin matching.
27000
27001 2019-03-25 Richard Biener <rguenther@suse.de>
27002
27003 PR middle-end/89790
27004 * fold-const.c (operand_equal_p): Revert last change with
27005 updated comment.
27006
27007 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27008
27009 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27010 notes for the result of the __tls_get_addr calls.
27011 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27012
27013 2019-03-24 Jeff Law <law@redhat.com>
27014
27015 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27016
27017 PR rtl-optimization/87761
27018 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27019 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27020 as needed.
27021 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27022 rescans. Reprocess blocks as needed, calling df_analyze before
27023 reprocessing. Always call df_analyze before fixing up debug bind
27024 insns.
27025
27026 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27027
27028 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27029 big endian.
27030
27031 2019-03-22 Andrew Pinski <apinski@marvell.com>
27032
27033 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27034 attrribute for uxtw.
27035
27036 2019-03-26 Jeff Law <law@redhat.com>
27037
27038 PR rtl-optimization/87761
27039 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27040 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27041 (mips_split_move): Accept new INSN argument. Try to forward SRC
27042 into the next instruction.
27043 (mips_split_move_insn): Pass INSN through to mips_split_move.
27044
27045 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
27046
27047 PR rtl-optimization/89676
27048 * lra-constraints.c (curr_insn_transform): Do match reload for
27049 early clobbers even if the match was successful.
27050
27051 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27052
27053 PR c++/87481
27054 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
27055
27056 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
27057
27058 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
27059
27060 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27061
27062 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
27063 <avx512>_fmsub_<mode>_mask3<round_name>,
27064 <avx512>_fnmadd_<mode>_mask3<round_name>,
27065 <avx512>_fnmsub_<mode>_mask3<round_name>,
27066 avx512f_vmfmadd_<mode>_mask3<round_name>,
27067 avx512f_vmfmsub_<mode>_mask3<round_name>,
27068 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
27069 instead of register_operand and %v instead of v for match_operand 1.
27070 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
27071 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
27072 <round_nimm_predicate> instead of register_operand and %v instead of v
27073 for match_operand 1.
27074
27075 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
27076 <avx512>_fmadd_<mode>_mask3<round_name>,
27077 <avx512>_fmsub_<mode>_mask<round_name>,
27078 <avx512>_fmsub_<mode>_mask3<round_name>,
27079 <avx512>_fnmadd_<mode>_mask<round_name>,
27080 <avx512>_fnmadd_<mode>_mask3<round_name>,
27081 <avx512>_fnmsub_<mode>_mask<round_name>,
27082 <avx512>_fnmsub_<mode>_mask3<round_name>,
27083 <avx512>_fmaddsub_<mode>_mask<round_name>,
27084 <avx512>_fmaddsub_<mode>_mask3<round_name>,
27085 <avx512>_fmsubadd_<mode>_mask<round_name>,
27086 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
27087 <round_nimm_predicate> instead of nonimmediate_operand.
27088 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
27089 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
27090 Use register_operand instead of <round_nimm_predicate> for the
27091 operand that needs to match output.
27092 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
27093 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
27094 Likewise. Formatting fixes.
27095
27096 PR target/89784
27097 * config/i386/i386.c (enum ix86_builtins): Remove
27098 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
27099 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
27100 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
27101 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
27102 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
27103 __builtin_ia32_vfmsubss3_mask3): New builtins.
27104 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
27105 avx512f_vmfmadd_<mode>_mask3<round_name>,
27106 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
27107 *avx512f_vmfmsub_<mode>_mask<round_name>,
27108 avx512f_vmfmsub_<mode>_mask3<round_name>,
27109 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
27110 *avx512f_vmfnmadd_<mode>_mask<round_name>,
27111 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
27112 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
27113 *avx512f_vmfnmsub_<mode>_mask<round_name>,
27114 avx512f_vmfnmsub_<mode>_mask3<round_name>,
27115 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
27116 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
27117 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
27118 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
27119 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
27120 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
27121 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
27122 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
27123 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
27124 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
27125 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
27126 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
27127 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
27128 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
27129 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
27130 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
27131 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
27132 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
27133 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
27134 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
27135 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
27136 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
27137
27138 2019-03-21 Martin Sebor <msebor@redhat.com>
27139
27140 PR tree-optimization/89350
27141 * builtins.c (compute_objsize): Also ignore offsets whose upper
27142 bound is negative.
27143 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
27144 (builtin_memref::builtin_memref): Initialize new member.
27145 Allow EXPR to be null.
27146 (builtin_memref::extend_offset_range): Replace local with a member.
27147 Avoid assuming pointer offsets are unsigned.
27148 (builtin_memref::set_base_and_offset): Determine base object
27149 before computing offset range.
27150 (builtin_access::builtin_access): Handle memset.
27151 (builtin_access::generic_overlap): Replace local with a member.
27152 (builtin_access::strcat_overlap): Same.
27153 (builtin_access::overlap): Same.
27154 (maybe_diag_overlap): Same.
27155 (maybe_diag_access_bounds): Same.
27156 (wrestrict_dom_walker::check_call): Handle memset.
27157 (check_bounds_or_overlap): Same.
27158
27159 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
27160 Jakub Jelinek <jakub@redhat.com>
27161
27162 PR lto/89692
27163 * tree.c (fld_type_variant, fld_incomplete_type_of,
27164 fld_process_array_type): Call fld->pset.add and don't call
27165 add_tree_to_fld_list if it returns true.
27166 (free_lang_data_in_type): Similarly with self-recursive call. Purge
27167 non-marked types from TYPE_NEXT_VARIANT list.
27168 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
27169
27170 2019-03-21 Jakub Jelinek <jakub@redhat.com>
27171
27172 * hash-table.h (hash_table): Add Lazy template parameter defaulted
27173 to false, if true, don't alloc_entries during construction, but defer
27174 it to the first method that needs m_entries allocated.
27175 (hash_table::hash_table, hash_table::~hash_table,
27176 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
27177 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
27178 hash_table::clear_slot, hash_table::traverse_noresize,
27179 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
27180 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
27181 false.
27182 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
27183 NO_INSERT instead of find_with_hash.
27184 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
27185 hash_set::m_table): Add Lazy to template params of hash_table.
27186 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27187 * attribs.c (test_attribute_exclusions): Likewise.
27188 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27189 hash_set. Add tests for hash_set with Lazy = true.
27190
27191 2019-03-21 Richard Biener <rguenther@suse.de>
27192
27193 PR tree-optimization/89779
27194 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27195 checks with respect to released SSA names now having error_mark_node
27196 type.
27197 * fold-const.c (operand_equal_p): Likewise.
27198
27199 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27200
27201 PR target/89775
27202 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27203 available to ...
27204 (s390_optimize_register_info): Use global_not_special_regno_p to
27205 check for global regs.
27206
27207 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27208
27209 PR target/89752
27210 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27211 update this_alternative nor this_alternative_set.
27212
27213 2019-03-19 Jim Wilson <jimw@sifive.com>
27214
27215 PR target/89411
27216 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27217 align, size, offset. Use them to handle a BLKmode reference. Update
27218 comment.
27219 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27220
27221 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27222
27223 PR rtl-optimization/89768
27224 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27225 instead of GEN_INT.
27226 (unroll_loop_runtime_iterations): Likewise.
27227
27228 2019-03-19 Martin Sebor <msebor@redhat.com>
27229
27230 PR tree-optimization/89644
27231 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27232 rather than endptr as an indicator of nul-termination.
27233
27234 PR tree-optimization/89644
27235 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27236 arrays in determining sequence sizes in strncpy and stpncpy.
27237
27238 2019-03-19 Martin Liska <mliska@suse.cz>
27239
27240 PR middle-end/89737
27241 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27242 unlikely_edges if there's an edge that belongs to both these sets.
27243
27244 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27245
27246 PR target/89746
27247 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27248 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27249 go via a stack temporary.
27250
27251 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27252
27253 PR target/89378
27254 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27255 instead of gen_rtx_SUBREG.
27256 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27257
27258 2019-03-19 Richard Biener <rguenther@suse.de>
27259
27260 PR debug/88389
27261 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27262
27263 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27264
27265 PR lto/87809
27266 PR lto/89335
27267 * tree.c (free_lang_data_in_decl): Do not free context of C++
27268 destrutors.
27269
27270 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27271
27272 PR target/89506
27273 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27274 subs for the first alternative except when operands[3] is 1.
27275
27276 PR target/89752
27277 * gimplify.c (gimplify_asm_expr): For output argument with
27278 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27279 diagnose error.
27280
27281 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27282
27283 PR rtl-optimization/89753
27284 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27285 explicit unrolling factor even more robust.
27286
27287 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27288
27289 PR target/89726
27290 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27291 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27292 signed zeros, do another copysign after the compensation.
27293
27294 2019-03-18 Martin Sebor <msebor@redhat.com>
27295
27296 PR tree-optimization/89720
27297 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27298 more conservatively, the same as anti-range.
27299
27300 2019-03-18 Richard Biener <rguenther@suse.de>
27301
27302 PR middle-end/88945
27303 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27304 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27305 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27306 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27307
27308 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27309
27310 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27311 Extend queue to 1024 entries.
27312 Add "consumed" field.
27313 (gomp_print_output): Remove print_index parameter.
27314 Add final parameter.
27315 Change limit to unsigned.
27316 Use consumed field to implement circular buffer.
27317 Detect interrupted print in final pass.
27318 Flush output at the end.
27319 (run): Update gomp_print_output usage.
27320 (main): Initialize kernargs->output_data.consumed.
27321
27322 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27323
27324 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27325 calculation of the minimum number of scalar iterations for
27326 fully-predicated loops.
27327
27328 2019-03-18 Martin Jambor <mjambor@suse.cz>
27329
27330 PR tree-optimization/89546
27331 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27332 any propagation to its children took place.
27333
27334 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27335
27336 PR target/89627
27337 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27338 parameter, and make use of it.
27339 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27340
27341 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27342
27343 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27344 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27345 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27346 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27347 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27348 match what the ops is doing.
27349 (push_multi_fp_blink): Likewise.
27350 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27351 compiling for size and elf target.
27352 (arc_save_callee_enter): Adjust note to match what enter/leave
27353 operation does.
27354
27355 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27356
27357 * config/arc/arc.md (tst_movb): Fix constraint.
27358
27359 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27360
27361 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27362
27363 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27364
27365 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27366 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27367 reg_alloc_order references.
27368 (size_alloc_order): Define.
27369 (arc_adjust_reg_alloc_order): New function.
27370 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27371 order.
27372 (ADJUST_REG_ALLOC_ORDER): Define.
27373 (HONOR_REG_ALLOC_ORDER): Likewise.
27374
27375 2019-03-18 Richard Biener <rguenther@suse.de>
27376
27377 PR target/87561
27378 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27379 loads and stores a bit more.
27380
27381 2019-03-18 Richard Biener <rguenther@suse.de>
27382
27383 PR target/87561
27384 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27385 load pessimization to stores as well.
27386
27387 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27388
27389 PR middle-end/86979
27390 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27391 successor, use NULL as its av set.
27392
27393 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27394
27395 PR rtl-optimization/89721
27396 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27397
27398 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27399
27400 PR target/87532
27401 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27402 When handling vec_extract, use modular arithmetic to allow
27403 constant selectors greater than vector length.
27404 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27405 V1TImode vectors to have constant selector values greater than 0.
27406 Use modular arithmetic to compute vector index.
27407 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27408 index for in-memory vectors. Correct code generation for
27409 in-register vectors.
27410 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27411 compute index.
27412
27413 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27414
27415 PR c++/88534
27416 PR c++/88537
27417 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27418 VAR_DECL args.
27419
27420 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27421
27422 PR c++/89709
27423 * tree.c (inchash::add_expr): Strip any location wrappers.
27424 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27425 after hash verification.
27426
27427 PR debug/89704
27428 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27429 SIGN_EXTEND and ZERO_EXTEND.
27430
27431 2019-03-14 Jason Merrill <jason@redhat.com>
27432 Jakub Jelinek <jakub@redhat.com>
27433
27434 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27435 than if is_empty (*slot).
27436 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27437 existing elt and for elt removal.
27438 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27439 of already removed elt.
27440
27441 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 PR target/89650
27444 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27445 REG_EH_REGION note.
27446
27447 2019-03-14 Martin Liska <mliska@suse.cz>
27448
27449 PR other/89712
27450 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27451
27452 2019-03-14 Richard Biener <rguenther@suse.de>
27453
27454 PR target/89711
27455 * config/i386/i386.c (make_resolver_func): Properly set
27456 DECL_CONTEXT on the RESULT_DECL.
27457 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27458
27459 2019-03-14 Richard Biener <rguenther@suse.de>
27460
27461 * gimple-pretty-print.c: Include cfgloop.h.
27462 (dump_gimple_phi): Adjust.
27463 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27464 (pp_cfg_jump): Adjust.
27465 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27466 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27467 (lower_phi_internal_fn): Remove.
27468 (verify_gimple_call): Remove IFN_PHI special-casing.
27469 (dump_function_to_file): Dump IL state.
27470 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27471 done to deal with PHI nodes being present in non-SSA state.
27472
27473 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27474
27475 PR ipa/89684
27476 * multiple_target.c (create_dispatcher_calls): Change
27477 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27478 In the node->iterate_referring loop, push *ref rather than ref, call
27479 ref->remove_reference () and always pass 0 to iterate_referring.
27480
27481 PR rtl-optimization/89679
27482 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27483 would contain a paradoxical SUBREG.
27484
27485 2019-03-14 Richard Biener <rguenther@suse.de>
27486
27487 PR tree-optimization/89710
27488 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27489 safe_dyn_cast.
27490
27491 2019-03-14 Martin Liska <mliska@suse.cz>
27492
27493 * coverage.c (coverage_begin_function): Stream also
27494 end_column.
27495 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27496 documentation about function declaration location.
27497 * gcov-dump.c (tag_function): Print whole range
27498 of function declaration.
27499 * gcov.c (struct function_info): Add end_column field.
27500 (function_info::function_info): Initialize it.
27501 (output_json_intermediate_file): Output {start,end}_column
27502 fields.
27503 (read_graph_file): Read end_column.
27504
27505 2019-03-14 Richard Biener <rguenther@suse.de>
27506
27507 PR middle-end/89698
27508 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27509 that the access types are similar.
27510
27511 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27512
27513 PR tree-optimization/89703
27514 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27515 aren't compatible also with builtin_decl_explicit. Check pure
27516 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27517 and BUILT_IN_STPNCPY{,_CHK}.
27518
27519 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27520
27521 PR target/89523
27522 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27523 addr32 prefix to VSIB address for X32.
27524 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27525 "%M2" to opcode.
27526 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27527 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27528 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27529 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27530 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27531 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27532 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27533 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27534 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27535 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27536 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27537 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27538 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27539 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27540 (*avx512f_scatterdi<mode>): Likewise.
27541
27542 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27543
27544 PR target/85860
27545 * lra-constraints.c (inherit_in_ebb): Update
27546 potential_reload_hard_regs along with live_hard_regs.
27547
27548 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27549
27550 PR debug/89498
27551 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27552 DWARF_OFFSET_SIZE.
27553 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27554
27555 2019-03-13 Martin Sebor <msebor@redhat.com>
27556
27557 PR tree-optimization/89662
27558 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27559 has a size.
27560
27561 2019-03-13 Richard Biener <rguenther@suse.de>
27562
27563 PR middle-end/89677
27564 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27565 throw FP expressions at tree-affine.
27566
27567 2019-03-14 Richard Biener <rguenther@suse.de>
27568
27569 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27570 dump negative integer constants using _Literal (type) -num.
27571
27572 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27573
27574 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27575 nonlocal_value member.
27576
27577 PR middle-end/88588
27578 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27579 (ipa_simd_modify_function_body): Handle PHIs.
27580
27581 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27582
27583 * config/s390/s390.c (s390_option_override_internal): Use more
27584 aggressive inlining parameters.
27585
27586 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27587
27588 * config/s390/3906.md: New file.
27589 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27590 (LONGRUNNING_THRESHOLD): Remove.
27591 (MAX_SCHED_MIX_SCORE): Decrease.
27592 (MAX_SCHED_MIX_DISTANCE): Decrease.
27593 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27594 (struct s390_sched_state): New struct to hold scheduling state.
27595 (S390_SCHED_STATE_NORMAL): Remove.
27596 (S390_SCHED_STATE_CRACKED): Remove.
27597 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27598 (s390_get_sched_attrmask): Use new attribute.
27599 (s390_get_unit_mask): Use new units.
27600 (s390_is_fpd): New function.
27601 (s390_is_fxd): New function.
27602 (s390_is_longrunning): New function.
27603 (s390_sched_score): Use new functions.
27604 (s390_sched_reorder): Likewise.
27605 (s390_sched_variable_issue): Rework and use new functions.
27606 (s390_sched_init): Use new functions.
27607 * config/s390/s390.h (s390_tune_attr): Add z14.
27608 * config/s390/s390.md: Add z14.
27609
27610 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27611
27612 * config/s390/2964.md: Update pipeline description.
27613 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27614 (LONGRUNNING_THRESHOLD): Remove.
27615 (LATENCY_FACTOR): Remove.
27616 (s390_get_unit_mask): Add unit.
27617 (s390_sched_score): Use fxd/fpd.
27618 (s390_sched_variable_issue): Use fxd/fpd.
27619
27620 2019-03-12 Martin Liska <mliska@suse.cz>
27621
27622 * config/i386/i386.c: Reword an error message.
27623
27624 2019-03-12 Martin Jambor <mjambor@suse.cz>
27625
27626 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27627 terminate with newline.
27628
27629 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27630
27631 PR target/52726
27632 * config/s390/s390.md (tabort): Use %wd instead of
27633 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27634 letters and periods.
27635 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27636 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27637 's with %< and %>.
27638
27639 PR middle-end/89663
27640 * builtins.c (expand_builtin_int_roundingfn,
27641 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27642 gcc_unreachable if validate_arglist fails.
27643
27644 2019-03-12 Richard Biener <rguenther@suse.de>
27645
27646 PR tree-optimization/89664
27647 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27648 free the occurance tree after the early out.
27649
27650 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27651
27652 PR middle-end/89655
27653 PR bootstrap/89656
27654 * vr-values.c (vr_values::update_value_range): If
27655 old_vr->varying_p (), don't update it, make new_vr also VARYING
27656 and return false.
27657
27658 2019-03-11 Martin Liska <mliska@suse.cz>
27659
27660 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27661 Fix double string quoting.
27662
27663 2019-03-11 Martin Liska <mliska@suse.cz>
27664
27665 * collect-utils.c (collect_wait): Wrap apostrophes
27666 in gcc internal format with %'.
27667 * collect2.c (main): Likewise.
27668 (scan_prog_file): Likewise.
27669 (scan_libraries): Likewise.
27670 * config/i386/i386.c (ix86_expand_call): Likewise.
27671 (ix86_handle_interrupt_attribute): Likewise.
27672 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27673 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27674 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27675 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27676 * symtab.c (symtab_node::verify_base): Likewise.
27677 * tree-cfg.c (verify_gimple_label): Likewise.
27678 * tree.c (verify_type_variant): Likewise.
27679
27680 2019-03-11 Martin Liska <mliska@suse.cz>
27681
27682 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27683 in a string format message and fix GNU coding style.
27684 (expand_builtin_set_thread_pointer): Likewise.
27685 * common/config/aarch64/aarch64-common.c
27686 (aarch64_rewrite_selected_cpu): Likewise.
27687 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27688 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27689 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27690 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27691 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27692 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27693 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27694 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27695 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27696 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27697 Likewise.
27698 * common/config/riscv/riscv-common.c
27699 (riscv_subset_list::parsing_subset_version): Likewise.
27700 (riscv_subset_list::parse_std_ext): Likewise.
27701 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27702 (riscv_subset_list::parse): Likewise.
27703 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27704 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27705 (aarch64_override_options_internal): Likewise.
27706 (aarch64_validate_mcpu): Likewise.
27707 (aarch64_validate_march): Likewise.
27708 (aarch64_validate_mtune): Likewise.
27709 (aarch64_override_options): Likewise.
27710 * config/alpha/alpha.c (alpha_option_override): Likewise.
27711 * config/arc/arc.c (arc_init): Likewise.
27712 (parse_mrgf_banked_regs_option): Likewise.
27713 (arc_override_options): Likewise.
27714 (arc_expand_builtin_aligned): Likewise.
27715 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27716 (arm_expand_builtin): Likewise.
27717 * config/arm/arm.c (arm_option_check_internal): Likewise.
27718 (arm_configure_build_target): Likewise.
27719 (arm_option_override): Likewise.
27720 (arm_options_perform_arch_sanity_checks): Likewise.
27721 (arm_handle_cmse_nonsecure_entry): Likewise.
27722 (arm_handle_cmse_nonsecure_call): Likewise.
27723 (arm_tls_referenced_p): Likewise.
27724 (thumb1_expand_prologue): Likewise.
27725 * config/avr/avr.c (avr_option_override): Likewise.
27726 * config/bfin/bfin.c (bfin_option_override): Likewise.
27727 * config/c6x/c6x.c (c6x_option_override): Likewise.
27728 * config/cr16/cr16.c (cr16_override_options): Likewise.
27729 * config/cris/cris.c (cris_option_override): Likewise.
27730 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27731 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27732 * config/darwin.c (darwin_override_options): Likewise.
27733 * config/frv/frv.c (frv_expand_builtin): Likewise.
27734 * config/h8300/h8300.c (h8300_option_override): Likewise.
27735 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27736 (ix86_option_override_internal): Likewise.
27737 (warn_once_call_ms2sysv_xlogues): Likewise.
27738 (ix86_expand_prologue): Likewise.
27739 (split_stack_prologue_scratch_regno): Likewise.
27740 (ix86_warn_parameter_passing_abi): Likewise.
27741 * config/ia64/ia64.c (fix_range): Likewise.
27742 * config/m68k/m68k.c (m68k_option_override): Likewise.
27743 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27744 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27745 (mips_set_compression_mode): Likewise.
27746 * config/mmix/mmix.c (mmix_option_override): Likewise.
27747 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27748 * config/msp430/msp430.c (msp430_option_override): Likewise.
27749 * config/nds32/nds32.c (nds32_option_override): Likewise.
27750 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27751 (nios2_option_override): Likewise.
27752 (nios2_expand_custom_builtin): Likewise.
27753 * config/nvptx/mkoffload.c (main): Likewise.
27754 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27755 * config/pa/pa.c (fix_range): Likewise.
27756 (pa_option_override): Likewise.
27757 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27758 (riscv_option_override): Likewise.
27759 * config/rl78/rl78.c (rl78_option_override): Likewise.
27760 * config/rs6000/aix61.h: Likewise.
27761 * config/rs6000/aix71.h: Likewise.
27762 * config/rs6000/aix72.h: Likewise.
27763 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27764 * config/rs6000/freebsd64.h: Likewise.
27765 * config/rs6000/linux64.h: Likewise.
27766 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27767 (rs6000_expand_zeroop_builtin): Likewise.
27768 (rs6000_expand_mtfsb_builtin): Likewise.
27769 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27770 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27771 (rs6000_invalid_builtin): Likewise.
27772 (rs6000_expand_split_stack_prologue): Likewise.
27773 * config/rs6000/rtems.h: Likewise.
27774 * config/rx/rx.c (valid_psw_flag): Likewise.
27775 (rx_expand_builtin): Likewise.
27776 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27777 * config/s390/s390.c (s390_expand_builtin): Likewise.
27778 (s390_function_profiler): Likewise.
27779 (s390_option_override_internal): Likewise.
27780 (s390_option_override): Likewise.
27781 * config/sh/sh.c (sh_option_override): Likewise.
27782 (sh_builtin_saveregs): Likewise.
27783 (sh_fix_range): Likewise.
27784 * config/sh/vxworks.h: Likewise.
27785 * config/sparc/sparc.c (sparc_option_override): Likewise.
27786 * config/spu/spu.c (spu_option_override): Likewise.
27787 (fix_range): Likewise.
27788 * config/visium/visium.c (visium_option_override): Likewise.
27789 (visium_handle_interrupt_attr): Likewise.
27790 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27791 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27792 (dbg_cnt_process_opt): Likewise.
27793 * dwarf2out.c (output_dwarf_version): Likewise.
27794 * except.c (expand_eh_return): Likewise.
27795 * gcc.c (defined): Likewise.
27796 (driver_handle_option): Likewise.
27797 (process_command): Likewise.
27798 (compare_files): Likewise.
27799 (driver::prepare_infiles): Likewise.
27800 (driver::do_spec_on_infiles): Likewise.
27801 (driver::maybe_run_linker): Likewise.
27802 * omp-offload.c (oacc_parse_default_dims): Likewise.
27803 * opts-global.c (handle_common_deferred_options): Likewise.
27804 * opts.c (parse_sanitizer_options): Likewise.
27805 (common_handle_option): Likewise.
27806 (enable_warning_as_error): Likewise.
27807 * passes.c (enable_disable_pass): Likewise.
27808 * plugin.c (parse_plugin_arg_opt): Likewise.
27809 (default_plugin_dir_name): Likewise.
27810 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27811 (default_pch_valid_p): Likewise.
27812 * toplev.c (init_asm_output): Likewise.
27813 (process_options): Likewise.
27814 (toplev::run_self_tests): Likewise.
27815 * tree-cfg.c (verify_gimple_call): Likewise.
27816 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
27817 (tree_inlinable_function_p): Likewise.
27818 * var-tracking.c (vt_find_locations): Likewise.
27819
27820 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
27821
27822 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
27823 only on the else branch.
27824
27825 2019-03-11 Martin Liska <mliska@suse.cz>
27826
27827 * gcov.c (output_intermediate_json_line): Print function
27828 name of each line.
27829 (output_json_intermediate_file): Add new argument.
27830 * doc/gcov.texi: Document the change.
27831
27832 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
27833
27834 PR rtl-optimization/89588
27835 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27836 explicit unrolling factor more robust.
27837
27838 2019-03-11 Richard Biener <rguenther@suse.de>
27839
27840 PR tree-optimization/89649
27841 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
27842 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
27843 on the prolog and epilog loops.
27844 (vect_loop_versioning): Return copy of loop.
27845 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
27846 on the non-vectorized version of the loop.
27847
27848 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
27849
27850 PR target/68924
27851 * config/i386/sse.md (*vec_extractv2di_0_sse):
27852 Add (=r,x) alternative and corresponding splitter.
27853
27854 2019-03-10 Martin Jambor <mjambor@suse.cz>
27855
27856 PR tree-optimization/85762
27857 PR tree-optimization/87008
27858 PR tree-optimization/85459
27859 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
27860 it points to if there is a type changing MEM_REF. Adjust all callers.
27861 (build_accesses_from_assign): Disable total scalarization if
27862 contains_vce_or_bfcref_p returns true through the new parameter, for
27863 both rhs and lhs.
27864
27865 2019-03-09 Jakub Jelinek <jakub@redhat.com>
27866
27867 PR c/88568
27868 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
27869 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
27870
27871 PR target/79645
27872 * common.opt (fdiagnostics-show-labels,
27873 fdiagnostics-show-line-numbers, fdiagnostics-format=,
27874 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
27875 gas-locview-support, ginline-points, ginternal-reset-location-views):
27876 Terminate description text with a dot.
27877 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
27878 * config/mcore/mcore.opt (m210, m340): Likewise.
27879 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
27880 mnops=): Start description text with a capital letter.
27881 * config/arc/arc.opt (msize-level=): Likewise.
27882 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
27883 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
27884 mnewlib): Likewise.
27885 * config/ft32/ft32.opt (msim): Likewise.
27886 (mft32b, mcompress): Likewise. Terminate description text with a dot.
27887 (mnodiv, mnopm): Terminate description text with a dot.
27888 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
27889 a colon.
27890 * config/i386/i386.opt (prefer_vector_width, instrument_return):
27891 Likewise.
27892 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
27893 text.
27894
27895 PR rtl-optimization/89634
27896 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
27897 are modified in BB_END (e->src) instruction.
27898
27899 2019-03-08 David Malcolm <dmalcolm@redhat.com>
27900
27901 PR target/79926
27902 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
27903 messages more amenable to translation, and improve wording.
27904
27905 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
27906
27907 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
27908 ud- and du-chains between phases.
27909
27910 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
27911
27912 PR debug/89631
27913 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
27914 instead of POLY_INT_CST.
27915
27916 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
27917
27918 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
27919 requirement.
27920
27921 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
27922
27923 PR target/68924
27924 PR target/78782
27925 PR target/87558
27926 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
27927 (_mm_storeu_si64): Ditto.
27928
27929 2019-03-08 Martin Liska <mliska@suse.cz>
27930
27931 PR target/86952
27932 * config/i386/i386.c (ix86_option_override_internal): Disable
27933 jump tables when retpolines are used.
27934
27935 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
27936
27937 PR go/63560
27938 * ipa-split.c (execute_split_functions): Do not split
27939 'noinline' or 'section' function.
27940
27941 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27942
27943 PR target/79846
27944 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
27945 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
27946 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
27947
27948 PR ipa/80000
27949 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27950 from diagnostics. Formatting fixes.
27951
27952 PR target/85665
27953 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
27954 warn_odr diagnostics.
27955
27956 PR other/80058
27957 * lra-constraints.c (process_alt_operands): Avoid one space before
27958 " at the end of line and another after " on another line in a string
27959 literal.
27960 * attribs.c (handle_dll_attribute): Likewise.
27961 * config/avr/avr-devices.c (avr_texinfo): Likewise.
27962
27963 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
27964 warning_at or inform messages in G_() if there is no ?:.
27965
27966 PR tree-optimization/89550
27967 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
27968 returned true. Formatting fixes.
27969 (expand_builtin_strnlen): Formatting fixes.
27970 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
27971 if warning_at returned true.
27972 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
27973
27974 2019-03-08 Richard Biener <rguenther@suse.de>
27975
27976 PR middle-end/89578
27977 * cfgloop.h (struct loop): Add owned_clique field.
27978 * cfgloopmanip.c (copy_loop_info): Copy it.
27979 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
27980 cliques.
27981 * tree-inline.c (copy_loops): Remap owned_clique.
27982 * lto-streamer-in.c (input_cfg): Stream owned_clique.
27983 * lto-streamer-out.c (output_cfg): Likewise.
27984
27985 2019-03-08 Jakub Jelinek <jakub@redhat.com>
27986
27987 PR target/80190
27988 * config/darwin.c: Include intl.h.
27989 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
27990 composing the message out of two separate parts.
27991
27992 2019-03-07 Jakub Jelinek <jakub@redhat.com>
27993
27994 PR target/80003
27995 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
27996 doesn't start with a capital letter and doesn't end with a dot.
27997 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
27998 with a capital letter.
27999 (ix86_mangle_function_version_assembler_name): Likewise.
28000 (ix86_generate_version_dispatcher_body): Likewise.
28001 (fold_builtin_cpu): Likewise.
28002 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28003 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28004 translators, wrap full type name in %qs.
28005
28006 PR translation/79999
28007 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28008 depend clause with source (or sink) modifier.
28009 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28010
28011 PR target/89602
28012 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28013 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28014 (avx512f_load<mode>_mask): New define_expand.
28015 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28016 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28017 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28018 __builtin_ia32_movess_mask): New builtins.
28019 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28020 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28021 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28022 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28023
28024 2019-03-07 Martin Jambor <mjambor@suse.cz>
28025
28026 PR lto/87525
28027 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28028 for extern inline functions.
28029
28030 2019-03-07 Martin Jambor <mjambor@suse.cz>
28031
28032 PR ipa/88235
28033 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28034 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28035 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28036 have multiple callees. At the end check if declarations match as
28037 opposed to cgraph_nodes.
28038
28039 2019-03-07 Martin Liska <mliska@suse.cz>
28040
28041 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28042 which is equivalent to searching for this in clones chain.
28043 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28044 names with a neighbour and special case first node in a chain.
28045
28046 2019-01-25 Jason Merrill <jason@redhat.com>
28047
28048 PR c++/80916 - spurious "static but not defined" warning.
28049 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
28050 for an internal symbol with DECL_EXTERNAL.
28051
28052 2019-04-07 Richard Biener <rguenther@suse.de>
28053
28054 PR middle-end/89618
28055 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
28056 * tree-inline.c (copy_loops): Simplify.
28057
28058 2019-03-07 Martin Liska <mliska@suse.cz>
28059
28060 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
28061
28062 2019-03-07 Richard Biener <rguenther@suse.de>
28063
28064 PR tree-optimization/89595
28065 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
28066 stmt iterator as reference, take boolean output parameter to
28067 indicate whether the stmt was removed and thus the iterator
28068 already advanced.
28069 (dom_opt_dom_walker::before_dom_children): Re-iterate over
28070 stmts created by folding.
28071
28072 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28073
28074 PR c++/89585
28075 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
28076 at toplevel.
28077
28078 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
28079
28080 PR rtl-optimization/88845
28081 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
28082 LRA.
28083 * lra.c (remove_scratches_1): New function.
28084 (remove_scratches): Use it.
28085 (lra_emit_move): Likewise.
28086
28087 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
28088
28089 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
28090 unaligned_access variable.
28091 * config/arc/arc.c (arc_override_options): Set unaligned access
28092 default on for HS CPUs.
28093 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
28094
28095 2019-03-06 Martin Liska <mliska@suse.cz>
28096
28097 PR gcov-profile/89577
28098 * doc/gcov.texi: Prefer to use --coverage.
28099 * doc/sourcebuild.texi: Likewise.
28100
28101 2019-03-02 Jason Merrill <jason@redhat.com>
28102
28103 PR c++/86485 - -Wmaybe-unused with empty class ?:
28104 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
28105
28106 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28107
28108 PR target/89587
28109 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
28110 if_multiarch.
28111
28112 PR middle-end/89590
28113 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
28114 exactly one argument.
28115
28116 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28117 Richard Sandiford <richard.sandiford@arm.com>
28118
28119 PR tree-optimization/89570
28120 * match.pd (vec_cond into cond_op simplification): Don't use
28121 get_conditional_internal_fn, use as_internal_fn (cond_op).
28122
28123 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
28124
28125 PR target/89222
28126 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
28127 to decide when to split off a non-zero offset from a symbol.
28128 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
28129 in function symbols.
28130
28131 2019-03-05 Richard Biener <rguenther@suse.de>
28132
28133 PR tree-optimization/89594
28134 * tree-if-conv.c (pass_if_conversion::execute): Handle
28135 case where .LOOP_VECTORIZED_FUNCTION was removed.
28136
28137 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28138
28139 PR bootstrap/89560
28140 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
28141 instead alloca it only when needed with the needed size.
28142
28143 PR tree-optimization/89570
28144 * match.pd (vec_cond into cond_op simplification): Guard with
28145 vectorized_internal_fn_supported_p test and #if GIMPLE.
28146
28147 PR tree-optimization/89566
28148 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
28149 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
28150 Punt if get_user_idx_format succeeds, but idx_format argument is
28151 not provided or doesn't have pointer type, or if idx_args is above
28152 number of provided arguments.
28153
28154 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
28155
28156 PR tree-optimization/89437
28157 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
28158
28159 2019-03-04 Richard Biener <rguenther@suse.de>
28160
28161 PR middle-end/89572
28162 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
28163 safe_dyn_cast.
28164
28165 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
28166
28167 PR tree-optimization/89487
28168 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
28169 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
28170 (distribute_loop): Don't do runtime alias check if there is non-
28171 addressable data reference.
28172 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
28173 is a register variable.
28174
28175 2019-03-02 Jakub Jelinek <jakub@redhat.com>
28176
28177 PR target/89506
28178 * config/arm/arm.md (cmpsi2_addneg): Use
28179 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
28180 If operands[2] is 0 or INT_MIN, force use of subs.
28181 (*compare_scc splitter): Use gen_int_mode.
28182 (*negscc): Likewise.
28183 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
28184
28185 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28186 Monk Chiang <sh.chiang04@gmail.com>
28187
28188 * common/config/riscv/riscv-common.c: Include sstream.
28189 (riscv_subset_list::to_string): New.
28190 (riscv_arch_str): Likewise.
28191 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28192 * config.in: Regen.
28193 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28194 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28195 (riscv_emit_attribute): New.
28196 (riscv_file_start): Emit attribute if needed.
28197 (riscv_option_override): Init riscv_emit_attribute_p.
28198 * config/riscv/riscv.opt (mriscv-attribute): New option.
28199 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28200 * configure: Regen.
28201 * doc/install.texi: Document --with-riscv-attribute.
28202 * doc/invoke.texi: Document -mriscv-attribute.
28203
28204 * common/config/riscv/riscv-common.c:
28205 Include config/riscv/riscv-protos.h.
28206 (INCLUDE_STRING): Defined.
28207 (RISCV_DONT_CARE_VERSION): Defined.
28208 (riscv_subset_t): Declare.
28209 (riscv_subset_t::riscv_subset_t): New.
28210 (riscv_subset_list): Declare.
28211 (riscv_subset_list::riscv_subset_list): New.
28212 (riscv_subset_list::~riscv_subset_list): Likewise.
28213 (riscv_subset_list::parsing_subset_version): Likewise.
28214 (riscv_subset_list::parse_std_ext): Likewise.
28215 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28216 (riscv_subset_list::add): Likewise.
28217 (riscv_subset_list::lookup): Likewise.
28218 (riscv_subset_list::xlen): Likewise.
28219 (riscv_subset_list::parse): Likewise.
28220 (riscv_supported_std_ext): Likewise.
28221 (current_subset_list): Likewise.
28222 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28223 parse.
28224
28225 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28226
28227 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28228 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28229 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28230
28231 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28232
28233 PR rtl-optimization/85899
28234 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28235 fallthru edges leading to the exit block.
28236
28237 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28238
28239 PR target/89517
28240 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28241 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28242
28243 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28244
28245 PR tree-optimization/89535
28246 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28247 for each operand. Calculate the fallback choice for mask operands
28248 and pass it to vect_get_vec_def_for_operand.
28249
28250 2019-03-01 Richard Biener <rguenther@suse.de>
28251
28252 PR middle-end/89541
28253 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28254 get virtual operands.
28255 (get_expr_operands): Handle CONST_DECL like other decls.
28256
28257 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28258
28259 PR middle-end/89503
28260 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28261 on DECL_P and EXPR_P.
28262
28263 2019-03-01 Richard Biener <rguenther@suse.de>
28264
28265 PR middle-end/89497
28266 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28267 argument, defaulted to zero.
28268 * passes.c (execute_function_todo): Pass down SSA update flags
28269 to cleanup_tree_cfg.
28270 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28271 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28272 form if requested.
28273 (cleanup_tree_cfg): Get and pass down SSA update flags.
28274
28275 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28276
28277 PR bootstrap/89539
28278 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28279 early_lto_debug argument.
28280
28281 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28282
28283 PR tree-optimization/89536
28284 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28285 only whether bit #0 of the value is 0 instead of the entire value.
28286
28287 2019-02-28 Marek Polacek <polacek@redhat.com>
28288
28289 PR c++/87068 - missing diagnostic with fallthrough statement.
28290 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28291 at the end of a seq, save its location to walk_stmt_info.
28292 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28293 a switch.
28294
28295 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28296
28297 PR lto/88585
28298 * tree.c (find_atomic_core_type): Move ahead in file.
28299 (check_base_type): Correctly compare alignments of atomic types.
28300
28301 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28302
28303 PR target/89455
28304 * config/i386/i386.c (get_builtin_code_for_version): Identify
28305 Westmere from PCLMUL, instead of AES.
28306
28307 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28308
28309 PR target/89434
28310 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28311 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28312 -UINTVAL (...).
28313
28314 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28315
28316 PR target/88530
28317 * config/aarch64/aarch64-option-extensions.def: Document it.
28318 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28319 if empty hwcaps.
28320
28321 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28322
28323 PR c/89520
28324 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28325 builtins if they don't have a single scalar floating point argument.
28326 Formatting fixes.
28327
28328 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28329
28330 PR rtl-optimization/89490
28331 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28332 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28333 block section is not mergeable.
28334
28335 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28336
28337 PR target/70341
28338 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28339 old define_insn to ...
28340 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28341 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28342 Rename old define_insn to ...
28343 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28344 (thumb2_casesi_internal_pic): New define_expand. Rename old
28345 define_insn to ...
28346 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28347 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28348 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28349
28350 2019-02-27 Richard Biener <rguenther@suse.de>
28351
28352 PR debug/88878
28353 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28354
28355 2019-02-27 Richard Biener <rguenther@suse.de>
28356
28357 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28358 building.
28359
28360 2019-02-27 Richard Biener <rguenther@suse.de>
28361
28362 PR debug/88878
28363 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28364 parameter, prefix section name with .gnu.debuglto_ if true.
28365 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28366 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28367
28368 2019-02-27 Richard Biener <rguenther@suse.de>
28369
28370 PR debug/89514
28371 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28372 rather than on use_debug_types, doing what output_die does.
28373 (value_format): Likewise.
28374
28375 2019-02-27 Martin Jambor <mjambor@suse.cz>
28376 Martin Sebor <msebor@redhat.com>
28377
28378 * doc/invoke.texi (Warning Options): Reword description of
28379 -Wno-absolute-value.
28380
28381 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28382
28383 PR tree-optimization/89280
28384 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28385 builtin_setjmp_setup_bb): New functions.
28386 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28387 When visiting __builtin_setjmp_setup block, queue in special
28388 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28389 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28390 from visited after the loop if they don't have any visited successor
28391 blocks.
28392
28393 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28394
28395 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28396 New function.
28397 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28398
28399 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28400
28401 PR c++/89507
28402 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28403 with types other than sizetype/ssizetype.
28404
28405 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28406
28407 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28408 (enum sparc_processor_type): ...this.
28409 (enum sparc_code_model_type): New enumeration type.
28410 (enum sparc_memory_model_type): Tweak comments.
28411 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28412 (mtune): Likewise.
28413 (mcmodel): Use sparc_code_model enumeration and variable.
28414 (sparc_code_model): New enumeration.
28415 (mdebug): Add Undocumented marker.
28416 * config/sparc/sparc.h (enum cmodel): Delete.
28417 (sparc_cmodel): Likewise.
28418 (TARGET_CM_MEDLOW): Adjust to above renaming.
28419 (TARGET_CM_MEDMID): Likewise.
28420 (TARGET_CM_MEDANY): Likewise.
28421 (TARGET_CM_EMBMEDANY): Likewise.
28422 * config/sparc/sparc.c (sparc_cmodel): Delete.
28423 (sparc_option_override): Remove string/value mapping support for the
28424 code model. Move code and memory model support to after the handling
28425 of target flags. Do private machine setup last.
28426 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28427 (sparc_legitimize_reload_address): Likewise.
28428 (sparc_output_mi_thunk): Likewise.
28429 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28430
28431 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28432
28433 PR tree-optimization/89500
28434 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28435 (handle_builtin_strlen): Remove noncst_bound variable. Always
28436 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28437 cst if the first cst bytes starting at x are known to be non-zero,
28438 even if the string is not zero terminated. Don't try to modify
28439 *si for strnlen. Update strlen_to_stridx only for strlen or if
28440 we can prove strnlen returns the same value as strlen would.
28441
28442 2019-02-26 Martin Liska <mliska@suse.cz>
28443
28444 * alloc-pool.h (struct pool_usage): Remove extra
28445 print_dash_line.
28446 * bitmap.h (struct bitmap_usage): Likewise.
28447 * ggc-common.c (struct ggc_usage): Likewise.
28448 * mem-stats.h (struct mem_usage): Likewise.
28449 (mem_alloc_description::dump): Print dash lines
28450 here and repeat header at the end of a table report.
28451 It's then more readable.
28452 * tree-phinodes.c (phinodes_print_statistics): Make
28453 horizontal alignment.
28454 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28455 * vec.c (struct vec_usage): Remove extra print_dash_line.
28456 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28457
28458 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28459
28460 * doc/extend.texi (__builtin_object_size):
28461 Use @pxref instead of @xref inside parenthesis.
28462 (__builtin_has_attribute): Add missing comma after @xref.
28463 (__builtin_object_size): Ditto.
28464 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28465
28466 2019-02-26 Jeff Law <law@redhat.com>
28467
28468 PR rtl-optimization/87761
28469 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28470 detect obviously dead insns and delete them.
28471
28472 2019-02-26 Richard Biener <rguenther@suse.de>
28473
28474 PR tree-optimization/89505
28475 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28476 to handle restrict pointed-to vars with multiple subvars
28477 correctly.
28478
28479 2019-02-26 Richard Biener <rguenther@suse.de>
28480
28481 PR tree-optimization/89489
28482 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28483
28484 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28485
28486 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28487 and move around comment.
28488 <BIT_AND_EXPR>: Likewise.
28489 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28490
28491 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28492
28493 PR target/89474
28494 * config/i386/i386.c (remove_partial_avx_dependency): Call
28495 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28496 after changing possibly many instructions to use that pseudo. Fix up
28497 insertion of v4sf_const0 setter at the start of bb.
28498
28499 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28500
28501 PR c/80409
28502 * doc/extend.texi (Variadic Pointer Args): New section.
28503
28504 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28505 Martin Sebor <msebor@gmail.com>
28506
28507 * common.opt (Wattribute-alias): Likewise.
28508 * doc/invoke.texi (Option Summary): List general form of
28509 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28510 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28511 Add cross-references.
28512 (-Wattribute-alias): Rewrite and correct default. Mention
28513 considered attributes (same as for -Wmissing-attributes).
28514
28515 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28516
28517 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28518 (_mm_cvtpd_ps): Likewise.
28519 (_mm_cvttpd_epi32): Likewise.
28520
28521 PR target/89338
28522 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28523 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28524
28525 PR target/89339
28526 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28527
28528 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28529
28530 PR target/88530
28531 * common/config/aarch64/aarch64-common.c
28532 (struct aarch64_option_extension): Add is_synthetic.
28533 (all_extensions): Use it.
28534 (TARGET_OPTION_INIT_STRUCT): Define hook.
28535 (struct gcc_targetm_common): Moved to end.
28536 (all_extensions_by_on): New.
28537 (opt_ext_cmp, typedef opt_ext): New.
28538 (aarch64_option_init_struct): New.
28539 (aarch64_contains_opt): New.
28540 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28541 * config/aarch64/aarch64-option-extensions.def
28542 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28543 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28544 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28545 Set is_synthetic to false.
28546 (crypto): Set is_synthetic to true.
28547 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28548 SYNTHETIC.
28549
28550 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28551
28552 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28553 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28554 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28555 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28556 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28557 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28558 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28559 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28560 Rename ...
28561 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28562 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28563 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28564 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28565 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28566 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28567 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28568 vfmlsl_laneq_high_f16): ... To this.
28569 * config/arm/neon.md: Update comments.
28570
28571 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28572
28573 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28574 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28575 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28576 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28577 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28578 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28579 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28580 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28581 Rename ...
28582 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28583 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28584 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28585 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28586 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28587 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28588 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28589 vfmlslq_laneq_high_f16): ... To this.
28590
28591 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28592
28593 PR rtl-optimization/86096
28594 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28595 comparing mw_order values.
28596
28597 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28598
28599 PR target/89434
28600 * config/arm/arm.md (*subsi3_carryin_const): Use
28601 arm_neg_immediate_operand predicate instead of
28602 arm_not_immediate_operand, "L" constraint instead of "K" and
28603 print it using %n2 instead of %B2.
28604 (*subsi3_carryin_const0): New define_insn.
28605 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28606 instead of arm_not_operand and "I" constraint instead of "K" and
28607 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28608 another match_operand and in the condition check that it is negation
28609 of operands[2].
28610 (*subsi3_carryin_compare_const0): New define_ins.
28611 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28612 *subsi3_carryin_const.
28613 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28614 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28615
28616 PR target/89438
28617 * config/arm.vfp.md (*negdf2_vfp): Use
28618 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28619 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28620
28621 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28622
28623 PR rtl-optimization/89445
28624 * simplify-rtx.c (simplify_ternary_operation): Don't use
28625 simplify_merge_mask on operands that may trap.
28626 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28627 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28628 second operand is CONST_VECTOR, check if any element could be zero.
28629 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28630 their operands can trap.
28631
28632 2019-02-23 Martin Sebor <msebor@redhat.com>
28633
28634 * gimple-ssa-sprintf.c (target_strtol): Rename...
28635 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28636 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28637 check for range error.
28638
28639 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28640
28641 PR driver/69471
28642 * opts-common.c (prune_options): Also prune joined switches
28643 with Negative and RejectNegative.
28644 * config/i386/i386.opt (march=): Add Negative(march=).
28645 (mtune=): Add Negative(mtune=).
28646 * doc/options.texi: Document Negative used together with Joined
28647 and RejectNegative.
28648
28649 2019-02-22 Martin Sebor <msebor@redhat.com>
28650
28651 * doc/extend.texi (Other Builtins): Add
28652 __builtin_is_constant_evaluated.
28653
28654 2019-02-22 Richard Biener <rguenther@suse.de>
28655
28656 PR tree-optimization/87609
28657 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28658
28659 2019-02-22 Jeff Law <law@redhat.com>
28660
28661 PR rtl-optimization/87761
28662 * config/mips/mips.md: Add new combiner pattern to recognize
28663 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28664
28665 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28666
28667 PR target/89324
28668 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28669 destination register in peepholes generating patterns for ADDS/SUBS.
28670 (add<mode>3_compare0,
28671 *addsi3_compare0_uxtw, add<mode>3_compareC,
28672 add<mode>3_compareV_imm, add<mode>3_compareV,
28673 *adds_<optab><ALLX:mode>_<GPI:mode>,
28674 *subs_<optab><ALLX:mode>_<GPI:mode>,
28675 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28676 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28677 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28678 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28679 sub<mode>3_compare1): Allow stack pointer for source register.
28680 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28681
28682 2019-02-22 Martin Sebor <msebor@redhat.com>
28683
28684 PR tree-optimization/88993
28685 PR tree-optimization/88853
28686 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28687 New helper.
28688 (sprintf_dom_walker::call_info::is_string_func): New helper.
28689 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28690 for formatted string functions.
28691 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28692
28693 2019-02-22 Martin Sebor <msebor@redhat.com>
28694
28695 PR c/89425
28696 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28697 unreachable subexpressions.
28698
28699 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28700 Hongtao Liu <hongtao.liu@intel.com>
28701 Sunil K Pandey <sunil.k.pandey@intel.com>
28702
28703 PR target/87007
28704 * config/i386/i386-passes.def: Add
28705 pass_remove_partial_avx_dependency.
28706 * config/i386/i386-protos.h
28707 (make_pass_remove_partial_avx_dependency): New.
28708 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28709 New function.
28710 (pass_data_remove_partial_avx_dependency): New.
28711 (pass_remove_partial_avx_dependency): Likewise.
28712 (make_pass_remove_partial_avx_dependency): Likewise.
28713 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28714 (*extendsfdf2): Add avx_partial_xmm_update.
28715 (truncdfsf2): Likewise.
28716 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28717 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28718
28719 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28720
28721 PR middle-end/85598
28722 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28723 analysis for pass.
28724
28725 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28726
28727 PR target/89444
28728 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28729 (PTA_SKYLAKE): Add PTA_AES.
28730 (PTA_GOLDMONT): Likewise.
28731
28732 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28733
28734 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28735 instruction if enabled.
28736 (aarch64_override_options): Remove reference to return address key.
28737
28738 2019-02-22 Richard Biener <rguenther@suse.de>
28739
28740 PR tree-optimization/89440
28741 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28742 not necessary assert.
28743
28744 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28745
28746 PR fortran/72741
28747 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28748 (oacc_replace_fn_attrib_attr): ... this new function.
28749 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28750 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28751
28752 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28753
28754 * config/arm/arm-cpus.in (ares): Rename to...
28755 (neoverse-n1): ... This. Add ares as alias.
28756 * config/arm/arm-tables.opt: Regenerate.
28757 * config/arm/arm-tune.md: Likewise.
28758 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28759
28760 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28761
28762 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28763 * config/aarch64/aarch64-tune.md: Regenerate.
28764 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28765
28766 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28767
28768 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28769 (neoversen1_tunings): ... This.
28770 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28771 (neoverse-n1): New CPU.
28772 * config/aarch64/aarch64-tune.md: Regenerate.
28773 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28774
28775 2019-02-22 Richard Biener <rguenther@suse.de>
28776
28777 PR middle-end/87609
28778 * cfghooks.h (dependence_hash): New typedef.
28779 (struct copy_bb_data): New type.
28780 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28781 (duplicate_block): Likewise.
28782 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28783 (copy_bbs): Create and pass down copy_bb_data.
28784 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28785 (rtl_duplicate_bb): Likewise.
28786 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28787 remap dependence info.
28788
28789 2019-02-22 Richard Biener <rguenther@suse.de>
28790
28791 PR tree-optimization/87609
28792 * tree-core.h (tree_base): Document special clique values.
28793 * tree-inline.c (remap_dependence_clique): Do not use the
28794 special clique value of one.
28795 (maybe_set_dependence_info): Use clique one.
28796 (clear_dependence_clique): New callback.
28797 (compute_dependence_clique): Clear clique one from all refs
28798 before assigning it (again).
28799
28800 2019-02-21 Martin Sebor <msebor@redhat.com>
28801
28802 * doc/extend.texi (__clear_cache): Correct signature.
28803
28804 2019-02-21 Ian Lance Taylor <iant@golang.org>
28805
28806 PR go/89170
28807 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28808 than output_constant_def.
28809 (add_constant_to_table): New static function.
28810 (output_constant_def): Call add_constant_to_table.
28811 (tree_output_constant_def): Likewise.
28812
28813 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR c++/89285
28816 * builtins.c (fold_builtin_arith_overflow): If first two args are
28817 INTEGER_CSTs, set intres and ovfres to constants rather than calls
28818 to ifn.
28819
28820 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
28821
28822 PR target/87412
28823 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
28824 error for -mindirect-branch/-mfunction-return with incompatible
28825 -fcf-protection.
28826
28827 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28828
28829 PR bootstrap/88714
28830 * constraints.md (q): Remove.
28831 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
28832 instead of q.
28833
28834 2019-02-21 Martin Jambor <mjambor@suse.cz>
28835
28836 PR hsa/89302
28837 * omp-general.c (omp_extract_for_data): Removed a duplicate call
28838 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
28839 (omp_adjust_for_condition): ...here. Added necessary parameters.
28840 * omp-general.h (omp_adjust_for_condition): Updated declaration.
28841 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
28842 proper values to new parameters of omp_adjust_for_condition.
28843
28844 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28845
28846 PR middle-end/89412
28847 * expr.c (expand_assignment): If result is a MEM, use change_address
28848 instead of simplify_gen_subreg.
28849
28850 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28851 David Malcolm <dmalcolm@redhat.com>
28852
28853 PR middle-end/89091
28854 * fold-const.c (decode_field_reference): Return NULL_TREE if
28855 lang_hooks.types.type_for_size returns NULL. Check it before
28856 overwriting *exp_. Use return NULL_TREE instead of return 0.
28857
28858 2019-02-20 Jakub Jelinek <jakub@redhat.com>
28859
28860 PR middle-end/88074
28861 PR middle-end/89415
28862 * toplev.c (do_compile): Double the emin/emax exponents to workaround
28863 buggy mpc_norm.
28864
28865 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
28866
28867 PR target/89397
28868 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
28869 TARGET_SSE in addition to TARGET_SSE_MATH.
28870
28871 (ix86_excess_precision): Ditto.
28872 (ix86_float_exceptions_rounding_supported_p): Ditto.
28873 (use_rsqrt_p): Ditto.
28874 * config/i386/sse.md (rsqrt<mode>2): Ditto.
28875
28876 2019-02-20 David Malcolm <dmalcolm@redhat.com>
28877
28878 PR c/89410
28879 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
28880 linenum_arith_t when determining if two adjacent line spans are
28881 close enough to merge.
28882 (diagnostic_show_locus): Use linenum_arith_t when iterating over
28883 lines within each line_span.
28884
28885 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
28886
28887 PR target/86487
28888 * lra-constraints.c(uses_hard_regs_p): Fix handling of
28889 paradoxical SUBREGS.
28890
28891 2019-02-20 Li Jia He <helijia@linux.ibm.com>
28892
28893 PR target/88100
28894 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
28895 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
28896 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
28897 range checking it.
28898
28899 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
28900
28901 * config/gcn/gcn.c (print_operand): Fix typo.
28902
28903 2019-02-19 Richard Biener <rguenther@suse.de>
28904
28905 PR middle-end/88074
28906 * toplev.c (do_compile): Initialize mpfr's exponent range
28907 based on available float modes.
28908
28909 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
28910
28911 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
28912 as long as the epilogue isn't completed.
28913
28914 2019-02-18 Martin Sebor <msebor@redhat.com>
28915
28916 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
28917 __has_cpp_attribute, and __has_include.
28918
28919 2019-02-18 Martin Sebor <msebor@redhat.com>
28920
28921 * doc/invoke.texi (-Wreturn-type): Correct and expand.
28922
28923 2019-02-18 Martin Sebor <msebor@redhat.com>
28924
28925 PR middle-end/89294
28926 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
28927 expression.
28928 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
28929
28930 2019-02-18 Richard Biener <rguenther@suse.de>
28931
28932 PR tree-optimization/89296
28933 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
28934 of no-warning flag to cases that might emit the bogus warning.
28935
28936 2019-02-18 Jakub Jelinek <jakub@redhat.com>
28937
28938 PR bootstrap/88714
28939 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
28940 "q" constraint.
28941 * config/arm/vfp.md (*movdi_vfp): Likewise.
28942 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
28943 "q" constraint for operands[0].
28944
28945 PR target/89369
28946 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
28947 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
28948 pattern in a temporary buffer.
28949 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
28950 than 64-operands[2].
28951
28952 PR target/89361
28953 * config/s390/s390.c (s390_indirect_branch_attrvalue,
28954 s390_indirect_branch_settings): Define unconditionally.
28955 (s390_set_current_function): Likewise, but guard the whole body except
28956 the s390_indirect_branch_settings call with
28957 #if S390_USE_TARGET_ATTRIBUTE.
28958 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
28959
28960 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
28961 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
28962 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
28963 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
28964 HOST_WIDE_INT_1U instead of 1ULL.
28965 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
28966 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
28967 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
28968 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
28969 instead of 1UL.
28970 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
28971 instead of 1ul.
28972
28973 2019-02-18 Martin Jambor <mjambor@suse.cz>
28974
28975 PR tree-optimization/89209
28976 * tree-sra.c (create_access_replacement): New optional parameter
28977 reg_tree. Use it as a type if non-NULL and access type is not of
28978 a register type.
28979 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
28980 to create_access_replacement.
28981 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
28982 Check lacc is non-NULL before attempting to re-create it on the RHS.
28983
28984 2019-02-18 Martin Liska <mliska@suse.cz>
28985
28986 PR ipa/89306
28987 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
28988 by default.
28989 (symbol_table::free_edge): Recycle m_summary_id.
28990 * cgraph.h (get_summary_id): New.
28991 (symbol_table::release_symbol): Set m_summary_id to -1
28992 by default.
28993 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
28994 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
28995 function_summary to fast_function_summary.
28996 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
28997 * ipa-pure-const.c (class funct_state_summary_t):
28998 Switch from function_summary to fast_function_summary.
28999 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29000 (class ipa_ref_opt_summary_t): Switch from function_summary
29001 to fast_function_summary.
29002 * symbol-summary.h (class function_summary_base): New class
29003 that is created from base of former function_summary.
29004 (function_summary_base::unregister_hooks): New.
29005 (class function_summary): Inherit from function_summary_base.
29006 (class call_summary_base): New class
29007 that is created from base of former call_summary.
29008 (class call_summary): Inherit from call_summary_base.
29009 (struct is_same): New.
29010 (class fast_function_summary): New summary class.
29011 (class fast_call_summary): New summary class.
29012 * vec.h (vec_safe_grow_cleared): New function.
29013
29014 2019-02-18 Martin Liska <mliska@suse.cz>
29015
29016 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29017 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29018 * doc/tm.texi: Document new target hook.
29019 * doc/tm.texi.in: Likewise.
29020 * target.def: Add new target macro.
29021 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29022 suffixes.
29023
29024 2019-02-17 Alan Modra <amodra@gmail.com>
29025
29026 PR target/89271
29027 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29028 output reg on add insn.
29029 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29030
29031 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29032
29033 PR target/89372
29034 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29035 (PMULHRSW): Likewise.
29036 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29037 TARGET_AVX2.
29038 (ssse3_pmulhrswv4hi3): New expander.
29039
29040 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29041
29042 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29043 MMX. Add isa attribute.
29044
29045 2019-02-16 Jakub Jelinek <jakub@redhat.com>
29046
29047 PR rtl-optimization/66152
29048 * builtins.h (c_readstr): Declare.
29049 * builtins.c (c_readstr): Remove forward declaration. Add
29050 null_terminated_p argument, if false, read all bytes from the
29051 string instead of stopping after '\0'.
29052 * expr.c (string_cst_read_str): New function.
29053 (store_expr): Use string_cst_read_str instead of
29054 builtin_strncpy_read_str. Try to store by pieces the whole
29055 exp_len first, and only if that fails, split it up into
29056 store by pieces followed by clear_storage. Formatting fix.
29057
29058 * config/i386/i386.md (*movqi_internal): Remove static from
29059 buf variable. Use output_asm_insn (buf, operands); return "";
29060 instead of return buf;.
29061 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
29062 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
29063 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
29064
29065 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29066
29067 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
29068 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
29069 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
29070 (CC1_SPEC): Likewise.
29071 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
29072
29073 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29074
29075 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
29076 the base address on 64-bit strict-alignment platforms.
29077
29078 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
29079
29080 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
29081
29082 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29083
29084 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
29085
29086 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
29087
29088 PR rtl-optimization/88308
29089 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
29090 on copied instruction.
29091
29092 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29093
29094 * final.c (insn_current_reference_address): Replace test on JUMP_P
29095 with test on jump_to_label_p.
29096 * config/visium/visium-passes.def: New file.
29097 * config/visium/t-visium (PASSES_EXTRA): Define.
29098 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
29099 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
29100 (TRAMPOLINE_ALIGNMENT): Define.
29101 * config/visium/visium.c (visium_option_override): Do not register
29102 the machine-specific reorg pass here.
29103 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
29104 for the GR6.
29105 (output_branch): Adjust threshold for long branch instruction.
29106 * config/visium/visium.md (cpu): Move around.
29107 (length): Adjust for the GR6.
29108
29109 2019-02-15 Richard Biener <rguenther@suse.de>
29110 Jakub Jelinek <jakub@redhat.com>
29111
29112 PR tree-optimization/89278
29113 * tree-loop-distribution.c: Include tree-eh.h.
29114 (generate_memset_builtin, generate_memcpy_builtin): Call
29115 rewrite_to_non_trapping_overflow on builtin->size before passing it
29116 to force_gimple_operand_gsi.
29117
29118 2019-02-15 Jakub Jelinek <jakub@redhat.com>
29119
29120 PR other/89342
29121 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
29122 optimize_debug.
29123 * opth-gen.awk: Likewise.
29124
29125 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29126
29127 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
29128 Enable MMX, SSE and SSE2 by default.
29129 * config/i386/i386.c (ix86_option_override_internal): Do not
29130 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
29131
29132 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29133
29134 PR rtl-optimization/89354
29135 * combine.c (make_extraction): Punt if extraction_mode is narrower
29136 than len bits.
29137
29138 2019-02-14 Maya Rashish <coypu@sdf.org>
29139
29140 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
29141 * config/netbsd-d.c: New file.
29142 * config/t-netbsd: Add netbsd-d.o
29143
29144 2018-02-14 Steve Ellcey <sellcey@marvell.com>
29145
29146 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
29147 affects_type_identity to true for aarch64_vector_pcs.
29148 (aarch64_comp_type_attributes): New function.
29149 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
29150
29151 2019-02-14 Tamar Christina <tamar.christina@arm.com>
29152
29153 PR target/88850
29154 * config/arm/iterators.md (ANY64): Add V4HF.
29155
29156 2019-02-14 Martin Liska <mliska@suse.cz>
29157
29158 PR rtl-optimization/89242
29159 * dce.c (delete_unmarked_insns): Call free_dominance_info we
29160 process a transformation.
29161
29162 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29163
29164 PR tree-optimization/89314
29165 * fold-const.c (fold_binary_loc): Cast strlen argument to
29166 const char * before dereferencing it. Formatting fixes.
29167
29168 PR middle-end/89284
29169 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
29170
29171 2019-02-13 Ian Lance Taylor <iant@golang.org>
29172
29173 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
29174 and set current index for other optimizations.
29175
29176 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
29177
29178 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
29179 nonimmediate_operand as operand 2 predicate.
29180 (vec_set<VF2_512_256:mode>_0): Ditto.
29181 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
29182 (*vec_concatv2si): Remove alternative 2.
29183 (*vec_concatv4si_0): Use vm constraint for alternative 0.
29184 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
29185 (vec_concatv2di): Split alternatives 4,5,6 to ...
29186 (*vec_concatv2di_0) ... new pattern.
29187
29188 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29189
29190 PR target/89190
29191 * config/arm/arm.c (ldm_stm_operation_p) Set
29192 addr_reg_in_reglist correctly for first register.
29193 (load_multiple_sequence): Remove dead base check.
29194 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29195
29196 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29197
29198 PR target/88847
29199 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29200 Expose as @aarch64_pred_mov.
29201 * config/aarch64/aarch64.c (aarch64_classify_address):
29202 Use expand_insn which legitimizes operands.
29203
29204 2019-02-13 Martin Liska <mliska@suse.cz>
29205
29206 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29207 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29208 and pointer_offset fields.
29209 (initialize_argument_information): Remove usage of dead
29210 fields.
29211 * cgraph.h (struct cgraph_thunk_info): Remove
29212 add_pointer_bounds_args.
29213 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29214 fields.
29215 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29216 fields.
29217 * config/i386/i386.c (ix86_function_arg_advance): Remove
29218 unrelated comment.
29219 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29220 (def_builtin): Remove usage of dead fields.
29221 (ix86_add_new_builtins): Likewise.
29222 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29223 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29224 (sem_function::init): Likewise.
29225 (sem_variable::merge): Likewise.
29226 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29227 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29228 * lto-cgraph.c (lto_output_node): Likewise.
29229 (lto_output_varpool_node): Likewise.
29230 (input_node): Likewise.
29231 (input_varpool_node): Likewise.
29232 * lto-streamer-out.c (lto_output): Likewise.
29233 * tree-inline.c (expand_call_inline): Remove usage of
29234 assign_stmts.
29235 * tree-inline.h (struct copy_body_data): Likewise.
29236 * varpool.c (varpool_node::dump): Likewise.
29237
29238 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29239
29240 PR middle-end/89303
29241 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29242 into pt->vars_contains_escaped_heap instead of setting
29243 pt->vars_contains_escaped_heap to it.
29244
29245 PR middle-end/89281
29246 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29247 INTVAL (size), compare it to GET_MODE_MASK instead of
29248 1 << GET_MODE_BITSIZE.
29249
29250 PR target/89290
29251 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29252 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29253 -mcmodel=large.
29254
29255 2019-02-13 Martin Liska <mliska@suse.cz>
29256
29257 PR lto/88858
29258 * cfgrtl.c (remove_barriers_from_footer): New function.
29259 (try_redirect_by_replacing_jump): Use it.
29260 (cfg_layout_redirect_edge_and_branch): Likewise.
29261
29262 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29263
29264 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29265 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29266 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29267 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29268 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29269 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29270 New BU_CRYPTO_2.
29271 * config/rs6000/rs6000.c (builtin_function_type)
29272 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29273 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29274 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29275 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29276 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29277
29278 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29279
29280 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29281 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29282
29283 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29284
29285 PR target/89229
29286 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29287 268678 and revision 268657.
29288 (*movti_internal): Likewise.
29289
29290 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29291
29292 PR target/89233
29293 * config/s390/s390.c (s390_decompose_address): Update comment.
29294 (s390_check_qrst_address): Reject invalid address forms after
29295 LRA.
29296
29297 2019-02-12 Martin Liska <mliska@suse.cz>
29298
29299 PR lto/88876
29300 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29301 we need default values of funct_state for a function that
29302 is not optimized.
29303
29304 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29305
29306 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29307 the object to pick the size of stores on strict-alignment platforms.
29308
29309 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29310 (*movdi_insn_sp32): Likewise.
29311 (*movdi_insn_sp64): Likewise.
29312
29313 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29314
29315 PR lto/88677
29316 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29317 types that needs constructiong.
29318 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29319
29320 2019-02-12 Richard Biener <rguenther@suse.de>
29321
29322 PR tree-optimization/89253
29323 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29324 duplicate the loop.
29325
29326 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29327
29328 PR lto/88147
29329 * input.c (selftest::test_line_offset_overflow): New selftest.
29330 (selftest::input_c_tests): Call it.
29331
29332 2019-02-11 Martin Sebor <msebor@redhat.com>
29333
29334 PR tree-optimization/88771
29335 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29336 when -Wstringop-overflow is set.
29337 (builtin_memref::builtin_memref): Adjust excessive upper bound
29338 only when lower bound is not excessive.
29339 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29340 -Wstringop-ovefflow.
29341 (maybe_diag_offset_bounds): Rename...
29342 (maybe_diag_access_bounds): ...to this.
29343 (check_bounds_or_overlap): Adjust for name change above.
29344
29345 2019-02-11 Martin Sebor <msebor@redhat.com>
29346
29347 PR c++/87996
29348 * builtins.c (max_object_size): Move from here...
29349 * builtins.h (max_object_size): ...and here...
29350 * tree.c (max_object_size): ...to here...
29351 * tree.h (max_object_size): ...and here.
29352
29353 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29354
29355 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29356 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29357 for correct semantics.
29358
29359 2019-02-11 Alan Modra <amodra@gmail.com>
29360
29361 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29362 -mlongcall and -mpltseq.
29363 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29364 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29365 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29366 * config/rs6000/sysv4.opt (mpltseq): New option.
29367 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29368 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29369 support is lacking. Don't allow -mpltseq with -mbss-plt.
29370 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29371 -mpltseq given for ELFv1.
29372 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29373 Only use UNSPEC_PLTSEQ for inline PLT calls.
29374 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29375 use UNSPEC_PLTSEQ for inline PLT calls.
29376 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29377 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29378 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29379 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29380 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29381 (pltseq_mtctr_<mode>): Likewise.
29382
29383 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29384
29385 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29386 Solaris ld.
29387 * configure: Regenerate.
29388
29389 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29390
29391 PR bootstrap/88714
29392 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29393 instead of r.
29394
29395 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29396
29397 * function.c (assign_parm_setup_block): Use the stored
29398 size, not the passed size, when allocating stack-space,
29399 also for a parameter with alignment larger than
29400 MAX_SUPPORTED_STACK_ALIGNMENT.
29401
29402 2019-02-11 Martin Liska <mliska@suse.cz>
29403
29404 PR ipa/89009
29405 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29406 * ipa-inline.c (inline_small_functions): Likewise.
29407 * ipa-pure-const.c (propagate_pure_const): Likewise.
29408 (propagate_nothrow): Likewise.
29409 * ipa-reference.c (propagate): Likewise.
29410 * ipa-utils.c (struct searchc_env): Remove unused field.
29411 (searchc): Always search across AVAIL_INTERPOSABLE.
29412 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29413 the only called IPA pure const can properly not propagate
29414 across interposable boundary.
29415 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29416
29417 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29418
29419 * config/nds32/nds32.md (call_internal, call_value_internal,
29420 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29421
29422 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29423
29424 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29425 typo.
29426
29427 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29428
29429 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29430 in comments
29431
29432 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29433
29434 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29435
29436 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29437
29438 PR tree-optimization/89268
29439 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29440 if preds is non-NULL.
29441
29442 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29443
29444 PR lto/89272
29445 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29446 polymorphic types.
29447
29448 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29449
29450 * config/nds32/nds32.md (trap): New pattern.
29451
29452 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29453
29454 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29455 dwarf span.
29456
29457 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29458
29459 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29460 to split POST_INC.
29461
29462 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29463
29464 * ipa-visibility.c (localize_node): Also do not localize
29465 LDPR_PREVAILING_DEF_IRONLY_EXP.
29466
29467 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29468
29469 PR lto/87957
29470 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29471 instead of type_with_linkage.
29472
29473 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29474
29475 PR ipa/88755
29476 * params.def (uninlined-function-insns, uninlined-function-time,
29477 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29478 bound so we don't get overflows.
29479
29480 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29481
29482 * config/rs6000/rs6000-string.c (expand_compare_loop,
29483 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29484 memcmp/strncmp.
29485
29486 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29487
29488 PR middle-end/89246
29489 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29490 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29491 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29492
29493 2019-02-09 Alan Modra <amodra@gmail.com>
29494
29495 PR target/88343
29496 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29497 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29498 setup.
29499
29500 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29501
29502 PR middle-end/88560
29503 * lra-constraints.c (process_alt_operands): Don't increase reject
29504 for memory when offset memory is required.
29505
29506 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29507
29508 * config/s390/vector.md: Implement vector copysign.
29509
29510 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29511
29512 * expr.c (expand_constructor): Correct indentations.
29513
29514 2019-02-08 Richard Biener <rguenther@suse.de>
29515
29516 PR tree-optimization/89247
29517 * tree-if-conv.c: Include tree-cfgcleanup.h.
29518 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29519 (tree_if_conversion): Pass through predicate vector.
29520 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29521 inline, see if any if-converted loops we refrece in
29522 LOOP_VECTORIZED calls vanished and fixup.
29523 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29524
29525 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29526
29527 * config/s390/constraints.md (jdd): New constraint.
29528
29529 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29530
29531 PR target/89229
29532 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29533 upper 16 vector registers without TARGET_AVX512VL.
29534 (*movti_internal): Likewise.
29535
29536 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29537
29538 PR rtl-optimization/89234
29539 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29540 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29541 (copy_reg_eh_region_note_backward): Likewise.
29542
29543 2019-02-08 Richard Biener <rguenther@suse.de>
29544
29545 PR middle-end/89223
29546 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29547 doesn't fit in HWI.
29548 (analyze_subscript_affine_affine): Handle failure from
29549 initialize_matrix_A.
29550
29551 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29552
29553 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29554 cfun everywhere.
29555
29556 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29557
29558 PR tree-optimization/86637
29559 PR tree-optimization/89235
29560 * tree-vect-loop.c (optimize_mask_stores): Add an
29561 auto_purge_vect_location sentinel to ensure that vect_location is
29562 purged on exit.
29563 * tree-vectorizer.c
29564 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29565 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29566 to ensure that vect_location is purged on exit.
29567 (pass_slp_vectorize::execute): Likewise, replacing the manual
29568 reset.
29569 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29570
29571 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29572
29573 * config/aarch64/iterators.md (max_opp): New code_attr.
29574 (USMAX): New code iterator.
29575 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29576 (aarch64_smax): Likewise.
29577 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29578 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29579 MINUS (MAX MIN).
29580
29581 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29582
29583 PR target/89229
29584 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29585 for TARGET_AVX512VL.
29586 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29587
29588 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29589
29590 * config/s390/s390-builtin-types.def: Add new types.
29591 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29592 (s390_vec_xlw4): Make the memory operand into a const pointer.
29593 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29594 float.
29595 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29596 a new vector type with the alignment of the scalar memory operand.
29597
29598 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29599 Jakub Jelinek <jakub@redhat.com>
29600
29601 PR bootstrap/88714
29602 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29603 arm_count_ldrdstrd_insns): New declarations.
29604 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29605 MINUS.
29606 (valid_operands_ldrd_strd): New function.
29607 (arm_count_ldrdstrd_insns): New function.
29608 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29609 sets instead of single DImode set and define new insns to match this.
29610
29611 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29612
29613 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29614 Make it a C initializer.
29615
29616 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29617
29618 PR/target 88850
29619 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29620
29621 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29622
29623 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29624 Use neon_dot<q> for type.
29625 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29626
29627 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29628
29629 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29630 Use neon_dot<q> for type.
29631 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29632 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29633
29634 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29635
29636 PR rtl-optimization/89225
29637 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29638 sizes check.
29639
29640 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29641
29642 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29643 after restoring registers saved to allocate the frame on Windows.
29644
29645 2019-02-06 Richard Biener <rguenther@suse.de>
29646
29647 PR tree-optimization/89182
29648 * graphite.h (cached_scalar_evolution_in_region): Declare.
29649 * graphite.c (struct seir_cache_key): New.
29650 (struct sese_scev_hash): Likewise.
29651 (seir_cache): New global.
29652 (cached_scalar_evolution_in_region): New function.
29653 (graphite_transform_loops): Allocate and release seir_cache.
29654 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29655 cached_scalar_evolution_in_region.
29656 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29657 Simplify.
29658 (scop_detection::graphite_can_represent_expr: Use
29659 cached_scalar_evolution_in_region.
29660 (scop_detection::stmt_simple_for_scop_p): Likewise.
29661 (find_params_in_bb): Likewise.
29662 (gather_bbs::before_dom_children): Likewise.
29663 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29664 (add_loop_constraints): Likewise.
29665
29666 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29667
29668 PR middle-end/89210
29669 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29670 operand to new_unary_operation only if both element types are integral
29671 and it isn't a widening conversion. Return NULL_TREE if
29672 new_unary_operation failed.
29673
29674 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29675
29676 PR target/88856
29677 * config/s390/s390.md: Remove load and test FP splitter.
29678
29679 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29680
29681 PR target/89112
29682 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29683 expand_compare_loop, expand_block_compare_gpr,
29684 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29685 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29686 #include "profile-count.h" and "predict.h" for types and functions
29687 needed to work with REG_BR_PROB notes.
29688
29689 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29690
29691 PR target/89112
29692 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29693 for the long branch case.
29694
29695 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29696
29697 PR target/89188
29698 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29699 can throw, non-call exceptions are enabled and we can't delete
29700 dead exceptions or alter cfg. Set must_clean if
29701 delete_insn_and_edges returns true, don't set it blindly for calls.
29702 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29703
29704 PR rtl-optimization/89195
29705 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29706 of the original MEM.
29707
29708 2019-02-05 Martin Liska <mliska@suse.cz>
29709
29710 PR gcov-profile/89000
29711 * gcov.c (function_summary): Remove argument.
29712 (file_summary): New function.
29713 (print_usage): Replace tabs with spaces.
29714 (generate_results): Use new function file_summary.
29715
29716 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29717
29718 PR target/89186
29719 * optabs.c (prepare_cmp_insn): Pass x and y to
29720 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29721
29722 2019-02-05 Richard Biener <rguenther@suse.de>
29723
29724 PR middle-end/89150
29725 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29726 (struct bitmap_element): Drop chain_prev so we properly recurse on
29727 the prev member, supporting tree views.
29728 (struct bitmap_head): GTY skip the obstack member.
29729
29730 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29731
29732 PR c/88698
29733 * doc/extend.texi (Vector Extensions): Add an example of using vector
29734 types together with x86 intrinsics.
29735
29736 2019-02-04 Alan Modra <amodra@gmail.com>
29737
29738 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29739 str[] size to 160, and comment.
29740
29741 2019-02-04 Alan Modra <amodra@gmail.com>
29742
29743 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29744 (rs6000_pltseq_template): Guard output of TLS markers with
29745 TARGET_TLS_MARKERS.
29746 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29747 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29748 to use inline PLT sequences.
29749 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29750 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29751 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29752
29753 2019-02-04 Martin Liska <mliska@suse.cz>
29754
29755 PR ipa/88985
29756 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29757 out when ipa_fn_summaries does not contain entry for callee.
29758
29759 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29760
29761 * config/sparc/sparc.h: Remove superfluous blank lines.
29762 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29763 (got_register_rtx): ...this.
29764 (sparc_got): Adjust to above renaming.
29765 (sparc_tls_got): Likewise.
29766 (sparc_delegitimize_address): Likewise.
29767 (sparc_output_mi_thunk): Likewise.
29768 (sparc_init_pic_reg): Likewise.
29769 (save_local_or_in_reg_p): Fix test on the GOT register.
29770 (USE_HIDDEN_LINKONCE): Move around.
29771 (get_pc_thunk_name): Likewise.
29772 (gen_load_pcrel_sym): Likewise.
29773 (load_got_register): Likewise.
29774
29775 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29776
29777 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29778 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29779
29780 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29781
29782 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29783 into consideration.
29784
29785 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29786
29787 * config.gcc (with_nds32_lib, glibc):
29788 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29789 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29790 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29791
29792 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29793
29794 PR target/89071
29795 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29796 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29797 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29798 (*rcpsf2_sse): Ditto.
29799 (*rsqrtsf2_sse): Ditto.
29800 (sse4_1_round<mode<2): Ditto.
29801
29802 2019-02-03 Richard Biener <rguenther@suse.de>
29803
29804 PR debug/87295
29805 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29806 orig.
29807
29808 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29809
29810 PR middle-end/87887
29811 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29812 Punt with warning on aggregate return or argument types. Ignore
29813 type/mode checking for uniform arguments.
29814
29815 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29816
29817 * combine.c (try_combine): Do not print "Can't combine" messages unless
29818 printing failed combination attempts.
29819
29820 2019-02-01 Martin Jambor <mjambor@suse.cz>
29821
29822 PR hsa/87863
29823 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
29824 segment and global segment variables before making them static.
29825
29826 2019-02-01 Martin Jambor <mjambor@suse.cz>
29827
29828 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
29829 missed optimization dump with dump_enabled_p.
29830
29831 2019-02-01 Richard Biener <rguenther@suse.de>
29832
29833 PR middle-end/88597
29834 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
29835 the instantiate cache.
29836 (instantiate_scev_binary): Elide second operand procesing
29837 if equal to the first.
29838 * tree-chrec.c (chrec_contains_symbols): Add visited set.
29839 (chrec_contains_undetermined): Likewise.
29840 (tree_contains_chrecs): Likewise.
29841
29842 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
29843
29844 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
29845
29846 2019-02-01 Jakub Jelinek <jakub@redhat.com>
29847
29848 PR tree-optimization/89143
29849 * wide-int-range.h (wide_int_range_absu): Declare.
29850 * wide-int-range.cc (wide_int_range_absu): New function.
29851 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
29852
29853 PR tree-optimization/88107
29854 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
29855 instead of assertion that eh_region_outermost is non-NULL, if it
29856 is NULL, set *ALL to true and return NULL.
29857 (move_sese_region_to_fn): Adjust caller, if all is set, call
29858 duplicate_eh_regions with NULL region.
29859
29860 2019-02-01 Richard Biener <rguenth@suse.de>
29861
29862 PR rtl-optimization/88593
29863 * mode-switching.c (optimize_mode_switching): Free dominators before
29864 calling cleanup_cfg.
29865
29866 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29867
29868 PR tree-optimization/88932
29869 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
29870
29871 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29872
29873 PR middle-end/89137
29874 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
29875 bogus clang warning.
29876
29877 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
29878
29879 PR target/89071
29880 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
29881 alternative to avoid partial SSE register stall for TARGET_AVX.
29882 (truncdfsf2): Ditto.
29883 (sse4_1_round<mode>2): Ditto.
29884
29885 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
29886
29887 PR tree-optimization/89008
29888 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
29889 process anything of the form X * 0.
29890
29891 2019-01-31 Richard Biener <rguenther@suse.de>
29892
29893 PR tree-optimization/89135
29894 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
29895 with abnormal preds.
29896
29897 2019-01-31 Jakub Jelinek <jakub@redhat.com>
29898
29899 PR sanitizer/89124
29900 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
29901 always_inline callees into no_sanitize_address callers.
29902
29903 2019-01-31 Richard Biener <rguenther@suse.de>
29904
29905 PR rtl-optimization/89115
29906 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
29907
29908 2019-01-30 Martin Sebor <msebor@redhat.com>
29909
29910 PR other/89106
29911 * doc/extend.texi (cast to a union): Correct and expand.
29912
29913 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
29914
29915 PR rtl-optimization/87246
29916 * lra-constraints.c (simplify_operand_subreg): Reload memory
29917 in subreg if the address became invalid.
29918
29919 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
29920
29921 PR target/87064
29922 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
29923 Disable for little-endian.
29924
29925 2019-01-30 Richard Biener <rguenther@suse.de>
29926
29927 PR rtl-optimization/89115
29928 * opts.c (default_options_optimization): Reduce
29929 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
29930 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
29931 to the default.
29932
29933 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
29934
29935 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
29936 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
29937 type of vector element when vec_extract is implemented by direct
29938 move.
29939
29940 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
29941
29942 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
29943
29944 2019-01-30 Richard Biener <rguenther@suse.de>
29945
29946 PR tree-optimization/89111
29947 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
29948 canonicalization to appropriately sized access types.
29949
29950 2019-01-30 Jakub Jelinek <jakub@redhat.com>
29951
29952 PR c++/89105
29953 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
29954 for arguments to functions that are TU-local and shouldn't be
29955 referenced by assembly.
29956
29957 2019-01-30 Ulrich Drepper <drepper@redhat.com>
29958
29959 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
29960 after '='.
29961
29962 2019-01-29 Martin Sebor <msebor@redhat.com>
29963
29964 PR c/88956
29965 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
29966
29967 2019-01-29 Jakub Jelinek <jakub@redhat.com>
29968
29969 PR c++/66676
29970 PR ipa/89104
29971 * omp-simd-clone.c (simd_clone_clauses_extract)
29972 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
29973 OMP_CLAUSE_ALIGNED_ALIGNMENT.
29974
29975 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
29976
29977 * config.gcc: Force .init_array for ARC.
29978
29979 2019-01-29 Richard Biener <rguenther@suse.de>
29980
29981 PR debug/87295
29982 * dwarf2out.c (collect_skeleton_dies): New helper.
29983 (copy_decls_for_unworthy_types): Call it.
29984 (build_abbrev_table): Assert we do not try to replace
29985 DW_AT_signature refs with local refs.
29986
29987 2019-01-28 Jakub Jelinek <jakub@redhat.com>
29988
29989 PR middle-end/89002
29990 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
29991 for lastprivate/linear IV, push gimplify context around gimplify_assign
29992 and, if it needed any temporaries, pop it into a gimple bind around the
29993 sequence.
29994
29995 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29996
29997 * common.opt (-Wattribute-alias): Remove "no-" from name.
29998 Make -Wattribute-alias command line option and
29999 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30000
30001 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30002
30003 PR target/89073
30004 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30005 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30006 x86 ISA options.
30007 (bmi2): Add missing @opindex.
30008 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30009 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30010 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30011 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30012 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30013 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30014 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30015 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30016 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30017 xsavec, xsaveopt and xsaves options.
30018
30019 2019-01-28 Richard Biener <rguenther@suse.de>
30020
30021 PR debug/89076
30022 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30023 support removal.
30024
30025 2019-01-28 Richard Biener <rguenther@suse.de>
30026
30027 PR tree-optimization/88739
30028 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30029 BIT_FIELD_REFs only are applied to mode-precision operands
30030 when they are integral.
30031 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30032 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30033 BIT_FIELD_REFs of non-mode-precision integral operands.
30034
30035 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30036
30037 PR target/87214
30038 * config/i386/sse.md
30039 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30040 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30041 first constants in pairs are multiples of 2. Formatting fixes.
30042 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30043 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30044 first constants in each quadruple are multiples of 4. Formatting fixes.
30045
30046 2019-01-26 Martin Jambor <mjambor@suse.cz>
30047
30048 PR ipa/88933
30049 * tree-inline.c: Include tree-cfgcleanup.h.
30050 (delete_unreachable_blocks_update_callgraph): Move...
30051 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30052 ...here, make externally visible, make second argument bool, adjust
30053 all callers.
30054 * tree-cfgcleanup.c: Include cgraph.h.
30055 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
30056 Declare.
30057 * ipa-prop.c: Include tree-cfgcleanup.h.
30058 (ipcp_transform_function): Call
30059 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
30060
30061 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
30062
30063 PR rtl-optimization/88846
30064 * ira.c (process_set_for_memref_referenced_p): New.
30065 (memref_referenced_p): Add new param. Use
30066 process_set_for_memref_referenced_p. Add new switch cases.
30067 (memref_used_between_p): Pass new arg to memref_referenced_p.
30068
30069 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
30070
30071 PR target/88469
30072 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
30073 argument ABI_BREAK. Set to true if the calculated alignment has
30074 changed in gcc-9. Check bit-fields for their base type alignment.
30075 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
30076 (aarch64_function_arg_boundary): Likewise.
30077 (aarch64_gimplify_va_arg_expr): Likewise.
30078
30079 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30080
30081 PR middle-end/89037
30082 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
30083 instead of accessing TREE_INT_CST_ELT directly.
30084
30085 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
30086
30087 * doc/sourcebuild.texi (Environment attributes): Add fenv and
30088 fenv_exceptions description.
30089
30090 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
30091
30092 PR rtl-optimization/87763
30093 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
30094 Allow SUBREG when matching CC_NZmode compare.
30095
30096 2019-01-25 Richard Biener <rguenther@suse.de>
30097
30098 PR tree-optimization/89049
30099 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
30100 Look at the pattern stmt to determine if the stmt is vectorized.
30101
30102 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30103
30104 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
30105 (pred_mov<mode>): Handle all-register forms using both a new
30106 alternative and a split.
30107
30108 2019-01-25 Richard Biener <rguenther@suse.de>
30109
30110 PR tree-optimization/86865
30111 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30112 Reject non-do-while loops.
30113
30114 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
30115
30116 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
30117 * config/rs6000/constraints.md (Q constraint): Use REG_P.
30118 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
30119 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30120 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
30121 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30122 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
30123 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
30124 vlogical_operand, gpc_reg_operand, int_reg_operand,
30125 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
30126 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
30127 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
30128 (save_world_operation, restore_world_operation, lmw_operation,
30129 stmw_operation): Use MEM_P and REG_P.
30130 (tie_operand): Use MEM_P.
30131 (vrsave_operation, crsave_operation): Use REG_P.
30132 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
30133 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
30134 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
30135 (call_operand): Use HARD_REGISTER_P.
30136 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
30137 Use CONST_INT_P.
30138 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
30139 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
30140 quad_aligned_load_p, replace_swapped_aligned_store,
30141 recombine_lvx_pattern, replace_swapped_aligned_load,
30142 recombine_stvx_pattern): Use MEM_P.
30143 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
30144 Use MEM_P and SYMBOL_REF_P.
30145 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
30146 (insn_is_swappable_p): Use REG_P and MEM_P.
30147 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
30148 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
30149 Use CONST_INT_P.
30150 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
30151 Use CONST_DOUBLE_P.
30152 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
30153 CONST_WIDE_INT_P.
30154 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
30155 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
30156 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
30157 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
30158 reg_or_subregno:
30159 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30160 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
30161 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
30162 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
30163 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
30164 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
30165 rs6000_split_logical_di): Use CONST_INT_P.
30166 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
30167 REG_P and SYMBOL_REF_P.
30168 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
30169 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
30170 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
30171 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
30172 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
30173 (small_data_operand, print_operand_address): Use CONST_INT_P and
30174 SYMBOL_REF_P.
30175 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
30176 (rs6000_init_hard_regno_mode_ok, direct_move_p):
30177 Use HARD_REGISTER_NUM_P.
30178 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
30179 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
30180 SUBREG_P and SYMBOL_REF_P.
30181 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
30182 and HARD_REGISTER_NUM_P.
30183 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
30184 reg_or_subregno.
30185 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30186 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30187 MEM_P and REG_P.
30188 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30189 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30190 find_addr_reg): Use REG_P.
30191 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30192 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30193 (offsettable_ok_by_alignment, constant_pool_expr_p,
30194 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30195 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30196 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30197 rs6000_assemble_integer, create_TOC_reference,
30198 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30199 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30200 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30201 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30202 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30203 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30204 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30205 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30206 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30207 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30208 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30209 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30210 and cbranch<mode>4): Use CONST_INT_P.
30211 (multiple define_splits): Use REG_P and SUBREG_P.
30212 (define_expands call, call_value): Use MEM_P.
30213 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30214 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30215 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30216 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30217 and HARD_REGISTER_NUM_P.
30218 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30219
30220 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30221
30222 PR rtl-optimization/88948
30223 * rtl.h (prepare_copy_insn): New prototype.
30224 * gcse.c (prepare_copy_insn): New function, split out from
30225 process_insert_insn.
30226 (process_insert_insn): Use prepare_copy_insn.
30227 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30228 instead of gen_move_insn.
30229
30230 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30231
30232 PR debug/89006
30233 * config/i386/i386.c (ix86_pic_register_p): Return true for
30234 UNSPEC_SET_GOT too.
30235
30236 PR tree-optimization/88964
30237 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30238 punt if HONOR_SNANS (chrec).
30239
30240 PR middle-end/89015
30241 * tree-nested.c (convert_nonlocal_reference_stmt,
30242 convert_local_reference_stmt, convert_tramp_reference_stmt,
30243 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30244 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30245 or GIMPLE_OMP_TASK.
30246
30247 PR tree-optimization/89027
30248 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30249 for "omp simd array" variables.
30250
30251 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30252
30253 PR target/88469
30254 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30255 force the alignment of m_val.
30256
30257 2019-01-24 Richard Biener <rguenther@suse.de>
30258
30259 PR lto/87187
30260 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30261 When in "legacy" debug mode make sure to reset self-origins.
30262
30263 2019-01-24 Martin Liska <mliska@suse.cz>
30264
30265 PR gcov-profile/88994
30266 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30267 result will be always smaller or equal to the original.
30268 * gcov.c (mangle_name): Fix else branch where we should
30269 also copy to PTR and shift the pointer.
30270
30271 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30272
30273 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30274 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30275
30276 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30277
30278 * common/config/i386/i386-common.c
30279 (OPTION_MASK_ISA_ENQCMD_SET,
30280 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30281 (ix86_handle_option): Handle -menqcmd.
30282 * config.gcc (enqcmdintrin.h): New header file.
30283 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30284 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30285 -menqcmd.
30286 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30287 function type.
30288 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30289 __builtin_ia32_enqcmds): New builtins.
30290 * config/i386/i386-c.c (__ENQCMD__): New macro.
30291 * config/i386/i386-option.c (ix86_target_string): Add
30292 -menqcmd.
30293 (ix86_valid_target_attribute_inner_p): Likewise.
30294 * config/i386/i386-expand.c
30295 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30296 IX86_BUILTIN_ENQCMDS.
30297 * config/i386/i386.h (TARGET_ENQCMD): New.
30298 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30299 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30300 (movdir64b_<mode>): Parameterize to enable share expansion code
30301 with ENQCMD in function ix86_expand_builtin.
30302 * config/i386/i386.opt: Add -menqcmd.
30303 * config/i386/immintrin.h: Include enqcmdintrin.h.
30304 * config/i386/enqcmdintrin.h: New intrinsic file.
30305 * doc/invoke.texi: Add -menqcmd.
30306
30307 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30308 Steve Ellcey <sellcey@marvell.com>
30309
30310 PR target/85711
30311 * recog.c (address_operand): Return false on wrong mode for address.
30312 (constrain_operands): Check for mode with 'p' constraint.
30313
30314 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30315
30316 PR target/88998
30317 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30318 Disparage MMX alternative.
30319 (sse2_cvtpd2pi): Ditto.
30320 (sse2_cvttpd2pi): Ditto.
30321
30322 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30323
30324 PR driver/89014
30325 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30326 use-after-free of the result of
30327 aarch64_get_extension_string_for_isa_flags.
30328
30329 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30330
30331 PR c/44715
30332 * doc/extend.texi: Document break and continue behavior in
30333 statement expressions.
30334
30335 2019-01-23 Richard Biener <rguenther@suse.de>
30336
30337 PR tree-optimization/89008
30338 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30339 not leave another stray operand.
30340
30341 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30342
30343 * BASE-VER: Bump to 9.0.1.
30344
30345 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30346
30347 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30348 thunk that returns by reference, use the type of the return object
30349 of the thunk instead of that of the alias to build the dereference.
30350
30351 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30352
30353 * config/arc/atomic.md: Add operand to DMB instruction.
30354
30355 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30356
30357 PR tree-optimization/88964
30358 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30359 build_zero_cst instead of build_int_cst. Return false for loop
30360 invariants which honor signed zeros.
30361
30362 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30363
30364 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30365
30366 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30367
30368 PR target/88965
30369 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30370 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30371 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30372
30373 PR middle-end/88968
30374 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30375 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30376
30377 PR target/87064
30378 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30379 Disable for little endian.
30380
30381 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30382
30383 PR target/88469
30384 * config/arm/arm.c (arm_needs_double_word_align): Check
30385 DECL_BIT_FIELD_TYPE.
30386
30387 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30388 H.J. Lu <hongjiu.lu@intel.com>
30389
30390 PR target/88909
30391 * config/i386/i386-builtin.def: Add mask2 to all builtin
30392 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30393 SPECIAL_ARGS.
30394 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30395 (BDESC_FIRST): Likewise.
30396 (define_builtin): Add an argument for mask2. Updated to handle
30397 both ix86_isa_flags and ix86_isa_flags2.
30398 (define_builtin_const): Likewise.
30399 (define_builtin_pure): Likewise.
30400 (define_builtin2): Deleted.
30401 (define_builtin_const2): Likewise.
30402 (builtin_description): Add a member, mask2.
30403 (bdesc_*): Add mask2 to builtin initializations.
30404 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30405 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30406 support.
30407 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30408
30409 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30410
30411 PR target/88954
30412 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30413 noplt attribute.
30414
30415 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30416
30417 PR target/88469
30418 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30419 alignment is dominated by a bitfield with 64-bit aligned base type.
30420 (arm_function_arg): Emit a warning if the alignment has changed since
30421 earlier GCC releases.
30422 (arm_function_arg_boundary): Likewise.
30423 (arm_setup_incoming_varargs): Likewise.
30424
30425 2019-01-22 Richard Biener <rguenther@suse.de>
30426
30427 PR tree-optimization/88862
30428 * graphite-scop-detection.c
30429 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30430
30431 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30432
30433 * doc/extend.tex (AMD GCN Function Attributes): New section.
30434 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30435 * doc/invoke.texi (AMD GCN Options): New section.
30436 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30437
30438 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30439
30440 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30441 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30442
30443 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30444
30445 PR tree-optimization/88044
30446 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30447 is false in the first iteration, but !every_iteration, return false
30448 instead of true with niter->niter zero.
30449
30450 PR rtl-optimization/88904
30451 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30452 any nonequal registers before processing BB_END (b).
30453
30454 PR target/88905
30455 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30456 GET_MODE (op0).
30457 (expand_binop_directly, expand_doubleword_clz,
30458 expand_doubleword_popcount, expand_ctz, expand_ffs,
30459 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30460
30461 PR rtl-optimization/49429
30462 PR target/49454
30463 PR rtl-optimization/86334
30464 PR target/88906
30465 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30466 addressable from here...
30467 (emit_block_op_via_libcall): ... to here.
30468
30469 2019-01-22 Richard Biener <rguenther@suse.de>
30470
30471 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30472 auto_vec for cost vector to fix memleak.
30473 (vectorize_fold_left_reduction): Properly gather SLP defs.
30474 (vectorizable_comparison): Do not swap operands to properly
30475 gather SLP defs.
30476
30477 2019-01-22 Alan Modra <amodra@gmail.com>
30478
30479 PR target/88614
30480 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30481 stays a reg. Allow a const_int.
30482 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30483 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30484 (IS_NOMARK_TLSGETADDR): Define.
30485 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30486 (rs6000_output_tlsargs): New function.
30487 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30488 __tls_get_addr call takes an arg.
30489 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30490 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30491 delete split..
30492 (call_value_nonlocal_sysv): ..or here, delete split.
30493 (tls_gdld_nomark): Delete.
30494 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30495 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30496 (call_value_nonlocal_sysv): Likewise.
30497 (call_value_nonlocal_sysv_secure): Likewise.
30498 (call_value_nonlocal_aix): Likewise.
30499 (call_value_indirect_aix): Likewise.
30500 (call_value_indirect_elfv2): Likewise.
30501 (call_value_local32, call_value_local64): Disable for no-mark tls.
30502 (call_value_local_aix): Likewise.
30503
30504 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30505
30506 PR target/88938
30507 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30508 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30509
30510 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30511
30512 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30513 string contents as hash_map keys.
30514
30515 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30516
30517 PR c/88928
30518 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30519 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30520 instead of TYPE_ALIGN.
30521 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30522 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30523 pointer from TYPE_STUB_DECL.
30524
30525 2019-01-21 Richard Biener <rguenther@suse.de>
30526
30527 PR tree-optimization/88934
30528 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30529 at the possibly non-constant operand.
30530 (vect_get_constant_vectors): Adjust.
30531
30532 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30533
30534 PR target/71659
30535 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30536 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30537 instead of _X86INTRIN_H_INCLUDED.
30538 * onfig/i386/clwbintrin.h: Likewise.
30539 * config/i386/pkuintrin.h: Likewise.
30540 * config/i386/prfchwintrin.h: Likewise.
30541 * config/i386/rdseedintrin.h: Likewise.
30542 * config/i386/wbnoinvdintrin.h: Likewise.
30543 * config/i386/xsavecintrin.h: Likewise.
30544 * config/i386/xsavesintrin.h: Likewise.
30545 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30546 * config/i386/xsaveintrin.h: Likewise.
30547 * config/i386/xsaveoptintrin.h: Likewise.
30548 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30549 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30550 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30551 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30552 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30553 * config/i386/immintrin.h: Here.
30554
30555 2019-01-20 Martin Jambor <mjambor@suse.cz>
30556
30557 PR ipa/87615
30558 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30559 with aa_walk_budget.
30560 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30561 aa_walk_budget_p parameter.
30562 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30563 walk. Updated all callers.
30564 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30565 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30566 unmodified_parm.
30567 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30568 parameter info. Extract info from fbi. Pass fbi to recursive calls
30569 and to unmodified_parm.
30570 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30571 info, updated call to will_be_nonconstant_expr_predicate.
30572 (param_change_prob): New parameter fbi, limit AA walking.
30573 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30574 calls to various above functions.
30575 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30576 parameter. Use it to limit AA walking.
30577 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30578 fbi, limit AA walk.
30579 (detect_type_change): New parameter fbi, pass it on to
30580 detect_type_change_from_memory_writes.
30581 (detect_type_change_ssa): Likewise.
30582 (aa_overwalked): Removed.
30583 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30584 accordingly, adjust to the neew AA limiting scheme.
30585 (parm_ref_data_preserved_p): Likewise.
30586 (ipa_compute_jump_functions_for_edge): Adjust call to
30587 get_dynamic_type.
30588 (ipa_analyze_call_uses): Likewise.
30589 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30590 (ipa_analyze_node): Initialize aa_walk_budget.
30591 (ipcp_transform_function): Likewise.
30592 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30593 to get_dynamic_type.
30594
30595 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30596
30597 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30598 outside of #if CHECKING_P code.
30599
30600 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30601
30602 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30603 New function, split out from...
30604 (loop_versioning::analyze_stride): ...here.
30605 (loop_versioning::find_per_loop_multiplication): Use gassign.
30606 (loop_versioning::analyze_term_using_scevs): Return a success code.
30607 (loop_versioning::analyze_arbitrary_term): New function.
30608 (loop_versioning::analyze_address_fragment): Use
30609 analyze_arbitrary_term if all else fails.
30610
30611 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30612
30613 PR target/88892
30614 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30615 operands.
30616
30617 2019-01-18 Richard Biener <rguenther@suse.de>
30618
30619 PR tree-optimization/88903
30620 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30621 scalar stmts a SLP shift amount is composed of when detecting
30622 shifts by scalars.
30623
30624 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30625
30626 PR target/88799
30627 * config/arm/arm-cpus.in (mp): New feature.
30628 (sec): New feature.
30629 (fgroup ARMv7ve): Add mp and sec features.
30630 (arch armv7-a): Add options to allow mp and sec extensions.
30631 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30632 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30633 extenstions to the base architecture.
30634 (cpu cortex-a8): Add sec extension to the base architecture.
30635 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30636 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30637 variants down to the base v7-a varaint.
30638 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30639 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30640 of permitted extensions for -march=armv7-a and for
30641 -mcpu=generic-armv7-a.
30642
30643 2019-01-18 Martin Liska <mliska@suse.cz>
30644
30645 * params.def: Fix comment.
30646 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30647 name.
30648 (gimple_gen_ic_func_profiler): Likewise.
30649
30650 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30651
30652 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30653 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30654 and put in error checks for stack protector guard options.
30655 (aarch64_stack_protect_guard): New.
30656 (TARGET_STACK_PROTECT_GUARD): Define.
30657 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30658 (reg_stack_protect_address<mode>): New.
30659 (stack_protect_set): Adjust for SSP_GLOBAL.
30660 (stack_protect_test): Likewise.
30661 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30662 (-mstack-protector-guard): Likewise.
30663 (-mstack-protector-guard-offset): Likewise.
30664
30665 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30666
30667 PR tree-optimization/86214
30668 * tree-inline.h (struct copy_body_data): Add
30669 add_clobbers_to_eh_landing_pads member.
30670 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30671 (copy_edges_for_bb): Call it if EH edge destination is <
30672 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30673 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30674 if flag_stack_reuse != SR_NONE and clear it afterwards.
30675
30676 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30677
30678 PR target/85596
30679 * doc/install.texi (with-multilib-list): Document for aarch64.
30680
30681 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30682
30683 PR target/88734
30684 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30685 (("..."))) with ("...").
30686
30687 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30688
30689 * doc/extend.texi (Built-in Functions for Memory Model Aware
30690 Atomic Operations): Document atomic fetch and nand.
30691
30692 2019-01-18 Martin Liska <mliska@suse.cz>
30693 Richard Biener <rguenther@suse.de>
30694
30695 PR middle-end/88587
30696 * cgraph.h (create_version_clone_with_body): Add new argument
30697 with attributes.
30698 * cgraphclones.c (cgraph_node::create_version_clone): Add
30699 DECL_ATTRIBUTES to a newly created decl. And call
30700 valid_attribute_p so that proper cl_target_optimization_node
30701 is set for the newly created declaration.
30702 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30703 for declaration.
30704 (expand_target_clones): Do not call valid_attribute_p, it must
30705 be already done.
30706 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30707 vector types.
30708
30709 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30710
30711 PR target/88734
30712 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30713 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30714 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30715
30716 2019-01-17 Martin Sebor <msebor@redhat.com>
30717
30718 PR middle-end/88273
30719 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30720 Handle anti-ranges the same as no range at all.
30721
30722 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30723
30724 * config/aarch64/aarch64.c (cgraph.h): New include.
30725 (intl.h): New include.
30726 (supported_simd_type): New function.
30727 (currently_supported_simd_type): Ditto.
30728 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30729 (aarch64_simd_clone_adjust): Ditto.
30730 (aarch64_simd_clone_usable): Ditto.
30731 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30732 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30733 (TARGET_SIMD_CLONE_USABLE): Ditto.
30734 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30735 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30736 call.
30737
30738 2019-01-17 Martin Sebor <msebor@redhat.com>
30739
30740 PR tree-optimization/88800
30741 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30742 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30743 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30744 redundant argument. Add new argument and issue diagnostics under
30745 its control. Detect out-of-bounds access even with warnings
30746 disabled.
30747 (check_bounds_or_overlap): Change return type. Add argument.
30748 (wrestrict_dom_walker::check_call): Adjust.
30749 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30750 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30751 check_bounds_or_overlap's return value.
30752 (handle_builtin_stxncpy): Same.
30753 (handle_builtin_strcat): Same.
30754
30755 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30756 Kwok Cheung Yeung <kcy@codesourcery.com>
30757 Julian Brown <julian@codesourcery.com>
30758 Tom de Vries <tom@codesourcery.com>
30759
30760 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30761
30762 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30763
30764 * doc/sourcebuild.texi: Document dg-require-effective-target
30765 llvm_binutils and offload_gcn.
30766
30767 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30768 Kwok Cheung Yeung <kcy@codesourcery.com>
30769 Julian Brown <julian@codesourcery.com>
30770 Tom de Vries <tom@codesourcery.com>
30771
30772 * doc/sourcebuild.texi: Document dg-required-effective-target
30773 exceptions.
30774
30775 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30776 Kwok Cheung Yeung <kcy@codesourcery.com>
30777 Julian Brown <julian@codesourcery.com>
30778 Tom de Vries <tom@codesourcery.com>
30779 Jan Hubicka <hubicka@ucw.cz>
30780 Martin Jambor <mjambor@suse.cz>
30781
30782 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30783 * configure.ac: Check for dlopen.
30784 * configure: Regenerate.
30785
30786 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30787 Kwok Cheung Yeung <kcy@codesourcery.com>
30788 Julian Brown <julian@codesourcery.com>
30789 Tom de Vries <tom@codesourcery.com>
30790 Jan Hubicka <hubicka@ucw.cz>
30791 Martin Jambor <mjambor@suse.cz>
30792
30793 * common/config/gcn/gcn-common.c: New file.
30794 * config/gcn/driver-gcn.c: New file.
30795 * config/gcn/gcn-builtins.def: New file.
30796 * config/gcn/gcn-hsa.h: New file.
30797 * config/gcn/gcn-modes.def: New file.
30798 * config/gcn/gcn-opts.h: New file.
30799 * config/gcn/gcn-passes.def: New file.
30800 * config/gcn/gcn-protos.h: New file.
30801 * config/gcn/gcn-run.c: New file.
30802 * config/gcn/gcn-tree.c: New file.
30803 * config/gcn/gcn.c: New file.
30804 * config/gcn/gcn.h: New file.
30805 * config/gcn/gcn.opt: New file.
30806 * config/gcn/t-gcn-hsa: New file.
30807
30808 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30809 Kwok Cheung Yeung <kcy@codesourcery.com>
30810 Julian Brown <julian@codesourcery.com>
30811 Tom de Vries <tom@codesourcery.com>
30812 Jan Hubicka <hubicka@ucw.cz>
30813 Martin Jambor <mjambor@suse.cz>
30814
30815 * config/gcn/constraints.md: New file.
30816 * config/gcn/gcn-valu.md: New file.
30817 * config/gcn/gcn.md: New file.
30818 * config/gcn/predicates.md: New file.
30819
30820 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
30821
30822 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
30823 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
30824 (stmt_uses_0_or_null_in_undefined_way): Likewise.
30825 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
30826
30827 2019-01-17 Tamar Christina <tamar.christina@arm.com>
30828
30829 PR target/88851
30830 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
30831 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
30832 it and document registers.
30833
30834 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30835
30836 * config/aarch64/aarch64.c (ares_tunings): Define.
30837 * config/aarch64/aarch64-cores.def (ares): Use the above.
30838
30839 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30840
30841 PR target/88794
30842 Revert:
30843 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
30844
30845 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
30846 (_mm512_fixupimm_round_pd): Update parameters and builtin.
30847 (_mm512_maskz_fixupimm_round_pd): Ditto.
30848 (_mm512_fixupimm_round_ps): Ditto.
30849 (_mm512_maskz_fixupimm_round_ps): Ditto.
30850 (_mm_fixupimm_round_sd): Ditto.
30851 (_mm_maskz_fixupimm_round_sd): Ditto.
30852 (_mm_fixupimm_round_ss): Ditto.
30853 (_mm_maskz_fixupimm_round_ss): Ditto.
30854 (_mm512_fixupimm_pd): Ditto.
30855 (_mm512_maskz_fixupimm_pd): Ditto.
30856 (_mm512_fixupimm_ps): Ditto.
30857 (_mm512_maskz_fixupimm_ps): Ditto.
30858 (_mm_fixupimm_sd): Ditto.
30859 (_mm_maskz_fixupimm_sd): Ditto.
30860 (_mm_fixupimm_ss): Ditto.
30861 (_mm_maskz_fixupimm_ss): Ditto.
30862 (_mm512_mask_fixupimm_round_pd): Update builtin.
30863 (_mm512_mask_fixupimm_round_ps): Ditto.
30864 (_mm_mask_fixupimm_round_sd): Ditto.
30865 (_mm_mask_fixupimm_round_ss): Ditto.
30866 (_mm512_mask_fixupimm_pd): Ditto.
30867 (_mm512_mask_fixupimm_ps): Ditto.
30868 (_mm_mask_fixupimm_sd): Ditto.
30869 (_mm_mask_fixupimm_ss): Ditto.
30870 * config/i386/avx512vlintrin.h:
30871 (_mm256_fixupimm_pd): Update parameters and builtin.
30872 (_mm256_maskz_fixupimm_pd): Ditto.
30873 (_mm256_fixupimm_ps): Ditto.
30874 (_mm256_maskz_fixupimm_ps): Ditto.
30875 (_mm_fixupimm_pd): Ditto.
30876 (_mm_maskz_fixupimm_pd): Ditto.
30877 (_mm_fixupimm_ps): Ditto.
30878 (_mm_maskz_fixupimm_ps): Ditto.
30879 (_mm256_mask_fixupimm_pd): Update builtin.
30880 (_mm256_mask_fixupimm_ps): Ditto.
30881 (_mm_mask_fixupimm_pd): Ditto.
30882 (_mm_mask_fixupimm_ps): Ditto.
30883 * config/i386/i386-builtin-types.def: Add new types and remove
30884 useless ones.
30885 * config/i386/i386-builtin.def: Update builtin definitions.
30886 * config/i386/i386.c: Handle new builtin types and remove useless ones.
30887 * config/i386/sse.md: Update VFIXUPIMM* patterns.
30888 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30889 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30890 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
30891 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30892 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30893 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
30894 * config/i386/subst.md:
30895 (round_saeonly_sd_mask_operand4): Add new subst_attr.
30896 (round_saeonly_sd_mask_op4): Ditto.
30897 (round_saeonly_expand_operand5): Ditto.
30898 (round_saeonly_expand): Update.
30899
30900 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30901
30902 PR target/88794
30903 Revert:
30904 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
30905
30906 * config/i386/sse.md: Combine VFIXUPIMM* patterns
30907 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30908 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30909 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
30910 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
30911 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
30912 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
30913
30914 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
30915
30916 PR target/88794
30917 Revert:
30918 2018-12-15 Jakub Jelinek <jakub@redhat.com>
30919
30920 PR target/88489
30921 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
30922 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
30923 instead of UNSPEC_FIXUPIMM.
30924
30925 2019-01-17 Richard Biener <rguenther@suse.de>
30926
30927 PR lto/86736
30928 * dwarf2out.c (want_pubnames): Never generate pubnames sections
30929 and friends for the LTO part of debug info.
30930
30931 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30932
30933 PR tree-optimization/86214
30934 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
30935 if x == y.
30936
30937 PR rtl-optimization/88870
30938 * dce.c (deletable_insn_p): Never delete const/pure calls that can
30939 throw if we can't alter the cfg or delete dead exceptions.
30940 (mark_insn): Don't call find_call_stack_args for such calls.
30941
30942 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
30943
30944 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
30945 prototypes for vec_st.
30946 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
30947 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
30948 mainly on signed/unsigned long long and double.
30949
30950 2019-01-16 David Malcolm <dmalcolm@redhat.com>
30951
30952 PR target/88861
30953 * combine.c (delete_noop_moves): Convert to "bool" return,
30954 returning true if any edges are eliminated.
30955 (combine_instructions): Also return true if delete_noop_moves
30956 returns true.
30957
30958 2019-01-16 Tamar Christina <tamar.christina@arm.com>
30959
30960 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
30961 correct max nunits for endian swap.
30962 (aarch64_expand_fcmla_builtin): Correct subreg code.
30963 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
30964 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
30965 lane endianness.
30966
30967 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
30968
30969 * config/alpha/alpha.c (alpha_gimplify_va_arg):
30970 Handle split indirect COMPLEX_TYPE arguments.
30971
30972 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
30973
30974 PR target/86891
30975 * config/aarch64/aarch64-modes.def: Add comment about how the carry
30976 bit is set by add and compare.
30977 (CC_ADC): New CC_MODE.
30978 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
30979 to cache the code and mode of X. Adjust the shape of a CC_Cmode
30980 comparison. Add detection for CC_ADCmode.
30981 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
30982 CC_ADCmode.
30983 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
30984 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
30985 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
30986 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
30987 to eliminate the need for zero-extending the operands.
30988 (add<mode>3_compareC_imm): Delete. Merge into ...
30989 (add<mode>3_compareC): ... this. Restructure the comparison to
30990 eliminate the need for zero-extending the operands.
30991 (add<mode>3_carryin): Use LTU for the overflow detection.
30992 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
30993 Reexpress comparison for overflow.
30994 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
30995 (add<mode>3_carryinC): Likewise.
30996 (add<mode>3_carryinV): Use LTU for carry between partials.
30997 * config/aarch64/predicates.md (aarch64_carry_operation): Update
30998 handling of CC_Cmode and add CC_ADCmode.
30999 (aarch64_borrow_operation): Likewise.
31000
31001 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31002
31003 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31004 Remove patternmode.
31005 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31006 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31007 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31008 Remove endianness conversion.
31009
31010 2019-01-16 Martin Liska <mliska@suse.cz>
31011
31012 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31013 for GCC driver.
31014 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31015 a new argument.
31016 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31017 (path_prefix_reset): Move up in the source file.
31018 (find_fortran_preinclude_file): Make complex search for the
31019 fortran header files.
31020
31021 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31022
31023 * godump.c (go_output_typedef): When outputting a typedef, refer
31024 to the underlying type by its name and not its structure.
31025
31026 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31027
31028 PR c++/88795
31029 * tree.c (build_function_type): Assert that arg_types is not
31030 error_mark_node.
31031
31032 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31033
31034 PR inline-asm/52813
31035 * doc/extend.texi: Document that listing the stack pointer in the
31036 clobber list of an asm is a deprecated feature.
31037 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31038 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31039 warning instead of an error for clobbers of the stack pointer.
31040 Add a note explaining why.
31041
31042 2019-01-15 Richard Biener <rguenther@suse.de>
31043
31044 PR debug/88046
31045 * dwarf2out.c (gen_member_die): Do not generate inheritance
31046 DIEs late.
31047
31048 2019-01-15 Richard Biener <rguenther@suse.de>
31049
31050 PR tree-optimization/88855
31051 * tree-if-conv.c (combine_blocks): Collect
31052 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
31053
31054 2019-01-15 Tom de Vries <tdevries@suse.de>
31055
31056 PR target/80547
31057 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
31058 lhs == NULL_TREE for gang-level reduction.
31059
31060 2019-01-15 Richard Biener <rguenther@suse.de>
31061 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31062
31063 PR ipa/88788
31064 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
31065 return true if SSA_NAME is already marked in visited bitmap.
31066 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
31067
31068 2019-01-15 Jakub Jelinek <jakub@redhat.com>
31069
31070 PR tree-optimization/88775
31071 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
31072 equal == 0 equality pointer comparisons some more if compared in
31073 integral types and either one points to an automatic var and the
31074 other to a global, or we can prove at least one points to the middle
31075 or both point to start or both point to end.
31076
31077 2019-01-14 Andi Kleen <ak@linux.intel.com>
31078
31079 * Makefile.in: Lower autofdo sampling rate by 10x.
31080 * Makefile.tpl: Dito.
31081
31082 2019-01-14 Tom Honermann <tom@honermann.net>
31083
31084 * defaults.h: Define CHAR8_TYPE.
31085
31086 2019-01-14 Martin Sebor <msebor@redhat.com>
31087
31088 PR target/88638
31089 * doc/extend.texi (Darwin Format Checks): Clarify.
31090
31091 2019-01-14 Richard Biener <rguenther@suse.de>
31092
31093 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
31094 whether we are in (simplify ...) or (match ...) context.
31095
31096 2019-01-14 Jakub Jelinek <jakub@redhat.com>
31097
31098 PR rtl-optimization/88796
31099 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
31100 * cfgexpand.c (stack_protect_prologue): Initialize
31101 crtl->stack_protect_guard_decl.
31102 * function.c (stack_protect_epilogue): Use it instead of calling
31103 targetm.stack_protect_guard again.
31104 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
31105 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
31106 crtl->stack_protect_guard_decl.
31107 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
31108 on the returned MEM_EXPR.
31109
31110 2019-01-12 Tom de Vries <tdevries@suse.de>
31111
31112 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
31113 vector length using -fopenacc-dim.
31114
31115 2019-01-12 Tom de Vries <tdevries@suse.de>
31116
31117 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
31118 lengths into account.
31119
31120 2019-01-12 Svante Signell <svante.signell@gmail.com>
31121
31122 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
31123 (TARGET_CAN_SPLIT_STACK): Define.
31124 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
31125
31126 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31127
31128 * params.def (inline-unit-growth): Set to 40.
31129
31130 2019-01-12 Jakub Jelinek <jakub@redhat.com>
31131
31132 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
31133
31134 2019-01-12 Tom de Vries <tdevries@suse.de>
31135
31136 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
31137 region calling vector-partitionable routine, set default_vector_length
31138 to WARP_SIZE.
31139
31140 2019-01-12 Tom de Vries <tdevries@suse.de>
31141
31142 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
31143 variable default_vector_length.
31144
31145 2019-01-12 Tom de Vries <tdevries@suse.de>
31146
31147 PR middle-end/88703
31148 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
31149 from oacc_default_dims, as oacc_validate_dims would do it, and apply
31150 dimensions limits.
31151
31152 2019-01-12 Tom de Vries <tdevries@suse.de>
31153
31154 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
31155 (nvptx_goacc_validate_dims): Add used parameter.
31156 * doc/tm.texi: Regenerate.
31157 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
31158 argument to call to targetm.goacc.validate_dims.
31159 (default_goacc_validate_dims): Add used
31160 parameter.
31161 * target.def (validate_dims): Add used parameter in DEFHOOK.
31162 * targhooks.h (default_goacc_validate_dims): Add used parameter.
31163
31164 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31165
31166 PR middle-end/85956
31167 PR lto/88733
31168 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
31169 field.
31170 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
31171 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
31172 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
31173 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
31174
31175 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
31176
31177 PR rtl-optimization/87305
31178 * lra-assigns.c
31179 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
31180 for little endian pseudos used as paradoxical subreg.
31181
31182 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31183
31184 PR tree-optimization/88693
31185 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31186 for STRING_CSTs that don't contain any NUL characters in the first
31187 TREE_STRING_LENGTH bytes.
31188
31189 2019-01-11 Alan Modra <amodra@gmail.com>
31190
31191 PR 88777
31192 PR 88614
31193 * genattrtab.c (min_fn): Don't translate values.
31194 (min_attr_value): Return INT_MAX when the value can't be calculated.
31195 Return minimum among any values that can be calculated.
31196 (max_attr_value): Adjust.
31197
31198 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31199
31200 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31201
31202 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31203
31204 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31205 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31206 (aarch64_return_call_with_max_clobbers): New function.
31207 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31208 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31209 argument.
31210 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31211 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31212 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31213 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31214 * cselib.c (cselib_process_insn): Add argument to
31215 targetm.hard_regno_call_part_clobbered call.
31216 * ira-conflicts.c (ira_build_conflicts): Ditto.
31217 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31218 * lra-constraints.c (inherit_reload_reg): Ditto.
31219 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31220 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31221 argument. Call targetm.return_call_with_max_clobbers.
31222 Add argument to targetm.hard_regno_call_part_clobbered call.
31223 (calls_have_same_clobbers_p): New function.
31224 (process_bb_lives): Add call_insn and last_call_insn variables.
31225 Pass call_insn to check_pseudos_live_through_calls.
31226 Modify if stmt to check targetm.return_call_with_max_clobbers.
31227 Update setting of flush variable.
31228 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31229 to false.
31230 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31231 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31232 targetm.hard_regno_call_part_clobbered call.
31233 * reginfo.c (choose_hard_reg_mode): Ditto.
31234 * regrename.c (check_new_reg_p): Ditto.
31235 * reload.c (find_equiv_reg): Ditto.
31236 * reload1.c (emit_reload_insns): Ditto.
31237 * sched-deps.c (deps_analyze_insn): Ditto.
31238 * sel-sched.c (init_regs_for_mode): Ditto.
31239 (mark_unavailable_hard_regs): Ditto.
31240 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31241 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31242 (return_call_with_max_clobbers): New target function.
31243 * doc/tm.texi: Regenerate.
31244 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31245 * hooks.c (hook_bool_uint_mode_false): Change to
31246 hook_bool_insn_uint_mode_false.
31247 * hooks.h (hook_bool_uint_mode_false): Ditto.
31248
31249 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31250
31251 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31252 (aarch64_remove_extra_call_preserved_regs): New function.
31253 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31254 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31255 * doc/tm.texi: Regenerate.
31256 * final.c (get_call_reg_set_usage): Call new hook.
31257 * target.def (remove_extra_call_preserved_regs): New hook.
31258 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31259 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31260
31261 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31262
31263 PR bootstrap/88714
31264 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31265 inside of pass_combine_1 dump rather than pass_profile_1.
31266
31267 2019-01-11 Tom de Vries <tdevries@suse.de>
31268
31269 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31270 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31271 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31272 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31273 num_workers 16.
31274
31275 2019-01-11 Tom de Vries <tdevries@suse.de>
31276
31277 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31278
31279 2019-01-11 Jan Beulich <jbeulich@suse.com>
31280
31281 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31282 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31283 sse2_cvtsi2sd): Add {l}.
31284 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31285 syntax.
31286
31287 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31288
31289 PR target/88785
31290 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31291 define_expand.
31292 (*float<floatunssuffix>v2div2sf2): New define_insn.
31293 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31294 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31295 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31296 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31297 match_operands with "const0_operand" "C".
31298
31299 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31300
31301 * config/aarch64/aarch64-builtins.c
31302 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31303 (aarch64_init_simd_builtins): ...Here
31304
31305 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31306
31307 PR rtl-optimization/87305
31308 * lra-assigns.c
31309 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31310 allocation for big endian pseudos used as paradoxical subregs and
31311 spill them if it is wrong.
31312 * lra-constraints.c (lra_constraints): Add a comment.
31313
31314 2019-01-10 Richard Biener <rguenther@suse.de>
31315
31316 PR tree-optimization/88792
31317 * tree-ssa-pre.c (get_representative_for): Do not return a
31318 value-number here.
31319
31320 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31321
31322 PR middle-end/84877
31323 PR bootstrap/88450
31324 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31325 (assign_parm_setup_block): Do the argument slot realignment here
31326 instead.
31327
31328 2019-01-10 Stefan Agner <stefan@agner.ch>
31329
31330 PR target/88648
31331 * config/arm/arm.c (arm_option_override_internal): Force
31332 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31333
31334 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31335
31336 PR c/88568
31337 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31338 DECL_EXTERNAL.
31339
31340 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31341
31342 * config/arm/arm-builtins.c
31343 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31344 (MAC_LANE_PAIR_QUALIFIERS): New.
31345 (arm_expand_builtin_args): Use it.
31346 (arm_expand_builtin_1): Likewise.
31347 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31348 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31349 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31350 * config/arm/arm_neon.h:
31351 (vcadd_rot90_f16): New.
31352 (vcaddq_rot90_f16): New.
31353 (vcadd_rot270_f16): New.
31354 (vcaddq_rot270_f16): New.
31355 (vcmla_f16): New.
31356 (vcmlaq_f16): New.
31357 (vcmla_lane_f16): New.
31358 (vcmla_laneq_f16): New.
31359 (vcmlaq_lane_f16): New.
31360 (vcmlaq_laneq_f16): New.
31361 (vcmla_rot90_f16): New.
31362 (vcmlaq_rot90_f16): New.
31363 (vcmla_rot90_lane_f16): New.
31364 (vcmla_rot90_laneq_f16): New.
31365 (vcmlaq_rot90_lane_f16): New.
31366 (vcmlaq_rot90_laneq_f16): New.
31367 (vcmla_rot180_f16): New.
31368 (vcmlaq_rot180_f16): New.
31369 (vcmla_rot180_lane_f16): New.
31370 (vcmla_rot180_laneq_f16): New.
31371 (vcmlaq_rot180_lane_f16): New.
31372 (vcmlaq_rot180_laneq_f16): New.
31373 (vcmla_rot270_f16): New.
31374 (vcmlaq_rot270_f16): New.
31375 (vcmla_rot270_lane_f16): New.
31376 (vcmla_rot270_laneq_f16): New.
31377 (vcmlaq_rot270_lane_f16): New.
31378 (vcmlaq_rot270_laneq_f16): New.
31379 (vcadd_rot90_f32): New.
31380 (vcaddq_rot90_f32): New.
31381 (vcadd_rot270_f32): New.
31382 (vcaddq_rot270_f32): New.
31383 (vcmla_f32): New.
31384 (vcmlaq_f32): New.
31385 (vcmla_lane_f32): New.
31386 (vcmla_laneq_f32): New.
31387 (vcmlaq_lane_f32): New.
31388 (vcmlaq_laneq_f32): New.
31389 (vcmla_rot90_f32): New.
31390 (vcmlaq_rot90_f32): New.
31391 (vcmla_rot90_lane_f32): New.
31392 (vcmla_rot90_laneq_f32): New.
31393 (vcmlaq_rot90_lane_f32): New.
31394 (vcmlaq_rot90_laneq_f32): New.
31395 (vcmla_rot180_f32): New.
31396 (vcmlaq_rot180_f32): New.
31397 (vcmla_rot180_lane_f32): New.
31398 (vcmla_rot180_laneq_f32): New.
31399 (vcmlaq_rot180_lane_f32): New.
31400 (vcmlaq_rot180_laneq_f32): New.
31401 (vcmla_rot270_f32): New.
31402 (vcmlaq_rot270_f32): New.
31403 (vcmla_rot270_lane_f32): New.
31404 (vcmla_rot270_laneq_f32): New.
31405 (vcmlaq_rot270_lane_f32): New.
31406 (vcmlaq_rot270_laneq_f32): New.
31407 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31408 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31409 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31410 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31411 vcmlaq_lane270): New.
31412 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31413 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31414 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31415 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31416 (arm_option_reconfigure_globals): Use them.
31417 * config/arm/iterators.md (VDF, VQ_HSF): New.
31418 (VCADD, VCMLA): New.
31419 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31420 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31421 New.
31422 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31423 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31424
31425 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31426
31427 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31428 Add qualifier_lane_pair_index.
31429 (emit-rtl.h): Include.
31430 (TYPES_QUADOP_LANE_PAIR): New.
31431 (aarch64_simd_expand_args): Use it.
31432 (aarch64_simd_expand_builtin): Likewise.
31433 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31434 New.
31435 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31436 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31437 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31438 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31439 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31440 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31441 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31442 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31443 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31444 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31445 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31446 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31447 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31448 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31449 Add __ARM_FEATURE_COMPLEX.
31450 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31451 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31452 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31453 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31454 fcmlaq_lane270): New.
31455 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31456 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31457 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31458 * config/aarch64/arm_neon.h:
31459 (vcadd_rot90_f16): New.
31460 (vcaddq_rot90_f16): New.
31461 (vcadd_rot270_f16): New.
31462 (vcaddq_rot270_f16): New.
31463 (vcmla_f16): New.
31464 (vcmlaq_f16): New.
31465 (vcmla_lane_f16): New.
31466 (vcmla_laneq_f16): New.
31467 (vcmlaq_lane_f16): New.
31468 (vcmlaq_rot90_lane_f16): New.
31469 (vcmla_rot90_laneq_f16): New.
31470 (vcmla_rot90_lane_f16): New.
31471 (vcmlaq_rot90_f16): New.
31472 (vcmla_rot90_f16): New.
31473 (vcmlaq_laneq_f16): New.
31474 (vcmla_rot180_laneq_f16): New.
31475 (vcmla_rot180_lane_f16): New.
31476 (vcmlaq_rot180_f16): New.
31477 (vcmla_rot180_f16): New.
31478 (vcmlaq_rot90_laneq_f16): New.
31479 (vcmlaq_rot270_laneq_f16): New.
31480 (vcmlaq_rot270_lane_f16): New.
31481 (vcmla_rot270_laneq_f16): New.
31482 (vcmlaq_rot270_f16): New.
31483 (vcmla_rot270_f16): New.
31484 (vcmlaq_rot180_laneq_f16): New.
31485 (vcmlaq_rot180_lane_f16): New.
31486 (vcmla_rot270_lane_f16): New.
31487 (vcadd_rot90_f32): New.
31488 (vcaddq_rot90_f32): New.
31489 (vcaddq_rot90_f64): New.
31490 (vcadd_rot270_f32): New.
31491 (vcaddq_rot270_f32): New.
31492 (vcaddq_rot270_f64): New.
31493 (vcmla_f32): New.
31494 (vcmlaq_f32): New.
31495 (vcmlaq_f64): New.
31496 (vcmla_lane_f32): New.
31497 (vcmla_laneq_f32): New.
31498 (vcmlaq_lane_f32): New.
31499 (vcmlaq_laneq_f32): New.
31500 (vcmla_rot90_f32): New.
31501 (vcmlaq_rot90_f32): New.
31502 (vcmlaq_rot90_f64): New.
31503 (vcmla_rot90_lane_f32): New.
31504 (vcmla_rot90_laneq_f32): New.
31505 (vcmlaq_rot90_lane_f32): New.
31506 (vcmlaq_rot90_laneq_f32): New.
31507 (vcmla_rot180_f32): New.
31508 (vcmlaq_rot180_f32): New.
31509 (vcmlaq_rot180_f64): New.
31510 (vcmla_rot180_lane_f32): New.
31511 (vcmla_rot180_laneq_f32): New.
31512 (vcmlaq_rot180_lane_f32): New.
31513 (vcmlaq_rot180_laneq_f32): New.
31514 (vcmla_rot270_f32): New.
31515 (vcmlaq_rot270_f32): New.
31516 (vcmlaq_rot270_f64): New.
31517 (vcmla_rot270_lane_f32): New.
31518 (vcmla_rot270_laneq_f32): New.
31519 (vcmlaq_rot270_lane_f32): New.
31520 (vcmlaq_rot270_laneq_f32): New.
31521 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31522 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31523 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31524 (FCADD, FCMLA): New.
31525 (rot): New.
31526 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31527
31528 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31529
31530 PR other/16615
31531
31532 * config/pa/pa.c: Change "can not" to "cannot".
31533 * gimple-ssa-evrp-analyze.c: Likewise.
31534 * ipa-icf.c: Likewise.
31535 * ipa-polymorphic-call.c: Likewise.
31536 * ipa-pure-const.c: Likewise.
31537 * lra-constraints.c: Likewise.
31538 * lra-remat.c: Likewise.
31539 * reload1.c: Likewise.
31540 * reorg.c: Likewise.
31541 * tree-ssa-uninit.c: Likewise.
31542
31543 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31544
31545 PR other/16615
31546
31547 * Makefile.in: Mechanically replace "can not" with "cannot".
31548 * alias.c: Likewise.
31549 * builtins.c: Likewise.
31550 * calls.c: Likewise.
31551 * cgraph.c: Likewise.
31552 * cgraph.h: Likewise.
31553 * cgraphclones.c: Likewise.
31554 * cgraphunit.c: Likewise.
31555 * combine-stack-adj.c: Likewise.
31556 * combine.c: Likewise.
31557 * common/config/i386/i386-common.c: Likewise.
31558 * config/aarch64/aarch64.c: Likewise.
31559 * config/alpha/sync.md: Likewise.
31560 * config/arc/arc.c: Likewise.
31561 * config/arc/predicates.md: Likewise.
31562 * config/arm/arm-c.c: Likewise.
31563 * config/arm/arm.c: Likewise.
31564 * config/arm/arm.h: Likewise.
31565 * config/arm/arm.md: Likewise.
31566 * config/arm/cortex-r4f.md: Likewise.
31567 * config/csky/csky.c: Likewise.
31568 * config/csky/csky.h: Likewise.
31569 * config/darwin-f.c: Likewise.
31570 * config/epiphany/epiphany.md: Likewise.
31571 * config/i386/i386.c: Likewise.
31572 * config/i386/sol2.h: Likewise.
31573 * config/m68k/m68k.c: Likewise.
31574 * config/mcore/mcore.h: Likewise.
31575 * config/microblaze/microblaze.md: Likewise.
31576 * config/mips/20kc.md: Likewise.
31577 * config/mips/sb1.md: Likewise.
31578 * config/nds32/nds32.c: Likewise.
31579 * config/nds32/predicates.md: Likewise.
31580 * config/pa/pa.c: Likewise.
31581 * config/rs6000/e300c2c3.md: Likewise.
31582 * config/rs6000/rs6000.c: Likewise.
31583 * config/s390/s390.h: Likewise.
31584 * config/sh/sh.c: Likewise.
31585 * config/sh/sh.md: Likewise.
31586 * config/spu/vmx2spu.h: Likewise.
31587 * cprop.c: Likewise.
31588 * dbxout.c: Likewise.
31589 * df-scan.c: Likewise.
31590 * doc/cfg.texi: Likewise.
31591 * doc/extend.texi: Likewise.
31592 * doc/fragments.texi: Likewise.
31593 * doc/gty.texi: Likewise.
31594 * doc/invoke.texi: Likewise.
31595 * doc/lto.texi: Likewise.
31596 * doc/md.texi: Likewise.
31597 * doc/objc.texi: Likewise.
31598 * doc/rtl.texi: Likewise.
31599 * doc/tm.texi: Likewise.
31600 * dse.c: Likewise.
31601 * emit-rtl.c: Likewise.
31602 * emit-rtl.h: Likewise.
31603 * except.c: Likewise.
31604 * expmed.c: Likewise.
31605 * expr.c: Likewise.
31606 * fold-const.c: Likewise.
31607 * genautomata.c: Likewise.
31608 * gimple-fold.c: Likewise.
31609 * hard-reg-set.h: Likewise.
31610 * ifcvt.c: Likewise.
31611 * ipa-comdats.c: Likewise.
31612 * ipa-cp.c: Likewise.
31613 * ipa-devirt.c: Likewise.
31614 * ipa-fnsummary.c: Likewise.
31615 * ipa-icf.c: Likewise.
31616 * ipa-inline-transform.c: Likewise.
31617 * ipa-inline.c: Likewise.
31618 * ipa-polymorphic-call.c: Likewise.
31619 * ipa-profile.c: Likewise.
31620 * ipa-prop.c: Likewise.
31621 * ipa-pure-const.c: Likewise.
31622 * ipa-reference.c: Likewise.
31623 * ipa-split.c: Likewise.
31624 * ipa-visibility.c: Likewise.
31625 * ipa.c: Likewise.
31626 * ira-build.c: Likewise.
31627 * ira-color.c: Likewise.
31628 * ira-conflicts.c: Likewise.
31629 * ira-costs.c: Likewise.
31630 * ira-int.h: Likewise.
31631 * ira-lives.c: Likewise.
31632 * ira.c: Likewise.
31633 * ira.h: Likewise.
31634 * loop-invariant.c: Likewise.
31635 * loop-unroll.c: Likewise.
31636 * lower-subreg.c: Likewise.
31637 * lra-assigns.c: Likewise.
31638 * lra-constraints.c: Likewise.
31639 * lra-eliminations.c: Likewise.
31640 * lra-lives.c: Likewise.
31641 * lra-remat.c: Likewise.
31642 * lra-spills.c: Likewise.
31643 * lra.c: Likewise.
31644 * lto-cgraph.c: Likewise.
31645 * lto-streamer-out.c: Likewise.
31646 * postreload-gcse.c: Likewise.
31647 * predict.c: Likewise.
31648 * profile-count.h: Likewise.
31649 * profile.c: Likewise.
31650 * recog.c: Likewise.
31651 * ree.c: Likewise.
31652 * reload.c: Likewise.
31653 * reload1.c: Likewise.
31654 * reorg.c: Likewise.
31655 * resource.c: Likewise.
31656 * rtl.def: Likewise.
31657 * rtl.h: Likewise.
31658 * rtlanal.c: Likewise.
31659 * sched-deps.c: Likewise.
31660 * sched-ebb.c: Likewise.
31661 * sched-rgn.c: Likewise.
31662 * sel-sched-ir.c: Likewise.
31663 * sel-sched.c: Likewise.
31664 * shrink-wrap.c: Likewise.
31665 * simplify-rtx.c: Likewise.
31666 * symtab.c: Likewise.
31667 * target.def: Likewise.
31668 * toplev.c: Likewise.
31669 * tree-call-cdce.c: Likewise.
31670 * tree-cfg.c: Likewise.
31671 * tree-complex.c: Likewise.
31672 * tree-core.h: Likewise.
31673 * tree-eh.c: Likewise.
31674 * tree-inline.c: Likewise.
31675 * tree-loop-distribution.c: Likewise.
31676 * tree-nrv.c: Likewise.
31677 * tree-profile.c: Likewise.
31678 * tree-sra.c: Likewise.
31679 * tree-ssa-alias.c: Likewise.
31680 * tree-ssa-dce.c: Likewise.
31681 * tree-ssa-dom.c: Likewise.
31682 * tree-ssa-forwprop.c: Likewise.
31683 * tree-ssa-loop-im.c: Likewise.
31684 * tree-ssa-loop-ivcanon.c: Likewise.
31685 * tree-ssa-loop-ivopts.c: Likewise.
31686 * tree-ssa-loop-niter.c: Likewise.
31687 * tree-ssa-phionlycprop.c: Likewise.
31688 * tree-ssa-phiopt.c: Likewise.
31689 * tree-ssa-propagate.c: Likewise.
31690 * tree-ssa-threadedge.c: Likewise.
31691 * tree-ssa-threadupdate.c: Likewise.
31692 * tree-ssa-uninit.c: Likewise.
31693 * tree-ssanames.c: Likewise.
31694 * tree-streamer-out.c: Likewise.
31695 * tree.c: Likewise.
31696 * tree.h: Likewise.
31697 * vr-values.c: Likewise.
31698
31699 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31700
31701 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31702 (ix86_split_xorsign): Ditto.
31703 * config/i386/i386.c (ix86_expand_xorsign): New function.
31704 (ix86_split_xorsign): Ditto.
31705 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31706 (xorsign<mode>3): New expander.
31707 (xorsign<mode>3_1): New insn_and_split pattern.
31708 * config/i386/sse.md (xorsign<mode>3): New expander.
31709
31710 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31711
31712 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31713 (*tablejump_sp64): Likewise.
31714 (*tablejump<P:mode>): ...this.
31715 (*call_address_sp32): Merge into...
31716 (*call_address_sp64): Likewise.
31717 (*call_address<P:mode>): ...this.
31718 (*call_symbolic_sp32): Merge into...
31719 (*call_symbolic_sp64): Likewise.
31720 (*call_symbolic<P:mode>): ...this.
31721 (call_value): Remove constraint and add predicate.
31722 (*call_value_address_sp32): Merge into...
31723 (*call_value_address_sp64): Likewise.
31724 (*call_value_address<P:mode>): ...this.
31725 (*call_value_symbolic_sp32): Merge into...
31726 (*call_value_symbolic_sp64): Likewise.
31727 (*call_value_symbolic<P:mode>): ...this.
31728 (*sibcall_symbolic_sp32): Merge into...
31729 (*sibcall_symbolic_sp64): Likewise.
31730 (*sibcall_symbolic<P:mode>): ...this.
31731 (sibcall_value): Remove constraint and add predicate.
31732 (*sibcall_value_symbolic_sp32): Merge into...
31733 (*sibcall_value_symbolic_sp64): Likewise.
31734 (*sibcall_value_symbolic<P:mode>): ...this.
31735 (window_save): Minor tweak.
31736 (*branch_sp32): Merge into...
31737 (*branch_sp64): Likewise.
31738 (*branch<P:mode>): ...this.
31739
31740 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31741 James Clarke <jrtc27@jrtc27.com>
31742
31743 PR target/84010
31744 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31745 consistently in TLS address generation and adjust code to the renaming
31746 of patterns. Mark calls to __tls_get_addr as const.
31747 * config/sparc/sparc.md (tgd_hi22): Turn into...
31748 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31749 (tgd_lo10): Turn into...
31750 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31751 (tgd_add32): Merge into...
31752 (tgd_add64): Likewise.
31753 (tgd_add<P:mode>): ...this and use Pmode throughout.
31754 (tldm_hi22): Turn into...
31755 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31756 (tldm_lo10): Turn into...
31757 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31758 (tldm_add32): Merge into...
31759 (tldm_add64): Likewise.
31760 (tldm_add<P:mode>): ...this and use Pmode throughout.
31761 (tldm_call32): Merge into...
31762 (tldm_call64): Likewise.
31763 (tldm_call<P:mode>): ...this and use Pmode throughout.
31764 (tldo_hix22): Turn into...
31765 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31766 (tldo_lox10): Turn into...
31767 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31768 (tldo_add32): Merge into...
31769 (tldo_add64): Likewise.
31770 (tldo_add<P:mode>): ...this and use Pmode throughout.
31771 (tie_hi22): Turn into...
31772 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31773 (tie_lo10): Turn into...
31774 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31775 (tie_ld64): Use DImode throughout.
31776 (tie_add32): Merge into...
31777 (tie_add64): Likewise.
31778 (tie_add<P:mode>): ...this and use Pmode throughout.
31779 (tle_hix22_sp32): Merge into...
31780 (tle_hix22_sp64): Likewise.
31781 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31782 (tle_lox22_sp32): Merge into...
31783 (tle_lox22_sp64): Likewise.
31784 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31785 (*tldo_ldub_sp32): Merge into...
31786 (*tldo_ldub_sp64): Likewise.
31787 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31788 (*tldo_ldub1_sp32): Merge into...
31789 (*tldo_ldub1_sp64): Likewise.
31790 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31791 (*tldo_ldub2_sp32): Merge into...
31792 (*tldo_ldub2_sp64): Likewise.
31793 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31794 (*tldo_ldsb1_sp32): Merge into...
31795 (*tldo_ldsb1_sp64): Likewise.
31796 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31797 (*tldo_ldsb2_sp32): Merge into...
31798 (*tldo_ldsb2_sp64): Likewise.
31799 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31800 (*tldo_ldub3_sp64): Use DImode throughout.
31801 (*tldo_ldsb3_sp64): Likewise.
31802 (*tldo_lduh_sp32): Merge into...
31803 (*tldo_lduh_sp64): Likewise.
31804 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31805 (*tldo_lduh1_sp32): Merge into...
31806 (*tldo_lduh1_sp64): Likewise.
31807 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31808 (*tldo_ldsh1_sp32): Merge into...
31809 (*tldo_ldsh1_sp64): Likewise.
31810 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31811 (*tldo_lduh2_sp64): Use DImode throughout.
31812 (*tldo_ldsh2_sp64): Likewise.
31813 (*tldo_lduw_sp32): Merge into...
31814 (*tldo_lduw_sp64): Likewise.
31815 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31816 (*tldo_lduw1_sp64): Use DImode throughout.
31817 (*tldo_ldsw1_sp64): Likewise.
31818 (*tldo_ldx_sp64): Likewise.
31819 (*tldo_stb_sp32): Merge into...
31820 (*tldo_stb_sp64): Likewise.
31821 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
31822 (*tldo_sth_sp32): Merge into...
31823 (*tldo_sth_sp64): Likewise.
31824 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
31825 (*tldo_stw_sp32): Merge into...
31826 (*tldo_stw_sp64): Likewise.
31827 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
31828 (*tldo_stx_sp64): Use DImode throughout.
31829
31830 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31831
31832 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
31833 check configure option to set BTI and Return Address Signing.
31834 * configure.ac: Add --enable-standard-branch-protection and
31835 --disable-standard-branch-protection.
31836 * configure: Regenerated.
31837 * doc/install.texi: Document the same.
31838
31839 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31840 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31841
31842 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
31843 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
31844 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
31845 if bti is enabled.
31846 * config/aarch64/aarch64-bti-insert.c: New file.
31847 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
31848 pass.
31849 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
31850 new bti pass.
31851 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
31852 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
31853 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
31854 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
31855
31856 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31857
31858 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
31859 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
31860 Disable bti for -mbranch-protection=none.
31861 (aarch64_handle_standard_branch_protection): Enable bti for
31862 -mbranch-protection=standard.
31863 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
31864 -mbranch-protection.
31865 (aarch64_bti_enabled): Check if bti is enabled.
31866 * config/aarch64/aarch64.opt: Declare target variable.
31867 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
31868
31869 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31870
31871 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
31872 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
31873 (aarch64_expand_epilogue): Likewise.
31874 (aarch64_output_mi_thunk): Likewise.
31875 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
31876 TAILCALL_ADDR_REGS to x16 and x17.
31877 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
31878
31879 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31880
31881 * config/aarch64/aarch64-option-extensions.def: Define
31882 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
31883 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
31884 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
31885 (AARCH64_FL_PREDRES): New.
31886 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
31887 AARCH64_FL_PREDRES by default.
31888 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
31889
31890 2018-01-09 Sudakshina Das <sudi.das@arm.com>
31891
31892 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
31893 ARMv8.5-A.
31894 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
31895 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
31896 * doc/invoke.texi: Document ARMv8.5-A.
31897
31898 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
31899
31900 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
31901 (xorsign<mode>3): Likewise.
31902
31903 2019-01-09 Jelinek <jakub@redhat.com>
31904
31905 PR middle-end/88758
31906 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
31907 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
31908
31909 PR rtl-optimization/88331
31910 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
31911 not currently_expanding_to_rtl.
31912
31913 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31914
31915 * doc/invoke.texi (-Os): Remove trailing spaces.
31916 (-finline-functions): Remove reference to -O2.
31917
31918 2019-01-08 Jakub Jelinek <jakub@redhat.com>
31919
31920 PR rtl-optimization/79593
31921 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
31922
31923 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
31924 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
31925
31926 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
31927
31928 PR bootstrap/88721
31929 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
31930 to -1 on entry.
31931
31932 PR debug/88723
31933 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
31934 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
31935
31936 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
31937
31938 PR target/88717
31939 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
31940 ix86_avx_u128_mode_entry.
31941
31942 2019-01-08 Martin Liska <mliska@suse.cz>
31943
31944 PR tree-optimization/88753
31945 * tree-switch-conversion.c (switch_conversion::build_one_array):
31946 Come up with local variable constructor. Convert first to
31947 type of constructor values.
31948
31949 2019-01-08 Richard Biener <rguenther@suse.de>
31950
31951 PR tree-optimization/86554
31952 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
31953 rpo_avail): Move earlier.
31954 (visit_nary_op): When value-numbering to expressions
31955 with different overflow behavior make sure there's an
31956 available expression on the path.
31957
31958 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
31959
31960 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
31961 aarch64_parse_branch_protection,
31962 struct aarch64_branch_protect_type,
31963 aarch64_handle_no_branch_protection,
31964 aarch64_handle_standard_branch_protection,
31965 aarch64_validate_mbranch_protection,
31966 aarch64_handle_pac_ret_protection,
31967 aarch64_handle_attr_branch_protection,
31968 accepted_branch_protection_string,
31969 aarch64_pac_ret_subtypes,
31970 aarch64_branch_protect_types,
31971 aarch64_handle_pac_ret_leaf): Define.
31972 (aarch64_override_options_after_change_1, aarch64_override_options):
31973 Add check for accepted_branch_protection_string.
31974 (aarch64_option_save): Save accepted_branch_protection_string.
31975 (aarch64_option_restore): Save accepted_branch_protection_string.
31976 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
31977 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
31978 msign-return-address.
31979 * doc/invoke.texi: Add mbranch-protection.
31980
31981 2019-01-08 Alan Modra <amodra@gmail.com>
31982
31983 PR target/88614
31984 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
31985 Delete "unknownp" parameter. Adjust callers. Handle
31986 CONST_INT, PLUS, MINUS, and MULT.
31987 (attr_value_aligned): Renamed from or_attr_value.
31988 (min_attr_value): Return INT_MIN for unhandled rtl case..
31989 (min_fn): ..and translate to INT_MAX here.
31990 (write_length_unit_log): Modify to cope without "unknown".
31991 (write_attr_value): Handle IF_THEN_ELSE.
31992
31993 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31994
31995 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
31996 optimization for masked stores.
31997
31998 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
31999
32000 PR middle-end/88567
32001 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32002 output vector directly to duplicate_and_interleave instead of
32003 going through a temporary. Postpone insertion of ctor_seq to
32004 the end of the loop.
32005
32006 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32007
32008 PR target/86891
32009 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32010 unsigned_p. Handle signed and unsigned overflow correction as
32011 required.
32012 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32013 prototype.
32014 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32015 for operand 2.
32016 (add<mode>3_compareV_imm): Make this callable for expanding.
32017 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32018 aarch64_plus_operand for operand 2.
32019 (subv<GPI:mode>_insn): New insn pattern.
32020 (subv<GPI:mode>_imm): Likewise.
32021 (negv<GPI:mode>3): New expand pattern.
32022 (negv<GPI:mode>_insn): New insn pattern.
32023 (negv<GPI:mode>_cmp_only): Likewise.
32024 (cmpv<GPI:mode>_insn): Likewise.
32025 (subvti4): Use register_operand for operand 1. Update call to
32026 aarch64_expand_subvti.
32027 (usubvti4): Likewise.
32028 (negvti3): New expand pattern.
32029 (negdi_carryout): New insn pattern.
32030 (negvdi_carryinV): New insn pattern.
32031 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32032 version the named version.
32033 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32034 operands.
32035 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32036 patterns.
32037 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32038 patterns.
32039 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32040 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32041 (sub<mode>3_carryinCV): Delete.
32042 (sub<GPI:mode>3_carryinV): New expand pattern.
32043 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32044
32045 2019-01-07 Richard Biener <rguenther@suse.de>
32046
32047 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
32048 of tree_operand_hash.
32049
32050 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32051
32052 PR tree-optimization/88598
32053 * tree.h (single_nonzero_element): Declare.
32054 * tree.c (single_nonzero_element): New function.
32055 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
32056 if I is the only nonzero element of CST.
32057
32058 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32059
32060 PR tree-optimization/88598
32061 * tree.h (initializer_each_zero_or_onep): Declare.
32062 * tree.c (initializer_each_zero_or_onep): New function.
32063 (signed_or_unsigned_type_for): Handle float types too.
32064 (unsigned_type_for, signed_type_for): Update comments accordingly.
32065 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
32066 x & { 0 or -1, 0 or -1, ... }.
32067
32068 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
32069
32070 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
32071 with x86_64-pc-linux-gnu.
32072
32073 2019-01-07 Tom de Vries <tdevries@suse.de>
32074
32075 PR target/85486
32076 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
32077 function.
32078 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
32079 routines.
32080
32081 2019-01-07 Jakub Jelinek <jakub@redhat.com>
32082
32083 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
32084 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
32085 TARGET_AVX512F as condition.
32086
32087 PR debug/88723
32088 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
32089 const_not_ok_for_debug_p target hook.
32090 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
32091 on UNSPEC and subexpressions thereof if all subexpressions of the
32092 UNSPEC are CONSTANT_P.
32093
32094 PR tree-optimization/88676
32095 * tree-ssa-phiopt.c (two_value_replacement): New function.
32096 (tree_ssa_phiopt_worker): Call it.
32097
32098 PR sanitizer/88619
32099 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
32100 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
32101
32102 PR c++/85052
32103 * tree-vect-generic.c: Include insn-config.h and recog.h.
32104 (expand_vector_piecewise): Add defaulted ret_type argument,
32105 if non-NULL, use that in preference to type for the result type.
32106 (expand_vector_parallel): Formatting fix.
32107 (do_vec_conversion, do_vec_narrowing_conversion,
32108 expand_vector_conversion): New functions.
32109 (expand_vector_operations_1): Call expand_vector_conversion
32110 for VEC_CONVERT ifn calls.
32111 * internal-fn.def (VEC_CONVERT): New internal function.
32112 * internal-fn.c (expand_VEC_CONVERT): New function.
32113 * fold-const-call.c (fold_const_vec_convert): New function.
32114 (fold_const_call): Use it for CFN_VEC_CONVERT.
32115 * doc/extend.texi (__builtin_convertvector): Document.
32116
32117 2019-01-07 Tom de Vries <tdevries@suse.de>
32118
32119 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
32120 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
32121 vector_red_partition, vector_red_sym): New global variables.
32122 (nvptx_option_override): Initialize vector_red_sym.
32123 (nvptx_declare_function_name): Restore red_partition register.
32124 (nvptx_file_end): Emit code to declare the vector reduction variables.
32125 (nvptx_output_red_partition): New function.
32126 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
32127 large vector reductions.
32128 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
32129 (nvptx_init_builtins): Add VECTOR_ADDR.
32130 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
32131 Handle nvptx_expand_shared_addr.
32132 (nvptx_get_shared_red_addr): Add vector argument and handle large
32133 vectors.
32134 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
32135 large vectors.
32136 (nvptx_goacc_reduction_init): Likewise.
32137 (nvptx_goacc_reduction_fini): Likewise.
32138 (nvptx_goacc_reduction_teardown): Likewise.
32139 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
32140 init,fini,teardown}.
32141 (nvptx_init_axis_predicate): Initialize vector_red_partition.
32142 (nvptx_set_current_function): Init vector_red_partition.
32143 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
32144 (nvptx_red_partition): New insn.
32145 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
32146
32147 2019-01-07 Tom de Vries <tdevries@suse.de>
32148
32149 PR target/85381
32150 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
32151 empty loops.
32152
32153 2019-01-07 Tom de Vries <tdevries@suse.de>
32154
32155 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
32156 (nvptx_option_override): Init oacc_bcast_partition.
32157 (nvptx_init_oacc_workers): New function.
32158 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
32159 (nvptx_needs_shared_bcast): New function.
32160 (nvptx_find_par): Generalize to enable vectors to use shared-memory
32161 to propagate state.
32162 (nvptx_shared_propagate): Initialize vector bcast partition and
32163 synchronization state.
32164 (nvptx_single): Generalize to enable vectors to use shared-memory
32165 to propagate state.
32166 (nvptx_process_pars): Likewise.
32167 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
32168 * config/nvptx/nvptx.h (struct machine_function): Add
32169 bcast_partition and sync_bar members.
32170
32171 2019-01-07 Tom de Vries <tdevries@suse.de>
32172
32173 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
32174 (nvptx_apply_dim_limits): New function.
32175 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
32176 PTX_WARP_SIZE.
32177
32178 2019-01-07 Tom de Vries <tdevries@suse.de>
32179
32180 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
32181 as late as possible.
32182
32183 2019-01-07 Tom de Vries <tdevries@suse.de>
32184
32185 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32186 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32187 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32188 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32189 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32190
32191 2019-01-07 Tom de Vries <tdevries@suse.de>
32192
32193 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32194
32195 2019-01-07 Tom de Vries <tdevries@suse.de>
32196
32197 * omp-offload.c (oacc_get_min_dim): New function.
32198 * omp-offload.h (oacc_get_min_dim): Declare.
32199
32200 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32201
32202 PR target/88521
32203 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32204 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32205
32206 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32207
32208 PR tree-opt/86020
32209 Revert:
32210 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32211
32212 * ipa-inline.c (edge_badness): Use inlined_time instead of
32213 inline_summaries->get.
32214
32215 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32216
32217 * opts.c (enable_fdo_optimizations): Enable
32218 version-loops-for-strides, loop-interchange, unrol-and-jam
32219 and tree-loop-distribution.
32220 * invoke.texi: Document newly enabled options.
32221
32222 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32223
32224 * doc/invoke.texi (max-inline-insns-small): New parameters.
32225 * ipa-inline.c (want_early_inline_function_p): simplify.
32226 (want_inline_small_function_p): Fix pasto from previous patch;
32227 use max-inline-insns-small bound.
32228 * params.def (max-inline-insns-small): New param.
32229 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32230 variables correctly.
32231
32232 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32233
32234 * doc/invoke.texi: Document max-inline-insns-size,
32235 uninlined-function-insns, uninlined-function-time,
32236 uninlined-thunk-insns and uninlined-thunk-time.
32237 * params.def: Add max-inline-insns-size,
32238 uninlined-function-insns, uninlined-function-time,
32239 uninlined-thunk-insns and uninlined-thunk-time.
32240 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32241 new parameters.
32242 * ipa-inline.c (can_inline_edge_by_limits_p,
32243 want_inline_small_function_p): Use new parameters.
32244
32245 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32246
32247 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32248
32249 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32250
32251 PR middle-end/82564
32252 PR target/88620
32253 * expr.c (expand_assignment): For calls returning VLA structures
32254 if to_rtx is not a MEM, force it into a stack temporary.
32255
32256 PR debug/88635
32257 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32258 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32259 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32260 subexpressions of both operands.
32261 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32262 subrtxes are CONSTANT_P.
32263 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32264 2018-11-09 changes.
32265
32266 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32267
32268 * params.def (hot-bb-count-ws-permille): Set to 990.
32269
32270 2019-01-04 Martin Sebor <msebor@redhat.com>
32271
32272 PR c/88546
32273 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32274 leaf.
32275
32276 2019-01-04 Martin Sebor <msebor@redhat.com>
32277
32278 PR c/88363
32279 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32280
32281 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32282
32283 * gdbinit.in: Turn off pagination for the skip commands, restore
32284 it to previous state afterwards.
32285
32286 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32287
32288 PR target/88594
32289 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32290 of GET_MODE (opN) as modes of the libcall arguments.
32291
32292 2019-01-04 Jan Beulich <jbeulich@suse.com>
32293
32294 * config/i386/sse.md
32295 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32296 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32297 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32298 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32299 avx512f_vmcmp<mode>3<round_saeonly_name>,
32300 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32301 avx512f_maskcmp<mode>3,
32302 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32303 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32304 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32305 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32306 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32307 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32308 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32309 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32310 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32311 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32312 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32313 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32314 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32315 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32316 avx512cd_maskb_vec_dup<mode>,
32317 avx512cd_maskw_vec_dup<mode>,
32318 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32319 avx512dq_vmfpclass<mode>,
32320 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32321 instead of =Yk.
32322
32323 2019-01-03 Martin Sebor <msebor@redhat.com>
32324
32325 PR tree-optimization/88659
32326 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32327
32328 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32329
32330 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32331 unaligned vsx and avoid lxvd2x/stxvd2x.
32332 (gen_lvx_v4si_move): New function.
32333
32334 2019-01-03 Tom de Vries <tdevries@suse.de>
32335
32336 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32337 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32338 function.
32339 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32340
32341 2019-01-03 Tom de Vries <tdevries@suse.de>
32342
32343 * config/nvptx/nvptx.c (struct offload_attrs): New.
32344 (populate_offload_attrs): New function. Factor mask extraction out of
32345 nvptx_reorg. Add extraction of dimensions.
32346 (nvptx_reorg): Use populate_offload_attrs.
32347
32348 2019-01-03 Tom de Vries <tdevries@suse.de>
32349
32350 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32351 cases for oacc_min_dims_p and routine_p. Add asserts for
32352 oacc_default_dims_p and offload_region_p.
32353
32354 2019-01-03 Tom de Vries <tdevries@suse.de>
32355
32356 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32357 factored out of ...
32358 (nvptx_goacc_validate_dims): ... here.
32359
32360 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32361
32362 PR tree-optimization/85574
32363 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32364 structure.
32365 (struct ssa_equip_hash_traits): Declare.
32366 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32367
32368 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32369
32370 PR debug/88644
32371 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32372 change it to qualified_type.
32373
32374 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32375
32376 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32377 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32378
32379 2019-01-02 Martin Sebor <msebor@redhat.com>
32380 Jeff Law <law@redhat.com>
32381
32382 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32383 (get_range_strlen_tree): Update appropriately.
32384 (get_range_strlen)
32385 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32386
32387 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32388 rather than set_range_info.
32389 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32390 maybe_set_strlen_range. Handle potentially boundary crossing
32391 cases more conservatively.
32392 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32393 Call set_strlen_range.
32394 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32395
32396 PR middle-end/88663
32397 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32398 need the flexp argument.
32399 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32400 from calls to get_range_strlen. Update comments. Just update
32401 VAL for an unterminated const char array and let the reset of the
32402 code handle it normally. No longer try to set *flexp. Adjust
32403 return value.
32404 (get_range_strlen): Update for the new get_range_strlen API.
32405 (get_maxval_strlen): Similarly.
32406 (gimple_fold_builtin_strlen): Handle update meaning of return value
32407 from get_range_strlen.
32408 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32409 get_range_strlen API.
32410
32411 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32412
32413 PR lto/88130
32414 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32415 false at WPA time when body was removed.
32416
32417 2019-01-02 Martin Liska <mliska@suse.cz>
32418
32419 PR tree-optimization/88650
32420 * predict.c (set_even_probabilities): Calculate probability
32421 remainer only when really used.
32422
32423 2019-01-02 Richard Biener <rguenther@suse.de>
32424
32425 PR middle-end/88651
32426 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32427 widest_ints when mangling max_stmt_execution results.
32428
32429 2019-01-02 Richard Biener <rguenther@suse.de>
32430
32431 PR tree-optimization/88621
32432 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32433 bitfields when canoncalizing.
32434
32435 2019-01-02 Richard Biener <rguenther@suse.de>
32436
32437 PR target/87545
32438 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32439 cost of cheap SSE instruction.
32440
32441 2019-01-02 Richard Biener <rguenther@suse.de>
32442
32443 PR ipa/85574
32444 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32445 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32446 function.
32447 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32448 set after UIDs before splitting them.
32449
32450 2019-01-01 Martin Sebor <msebor@redhat.com>
32451 Jeff Law <law@redhat.com>
32452
32453 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32454 length is optimistic. If it is, then arrange to compute the
32455 conservative length as well.
32456
32457 * gimple-fold.h (get_range_strlen): Update prototype.
32458 * builtins.c (check_access): Update call to get_range_strlen to use
32459 c_strlen_data pointer. Change various variable accesses to instead
32460 pull data from the c_strlen_data structure.
32461 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32462 * calls.c (maybe_warn_nonstring_arg): Likewise.
32463 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32464 minimum length if maximum lengh is unknown.
32465 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32466 that used c_strlen, it's no longer needed. Restructure slightly.
32467 (format_string): Set unlikely range appropriately.
32468 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32469 formatting issues.
32470 (get_range_strlen): Accept c_strlen_data pointer for external
32471 call sites as well. Pass through to call to internal get_range_strlen.
32472 Adjust minlen, maxlen and maxbound as needed.
32473 (get_maxval_strlen): Update comments.
32474 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32475 to use c_strlen_data pointer. Change variable accesses to instead
32476 use c_strlen_data data members.
32477
32478 * gimple-fold.c (get_range_strlen): Update prototype.
32479 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32480 local variables. Use pdata to return information to caller.
32481 Update calls to get_range_strlen. Update pdata->maxbound.
32482 (get_range_strlen -- static version): Similarly.
32483 (get_range_strlen -- extern version): Update for internal
32484 get_range_strlen API change. Convert to external data format.
32485 (get_maxval_strlen): Similarly.
32486
32487 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32488
32489 * coverage.c (get_coverage_counts): Use current_function_decl.
32490 * profile.c (read_thunk_profile): New function.
32491 (branch_prob): Add THUNK parameter.
32492 * tree-profile.c (tree_profiling): Handle thunks.
32493 * value-prof.c (init_node_map): Handle thunks.
32494 * value-prof.h (branch_prob): Upate prototype.
32495 (read_thunk_profile): Declare.
32496
32497 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32498
32499 Update copyright years.
32500
32501 * gcc.c (process_command): Update copyright notice dates.
32502 * gcov-dump.c (print_version): Ditto.
32503 * gcov.c (print_version): Ditto.
32504 * gcov-tool.c (print_version): Ditto.
32505 * gengtype.c (create_file): Ditto.
32506 * doc/cpp.texi: Bump @copying's copyright year.
32507 * doc/cppinternals.texi: Ditto.
32508 * doc/gcc.texi: Ditto.
32509 * doc/gccint.texi: Ditto.
32510 * doc/gcov.texi: Ditto.
32511 * doc/install.texi: Ditto.
32512 * doc/invoke.texi: Ditto.
32513 \f
32514 Copyright (C) 2019 Free Software Foundation, Inc.
32515
32516 Copying and distribution of this file, with or without modification,
32517 are permitted in any medium without royalty provided the copyright
32518 notice and this notice are preserved.