1 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3 PR tree-optimization/92515
4 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
5 types when converting a vector/scalar shift into a vector/vector one,
6 using tree_nop_conversion_p instead of useless_type_conversion_p.
7 Move the conversion code to the transform block.
9 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
12 (function_reader::add_fixup_source_location): Take additional
13 parameter of a column.
14 (function_reader::maybe_read_location): Optionally parse column
15 information and pass to add_fixup_source_location.
17 2019-11-15 Richard Biener <rguenther@suse.de>
19 PR tree-optimization/92512
20 * tree-vect-loop.c (check_reduction_path): Fix operand index
21 computability check. Add check for second use in COND_EXPRs.
23 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
26 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
27 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
29 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
31 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
32 register class for VCC_LO and VCC_HI.
33 (gcn_spill_class): Use SGPR_REGS to spill registers in
36 2019-11-15 Richard Biener <rguenther@suse.de>
38 PR tree-optimization/92324
39 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
40 singedness of SLP reduction epilouge operations. Also reduce
41 the vector width for SLP reductions before doing elementwise
42 operations if possible.
44 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
46 * passes.c (skip_pass): Set epilogue_completed if skipping the
47 pro_and_epilogue pass.
49 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
51 * passes.c (should_skip_pass_p): Always run "dfinish".
53 2019-11-15 Richard Biener <rguenther@suse.de>
55 * ipa-inline.c (inline_small_functions): Move assignment
56 to next before call destroying edge.
58 2019-11-15 Richard Biener <rguenther@suse.de>
60 PR tree-optimization/92039
61 PR tree-optimization/91975
62 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
63 previous change, treat invariants consistently as non-constant.
64 (tree_estimate_loop_size): Ternary ops with just the first op
65 constant are not optimized away.
67 2019-11-15 Jakub Jelinek <jakub@redhat.com>
69 * gimplify.c (gimplify_call_expr): Don't call
70 omp_resolve_declare_variant after gimplification.
71 * omp-general.c (omp_context_selector_matches): For isa that might
72 match in some other function, defer if in declare simd function.
73 (omp_context_compute_score): Don't look for " score" in construct
74 trait set. Set *score to -1 if it can't ever match.
75 (omp_resolve_declare_variant): If any variants need to be deferred,
76 don't punt immediately, but compute scores of all variants and if
77 ther eis a score winner that doesn't need to be deferred, return that.
79 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
81 * ipa-comdats.c: Fix comments typo.
82 * ipa-profile.c: Fix comments typo.
83 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
84 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
85 (gimple_gen_ic_func_profiler): Likewise.
86 (pass_ipa_tree_profile::gate): Fix comments typo.
88 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
90 * ipa-inline.c (inline_small_functions): Update iterator of next.
92 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
94 * lra-spills.c (assign_spill_hard_regs): Check that the spill
95 register is suitable for the mode.
97 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
99 * range-op.h (range_operator::fold_range): Return a bool.
100 * range-op.cc (range_operator::wi_fold): Assert supported type.
101 (range_operator::fold_range): Assert supported type and return true.
102 (operator_equal::fold_range): Return true.
103 (operator_not_equal::fold_range): Same.
104 (operator_lt::fold_range): Same.
105 (operator_le::fold_range): Same.
106 (operator_gt::fold_range): Same.
107 (operator_ge::fold_range): Same.
108 (operator_plus::op1_range): Adjust call to fold_range.
109 (operator_plus::op2_range): Same.
110 (operator_minus::op1_range): Same.
111 (operator_minus::op2_range): Same.
112 (operator_exact_divide::op1_range): Same.
113 (operator_lshift::fold_range): Return true and adjust fold_range call.
114 (operator_rshift::fold_range): Same.
115 (operator_cast::fold_range): Return true.
116 (operator_logical_and::fold_range): Same.
117 (operator_logical_or::fold_range): Same.
118 (operator_logical_not::fold_range): Same.
119 (operator_bitwise_not::fold_range): Adjust call to fold_range.
120 (operator_bitwise_not::op1_range): Same.
121 (operator_cst::fold_range): Return true.
122 (operator_identity::fold_range): Return true.
123 (operator_negate::fold_range): Return true and adjust fold_range call.
124 (operator_addr_expr::fold_range): Return true.
125 (operator_addr_expr::op1_range): Adjust call to fold_range.
127 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
128 (range_fold_unary_symbolics_p): Same.
130 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
132 PR tree-optimization/92506
133 * range-op.cc (range_operator::fold_range): Start with range undefined.
134 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
137 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
139 * range-op.cc (*operator*::*range): Remove calls to
140 range_intersect, range_invert, and range_union in favor of calling
141 the in-place API methods.
143 * range.cc (range_intersect): Remove.
144 (range_union): Remove.
145 (range_invert): Remove.
146 * range.h (range_intersect): Remove.
147 (range_union): Remove.
148 (range_intersect): Remove.
150 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
152 PR rtl-optimization/92430
153 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
154 (pass_jump_after_combine::execute): Perform jump threading
157 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
158 Doug Rupp <rupp@adacore.com>
159 Olivier Hainque <hainque@adacore.com>
161 * config.gcc: Collapse the arm-vxworks entries into
162 a single arm-wrs-vxworks7* one, bpabi based. Update
163 the default cpu from arm8 to armv7-a
164 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
165 we always use ARM_UNWIND_INFO.
166 (DWARF2_UNWIND_INFO): Remove redefinition.
167 (ARM_TARGET2_DWARF_FORMAT): Likewise.
168 (VXWORKS_PERSONALITY): Define, to "llvm".
169 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
171 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
173 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
174 _VX_CPU instead of CPU and handle arm_arch8.
176 2019-11-14 Doug Rupp <rupp@adacore.com>
177 Olivier Hainque <hainque@adacore.com>
178 Jerome Lambourg <lambourg@adacore.com>
180 * config.gcc: Handle aarch64*-wrs-vxworks7*.
181 * config/aarch64/aarch64-vxworks.h: New file.
182 * config/aarch64/t-aarch64-vxworks: New file.
184 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
185 Olivier Hainque <hainque@adacore.com>
187 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
188 definition, pointless with a VxWorks specific version
190 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
191 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
192 New local macros, controlling the addition of vxworks specific
193 crtstuff objects depending on the EH mechanism and kind of
195 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
197 2019-11-06 Pat Bernardi <bernardi@adacore.com>
198 Jerome Lambourg <lambourg@adacore.com>
199 Olivier Hainque <hainque@adacore.com>
201 * config.gcc: Add comment to introduce the TARGET_VXWORKS
202 common macro definitions, conveying VXWORKS7 or 64bit general
203 variations. Add a block to set gcc_cv_initfini_array
204 unconditionally to "yes" for VxWorks7.
205 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
206 by default. Update some comments.
207 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
208 default, to be added the end of VXWORKS_LIBS_RTP.
209 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
210 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
212 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
213 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
214 to account for the now available TLS abilities.
215 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
216 (VXWORKS_HAVE_TLS): Likewise.
218 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
220 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
221 (vect_slp_convert_to_external): Likewise.
222 (vect_slp_analyze_node_operations): If analysis fails, try building
223 the node from scalars instead.
225 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
227 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
228 between vector types.
229 * tree-vect-stmts.c (vectorizable_conversion): Extend the
230 non-widening and non-narrowing path to handle standard
231 conversion codes, if the target supports them.
232 * expr.c (convert_move): Try using the extend and truncate optabs
234 * optabs-tree.c (supportable_convert_operation): Likewise.
235 * config/aarch64/iterators.md (Vnarroqw): New iterator.
236 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
237 (trunc<mode><Vnarrowq>2): New patterns.
239 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
241 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
242 require vectype and nunits_vectype to have the same size;
243 instead assert that nunits_vectype has at least as many
244 elements as vectype. Don't compute a separate nunits_vectype
245 if the scalar type is obviously the same as vectype's.
248 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
250 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
252 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
253 (TARGET_VECTORIZE_RELATED_MODE): Define.
255 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
257 * tree-vectorizer.h (vec_info::mode_set): New typedef.
258 (vec_info::used_vector_mode): New member variable.
259 (vect_chooses_same_modes_p): Declare.
260 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
261 chosen vector mode in vec_info::used_vector_mode.
262 (vect_chooses_same_modes_p): New function.
263 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
264 the same vector statements multiple times.
265 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
267 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
269 * machmode.h (opt_machine_mode::operator==): New function.
270 (opt_machine_mode::operator!=): Likewise.
271 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
272 (get_related_vectype_for_scalar_type): Delete.
273 (get_vectype_for_scalar_type_and_size): Declare.
274 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
275 whether analysis passed or failed, and with what vector modes.
276 Use related_vector_mode to check whether trying a particular
277 vector mode would be redundant with the autodetected mode,
278 and print a dump message if we decide to skip it.
279 * tree-vect-loop.c (vect_analyze_loop): Likewise.
280 (vect_create_epilog_for_reduction): Use
281 get_related_vectype_for_scalar_type instead of
282 get_vectype_for_scalar_type_and_size.
283 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
285 (get_related_vectype_for_scalar_type): ...this new function.
286 Take a starting/"prevailing" vector mode rather than a vector size.
287 Take an optional nunits argument, with the same meaning as for
288 related_vector_mode. Use related_vector_mode when not
289 auto-detecting a mode, falling back to mode_for_vector if no
291 (get_vectype_for_scalar_type): Update accordingly.
292 (get_same_sized_vectype): Likewise.
293 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
295 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
297 * tree-vect-stmts.c (vectorizable_call): Require the types
298 to have the same size.
300 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
302 * tree-vect-stmts.c (vectorizable_call): If an operand is
303 constant or external, use get_vectype_for_scalar_type
304 rather than get_same_sized_vectype to get its vector type.
305 (vectorizable_conversion, vectorizable_shift): Likewise.
306 (vectorizable_operation): Likewise.
308 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
310 * tree-vectorizer.h (vec_info::vector_size): Replace with...
311 (vec_info::vector_mode): ...this new field.
312 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
313 (vect_analyze_loop, vect_transform_loop): Likewise.
314 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
315 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
316 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
317 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
318 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
320 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
322 * target.h (vector_sizes, auto_vector_sizes): Delete.
323 (vector_modes, auto_vector_modes): New typedefs.
324 * target.def (autovectorize_vector_sizes): Replace with...
325 (autovectorize_vector_modes): ...this new hook.
326 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
328 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
329 * doc/tm.texi: Regenerate.
330 * targhooks.h (default_autovectorize_vector_sizes): Delete.
331 (default_autovectorize_vector_modes): New function.
332 * targhooks.c (default_autovectorize_vector_sizes): Delete.
333 (default_autovectorize_vector_modes): New function.
334 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
335 of autovectorize_vector_sizes. Use the number of units in the mode
336 to calculate the maximum VF.
337 * omp-low.c (omp_clause_aligned_alignment): Use
338 autovectorize_vector_modes instead of autovectorize_vector_sizes.
339 Use a loop based on related_mode to iterate through all supported
340 vector modes for a given scalar mode.
341 * optabs-query.c (can_vec_mask_load_store_p): Use
342 autovectorize_vector_modes instead of autovectorize_vector_sizes.
343 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
344 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
345 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
347 (aarch64_autovectorize_vector_modes): ...this new function.
348 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
349 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
350 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
351 (arc_autovectorize_vector_modes): ...this new function.
352 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
353 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
354 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
355 (arm_autovectorize_vector_modes): ...this new function.
356 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
357 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
358 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
359 (ix86_autovectorize_vector_modes): ...this new function.
360 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
361 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
362 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
363 (mips_autovectorize_vector_modes): ...this new function.
364 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
365 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
367 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
369 * tree-vect-stmts.c (vectorizable_shift): Check the number
370 of vector elements as well as the type mode when deciding
371 whether an op1_vectype is compatible. Reuse the result of
372 this check when generating vector statements.
374 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
376 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
377 targetm.vectorize.preferred_simd_mode returns an integer mode,
378 use mode_for_vector to decide what the vector type's mode
379 should actually be. Use build_vector_type_for_mode instead
380 of build_vector_type.
382 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
384 * target.def (get_mask_mode): Take a vector mode itself as argument,
385 instead of properties about the vector mode.
386 * doc/tm.texi: Regenerate.
387 * targhooks.h (default_get_mask_mode): Update to reflect new
388 get_mode_mask interface.
389 * targhooks.c (default_get_mask_mode): Likewise. Use
390 related_int_vector_mode.
391 * optabs-query.c (can_vec_mask_load_store_p): Update call
393 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
394 first that the original mode really is a vector.
395 * tree.c (build_truth_vector_type_for): Likewise.
396 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
397 get_mode_mask interface.
398 (aarch64_expand_sve_vcond): Update call accordingly.
399 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
400 get_mode_mask interface.
401 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
403 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
405 * tree.h (build_truth_vector_type): Delete.
406 (build_same_sized_truth_vector_type): Likewise.
407 * tree.c (build_truth_vector_type): Rename to...
408 (build_truth_vector_type_for): ...this. Make static and take
409 a vector type as argument.
410 (truth_type_for): Update accordingly.
411 (build_same_sized_truth_vector_type): Delete.
412 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
413 instead of build_same_sized_truth_vector_type.
414 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
415 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
416 * tree-vect-patterns.c (build_mask_conversion): Likeise.
417 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
418 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
419 (vect_build_gather_load_calls, vectorizable_call): Likewise.
420 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
421 (vectorizable_store, vectorizable_condition): Likewise.
422 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
423 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
424 build_truth_vector_type.
425 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
426 Use truth_type_for instead of build_same_sized_truth_vector_type.
427 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
429 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
431 * tree.h (build_truth_vector_type_for_mode): Declare.
432 * tree.c (build_truth_vector_type_for_mode): New function,
434 (build_truth_vector_type): ...here.
435 (build_opaque_vector_type): Fix head comment.
436 * tree-vectorizer.h (supportable_narrowing_operation): Remove
438 (vect_halve_mask_nunits): Replace vec_info parameter with the
439 mode of the new vector.
440 (vect_double_mask_nunits): Likewise.
441 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
442 (vect_double_mask_nunits): Likewise.
443 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
444 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
445 to vect_halve_mask_nunits, getting the required mode from the unpack
447 (vect_set_loop_condition_masked): Update call accordingly.
448 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
449 parameter and update call to vect_double_mask_nunits.
450 (vectorizable_conversion): Update call accordingly.
451 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
452 (vectorizable_call): Update call accordingly.
453 (supportable_widening_operation): Update call to
454 vect_halve_mask_nunits.
455 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
456 Use build_truth_vector_type_mode instead of build_truth_vector_type.
458 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
460 * machmode.h (mode_for_int_vector): Delete.
461 (related_int_vector_mode): Declare.
462 * stor-layout.c (mode_for_int_vector): Delete.
463 (related_int_vector_mode): New function.
464 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
465 instead of mode_for_int_vector.
466 (expand_vec_perm_const): Likewise.
467 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
468 (aarch64_evpc_sve_tbl): Likewise.
469 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
470 (s390_expand_vcond): Likewise.
472 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
474 * target.def (related_mode): New hook.
475 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
476 * doc/tm.texi: Regenerate.
477 * targhooks.h (default_vectorize_related_mode): Declare.
478 * targhooks.c (default_vectorize_related_mode): New function.
479 * machmode.h (related_vector_mode): Declare.
480 * stor-layout.c (related_vector_mode): New function.
481 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
482 * optabs-query.c (qimode_for_vec_perm): Likewise.
483 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
484 (vectorizable_store, vectorizable_load): Likewise
486 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
488 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
489 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
490 * config/arm/arm-c.c (arm_cpu_builtins): Define
491 __GCC_ASM_FLAG_OUTPUTS__.
492 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
493 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
494 Define __GCC_ASM_FLAG_OUTPUTS__.
495 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
496 * doc/extend.texi (FlagOutputOperands): Add documentation
499 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
500 * config/arm/predicates.md (nz_comparison_operator): Rename
501 from noov_comparison_operator.
502 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
503 (arm_gen_dicompare_reg): Likewise.
504 (maybe_get_arm_condition_code): Likewise.
505 (thumb1_final_prescan_insn): Likewise.
506 (arm_emit_coreregs_64bit_shift): Likewise.
507 * config/arm/arm.md (addsi3_compare0): Likewise.
508 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
509 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
510 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
511 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
512 (*mulsi3addsi_compare0_scratch): Likewise.
513 (*mulsi3addsi_compare0_scratch_v6): Likewise.
514 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
515 (*zeroextractsi_compare0_scratch): Likewise.
516 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
517 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
518 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
519 (andsi_not_shiftsi_si_scc): Likewise.
520 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
521 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
522 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
523 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
524 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
525 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
526 (return_addr_mask, *check_arch2): Likewise.
527 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
528 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
529 (compare_scc splitters): Likewise.
530 (movcond_addsi): Likewise.
531 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
532 (*thumb2_addsi3_compare0_scratch): Likewise.
533 (*thumb2_mulsi_short_compare0): Likewise.
534 (*thumb2_mulsi_short_compare0_scratch): Likewise.
535 (compare peephole2s): Likewise.
536 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
537 nz_comparison_operator names.
538 (cbranchsi4_insn): Likewise.
540 * config/arm/constraints.md (c): Use cc_register predicate.
542 * config/aarch64/constraints.md (c): New constraint.
544 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
546 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
547 ipa_merge_fn_summary_after_inlining): Micro optimize.
549 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
551 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
553 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
555 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
556 (ipa_value_range_from_jfunc): New function.
557 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
558 known_value_ranges parameter; use it to evalulate conditions.
559 (evaluate_properties_for_edge): Compute known value ranges.
560 (ipa_fn_summary_t::duplicate): Update use of
561 evaluate_conditions_for_known_args.
562 (estimate_ipcp_clone_size_and_time): Likewise.
563 (ipa_merge_fn_summary_after_inlining): Likewise.
564 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
566 2019-11-14 Martin Liska <mliska@suse.cz>
568 * ipa-inline.c (want_inline_small_function_p): Use
569 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
570 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
572 2019-11-14 Martin Liska <mliska@suse.cz>
574 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
575 of a callee to get value of the param.
576 * ipa-inline.c (inline_insns_auto): Use proper
578 * opts.c (maybe_default_option): Do not overwrite param
579 value if optimization level does not match. Note that
580 params usually have default value set via Init() keyword.
581 * params.opt: Remove -param=max-inline-insns-auto-O2.
582 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
583 * doc/invoke.texi: Remove documentation of
584 max-inline-insns-auto-O2.
586 2019-11-14 Martin Liska <mliska@suse.cz>
588 * tree-switch-conversion.c (switch_conversion::switch_conversion):
589 Do not initialize m_other_count.
590 (switch_conversion::collect): Do not count m_default_count and
591 m_other_count as we use frequencies for edges.
592 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
594 2019-11-14 Martin Liska <mliska@suse.cz>
597 * doc/invoke.texi: Document -fallocation-dce.
599 2019-11-14 Martin Liska <mliska@suse.cz>
602 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
603 PTA_ICELAKE_CLIENT which is later interited by
604 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
606 2019-11-14 Martin Liska <mliska@suse.cz>
608 * ipa-icf.c (sem_item_optimizer::execute): Save
610 (sem_item_optimizer::parse_nonsingleton_classes):
611 Return number of loaded symbols.
612 (sem_item_optimizer::merge_classes): Print
613 statistics about totally needed symbols.
614 * ipa-icf.h (parse_nonsingleton_classes): Change return
616 (merge_classes): Add one argument.
618 2019-11-14 Martin Liska <mliska@suse.cz>
620 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
621 func_checker::hash_operand by handling of FIELD_DECLs.
623 2019-11-14 Martin Liska <mliska@suse.cz>
625 * ipa-icf-gimple.h (func_checker::func_checker): Add
627 * ipa-icf.c (sem_function::init): Make operand_equal_p
628 and hash_operand public.
629 (sem_item::add_expr): Remove.
630 (sem_item::add_type): Remove.
631 (sem_function::hash_stmt): Use m_checker for hashing
632 of GIMPLE statements.
633 (sem_function::parse): Init with checker.
634 (sem_variable::parse): Pass NULL as checker.
635 (sem_item_optimizer::parse_funcs_and_vars):
636 Pass checker to ::parse function.
637 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
638 (sem_variable::parse): New function.
639 (sem_variable::get_hash): Only return computed hash value.
640 (sem_variable::init): Initialize hash of a variable.
641 * ipa-icf.h: Remove add_expr, add_type and add func_checker
642 to couple of functions as a new argument.
644 2019-11-14 Martin Liska <mliska@suse.cz>
646 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
648 (func_checker::compare_gimple_assign): Likewise.
650 2019-11-14 Jakub Jelinek <jakub@redhat.com>
652 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
653 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
654 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
656 * omp-general.c (omp_context_name_list_prop): New function.
657 (omp_context_selector_matches): Use it. Return 0 if it returns
659 (omp_context_selector_props_compare): Allow equivalency of an
660 identifier and a string literal containing no embedded zeros.
662 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
664 * range-op.cc (RANGE3): Remove.
665 (range_tests): Remove all selftest that check for multi-ranges.
666 Put tests in namespace selftest.
667 * selftest.h: Move range_tests into namespace selftest.
668 * value-range.h (class value_range): Unfriend range_tests.
670 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
672 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
673 normalize_symbolics and normalize_addresses working in place.
674 (range_fold_unary_symbolics_p): Same.
675 (range_fold_unary_symbolics_p): Same.
676 * value-range.cc (num_pairs): Same.
680 (normalize_addresses): Same.
681 (normalize_symbolics): Same.
682 * value-range.h (normalize_symbolics): Same.
683 (normalize_addresses): Same.
685 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
688 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
689 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
690 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
691 (ipa_agg_jump_function): Remove member function equal_to.
692 (ipa_agg_jump_function_p): Remove typedef.
693 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
694 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
695 information for aggregate jump function.
696 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
697 record last definition statement.
698 (load_from_unmodified_param_or_agg): New function.
699 (ipa_known_agg_contents_list): Add new field type and value, remove
701 (build_agg_jump_func_from_list): Rename parameter const_count to
702 value_count, build aggregate jump function from ipa_load_agg_data.
703 (analyze_agg_content_value): New function.
704 (extract_mem_content): Analyze memory store assignment to prepare
705 information for aggregate jump function generation.
706 (determine_known_aggregate_parts): Add new parameter fbi, remove
707 parameter aa_walk_budeget_p.
708 (update_jump_functions_after_inlining): Update aggregate jump function.
709 (ipa_find_agg_cst_for_param): Change type of parameter agg.
710 (try_make_edge_direct_simple_call): Add new parameter new_root.
711 (try_make_edge_direct_virtual_call): Add new parameter new_root and
713 (update_indirect_edges_after_inlining): Pass new argument to
714 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
715 (ipa_write_jump_function): Write aggregate jump function to file.
716 (ipa_read_jump_function): Read aggregate jump function from file.
717 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
718 * ipa-cp.c (ipa_get_jf_arith_result): New function.
719 (ipa_agg_value_from_node): Likewise.
720 (ipa_agg_value_set_from_jfunc): Likewise.
721 (propagate_vals_across_arith_jfunc): Likewise.
722 (propagate_aggregate_lattice): Likewise.
723 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
724 (propagate_vals_across_pass_through): Call
725 propagate_vals_across_arith_jfunc.
726 (get_clone_agg_value): Move forward.
727 (propagate_aggs_across_jump_function): Handle value propagation for
728 aggregate jump function.
729 (agg_jmp_p_vec_for_t_vec): Remove.
730 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
731 with vec<ipa_agg_value>.
732 (copy_plats_to_inter, intersect_with_plats): Likewise.
733 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
734 (intersect_aggregate_with_edge): Likewise.
735 (find_aggregate_values_for_callers_subset): Likewise.
736 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
737 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
738 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
739 (gather_context_independent_values): Likewise.
740 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
741 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
742 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
743 (evaluate_properties_for_edge): Likewise.
744 (estimate_edge_devirt_benefit): Likewise.
745 (estimate_edge_size_and_time): Likewise.
746 (estimate_calls_size_and_time): Likewise.
747 (ipa_call_context::ipa_call_context): Likewise.
748 (estimate_ipcp_clone_size_and_time): Likewise.
749 * ipa-fnsummary.h (ipa_call_context): Replace
750 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
751 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
752 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
753 (do_estimate_edge_size): Likewise.
754 (do_estimate_edge_hints): Likewise.
756 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
758 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
761 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
763 * ipa-profile.c (check_argument_count): Check properly that e_info
764 is non-NULL; do not check descriptors.
766 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
768 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
769 check for ipa profiles.
771 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
774 * ipa-prop.c (update_indirect_edges_after_inlining):
775 Mark parameter as used.
776 * ipa-inline.c (recursive_inlining): Reset node cache
778 (inline_small_functions): Remove checking ifdef.
779 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
782 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
785 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
787 (ipa_profile): Fix reversed test.
789 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
791 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
792 (propagate_constants_topo): Fix typo.
794 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
796 * Makefile.in (OBJS): Add value-range.o.
797 (GTFILES): Add value-range.h.
798 * gengtype.c (open_base_files): Add value-range.h to list of
800 * tree-vrp.c: Move the following value_range related functions:
801 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
802 constant_p, set_undefined, set_varying, may_contain_p,
803 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
804 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
805 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
806 value_inside_range, ranges_from_anti_range, union_ranges,
807 intersect_ranges, intersect_helper, union_helper, union_,
808 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
809 upper_bound, contains_p, invert, intersect...
810 * value-range.cc: ...to here.
811 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
812 associated inline methods from here...
813 * value-range.h: ...to here.
815 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
817 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
818 instead of asserting its value.
820 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
822 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
823 constructors and set methods so value_range_kind is the last
824 argument and defaults to VR_RANGE.
825 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
826 * ipa-cp.c (propagate_vr_across_jump_function): Same.
827 * ipa-prop.c (ipa_get_value_range): Same.
828 (ipa_compute_jump_functions_for_edge): Same.
829 * range-op.cc (value_range_from_overflowed_bounds): Same.
830 (operator_cast::op1_range): Same.
832 * range.cc (range_nonzero): Same.
833 * tree-ssanames.c (get_range_info): Same.
834 * tree-vrp.c (value_range_equiv::set): Same.
835 (value_range::value_range): Same.
836 (value_range_equiv::value_range_equiv): Same.
837 (value_range_equiv::update): Same.
838 (value_range_equiv::deep_copy): Same.
839 (value_range_equiv::move): Same.
840 (value_range_equiv::set_undefined): Same.
841 (value_range::set): Same.
842 (value_range::set_nonzero): Same.
843 (ranges_from_anti_range): Same.
844 (extract_range_from_plus_minus_expr): Same.
845 (value_range::intersect_helper): Same.
846 (value_range_equiv::intersect): Same.
847 (value_range::union_helper): Same.
848 (value_range_equiv::union_): Same.
849 (value_range::normalize_symbolics): Same.
850 (value_range::invert): Same.
851 (determine_value_range_1): Same.
852 * tree-vrp.h (class value_range): Same.
853 (class value_range_equiv): Same.
854 * vr-values.c (set_value_range_to_nonnegative): Same.
855 (set_value_range_to_truthvalue): Same.
856 (vr_values::update_value_range): Same.
857 (vr_values::extract_range_for_var_from_comparison_expr): Same.
858 (vr_values::extract_range_from_binary_expr): Same.
859 (vr_values::extract_range_from_comparison): Same.
860 (vr_values::extract_range_basic): Same.
861 (vr_values::adjust_range_with_scev): Same.
862 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
863 (vr_values::extract_range_from_phi_node): Same.
865 2019-11-13 Ulrich Drepper <drepper@redhat.com>
867 * tree-dump.c (dequeue_and_dump): Print first tree operand
868 for VIEW_CONVERT_EXPR.
870 2019-11-13 Joseph Myers <joseph@codesourcery.com>
872 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
873 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
874 * real.c (get_max_float): Add norm_max argument.
875 * real.h (get_max_float): Update prototype.
876 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
879 2019-11-13 Martin Liska <mliska@suse.cz>
881 * dbgcnt.c (test_sorted_dbg_counters): New.
882 (dbgcnt_c_tests): Likewise.
883 * selftest-run-tests.c (selftest::run_tests): Likewise.
884 * selftest.h (dbgcnt_c_tests): Likewise.
886 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
887 Martin Jambor <mjambor@suse.cz>
890 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
891 (identify_dead_nodes): Likewise.
893 2019-11-13 Martin Liska <mliska@suse.cz>
895 * ipa-icf.c (sem_function::equals_private): Do not overuse
896 push/pop_cfun functions.
898 2019-11-13 Martin Liska <mliska@suse.cz>
900 * common.opt: Document change of -fdbg-cnt option.
901 * dbgcnt.c (DEBUG_COUNTER): Remove.
902 (dbg_cnt_is_enabled): Remove.
903 (dbg_cnt): Work with new intervals.
904 (dbg_cnt_set_limit_by_index): Set to new
906 (dbg_cnt_set_limit_by_name): Likewise.
907 (dbg_cnt_process_single_pair): Process new format.
908 (dbg_cnt_process_opt): Likewise.
909 (dbg_cnt_list_all_counters): Likewise.
910 * doc/invoke.texi: Document change of -fdbg-cnt option.
913 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
915 * ipa-inline.c (ipa_inline): Check that function is defined before
918 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
919 Julian Brown <julian@codesourcery.com>
921 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
922 flag_worker_partitioning is not set.
923 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
924 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
926 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
928 * config/gcn/gcn-run.c (heap_region): New global variable.
929 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
930 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
931 (get_kernarg_region): Move contents to ....
932 (get_memory_region): .... here.
933 (get_heap_region): New function.
934 (init_device): Initialize the heap_region.
935 (device_malloc): Add region parameter.
936 (struct kernargs): Move heap ....
937 (heap): ... to global scope.
938 (main): Allocate heap separate to kernargs.
940 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
942 * ipa-prop.c (ipa_print_node_jump_functions,
943 ipa_print_node_params): Print info about missing summaries.
945 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
947 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
948 the cost of generating loop masks.
950 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
952 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
954 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
955 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
956 (vect_transform_loop): Likewise.
957 (vect_analyze_loop_costing): Don't take the cost of versioning
958 into account for the static profitability threshold if it turns
959 out that no versioning is needed.
961 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
963 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
964 and target_option_default_node to get -fprofile-generate ctors working
967 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
969 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
970 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
971 (vectorizable_assignment): Don't add a cost for nop conversions.
972 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
974 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
976 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
978 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
979 number of ncopies as an additional argument.
980 (vectorizable_conversion): Update call accordingly. Use "modifier"
981 to check whether a conversion is between vectors with the same
984 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
986 * config/aarch64/aarch64-sve-builtins-functions.h
987 (unary_count::expand): Use aarch64_sve_int_mode instead of
990 2019-11-13 Martin Liska <mliska@suse.cz>
992 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
994 2019-11-13 Martin Liska <mliska@suse.cz>
996 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
997 Remove call to finalize_options_struct.
999 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1002 * config/avr/t-avr (avr-mcus): Do not depend on
1003 $(srcdir)/config/avr/t-multilib.
1005 2019-11-13 Richard Biener <rguenther@suse.de>
1007 PR tree-optimization/92473
1008 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1009 direct optab reduction in the correct type.
1011 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1013 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1014 hexadecimal literal.
1016 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1018 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1019 UNORDERED if !HONOR_NANS (DFmode).
1020 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1021 if !HONOR_NANS (<MODE>mode).
1023 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1025 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1026 (ipcp_verify_propagated_values): Likewise.
1027 (propagate_constants_across_call): Likewise.
1028 (propagate_constants_topo): Likewise.
1029 (ipcp_propagate_stage): Likewise.
1031 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1034 * ipa-profile.c (check_argument_count): Break out from ...;
1035 watch for missing summaries.
1036 (ipa_profile): Here.
1038 2019-11-12 Martin Sebor <msebor@redhat.com>
1040 PR tree-optimization/92412
1041 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1044 2019-11-12 Martin Sebor <msebor@redhat.com>
1047 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1048 (directive::argno): New member.
1049 (format_result::aliases, format_result::alias_count): New data members.
1050 (format_result::append_alias): New member function.
1051 (fmtresult::dst_offset): New data member.
1052 (pass_sprintf_length::call_info::dst_origin): New data member.
1053 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1054 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1055 (get_origin_and_offset): Same.
1056 (format_string): Call it.
1057 (format_directive): Call append_alias and set directive argument
1059 (maybe_warn_overlap): New function.
1060 (pass_sprintf_length::compute_format_length): Call it.
1061 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1062 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1064 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1066 PR rtl-optimization/92430
1067 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1068 dominance info at the beginning.
1070 2019-11-12 Richard Biener <rguenther@suse.de>
1072 PR tree-optimization/92460
1073 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1074 expression before gimplifying.
1076 2019-11-12 Richard Biener <rguenther@suse.de>
1078 PR tree-optimization/92461
1079 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1080 stmt after propagation.
1082 2019-11-12 Martin Liska <mliska@suse.cz>
1084 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1085 Use SET_OPTION_IF_UNSET.
1086 (ix86_option_override_internal): Likewise.
1087 * opts.c (default_options_optimization): Likewise.
1088 (finish_options): Likewise.
1089 (enable_fdo_optimizations): Likewise.
1090 (common_handle_option): Likewise.
1092 2019-11-12 Martin Liska <mliska@suse.cz>
1094 * common/common-target.def: Remove option_validate_param and
1095 option_default_params.
1096 * common/common-targhooks.c (default_option_validate_param):
1098 * common/common-targhooks.h (default_option_validate_param):
1100 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1101 Remove usage of this.
1102 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1103 (aarch64_option_validate_param): Likewise.
1104 (aarch64_option_default_params): Likewise
1105 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1106 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1107 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1108 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1109 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1110 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1111 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1112 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1113 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1114 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1115 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1117 * doc/tm.texi: Remove option_default_params and option_validate_param.
1118 * doc/tm.texi.in: Likewise.
1120 2019-11-12 Martin Liska <mliska@suse.cz>
1122 * common/common-target.def:
1123 Do not mention set_default_param_value
1124 and set_param_value.
1125 * doc/tm.texi: Likewise.
1127 2019-11-12 Martin Liska <mliska@suse.cz>
1129 * common.opt: Remove param_values.
1130 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1131 Remove finalize_options_struct.
1132 * gcc.c (driver::decode_argv): Do not call global_init_params
1134 (driver::finalize): Do not call params_c_finalize
1135 and finalize_options_struct.
1136 * opt-suggestions.c (option_proposer::get_completions): Remove
1137 special casing of params.
1138 (option_proposer::find_param_completions): Remove.
1139 (test_completion_partial_match): Update expected output.
1140 * opt-suggestions.h: Remove find_param_completions.
1141 * opts-common.c (add_misspelling_candidates): Add
1142 --param with a space.
1143 * opts.c (handle_param): Remove.
1144 (init_options_struct):. Remove init_options_struct and
1146 (finalize_options_struct): Remove.
1147 (common_handle_option): Use SET_OPTION_IF_UNSET.
1148 * opts.h (finalize_options_struct): Remove.
1149 * toplev.c (general_init): Do not call global_init_params.
1150 (toplev::finalize): Do not call params_c_finalize and
1151 finalize_options_struct.
1153 2019-11-12 Martin Liska <mliska@suse.cz>
1155 * Makefile.in: Remove PARAMS_H and params.list
1157 * params-enum.h: Remove.
1158 * params-list.h: Remove.
1159 * params-options.h: Remove.
1161 * params.def: Remove.
1163 * asan.c: Do not include params.h.
1164 * auto-profile.c: Likewise.
1165 * bb-reorder.c: Likewise.
1166 * builtins.c: Likewise.
1167 * cfgcleanup.c: Likewise.
1168 * cfgexpand.c: Likewise.
1169 * cfgloopanal.c: Likewise.
1170 * cgraph.c: Likewise.
1171 * combine.c: Likewise.
1172 * common/config/aarch64/aarch64-common.c: Likewise.
1173 * common/config/gcn/gcn-common.c: Likewise.
1174 * common/config/ia64/ia64-common.c: Likewise.
1175 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1176 * common/config/rs6000/rs6000-common.c: Likewise.
1177 * common/config/sh/sh-common.c: Likewise.
1178 * config/aarch64/aarch64.c: Likewise.
1179 * config/alpha/alpha.c: Likewise.
1180 * config/arm/arm.c: Likewise.
1181 * config/avr/avr.c: Likewise.
1182 * config/csky/csky.c: Likewise.
1183 * config/i386/i386-builtins.c: Likewise.
1184 * config/i386/i386-expand.c: Likewise.
1185 * config/i386/i386-features.c: Likewise.
1186 * config/i386/i386-options.c: Likewise.
1187 * config/i386/i386.c: Likewise.
1188 * config/ia64/ia64.c: Likewise.
1189 * config/rs6000/rs6000-logue.c: Likewise.
1190 * config/rs6000/rs6000.c: Likewise.
1191 * config/s390/s390.c: Likewise.
1192 * config/sparc/sparc.c: Likewise.
1193 * config/visium/visium.c: Likewise.
1194 * coverage.c: Likewise.
1195 * cprop.c: Likewise.
1197 * cselib.c: Likewise.
1199 * emit-rtl.c: Likewise.
1200 * explow.c: Likewise.
1201 * final.c: Likewise.
1202 * fold-const.c: Likewise.
1205 * ggc-common.c: Likewise.
1206 * ggc-page.c: Likewise.
1207 * gimple-loop-interchange.cc: Likewise.
1208 * gimple-loop-jam.c: Likewise.
1209 * gimple-loop-versioning.cc: Likewise.
1210 * gimple-ssa-split-paths.c: Likewise.
1211 * gimple-ssa-sprintf.c: Likewise.
1212 * gimple-ssa-store-merging.c: Likewise.
1213 * gimple-ssa-strength-reduction.c: Likewise.
1214 * gimple-ssa-warn-alloca.c: Likewise.
1215 * gimple-ssa-warn-restrict.c: Likewise.
1216 * graphite-isl-ast-to-gimple.c: Likewise.
1217 * graphite-optimize-isl.c: Likewise.
1218 * graphite-scop-detection.c: Likewise.
1219 * graphite-sese-to-poly.c: Likewise.
1220 * graphite.c: Likewise.
1221 * haifa-sched.c: Likewise.
1222 * hsa-gen.c: Likewise.
1223 * ifcvt.c: Likewise.
1224 * ipa-cp.c: Likewise.
1225 * ipa-fnsummary.c: Likewise.
1226 * ipa-inline-analysis.c: Likewise.
1227 * ipa-inline.c: Likewise.
1228 * ipa-polymorphic-call.c: Likewise.
1229 * ipa-profile.c: Likewise.
1230 * ipa-prop.c: Likewise.
1231 * ipa-split.c: Likewise.
1232 * ipa-sra.c: Likewise.
1233 * ira-build.c: Likewise.
1234 * ira-conflicts.c: Likewise.
1235 * loop-doloop.c: Likewise.
1236 * loop-invariant.c: Likewise.
1237 * loop-unroll.c: Likewise.
1238 * lra-assigns.c: Likewise.
1239 * lra-constraints.c: Likewise.
1240 * modulo-sched.c: Likewise.
1241 * opt-suggestions.c: Likewise.
1243 * postreload-gcse.c: Likewise.
1244 * predict.c: Likewise.
1245 * reload.c: Likewise.
1246 * reorg.c: Likewise.
1247 * resource.c: Likewise.
1248 * sanopt.c: Likewise.
1249 * sched-deps.c: Likewise.
1250 * sched-ebb.c: Likewise.
1251 * sched-rgn.c: Likewise.
1252 * sel-sched-ir.c: Likewise.
1253 * sel-sched.c: Likewise.
1254 * shrink-wrap.c: Likewise.
1256 * targhooks.c: Likewise.
1257 * toplev.c: Likewise.
1258 * tracer.c: Likewise.
1259 * trans-mem.c: Likewise.
1260 * tree-chrec.c: Likewise.
1261 * tree-data-ref.c: Likewise.
1262 * tree-if-conv.c: Likewise.
1263 * tree-inline.c: Likewise.
1264 * tree-loop-distribution.c: Likewise.
1265 * tree-parloops.c: Likewise.
1266 * tree-predcom.c: Likewise.
1267 * tree-profile.c: Likewise.
1268 * tree-scalar-evolution.c: Likewise.
1269 * tree-sra.c: Likewise.
1270 * tree-ssa-ccp.c: Likewise.
1271 * tree-ssa-dom.c: Likewise.
1272 * tree-ssa-dse.c: Likewise.
1273 * tree-ssa-ifcombine.c: Likewise.
1274 * tree-ssa-loop-ch.c: Likewise.
1275 * tree-ssa-loop-im.c: Likewise.
1276 * tree-ssa-loop-ivcanon.c: Likewise.
1277 * tree-ssa-loop-ivopts.c: Likewise.
1278 * tree-ssa-loop-manip.c: Likewise.
1279 * tree-ssa-loop-niter.c: Likewise.
1280 * tree-ssa-loop-prefetch.c: Likewise.
1281 * tree-ssa-loop-unswitch.c: Likewise.
1282 * tree-ssa-math-opts.c: Likewise.
1283 * tree-ssa-phiopt.c: Likewise.
1284 * tree-ssa-pre.c: Likewise.
1285 * tree-ssa-reassoc.c: Likewise.
1286 * tree-ssa-sccvn.c: Likewise.
1287 * tree-ssa-scopedtables.c: Likewise.
1288 * tree-ssa-sink.c: Likewise.
1289 * tree-ssa-strlen.c: Likewise.
1290 * tree-ssa-structalias.c: Likewise.
1291 * tree-ssa-tail-merge.c: Likewise.
1292 * tree-ssa-threadbackward.c: Likewise.
1293 * tree-ssa-threadedge.c: Likewise.
1294 * tree-ssa-uninit.c: Likewise.
1295 * tree-switch-conversion.c: Likewise.
1296 * tree-vect-data-refs.c: Likewise.
1297 * tree-vect-loop.c: Likewise.
1298 * tree-vect-slp.c: Likewise.
1299 * tree-vrp.c: Likewise.
1301 * value-prof.c: Likewise.
1302 * var-tracking.c: Likewise.
1304 2019-11-12 Martin Liska <mliska@suse.cz>
1306 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
1307 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
1309 (asan_sanitize_allocas_p): Likewise.
1310 (asan_emit_stack_protection): Likewise.
1311 (asan_protect_global): Likewise.
1312 (instrument_derefs): Likewise.
1313 (instrument_builtin_call): Likewise.
1314 (asan_expand_mark_ifn): Likewise.
1315 * auto-profile.c (auto_profile): Likewise.
1316 * bb-reorder.c (copy_bb_p): Likewise.
1317 (duplicate_computed_gotos): Likewise.
1318 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
1319 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
1320 (try_crossjump_bb): Likewise.
1321 * cfgexpand.c (defer_stack_allocation): Likewise.
1322 (stack_protect_classify_type): Likewise.
1323 (pass_expand::execute): Likewise.
1324 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1325 (estimate_reg_pressure_cost): Likewise.
1326 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
1327 * combine.c (combine_instructions): Likewise.
1328 (record_value_for_reg): Likewise.
1329 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
1330 (aarch64_option_default_params): Likewise.
1331 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1332 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1333 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1334 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1335 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
1336 (aarch64_allocate_and_probe_stack_space): Likewise.
1337 (aarch64_expand_epilogue): Likewise.
1338 (aarch64_override_options_internal): Likewise.
1339 * config/alpha/alpha.c (alpha_option_override): Likewise.
1340 * config/arm/arm.c (arm_option_override): Likewise.
1341 (arm_valid_target_attribute_p): Likewise.
1342 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1343 * config/i386/i386.c (get_probe_interval): Likewise.
1344 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
1345 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1346 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
1347 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
1348 (get_stack_clash_protection_guard_size): Likewise.
1349 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1350 * config/s390/s390.c (allocate_stack_space): Likewise.
1351 (s390_emit_prologue): Likewise.
1352 (s390_option_override_internal): Likewise.
1353 * config/sparc/sparc.c (sparc_option_override): Likewise.
1354 * config/visium/visium.c (visium_option_override): Likewise.
1355 * coverage.c (get_coverage_counts): Likewise.
1356 (coverage_compute_profile_id): Likewise.
1357 (coverage_begin_function): Likewise.
1358 (coverage_end_function): Likewise.
1359 * cse.c (cse_find_path): Likewise.
1360 (cse_extended_basic_block): Likewise.
1361 (cse_main): Likewise.
1362 * cselib.c (cselib_invalidate_mem): Likewise.
1363 * dse.c (dse_step1): Likewise.
1364 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
1365 (get_max_insn_count): Likewise.
1366 (make_debug_insn_raw): Likewise.
1367 (init_emit): Likewise.
1368 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1369 * final.c (compute_alignments): Likewise.
1370 * fold-const.c (fold_range_test): Likewise.
1371 (fold_truth_andor): Likewise.
1372 (tree_single_nonnegative_warnv_p): Likewise.
1373 (integer_valued_real_single_p): Likewise.
1374 * gcse.c (want_to_gcse_p): Likewise.
1375 (prune_insertions_deletions): Likewise.
1376 (hoist_code): Likewise.
1377 (gcse_or_cprop_is_too_expensive): Likewise.
1378 * ggc-common.c: Likewise.
1379 * ggc-page.c (ggc_collect): Likewise.
1380 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1381 (MAX_DATAREFS): Likewise.
1382 (OUTER_STRIDE_RATIO): Likewise.
1383 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1384 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1385 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1386 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1387 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1388 (imm_store_chain_info::output_merged_store): Likewise.
1389 (pass_store_merging::process_store): Likewise.
1390 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1391 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1392 (scop_to_isl_ast): Likewise.
1393 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1394 (optimize_isl): Likewise.
1395 * graphite-scop-detection.c (build_scops): Likewise.
1396 * haifa-sched.c (set_modulo_params): Likewise.
1397 (rank_for_schedule): Likewise.
1398 (model_add_to_worklist): Likewise.
1399 (model_promote_insn): Likewise.
1400 (model_choose_insn): Likewise.
1401 (queue_to_ready): Likewise.
1402 (autopref_multipass_dfa_lookahead_guard): Likewise.
1403 (schedule_block): Likewise.
1404 (sched_init): Likewise.
1405 * hsa-gen.c (init_prologue): Likewise.
1406 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1407 (cond_move_process_if_block): Likewise.
1408 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1409 (merge_agg_lats_step): Likewise.
1410 (devirtualization_time_bonus): Likewise.
1411 (hint_time_bonus): Likewise.
1412 (incorporate_penalties): Likewise.
1413 (good_cloning_opportunity_p): Likewise.
1414 (ipcp_propagate_stage): Likewise.
1415 * ipa-fnsummary.c (decompose_param_expr): Likewise.
1416 (set_switch_stmt_execution_predicate): Likewise.
1417 (analyze_function_body): Likewise.
1418 (compute_fn_summary): Likewise.
1419 * ipa-inline-analysis.c (estimate_growth): Likewise.
1420 * ipa-inline.c (caller_growth_limits): Likewise.
1421 (inline_insns_single): Likewise.
1422 (inline_insns_auto): Likewise.
1423 (can_inline_edge_by_limits_p): Likewise.
1424 (want_early_inline_function_p): Likewise.
1425 (big_speedup_p): Likewise.
1426 (want_inline_small_function_p): Likewise.
1427 (want_inline_self_recursive_call_p): Likewise.
1428 (edge_badness): Likewise.
1429 (recursive_inlining): Likewise.
1430 (compute_max_insns): Likewise.
1431 (early_inliner): Likewise.
1432 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
1433 * ipa-profile.c (ipa_profile): Likewise.
1434 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1435 (ipa_analyze_node): Likewise.
1436 (ipcp_transform_function): Likewise.
1437 * ipa-split.c (consider_split): Likewise.
1438 * ipa-sra.c (allocate_access): Likewise.
1439 (process_scan_results): Likewise.
1440 (ipa_sra_summarize_function): Likewise.
1441 (pull_accesses_from_callee): Likewise.
1442 * ira-build.c (loop_compare_func): Likewise.
1443 (mark_loops_for_removal): Likewise.
1444 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1445 * loop-doloop.c (doloop_optimize): Likewise.
1446 * loop-invariant.c (gain_for_invariant): Likewise.
1447 (move_loop_invariants): Likewise.
1448 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
1449 (decide_unroll_runtime_iterations): Likewise.
1450 (decide_unroll_stupid): Likewise.
1451 (expand_var_during_unrolling): Likewise.
1452 * lra-assigns.c (spill_for): Likewise.
1453 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
1454 * modulo-sched.c (sms_schedule): Likewise.
1455 (DFA_HISTORY): Likewise.
1456 * opts.c (default_options_optimization): Likewise.
1457 (finish_options): Likewise.
1458 (common_handle_option): Likewise.
1459 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1461 * predict.c (get_hot_bb_threshold): Likewise.
1462 (maybe_hot_count_p): Likewise.
1463 (probably_never_executed): Likewise.
1464 (predictable_edge_p): Likewise.
1465 (predict_loops): Likewise.
1466 (expr_expected_value_1): Likewise.
1467 (tree_predict_by_opcode): Likewise.
1468 (handle_missing_profiles): Likewise.
1469 * reload.c (find_equiv_reg): Likewise.
1470 * reorg.c (redundant_insn): Likewise.
1471 * resource.c (mark_target_live_regs): Likewise.
1472 (incr_ticks_for_insn): Likewise.
1473 * sanopt.c (pass_sanopt::execute): Likewise.
1474 * sched-deps.c (sched_analyze_1): Likewise.
1475 (sched_analyze_2): Likewise.
1476 (sched_analyze_insn): Likewise.
1477 (deps_analyze_insn): Likewise.
1478 * sched-ebb.c (schedule_ebbs): Likewise.
1479 * sched-rgn.c (find_single_block_region): Likewise.
1480 (too_large): Likewise.
1481 (haifa_find_rgns): Likewise.
1482 (extend_rgns): Likewise.
1483 (new_ready): Likewise.
1484 (schedule_region): Likewise.
1485 (sched_rgn_init): Likewise.
1486 * sel-sched-ir.c (make_region_from_loop): Likewise.
1487 * sel-sched-ir.h (MAX_WS): Likewise.
1488 * sel-sched.c (process_pipelined_exprs): Likewise.
1489 (sel_setup_region_sched_flags): Likewise.
1490 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1491 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1492 * toplev.c (print_version): Likewise.
1493 (process_options): Likewise.
1494 * tracer.c (tail_duplicate): Likewise.
1495 * trans-mem.c (tm_log_add): Likewise.
1496 * tree-chrec.c (chrec_fold_plus_1): Likewise.
1497 * tree-data-ref.c (split_constant_offset): Likewise.
1498 (compute_all_dependences): Likewise.
1499 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
1500 * tree-inline.c (remap_gimple_stmt): Likewise.
1501 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
1502 * tree-parloops.c (MIN_PER_THREAD): Likewise.
1503 (create_parallel_loop): Likewise.
1504 * tree-predcom.c (determine_unroll_factor): Likewise.
1505 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
1506 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1507 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1508 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
1509 (dse_optimize_redundant_stores): Likewise.
1510 (dse_classify_store): Likewise.
1511 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1512 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1513 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
1514 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1515 (try_peel_loop): Likewise.
1516 (tree_unroll_loops_completely): Likewise.
1517 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1518 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
1519 (MAX_CONSIDERED_GROUPS): Likewise.
1520 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
1521 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
1522 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
1523 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
1524 (L1_CACHE_SIZE_BYTES): Likewise.
1525 (L2_CACHE_SIZE_BYTES): Likewise.
1526 (should_issue_prefetch_p): Likewise.
1527 (schedule_prefetches): Likewise.
1528 (determine_unroll_factor): Likewise.
1529 (volume_of_references): Likewise.
1530 (add_subscript_strides): Likewise.
1531 (self_reuse_distance): Likewise.
1532 (mem_ref_count_reasonable_p): Likewise.
1533 (insn_to_prefetch_ratio_too_small_p): Likewise.
1534 (loop_prefetch_arrays): Likewise.
1535 (tree_ssa_prefetch_arrays): Likewise.
1536 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1537 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1538 (convert_mult_to_fma): Likewise.
1539 (math_opts_dom_walker::after_dom_children): Likewise.
1540 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1541 (hoist_adjacent_loads): Likewise.
1542 (gate_hoist_loads): Likewise.
1543 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1544 (compute_partial_antic_aux): Likewise.
1545 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
1546 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
1547 (vn_reference_lookup): Likewise.
1548 (do_rpo_vn): Likewise.
1549 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
1550 * tree-ssa-sink.c (select_best_block): Likewise.
1551 * tree-ssa-strlen.c (new_stridx): Likewise.
1552 (new_addr_stridx): Likewise.
1553 (get_range_strlen_dynamic): Likewise.
1554 (class ssa_name_limit_t): Likewise.
1555 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1556 (create_variable_info_for_1): Likewise.
1557 (init_alias_vars): Likewise.
1558 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1559 (tail_merge_optimize): Likewise.
1560 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1561 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1562 (thread_jumps::find_jump_threads_backwards): Likewise.
1563 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1564 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1565 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1566 (jump_table_cluster::can_be_handled): Likewise.
1567 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1568 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1569 (param_switch_conversion_branch_ratio): Likewise.
1570 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1571 (vect_enhance_data_refs_alignment): Likewise.
1572 (vect_prune_runtime_alias_test_list): Likewise.
1573 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1574 (vect_get_datarefs_in_loop): Likewise.
1575 (vect_analyze_loop): Likewise.
1576 * tree-vect-slp.c (vect_slp_bb): Likewise.
1577 * tree-vectorizer.h: Likewise.
1578 * tree-vrp.c (find_switch_asserts): Likewise.
1579 (vrp_prop::check_mem_ref): Likewise.
1580 * tree.c (wide_int_to_tree_1): Likewise.
1581 (cache_integer_cst): Likewise.
1582 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1583 (reverse_op): Likewise.
1584 (vt_find_locations): Likewise.
1586 2019-11-12 Martin Liska <mliska@suse.cz>
1588 * Makefile.in: Include params.opt.
1589 * flag-types.h (enum parloops_schedule_type): Add
1590 parloops_schedule_type used in params.opt.
1591 * params.opt: New file.
1593 2019-11-12 Martin Liska <mliska@suse.cz>
1595 * common.opt: Remove --param and --param= options.
1596 * opt-functions.awk: Mark CL_PARAMS for options
1597 that have Param keyword.
1598 * opts-common.c (decode_cmdline_options_to_array):
1599 Replace --param key=value with --param=key=value.
1600 * opts.c (print_filtered_help): Remove special
1602 (print_specific_help): Update title for params.
1603 (common_handle_option): Do not handle OPT__param.
1604 opts.h (SET_OPTION_IF_UNSET): New macro.
1605 * doc/options.texi: Document Param keyword.
1607 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1608 Frederik Harwath <frederik@codesourcery.com>
1609 Thomas Schwinge <thomas@codesourcery.com>
1612 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1613 enumeration constant.
1614 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1615 (is_gimple_omp_offloaded): Likewise.
1616 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1617 constant. Adjust the value of ORT_NONE accordingly.
1618 (is_gimple_stmt): Handle OACC_SERIAL.
1619 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1620 (gomp_needs_data_present): Likewise.
1621 (gimplify_adjust_omp_clauses): Likewise.
1622 (gimplify_omp_workshare): Handle OACC_SERIAL.
1623 (gimplify_expr): Likewise.
1624 * omp-expand.c (expand_omp_target):
1625 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1626 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1627 * omp-low.c (is_oacc_parallel): Rename function to...
1628 (is_oacc_parallel_or_serial): ... this.
1629 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1630 (scan_sharing_clauses): Adjust accordingly.
1631 (scan_omp_for): Likewise.
1632 (lower_oacc_head_mark): Likewise.
1633 (convert_from_firstprivate_int): Likewise.
1634 (lower_omp_target): Likewise.
1635 (check_omp_nesting_restrictions): Handle
1636 GF_OMP_TARGET_KIND_OACC_SERIAL.
1637 (lower_oacc_reductions): Likewise.
1638 (lower_omp_target): Likewise.
1639 * tree.def (OACC_SERIAL): New tree code.
1640 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1642 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1644 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1647 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1648 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1650 PR tree-optimization/92452
1651 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1652 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1655 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1657 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1660 2019-11-12 Alan Modra <amodra@gmail.com>
1662 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1663 element of unspec vec.
1664 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1666 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1667 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1668 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1669 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1671 2019-11-12 Alan Modra <amodra@gmail.com>
1673 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1674 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1675 (IS_NOMARK_TLSGETADDR): Likewise.
1676 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1677 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1678 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1679 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1680 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1681 (rs6000_indirect_call_template_1): Likewise.
1682 (rs6000_pltseq_template): Likewise.
1683 (rs6000_opt_vars): Remove "tls-markers" entry.
1684 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1686 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1687 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1688 (pltseq_plt_pcrel<mode>): Likewise.
1689 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1690 (call_value_local64): Likewise.
1691 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1692 output and length attribute sub-expression.
1693 (call_value_nonlocal_sysv<mode>),
1694 (call_value_nonlocal_sysv_secure<mode>),
1695 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1696 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1697 (call_value_indirect_pcrel<mode>): Likewise.
1698 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1699 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1700 * configure: Regenerate.
1701 * config.in: Regenerate.
1703 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1705 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1706 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1707 address being a prefixed load/store.
1708 (stack_protect_testdi): Deal with either address being a prefixed
1711 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1714 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1715 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1718 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1720 PR tree-optimization/92420
1721 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1723 (get_group_load_store_type): Use it for reversed SLP accesses.
1725 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1727 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1729 (ipcp_transformation_t::duplicate): Break out from ...
1730 (ipa_node_params_t::duplicate): ... here; add copying of agg
1732 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1733 (ipcp_transformation_t): Add duplicate.
1735 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1738 * doc/install.texi: Document that the minimum MPFR version is
1741 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1743 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1744 use new register constraint letters.
1746 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1748 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1749 as well, if interesting recover the symbol and re-legitimize the
1752 2019-11-11 Martin Liska <mliska@suse.cz>
1754 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1757 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1759 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1760 account when checking if there are enough iterations to vectorize
1763 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1764 Kwok Cheung Yeung <kcy@codesourcery.com>
1766 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1767 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1768 (LANG_HOOKS_DECLS): Rename also here.
1769 * langhooks.h (lang_hooks_for_decls): Rename
1770 omp_is_optional_argument to omp_check_optional_argument; take
1771 additional bool argument.
1772 * omp-general.h (omp_check_optional_argument): Likewise.
1773 * omp-general.h (omp_check_optional_argument): Likewise.
1774 * omp-low.c (lower_omp_target): Update calls; handle absent
1775 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1777 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1780 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1781 -fPIC and -shared the last to create offload image.
1783 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1785 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1788 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1789 (config.status): Use/depend on it.
1790 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1791 * configure: Regenerate.
1793 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1795 PR tree-optimization/88760
1796 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1797 * gcc/common/config/rs6000/rs6000-common.c
1798 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1799 Turn on -funroll-loops and -munroll-only-small-loops.
1800 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1801 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1802 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1803 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1804 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1805 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1807 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1809 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1810 Make scalar_load, vector_load, unaligned_load and
1811 vector_gather_load cost more to conform hardware latency and
1814 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1816 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1817 (MACHO_SYMBOL_LINKER_VIS_P): New.
1819 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1821 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1822 registers in eliminable_regset.
1824 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1826 * ipa-inline.c (compute_uninlined_call_time,
1827 compute_inlined_call_time): Take edge frequency as
1828 parameter rather than computing it by itself.
1829 (big_speedup_p, edge_badness): Manually CSE sreal
1830 frequency calculations.
1832 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1834 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1835 case where profiles are same.
1837 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1839 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1841 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1843 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1844 args summaries of inlined edge unless it holds info about
1845 described reference.
1847 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1849 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1850 (*movcc_internal1): Rename to...
1851 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1853 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1855 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1856 (cgraph_node::create_virtual_clone): Copy it.
1857 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1859 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1860 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1862 (propagate_constants_across_call): If callee is not analyzed, give up.
1863 (propagate_constants_topo): Lower to bottom latties of all callees of
1864 functions with ipa-cp disabled.
1865 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1866 (cgraph_edge_brings_value_p): Check for availability first.
1867 (create_specialized_node): Set ipcp_clone.
1868 (ipcp_store_bits_results): Check that info is present.
1869 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1871 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1872 conservative when callee summary is missing.
1873 (remap_edge_summaries): Lookup call summary only when needed.
1874 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1875 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1877 (ipa_analyze_node): Use get_create.
1878 (propagate_controlled_uses): Do not propagate when function is not
1880 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1881 (ipa_read_node_info): Use get_create.
1882 * ipa-prop.h (IPA_NODE_REF): Use get.
1883 (IPA_NODE_REF_GET_CREATE): New.
1885 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1887 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1890 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1892 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1893 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1894 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1895 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1897 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1899 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1900 capping the growth cumulated.
1901 (offline_size): Break out from ...
1902 (estimate_growth): ... here.
1903 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1905 (growth_likely_positive): Turn to ...
1906 (growth_positive_p): Re-implement.
1907 * ipa-inline.h (growth_likely_positive): Remove.
1908 (growth_positive_p): Declare.
1909 * ipa-inline.c (want_inline_small_function_p): Use
1911 (want_inline_function_to_all_callers_p): Likewise.
1913 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1915 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1916 calculation of min_size.
1917 (ipa_update_overall_fn_summary): Likewise.
1919 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1921 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1922 estimate_edge_devirt_benefit when not computing hints;
1923 do not compute time when not asked for.
1924 (estimate_calls_size_and_time): Pass NULL hints and time when
1925 these are not computed; do not evaluate hint predicates when these are
1927 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1930 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1932 PR tree-optimization/92401
1933 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1934 if res_op->code is an expression with code length 1.
1935 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1936 if res_op->code is an expression with code length 2.
1937 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1938 if res_op->code is an expression with code length 3.
1940 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1942 * config/darwin.c (machopic_mcount_stub_name): Validate the
1943 symbol stub name when it is created.
1944 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1947 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1949 * symtab.c: Fix comment typos.
1950 * cgraphunit.c: Likewise.
1951 * cgraph.h: Likewise.
1952 * cgraphclones.c: Likewise.
1953 * cgraph.c: Likewise.
1954 * varpool.c: Likewise.
1955 * tree-ssa-strlen.c: Likewise.
1956 * ipa-sra.c: Likewise.
1957 (scan_expr_access, check_all_callers_for_issues): Fix typo
1960 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1962 * config/darwin-protos.h: Add include quard.
1964 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1966 * range-op.h (range_operator::fold_range): Return result in a
1967 reference parameter instead of by value.
1968 (range_operator::wi_fold): Same.
1969 * range-op.cc (range_operator::wi_fold): Return result in a reference
1970 parameter instead of by value.
1971 (range_operator::fold_range): Same.
1972 (value_range_from_overflowed_bounds): Same.
1973 (value_range_with_overflow): Same
1974 (create_possibly_reversed_range): Same.
1975 (operator_equal::fold_range): Same.
1976 (operator_not_equal::fold_range): Same.
1977 (operator_lt::fold_range): Same.
1978 (operator_le::fold_range): Same.
1979 (operator_gt::fold_range): Same.
1980 (operator_ge::fold_range): Same.
1981 (operator_plus::wi_fold): Same.
1982 (operator_plus::op1_range): Change call to fold_range.
1983 (operator_plus::op2_range): Change call to fold_range.
1984 (operator_minus::wi_fold): Return result via reference parameter.
1985 (operator_minus::op1_range): Change call to fold_range.
1986 (operator_minus::op2_range): Change call to fold_range.
1987 (operator_min::wi_fold): Return result via reference parameter.
1988 (operator_max::wi_fold): Same.
1989 (cross_product_operator::wi_cross_product): Same.
1990 (operator_mult::wi_fold): Same.
1991 (operator_div::wi_fold): Same.
1992 (operator_div op_floor_div): Fix whitespace.
1993 (operator_exact_divide::op1_range): Change call to fold_range.
1994 (operator_lshift::fold_range): Return result via reference parameter.
1995 (operator_lshift::wi_fold): Same.
1996 (operator_rshift::fold_range): Same.
1997 (operator_rshift::wi_fold): Same.
1998 (operator_cast::fold_range): Same.
1999 (operator_cast::op1_range): Change calls to fold_range.
2000 (operator_logical_and::fold_range): Return result via reference.
2001 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2002 (operator_bitwise_and::wi_fold): Return result via reference.
2003 (operator_logical_or::fold_range): Same.
2004 (operator_bitwise_or::wi_fold): Same.
2005 (operator_bitwise_xor::wi_fold): Same.
2006 (operator_trunc_mod::wi_fold): Same.
2007 (operator_logical_not::fold_range): Same.
2008 (operator_bitwise_not::fold_range): Same.
2009 (operator_bitwise_not::op1_range): Change call to fold_range.
2010 (operator_cst::fold_range): Return result via reference.
2011 (operator_identity::fold_range): Same.
2012 (operator_abs::wi_fold): Same.
2013 (operator_absu::wi_fold): Same.
2014 (operator_negate::fold_range): Same.
2015 (operator_negate::op1_range): Change call to fold_range.
2016 (operator_addr_expr::fold_range): Return result via reference.
2017 (operator_addr_expr::op1_range): Change call to fold_range.
2018 (operator_pointer_plus::wi_fold): Return result via reference.
2019 (operator_pointer_min_max::wi_fold): Same.
2020 (operator_pointer_and::wi_fold): Same.
2021 (operator_pointer_or::wi_fold): Same.
2022 (range_op_handler): Change call to fold_range.
2024 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2026 (range_fold_unary_symbolics_p): Same.
2027 (range_fold_binary_expr): Same.
2028 (range_fold_unary_expr): Same.
2030 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2032 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2033 vector type as an argument rather than reading it from the
2035 (vect_create_epilog_for_reduction): Update accordingly.
2036 (vectorizable_reduction): Likewise.
2037 (vect_transform_cycle_phi): Likewise.
2039 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2041 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2042 the comparison codes that make sense for the mode used, and only the
2043 codes that can be done with a single branch instruction.
2045 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2047 PR tree-optimization/92351
2048 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2049 peeling the main loop for alignment, make sure to set the misalignment
2050 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2052 2019-11-08 Richard Biener <rguenther@suse.de>
2054 * dbgcnt.def (ivopts_loop): Add.
2055 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2056 ivopts_loop before optimizing a loop.
2058 2019-11-08 Richard Biener <rguenther@suse.de>
2061 * tree-inline.c (declare_return_variable): Properly handle
2062 type mismatches for the return slot.
2064 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2067 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2068 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2070 (got_helper_needed): New static variable.
2071 (output_load_pcrel_sym): New function.
2072 (get_pc_thunk_name): Remove after inlining...
2073 (load_got_register): ...here. Rework the initialization of the GOT
2074 register and of the GOT helper.
2075 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2076 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2077 helper must be emitted. Use output_asm_insn instead of fprintf.
2078 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2079 if optimization is enabled.
2080 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2081 by calling output_load_pcrel_sym.
2083 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2085 * tree-sra.c (create_access): Delay disqualifying the base
2086 for poly_int values until we know we have a base.
2088 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2090 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2091 for loops with SIMDUID set. Enable epilogue vectorization for loops
2092 with SIMDLEN set after finding a main loop with a VF that matches it.
2094 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2097 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2098 value only, return non-NULL if there is a single non-clobber
2099 constituent store even if there are constituent clobbers and return
2100 one of clobber constituent stores if all constituent stores are
2102 (split_group): Handle clobbers.
2103 (imm_store_chain_info::output_merged_store): When computing
2104 bzero_first, look after all clobbers at the start. Don't count
2105 clobber stmts in orig_num_stmts, except if the first orig store is
2106 a clobber covering the whole area and split_stores cover the whole
2107 area, consider equal number of stmts ok. Punt if split_stores
2108 contains only ->orig stores and their number plus number of original
2109 clobbers is equal to original number of stmts. For ->orig, look past
2110 clobbers in the constituent stores.
2111 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2113 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2115 (store_valid_for_store_merging_p): Allow clobber stmts.
2116 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2119 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2120 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2122 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2123 force creation of a unique data.stack_parm slot.
2125 2019-11-08 Richard Biener <rguenther@suse.de>
2127 * genmatch.c (expr::gen_transform): Use the resimplify
2128 member function instead of hard-coding the gimple_resimplifyN variant.
2129 (dt_simplify::gen_1): Likewise.
2131 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2133 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2136 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2138 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2139 instead of INTEGER_CST.
2141 2019-11-08 Richard Biener <rguenther@suse.de>
2143 PR tree-optimization/92324
2144 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2145 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2146 sign-conversions as necessary.
2147 (vectorizable_reduction): Reject conversions in the chain
2148 that are not sign-conversions, base analysis on a non-converting
2149 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2150 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2152 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2153 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2155 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2158 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2159 Fix a missing '-' when displaying these options in the
2162 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2164 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2166 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2168 * config/aarch64/aarch64-builtins.c
2169 (aarch64_builtin_vectorized_function): Remove bswap handling.
2171 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2173 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2174 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2175 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2176 Treat the vector types as indivisible.
2178 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2180 * optabs.def (gather_load_optab, mask_gather_load_optab)
2181 (scatter_store_optab, mask_scatter_store_optab): Turn into
2182 conversion optabs, with the offset mode given explicitly.
2183 * doc/md.texi: Update accordingly.
2184 * config/aarch64/aarch64-sve-builtins-base.cc
2185 (svld1_gather_impl::expand): Likewise.
2186 (svst1_scatter_impl::expand): Likewise.
2187 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2188 (expand_scatter_store_optab_fn): Likewise.
2189 (direct_gather_load_optab_supported_p): Likewise.
2190 (direct_scatter_store_optab_supported_p): Likewise.
2191 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2193 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2194 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2195 argument with the offset vector type. Require the two vector
2196 types to have the same number of elements but allow their element
2197 sizes to be different. Treat the optabs as conversion optabs.
2198 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
2199 prototype accordingly.
2200 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
2201 (supports_vec_convert_optab_p): ...this new function.
2202 (supports_vec_gather_load_p): Update accordingly.
2203 (supports_vec_scatter_store_p): Likewise.
2204 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
2205 Replace the offset sign and bits parameters with a scalar type tree.
2206 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
2207 Pass back the offset vector type instead of the scalar element type.
2208 Allow the offset to be wider than the memory elements. Search for
2209 an offset type that the target supports, stopping once we've
2210 reached the maximum of the element size and pointer size.
2211 Update call to internal_gather_scatter_fn_supported_p.
2212 (vect_check_gather_scatter): Update calls accordingly.
2213 When testing a new scale before knowing the final offset type,
2214 check whether the scale is supported for any signed or unsigned
2215 offset type. Check whether the target supports the source and
2216 target types of a conversion before deciding whether to look
2217 through the conversion. Record the chosen offset_vectype.
2218 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
2219 (vect_recog_gather_scatter_pattern): Get the scalar offset type
2220 directly from the gs_info's offset_vectype instead. Pass a zero
2221 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
2222 * tree-vect-stmts.c (check_load_store_masking): Update call to
2223 internal_gather_scatter_fn_supported_p, passing the offset vector
2224 type recorded in the gs_info.
2225 (vect_truncate_gather_scatter_offset): Update call to
2226 vect_check_gather_scatter, leaving it to search for a valid
2228 (vect_use_strided_gather_scatters_p): Convert the offset to the
2229 element type of the gs_info's offset_vectype.
2230 (vect_get_gather_scatter_ops): Get the offset vector type directly
2232 (vect_get_strided_load_store_ops): Likewise.
2233 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
2234 and IFN_MASK_GATHER_LOAD.
2235 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
2236 (gather_load<mode><v_int_equiv>): ...this.
2237 (mask_gather_load<mode>): Rename to...
2238 (mask_gather_load<mode><v_int_equiv>): ...this.
2239 (scatter_store<mode>): Rename to...
2240 (scatter_store<mode><v_int_equiv>): ...this.
2241 (mask_scatter_store<mode>): Rename to...
2242 (mask_scatter_store<mode><v_int_equiv>): ...this.
2244 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
2247 * config/rs6000/predicates.md
2248 (signed_or_equality_comparison_operator): New predicate.
2249 (unsigned_or_equality_comparison_operator): Likewise.
2250 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
2251 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
2252 * config/rs6000/vector.md
2253 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
2254 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
2255 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
2256 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
2257 vector modes and same-size integer vector modes.
2258 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
2259 (vector_lt<mode> for VEC_F): New expand.
2260 (vector_le<mode> for VEC_F): Likewise.
2261 (vector_ne<mode> for VEC_F): Likewise.
2262 (vector_unge<mode> for VEC_F): Likewise.
2263 (vector_ungt<mode> for VEC_F): Likewise.
2264 (vector_unle<mode> for VEC_F): Likewise.
2265 (vector_unlt<mode> for VEC_F): Likewise.
2266 (vector_uneq<mode>): Expose name.
2267 (vector_ltgt<mode>): Likewise.
2268 (vector_unordered<mode>): Likewise.
2269 (vector_ordered<mode>): Likewise.
2271 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
2274 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
2275 Enhance ix86_expand_vector_init_concat.
2277 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2279 * doc/invoke.texi (-Wold-style-definition): Document () not being
2280 considered an old-style definition for C2x.
2282 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
2284 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
2286 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
2287 insn patterns using ldcw instruction.
2288 (memory_barrier): Remove insn pattern using sync instruction.
2289 * config/pa/pa.opt (coherent-ldcw): New option.
2290 (ordered): New option.
2292 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2294 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
2297 2019-11-07 Jakub Jelinek <jakub@redhat.com>
2299 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
2300 typo - mistmatch -> mismatch.
2301 * ipa-profile.c (ipa_profile): Likewise.
2302 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
2303 - mistmatch -> mismatch.
2305 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2307 * simplify-rtx.c (comparison_to_mask): New function.
2308 (mask_to_comparison): New function.
2309 (simplify_logical_relational_operation): New function.
2310 (simplify_binary_operation_1): Call
2311 simplify_logical_relational_operation.
2313 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
2316 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
2317 modes for integer constants.
2319 2019-11-07 Jan Hubicka <jh@suse.cz>
2322 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
2325 2019-11-07 Jan Hubicka <jh@suse.cz>
2327 * optc-save-gen.awk: Generate cl_target_option_free
2328 and cl_optimization_option_free.
2329 * opth-en.awk: Declare cl_target_option_free
2330 and cl_optimization_option_free.
2331 * tree.c (free_node): Use it.
2333 2019-11-06 Jan Hubicka <jh@suse.cz>
2335 * lto-streamer-in.c: Include alloc-pool.h.
2336 (freeing_string_slot_hasher): Remove.
2337 (string_slot_allocator): New object allocator.
2338 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
2339 (file_name_obstack): New obstack.
2340 (canon_file_name): Allocate in obstack and allocator.
2341 (lto_reader_init): Initialize obstack and allocator.
2342 (lto_free_file_name_hash): New function.
2343 * lto-streamer.h (lto_free_file_name_hash): New.
2345 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
2347 PR tree-optimization/89134
2348 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
2349 * params.def: Add min-loop-cond-split-prob.
2350 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
2351 outside checks on loop into the function.
2352 (split_info): New class.
2353 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
2354 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
2355 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
2356 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
2357 (stmt_semi_invariant_p, branch_removable_p): Likewise.
2358 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
2359 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
2360 (split_loop_on_cond): Likewise.
2361 (tree_ssa_split_loops): Add loop split on conditional statement.
2363 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
2365 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2368 2019-11-07 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/92405
2371 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2372 restrict lane-reducing ops to single stmt chains.
2374 2019-11-07 Martin Jambor <mjambor@suse.cz>
2377 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2378 * cgraph.h (gimple_check_call_matching_types): Remove
2379 * cgraph.c (gimple_check_call_args): Likewise.
2380 (gimple_check_call_matching_types): Likewise.
2381 (symbol_table::create_edge): Do not call
2382 gimple_check_call_matching_types.
2383 (cgraph_edge::make_direct): Likewise.
2384 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2385 * value-prof.h (check_ic_target): Remove.
2386 * value-prof.c (check_ic_target): Remove.
2387 (gimple_ic_transform): Do nat call check_ic_target.
2388 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2389 (afdo_indirect_call): Likewise.
2390 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2391 gimple_check_call_matching_types.
2392 * ipa-inline.c (early_inliner): Likewise.
2394 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2396 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2397 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2398 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2399 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2400 * config/arm/iterators.md (USSAT16): New int_iterator.
2401 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2403 * config/arm/predicates.md (ssat16_imm): New predicate.
2404 (usat16_imm): Likewise.
2405 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2407 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2409 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2411 (arm_<simd32_op>): New define_expands.
2412 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
2413 __smuad, __smuadx): Define.
2414 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2415 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
2416 (SIMD32_BINOP_Q): Likewise.
2417 (simd32_op): Handle the above.
2418 * config/arm/unspecs.md: Define unspecs for the above.
2420 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2422 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
2423 * config/arm/arm.md (APSRGE_REGNUM): Define.
2424 (arm_<simd32_op>): New define_insn.
2425 (arm_sel): Likewise.
2426 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
2427 (CALL_USED_REGISTERS): Likewise.
2428 (REG_ALLOC_ORDER): Likewise.
2429 (FIRST_PSEUDO_REGISTER): Update value.
2430 (ARM_GE_BITS_READ): Define.
2431 * config/arm/arm.c (arm_conditional_register_usage): Clear
2432 APSRGE_REGNUM from operand_reg_set.
2433 (arm_ge_bits_access): Define.
2434 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
2436 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
2437 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
2438 FAIL if ARM_GE_BITS_READ.
2439 (*arm_add<mode>3): New define_insn.
2440 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
2441 (*arm_sub<mode>3): New define_insn.
2442 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
2443 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
2445 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2446 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
2447 (simd32_op): Handle the above.
2448 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
2449 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
2450 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
2451 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
2453 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2455 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
2456 (arm_smlabb): New define_expand.
2457 (*maddhisi4tb): Rename to...
2458 (maddhisi4tb): ... This.
2459 (*maddhisi4tt): Rename to...
2460 (maddhisi4tt): ... This.
2461 (arm_smlatb_setq): New define_insn.
2462 (arm_smlatb): New define_expand.
2463 (arm_smlatt_setq): New define_insn.
2464 (arm_smlatt): New define_expand.
2465 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
2466 (arm_<smlaw_op>): New define_expand.
2467 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
2468 __smlawb, __smlawt): Define.
2469 * config/arm_acle_builtins.def: Define builtins for the above.
2470 * config/arm/iterators.md (SMLAWBT): New int_iterator.
2471 (slaw_op): New int_attribute.
2472 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
2474 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2476 * config/arm/arm.md (arm_<ss_op>): New define_expand.
2477 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
2478 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
2479 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
2480 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
2481 (ss_op): New code_attr.
2483 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2485 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
2486 * config/arm/arm.md (APSRQ_REGNUM): Define.
2487 (add_setq): New define_subst.
2488 (add_clobber_q_name): New define_subst_attr.
2489 (add_clobber_q_pred): Likewise.
2490 (maddhisi4): Change to define_expand. Split into mult and add if
2492 (arm_maddhisi4): New define_insn.
2493 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
2494 (*maddhisi4tt): Likewise.
2495 (arm_ssat): New define_expand.
2496 (arm_usat): Likewise.
2497 (arm_get_apsr): New define_insn.
2498 (arm_set_apsr): Likewise.
2499 (arm_saturation_occurred): New define_expand.
2500 (arm_set_saturation): Likewise.
2501 (*satsi_<SAT:code>): Rename to...
2502 (satsi_<SAT:code><add_clobber_q_name>): ... This.
2503 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
2504 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
2505 (CALL_USED_REGISTERS): Mark apsrq.
2506 (FIRST_PSEUDO_REGISTER): Update value.
2507 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
2508 (machine_function): Add q_bit_access.
2509 (ARM_Q_BIT_READ): Define.
2510 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
2511 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
2513 (arm_q_bit_access): Define.
2514 * config/arm/arm-builtins.c: Include stringpool.h.
2515 (arm_sat_binop_imm_qualifiers,
2516 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
2517 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
2518 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
2519 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
2520 SET_SAT_QUALIFIERS): Likewise.
2521 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
2522 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
2523 Handle 0 argument expander.
2524 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
2525 (arm_check_builtin_call): Define.
2526 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
2527 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
2528 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
2529 (arm_q_bit_access): Likewise.
2530 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
2531 __saturation_occurred, __set_saturation_occurred): Define.
2532 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
2533 saturation_occurred, set_saturation_occurred.
2534 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
2535 (UNSPEC_APSR_READ): Likewise.
2536 (VUNSPEC_APSR_WRITE): Likewise.
2537 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
2538 (*arm_ssadd<mode>3): New define_insn.
2539 (sssub<mode>3): Convert to define_expand.
2540 (*arm_sssub<mode>3): New define_insn.
2541 (ssmulsa3): Convert to define_expand.
2542 (*arm_ssmulsa3): New define_insn.
2543 (usmulusa3): Convert to define_expand.
2544 (*arm_usmulusa3): New define_insn.
2545 (ssmulha3): FAIL if ARM_Q_BIT_READ.
2546 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
2547 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
2549 2019-11-07 Martin Liska <mliska@suse.cz>
2552 * cgraph.c (delete_function_version): Clear global
2553 variable version_info_node if equal to deleted
2556 2019-11-07 Martin Liska <mliska@suse.cz>
2558 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2559 of CONSTRUCTOR_NO_CLEARING.
2560 (operand_compare::hash_operand): Likewise.
2562 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2564 Support 64-bit double and 64-bit long double configurations.
2567 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2568 --with-long-double=.
2569 * config/avr/t-multilib: Remove.
2570 * config/avr/t-avr: Output of genmultilib.awk is now fully
2571 dynamically generated and no more part of the repo.
2572 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2573 Pass them down to...
2574 * config/avr/genmultilib.awk: ...here and handle them.
2575 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2576 (-mlong-double=, avr_long_double). New option and var.
2577 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2578 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2579 Set default as requested by --with-double=
2580 (TARGET_HANDLE_OPTION): Define to this...
2581 (avr_handle_option): ...new hook worker.
2582 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2583 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2584 (avr_double_lib): New proto for spec function.
2585 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2586 (DRIVER_SELF_SPECS): Call %:double-lib.
2587 * config/avr/avr.c (avr_option_override): Assert
2588 sizeof(long double) >= sizeof(double) for the target.
2589 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2590 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2591 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2592 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2593 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2594 New built-in define depending on --with-double=, --with-long-double=.
2595 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2596 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2597 * doc/install.texi (Cross-Compiler-Specific Options)
2598 <--with-double=, --with-long-double=>: Doc.
2600 2019-11-07 Richard Biener <rguenther@suse.de>
2602 * dbgcnt.def (gimple_unroll): New.
2603 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2604 gimple_unroll debug counter before applying transform.
2605 (try_peel_loop): Likewise.
2607 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2609 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2610 frame pointer in multiple registers.
2611 (ira_setup_eliminable_regset): Setup eliminable_regset,
2612 ira_no_alloc_regs and regs_ever_live for frame pointer in
2615 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2617 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2620 2019-11-06 Jan Hubicka <jh@suse.cz>
2622 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2624 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2625 Do not silently ignore summary corruptions.
2627 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2629 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2630 the epilogue if there are peeled iterations for it to handle.
2632 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2634 * config/arc/arc.c (arc_split_ior): Add asserts.
2635 (arc_split_mov_const): Likewise.
2636 (arc_check_ior_const): Do not match known short immediate values.
2637 * config/arc/arc.md (movsi): Don't split predicated instructions
2640 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2642 * config/arc/arc.opt (mea): Update help string.
2643 * doc/invoke.texi(ARC): Update mea option info.
2645 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2647 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2648 (zero_extendqisi2_ac): Likewise.
2649 (zero_extendhisi2_i): Likewise.
2650 (extendqihi2_i): Likewise.
2651 (extendqisi2_ac): Likewise.
2652 (extendhisi2_i): Likewise.
2654 2019-11-06 Richard Biener <rguenther@suse.de>
2656 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2657 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2658 Simplify single_defuse_cycle condition.
2660 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2662 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2663 epilogue loop, make sure that the VF is small enough or that
2664 the epilogue loop can be fully-masked.
2666 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2668 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2669 loop when we've finished, rather than returning directly from
2670 the loop. Use a local variable to track whether we're still
2671 searching for the preferred simdlen. Make vect_epilogues
2672 record whether the next iteration should try to treat the
2673 loop as an epilogue.
2675 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2677 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2678 __arc_hard_float__, __ARC_HARD_FLOAT__,
2679 __arc_soft_float__, __ARC_SOFT_FLOAT__
2681 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2683 PR tree-optimization/92317
2684 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2685 update phi's with constant phi arguments.
2687 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2688 Alexandre Oliva <oliva@adacore.com>
2690 * common.opt (-fcallgraph-info[=]): New option.
2691 * doc/invoke.texi (Developer options): Document it.
2692 * opts.c (common_handle_option): Handle it.
2693 * builtins.c (expand_builtin_alloca): Record allocation if
2694 -fcallgraph-info=da.
2695 * calls.c (expand_call): If -fcallgraph-info, record the call.
2696 (emit_library_call_value_1): Likewise.
2697 * flag-types.h (enum callgraph_info_type): New type.
2698 * explow.c: Include stringpool.h.
2699 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2700 * function.c (allocate_stack_usage_info): New.
2701 (allocate_struct_function): Call it for -fcallgraph-info.
2702 (prepare_function_start): Call it otherwise.
2703 (record_final_call, record_dynamic_alloc): New.
2704 * function.h (struct callinfo_callee): New.
2705 (CALLEE_FROM_CGRAPH_P): New.
2706 (struct callinfo_dalloc): New.
2707 (struct stack_usage): Add callees and dallocs.
2708 (record_final_call, record_dynamic_alloc): Declare.
2709 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2710 object if -fcallgraph-info=da.
2711 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2712 * print-tree.h (print_decl_identifier): Declare.
2713 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2714 * print-tree.c: Include print-tree.h.
2715 (print_decl_identifier): New function.
2716 * toplev.c: Include print-tree.h.
2717 (callgraph_info_file): New global variable.
2718 (callgraph_info_external_printed): Likewise.
2719 (output_stack_usage): Rename to...
2720 (output_stack_usage_1): ... this. Make it static, add cf
2721 parameter. If -fcallgraph-info=su, print stack usage to cf.
2722 If -fstack-usage, use print_decl_identifier for
2724 (INDIRECT_CALL_NAME): New.
2725 (dump_final_node_vcg_start): New.
2726 (dump_final_callee_vcg, dump_final_node_vcg): New.
2727 (output_stack_usage): New.
2728 (lang_dependent_init): Open and start file if
2729 -fcallgraph-info. Allocated callgraph_info_external_printed.
2730 (finalize): If callgraph_info_file is not null, finish it,
2731 close it, and release callgraph_info_external_printed.
2733 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2734 Frederik Harwath <frederik@codesourcery.com>
2735 Thomas Schwinge <thomas@codesourcery.com>
2737 * omp-low.c (struct omp_context): New fields
2738 local_reduction_clauses, outer_reduction_clauses.
2739 (new_omp_context): Initialize these.
2740 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2741 (scan_omp_for): Check reduction clauses for incorrect nesting.
2743 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2746 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2747 operands with non-memory constraints.
2749 2019-11-05 Martin Sebor <msebor@redhat.com>
2751 PR tree-optimization/92373
2752 * tree.c (component_ref_size): Only consider initializers of objects
2753 of matching struct types.
2754 Return null for instances of interior zero-length arrays.
2756 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2758 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2760 2019-11-05 Jason Merrill <jason@redhat.com>
2762 PR tree-optimization/91825
2763 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2765 2019-11-05 Jim Wilson <jimw@sifive.com>
2768 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2769 optimize_insn_for_speed_p is true.
2771 2019-11-05 Martin Sebor <msebor@redhat.com>
2775 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2777 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2778 name and location for a temporary variable.
2780 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2782 * tree-vrp.c (value_range::value_range): Fix whitespace.
2783 (defined_ranges_p): Same.
2784 (range_fold_binary_symbolics_p): Same.
2785 (value_range::intersect_helper): Same.
2786 (value_range::union_helper): Same.
2787 * tree-vrp.h (range_fold_binary_expr): Same.
2789 2019-11-04 Martin Sebor <msebor@redhat.com>
2793 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2794 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2795 of message printed in a warning for empty arrays.
2796 (vrp_prop::check_mem_ref): Also handle function parameters and
2799 2019-11-05 Richard Biener <rguenther@suse.de>
2801 PR tree-optimization/92371
2802 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2803 on the original stmt of live stmts in the chain.
2804 (vectorizable_live_operation): Look at the original stmt when
2805 checking STMT_VINFO_REDUC_DEF.
2807 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2809 * gimple-fold.c, gimple-loop-versioning.cc,
2810 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2811 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2812 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2813 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2814 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2815 value_range_equiv, and value_range_base to value_range.
2817 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2819 * expr.c (build_personality_function): Fix generated type to
2820 match actual personality functions.
2822 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2824 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2825 enough bytes for the NULL character.
2827 2019-11-05 Richard Biener <rguenther@suse.de>
2829 PR tree-optimization/92280
2830 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2831 had a single use do not create a new CTOR.
2832 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2833 BIT_FIELD_REF of a CTOR via GENERIC.
2835 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2837 * config/s390/s390.c (s390_vector_alignment): Check if the value
2838 fits into uhwi before using it.
2840 2019-11-05 Martin Liska <mliska@suse.cz>
2842 * symbol-summary.h: Use ggc_delete.
2844 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2846 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2847 Change vec_perm field to 10.
2849 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2851 * doc/install.texi: Further fix syntax for html generation.
2853 2019-11-05 Martin Liska <mliska@suse.cz>
2855 * symbol-summary.h: Rename allocator to m_allocator and
2858 2019-11-05 Richard Biener <rguenther@suse.de>
2860 PR tree-optimization/92324
2861 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2862 all signed or unsigned operations.
2864 2019-11-05 Jan Hubicka <jh@suse.cz>
2866 * hsa-brig.c: Include alloc-pool.h
2867 * hsa-dump.c: Likewise.
2868 * hsa-gen.c: Likewise.
2869 * hse-regalloc.c: Likewise.
2870 * ipa-hsa.c: Likewise.
2871 * ipa-predicate.c: Likewise.
2872 * ipa-reference.c: Likewise.
2873 * ipa-sra.c: Likewise.
2874 * omp-expand.c: Likewise.
2875 * omp-general.c: Likewise.
2876 * omp-low.c: Likewise.
2877 * sumbol-summary.h (function_summary_base): Add allocator.
2878 (function_summary<T *>::function_summary): Update construction.
2879 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2880 (call_summary_base): Add allcator.
2881 (call_summary<T *>::call_summary): Update construction.
2882 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2884 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2886 PR tree-optimization/91945
2887 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2888 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2891 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2893 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2894 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2895 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2896 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2897 (vrp_set_zero_nonzero_bits): Move to...
2898 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2899 (vr_values::simplify_bit_ops_using_ranges): Rename
2900 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2902 2019-11-05 Martin Liska <mliska@suse.cz>
2905 * fold-const.c (operand_compare::hash_operand): Remove
2906 FIELD_DECL handling.
2908 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2910 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2911 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2914 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2916 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2917 properly handle symbolics.
2918 (range_compatible_p): Remove.
2920 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2922 * common.opt (-fabi-version): Document =14.
2923 * doc/invoke.texi (C++ Dialect Options): Likewise.
2925 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2927 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2929 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2931 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2932 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2933 gcn_omp_device_kind_arch_isa.
2934 * config/gcn/t-omp-device: New file.
2935 * configure.ac: Support gcn for omp_device_property.
2936 * configure: Regenerate.
2938 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2940 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2941 (vrp_val_max): Same.
2942 (vrp_val_is_min): Same.
2943 (vrp_val_is_max): Same.
2944 (value_range_base::nonzero_p): Remove last argument to
2946 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2947 (vrp_val_max): Same.
2948 (vrp_val_is_min): Same.
2949 (vrp_val_is_max): Same.
2950 (value_range_base::set_varying): Remove last argument to vrp_val*.
2951 (value_range_base::dump): Same.
2952 (value_range_base::set): Same.
2953 (value_range_base::normalize_symbolics): Same.
2954 (value_range_base::num_pairs): Same.
2955 (value_range_base::lower_bound): Same.
2956 (value_range_base::upper_bound): Same.
2957 (ranges_from_anti_range): Remove handle_pointers argument.
2958 (value_range_base::singleton_p): Remove last argument to
2959 ranges_from_anti_range.
2961 2019-11-04 Jan Hubicka <jh@suse.cz>
2963 * ipa-reference.c (init_function_info): Initialize
2964 info->global.statics_read.
2966 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2968 * tree-vrp.c (value_range_base::invert): Use constructors to build
2971 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2973 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2974 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2976 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2978 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2981 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2983 * tree-vrp.c (dump_assert_info): New.
2984 (dump_asserts_info): New.
2986 2019-11-04 Jan Hubicka <jh@suse.cz>
2988 * ipa-inline-transform.c: Include ipa-utils.h
2989 (inline_call): Set thunk_expansion flag.
2990 * ipa-utils.h (thunk_expansion): Declare.
2991 * ipa-devirt.c (thunk_expansion): New global var.
2992 (devirt_node_removal_hook): Do not invalidate cache while
2993 doing thunk expansion.
2995 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2997 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2999 2019-11-04 Martin Sebor <msebor@redhat.com>
3001 PR tree-optimization/92349
3002 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3003 memebers have constant sizes.
3005 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3007 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3009 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3010 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3013 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3015 * expr.c (store_constructor): Modify to handle single element vectors.
3016 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3018 (vect_slp_check_for_constructors): New function.
3019 (vect_slp_analyze_bb_1): Call new function to check for vector
3021 (vectorize_slp_instance_root_stmt): New function.
3022 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3024 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3026 2019-11-04 Richard Biener <rguenther@suse.de>
3028 PR tree-optimization/92345
3029 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3030 we produced a reduction chain.
3031 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3032 LOOP_VINFO_REDUCTIONS.
3034 2019-11-04 Jan Hubicka <jh@suse.cz>
3036 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3037 duplicate summaries.
3038 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3040 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3041 access call summaries.
3042 (dump_ipa_call_summary): Be ready for missing edge summaries.
3043 (analyze_function_body): Use get instead of get_create to access
3045 (estimate_calls_size_and_time): Do not access summaries of
3046 inlined edges; sanity check they are missing.
3047 (ipa_call_context::estimate_size_and_time): Use get instead
3048 of get_create to access node summary.
3049 (inline_update_callee_summaries): Do not update depth of
3051 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3053 (ipa_merge_fn_summary_after_inlining): Use get instead
3055 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3056 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3058 (initialize_growth_caches): Update.
3059 (do_estimate_edge_time): Remove redundant copy of context.
3060 (ipa_remove_from_growth_caches): New function.
3061 * ipa-inline.c (flatten_function): Update overall summary
3062 only when optimizing.
3063 (inline_to_all_callers): Update overall summary of function
3065 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3066 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3069 2019-11-04 Richard Biener <rguenther@suse.de>
3071 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3072 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3074 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3076 * ggc-common.c: Include system.h before malloc.h.
3078 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3080 * configure.ac: Pass --enable-obsolete=* and
3081 --enable-option-checking=* down to build configure, and fail
3082 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3083 * configure: Rebuild.
3084 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3085 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3087 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3089 * config.in: Regenerate.
3090 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3091 -mtiny-printf is used without GCC being configured with
3092 --enable-newlib-nano-formatted-io.
3093 * config/msp430/msp430.h (LINK_SPEC): Pass
3094 "--wrap puts --wrap printf" when -mtiny-printf is used.
3095 * config/msp430/msp430.opt: Document -mtiny-printf.
3096 * configure: Regenerate.
3097 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3098 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3099 --enable-newlib-nano-formatted-io is passed.
3100 * doc/invoke.texi: Document -mtiny-printf.
3102 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3104 * configure: Regenerate.
3106 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3108 * config/msp430/driver-msp430.c
3109 (msp430_get_linker_devices_include_path): New spec function.
3110 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3111 (extract_devices_dir_from_exec_prefix): New function.
3112 (extract_devices_dir_from_collect_gcc): New function.
3113 (msp430_check_env_var_for_devices): New function.
3114 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3115 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3116 devices.csv was not found using other methods.
3117 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3119 (msp430_dirname): Likewise.
3120 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3121 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3122 msp430_get_linker_devices_include_path.
3123 (TARGET_EXTRA_PRE_INCLUDES): Define.
3124 * doc/invoke.texi: Document new ways of searching for support files.
3126 2019-11-04 Richard Biener <rguenther@suse.de>
3128 PR tree-optimization/92301
3129 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3130 as required by epilogue generation
3132 2019-11-04 Martin Liska <mliska@suse.cz>
3135 * fold-const.c (operand_compare::hash_operand): Fix field
3136 hashing of CONSTRUCTOR.
3138 2019-11-04 Martin Liska <mliska@suse.cz>
3140 * ggc.h (ggc_delete): New function.
3141 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3142 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3143 (ipa_free_all_node_params): Likewise.
3144 * ipa-sra.c (ipa_sra_analysis): Likewise.
3146 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3148 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3149 set_switch_stmt_execution_predicate, compute_bb_predicates,
3150 will_be_nonconstant_expr_predicate,
3151 phi_result_unknown_predicate,
3152 analyze_function_body): Pass arround params summary.
3153 (ipa_call_context::duplicate_from): New comment;
3154 only duplicate useful values.
3155 (ipa_call_context::equal_to): Only compare useful values.
3156 (remap_edge_summaries): Pass params_summary.
3157 (remap_hint_predicate): Likewise.
3158 (ipa_merge_fn_summary_after_inlining): Likewise.
3159 (inline_read_section): Initialize params summary used flags.
3160 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3161 around param_summary.
3162 (add_condition): Initialized used params summary flags.
3163 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3164 (inline_param_summary::useless_p): New predicate.
3165 (remap_after_inlining, add_condition): Update prototype
3166 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3168 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3170 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3171 (ipa_analyze_virtual_call_uses): Likewise.
3172 (update_indirect_edges_after_inlining): Update param summaries.
3173 (ipa_print_node_params): Print used flags.
3174 (ipa_read_indirect_edge_info): Update param summareis.
3175 * ipa-prop.h (ipa_param_descriptor): Add
3176 used_by_ipa_predicates, used_by_indirect_call
3177 and used_by_polymorphic_call.
3178 (ipa_set_param_used_by_ipa_predicates,
3179 ipa_set_param_used_by_indirect_call,
3180 ipa_set_param_used_by_polymorphic_call,
3181 ipa_is_param_used_by_ipa_predicates,
3182 ipa_is_param_used_by_indirect_call,
3183 ipa_is_param_used_by_polymorphic_call): New inline functions.
3185 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3187 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3189 (ipa_call_context::release): Add ALL parameter.
3190 (ipa_call_context::equal_to): New member function.
3191 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3192 duplicate_form, release, equal_to and exists_p member functoins.
3193 * ipa-inline-analysis.c (node_context_cache_entry): New
3195 (node_context_summary): Likewise.
3196 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
3197 node_context_clear): New static vars.
3198 (initialize_growth_caches): New function.
3199 (free_growth_caches): Also delete node_context_cache; output stats.
3200 (do_estimate_edge_time): Cache contexts.
3201 (reset_node_cache): New function.
3202 * ipa-inline.c (reset_edge_caches): Reset also node cache.
3203 (inline_small_functions): Initialize growth caches.
3204 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
3206 * ipa-predicate.h (inline_param_summary::equal_to): New.
3207 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
3208 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
3209 (ipa_agg_jump_function): Implement equal_to member function.
3211 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3213 * ipa-fnsummary.c (inline_read_section): Set vector size
3216 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3218 * ipa-fnsummary.c (ipa_call_context): New constructor.
3219 (estimate_node_size_and_time): Turn to ...
3220 (ipa_call_context::estimate_size_and_time): ... this one.
3221 (ipa_call_context::release): New.
3222 * ipa-fnsummary.h (ipa_call_context): New class.
3223 (estimate_node_size_and_time): Remove.
3224 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
3225 do_estimate_edge_hints): Update.
3227 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3229 * config.in: Regenerate.
3230 * configure: Regenerate.
3231 * configure.ac: Check for mallinfo.
3232 * ggc-common.c: Include malloc.h if available;
3234 (report_heap_memory_use): New functoin.
3235 * ggc-page.c (ggc_grow): Do not print "start".
3236 * ggc.h (report_heap_memory_use): Declare.
3237 * pases.c (execute_one_pass): Report memory after IPA passes.
3238 (ipa_read_summaries_1): Likewise.
3239 (ipa_read_optimization_summaries_1): Likewise.
3241 2019-11-02 Jakub Jelinek <jakub@redhat.com>
3243 * gimplify.h (omp_construct_selector_matches): Change return
3244 type to int, add a new SCORES argument.
3245 * gimplify.c (omp_construct_selector_matches): Likewise. If
3246 SCORES is non-NULL, compute scores of each construct.
3247 * omp-general.h (omp_get_context_selector): Declare.
3248 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
3249 Adjust omp_construct_selector_matches callers.
3250 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
3251 (omp_context_compute_score): New function.
3252 (omp_resolve_declare_variant): Compute scores and decide based on
3256 * configure.ac: Don't look for omp-device-properties files from
3257 installed offloading compilers. Instead add tmake_file snippets
3258 for configured offloading targets and use files they generate.
3259 * Makefile.in (install): Don't depend on
3260 install-omp-device-properties.
3261 (install-omp-device-properties): Remove goal.
3262 * config/i386/t-omp-device: New file.
3263 * config/i386/t-intelmic (omp-device-properties): Remove goal.
3264 * config/nvptx/t-omp-device: New file.
3265 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
3266 * configure: Regenerated.
3268 * omp-general.h (omp_context_selector_set_compare): Declare.
3269 * omp-general.c (omp_construct_simd_compare,
3270 omp_context_selector_props_compare, omp_context_selector_set_compare,
3271 omp_context_selector_compare): New functions.
3272 (omp_resolve_declare_variant): Prune variants that are strict subset
3275 2019-11-01 Martin Sebor <msebor@redhat.com>
3281 * doc/invoke.texi (-Wzero-length-bounds): Document.
3282 * gimple-match-head.c (try_conditional_simplification): Use memcpy
3283 instead of a hand-rolled loop to avoid PR 92323.
3284 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
3286 (vrp_prop::check_mem_ref): Handle declared struct objects.
3287 * tree.c (last_field): New function.
3288 (array_at_struct_end_p): Handle MEM_REF.
3289 (get_initializer_for): New helper.
3290 (component_ref_size): Add argument. Rename locals. Call
3291 get_initializer_for instead of fold_ctor_reference. Correct handling
3292 of flexible array members.
3293 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
3295 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3297 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
3298 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
3299 UNSPEC_VSX_CVSPUXDS): Remove.
3300 (vsx_xvcvspdp): New define_expand, old define_insn split to...
3301 (vsx_xvcvspdp_be): ... this. New. And...
3302 (vsx_xvcvspdp_le): ... this. New.
3303 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
3304 (vsx_xvcv<su>xwdp_be): ... this. New. And...
3305 (vsx_xvcv<su>xwdp_le): ... this. New.
3306 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
3307 (vsx_xvcvsp<su>xds_be): ... this. New. And...
3308 (vsx_xvcvsp<su>xds_le): ... this. New.
3310 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3312 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
3313 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
3314 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
3315 UNSPEC_VSX_XVCVSPSXWS): Remove.
3316 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
3317 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
3319 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3321 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
3322 (UNSPEC_VSX_XVCDPSP): Remove.
3323 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
3324 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
3326 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
3328 * hooks.c (hook_tree_tree_bool_null): New.
3329 * hooks.h (hook_tree_tree_bool_null): Declare.
3330 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
3331 (LANG_HOOKS_DECLS): Add it.
3332 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
3333 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
3334 (lower_omp_target): Handle Fortran array with descriptor in
3335 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
3337 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
3339 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3340 Assert that the type we store in abi_vector_types is its own
3342 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
3344 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3346 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
3347 from a CONST_INT address when TARGET_THUMB2.
3349 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3351 * config/arm/arm.md (add_not_cin): New insn.
3352 (add_not_shift_cin): Likewise.
3354 2019-10-31 Martin Liska <mliska@suse.cz>
3356 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
3357 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
3358 and compare_memory_operand.
3360 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3362 * configure.ac: Compute and substitute omp_device_properties and
3363 omp_device_property_deps.
3364 * Makefile.in (generated_files): Add omp-device-properties.h.
3365 (omp-general.o): Depend on omp-device-properties.h.
3366 (omp_device_properties): New make variable.
3367 (omp-device-properties.h, s-omp-device-properties-h,
3368 install-omp-device-properties): New goals.
3369 (install): Depend on install-omp-device-properties for accelerators.
3370 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3371 * target.h (enum omp_device_kind_arch_isa): New enum.
3372 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3374 * omp-general.c: Include omp-device-properties.h.
3375 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3376 colon instead of comma.
3377 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3379 (omp_context_selector_matches): Implement device set arch/isa
3380 selectors, improve device set kind selector handling.
3381 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3382 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3383 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3384 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3385 ix86_omp_device_kind_arch_isa.
3386 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3387 definition from ix86_target_string to file scope.
3388 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3390 (ix86_omp_device_kind_arch_isa): New function.
3391 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3392 isa_opts definitions to file scope.
3393 * config/i386/t-intelmic (omp-device-properties): New goal.
3394 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3395 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3396 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3397 nvptx_omp_device_kind_arch_isa.
3398 * configure: Regenerate.
3399 * doc/tm.texi: Regenerate.
3402 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3403 DECL_BUILT_IN in comment. Remove redundant ()s around return
3405 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3406 before calling fndecl_built_in_p.
3407 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3408 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3409 fndecl_built_in_p on it.
3411 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3413 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
3415 2019-10-31 Martin Liska <mliska@suse.cz>
3417 * config/arm/arm.c (arm_get_pcs_model): Remove usage
3418 of cgraph_local_info and use local_info_node instead.
3419 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
3420 (bfin_function_ok_for_sibcall): Likewise.
3421 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
3422 (must_reload_pic_reg_p): Likewise.
3424 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3427 * tree.h (type_initializer_zero_p): Remove.
3428 * tree.c (type_initializer_zero_p): Remove.
3430 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3432 * doc/invoke.texi (-Wshadow, -Wshadow=global
3433 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
3435 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3437 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
3438 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
3439 and 'target exit data'.
3441 2019-10-30 Martin Jambor <mjambor@suse.cz>
3444 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
3445 availability comparison.
3447 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3449 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
3450 calls to __mspabi_mpy* functions.
3451 * config/msp430/msp430.md (mulhisi3): New define_expand.
3452 (umulhisi3): New define_expand.
3453 (*mulhisi3_inline): Use old mulhisi3 define_insn.
3454 (*umulhisi3_inline): Use old umulhisi3 define_insn.
3456 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3458 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
3459 (msp430_check_plus_not_high_mem): New.
3460 (msp430_op_not_in_high_mem): Use new functions to check if the operand
3461 might be in low memory.
3462 Indicate that a 16-bit absolute address is in lower memory.
3464 2019-10-30 Martin Jambor <mjambor@suse.cz>
3466 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
3467 ultimate_alias_target.
3469 2019-10-30 Richard Biener <rguenther@suse.de>
3471 PR tree-optimization/92275
3472 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
3473 Copy all loop-closed PHIs.
3475 2019-10-30 Martin Liska <mliska@suse.cz>
3477 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
3478 const_tree as function argument.
3479 (func_checker::compare_decl): Likewise.
3480 (func_checker::operand_equal_p): Likewise.
3481 (func_checker::compare_variable_decl): Likewise.
3482 (func_checker::parse_labels): Likewise.
3483 * ipa-icf-gimple.h: Likewise.
3485 2019-10-30 Martin Liska <mliska@suse.cz>
3487 * ipa-icf-gimple.c (func_checker::compatible_types_p):
3488 Do not compare alias sets. It's handled by operand_equal_p.
3490 2019-10-30 Martin Liska <mliska@suse.cz>
3492 * ipa-icf-gimple.c (func_checker::func_checker): Do not
3493 initialize m_compare_polymorphic.
3494 (func_checker::compare_decl): Do not compare polymorphic types.
3495 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
3496 * ipa-icf.c (sem_function::equals_private): Do not call
3497 compare_polymorphic_p.
3499 2019-10-30 Martin Liska <mliska@suse.cz>
3501 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
3503 (func_checker::compare_memory_operand): Remove.
3504 (func_checker::compare_cst_or_decl): Remove.
3505 (func_checker::operand_equal_valueize): Do not handle
3507 (func_checker::compare_gimple_call): Call compare_operand.
3508 (func_checker::compare_gimple_assign): Likewise.
3509 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
3510 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
3511 * ipa-icf.h (icf_handled_component_p): Remove.
3513 2019-10-30 Martin Liska <mliska@suse.cz>
3515 * ipa-icf-gimple.c (func_checker::hash_operand): New.
3516 (func_checker::compare_cst_or_decl): Remove handling
3518 (func_checker::compare_operand): Transform to ...
3519 (func_checker::operand_equal_p): ... this.
3520 * ipa-icf-gimple.h (class func_checker): Add
3521 operand_equal_p and hash_operand.
3522 * ipa-icf.c (sem_function::equals_private): Fix
3523 pushing and popping of cfun.
3525 2019-10-30 Martin Liska <mliska@suse.cz>
3527 * fold-const.c (operand_equal_p): Move to ...
3528 (operand_compare::operand_equal_p): ... here.
3529 (operand_compare::verify_hash_value): New.
3530 (add_expr): Move to ...
3531 (operand_compare::hash_operand): ... here.
3532 * fold-const.h (operand_equal_p): Move to the class.
3533 (class operand_compare): New.
3534 * tree.c (add_expr): Remove.
3536 2019-10-30 Martin Liska <mliska@suse.cz>
3538 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
3539 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
3541 2019-10-30 Martin Liska <mliska@suse.cz>
3545 * cgraph.c (cgraph_node::get_create): Overwrite node->order
3546 from a first_clone in order to get proper LTO section
3548 (cgraph_node::get_untransformed_body):
3549 Use lto_get_section_data where symtab_node::order
3551 * cgraphclones.c (cgraph_node::find_replacement):
3552 Update also symbol order.
3553 * ipa-fnsummary.c (ipa_fn_summary_read):
3554 Use new function lto_get_summary_section_data.
3555 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3556 * ipa-icf.c (sem_item_optimizer::read_summary):
3558 * ipa-prop.c (ipa_prop_read_jump_functions):
3560 (ipcp_read_transformation_summaries): Likewise.
3561 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3562 * lto-cgraph.c (input_node): Add also order_base.
3563 (input_varpool_node): Likewise.
3564 (input_cgraph_1): Assign the order_base.
3565 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3566 * lto-opts.c (lto_write_options): Pass new argument.
3567 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3568 (lto_get_summary_section_data): New.
3569 (lto_get_raw_section_data): Add order argument.
3570 (lto_create_simple_input_block): Likewise.
3571 * lto-section-out.c (lto_destroy_simple_output_block):
3573 * lto-streamer-in.c (lto_input_toplevel_asms):
3574 Use lto_get_summary_section_data.
3575 (lto_input_mode_table): Likewise.
3576 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3577 (lto_output_toplevel_asms): Pass new argument.
3578 (copy_function_or_variable): Likewise.
3579 (produce_lto_section):Likewise.
3580 (produce_symtab): Likewise.
3581 (lto_write_mode_table): Likewise.
3582 (produce_asm_for_decls): Likewise.
3583 * lto-streamer.c (lto_get_section_name): Concat symbol name
3585 * lto-streamer.h (lto_get_section_data): Add order argument.
3586 (lto_get_summary_section_data): New.
3587 (lto_get_raw_section_data): Add order argument.
3588 (lto_get_section_name): Likewise.
3589 * varpool.c (varpool_node::get_constructor): Pass order argument.
3591 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3593 PR tree-optimization/92262
3594 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3595 ubase or cbase here.
3596 (remove_unused_ivs): Unshare comp before using it.
3598 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3600 * ipa-prop.c (update_jump_functions_after_inlining):
3601 Watch for missing summaries.
3603 2019-10-30 Richard Biener <rguenther@suse.de>
3605 PR tree-optimization/65930
3606 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3607 chains also allow a leading and trailing conversion.
3608 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3609 intermediate reduction chains.
3610 (vect_analyze_slp_instance): Likewise. Build a SLP
3611 node for a trailing conversion manually.
3613 2019-10-30 Martin Liska <mliska@suse.cz>
3615 * cgraph.c (cgraph_node::local_info): Transform to ...
3616 (cgraph_node::local_info_node): ... this.
3617 (cgraph_node::dump): Remove cgraph_local_info and
3618 put its fields directly into cgraph_node.
3619 (cgraph_node::get_availability): Likewise.
3620 (cgraph_node::make_local): Likewise.
3621 (cgraph_node::verify_node): Likewise.
3622 * cgraph.h (struct GTY): Likewise.
3623 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3624 (duplicate_thunk_for_node): Likewise.
3625 (cgraph_node::create_clone): Likewise.
3626 (cgraph_node::create_virtual_clone): Likewise.
3627 (cgraph_node::create_version_clone): Likewise.
3628 * cgraphunit.c (cgraph_node::reset): Likewise.
3629 (cgraph_node::finalize_function): Likewise.
3630 (cgraph_node::add_new_function): Likewise.
3631 (analyze_functions): Likewise.
3632 * combine.c (setup_incoming_promotions): Likewise.
3633 * config/i386/i386.c (ix86_function_regparm): Likewise.
3634 (ix86_function_sseregparm): Likewise.
3635 (init_cumulative_args): Likewise.
3636 * ipa-cp.c (determine_versionability): Likewise.
3637 (count_callers): Likewise.
3638 (set_single_call_flag): Likewise.
3639 (initialize_node_lattices): Likewise.
3640 (estimate_local_effects): Likewise.
3641 (create_specialized_node): Likewise.
3642 (identify_dead_nodes): Likewise.
3643 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3644 (ipa_fn_summary_generate): Likewise.
3645 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3646 (process_hsa_functions): Likewise.
3647 * ipa-icf.c (set_local): Likewise.
3648 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3649 * ipa-inline.c (speculation_useful_p): Likewise.
3650 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3651 (ipa_profile): Likewise.
3652 * ipa-split.c (split_function): Likewise.
3653 (execute_split_functions): Likewise.
3654 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3655 (ipa_sra_ipa_function_checks): Likewise.
3656 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3657 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3658 * lto-cgraph.c (lto_output_node): Likewise.
3659 (input_overwrite_node): Likewise.
3660 * multiple_target.c (expand_target_clones): Likewise.
3661 * omp-simd-clone.c (simd_clone_create): Likewise.
3662 * trans-mem.c (expand_call_tm): Likewise.
3663 (ipa_tm_mayenterirr_function): Likewise.
3664 (ipa_tm_diagnose_tm_safe): Likewise.
3665 (ipa_tm_diagnose_transaction): Likewise.
3666 (ipa_tm_create_version): Likewise.
3667 (ipa_tm_transform_calls_redirect): Likewise.
3668 (ipa_tm_execute): Likewise.
3669 * tree-inline.c (expand_call_inline): Likewise.
3671 2019-10-29 Martin Liska <mliska@suse.cz>
3673 * symbol-summary.h (function_summary): Pass memory location
3674 to underlaying hash_map (or vec).
3675 (V>::fast_function_summary): Likewise.
3677 2019-10-29 Martin Liska <mliska@suse.cz>
3679 * ggc.h (ggc_alloc_no_dtor): New function.
3680 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3681 destructor and ggc_free.
3682 (ipa_free_size_summary): Call delete instead
3684 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3685 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3686 (ipa_free_all_edge_args): Call destructor and ggc_free.
3687 (ipa_free_all_node_params): Likewise.
3688 (ipcp_free_transformation_sum): Likewise.
3689 * ipa-prop.h (ipa_check_create_node_params):
3690 Call new ggc_alloc_no_dtor.
3691 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3692 (ipa_sra_analysis): Call destructor and ggc_free.
3693 Replace release with delete operator.
3694 * symbol-summary.h (release): Remove ..
3695 (V>::~fast_function_summary): and move logic here.
3696 Likewise for other classes.
3698 2019-10-29 Richard Biener <rguenther@suse.de>
3700 PR tree-optimization/92260
3701 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3704 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3706 PR tree-optimization/88915
3707 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3708 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3709 and make the valueize function pointer also take a void pointer.
3710 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3711 around vn_valueize, to call it without a context.
3712 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3713 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3714 (~_loop_vec_info): Release epilogue_vinfos.
3715 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3716 number of iterations of epilogue.
3717 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3718 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3719 versioning threshold needed for main loop.
3720 (vect_analyze_loop): Likewise.
3721 (find_in_mapping): New helper function.
3722 (update_epilogue_loop_vinfo): New function.
3723 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3724 on main loop and call update_epilogue_loop_vinfo to update it.
3725 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3726 stmts on loop preheader edge.
3727 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3728 we decided to vectorize epilogues. Update epilogues NITERS and
3729 construct ADVANCE to update epilogues data references where needed.
3730 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3731 (vect_do_peeling, vect_update_inits_of_drs,
3732 determine_peel_for_niter, vect_analyze_loop): Add or update
3734 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3735 created loop_vec_info's for epilogues when available. Otherwise analyse
3736 epilogue separately.
3738 2019-10-29 Richard Biener <rguenther@suse.de>
3740 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3743 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3745 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3746 index for the COND_EXPR from stmt_info rather than reduc_info.
3748 2019-10-29 Richard Biener <rguenther@suse.de>
3750 PR tree-optimization/65930
3751 * tree-vect-loop.c (check_reduction_path): Relax single-use
3752 check allowing out-of-loop uses.
3753 (vect_is_simple_reduction): SLP reduction chains cannot have
3754 intermediate stmts used outside of the loop.
3755 (vect_create_epilog_for_reduction): The adjustment might need
3757 (vectorizable_reduction): Annotate live stmts of the reduction
3758 chain with STMT_VINFO_REDUC_DEF.
3759 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3761 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3763 * calls.c (pass_by_reference): Leave the target to decide whether
3764 POLY_INT_CST-sized arguments should be passed by value or reference,
3765 rather than forcing them to be passed by reference.
3766 (must_pass_in_stack_var_size): Likewise.
3767 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3768 V31_REGNUM to P15_REGNUM.
3769 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3770 Take an extra "silent_p" parameter, defaulting to false.
3771 (aarch64_sve::svbool_type_p): Declare.
3772 (aarch64_sve::nvectors_if_data_type): Likewise.
3773 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3774 (aarch64_frame::reg_offset): Turn into poly_int64s.
3775 (aarch64_frame::save_regs_size): Likewise.
3776 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3777 (aarch64_frame::sve_callee_adjust): Likewise.
3778 (aarch64_frame::spare_reg_reg): Likewise.
3779 (ARM_PCS_SVE): New arm_pcs value.
3780 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3781 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3782 (CUMULATIVE_ARGS::silent_p): Likewise.
3783 (BITS_PER_SVE_PRED): New macro.
3784 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3785 function. Reject aarch64_vector_pcs attributes on SVE functions.
3786 (aarch64_attribute_table): Use the above handler.
3787 (aarch64_sve_abi): New function.
3788 (aarch64_sve_argument_p): Likewise.
3789 (aarch64_returns_value_in_sve_regs_p): Likewise.
3790 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3791 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3792 descriptor for them.
3793 (aarch64_simd_decl_p): Delete.
3794 (aarch64_emit_cfi_for_reg_p): New function.
3795 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3796 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3797 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3798 as partly clobbered for the SVE PCS.
3799 (aarch64_function_ok_for_sibcall): Check whether the two functions
3800 use the same ABI, rather than checking specifically for whether
3801 they're aarch64_vector_pcs functions.
3802 (aarch64_pass_by_reference): Raise an error for attempts to pass
3803 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3804 if there are not enough free registers left, or if the argument is
3806 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3807 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3809 (aarch64_layout_arg): Take a function_arg_info rather than
3810 individual properties. Handle SVE predicates, vectors and tuples.
3811 Raise an error if they are passed to unprototyped functions.
3812 (aarch64_function_arg): If the silent_p flag is set, suppress the
3813 usual error about using float registers without TARGET_FLOAT.
3814 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3815 it in the cumulative_args structure. Initialize aapcs_nprn and
3816 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3817 error about using float registers without TARGET_FLOAT.
3818 If the silent_p flag is not set, also raise an error about
3819 using SVE functions when SVE is disabled.
3820 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3821 and call it for SVE functions too. Update aapcs_nprn similarly
3822 to the other register counts.
3823 (aarch64_layout_frame): If a big-endian function needs to save
3824 and restore Z8-Z15, search for a spare predicate that it can use.
3825 Store SVE predicates at the bottom of the register save area,
3826 followed by SVE vectors, then followed by the normal slots.
3827 Keep pointing the hard frame pointer at the base of the normal slots,
3828 above the SVE vectors. Update the various frame creation and
3829 tear-down strategies for the new layout, initializing the new
3830 sve_callee_adjust field. Add an additional layout for frames
3831 whose saved registers are all SVE registers.
3832 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3833 (aarch64_return_address_signing_enabled): Likewise.
3834 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3835 aarch64_reg_save_mode.
3836 (aarch64_adjust_sve_callee_save_base): New function.
3837 (aarch64_add_cfa_expression): Move earlier in file. Take the
3838 saved register as an rtx rather than a register number and use
3839 its mode for the MEM slot.
3840 (aarch64_save_callee_saves): Remove the mode argument and instead
3841 use aarch64_reg_save_mode to get the mode of each save slot.
3842 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3843 offsets. Allow GP offsets to be saved at a VL-based offset from
3844 the stack, handling this case using the frame pointer if available
3845 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3846 big-endian SVE functions; use normal moves for other SVE saves.
3847 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3848 returns true. Add explicit CFA notes when not storing via the
3849 stack pointer. Do not try to pair SVE saves.
3850 (aarch64_restore_callee_saves): Cope with poly_int64 register
3851 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3852 use normal moves for other SVE restores. Only add CFA restore notes
3853 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3855 (aarch64_get_separate_components): Always keep the first SVE save
3856 in the prologue if we need to use it as a stack probe. Don't allow
3857 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3858 Likewise the spare predicate register that they need. Update the
3859 offset calculation to account for the SVE save area. Use the
3860 appropriate range check for SVE LDR and STR instructions.
3861 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3862 (aarch64_process_components): Likewise. Update the offset
3863 calculation to account for the SVE save area. Only mark the
3864 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3865 Do not try to pair SVE saves.
3866 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3867 reg_offsets. When handling the final allocation, expect the
3868 first SVE register save to be part of the initial allocation
3869 and for it to act as a probe at SP. Account for the SVE callee
3870 save area in the dump information.
3871 (aarch64_expand_prologue): Update the frame diagram. Fold the
3872 SVE callee allocation into the initial allocation if stack clash
3873 protection is enabled. Use new variables to track the offset
3874 of the frame chain (and hard frame pointer) from the current
3875 stack pointer, and likewise the offset of the bottom of the
3876 register save area. Update calls to aarch64_save_callee_saves
3877 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3878 saving the FP&SIMD registers. Save the predicate registers.
3879 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3880 into account when setting the stack pointer from the frame pointer,
3881 and when deciding whether we can inherit the initial adjustment
3882 amount from the prologue. Restore the predicate registers after
3883 the vector registers, then apply sve_callee_adjust, then restore
3884 the general registers.
3885 (aarch64_secondary_reload): Don't use secondary SVE reloads
3887 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3888 (aarch64_short_vector_p): Return false for SVE types.
3889 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3890 at the start of the function. Return false for SVE types.
3891 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3893 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3894 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3895 to big-endian targets for bytewise moves.
3896 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3898 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3899 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3900 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3902 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3903 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3904 aarch64-sve-builtins-base.o to extra_objs. Add
3905 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3906 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3907 (aarch64-sve-builtins-shapes.o): Likewise.
3908 (aarch64-sve-builtins-base.o): New rules.
3909 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3910 (aarch64_resolve_overloaded_builtin): Likewise.
3911 (aarch64_check_builtin_call): Likewise.
3912 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3913 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3915 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3916 (aarch64_svprfop): New enum.
3917 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3918 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3919 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3920 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3921 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3922 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3923 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3924 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3925 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3926 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3927 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3928 (aarch64_sve::mangle_builtin_type): Likewise.
3929 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3930 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3931 (aarch64_sve::expand_builtin): Likewise.
3932 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3933 (aarch64_sve_int_mode): Likewise.
3934 (aarch64_ptrue_all_mode): New function.
3935 (aarch64_convert_sve_data_to_pred): Make public.
3936 (svprfop_token): New function.
3937 (aarch64_output_sve_prefetch): Likewise.
3938 (aarch64_fold_sve_cnt_pat): Likewise.
3939 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3940 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3941 instead of gen_while_ult.
3942 (aarch64_replace_reg_mode): Make public.
3943 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3944 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3945 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3946 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3947 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3948 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3949 (aarch64_sve_ptrue_svpattern_p): Likewise.
3950 (aarch64_sve_pred_valid_immediate): Check
3951 aarch64_sve_ptrue_svpattern_p.
3952 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3953 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3955 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3956 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3957 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3958 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3959 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3960 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3962 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3963 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3964 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3965 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3966 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3967 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3968 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3969 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3970 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3971 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3972 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3973 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3974 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3975 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3976 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3977 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3978 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3979 (Vesize): Handle partial vector modes.
3980 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3982 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3984 (s, paired_extend, inc_dec): New code attributes.
3985 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3986 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3987 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3988 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3989 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3990 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3992 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3993 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3994 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3995 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3996 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3997 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3998 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3999 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4000 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4001 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4002 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4003 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4004 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4005 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4006 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4007 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4009 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4010 (binqops_op, binqops_op_rev, last_op): New int attributes.
4011 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4012 (fn, ab): New int attributes.
4013 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4014 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4015 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4016 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4018 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4019 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4020 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4021 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4022 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4024 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4025 (brk_reg_con, brk_reg_opno): New int attributes.
4026 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4027 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4028 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4030 (max_elem_bits): New int attribute.
4031 (min_elem_bits): Handle UNSPEC_RBIT.
4032 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4033 TRUNCATE as well as SUBREG.
4034 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4035 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4036 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4037 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4038 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4039 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4040 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4041 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4042 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4043 (aarch64_gather_scale_operand_h): New predicates.
4044 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4045 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4046 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4047 (*aarch64_sve_reinterpret<mode>): Allow any source register
4048 instead of requiring an exact match.
4049 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4050 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4051 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4052 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4053 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4054 (aarch64_update_ffrt): New patterns.
4055 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4056 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4057 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4058 (@aarch64_ld<fn>f1<mode>): New patterns.
4059 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4060 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4061 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4062 (@aarch64_ldnt1<mode>): New patterns.
4063 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4064 the scalar part of the address.
4065 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4066 scalar part of the addresse and add an alternative for handling
4068 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4069 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4070 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4071 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4072 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4073 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4074 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4075 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4076 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4077 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4078 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4079 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4080 (@aarch64_sve_prefetch<mode>): New patterns.
4081 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4082 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4083 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4084 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4085 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4086 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4087 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4088 (@aarch64_stnt1<mode>): New patterns.
4089 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4090 the scalar part of the address.
4091 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4092 the scalar part of the addresse and add an alternative for handling
4094 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4095 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4096 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4097 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4098 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4099 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4101 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4102 (extract_last_<mode>): Generalize to...
4103 (@extract_<LAST:last_op>_<mode>): ...this.
4104 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4105 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4106 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4107 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4108 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4109 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4110 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4111 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4112 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4113 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4114 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4115 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4116 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4117 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4118 (*aarch64_adr_uxtw_unspec): Likewise.
4119 (*aarch64_adr_uxtw): Rename to...
4120 (*aarch64_adr_uxtw_and): ...this.
4121 (@aarch64_adr<mode>_shift): New expander.
4122 (*aarch64_adr_shift_sxtw): New pattern.
4123 (aarch64_<su>abd<mode>_3): Rename to...
4124 (@aarch64_pred_<su>abd<mode>): ...this.
4125 (<su>abd<mode>_3): Update accordingly.
4126 (@aarch64_cond_<su>abd<mode>): New expander.
4127 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4128 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4129 (*<su>mul<mode>3_highpart): Rename to...
4130 (@aarch64_pred_<optab><mode>): ...this.
4131 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4132 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4133 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4134 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4135 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4136 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4137 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4138 (*v<ASHIFT:optab><mode>3): Rename to...
4139 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4140 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4141 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4142 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4143 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4144 (@cond_asrd<mode>): New expander.
4145 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4146 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4147 (*sdiv_pow2<mode>3): Delete.
4148 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4149 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4150 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4151 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4152 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4153 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4154 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4155 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4156 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4157 (*add<SVE_F:mode>3): Rename to...
4158 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4160 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4161 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4162 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4163 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4164 (*sub<SVE_F:mode>3): Rename to...
4165 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4167 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4168 (*fabd<SVE_F:mode>3): Rename to...
4169 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4170 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4171 (*mul<SVE_F:mode>3): Rename to...
4172 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4174 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4175 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4177 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4178 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4179 (*<nlogical><PRED_ALL:mode>3): Rename to...
4180 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4181 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4182 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4183 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4184 (aarch64_pred_<logical_nn><mode>_z): ...this.
4185 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4186 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4187 (*fma<SVE_I:mode>4): Rename to...
4188 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4189 (*fnma<SVE_I:mode>4): Rename to...
4190 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4191 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4192 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4193 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4194 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4195 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4196 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
4197 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
4198 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
4199 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
4200 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
4201 (@aarch64_sve_tmad<mode>): Likewise.
4202 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
4203 (*aarch64_sel_dup<mode>): Rename to...
4204 (@aarch64_sel_dup<mode>): ...this.
4205 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
4206 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
4207 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
4208 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
4209 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
4210 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
4211 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
4212 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
4213 (*fcm<cmp_op><mode>): Rename to...
4214 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
4215 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4216 (*fcmuo<mode>): Rename to...
4217 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
4218 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4219 (@aarch64_pred_fac<cmp_op><mode>): New expander.
4220 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
4221 (fold_extract_last_<mode>): Generalize to...
4222 (@fold_extract_<last_op>_<mode>): ...this.
4223 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
4224 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
4225 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
4226 DImode result explicit.
4227 (reduc_plus_scal_<mode>): Update accordingly.
4228 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
4229 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
4230 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
4231 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
4232 (*aarch64_sve_tbl<mode>): Rename to...
4233 (@aarch64_sve_tbl<mode>): ...this.
4234 (@aarch64_sve_compact<mode>): New pattern.
4235 (*aarch64_sve_dup_lane<mode>): Rename to...
4236 (@aarch64_sve_dup_lane<mode>): ...this.
4237 (@aarch64_sve_dupq_lane<mode>): New pattern.
4238 (@aarch64_sve_splice<mode>): Likewise.
4239 (aarch64_sve_<perm_insn><mode>): Rename to...
4240 (@aarch64_sve_<perm_insn><mode>): ...this.
4241 (*aarch64_sve_ext<mode>): Rename to...
4242 (@aarch64_sve_ext<mode>): ...this.
4243 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
4244 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
4246 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
4247 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4249 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4251 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
4252 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
4253 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
4254 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
4256 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
4257 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
4259 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
4260 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
4261 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
4263 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
4264 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
4265 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
4266 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
4267 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
4269 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
4270 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
4271 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
4272 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
4273 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
4274 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
4275 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
4276 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
4277 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
4278 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
4279 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
4280 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
4281 (aarch64_sve_cnt_pat): Likewise.
4282 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4283 (*aarch64_sve_incsi_pat): Likewise.
4284 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4285 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4286 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4287 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4288 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4289 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4290 (*aarch64_sve_decsi_pat): Likewise.
4291 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4292 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4293 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4294 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4295 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4296 (@aarch64_pred_cntp<mode>): Likewise.
4297 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4299 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4300 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4301 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4303 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4305 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
4306 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4307 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
4308 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4309 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
4310 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4311 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4313 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4314 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4315 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4317 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4319 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
4321 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4322 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
4324 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4325 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
4327 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4328 * config/aarch64/arm_sve.h: New file.
4329 * config/aarch64/aarch64-sve-builtins.h: Likewise.
4330 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
4331 * config/aarch64/aarch64-sve-builtins.def: Likewise.
4332 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
4333 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
4334 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
4335 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
4336 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
4337 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
4339 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4341 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
4343 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
4346 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4348 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
4349 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
4351 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
4352 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
4353 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
4354 (aarch64_hard_regno_nregs): Handle the new register classes.
4355 (aarch64_hard_regno_mode_ok): Likewise.
4356 (aarch64_regno_regclass): Likewise.
4357 (aarch64_class_max_nregs): Likewise.
4358 (aarch64_register_move_cost): Likewise.
4359 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
4360 as general register_operands.
4362 2019-10-29 Martin Liska <mliska@suse.cz>
4364 * ggc-common.c: One can't subtract unsigned types
4365 in compare function.
4367 2019-10-29 Martin Liska <mliska@suse.cz>
4369 * cgraphunit.c (symbol_table::compile): Pass
4370 title as dump_memory_report argument.
4371 * toplev.c (dump_memory_report): New argument.
4372 (finalize): Pass new argument.
4373 * toplev.h (dump_memory_report): Add argument.
4375 2019-10-29 Martin Liska <mliska@suse.cz>
4377 * ggc-common.c: Move Leak to the first column.
4379 2019-10-29 Martin Liska <mliska@suse.cz>
4381 * cgraphunit.c (symbol_table::compile): Remove argument
4382 for dump_memory_report.
4383 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4384 (compare_final): Remove in order to make report
4386 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4387 * mem-stats.h (mem_alloc_description::get_list):
4389 (mem_alloc_description::dump): Likewise here.
4390 * toplev.c (dump_memory_report): Remove final
4392 (finalize): Likewise.
4393 * toplev.h (dump_memory_report): Remove argument.
4395 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4397 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4398 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4399 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4400 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4403 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4405 * coretypes.h (string_int_pair): New typedef.
4406 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4407 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4408 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4410 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4412 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
4413 (simulate_builtin_function_decl): Declare.
4414 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
4415 (LANG_HOOKS_INITIALIZER): Include it.
4416 * langhooks.c (add_builtin_function_common): Rename to...
4417 (build_builtin_function): ...this. Add a location parameter and use
4418 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
4420 (add_builtin_function): Update accordingly, passing the returned
4421 decl to the lang hook.
4422 (add_builtin_function_ext_scope): Likewise
4423 (simulate_builtin_function_decl): New function.
4425 2019-10-29 Jakub Jelinek <jakub@redhat.com>
4427 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
4428 example, use actual names of supported offload targets.
4431 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
4433 2019-10-28 Martin Sebor <msebor@redhat.com>
4435 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
4436 (handle_store): Pass argument to get_addr_stridx.
4438 2019-10-28 Martin Sebor <msebor@redhat.com>
4440 PR tree-optimization/92226
4441 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
4442 the offset is in the open range outlined by SI's length.
4444 2019-10-28 Martin Sebor <msebor@redhat.com>
4447 * doc/cpp.texi (__has_builtin): Document.
4448 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
4450 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4453 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
4454 doubleword and low doubleword result of multiplication on
4457 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
4458 pure qualifier to the built-in.
4459 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
4461 (struct mips_builtin_description): Add is_pure flag.
4462 (mips_init_builtins): Mark built-in as pure if the flag in the
4463 corresponding mips_builtin_description struct is set.
4465 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
4466 alternative which covers the floating-point input value. Also
4467 forbid the split of insert.d pattern for floating-point values.
4469 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
4471 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
4472 * config/riscv/riscv-sr.c: New file.
4473 * config/riscv/riscv.c (riscv_reorg): New function.
4474 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4475 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
4476 (riscv_remove_unneeded_save_restore_calls): Declare.
4477 * config/riscv/t-riscv (riscv-sr.o): New build rule.
4479 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4481 PR tree-optimization/92163
4482 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
4483 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
4484 before calling bitmap_set_bit.
4485 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
4486 delete_dead_or_redundant_assignment.
4487 (dse_dom_walker::dse_optimize_stmt): Likewise.
4488 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
4490 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4493 * tree-vect-stmts.c (vectorizable_condition): Support
4494 EXTRACT_LAST_REDUCTION with fully-masked loops.
4496 2019-10-28 Richard Biener <rguenther@suse.de>
4498 PR tree-optimization/92252
4499 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
4500 STMT_VINFO_REDUC_IDX when swapping operands.
4502 2019-10-28 Richard Biener <rguenther@suse.de>
4504 PR tree-optimization/92241
4505 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
4506 we failed to update the reduction index do not use the pattern
4507 stmts for the reduction chain.
4508 (vectorizable_reduction): When the reduction chain is corrupt,
4510 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
4511 fail to update the reduction chain.
4513 2019-10-28 Richard Biener <rguenther@suse.de>
4515 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4516 STMT_VINFO_REDUC_IDX from the actual stmt.
4517 (vect_transform_reduction): Likewise.
4518 (vectorizable_reduction): Compute the reduction chain length,
4519 do not recompute the reduction operand index. Remove no longer
4520 necessary restriction for condition reduction chains.
4522 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4525 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
4526 condition for V2DImode.
4528 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4530 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
4531 Remove %k operand modifier.
4532 (*vec_extractv2df_1_sse): Remove %q operand modifier.
4534 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
4536 PR rtl-optimization/92007
4537 * cfgcleanup.c (thread_jump): Add an assertion that we don't
4538 call it after reload if hot/cold partitioning has been done.
4539 (class pass_postreload_jump): Rename to
4540 pass_jump_after_combine.
4541 (make_pass_postreload_jump): Rename to
4542 make_pass_jump_after_combine.
4543 * passes.def(pass_postreload_jump): Move before reload, rename
4544 to pass_jump_after_combine.
4545 * tree-pass.h (make_pass_postreload_jump): Rename to
4546 make_pass_jump_after_combine.
4548 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
4551 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4552 for missing EDGE_REF
4553 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4555 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4557 PR tree-optimization/88760
4558 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4559 Enable -funroll-loops for -O2 and above.
4560 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4561 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4562 do not turn on web and rngreg implicitly, if the unroller is not
4565 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4567 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4570 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4572 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4573 * cgraph.h (cgraph_node::rtl_info): Likewise.
4575 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4577 * ipa-cp.c (propagate_constants_across_call): If args are not available
4578 just drop everything to varying.
4579 (find_aggregate_values_for_callers_subset): Watch for missing
4581 (find_more_scalar_values_for_callers_subs): Likewise.
4582 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4583 update_jump_functions_after_inlining, propagate_controlled_uses):
4584 Watch for missing summaries.
4585 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4587 (ipa_write_node_info): Watch for missing summaries.
4588 (ipa_read_edge_info): Create new ref.
4589 (ipa_edge_args_sum_t): Add remove.
4590 (IPA_EDGE_REF_GET_CREATE): New macro.
4591 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4593 (remap_edge_change_prob): Likewise.
4595 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4597 * ipa-inline-transform.c (inline_call): update function summaries
4598 after expanidng thunk.
4600 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4602 * ipa-icf.c (sem_function::merge): Update function summaries.
4603 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4605 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4607 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4608 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4609 operand already has scalar mode.
4610 (iptr): Remove SF/DF.
4612 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4615 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4616 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4619 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4621 * config/i386/sse.md
4622 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4623 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4624 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4625 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4626 <sse>_vmmaskcmp<mode>3):
4627 Change predicates from vector_operand to nonimmediate_operand,
4628 constraints xBm to xm, since scalar operations don't need
4629 memory address alignment.
4630 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4631 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4632 round_saeonly_nimm_predicate with
4633 round_saeonly_nimm_scalar_predicate.
4634 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4635 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4636 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4637 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4638 avx512f_vmfmadd_<mode>_mask3<round_name>,
4639 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4640 *avx512f_vmfmsub_<mode>_mask<round_name>,
4641 avx512f_vmfmsub_<mode>_mask3<round_name>,
4642 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4643 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4644 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4645 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4646 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4647 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4648 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4649 cvtusi2<ssescalarmodesuffix>32<round_name>,
4650 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4651 round_nimm_predicate with round_nimm_scalr_predicate.
4652 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4653 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4654 avx512er_vmrcp28<mode><round_saeonly_name>,
4655 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4656 ): Replace round_saeonly_nimm_predicate with
4657 round_saeonly_nimm_scalar_predicate.
4658 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4659 vector_operand with nonimmediate_operand.
4660 * config/i386/subst.md (round_scalar_nimm_predicate,
4661 round_saeonly_scalar_nimm_predicate): Replace
4662 vector_operand with nonimmediate_operand.
4664 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4667 * config/i386/i386.md (*rcpsf2_sse): Add
4668 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4669 (*rsqrtsf2_sse): Ditto.
4670 (*sqrt<mode>2_sse): Ditto.
4671 (sse4_1_round<mode>2): separate constraint vm, add
4672 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4673 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4675 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4677 (*sse_vmrsqrtv4sf2): Ditto.
4678 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4679 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4680 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4681 <iptr> pointer size modifier since vround support memory operand.
4683 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4686 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4689 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4690 Tobias Burnus <tobias@codesourcery.com>
4692 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4693 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4696 2019-10-25 Richard Biener <rguenther@suse.de>
4698 PR tree-optimization/92222
4699 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4700 (_slp_oprnd_info::second_pattern): Likewise.
4701 (_slp_oprnd_info::any_pattern): New.
4702 (vect_create_oprnd_info): Adjust.
4703 (vect_get_and_check_slp_defs): Compute whether any stmt is
4705 (vect_build_slp_tree_2): Avoid building up a node from scalars
4706 if any of the operand defs, not just the first, is in a pattern.
4708 2019-10-25 Richard Biener <rguenther@suse.de>
4710 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4711 swapping if we actually have to modify the IL on a shared stmt.
4712 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4713 because we no longer modify the IL.
4715 2019-10-25 Martin Liska <mliska@suse.cz>
4717 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4719 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4721 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4722 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4723 handled by vect_transform_reduction. Allow fully-masked loops
4724 to be used with reduction chains.
4725 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4726 operations in fully-masked loops.
4727 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4728 operations in fully-masked loops.
4730 2019-10-25 Richard Biener <rguenther@suse.de>
4732 * tree-vect-loop.c (vectorizable_reduction): Verify
4733 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4735 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4736 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4739 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4741 * gimplify.h (omp_construct_selector_matches): Declare.
4742 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4743 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4744 called function if needed for flag_openmp.
4745 (gimplify_scan_omp_clauses): Set ctx->code.
4746 (omp_construct_selector_matches): New function.
4747 * omp-general.h (omp_constructor_traits_to_codes,
4748 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4749 * omp-general.c (omp_constructor_traits_to_codes,
4750 omp_context_selector_matches, omp_resolve_declare_variant): New
4753 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4755 * config/rx/rx.c (rx_print_operand): Likewise.
4756 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4757 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4758 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4760 * genemit.c (emit_c_code): Likewise.
4761 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4763 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4765 * symbols-summary.h (fast_function_summary<T *, V>::release,
4766 fast_call_summary<T *, V>::release): Free m_vector.
4768 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4770 * cgraphunit.c (symbol_table::process_new_functions): Call
4771 ipa_free_size_summary.
4772 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4773 (devirtualization_time_bonus): Update.
4774 (ipcp_propagate_stage): Update.
4775 * ipa-fnsummary.c (ipa_size_summaries): New.
4776 (ipa_fn_summary_alloc): Alloc size summary.
4777 (dump_ipa_call_summary): Update.
4778 (ipa_dump_fn_summary): Update.
4779 (analyze_function_body): Update.
4780 (compute_fn_summary): Likewise.
4781 (ipa_get_stack_frame_offset): New function.
4782 (inline_update_callee_summaries): Do not update frame offsets.
4783 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4784 remove call and function summary.
4785 (ipa_update_overall_fn_summary): Update.
4786 (inline_read_section): Update.
4787 (ipa_fn_summary_write): Update.
4788 (ipa_free_fn_summary): Do not remove summaries.
4789 (ipa_free_size_summary): New.
4790 (release summary pass): Also run at WPA.
4791 * ipa-fnsummary.h (ipa_size_summary): Declare.
4792 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4793 estimated_self_stack_size.
4794 (ipa_size_summary_t): New type.
4795 (ipa_size_summaries): Declare.
4796 (ipa_free_size_summary): Declare.
4797 (ipa_get_stack_frame_offset): Declare.
4798 * ipa-icf.c (sem_function::merge): Update.
4799 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4800 (estimate_growth): Update.
4801 (growth_likely_positive): Update.
4802 (clone_inlined_nodes): Update.
4803 (inline_call): Update.
4804 * ipa-inline.c (caller_growth_limits): Update.
4805 (edge_badness): Update.
4806 (recursive_inlining): Update.
4807 (inline_small_functions): Update.
4808 (inline_to_all_callers_1): Update.
4809 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4811 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4813 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4814 (uavg<mode>3_ceil): ... This.
4815 (altivec_vavgs<VI_char>): Rename to...
4816 (avg<mode>3_ceil): ... This.
4817 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4818 VAVGUW, VAVGSW): Adjust.
4820 2019-10-24 Nathan Sidwell <nathan@acm.org>
4822 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4824 2019-10-24 Martin Liska <mliska@suse.cz>
4826 * symbol-summary.h (gt_pch_nx): Mark all functions
4827 with gcc_unreachable as we do not expect to be called.
4829 2019-10-24 Richard Biener <rguenther@suse.de>
4831 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4832 chains try harder with operand swapping and instead of
4833 putting a shifted chain into the reduction operands put
4834 a repetition of the final reduction op there as if we'd
4835 reassociate the expression.
4837 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4839 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4840 statics_not_read and statics_not_written to statics_read and
4841 statics_written respectively.
4842 (no_module_statics): New static var.
4843 (ipa_reference_get_not_read_global): Rename to ...
4844 (ipa_reference_get_read_global): ... this.
4845 (ipa_reference_get_not_written_global): Rename to ...
4846 (ipa_reference_get_written_global): ... this.
4847 (dump_static_vars_set_to_file): Dump no_module_statics.
4848 (copy_static_var_set): Add for propagation parameter.
4849 (ipa_init): Initialize no_module_statics.
4850 (ipa_ref_opt_summary_t::duplicate): Update.
4851 (ipa_ref_opt_summary_t::remove): Update.
4852 (propagate): Update.
4853 (write_node_summary_p): Look correctly for bitmap differences.
4854 (ipa_reference_write_optimization_summary): Update.
4855 (ipa_reference_read_optimization_summary): Update.
4857 (ipa_reference_get_not_read_global): Rename to ...
4858 (ipa_reference_get_read_global): ... this.
4859 (ipa_reference_get_not_written_global): Rename to ...
4860 (ipa_reference_get_written_global): ... this.
4861 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4862 (call_may_clobber_ref_p_1): Update.
4864 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4866 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4868 (msp430_hard_regno_nregs_with_padding): Remove.
4870 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4872 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4873 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4874 shift amount is between 1 and 4.
4875 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4878 2019-10-24 Richard Biener <rguenther@suse.de>
4880 PR tree-optimization/92205
4881 * tree-vect-loop.c (vectorizable_reduction): Restrict
4882 search for alternate vectype_in to lane-reducing patterns
4885 2019-10-24 Richard Biener <rguenther@suse.de>
4887 PR tree-optimization/92203
4888 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4889 Skip eliminating conversion stmts inserted by insertion.
4891 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4893 * config/s390/s390.c (s390_get_thread_pointer): Use
4894 gen_get_thread_pointer.
4895 (s390_expand_split_stack_prologue): Likewise.
4896 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4897 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4898 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4899 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4902 2019-10-24 Richard Biener <rguenther@suse.de>
4904 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4905 SLP discovery fails try to handle the reduction as part
4906 of SLP reduction discovery.
4908 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4910 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4912 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4913 attribute if it exists, rather than the insn size. If we use the
4914 insn size, adjust the size to remove the extra size that prefixed
4916 (rs6000_adjust_insn_length): New function.
4917 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4918 update the instruction sized if prefixed instructions are used.
4919 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4920 (non_prefixed_length attribute): Delete.
4921 (num_insns attribute): New insn attribute to return the number of
4923 (max_prefixed_insns attribute): New insn attribute to return the
4924 maximum number of prefixed instructions in an insn.
4925 (length attribute): Do not adjust for prefix instructions here,
4926 punt to ADJUST_INSN_LENGTH.
4927 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4928 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4929 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4930 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4931 max_prefixed_insns and num_insns.
4933 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4934 (movtd_64bit_nodm): Reformat.
4935 (mov<mode>_32bit): Reformat.
4936 (mov<mode>_softfloat): Reformat.
4937 (FMOVE128_GPR splitter): Reformat.
4938 (DIFD splitter): Reformat.
4939 (TI2 splitter): Reformat.
4940 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4941 bits of the offset for the memory address are non-zero, use PLWA
4942 if prefixed instructions are available.
4944 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4946 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4948 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4950 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4953 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4955 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4956 (cmp_symbol_files): New.
4957 (lto_output): Copy sections in file order.
4958 * lto-streamer.h (lto_file_decl_data): Add field order.
4960 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4962 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4963 * ipa-reference.c (reference_vars_map_t): new type.
4964 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4965 (ipa_reference_var_uid): Implement.
4966 (varpool_node_hooks): New static var.
4967 (varpool_removal_hook): New function.
4968 (is_improper): Do not check bitmap for id==-1
4969 (get_static_name): Update.
4970 (ipa_init): Initialize new datastructures.
4971 (analyze_function): Do not recompute ids.
4972 (propagate): Free reference_vars_to_consider.
4973 (stream_out_bitmap): Update.
4974 (ipa_reference_read_optimization_summary): Update.
4976 2019-10-23 qing zhao <qing.zhao@oracle.com>
4978 PR gcov-profile/91971
4979 * coverage.c (coverage_init): Mangle the full path of filename when
4980 filename is a absolute path.
4982 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4984 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4985 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4986 (msp430_has_hwmult): New.
4987 (msp430_output_labelref):
4988 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4989 * config/msp430/msp430.md (mulhisi3): Likewise.
4990 (umulhisi3): Likewise.
4991 (mulsidi3): Likewise.
4992 (umulsidi3): Likewise.
4994 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4997 * params.def (inline-heuristics-hint-percent): Set to 600.
4999 2019-10-23 Richard Biener <rguenther@suse.de>
5001 PR tree-optimization/65930
5002 * tree-vect-loop.c (check_reduction_path): Allow conversions
5003 that only change the sign.
5004 (vectorizable_reduction): Relax latch def stmts we handle further.
5006 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5009 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5010 (remove_unused_ivs): Use it instead of get_computation_at. When
5011 choosing best candidate, only consider candidates where
5012 get_debug_computation_at actually returns non-NULL.
5014 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5016 PR tree-optimization/92131
5017 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5018 range would be symbolic, drop to varying for any explicit overflow
5019 in the constant part or if neither range is a singleton.
5021 2019-10-23 Martin Liska <mliska@suse.cz>
5024 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5027 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5029 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5030 int_mode_for_mode rather than mode_for_int_vector for scalars.
5032 2019-10-23 Richard Biener <rguenther@suse.de>
5034 PR tree-optimization/92179
5035 * tree-vect-stmts.c (vectorizable_shift): For shift args
5036 that are all the same remove type restriction in the SLP case.
5037 Adjust SLP code to handle converting of the shift arg to
5038 only apply in case the modes are different.
5040 2019-10-23 Martin Liska <mliska@suse.cz>
5043 * ipa-inline.c (recursive_inlining): Do not print
5044 when curr->count is not initialized.
5046 2019-10-23 Richard Biener <rguenther@suse.de>
5048 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5049 op from scalars in case there's a constant operand in its
5052 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5054 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5055 against out of range max skip or log values.
5057 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5059 * cgraph.c (dump_graphviz): Change name to dump_name
5061 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5063 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5064 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5065 subtraction from a carry operation.
5067 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5069 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5071 2019-10-22 Richard Biener <rguenther@suse.de>
5073 PR tree-optimization/92173
5074 * tree-vect-loop.c (vectorizable_reduction): If
5075 vect_transform_reduction cannot handle code-generation try without
5076 the single-def-use-cycle optimization. Pass optab_vector to
5077 optab_for_tree_code to get vector shifts as that's what we'd
5080 2019-10-22 Michael Matz <matz@suse.de>
5083 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5084 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5085 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5087 2019-10-22 Richard Biener <rguenther@suse.de>
5089 PR tree-optimization/92173
5090 * tree-vect-loop.c (vectorizable_reduction): If
5091 vect_transform_reduction cannot handle code-generation try without
5092 the single-def-use-cycle optimization. Pass optab_vector to
5093 optab_for_tree_code to get vector shifts as that's what we'd
5096 2019-10-22 Martin Liska <mliska@suse.cz>
5098 * diagnostic-format-json.cc (json_from_expanded_location):
5099 Use json::integer_number.
5100 * gcov.c (output_intermediate_json_line): Use new
5101 json::integer_number.
5102 (output_json_intermediate_file): Likewise.
5103 * json.cc (number::print): Move to ...
5104 (float_number::print): ... this.
5105 (integer_number::print): New.
5106 (test_writing_numbers): Move to ...
5107 (test_writing_float_numbers): ... this.
5108 (test_writing_integer_numbers): New.
5109 (json_cc_tests): Register test_writing_integer_numbers.
5110 * json.h (class value): Add forward declaration
5111 for float_number and integer_number.
5112 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5113 (class number): Move to ...
5114 (class float_number): ... this.
5115 (class integer_number): New.
5116 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5117 Use json::integer_number.
5118 (optrecord_json_writer::location_to_json): Likewise.
5119 (optrecord_json_writer::profile_count_to_json): Likewise.
5120 (optrecord_json_writer::pass_to_json): Likewise.
5122 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5124 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5125 autodetected_vector_size rather than vector_size is zero.
5126 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5127 Set autodetected_vector_size immediately after calling
5128 vect_analyze_loop_2. Check for a fatal error before advancing
5131 2019-10-21 Jason Merrill <jason@redhat.com>
5133 * lock-and-run.sh: Check for process existence rather than timeout.
5135 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5137 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5138 widening multiplication.
5140 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5142 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5143 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5145 (subsi3_carryin_shift): Separate into register and constant controlled
5146 alternatives. Use shift_amount_operand for operand 4. Set shift
5147 attribute and simplify type attribute.
5148 (subsi3_carryin_shift_alt): Likewise.
5149 (rsbsi3_carryin_shift): Likewise.
5150 (rsbsi3_carryin_shift_alt): Likewise.
5151 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5152 and register controlled shifts into distinct alternatives.
5153 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5154 (andsi_not_shiftsi_si_scc): Likewise.
5155 (arm_cmpsi_negshiftsi_si): Likewise.
5156 (not_shiftsi): Remove redundant M constraint from alternative 1.
5157 (not_shiftsi_compare0): Likewise.
5158 (arm_cmpsi_insn): Remove redundant alternative 2.
5159 (cmpsi_shift_swp): Likewise.
5160 (sub_shiftsi): Likewise.
5161 (sub_shiftsi_compare0_scratch): Likewise.
5162 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5163 (thumb2_cmpsi_neg_shiftsi): Likewise.
5165 2019-10-21 Richard Biener <rguenther@suse.de>
5167 PR tree-optimization/92162
5168 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5169 STMT_VINFO_REDUC_IDX in reduc_info.
5170 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5172 2019-10-21 Richard Biener <rguenther@suse.de>
5174 * tree-vectorizer.h (_slp_tree::ops): New member.
5175 (SLP_TREE_SCALAR_OPS): New.
5176 (vect_get_slp_defs): Adjust prototype.
5177 * tree-vect-slp.c (vect_free_slp_tree): Release
5178 SLP_TREE_SCALAR_OPS.
5179 (vect_create_new_slp_node): Initialize it. New overload for
5180 initializing by an operands array.
5181 (_slp_oprnd_info::ops): New member.
5182 (vect_create_oprnd_info): Initialize it.
5183 (vect_free_oprnd_info): Release it.
5184 (vect_get_and_check_slp_defs): Populate the operands array.
5185 Do not swap operands in the IL when not necessary.
5186 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5187 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5188 swap operands in the operands array. Do not swap operands in
5190 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5191 (vect_gather_slp_loads): Fix.
5192 (vect_detect_hybrid_slp_stmts): Likewise.
5193 (vect_slp_analyze_node_operations_1): Search for a internal
5194 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5195 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5196 the def-type push/pop dance.
5197 (vect_get_constant_vectors): Compute number_of_vectors here.
5198 Use SLP_TREE_SCALAR_OPS and simplify greatly.
5199 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
5200 (vect_get_slp_defs): Simplify greatly.
5201 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
5202 (vect_transform_reduction): Likewise.
5203 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
5204 (vectorizable_call): Likewise.
5205 (vectorizable_operation): Likewise.
5206 (vectorizable_load): Likewise.
5207 (vectorizable_condition): Likewise.
5208 (vectorizable_comparison): Likewise.
5210 2019-10-21 Richard Biener <rguenther@suse.de>
5212 PR tree-optimization/92161
5213 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
5216 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5218 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
5219 (aarch64_rndr): New define_insn.
5220 (aarch64_rndrrs): Likewise.
5221 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
5222 (TARGET_RNG): Likewise.
5223 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
5225 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
5226 Add fourth argument in prototype.
5227 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
5228 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
5229 (aarch64_init_rng_builtins): Define.
5230 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
5231 (aarch64_expand_rng_builtin): Define.
5232 (aarch64_general_expand_builtin): Use IGNORE argument, handle
5234 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5235 __ARM_FEATURE_RNG when TARGET_RNG.
5236 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
5238 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
5240 * tree-vect-stmts (ensure_base_align): Only change alignment if new
5241 alignment is more restrictive.
5243 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5245 * tree-vectorizer.h (vec_info::vector_size): New member variable.
5246 (vect_update_max_nunits): Update comment.
5247 (current_vector_size): Delete.
5248 * tree-vect-stmts.c (current_vector_size): Likewise.
5249 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
5250 of current_vector_size.
5251 (get_mask_type_for_scalar_type): Likewise.
5252 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
5253 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
5254 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
5255 (vect_double_mask_nunits, vect_transform_loop): Likewise.
5256 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5257 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
5259 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5261 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
5262 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
5263 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
5266 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5268 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
5269 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
5270 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
5272 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5274 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5276 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
5278 (vect_set_loop_condition_masked): Update call accordingly.
5280 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5282 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
5283 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5284 (simple_integer_narrowing): Update call accordingly.
5285 (vectorizable_conversion): Likewise.
5287 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5289 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
5290 (vectorizable_call): Update call accordingly.
5292 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5294 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
5295 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5296 (duplicate_and_interleave): Update call accordingly.
5297 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5299 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5301 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
5302 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
5303 (vect_get_constant_vectors): Update call accordingly.
5304 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
5306 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5308 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
5309 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
5310 (vect_prologue_cost_for_slp_op): Update call accordingly.
5311 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
5312 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
5313 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
5314 (get_mask_type_for_scalar_type): Likewise.
5315 (vect_get_vector_types_for_stmt): Likewise.
5316 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5317 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5318 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
5319 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
5320 (vect_split_statement, vect_convert_input): Likewise.
5321 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
5322 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
5323 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
5324 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
5325 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
5326 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
5327 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
5328 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
5329 (vect_recog_mask_conversion_pattern): Likewise.
5330 (vect_add_conversion_to_pattern): Likewise.
5331 (vect_recog_gather_scatter_pattern): Likewise.
5332 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
5333 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
5335 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5337 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
5338 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
5339 (vect_check_load_store_mask): Update call accordingly.
5340 (vect_get_mask_type_for_stmt): Likewise.
5341 * tree-vect-patterns.c (check_bool_pattern): Likewise.
5342 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
5343 (vect_convert_mask_for_vectype): Likewise.
5345 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5347 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
5349 (vect_recog_dot_prod_pattern): Update call accordingly.
5350 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
5351 (vect_recog_widen_sum_pattern): Likewise.
5353 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5355 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
5356 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
5357 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
5360 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5362 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
5363 get_vectype_for_scalar_type_and_size instead of
5364 get_vectype_for_scalar_type.
5366 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5368 * common.opt (-fcommon): Fix description.
5370 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5372 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5373 * config/i386/i386.c (ix86_pre_reload_split): New function.
5374 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5375 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5376 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5377 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5378 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5379 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5380 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5381 *<shift_insn><dwi>3_doubleword_mask,
5382 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5383 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5384 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5385 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5386 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5387 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5388 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5389 *avx2_<code>v8qiv8si2<mask_name>_2,
5390 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5391 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5392 *avx512f_<code>v8qiv8di2<mask_name>_2,
5393 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5394 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5395 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5396 sse4_2_pcmpistr): Likewise.
5398 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5400 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5401 now defaults to https.
5403 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5405 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5406 skip non-zero array accesses.
5408 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5410 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5411 and return a boolean success value. Move the allocation and
5412 initialization of the bb_vec_info to...
5413 (vect_slp_bb_region): ...here. Update call accordingly.
5414 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
5415 than in vect_slp_analyze_bb_1.
5417 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5419 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
5420 when processing the given datarefs for the first time and
5421 check_datarefs subsequently.
5422 (vect_slp_bb_region): New function, split out of...
5423 (vect_slp_bb): ...here. Don't recompute the region bounds and
5424 dataref sets when retrying with a different vector size.
5426 2019-10-19 Jakub Jelinek <jakub@redhat.com>
5427 Uroš Bizjak <ubizjak@gmail.com>
5430 * config/i386/predicates.md (int_nonimmediate_operand): New special
5432 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
5433 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
5434 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
5435 define_insn_and_split patterns.
5437 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
5439 * config/rs6000/rs6000.md: Delete out--of-date comment about
5440 special-casing integer loads.
5442 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
5444 * escaped_string.h (escaped_string): New header.
5445 * tree.c (escaped_string): Remove escaped_string class.
5447 2019-10-18 Martin Sebor <msebor@redhat.com>
5449 PR tree-optimization/92157
5450 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5451 compute_string_length to return a negative result.
5453 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5455 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
5456 (negvsi3, negvdi3): Delete.
5457 (negdi2_compare): Delete.
5459 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5461 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
5463 (subdi3_compare1): Delete pattern.
5464 (subvsi3_borrow): New insn pattern.
5465 (subvsi3_borrow_imm): Likewise.
5467 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5469 * config/arm/arm.md (subv<mode>4): Delete.
5470 (subvdi4): New expander pattern.
5471 (subvsi4): Likewise. Handle some immediate values.
5472 (subvsi3_intmin): New insn pattern.
5473 (subvsi3): Likewise.
5474 (subvsi3_imm1): Likewise.
5475 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
5478 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5480 * config/arm/arm.md (usubvdi4): Allow registers or integers for
5481 incoming operands. Early split the calculation into SImode
5483 (usubvsi3_borrow): New insn pattern.
5484 (usubvsi3_borrow_imm): Likewise.
5486 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5488 * config/arm/arm.md (usubv<mode>4): Delete expansion.
5489 (usubvsi4): New pattern. Allow some immediate values for inputs.
5490 (usubvdi4): New pattern.
5492 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5494 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
5495 or second operand of the PLUS inside a DImode equality test to be
5496 sign-extend when selecting CC_Vmode.
5497 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
5499 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
5501 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
5502 (addsi3_cin_vout_0): Likewise.
5503 (adddi3_compareV): Delete.
5505 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5507 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
5508 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
5509 to transform this back into the summation version when that leads
5512 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5514 * config/arm/arm.md (addv<mode>4): Delete.
5515 (addvsi4): New pattern. Handle immediate values that the architecture
5517 (addvdi4): New pattern.
5518 (addsi3_compareV): Rename to ...
5519 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
5520 and use COMPARE rather than NE.
5521 (addsi3_compareV_imm): New pattern.
5522 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
5523 a signed-overflow check.
5525 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5527 * config/arm/arm-modes.def (CC_ADC): New CC mode.
5528 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
5530 (maybe_get_arm_condition_code): Handle CC_ADCmode.
5531 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
5533 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
5535 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
5536 (addsi3_cin_cout_imm_insn): Likewise.
5537 (adddi3_compareC): Delete insn.
5538 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
5540 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5542 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
5543 * (uaddv<mode>4): Delete expansion pattern.
5544 (uaddvsi4): New pattern.
5545 (uaddvdi4): Likewise.
5546 (addsi3_compareC): Delete pattern, change callers to use
5548 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
5549 reduce the number of alternatives and re-work type attribute handling.
5550 (addsi3_compare_op2): Clean up constraints to reduce the number of
5551 alternatives and re-work type attribute handling.
5552 (compare_addsi2_op0): Likewise.
5553 (compare_addsi2_op1): Likewise.
5555 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5557 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5558 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5559 for DImode operands.
5560 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5561 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5563 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5564 (arm_cmpdi_unsigned): Delete.
5566 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5568 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5569 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5570 unchanged only if that will be cheaper.
5571 (arm_select_cc_mode): Recognize a swapped comparison that will
5572 be regenerated using RSBS or RSCS. Relax restriction on selecting
5574 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5576 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5578 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5580 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5581 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5583 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5585 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5586 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5588 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5589 of EQ, NE, LT, GE, LTU and GEU.
5590 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5591 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5592 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5593 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5594 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5596 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5598 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5600 (cstoredi4): Similarly, but for operand 3.
5601 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5602 canonicalization of unsigned compares with a constant on Arm.
5603 Prefer using const+1 and adjusting the comparison over swapping the
5604 operands whenever the original constant was not valid.
5605 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5607 (arm_validize_comparison): Do not force invalid DImode operands to
5610 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5612 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5613 return CC_Zmode if comparing against a constant where one word is
5615 (arm_gen_compare_reg): Split DImode handling to ...
5616 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5617 against simple constants.
5618 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5620 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5622 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5623 (rsbsi3_carryin_shift_alt): Likewise.
5625 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5627 * config/arm/arm.md (negscc_borrow): New pattern.
5628 (mov_negscc): Don't split if the insn would match negscc_borrow.
5629 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5630 (thumb2_mov_negscc_strict_it): Likewise.
5632 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5634 * config/arm/arm.c (arm_insn_cost): New function.
5635 (TARGET_INSN_COST): Override default definition.
5637 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5639 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5642 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5644 * config/arm/arm.c (strip_carry_operation): New function.
5645 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5648 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5650 * config/arm/predicates.md (arm_carry_operation): New special
5652 * config/arm/iterators.md (LTUGEU): Delete iterator.
5653 (cnb): Delete code attribute.
5654 (optab): Delete ltu and geu elements.
5655 * config/arm/arm.md (addsi3_carryin): Renamed from
5656 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5657 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5658 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5659 (addsi3_carryin_clobercc): Similarly.
5660 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5663 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5665 * config/arm/arm.md (arm_subdi3): Delete insn.
5666 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5668 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5670 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5671 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5672 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5674 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5675 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5677 (subdi3): Rewrite to early-expand the sub-operations.
5678 (rsb_im_compare): New pattern.
5680 (negdi2_insn): Delete.
5681 (arm_negsi2): Correct type attribute to alu_imm.
5682 (negsi2_0compare): New insn pattern.
5683 (negsi2_carryin): New insn pattern.
5685 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5687 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5690 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5692 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5693 to match canonical form.
5695 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5697 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5698 (extend<mode>di2): Likewise.
5700 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5702 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5703 * config/arm/arm.c (arm_decompose_di_binop): New function.
5704 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5705 If not generating Thumb-1 code, decompose the operation into 32-bit
5707 * add0si_carryin_<optab>: New pattern.
5709 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5711 * arm.md (adddi3): Only accept register operands.
5712 (arm_adddi3): Convert to simple insn with no split. Do not accept
5714 (adddi_sesidi_di): Delete patern.
5715 (adddi_zesidi_di): Likewise.
5716 (uaddv<mode>4): Use LTU as condition for branch.
5717 (adddi3_compareV): Convert to simple insn with no split.
5718 (addsi3_compareV_upper): Delete pattern.
5719 (adddi3_compareC): Convert to simple insn with no split. Correct
5720 flags setting expression.
5721 (addsi3_compareC_upper): Delete pattern.
5722 (addsi3_compareC): Correct flags setting expression.
5723 (subdi3_compare1): Convert to simple insn with no split.
5724 (subsi3_carryin_compare): Delete pattern.
5725 (arm_subdi3): Convert to simple insn with no split.
5726 (subdi_zesidi): Delete pattern.
5727 (subdi_di_sesidi): Delete pattern.
5728 (subdi_zesidi_di): Delete pattern.
5729 (subdi_sesidi_di): Delete pattern.
5730 (subdi_zesidi_zesidi): Delete pattern.
5731 (negvdi3): Use s_register_operand.
5732 (negdi2_compare): Convert to simple insn with no split.
5733 (negdi2_insn): Likewise.
5734 (negsi2_carryin_compare): Delete pattern.
5735 (negdi_zero_extendsidi): Delete pattern.
5736 (arm_cmpdi_insn): Convert to simple insn with no split.
5737 (negdi2): Don't call gen_negdi2_neon.
5738 * config/arm/neon.md (adddi3_neon): Delete pattern.
5739 (subdi3_neon): Delete pattern.
5740 (negdi2_neon): Delete pattern.
5741 (splits for negdi2_neon): Delete splits.
5743 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5746 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5749 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5751 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5752 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5753 new multilib variants and new mappings.
5755 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5758 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5760 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5761 Richard Sandiford <richard.sandiford@arm.com>
5764 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5765 and define hashmap traits for it.
5766 (loop_vec_info::scalar_cond_masked_set): New member.
5767 (vect_record_loop_mask): Adjust prototype.
5768 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5770 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5771 vect_record_loop_mask.
5772 (vectorizable_live_operation): Likewise.
5773 (vect_record_loop_mask): New param scalar_mask. Add entry
5774 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5775 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5776 Pass it as last arg to vect_record_loop_mask.
5777 (vectorizable_call): Pass scalar_mask as last arg to
5778 vect_record_loop_mask.
5779 (vectorizable_store): Likewise.
5780 (vectorizable_load): Likewise.
5781 (vectorizable_condition): Check if another part of vectorized code
5782 applies loop_mask to condition or to it's inverse, and if yes,
5783 apply loop_mask to result of vector comparison.
5785 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5787 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5789 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5791 PR tree-optimization/92056
5792 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5793 before calling compute_builtin_object_size.
5795 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5798 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5799 (movdi_low_st): Delete.
5800 * config/rs6000/rs6000.c
5801 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5802 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5803 * config/rs6000/rs6000.md (movsi_low): Delete.
5805 2019-10-17 Jason Merrill <jason@redhat.com>
5807 * gimplify.h (get_initialized_tmp_var): Add default argument to
5809 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5810 NULL post_p argument.
5811 * targhooks (std_gimplify_va_arg_expr): Likewise.
5813 2019-10-17 Richard Biener <rguenther@suse.de>
5815 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5816 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5817 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5818 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5819 * tree-vect-loop.c (vect_is_simple_reduction): Set
5820 STMT_VINFO_REDUC_CODE.
5821 (vectorizable_reduction): Remove dead and redundant code, use
5822 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5824 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5826 Fix breakage introduced by r276985.
5828 * config/avr/avr.c (avr_option_override): Remove set of
5829 PARAM_ALLOW_STORE_DATA_RACES.
5830 * common/config/avr/avr-common.c (avr_option_optimization_table)
5831 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5833 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5835 * config/i386/i386.h (processor_costs): Add clear_ratio.
5836 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5837 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5838 of 6 and move_ratio in all cost models.
5840 2019-10-17 Richard Biener <rguenther@suse.de>
5842 * tree-vect-loop.c (check_reduction_path): Compute reduction
5844 (vect_is_simple_reduction): Remove special-case of single-stmt
5845 reduction path detection.
5847 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5849 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5851 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5853 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5854 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5855 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5856 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5857 New combine patterns.
5858 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5860 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5862 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5864 * tree-vrp.c (value_range_base::dump): Display +INF for both
5865 pointers and integers when appropriate.
5867 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5869 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5870 when to use versioning threshold.
5872 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5874 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5875 outlined code from ...
5876 (vect_analyze_loop_2): ... here.
5878 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5880 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5881 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5882 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5884 2019-10-17 Richard Biener <rguenther@suse.de>
5886 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5887 (vect_is_simple_reduction): Move all validity checks ...
5888 (vectorizable_reduction): ... here. Compute whether we
5889 need a fold-left reduction here.
5890 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5891 both overloads, check needs_fold_left_reduction_p directly.
5892 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5894 2019-10-17 Richard Biener <rguenther@suse.de>
5896 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5897 TARGET_MEM_REF creation.
5899 2019-10-17 Richard Biener <rguenther@suse.de>
5901 PR tree-optimization/92129
5902 * tree-vect-loop.c (vectorizable_reduction): Also fail
5903 on GIMPLE_SINGLE_RHS.
5905 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5907 PR tree-optimization/92056
5908 * tree-object-size.c (cond_expr_object_size): Return early if then_
5909 processing resulted in unknown size.
5911 PR tree-optimization/92115
5912 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5913 temporary if it could trap.
5915 2019-10-17 Richard Biener <rguenther@suse.de>
5918 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5919 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5921 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5923 * tree-ssa-strlen.c (maybe_invalidate): Use
5924 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5926 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5927 Jim Wilson <jimw@sifive.com>
5929 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5930 regs to SIBCALL_REGS.
5931 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5932 passing regs to SIBCALL_REGS.
5934 2019-10-16 Martin Sebor <msebor@redhat.com>
5936 PR tree-optimization/83821
5937 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5938 the length of a string when available.
5939 (handle_builtin_memset) Add argument.
5940 (handle_store, strlen_check_and_optimize_call): Same.
5941 (check_and_optimize_stmt): Same. Pass it to callees.
5943 2019-10-16 Martin Sebor <msebor@redhat.com>
5945 PR tree-optimization/91996
5946 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5948 (compare_nonzero_chars): Add an overload.
5949 (count_nonzero_bytes): Add an argument. Call overload above.
5950 Handle non-constant lengths in some range.
5951 (handle_store): Add an argument.
5952 (check_and_optimize_stmt): Pass an argument to handle_store.
5954 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5956 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5958 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5960 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5961 operands which correspond to the same input-output register to
5962 have the same pseudo assigned to them.
5964 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5966 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5968 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5970 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5971 Apply reasonable limit to symbol offsets.
5973 2019-10-16 Richard Biener <rguenther@suse.de>
5975 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5976 (vect_is_simple_reduction): Delay checking to
5977 vectorizable_reduction and relax the checking.
5978 (vectorizable_reduction): Check we have a simple use. Check
5979 for bogus condition reductions.
5980 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5981 are looking at the last stmt in a pattern sequence when
5982 filling in backedge PHI values.
5984 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5985 Jiufu Guo <guojiufu@linux.ibm.com>
5988 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5989 the callee explicitly disables some isa_flags the caller is using.
5991 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5993 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5995 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5997 * genmodes.c (mode_data::order): New field.
5998 (blank_mode): Update accordingly.
5999 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6000 (make_vector_modes): Likewise.
6001 (VECTOR_MODES): Update use accordingly.
6002 (cmp_modes): Sort by the new order field ahead of sorting by size.
6003 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6004 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6005 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6006 (aarch64_classify_vector_mode): Handle the new partial modes.
6007 (aarch64_vl_bytes): New function.
6008 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6009 when counting the number of registers in an SVE mode.
6010 (aarch64_class_max_nregs): Likewise.
6011 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6013 (aarch64_classify_address): Treat partial vectors analogously
6015 (aarch64_print_address_internal): Consolidate the printing of
6016 MUL VL addresses, using aarch64_vl_bytes as the number of
6017 bytes represented by "VL".
6018 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6020 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6022 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6023 rather than known_lt when choosing frame layouts.
6025 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6027 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6028 that all the adjustments add up to the full frame size.
6029 Use crtl->outgoing_args_size directly as the final adjustment
6032 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6034 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6035 "frame" reference instead of always referring directly to
6036 "cfun->machine->frame".
6038 2019-10-16 Richard Biener <rguenther@suse.de>
6040 PR tree-optimization/92119
6041 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6042 against missing bswap lhs.
6044 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6047 * poly-int.h (constant_lower_bound_with_limit): New function.
6048 (constant_upper_bound_with_limit): Likewise.
6049 * doc/poly-int.texi: Document them.
6050 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6051 into the worst-case INTEGER_CST bounds.
6053 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6056 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6057 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6058 * ipa-predicat.h (struct expr_eval_op): New struct.
6059 (expr_eval_ops): New typedef.
6060 (struct condition): Add type and param_ops fields, remove size field.
6061 (add_condition): Replace size parameter with type parameter, add
6062 param_ops parameter.
6063 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6064 (predicate::add_clause): Add comparisons on type and param_ops.
6065 (dump_condition): Add debug dump for param_ops.
6066 (remap_after_inlining): Adjust call arguments to add_condition.
6067 (add_condition): Replace size parameter with type parameter, add
6068 param_ops parameter. Unshare constant value used in conditions.
6069 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6070 parameter expressions using param_ops.
6071 (decompose_param_expr): New function.
6072 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6073 to replace call to unmodified_parm_or_parm_agg_item.
6074 (set_switch_stmt_execution_predicate): Likewise.
6075 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6077 (inline_read_section): Read param_ops from summary stream.
6078 (ipa_fn_summary_write): Write param_ops to summary stream.
6080 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6082 PR rtl-optimization/92107
6083 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6086 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6088 * config/darwin.c: Update description of fix and continue.
6090 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6092 * config/darwin.c (darwin_binds_local_p): Update to call
6093 default_binds_local_p_3 () directly. amend comments.
6095 2019-10-15 Richard Biener <rguenther@suse.de>
6097 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6098 (tree_is_indexable): Use it.
6099 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6100 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6101 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6103 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6105 * config/msp430/msp430.md (zero_extendqipsi2): New.
6106 (zero_extendqisi2): Optimize case where src register and base dst
6107 register are the same.
6108 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6109 (zero_extendpsisi2): Optimize r->m case.
6110 Add unnamed insn patterns to catch insns combine searches for when
6111 optimizing pointer manipulation.
6113 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6115 * config/msp430/msp430.md: Group zero_extend* insns together.
6117 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6119 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6121 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6123 (msp430_subreg): Likewise.
6124 (msp430_split_addsi): Likewise.
6125 (msp430_print_operand_addr): Likewise.
6126 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6127 (USE_STORE_POST_INCREMENT): Define.
6128 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6129 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6130 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6131 (msp430_general_dst_operand): New.
6132 (msp430_general_dst_nonv_operand): New.
6133 (msp430_nonsubreg_operand): Remove.
6134 (msp430_nonsubreg_dst_operand): New.
6135 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6136 of defunct msp430_nonsubreg_operand.
6137 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6139 2019-10-15 Richard Biener <rguenther@suse.de>
6141 PR tree-optimization/91929
6142 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6143 (get_or_alloc_expr_for_name): Initialize it.
6144 (get_or_alloc_expr_for_constant): Likewise.
6145 (phi_translate_1): Copy it.
6146 (create_expression_by_pieces): Use the original location
6147 of the expression for the inserted stmt.
6148 (compute_avail): Record the location of the stmt for the
6149 expressions created.
6151 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6153 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6154 before using tree_to_uhwi.
6156 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6158 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6160 2019-10-15 Richard Biener <rguenther@suse.de>
6162 PR tree-optimization/92094
6163 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6164 do not adjust the reduction definition def type.
6165 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6166 defines the latch argument of the PHI.
6168 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6171 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6172 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6173 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6174 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6175 _mm_maskz_roundscale_round_sd): New intrinsics.
6176 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6177 __builtin_ia32_rndscales?_mask_round builtins instead of
6178 __builtin_ia32_rndscales?_round.
6179 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6180 __builtin_ia32_rndscalesd_round): Remove.
6181 (__builtin_ia32_rndscaless_mask_round,
6182 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6183 * config/i386/sse.md
6184 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6185 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6186 ... this, adjust and add subst atrributes to make it maskable.
6188 2019-10-15 Richard Biener <rguenther@suse.de>
6191 * common.opt (fallow-store-data-races): New.
6192 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6193 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6194 * doc/invoke.texi (fallow-store-data-races): Document.
6195 (--param allow-store-data-races): Remove docs.
6196 * opts.c (default_options_table): Enable -fallow-store-data-races
6198 (default_options_optimization): Do not enable --param
6199 allow-store-data-races at -Ofast.
6200 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
6201 instead of PARAM_ALLOW_STORE_DATA_RACES.
6202 * tree-ssa-loop-im.c (execute_sm): Likewise.
6204 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6206 PR tree-optimization/92085
6207 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
6208 instead of calling it unconditionally after
6209 delete_dead_or_redundant_assignment and fix indentation.
6211 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6213 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
6215 (*fmsub<SDF:mode>4): Likewise.
6216 *fnmsub<SDF:mode>4): Likewise.
6217 (*fnmadd<SDF:mode>4): Likewise.
6219 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
6221 * doc/tree-ssa.texi: Update renamed macro name.
6223 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6225 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
6228 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
6230 * config/darwin.c: Use unsigned ints for the picbase label
6231 counters, initialise the vars explicitly.
6232 (update_pic_label_number_if_needed): Move a variable declaration
6233 to where it's needed.
6234 (machopic_output_function_base_name): Use a more strict checking
6235 assert, and and unsigned int for the picbase label counter.
6236 (machopic_get_function_picbase): Likewise.
6238 2019-10-14 Richard Biener <rguenther@suse.de>
6241 * dse.c (scan_insn): Use param max_active_local_stores.
6242 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6243 based on optimization level.
6244 * loop-invariant.c (move_loop_invariants): Adjust
6245 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
6246 * opts.c (default_options_optimization): Do not adjust
6247 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
6248 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
6250 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6252 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
6254 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6256 * config/arm/arm.c (arm_option_override): Don't override sched
6259 2019-10-14 Richard Biener <rguenther@suse.de>
6261 PR tree-optimization/92069
6262 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
6263 cycles do not set vect_nested_cycle on the latch definition.
6265 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
6267 * function-abi.h (expr_callee_abi): Declare.
6268 * function-abi.cc (expr_callee_abi): New function.
6270 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
6272 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
6274 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
6275 non-zero being represented as [1,MAX].
6277 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6279 * tree-sra.c (dump_access): Add missing braces.
6281 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6283 * config/darwin.c (machopic_indirection_name): Rework the
6284 function to emit linker-visible symbols only for indirections
6285 in the data section. Clean up the code and update comments.
6287 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6289 * config/darwin.c (machopic_indirect_data_reference): Remove
6292 2019-10-13 Nathan Sidwell <nathan@acm.org>
6294 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
6296 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6298 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
6301 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
6303 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
6304 so non-virutal are before virutals.
6305 (output_function): Avoid body modifications.
6307 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6309 * config/pa/pa.c (pa_output_call): Load descriptor address to register
6310 %r22. Load function address before global pointer.
6311 (pa_attr_length_indirect_call): Adjust length of inline versions of
6313 (pa_output_indirect_call): Remove fast inline version of $$dyncall
6314 before normal cases. Update inline $$dyncall sequences to preserve
6315 function descriptor address in register %r22.
6316 (TRAMPOLINE_CODE_SIZE): Adjust.
6317 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
6318 register %r22 contains trampoline address.
6319 (pa_trampoline_init): Adjust offsets.
6320 (pa_trampoline_adjust_address): Likewise.
6321 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
6323 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6326 * config/darwin.c (machopic_indirection): New field to flag
6327 non-lazy-symbol-pointers in the data section.
6328 (machopic_indirection_name): Compute if an indirection should
6329 appear in the data section.
6330 (machopic_output_data_section_indirection): New callback split
6331 from machopic_output_indirection.
6332 (machopic_output_stub_indirection): Likewise.
6333 (machopic_output_indirection): Retain the code for non-lazy
6334 symbol pointers in their regular section.
6335 (machopic_finish): Use the new callbacks to order the indirection
6338 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6340 * config/darwin-protos.h (machopic_finish): Delete.
6341 * config/darwin.c (machopic_finish): Make static.
6343 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6345 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
6346 sections when building kernel extension code.
6348 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
6350 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
6353 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6355 * config/pa/pa.c (pa_option_override): Remove trailing comma
6358 2019-10-12 Jakub Jelinek <jakub@redhat.com>
6361 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
6362 <case VEC_COND_EXPR>: Return false with *handled = false.
6363 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
6364 recursing on the first operand.
6365 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6366 instead of tree_could_trap_p.
6367 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6369 2019-10-11 Jim Wilson <jimw@sifive.com>
6371 PR rtl-optimization/91860
6372 * combine.c (subst): If new_rtx is a constant, also check for
6373 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6375 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6377 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6378 INTVAL when calling store_bit_field.
6380 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6382 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6385 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6387 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6388 vectorizable_live_operation.
6389 (vectorizable_live_operation): Adjust parameters.
6390 * tree-vect-stmts.c (vect_init_vector,
6391 vect_gen_widened_results_half): Fix typo in function comment.
6392 (can_vectorize_live_stmts): Adjust function comment.
6393 Adjust parameters. Adjust call to vectorizable_live_operation.
6394 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6395 (vect_transform_stmt): Adjust function comment. Adjust call to
6396 can_vectorize_live_stmts.
6397 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6399 2019-10-11 Richard Biener <rguenther@suse.de>
6401 PR tree-optimization/90883
6402 PR tree-optimization/91091
6403 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6404 alias-sets both for recording VN table entries and continuing
6405 walking after translating through copies. Handle same-sized
6406 reads from SSA names by returning the plain SSA name.
6407 (eliminate_dom_walker::eliminate_stmt): Properly handle
6408 non-size precision stores in redundant store elimination.
6410 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6412 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
6413 (ggc_collect): Dump later to not interfere with release_page dump.
6414 (ggc_trim): New function.
6415 * ggc-none.c (ggc_trim): New.
6416 * ggc.h (ggc_trim): Declare.
6418 2019-10-11 Richard Biener <rguenther@suse.de>
6420 PR tree-optimization/92066
6421 PR tree-optimization/92046
6422 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6423 Fix bogus cost model check.
6425 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6427 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
6428 (LANG_HOOKS_DECLS): Add it.
6429 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
6430 update comment for omp_is_optional_argument.
6431 * omp-general.c (omp_is_allocatable_or_ptr): New.
6432 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
6433 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
6434 Fortran's optional arguments and allocatable/pointer scalars
6435 with use_device_addr.
6437 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
6440 * config/s390/2827.md: Add new opcodes.
6441 * config/s390/2964.md: Likewise.
6442 * config/s390/3906.md: Likewise.
6443 * config/s390/8561.md: Likewise.
6444 * config/s390/s390-builtins.def (s390_vfchesb): Use
6445 the new vec_cmpgev4sf_quiet_nocc.
6446 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
6447 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
6448 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
6449 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
6450 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
6451 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
6452 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
6453 * config/s390/s390-modes.def (CCSFPS): New mode.
6454 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
6455 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
6456 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
6457 (s390_expand_vec_compare): Use non-signaling patterns where
6459 (s390_reverse_condition): Support CCSFPS.
6460 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
6461 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
6462 (asm_fcmp_op): Likewise.
6463 (*smaxv2df3_vx): Use pattern for quiet comparison.
6464 (*sminv2df3_vx): Likewise.
6465 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
6466 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
6467 (vec_cmpgt<mode>_quiet_nocc): Likewise.
6468 (vec_cmplt<mode>_quiet_nocc): New expander.
6469 (vec_cmpge<mode>_quiet_nocc): New pattern.
6470 (vec_cmple<mode>_quiet_nocc): New expander.
6471 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
6472 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
6473 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
6474 (*vec_cmpge<mode>_signaling_nocc): Likewise.
6475 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
6476 (vec_cmpungt<mode>): New expander.
6477 (vec_cmpunge<mode>): Likewise.
6478 (vec_cmpuneq<mode>): Use quiet patterns.
6479 (vec_cmpltgt<mode>): Allow only on z14+.
6480 (vec_cmpordered<mode>): Use quiet patterns.
6481 (vec_cmpunordered<mode>): Likewise.
6482 (VEC_CMP_EXPAND): Add ungt and unge.
6484 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6486 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
6488 * lto-streamer-out.c: Include tree-dfa.h.
6489 (output_cfg): Do not use cfun.
6490 (lto_prepare_function_for_streaming): New.
6491 (output_function): Do not push cfun; do not initialize loop optimizer.
6492 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
6493 * passes.c (ipa_write_summaries): Use it.
6494 (ipa_write_optimization_summaries): Do not modify bodies.
6495 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
6496 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
6497 * tree-ssa-dse.c (pass_dse::execute): Update use of
6498 renumber_gimple_stmt_uids.
6499 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
6501 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
6503 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6504 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
6506 2019-10-10 Joseph Myers <joseph@codesourcery.com>
6508 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
6510 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
6511 Also define DFP macros for these conditions.
6512 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
6513 DEC128_SUBNORMAL_MIN): Do not define.
6514 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
6515 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
6517 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
6518 Sandra Loosemore <sandra@codesourcery.com>
6521 * doc/lto.texi (IPA): Reference to the IPA passes.
6522 * doc/passes.texi (Pass manager): Add node IPA passes and
6523 description for each IPA pass.
6525 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6527 * ipa-reference.c: Do not include splay-tree.h
6528 (reference_vars_to_consider): Turn to hash map.
6529 (get_static_name, ipa_init, analyze_function, propagate,
6530 stream_out_bitmap, ipa_reference_write_optimization_summary,
6531 ipa_reference_write_optimization_summary): Update.
6533 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6535 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
6537 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
6539 * config/darwin.c: Lookup Objective C metadata and force indirection
6542 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
6544 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
6546 (mem_operand_gpr): Add check for prefixed addresses.
6547 (mem_operand_ds_form): Add check for prefixed addresses.
6548 (rs6000_legitimate_offset_address_p): If we support prefixed
6549 addresses, check for a 34-bit offset instead of 16-bit.
6550 (rs6000_legitimate_address_p): Add check for prefixed addresses.
6551 Do not allow load/store with update if the address is prefixed.
6552 (rs6000_mode_dependent_address): If we support prefixed
6553 addresses, check for a 34-bit offset instead of 16-bit.
6555 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6558 * config/s390/vector.md (vcond_comparison_operator): New
6560 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6562 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6565 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6567 * configure.ac (--with-documentation-root-url): New option.
6568 * configure: Regenerate.
6569 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6570 option URL, add it as a new string field of the diagnostic option.
6571 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6572 (print_option_information): If get_option_url is non-NULL, call
6573 it, and if the result is non-NULL, potentially emit an escape
6574 sequence to markup the option text with the resulting URL.
6575 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6576 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6577 example of JSON output.
6578 * opts-diagnostic.h (get_option_url): New decl.
6579 * opts.c (get_option_url): New function.
6580 * toplev.c (general_init): Initialize the get_option_url callback.
6582 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6585 * common.opt (fdiagnostics-urls=): New option.
6586 (diagnostic-url.h): Add SourceInclude.
6587 (diagnostic_url_rule): New enum.
6588 * diagnostic-color.c: Include "diagnostic-url.h".
6589 (diagnostic_urls_enabled_p): New function.
6590 * diagnostic-url.h: New file.
6591 * diagnostic.c: Include "diagnostic-url.h".
6592 (diagnostic_urls_init): New function.
6593 * diagnostic.h (diagnostic_urls_init): New decl.
6594 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6595 -fdiagnostics-urls to the list.
6596 (-fdiagnostics-urls): New option.
6597 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6598 (driver::global_initializations): Call diagnostic_urls_init.
6599 * opts-global.c (init_options_once): Likewise.
6600 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6601 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6603 (pp_begin_url): New function.
6604 (pp_end_url): New function.
6605 (selftest::test_urls): New selftest.
6606 (selftest::pretty_print_c_tests): Call it.
6607 * pretty-print.h (pretty_printer::show_urls): New field.
6608 (pp_begin_url): New decl.
6609 (pp_end_url): New decl.
6611 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6614 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6616 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6619 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6620 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6621 also for TARGET_FPU_SH4_300.
6622 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6624 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6625 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6626 (*negsf2_i): Split into ...
6627 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6628 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6629 (**abssf2_i): Split into ...
6630 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6631 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6632 (*negdf2_i): Split into ...
6633 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6634 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6635 (**abssf2_i): Split into ...
6636 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6638 2019-10-10 Richard Biener <rguenther@suse.de>
6641 * opts.c (finish_options): Do not influence global --params
6642 from options that are adjustable per function.
6643 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6644 Apply --param adjustment based on active cost-model.
6645 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6646 further store-sinking when vectorization or if-conversion
6649 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6652 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6653 rather than ggc_alloc_cleared to alloc symbol table.
6654 * toplev.c (general_init): Likewise.
6655 * cgraph.h (symbol_table): Explicitly construct every field.
6657 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6659 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6661 * config.gcc: Add z15 as option for --with-arch and --with-tune
6663 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6664 error reporting for unsupported builtins.
6665 * config/s390/s390-opts.h (enum processor_type): Rename
6666 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6667 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6668 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6670 * config/s390/s390-builtins.def: Likewise.
6671 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6672 (s390_expand_builtin): Add missing check for unsupported builtins.
6673 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6674 (s390_rtx_costs): Likewise.
6675 (s390_get_sched_attrmask): Rename arch13 to z15.
6676 (s390_get_unit_mask): Likewise.
6677 (s390_is_fpd): Likewise.
6678 (s390_is_fxd): Likewise.
6679 * config/s390/s390.h (enum processor_flags): Likewise.
6680 * config/s390/s390.md: Likewise.
6681 * config/s390/vector.md: Likewise.
6682 * config/s390/vx-builtins.md: Likewise.
6683 * config/s390/s390.opt: Add z15 to processor_type value.
6685 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6688 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6690 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6691 ("split_stack_data", "split_stack_call")
6692 ("split_stack_call_<mode>", "split_stack_cond_call")
6693 ("split_stack_cond_call_<mode>"): Remove.
6694 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6696 * config/s390/s390.c (s390_output_split_stack_data): New function.
6697 (s390_expand_split_stack_prologue): Use the merged expander.
6699 2019-10-09 Martin Sebor <msebor@redhat.com>
6701 PR tree-optimization/90879
6702 * builtins.c (check_access): Avoid using maxbound when null.
6703 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6704 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6705 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6707 (get_range_strlen): Overwrite initial maxbound when non-null.
6708 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6710 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6711 (used_only_for_zero_equality): New function.
6712 (handle_builtin_memcmp): Call it.
6713 (determine_min_objsize): Return an integer instead of tree.
6714 (get_len_or_size, strxcmp_eqz_result): New functions.
6715 (maybe_warn_pointless_strcmp): New function.
6716 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6717 between a longer string and a smaller array.
6718 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6720 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6722 * config/darwin.c (darwin_override_options): Make the check for
6723 Objective-C ABI version more specific for 64bit code.
6725 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6727 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6728 indicate that the new symbol is an indirection.
6729 (machopic_indirect_call_target): Likewise.
6730 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6731 (MACHO_SYMBOL_INDIRECTION_P): New.
6732 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6734 2019-10-08 Jason Merrill <jason@redhat.com>
6736 * doc/invoke.texi: Document -fconcepts-ts.
6738 2019-10-09 Richard Biener <rguenther@suse.de>
6740 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6741 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6743 2019-10-08 Richard Biener <rguenther@suse.de>
6745 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6746 (_stmt_vec_info::force_single_cycle): Likewise.
6747 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6748 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6749 * tree-vect-loop.c (vectorizable_reduction): Set
6750 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6751 (vect_transform_reduction): Use them to remove redundant code.
6752 (vect_transform_cycle_phi): Likewise.
6754 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6756 PR tree-optimization/90836
6757 * match.pd (popcount): New pattern.
6759 2019-10-08 Martin Sebor <msebor@redhat.com>
6763 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6764 again once nbytes has been set. Set the access size when not yet set.
6766 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6768 * config/darwin.c (machopic_select_section): Remove dead code for
6769 old Objective-C section selection method, replace with unreachable.
6771 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6773 * config/darwin.c (machopic_indirect_data_reference): Check for
6774 required indirections before making direct access to defined
6776 (machopic_output_indirection): Place the indirected pointes for
6777 required indirections into the non-lazy symbol pointers section.
6778 (darwin_encode_section_info):
6779 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6780 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6782 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6785 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6786 instead of ALL_SSE_REG to check if function call preserves some
6787 256-bit SSE registers.
6789 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6791 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6792 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6793 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6795 2019-10-08 Richard Biener <rguenther@suse.de>
6797 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6798 (_stmt_vec_info::is_reduc_info): Add.
6799 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6800 (vectorizable_condition): Remove.
6801 (vectorizable_shift): Likewise.
6802 (vectorizable_reduction): Adjust.
6803 (info_for_reduction): New.
6804 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6805 (vect_analyze_scalar_cycles_1): ... here.
6806 (vect_analyze_loop_operations): Adjust.
6807 (needs_fold_left_reduction_p): Simplify for single caller.
6808 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6809 for nested cycles not part of double reductions.
6810 (vect_model_reduction_cost): Pass in the reduction type.
6811 (info_for_reduction): New function.
6812 (vect_create_epilog_for_reduction): Use it, access reduction
6813 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6814 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6815 (vectorize_fold_left_reduction): Remove pointless assert.
6816 (vectorizable_reduction): Analyze the full reduction when
6817 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6818 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6819 stmt code-generation to vectorizable_* in most cases. Verify
6820 code-generation only for cases handled by
6821 vect_transform_reductuon.
6822 (vect_transform_reduction): Use info_for_reduction to get at
6823 reduction meta. Simplify.
6824 (vect_transform_cycle_phi): Likewise.
6825 (vectorizable_live_operation): Likewise.
6826 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6827 at the PHI node for STMT_VINFO_REDUC_TYPE.
6828 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6829 longer necessary code.
6830 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6831 (vectorizable_condition): Likewise. Get at reduction related
6832 info via info_for_reduction.
6833 (vect_analyze_stmt): Adjust.
6834 (vect_transform_stmt): Likewise.
6835 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6836 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6838 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6840 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6841 -fno-fp-int-builtin-inexact default for C2X.
6843 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6844 Richard Biener <rguenther@suse.de>
6846 PR tree-optimization/91532
6847 * tree-if-conv.c: Include tree-ssa-dse.h.
6848 (ifcvt_local_dce): Change param from bb to loop,
6849 and call dse_classify_store.
6850 (tree_if_conversion): Pass loop instead of loop->header as arg
6852 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6853 (delete_dead_or_redundant_assignment): Remove static qualifier from
6854 declaration, and add prototype in tree-ssa-dse.h.
6855 (dse_store_status): Move to tree-ssa-dse.h.
6856 (dse_classify_store): Remove static qualifier and add new tree param
6857 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6858 * tree-ssa-dse.h: New header.
6860 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6862 * config/darwin.c (machopic_output_indirection): Don't put
6863 hidden symbol indirections into the .data section, use the
6864 non-lazy symbol pointers section as normal.
6865 (darwin_encode_section_info): Record if a symbol is hidden.
6866 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6867 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6869 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6871 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6872 predicates instead of accessing bits directly.
6873 (machopic_indirect_call_target): Likewise.
6874 (machopic_output_indirection): Likewise.
6875 (darwin_encode_section_info): Improve description. Use renamed
6876 symbol flags. Use predicate macros for variables and functions.
6878 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6879 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6880 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6881 (MACHO_SYMBOL_VARIABLE_P): New.
6882 (MACHO_SYMBOL_DEFINED_P):New.
6883 (MACHO_SYMBOL_STATIC_P): New.
6884 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6885 (SYMBOL_FLAG_SUBT_DEP): New.
6886 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6888 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6890 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6891 (msp430_expand_epilogue): Likewise.
6892 * config/msp430/predicates.md: Likewise.
6893 * config/msp430/msp430.md: Likewise.
6894 Replace blocks of 8 spaces with tabs.
6896 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6898 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6899 * config/msp430/msp430.c (msp430_split_addsi): New.
6900 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6901 a block of C code for splitting addsi.
6903 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6905 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6906 ix86_expand_rounddf_32): Reorder functions.
6907 * config/i386/i386-protos.h: Update.
6909 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6911 * config.in: Regenerate.
6912 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6913 Add new "Yx" constraint.
6914 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6916 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6918 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6919 code/data region to be selected in the small memory model.
6920 (msp430_section_attr): Don't warn if the "section" and "lower"
6921 attributes are used together.
6922 (msp430_handle_generic_attribute): Likewise.
6923 (msp430_var_in_low_mem): New function.
6924 (TARGET_ENCODE_SECTION_INFO): Define.
6925 (msp430_encode_section_info): New function.
6926 (gen_prefix): Return early in the small memory model.
6927 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6928 ".lower" prefix if -m{code,data}-region=lower have been passed.
6929 (msp430_output_aligned_decl_common): Emit common symbols when
6930 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6932 (TARGET_ASM_FILE_END): Define.
6933 (msp430_file_end): New function.
6934 (msp430_do_not_relax_short_jumps): Allow relaxation when
6935 function will be in the lower region.
6936 (msp430_op_not_in_high_mem): New function.
6937 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6938 the 'X' operand selector.
6939 Clarify comment for 'x' operand selector.
6940 * config/msp430/msp430.h (LINK_SPEC): Propagate
6941 -m{code,data}-region to the linker via spec function
6942 msp430_propagate_region_opt.
6943 (msp430_propagate_region_opt): New prototype.
6944 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6945 (SYMBOL_FLAG_LOW_MEM): Define.
6946 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6948 (zero_extendqihi2): Fix operand number used by "%X" selector.
6949 (zero_extendqisi2): Likewise.
6950 (zero_extendhisi2): Likewise.
6951 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6956 (addhi3_cy): Likewise.
6957 (addchi4_cy): Likewise.
6961 (bic<mode>3): Likewise.
6962 (and<mode>3): Likewise.
6963 (ior<mode>3): Likewise.
6964 (xor<mode>3): Likewise.
6965 (slli_1): Add missing "%X" operand selector.
6973 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6975 (cbranchhi4_real): Likewise.
6976 (cbranchqi4_reversed): Likewise.
6977 (cbranchhi4_reversed): Likewise.
6978 (*bitbranch<mode>4): Likewise.
6979 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6980 * config/msp430/msp430.opt (mcode-region=): Set default to
6981 MSP430_REGION_LOWER. Improve docstring.
6982 (mdata-region=): Likewise.
6983 (muse-lower-region-prefix): New option.
6984 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6985 mdata-region=none multilib.
6986 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6987 mdata-region=none multilib.
6988 MULTILIB_EXCEPTIONS: Remove.
6989 MULTILIB_REQUIRED: Define.
6990 * configure: Regenerate.
6991 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6992 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6993 * doc/extend.texi: Clarify comment for {upper,lower,either}
6994 function attributes.
6995 Add separate description for "lower" variable attribute.
6997 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7000 * optabs-tree.c (vcond_icode_p): New function.
7001 (vcond_eq_icode_p): Likewise.
7002 (expand_vec_cond_expr_p): Use vcond_icode_p and
7004 * optabs.c (can_vcond_compare_p): New function.
7005 * optabs.h (can_vcond_compare_p): Likewise.
7007 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7010 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7011 caller passes a non-trapping condition.
7012 (is_gimple_condexpr): Allow trapping conditions.
7013 (is_gimple_condexpr_1): New helper function.
7014 (is_gimple_condexpr_for_cond): New function, acts like old
7016 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7017 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7018 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7019 * gimplify.c (gimplify_cond_expr): Use
7020 is_gimple_condexpr_for_cond.
7021 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7022 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7024 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7025 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7026 is_gimple_condexpr_for_cond, remove pointless tmp check
7027 (forward_propagate_into_cond): Remove pointless tmp check.
7029 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7031 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7032 match that of other gsi_next_* functions. Adjust the comment.
7033 (gsi_start_nonvirtual_phis): New function.
7034 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7035 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7037 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7039 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7040 setjmp situation here. Fix a verb's ending: "the exact variables or
7041 elements for which there are warnings depends" -> "... depend".
7043 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7045 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7047 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7049 * ipa-prop.c (ipa_vr::nonzero_p): New.
7050 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7052 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7053 * tree-vrp.c (range_has_numeric_bounds_p): New.
7054 (range_int_cst_p): Use range_has_numeric_bounds_p.
7055 (get_range_op_handler): New.
7056 (supported_types_p): New.
7057 (defined_ranges_p): New.
7058 (drop_undefines_to_varying): New.
7059 (range_fold_binary_symbolics_p): New.
7060 (range_fold_unary_symbolics_p): New.
7061 (range_fold_unary_expr): Extract out into above functions.
7062 (range_fold_binary_expr): Same.
7063 (value_range_base::normalize_addresses): New.
7064 (value_range_base::normalize_symbolics): Normalize addresses.
7065 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7067 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7069 * tree-vrp.c (value_range_base::singleton_p): Use
7070 value_range_base::num_pairs instead of vrp_val_is* to check
7071 if a range has one sub-range.
7073 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7075 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7076 DEF is not a true earlyclobber but is tied to a specific input
7077 operand, and so is effectively earlyclobber wrt inputs that have
7079 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7081 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7083 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7084 (pod_mode): Mark operators likewise.
7085 (scalar_int_mode): Mark non-default constructors and
7086 operators with CONSTEXPR.
7087 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7088 (fixed_size_mode): Likewise.
7090 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7093 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7094 and wrap the unspec_volatile in a parallel.
7095 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7096 the unspec_volatile.
7097 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7098 unspec_volatile to be wrapped in a parallel.
7099 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7100 (ix86_add_reg_usage_to_vzerouppers): New functions.
7101 (rest_of_handle_insert_vzeroupper): Use them to add register
7102 usage information to the vzeroupper instructions.
7104 2019-10-07 Richard Biener <rguenther@suse.de>
7106 PR tree-optimization/91975
7107 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7110 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7112 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7113 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7115 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7117 * config/darwin.c (darwin_override_options): Adjust objective-c
7118 ABI version error messages to avoid punctuation and contracted
7121 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7123 * ipa-inline.c: Fix type; compute size rather than self_size
7124 for size of caller function.
7126 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7129 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7130 choose const_data section for constants with relocations.
7131 (machopic_select_section): Pass relocation flag to
7132 darwin_rodata_section ().
7134 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7136 PR tree-optimization/91734
7137 * generic-match-head.c: Include fold-const-call.h.
7138 * match.pd (sqrt(x) cmp c): Check the boundary value and
7139 in case inexact computation of c*c affects comparison of the boundary,
7140 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7141 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7142 for -frounding-math. For c2, try the next smaller or larger floating
7143 point constant depending on comparison code and if it has the same
7144 sqrt as c2, use it instead of c2.
7146 2019-10-04 Martin Sebor <msebor@redhat.com>
7149 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7150 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7151 uninitialized objects.
7153 2019-10-04 Martin Sebor <msebor@redhat.com>
7155 * builtins.c (compute_objsize): Add an argument.
7156 * tree-object-size.c (addr_object_size): Same.
7157 (compute_builtin_object_size): Same.
7158 * tree-object-size.h (compute_builtin_object): Same.
7160 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7162 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7164 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7166 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7168 2019-10-04 Martin Jambor <mjambor@suse.cz>
7170 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7171 fntype when switching to calling memcpy instead of memset.
7173 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7175 * hash-table.h (hash_table::empty_slow): Don't assign
7176 size_t values to int variables.
7178 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7180 * expr.c (convert_mode_scalar): Remove shadowing local var.
7181 (emit_block_move): Rename local vars.
7182 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7183 (emit_push_insn): Rename local vars.
7184 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7185 shadowing local vars.
7186 (store_constructor): Remove shadowing local vars. Rename local var.
7187 (store_field, expand_cond_expr_using_cmove,
7188 expand_expr_real_2): Remove shadowing local vars.
7189 (expand_expr_real_1,
7190 do_store_flag): Remove shadowing local vars. Rename local vars.
7192 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7194 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7196 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7198 * genmatch.c (commutate): Rename local var.
7199 (lower_cond): Reuse local var.
7200 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
7201 dt_operand::gen, dt_operand::gen_gimple_expr,
7202 dt_simplify::gen): Add a param. Rename generated vars.
7203 (decision_tree::insert_operand,
7204 (capture_info::walk_match, capture_info::walk_result,
7205 capture_info::walk_c_expr): Rename local vars.
7206 (expr::gen_transform): Rename generated vars.
7207 Use snprintf. Rename local vars.
7208 (capture::gen_transform, dt_operand::get_name,
7209 dt_operand::gen_opname): Rename generated vars.
7210 (write_predicate): Adjust call to gen_kids.
7211 (parser::get_internal_capture_id): Rename generated vars.
7212 (parser::parse_expr): Rename local vars.
7213 (parser::parse_if): Remove local var.
7214 (parser::parse_pattern, add_operator): Rename local vars.
7216 2019-10-04 Joseph Myers <joseph@codesourcery.com>
7218 * builtins.def (DEF_C2X_BUILTIN): New macro.
7219 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
7220 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
7221 (strndup): Use DEF_C2X_BUILTIN.
7222 * coretypes.h (enum function_class): Add function_c2x_misc.
7224 2019-10-04 Maya Rashish <coypu@sdf.org>
7226 * ira-color.c (update_costs_from_allocno): Call
7227 ira_init_register_move_cost_if_necessary.
7229 2019-10-04 Jeff Law <law@redhat.com>
7231 * config/h8300/h8300.md (cpymemsi): Disable.
7232 (movmd, movmd_internal_<mode>, movstr, movsd):
7233 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
7234 (movmd splitter, movsd splitter): Likewise.
7236 * range-op.cc (range_tests): Avoid two tests when ints and
7237 shorts are the same size.
7239 2019-10-04 Richard Biener <rguenther@suse.de>
7242 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
7245 2019-10-04 Richard Biener <rguenther@suse.de>
7247 PR tree-optimization/91982
7248 * tree-vect-loop.c (vectorizable_live_operation): Also guard
7249 against EXTRACT_LAST_REDUCTION.
7250 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
7252 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
7254 * range-op.o (value_range_from_overflowed_bounds): Rename from
7255 adjust_overflow_bound.
7256 (value_range_with_overflow): Rename from
7257 create_range_with_overflow.
7258 (create_possibly_reversed_range): Adjusted for above renames.
7259 (operator_*::wi_fold): Same.
7260 (cross_product_operator::wi_cross_productor): Same.
7262 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7264 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
7265 -Wshadow=compatible-local): Fix description.
7266 Add an example where -Wshadow=compatible-local does not
7269 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
7271 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
7273 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
7274 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
7276 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
7278 * expr.c (emit_block_move_hints): Slightly cleaner fix to
7279 can_move_by_pieces issue.
7281 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
7284 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
7285 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
7286 is available and the user has not set one on the command line.
7288 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7291 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
7292 instead of REGNO equality check on addr.reg.
7294 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
7296 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
7297 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
7298 * doc/invoke.texi (inline-heuristics-hint-percent,
7299 inline-heuristics-hint-percent-O2): Document.
7300 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
7302 (can_inline_edge_by_limits_p): Use it.
7304 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
7306 * config/arm/arm.c (arm_print_value): Use real_to_decimal
7307 to print CONST_DOUBLEs.
7309 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
7311 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
7312 * ipa-prop.c (ipcp_free_transformation_sum): New function.
7313 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
7315 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
7317 * Makefile.in (OBJS): Add range.o and range-op.o.
7318 Remove wide-int-range.o.
7319 * function-tests.c (test_ranges): New.
7320 (function_tests_c_tests): Call test_ranges.
7321 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
7322 range_fold_unary_expr instead of extract_range_from_unary_expr.
7323 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7324 * range-op.cc: New file.
7325 * range-op.h: New file.
7326 * range.cc: New file.
7327 * range.h: New file.
7328 * selftest.h (range_tests): New prototype.
7329 * ssa.h: Include range.h.
7330 * tree-vrp.c (value_range_base::value_range_base): New
7332 (value_range_base::singleton_p): Do not call
7333 ranges_from_anti_range until sure we will need to.
7334 (value_range_base::type): Rename gcc_assert to
7335 gcc_checking_assert.
7336 (vrp_val_is_max): New argument.
7337 (vrp_val_is_min): Same.
7338 (wide_int_range_set_zero_nonzero_bits): Move from
7340 (extract_range_into_wide_ints): Remove.
7341 (extract_range_from_multiplicative_op): Remove.
7342 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
7343 from extract_range_from_binary_expr.
7344 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
7345 from extract_range_from_binary_expr.
7346 (extract_range_from_binary_expr): Remove.
7347 (normalize_for_range_ops): New.
7348 (range_fold_binary_expr): New.
7349 (range_fold_unary_expr): New.
7350 (value_range_base::num_pairs): New.
7351 (value_range_base::lower_bound): New.
7352 (value_range_base::upper_bound): New.
7353 (value_range_base::upper_bound): New.
7354 (value_range_base::contains_p): New.
7355 (value_range_base::invert): New.
7356 (value_range_base::union_): New.
7357 (value_range_base::intersect): New.
7358 (range_compatible_p): New.
7359 (value_range_base::operator==): New.
7360 (determine_value_range_1): Call range_fold_*expr instead of
7361 extract_range_from_*expr.
7362 * tree-vrp.h (class value_range_base): Add new constructors.
7363 Add methods for union_, intersect, operator==, contains_p,
7364 num_pairs, lower_bound, upper_bound, invert.
7365 (vrp_val_is_min): Add handle_pointers argument.
7366 (vrp_val_is_max): Same.
7367 (extract_range_from_unary_expr): Remove.
7368 (extract_range_from_binary_expr): Remove.
7369 (range_fold_unary_expr): New.
7370 (range_fold_binary_expr): New.
7371 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7372 range_fold_binary_expr instead of extract_range_from_binary_expr.
7373 (vr_values::extract_range_basic): Same.
7374 (vr_values::extract_range_from_unary_expr): Call
7375 range_fold_unary_expr instead of extract_range_from_unary_expr.
7376 * wide-int-range.cc: Remove.
7377 * wide-int-range.h: Remove.
7379 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7381 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7382 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7383 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7384 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7387 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7389 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7390 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7391 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7392 * glimits.h: Likewise.
7394 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7396 PR rtl-optimization/91976
7397 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7398 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7399 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7401 2019-10-02 Martin Sebor <msebor@redhat.com>
7403 PR tree-optimization/80936
7404 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7406 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7408 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7409 instead of reg_class_contents[ALL_REGS].
7411 2019-09-30 Jason Merrill <jason@redhat.com>
7413 Add some hash_map_safe_* functions like vec_safe_*.
7414 * hash-map.h (default_hash_map_size): New variable.
7415 (create_ggc): Use it as default argument.
7416 (hash_map_maybe_create, hash_map_safe_get)
7417 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
7419 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
7421 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
7422 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
7423 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
7424 (can_inline_edge_by_limits_p): Use it.
7425 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
7426 (want_inline_small_function_p): Use O2 bounds.
7427 (edge_badness): LIkewise.
7428 * opts.c (default_options): Add OPT_finline_functions.
7429 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
7430 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
7432 * doc/invoke.texi (-finline-functions): Update documentation.
7433 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
7434 inline-min-speedup-O2): Document.
7435 (early-inlining-insns-O2): Simplify docs.
7437 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
7439 PR rtl-optimization/87047
7440 * ifcvt.c (average_cost): New static function. Use it...
7441 (noce_process_if_block): ... here.
7443 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7445 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
7446 * config/rs6000/rs6000-string.c (expand_block_move): Add
7448 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
7449 (cpymemsi): Add might_overlap parm to expand_block_move() call.
7451 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7453 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
7454 (expand_builtin_memcpy): Use might_overlap parm.
7455 (expand_builtin_mempcpy_args): Use might_overlap parm.
7456 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
7457 (expand_builtin_memory_copy_args): Add might_overlap parm.
7458 * expr.c (emit_block_move_via_cpymem): Rename to
7459 emit_block_move_via_pattern, add might_overlap parm, use cpymem
7460 or movmem optab as appropriate.
7461 (emit_block_move_hints): Add might_overlap parm, do the right
7462 thing for might_overlap==true.
7463 * expr.h (emit_block_move_hints): Update prototype.
7465 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
7467 * tree-eh.h (unsplit_eh_edges): Declare.
7468 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
7469 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
7470 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
7471 (struct store_immediate_info): Add lp_nr field.
7472 (store_immediate_info::store_immediate_info): Add NR2 parameter and
7473 initialize lp_nr with it.
7474 (struct merged_store_group): Add lp_nr and only_constants fields.
7475 (merged_store_group::merged_store_group): Initialize them.
7476 (merged_store_group::can_be_merged_into): Deal with them.
7477 (pass_store_merging): Rename terminate_and_release_chain into
7478 terminate_and_process_chain.
7479 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
7480 renaming and remove useless assertions.
7481 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
7482 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
7483 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
7484 instead of always recomputing it and compare lp_nr.
7485 (imm_store_chain_info::output_merged_store): If the group is in an
7486 active EH region, register new stores if they can throw. Moreover,
7487 if the insertion has created new basic blocks, adjust the PHI nodes
7488 of the post landing pad.
7489 (imm_store_chain_info::output_merged_stores): If the original stores
7490 are in an active EH region, deregister them.
7491 (lhs_valid_for_store_merging_p): Prettify.
7492 (adjust_bit_pos): New function extracted from...
7493 (mem_valid_for_store_merging): ...here. Use it for the base address
7494 and also for the offset if it is the addition of a constant.
7495 (lp_nr_for_store): New function.
7496 (pass_store_merging::process_store): Change return type to bool.
7497 Call lp_nr_for_store to initialize the store info. Propagate the
7498 return status of various called functions to the return value.
7499 (store_valid_for_store_merging_p): New predicate.
7500 (enum basic_block_status): New enumeration.
7501 (get_status_for_store_merging): New function.
7502 (pass_store_merging::execute): If the function can throw and catch
7503 non-call exceptions, unsplit the EH edges on entry and clean up the
7504 CFG on exit if something changed. Call get_status_for_store_merging
7505 for every basic block and keep the chains open across basic blocks
7506 when possible. Terminate and process open chains at the end, if any.
7508 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7510 * reginfo.c (globalize_reg): Fix shadowed variable in
7513 2019-10-02 Martin Jambor <mjambor@suse.cz>
7515 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
7516 do not compute some stuff when set.
7517 (cgraph_node::create_edge): Likewise.
7518 (cgraph_node::create_indirect_edge): Renamed last parameter to
7519 coning_p and flipped its meaning, don't even calculate
7520 inline_failed when set.
7521 * cgraph.h (cgraph_node::create_edge): Add new parameter.
7522 (symbol_table::::create_edge): Likewise.
7523 (cgraph_node::create_indirect_edge): Rename last parameter, flip
7525 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
7526 call graph edge creating functions.
7528 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7531 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
7534 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
7536 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
7538 2019-10-02 Richard Biener <rguenther@suse.de>
7540 * tree-vectorizer.h (vect_transform_reduction): Declare.
7541 * tree-vect-stmts.c (vect_transform_stmt): Use it.
7542 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
7543 stmt transform to ...
7544 (vect_transform_reduction): ... this.
7546 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
7548 * omp-low.c (lower_omp_target): Dereference optional argument
7549 to work with the right pointer.
7551 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7553 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7555 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7556 * langhooks.h (omp_is_optional_argument): New hook.
7557 * omp-general.c (omp_is_optional_argument): New.
7558 * omp-general.h (omp_is_optional_argument): New declaration.
7559 * omp-low.c (lower_omp_target): Create temporary for received value
7560 and take the address for new_var if the original variable was a
7561 DECL_BY_REFERENCE. Use size of referenced object when a
7562 pass-by-reference optional argument used as argument to firstprivate.
7564 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7566 PR tree-optimization/91940
7567 * tree-vect-patterns.c: Include tree-vector-builder.h and
7569 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7570 unpromoting the argument back to uint16_t, or by converting into a
7571 rotate, or into shifts plus ior.
7573 2019-10-02 Richard Biener <rguenther@suse.de>
7575 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7577 (vect_transform_cycle_phi): Declare.
7578 * tree-vect-stmts.c (vect_transform_stmt): Call
7579 vect_transform_cycle_phi.
7580 * tree-vect-loop.c (vectorizable_reduction): Split out
7581 PHI transformation stage to ...
7582 (vect_transform_cycle_phi): ... here.
7584 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7587 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7588 eliminable registers.
7589 (make_hard_regno_live): Likewise, and don't make them live.
7591 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7593 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7594 Call pp_emit_prefix.
7595 (layout::print_source_line): Likewise.
7596 (layout::start_annotation_line): Likewise.
7597 (diagnostic_show_locus): Remove call to temporarily clear the
7599 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7600 interaction of pp_set_prefix with rulers and fix-it hints.
7601 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7602 prefix when calling diagnostic_show_locus, rather than destroying
7604 (print_parseable_fixits): Temporarily clear prefix.
7605 * pretty-print.c (pp_format): Save and restore line_length, rather
7606 than assuming it is zero.
7607 (pp_output_formatted_text): Remove assertion that line_length is
7610 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7612 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7614 (nonoverlapping_refs_since_match_p): ... this; handle also
7616 (alias_stats): Update stats.
7617 (dump_alias_stats): Likewise.
7618 (cheap_array_ref_low_bound): New function.
7619 (aliasing_matching_component_refs_p): Add partial_overlap
7621 pass it to nonoverlapping_refs_since_match_p.
7622 (aliasing_component_refs_walk): Update call of
7623 aliasing_matching_component_refs_p
7624 (nonoverlapping_array_refs_p): New function.
7625 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7626 indirect_refs_may_alias_p): Update calls of
7627 nonoverlapping_refs_since_match_p.
7629 2019-10-01 Maya Rashish <coypu@sdf.org>
7632 * ira-color.c (allocno_copy_cost_saving): Call
7633 ira_init_register_move_cost_if_necessary.
7635 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7637 * Makefile.in (gnat_install_lib): New variable.
7638 * configure.ac: Substitute it.
7639 * configure: Regenerate.
7641 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7644 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7645 is matched with non-C++ type
7647 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7649 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7652 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7654 * doc/invoke.texi (early-inlining-insns-O2): Document.
7655 (early-inlining-insns): Update.
7656 * params.def (early-inlining-insns-O2): New bound.
7657 (early-inlining-insns): Update docs.
7658 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7660 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7663 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7664 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7665 a memory access insn.
7667 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7669 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7672 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7675 * config/s390/s390.c (s390_expand_vec_compare): Use
7676 gen_vec_cmpordered and gen_vec_cmpunordered.
7677 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7678 vec_unordered): Delete.
7679 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7680 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7681 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7682 (vec_cmp<code>): Generic dispatcher.
7684 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7687 * config/s390/vector.md (V_HW): Add V1TI in order to make
7688 vcond$a$b generate vcondv1tiv1tf.
7690 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7692 PR rtl-optimization/91948
7693 * ira-build.c (ira_create_allocno): Initialize
7694 ALLOCNO_CROSSED_CALLS_ABIS.
7695 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7696 than regno to ira_need_caller_save_p.
7698 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7700 * config/i386/i386-options.c
7701 (ix86_recompute_optlev_based_flags): New, moved out of...
7702 (ix86_option_override_internal): ... this. Call it.
7703 (ix86_override_options_after_change): Call it here too.
7706 * dwarf2out.c (override_type_for_decl_p): New.
7707 (gen_variable_die): Use it.
7709 2019-10-01 Richard Biener <rguenther@suse.de>
7711 * tree-vect-loop.c (vectorizable_reduction): Move variables
7712 to where they are used.
7714 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7716 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7717 (build_def_use): Use PC instead of CC0 in a comment.
7719 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7721 * rtl.def (CLOBBER_HIGH): Delete.
7722 * doc/rtl.texi (clobber_high): Remove documentation.
7723 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7724 (reg_is_clobbered_by_clobber_high): Delete.
7725 (gen_hard_reg_clobber_high): Likewise.
7726 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7727 * cfgexpand.c (expand_gimple_stmt): Likewise.
7728 * combine-stack-adj.c (single_set_for_csa): Likewise.
7729 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7730 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7731 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7732 * cse.c (invalidate_reg): Remove clobber_high parameter.
7733 (invalidate): Update call accordingly.
7734 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7735 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7736 (count_reg_usage, insn_live_p): Likewise.
7737 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7738 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7739 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7740 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7741 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7742 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7743 (mark_nonreg_stores_2): Likewise.
7744 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7745 (df_get_call_refs): Likewise.
7746 * dwarf2out.c (mem_loc_descriptor): Likewise.
7747 * emit-rtl.c (verify_rtx_sharing): Likewise.
7748 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7749 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7750 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7751 * genemit.c (gen_exp, gen_insn): Likewise.
7752 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7753 * haifa-sched.c (haifa_classify_rtx): Likewise.
7754 * ira-build.c (create_insn_allocnos): Likewise.
7755 * ira-costs.c (scan_one_insn): Likewise.
7756 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7757 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7758 * jump.c (mark_jump_label_1): Likewise.
7759 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7760 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7762 (mark_not_eliminable): Likewise.
7763 * lra-lives.c (process_bb_lives): Likewise.
7764 * lra.c (new_insn_reg): Remove clobber_high parameter.
7765 (collect_non_operand_hard_regs): Likewise. Update call to new
7766 insn_reg. Remove CLOBBER_HIGH handling.
7767 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7768 to collect_non_operand_hard_regs.
7769 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7770 Update call to new_insn_reg.
7771 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7772 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7773 (move2add_note_store): Likewise.
7774 * print-rtl.c (print_pattern): Likewise.
7775 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7776 (if_test_bypass_p): Likewise.
7777 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7778 * reginfo.c (reg_scan_mark_refs): Likewise.
7779 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7780 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7781 (forget_old_reloads_1): Likewise.
7782 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7783 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7784 (dbr_schedule): Likewise.
7785 * resource.c (update_live_status, mark_referenced_resources)
7786 (mark_set_resources): Likewise.
7787 * rtl.c (copy_rtx): Likewise.
7788 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7789 (note_pattern_stores): Likewise.
7790 (reg_is_clobbered_by_clobber_high): Delete.
7791 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7792 CLOBBER_HIGH handling.
7794 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7797 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7798 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7799 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7800 Handle ARM_PCS_TLSDESC.
7801 (aarch64_tlsdesc_abi_id): New function.
7802 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7803 rtx instead of a list of clobbers and clobber_highs.
7804 (tlsdesc_small_<mode>): Update accordingly.
7806 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7808 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7809 extra callee_abi argument.
7810 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7811 Insert a CALLEE_ABI unspec into the call pattern as the second
7812 element in the PARALLEL.
7813 (aarch64_simd_call_p): Delete.
7814 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7815 the new CALLEE_ABI element of the PARALLEL.
7816 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7817 from the function type, if given.
7818 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7819 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7820 when passed the function_arg_info end marker.
7821 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7822 final argument of gen_sibcall.
7823 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7824 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7825 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7827 (call_value): Likewise operand 3.
7828 (sibcall): Likewise operand 2. Place the unspec before rather than
7830 (sibcall_value): Likewise operand 3.
7831 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7832 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7833 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7835 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7837 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7839 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7840 choose_hard_reg_mode.
7841 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7843 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7845 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7846 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7847 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7849 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7851 * diagnostic-show-locus.c (line_label::line_label): Initialize
7853 (line_label::comparator): Reverse the sort order by m_state_idx,
7854 so that when the list is walked backwards the labels appear in
7855 order of insertion into the rich_location.
7856 (line_label::m_has_vbar): New field.
7857 (layout::print_any_labels): When dealing with multiple labels at
7858 the same line and column, only print vertical bars for the one
7859 with the highest label_line.
7860 (selftest::test_one_liner_labels): Update test for multiple labels
7861 to expect the labels to be in the order of insertion into the
7862 rich_location. Add a test for many such labels, where the column
7863 numbers are out-of-order relative to the insertion order.
7865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7867 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7868 (ix86_frame::expensive_count): Likewise.
7869 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7870 of use_fast_prologue_epilogue robust against incidental changes
7873 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7876 * config/s390/vector.md (vec_unordered<mode>): Call
7877 gen_vec_ordered<mode>.
7879 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7881 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7882 New pattern for ASRD.
7883 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7884 * internal-fn.def (IFN_DIV_POW2): New internal function.
7885 * optabs.def (sdiv_pow2_optab): New optab.
7886 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7887 Modify pattern to support new operation.
7888 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7889 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7890 Document new target selector.
7892 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7894 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7895 to test whether we're compiling a vector PCS function and to test
7896 whether the function needs to save a particular register.
7897 Remove the vector PCS handling of df_set_regs_ever_live.
7898 (aarch64_components_for_bb): Use crtl->abi to test whether
7899 the function needs to save a particular register.
7900 (aarch64_process_components): Use crtl->abi to test whether
7901 we're compiling a vector PCS function.
7902 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7903 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7907 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7909 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7910 whether the block calls a function that clobbers more registers
7911 than the current function is allowed to.
7912 (aarch64_use_simple_return_insn_p): Delete.
7913 * config/aarch64/aarch64.md (simple_return): Remove condition.
7915 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7917 * function-abi.h (function_abi_aggregator): New class.
7918 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7920 * ira.c (update_equiv_regs_prescan): New function. Call
7921 set_paradoxical_subreg here rather than...
7922 (update_equiv_regs): ...here.
7923 (ira): Call update_equiv_regs_prescan.
7925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7927 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7929 (call_used_or_fixed_regs): Likewise.
7930 (call_used_or_fixed_reg_p): Likewise.
7931 * reginfo.c (regs_invalidated_by_call): New macro.
7933 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7935 * shrink-wrap.c: Include function-abi.h.
7936 (requires_stack_frame_p): Use crtl->abi to test whether the
7937 current function can use a register without saving it first.
7939 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7941 * sel-sched-ir.h (_def::crosses_call): Replace with...
7942 (_def::crossed_call_abis): ..this new field.
7943 (def_list_add): Take a mask of ABIs instead of a crosses_call
7945 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7946 of _def accordingly.
7947 * sel-sched.c: Include function-abi.h.
7948 (hard_regs_data::regs_for_call_clobbered): Delete.
7949 (reg_rename::crosses_call): Replace with...
7950 (reg_rename::crossed_call_abis): ...this new field.
7951 (fur_static_params::crosses_call): Replace with...
7952 (fur_static_params::crossed_call_abis): ...this new field.
7953 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7954 (init_hard_regs_data): Use crtl->abi to test which registers the
7955 current function would need to save before it uses them.
7956 (mark_unavailable_hard_regs): Update handling of call-clobbered
7957 registers, using call_clobbers_in_region to find out which registers
7958 might be call-clobbered (but without taking -fipa-ra into account
7959 for now). Remove separate handling of partially call-clobbered
7961 (verify_target_availability): Use crossed_call_abis instead of
7963 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7964 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7966 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7968 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7969 function to test whether a register is fully or partly clobbered.
7971 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7973 * rtlanal.c: Include function-abi.h.
7974 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7975 function and clobbers_reg_p to test whether the register
7977 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7978 to get the ABI of the called function and full_reg_clobbers to
7979 get the set of fully call-clobbered registers. Warn about the
7980 pitfalls of using this mode.
7982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7984 * reload.c: Include function-abi.h.
7985 (find_equiv_reg): Use clobbers_reg_p to test whether either
7986 of the equivalent registers is clobbered by a call.
7987 * reload1.c: Include function-abi.h.
7988 (reg_reloaded_call_part_clobbered): Delete.
7989 (reload): Use crtl->abi to test which registers would need
7990 saving in the prologue before use.
7991 (find_reg): Likewise.
7992 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7993 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7994 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7996 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7998 * regrename.h (du_head::call_clobber_mask): New field.
7999 (du_head::need_caller_save_reg): Replace with...
8000 (du_head::call_abis): ...this new field.
8001 * regrename.c: Include function-abi.h.
8002 (call_clobbered_in_chain_p): New function.
8003 (check_new_reg_p): Use crtl->abi when deciding whether a register
8004 is free for use after RA. Use call_clobbered_in_chain_p to test
8005 whether a candidate register would be clobbered by a call.
8006 (find_rename_reg): Don't add call-clobber conflicts here.
8007 (rename_chains): Check call_abis instead of need_caller_save_reg.
8008 (merge_chains): Update for changes to du_head.
8009 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8010 target. Record the ABI identifier in call_abis and the set of
8011 fully or partially clobbered registers in call_clobber_mask.
8012 Add fully-clobbered registers to hard_conflicts here rather
8013 than in find_rename_reg.
8014 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8015 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8016 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8018 * config/c6x/c6x.c: Likewise.
8020 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8022 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8023 mode of the register when deciding whether it is no longer
8024 available after a call.
8026 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8028 * recog.c: Include function-abi.h.
8029 (peep2_find_free_register): Use crtl->abi when deciding whether
8030 a register is free for use after RA.
8032 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8034 * postreload-gcse.c: Include regs.h and function-abi.h.
8035 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8036 call insn target. Conservatively assume that partially-clobbered
8037 registers are altered.
8039 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8041 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8042 when deciding whether a register is free for use after RA.
8043 (reload_combine): Remove unnecessary use of fixed_reg_set.
8044 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8045 call insn target. Use reg_mode when testing whether a register
8046 is no longer available.
8048 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8050 * target.def (return_call_with_max_clobbers): Delete.
8051 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8052 * doc/tm.texi: Regenerate.
8053 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8054 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8055 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8056 (lra_reg::call_insn): Delete.
8057 * lra.c: Include function-abi.h.
8058 (initialize_lra_reg_info_element): Don't initialize the fields above.
8059 (lra): Use crtl->abi to test whether the current function needs to
8060 save a register in the prologue. Remove special pre-inheritance
8061 lra_create_live_ranges pass for flag_ipa_ra.
8062 * lra-assigns.c: Include function-abi.h
8063 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8064 function needs to save a register in the prologue.
8065 (lra_assign): Assert that registers aren't allocated to a
8066 conflicting register, rather than checking only for overlaps
8067 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8068 and for registers that are not live across a call.
8069 * lra-constraints.c (last_call_for_abi): New variable.
8070 (full_and_partial_call_clobbers): Likewise.
8071 (setup_next_usage_insn): Remove the register from
8072 full_and_partial_call_clobbers.
8073 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8074 whether the register needs a caller save.
8075 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8076 of call_used_or_fixed_regs.
8077 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8078 full_and_partial_call_clobbers.
8079 * lra-lives.c (check_pseudos_live_through_calls): Replace
8080 last_call_used_reg_set and call_insn arguments with an abi argument.
8081 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8082 as the set of conflicting registers.
8083 (calls_have_same_clobbers_p): Delete.
8084 (process_bb_lives): Track the ABI of the last call instead of an
8085 insn/HARD_REG_SET pair. Update calls to
8086 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8087 the set of registers that could be clobbered by an EH edge.
8088 Include partially-clobbered as well as fully-clobbered registers.
8089 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8090 * lra-remat.c: Include function-abi.h.
8091 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8092 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8093 registers and bitmap_view to combine them into dead_regs.
8094 (call_used_input_regno_present_p): Take a function_abi argument
8095 and use it to test whether a register is call-clobbered.
8096 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8097 call insn target. Update tje call to call_used_input_regno_present_p.
8098 (do_remat): Likewise.
8099 (lra_remat): Remove the initialization of call_used_regs_arr_len
8100 and call_used_regs_arr.
8102 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8104 * loop-iv.c: Include regs.h and function-abi.h.
8105 (simplify_using_initial_values): Use insn_callee_abi to get the
8106 ABI of the call insn target. Conservatively assume that
8107 partially-clobbered registers are altered.
8109 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8111 * function-abi.h (call_clobbers_in_region): Declare.
8112 (call_clobbered_in_region_p): New function.
8113 * function-abi.cc (call_clobbers_in_region): Likewise.
8114 * ira-int.h: Include function-abi.h.
8115 (ira_allocno::crossed_calls_abis): New field.
8116 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8117 (ira_need_caller_save_regs): New function.
8118 (ira_need_caller_save_p): Likewise.
8119 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8120 of call_used_or_fixed_regs.
8121 (do_reload): Use crtl->abi to test whether the current function
8122 needs to save a register in the prologue. Count registers that
8123 need to be saved rather than registers that don't.
8124 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8125 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8126 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8127 (propagate_some_info_from_allocno): Likewise.
8128 (copy_info_to_removed_store_destinations): Likewise.
8129 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8130 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8131 (ira_build): Use ira_need_caller_save_regs instead of
8132 call_used_or_fixed_regs.
8133 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8134 whether the current function would need to save a register
8136 (calculate_spill_cost): Likewise.
8137 (allocno_reload_assign): Use ira_need_caller_save_regs and
8138 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8139 * ira-conflicts.c (ira_build_conflicts): Use
8140 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8141 as the set of call-clobbered registers. Remove the
8142 call_used_or_fixed_regs mask from the calculation of
8143 temp_hard_reg_set and mask its use instead. Remove special
8144 handling of partially-clobbered registers.
8145 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8146 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8147 calculate the set of conflicting registers for calls that
8148 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8149 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8150 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8151 Use eh_edge_abi to calculate the set of registers that could
8152 be clobbered by an EH edge. Include partially-clobbered as
8153 well as fully-clobbered registers.
8155 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8157 * haifa-sched.c: Include function-abi.h.
8158 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8159 the function would need to save a register before using it.
8161 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8163 * gcse.c: Include function-abi.h.
8164 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8165 the call insn target. Invalidate partially call-clobbered
8166 registers as well as fully call-clobbered ones.
8168 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8170 * function.c (aggregate_value_p): Work out which ABI the
8171 function is using before testing which registers are at least
8172 partly preserved by a call.
8174 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8176 * early-remat.c: Include regs.h and function-abi.h.
8177 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8179 (early_remat::restrict_remat_for_unavail_regs): New function.
8180 (early_remat::restrict_remat_for_call): Likewise.
8181 (early_remat::process_block): Before calling emit_remat_insns
8182 for a previous call in the block, invalidate any candidates
8183 that would clobber call-preserved registers.
8184 (early_remat::emit_remat_insns_for_block): Likewise for the
8185 final call in a block. Do the same thing for live-in registers
8186 when calling emit_remat_insns at the head of a block.
8188 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8190 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8191 whether the current function needs to save at least part of a
8192 register before using it.
8193 (df_get_exit_block_use_set): Likewise for epilogue restores.
8195 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8197 * df-problems.c: Include regs.h and function-abi.h.
8198 (df_rd_problem_data): Rename sparse_invalidated_by_call to
8199 sparse_invalidated_by_eh and dense_invalidated_by_call to
8200 dense_invalidated_by_eh.
8201 (df_print_bb_index): Update accordingly.
8202 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
8203 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
8204 that are clobbered by an EH edge. Clobber partially-clobbered
8205 registers as well as fully-clobbered ones.
8206 (df_md_confluence_n): Likewise.
8207 (df_rd_local_compute): Likewise. Update for changes to
8209 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
8210 of registers that are clobbered by an EH edge. Includde partially-
8211 clobbered registers as well as fully-clobbered ones.
8213 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8215 * cselib.c (cselib_process_insn): If we know what mode a
8216 register was set in, check whether it is clobbered in that
8217 mode by a call. Only fall back to reg_raw_mode if that fails.
8219 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8221 * cse.c: Include regs.h and function-abi.h.
8222 (invalidate_for_call): Take the call insn as an argument.
8223 Use insn_callee_abi to get the ABI of the call and invalidate
8224 partially clobbered registers as well as fully clobbered ones.
8225 (cse_insn): Update call accordingly.
8227 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8229 * combine.c: Include function-abi.h.
8230 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
8231 of the target of call insns. Invalidate partially-clobbered
8232 registers as well as fully-clobbered ones.
8234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8236 * cfgloopanal.c: Include regs.h and function-abi.h.
8237 (init_set_costs): Use default_function_abi to test whether
8238 a general register is call-clobbered.
8240 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8242 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
8243 instead of the call-clobbered sets.
8245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8247 * caller-save.c (setup_save_areas): Remove redundant |s of
8249 (save_call_clobbered_regs): Likewise. Use the call ABI rather
8250 than call_used_or_fixed_regs to decide whether a REG_RETURNED
8253 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8255 * rtl.h (predefined_function_abi): Declare.
8256 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8257 instead of a boolean call_save flag.
8258 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
8260 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8261 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8262 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
8263 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8264 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8265 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
8266 * reginfo.c (init_reg_modes_target): Likewise.
8267 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8268 instead of a boolean call_save flag.
8269 * targhooks.c: Include function-abi.h.
8270 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
8271 using eh_edge_abi to choose the mode.
8273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8275 * target.def (hard_regno_call_part_clobbered): Take an ABI
8276 identifier instead of an rtx_insn.
8277 * doc/tm.texi: Regenerate.
8278 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
8279 (hook_bool_uint_uint_mode_false): New function.
8280 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
8281 (hook_bool_uint_uint_mode_false): New function.
8282 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8283 Take an ABI identifier instead of an rtx_insn.
8284 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
8285 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
8286 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
8287 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
8288 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
8290 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
8291 * cselib.c: Include function-abi.h.
8292 (cselib_process_insn): Update call to
8293 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8294 to get the appropriate ABI identifier.
8295 * function-abi.cc (predefined_function_abi::initialize): Update call
8296 to targetm.hard_regno_call_part_clobbered.
8297 * ira-conflicts.c (ira_build_conflicts): Likewise.
8298 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8299 * lra-constraints.c: Include function-abi.h.
8300 (need_for_call_save_p): Update call to
8301 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8302 to get the appropriate ABI identifier.
8303 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8304 * regcprop.c (copyprop_hardreg_forward_1): Update call
8305 to targetm.hard_regno_call_part_clobbered.
8306 * reginfo.c (choose_hard_reg_mode): Likewise.
8307 * regrename.c (check_new_reg_p): Likewise.
8308 * reload.c (find_equiv_reg): Likewise.
8309 * reload1.c (emit_reload_insns): Likewise.
8310 * sched-deps.c: Include function-abi.h.
8311 (deps_analyze_insn): Update call to
8312 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8313 to get the appropriate ABI identifier.
8314 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
8315 call to targetm.hard_regno_call_part_clobbered.
8316 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
8318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8320 * config/i386/i386.c: Include function-abi.h.
8321 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
8322 if they preserve some 256-bit or 512-bit SSE registers.
8324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8326 * target.def (insn_callee_abi): New hook.
8327 (remove_extra_call_preserved_regs): Delete.
8328 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
8329 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8330 * doc/tm.texi: Regenerate.
8331 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
8332 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
8333 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
8335 (aarch64_remove_extra_call_preserved_regs): Delete.
8336 (aarch64_insn_callee_abi): New function.
8337 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8338 (TARGET_INSN_CALLEE_ABI): New macro.
8339 * rtl.h (get_call_fndecl): Declare.
8340 (cgraph_rtl_info): Fix formatting. Tweak comment for
8341 function_used_regs. Remove function_used_regs_valid.
8342 * rtlanal.c (get_call_fndecl): Moved from final.c
8343 * function-abi.h (insn_callee_abi): Declare.
8344 (target_function_abi_info): Mention insn_callee_abi.
8345 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
8346 way to get_call_reg_set_usage did.
8347 (insn_callee_abi): New function.
8348 * regs.h (get_call_reg_set_usage): Delete.
8349 * final.c: Include function-abi.h.
8350 (collect_fn_hard_reg_usage): Add fixed and stack registers to
8351 function_used_regs before the main loop rather than afterwards.
8352 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
8353 if function_used_regs ends up not being useful.
8354 (get_call_fndecl): Move to rtlanal.c
8355 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
8356 * caller-save.c: Include function-abi.h.
8357 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
8358 instead of get_call_reg_set_usage.
8359 * cfgcleanup.c: Include function-abi.h.
8360 (old_insns_match_p): Use insn_callee_abi instead of
8361 get_call_reg_set_usage.
8362 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
8364 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
8366 * df-scan.c: Include function-abi.h.
8367 (df_get_call_refs): Use insn_callee_abi instead of
8368 get_call_reg_set_usage.
8369 * ira-lives.c: Include function-abi.h.
8370 (process_bb_node_lives): Use insn_callee_abi instead of
8371 get_call_reg_set_usage.
8372 * lra-lives.c: Include function-abi.h.
8373 (process_bb_lives): Use insn_callee_abi instead of
8374 get_call_reg_set_usage.
8375 * postreload.c: Include function-abi.h.
8376 (reload_combine): Use insn_callee_abi instead of
8377 get_call_reg_set_usage.
8378 * regcprop.c: Include function-abi.h.
8379 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8380 get_call_reg_set_usage.
8381 * resource.c: Include function-abi.h.
8382 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8383 instead of get_call_reg_set_usage.
8384 * var-tracking.c: Include function-abi.h.
8385 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8386 get_call_reg_set_usage.
8388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8390 * target.def (fntype_abi): New target hook.
8391 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8392 * doc/tm.texi: Regenerate.
8393 * target.h (predefined_function_abi): Declare.
8394 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8396 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8397 * config/aarch64/aarch64.c: Include function-abi.h.
8398 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8399 (TARGET_FNTYPE_ABI): Define.
8401 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8403 * Makefile.in (OBJS): Add function-abi.o.
8404 (GTFILES): Add function-abi.h.
8405 * function-abi.cc: New file.
8406 * function-abi.h: Likewise.
8407 * emit-rtl.h (rtl_data::abi): New field.
8408 * function.c: Include function-abi.h.
8409 (prepare_function_start): Initialize crtl->abi.
8410 * read-rtl-function.c: Include regs.h and function-abi.h.
8411 (read_rtl_function_body): Initialize crtl->abi.
8412 (read_rtl_function_body_from_file_range): Likewise.
8413 * reginfo.c: Include function-abi.h.
8414 (init_reg_sets_1): Initialize default_function_abi.
8415 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
8416 when making a register global.
8417 * target-globals.h (this_target_function_abi_info): Declare.
8418 (target_globals::function_abi_info): New field.
8419 (restore_target_globals): Copy it.
8420 * target-globals.c: Include function-abi.h.
8421 (default_target_globals): Initialize the function_abi_info field.
8422 (target_globals): Allocate it.
8423 (save_target_globals): Free it.
8425 2019-09-30 Nick Clifton <nickc@redhat.com>
8428 * config/frv/frv.c (frv_register_move_cost): Add break statements
8429 to avoid falling through to the wrong cases. Tidy code.
8431 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8433 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8434 For multi-registers modes, test how big each register part is.
8436 2019-09-30 Nick Clifton <nickc@redhat.com>
8439 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
8440 (TARGET_ASM_SELECT_SECTION): Remove definition.
8441 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
8443 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8445 * emit-rtl.c (init_raw_REG): New function.
8446 (gen_raw_REG): Use init_raw_REG.
8447 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
8449 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
8450 * rtl.h (rtx_init): New function.
8451 (rtx_alloca): New function.
8452 (init_raw_REG): New function.
8453 (alloca_raw_REG): New macro.
8455 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
8457 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
8458 (pcrel_local_address): Replace pcrel_address predicate, use the
8459 new function address_to_insn_form.
8460 (pcrel_external_address): Replace with new implementation using
8461 address_to_insn_form..
8462 (prefixed_mem_operand): Delete predicate which is now unused.
8463 (pcrel_external_mem_operand): Delete predicate which is now
8465 * config/rs6000/rs6000-protos.h (enum insn_form): New
8467 (enum non_prefixed_form): New enumeration.
8468 (address_to_insn_form): New declaration.
8469 (prefixed_load_p): New declaration.
8470 (prefixed_store_p): New declaration.
8471 (prefixed_paddi_p): New declaration.
8472 (rs6000_asm_output_opcode): New declaration.
8473 (rs6000_final_prescan_insn): Move declaration and update calling
8475 (address_is_prefixed): New helper inline function.
8476 * config/rs6000/rs6000.c(print_operand_address): Check for either
8477 PC-relative local symbols or PC-relative external symbols.
8478 (rs6000_emit_move): Support loading PC-relative addresses.
8479 (mode_supports_prefixed_address_p): Delete, no longer used.
8480 (rs6000_prefixed_address_mode_p): Delete, no longer used.
8481 (address_to_insn_form): New function to decode an address format.
8482 (reg_to_non_prefixed): New function to identify what the
8483 non-prefixed memory instruction format is for a register.
8484 (prefixed_load_p): New function to identify prefixed loads.
8485 (prefixed_store_p): New function to identify prefixed stores.
8486 (prefixed_paddi_p): New function to identify prefixed load
8488 (next_insn_prefixed_p): New static state variable.
8489 (rs6000_final_prescan_insn): New function to determine if an insn
8490 uses a prefixed instruction.
8491 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
8492 prefixed instruction.
8493 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
8494 (ASM_OUTPUT_OPCODE): New target hook.
8495 * config/rs6000/rs6000.md (prefixed): New insn attribute for
8496 prefixed instructions.
8497 (prefixed_length): New insn attribute for the size of prefixed
8499 (non_prefixed_length): New insn attribute for the size of
8500 non-prefixed instructions.
8501 (pcrel_local_addr): New insn to load up a local PC-relative
8503 (pcrel_extern_addr): New insn to load up an external PC-relative
8505 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
8506 GPR and loading a 128-bit floating point type to a GPR.
8508 2019-09-30 Richard Biener <rguenther@suse.de>
8510 * gimple.c (gimple_get_lhs): For PHIs return the result.
8511 * tree-vectorizer.h (vectorizable_live_operation): Also get the
8512 SLP instance as argument.
8513 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
8514 double-reduction PHIs with vectorizable_lc_phi.
8515 (vect_analyze_loop_operations): Adjust.
8516 (vect_create_epilog_for_reduction): Remove all code not dealing
8517 with reduction LC PHI or epilogue generation.
8518 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
8519 for live stmts of reductions.
8520 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
8521 do not handle defs that are not vect_internal_def.
8522 (can_vectorize_live_stmts): Adjust.
8523 (vect_analyze_stmt): When the vectorized stmt defined a value
8524 used on backedges adjust the backedge uses of vectorized PHIs.
8526 2019-09-30 Martin Jambor <mjambor@suse.cz>
8529 * tree-inline.c (force_value_to_type): New function.
8530 (setup_one_parameter): Use force_value_to_type to convert type.
8531 * tree-inline.c (force_value_to_type): Declare.
8532 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
8533 with register type mismatches.
8535 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
8537 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
8539 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
8540 * config/rs6000/t-freebsd64: Make use of the above define and build
8541 the 32-bit libraries with secure-plt.
8543 2019-09-30 Jakub Jelinek <jakub@redhat.com>
8546 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
8547 gen_int_mode instead of GEN_INT.
8549 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
8551 * config/darwin.c (gen_macho_low): Amend to include the mode
8553 (machopic_indirect_data_reference): Amend gen_macho_low call
8554 to include mode argument
8555 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8556 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8557 the macho_high expander and two define_insn entries.
8559 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8562 * optc-save-gen.awk: Fix up printing string option differences.
8564 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8566 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8567 vec_perm cost to 1 for non-Power7 VSX architectures.
8569 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8571 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8572 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8573 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8575 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8577 * config/darwin.c (gen_macho_high): Amend to include the mode
8579 (machopic_indirect_data_reference): Amend gen_macho_high call
8580 to include mode argument.
8581 (machopic_legitimize_pic_address): Likewise.
8582 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8583 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8584 the macho_high expander and two define_insn entries.
8586 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8589 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8591 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8594 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8595 std::string::compare instead of std::string::find.
8597 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8599 * configure: Regenerate.
8601 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8604 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8605 variables as shared.
8607 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8609 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8610 replaces the expander and two define_insn entries.
8611 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8613 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8615 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8617 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8618 (fibonacci_heap::nodes): Likewise.
8619 (fibonacci_heap::min_key): Likewise.
8620 (fibonacci_heap::min): Likewise.
8622 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8624 * cgraph.c (cgraph_node::get_fun): Make const.
8625 * cgraph.h (cgraph_node::get_fun): Likewise.
8627 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8630 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8633 2019-09-27 Richard Biener <rguenther@suse.de>
8635 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8636 (STMT_VINFO_REDUC_FN): Likewise.
8637 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8638 STMT_VINFO_REDUC_FN.
8639 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8640 for condition reductions.
8641 (vect_create_epilog_for_reduction): Compute all required state
8642 from the stmt to be vectorized.
8643 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8644 invocation and remove then dead code. For single def-use chains
8645 record only a single vector stmt.
8647 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8649 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8650 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8651 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8652 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8653 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8654 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8655 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8656 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8657 (aarch64_general_builtin_rsqrt): Declare.
8658 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8660 (aarch64_mangle_builtin_type): Rename to...
8661 (aarch64_general_mangle_builtin_type): ...this.
8662 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8663 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8664 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8665 aarch64_general_add_builtin instead of add_builtin_function.
8666 (aarch64_init_builtins): Rename to...
8667 (aarch64_general_init_builtins): ...this. Use
8668 aarch64_general_add_builtin instead of add_builtin_function.
8669 (aarch64_builtin_decl): Rename to...
8670 (aarch64_general_builtin_decl): ...this and remove the unused
8672 (aarch64_expand_builtin): Rename to...
8673 (aarch64_general_expand_builtin): ...this and remove the unused
8675 (aarch64_builtin_rsqrt): Rename to...
8676 (aarch64_general_builtin_rsqrt): ...this.
8677 (aarch64_fold_builtin): Rename to...
8678 (aarch64_general_fold_builtin): ...this. Take the function subcode
8679 and return type as arguments. Remove the "ignored" argument.
8680 (aarch64_gimple_fold_builtin): Rename to...
8681 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8682 subcode and gcall as arguments, and return the new function call.
8683 * config/aarch64/aarch64.c (aarch64_init_builtins)
8684 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8685 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8686 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8687 instead of aarch64_builtin_rsqrt.
8688 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8689 instead of aarch64_mangle_builtin_type.
8691 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8693 * target.def (check_builtin_call): New target hook.
8694 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8695 * doc/tm.texi: Regenerate.
8697 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8699 PR tree-optimization/91909
8700 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8701 reduc_index parameter. When handling COND_REDUCTION, make sure
8702 that the reduction phi operand is in the correct arm of the
8704 (vectorizable_reduction): Pass reduc_index to the above.
8706 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8708 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8709 New combine pattern.
8711 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8713 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8714 loop instruction into new basic block before the loop when basic
8715 block that precedes the loop is empty.
8717 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8719 * function.c (gimplify_parameters): Use build_clobber function.
8720 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8721 * tree-inline.c (expand_call_inline): Likewise.
8722 * tree-sra.c (clobber_subtree): Likewise.
8723 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8724 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8725 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8726 lower_omp_target): Likewise.
8727 * omp-expand.c (expand_omp_for_generic): Likewise.
8728 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8730 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8732 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8733 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8734 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8735 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8736 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8737 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8738 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8739 LD_ELEMREV_V16QI): Use the PURE attribute.
8741 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8743 * config/rs6000/darwin.md: Replace the expanders for
8744 load_macho_picbase and reload_macho_picbase with use of '@'
8745 and <mode> in their respective define_insns.
8746 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8747 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8748 Pmode to gen_load_macho_picbase.
8749 * config/rs6000/rs6000.md: Likewise.
8751 2019-09-25 Richard Biener <rguenther@suse.de>
8753 PR tree-optimization/91896
8754 * tree-vect-loop.c (vectorizable_reduction): The single
8755 def-use cycle optimization cannot apply when there's more
8756 than one pattern stmt involved.
8758 2019-09-26 Richard Biener <rguenther@suse.de>
8760 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8761 loop-closed PHIs that are vect_internal_def.
8762 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8764 (vectorizable_lc_phi): New.
8765 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8766 (vect_transform_stmt): Likewise.
8767 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8768 (vectorizable_lc_phi): Declare.
8770 2019-09-26 Richard Biener <rguenther@suse.de>
8772 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8773 vectorizable_reduction for vect_double_reduction_def.
8774 (vect_transform_loop): Likewise.
8775 (vect_create_epilog_for_reduction): Move double-reduction
8776 PHI creation and preheader argument setting of PHIs ...
8777 (vectorizable_reduction): ... here. Also process
8778 vect_double_reduction_def PHIs, creating the vectorized
8779 PHI nodes, remembering the scalar adjustment computed for
8780 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8781 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8782 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8783 Initialize STMT_VINFO_REDUC_CODE.
8784 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8785 (_stmt_vec_info::reduc_code): Likewise.
8786 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8787 (STMT_VINFO_REDUC_CODE): Likewise.
8789 2019-09-26 Matt Turner <mattst88@gmail.com>
8792 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8793 (mtune=): Add Negative(mtune=).
8794 (mcpu=): Add Negative(mcpu=).
8795 * config/arm/arm.opt: Likewise.
8797 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8799 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8800 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8802 * config/arm/arm_acle.h: Define builtins for the above.
8803 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8804 (simd32_op): Handle the above.
8805 * config/arm/unspecs.md: Define unspecs for the above.
8807 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8809 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8810 (arm_<sup>xtb16): Likewise.
8811 (arm_usada8): Likewise.
8812 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8813 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8814 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8815 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8816 __sxtb16, __uxtab16, __uxtb16): Define.
8817 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8818 * config/arm/unspecs.md: Define unspecs for the above.
8819 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8820 (USXTB16): Likewise.
8821 (simd32_op): New int_attribute.
8822 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8823 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8825 2019-09-26 Martin Jambor <mjambor@suse.cz>
8827 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8830 2019-09-26 Martin Jambor <mjambor@suse.cz>
8832 * ipa-sra.c (process_scan_results): Fix continue condition.
8834 2019-09-26 Martin Liska <mliska@suse.cz>
8836 PR tree-optimization/91885
8837 * tree-vectorizer.c (try_vectorize_loop_1): Add
8838 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8840 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8842 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8843 aarch64_plus_immediate rather than aarch64_uimm12_shift
8844 to test for valid PLUS immediates.
8846 2019-09-25 Martin Jambor <mjambor@suse.cz>
8848 * tree-sra.c (no_accesses_p): Remove.
8849 (no_accesses_representant): Likewise.
8851 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8853 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8855 (vaba_s16): Likewise.
8856 (vaba_s32): Likewise.
8857 (vaba_u8): Likewise.
8858 (vaba_u16): Likewise.
8859 (vaba_u32): Likewise.
8860 (vabal_high_s8): Likewise.
8861 (vabal_high_s16): Likewise.
8862 (vabal_high_s32): Likewise.
8863 (vabal_high_u8): Likewise.
8864 (vabal_high_u16): Likewise.
8865 (vabal_high_u32): Likewise.
8866 (vabal_s8): Likewise.
8867 (vabal_s16): Likewise.
8868 (vabal_s32): Likewise.
8869 (vabal_u8): Likewise.
8870 (vabal_u16): Likewise.
8871 (vabal_u32): Likewise.
8872 (vabaq_s8): Likewise.
8873 (vabaq_s16): Likewise.
8874 (vabaq_s32): Likewise.
8875 (vabaq_u8): Likewise.
8876 (vabaq_u16): Likewise.
8877 (vabaq_u32): Likewise.
8878 (vabd_s8): Likewise.
8879 (vabd_s16): Likewise.
8880 (vabd_s32): Likewise.
8881 (vabd_u8): Likewise.
8882 (vabd_u16): Likewise.
8883 (vabd_u32): Likewise.
8884 (vabdl_high_s8): Likewise.
8885 (vabdl_high_s16): Likewise.
8886 (vabdl_high_s32): Likewise.
8887 (vabdl_high_u8): Likewise.
8888 (vabdl_high_u16): Likewise.
8889 (vabdl_high_u32): Likewise.
8890 (vabdl_s8): Likewise.
8891 (vabdl_s16): Likewise.
8892 (vabdl_s32): Likewise.
8893 (vabdl_u8): Likewise.
8894 (vabdl_u16): Likewise.
8895 (vabdl_u32): Likewise.
8896 (vabdq_s8): Likewise.
8897 (vabdq_s16): Likewise.
8898 (vabdq_s32): Likewise.
8899 (vabdq_u8): Likewise.
8900 (vabdq_u16): Likewise.
8901 (vabdq_u32): Likewise.
8902 (vaddlv_s8): Likewise.
8903 (vaddlv_s16): Likewise.
8904 (vaddlv_u8): Likewise.
8905 (vaddlv_u16): Likewise.
8906 (vaddlvq_s8): Likewise.
8907 (vaddlvq_s16): Likewise.
8908 (vaddlvq_s32): Likewise.
8909 (vaddlvq_u8): Likewise.
8910 (vaddlvq_u16): Likewise.
8911 (vaddlvq_u32): Likewise.
8912 (vcvtx_f32_f64): Likewise.
8913 (vcvtx_high_f32_f64): Likewise.
8914 (vcvtxd_f32_f64): Likewise.
8915 (vmla_n_f32): Likewise.
8916 (vmla_n_s16): Likewise.
8917 (vmla_n_s32): Likewise.
8918 (vmla_n_u16): Likewise.
8919 (vmla_n_u32): Likewise.
8920 (vmla_s8): Likewise.
8921 (vmla_s16): Likewise.
8922 (vmla_s32): Likewise.
8923 (vmla_u8): Likewise.
8924 (vmla_u16): Likewise.
8925 (vmla_u32): Likewise.
8926 (vmlal_high_n_s16): Likewise.
8927 (vmlal_high_n_s32): Likewise.
8928 (vmlal_high_n_u16): Likewise.
8929 (vmlal_high_n_u32): Likewise.
8930 (vmlal_high_s8): Likewise.
8931 (vmlal_high_s16): Likewise.
8932 (vmlal_high_s32): Likewise.
8933 (vmlal_high_u8): Likewise.
8934 (vmlal_high_u16): Likewise.
8935 (vmlal_high_u32): Likewise.
8936 (vmlal_n_s16): Likewise.
8937 (vmlal_n_s32): Likewise.
8938 (vmlal_n_u16): Likewise.
8939 (vmlal_n_u32): Likewise.
8940 (vmlal_s8): Likewise.
8941 (vmlal_s16): Likewise.
8942 (vmlal_s32): Likewise.
8943 (vmlal_u8): Likewise.
8944 (vmlal_u16): Likewise.
8945 (vmlal_u32): Likewise.
8946 (vmlaq_n_f32): Likewise.
8947 (vmlaq_n_s16): Likewise.
8948 (vmlaq_n_s32): Likewise.
8949 (vmlaq_n_u16): Likewise.
8950 (vmlaq_n_u32): Likewise.
8951 (vmlaq_s8): Likewise.
8952 (vmlaq_s16): Likewise.
8953 (vmlaq_s32): Likewise.
8954 (vmlaq_u8): Likewise.
8955 (vmlaq_u16): Likewise.
8956 (vmlaq_u32): Likewise.
8957 (vmls_n_f32): Likewise.
8958 (vmls_n_s16): Likewise.
8959 (vmls_n_s32): Likewise.
8960 (vmls_n_u16): Likewise.
8961 (vmls_n_u32): Likewise.
8962 (vmls_s8): Likewise.
8963 (vmls_s16): Likewise.
8964 (vmls_s32): Likewise.
8965 (vmls_u8): Likewise.
8966 (vmls_u16): Likewise.
8967 (vmls_u32): Likewise.
8968 (vmlsl_high_n_s16): Likewise.
8969 (vmlsl_high_n_s32): Likewise.
8970 (vmlsl_high_n_u16): Likewise.
8971 (vmlsl_high_n_u32): Likewise.
8972 (vmlsl_high_s8): Likewise.
8973 (vmlsl_high_s16): Likewise.
8974 (vmlsl_high_s32): Likewise.
8975 (vmlsl_high_u8): Likewise.
8976 (vmlsl_high_u16): Likewise.
8977 (vmlsl_high_u32): Likewise.
8978 (vmlsl_n_s16): Likewise.
8979 (vmlsl_n_s32): Likewise.
8980 (vmlsl_n_u16): Likewise.
8981 (vmlsl_n_u32): Likewise.
8982 (vmlsl_s8): Likewise.
8983 (vmlsl_s16): Likewise.
8984 (vmlsl_s32): Likewise.
8985 (vmlsl_u8): Likewise.
8986 (vmlsl_u16): Likewise.
8987 (vmlsl_u32): Likewise.
8988 (vmlsq_n_f32): Likewise.
8989 (vmlsq_n_s16): Likewise.
8990 (vmlsq_n_s32): Likewise.
8991 (vmlsq_n_u16): Likewise.
8992 (vmlsq_n_u32): Likewise.
8993 (vmlsq_s8): Likewise.
8994 (vmlsq_s16): Likewise.
8995 (vmlsq_s32): Likewise.
8996 (vmlsq_u8): Likewise.
8997 (vmlsq_u16): Likewise.
8998 (vmlsq_u32): Likewise.
8999 (vmovl_high_s8): Likewise.
9000 (vmovl_high_s16): Likewise.
9001 (vmovl_high_s32): Likewise.
9002 (vmovl_high_u8): Likewise.
9003 (vmovl_high_u16): Likewise.
9004 (vmovl_high_u32): Likewise.
9005 (vmovl_s8): Likewise.
9006 (vmovl_s16): Likewise.
9007 (vmovl_s32): Likewise.
9008 (vmovl_u8): Likewise.
9009 (vmovl_u16): Likewise.
9010 (vmovl_u32): Likewise.
9011 (vmovn_high_s16): Likewise.
9012 (vmovn_high_s32): Likewise.
9013 (vmovn_high_s64): Likewise.
9014 (vmovn_high_u16): Likewise.
9015 (vmovn_high_u32): Likewise.
9016 (vmovn_high_u64): Likewise.
9017 (vmovn_s16): Likewise.
9018 (vmovn_s32): Likewise.
9019 (vmovn_s64): Likewise.
9020 (vmovn_u16): Likewise.
9021 (vmovn_u32): Likewise.
9022 (vmovn_u64): Likewise.
9023 (vmull_high_n_s16): Likewise.
9024 (vmull_high_n_s32): Likewise.
9025 (vmull_high_n_u16): Likewise.
9026 (vmull_high_n_u32): Likewise.
9027 (vmull_high_p8): Likewise.
9028 (vmull_high_s8): Likewise.
9029 (vmull_high_s16): Likewise.
9030 (vmull_high_s32): Likewise.
9031 (vmull_high_u8): Likewise.
9032 (vmull_high_u16): Likewise.
9033 (vmull_high_u32): Likewise.
9034 (vmull_n_s16): Likewise.
9035 (vmull_n_s32): Likewise.
9036 (vmull_n_u16): Likewise.
9037 (vmull_n_u32): Likewise.
9038 (vmull_p8): Likewise.
9039 (vmull_s8): Likewise.
9040 (vmull_s16): Likewise.
9041 (vmull_s32): Likewise.
9042 (vmull_u8): Likewise.
9043 (vmull_u16): Likewise.
9044 (vmull_u32): Likewise.
9045 (vpadal_s8): Likewise.
9046 (vpadal_s16): Likewise.
9047 (vpadal_s32): Likewise.
9048 (vpadal_u8): Likewise.
9049 (vpadal_u16): Likewise.
9050 (vpadal_u32): Likewise.
9051 (vpadalq_s8): Likewise.
9052 (vpadalq_s16): Likewise.
9053 (vpadalq_s32): Likewise.
9054 (vpadalq_u8): Likewise.
9055 (vpadalq_u16): Likewise.
9056 (vpadalq_u32): Likewise.
9057 (vpaddl_s8): Likewise.
9058 (vpaddl_s16): Likewise.
9059 (vpaddl_s32): Likewise.
9060 (vpaddl_u8): Likewise.
9061 (vpaddl_u16): Likewise.
9062 (vpaddl_u32): Likewise.
9063 (vpaddlq_s8): Likewise.
9064 (vpaddlq_s16): Likewise.
9065 (vpaddlq_s32): Likewise.
9066 (vpaddlq_u8): Likewise.
9067 (vpaddlq_u16): Likewise.
9068 (vpaddlq_u32): Likewise.
9069 (vpaddq_s8): Likewise.
9070 (vpaddq_s16): Likewise.
9071 (vpaddq_s32): Likewise.
9072 (vpaddq_s64): Likewise.
9073 (vpaddq_u8): Likewise.
9074 (vpaddq_u16): Likewise.
9075 (vpaddq_u32): Likewise.
9076 (vpaddq_u64): Likewise.
9077 (vqdmulh_n_s16): Likewise.
9078 (vqdmulh_n_s32): Likewise.
9079 (vqdmulhq_n_s16): Likewise.
9080 (vqdmulhq_n_s32): Likewise.
9081 (vqmovn_high_s16): Likewise.
9082 (vqmovn_high_s32): Likewise.
9083 (vqmovn_high_s64): Likewise.
9084 (vqmovn_high_u16): Likewise.
9085 (vqmovn_high_u32): Likewise.
9086 (vqmovn_high_u64): Likewise.
9087 (vqmovun_high_s16): Likewise.
9088 (vqmovun_high_s32): Likewise.
9089 (vqmovun_high_s64): Likewise.
9090 (vqrdmulh_n_s16): Likewise.
9091 (vqrdmulh_n_s32): Likewise.
9092 (vqrdmulhq_n_s16): Likewise.
9093 (vqrdmulhq_n_s32): Likewise.
9094 (vrsqrte_u32): Likewise.
9095 (vrsqrteq_u32): Likewise.
9096 (vtst_p8): Likewise.
9097 (vtst_p16): Likewise.
9098 (vtst_p64): Likewise.
9099 (vtstq_p8): Likewise.
9100 (vtstq_p16): Likewise.
9101 (vtstq_p64): Likewise.
9102 (vaddlv_s32): Likewise.
9103 (vaddlv_u32): Likewise.
9104 (vqtbl1_p8): Likewise.
9105 (vqtbl1_s8): Likewise.
9106 (vqtbl1_u8): Likewise.
9107 (vqtbl1q_p8): Likewise.
9108 (vqtbl1q_s8): Likewise.
9109 (vqtbl1q_u8): Likewise.
9110 (vqtbx1_s8): Likewise.
9111 (vqtbx1_u8): Likewise.
9112 (vqtbx1_p8): Likewise.
9113 (vqtbx1q_s8): Likewise.
9114 (vqtbx1q_u8): Likewise.
9115 (vqtbx1q_p8): Likewise.
9116 (vtbl1_s8): Likewise.
9117 (vtbl1_u8): Likewise.
9118 (vtbl1_p8): Likewise.
9119 (vtbl2_s8): Likewise.
9120 (vtbl2_u8): Likewise.
9121 (vtbl2_p8): Likewise.
9122 (vtbl3_s8): Likewise.
9123 (vtbl3_u8): Likewise.
9124 (vtbl3_p8): Likewise.
9125 (vtbl4_s8): Likewise.
9126 (vtbl4_u8): Likewise.
9127 (vtbl4_p8): Likewise.
9128 (vtbx2_s8): Likewise.
9129 (vtbx2_u8): Likewise.
9130 (vtbx2_p8): Likewise.
9131 (vld1_f32): Likewise.
9132 (vld1_f64): Likewise.
9133 (vld1_p8): Likewise.
9134 (vld1_p16): Likewise.
9135 (vld1_p64): Likewise.
9136 (vld1_s8): Likewise.
9137 (vld1_s16): Likewise.
9138 (vld1_s32): Likewise.
9139 (vld1_s64): Likewise.
9140 (vld1_u8): Likewise.
9141 (vld1_u16): Likewise.
9142 (vld1_u32): Likewise.
9143 (vld1_u64): Likewise.
9144 (vld1q_f32): Likewise.
9145 (vld1q_f64): Likewise.
9146 (vld1q_p8): Likewise.
9147 (vld1q_p16): Likewise.
9148 (vld1q_p64): Likewise.
9149 (vld1q_s8): Likewise.
9150 (vld1q_s16): Likewise.
9151 (vld1q_s32): Likewise.
9152 (vld1q_s64): Likewise.
9153 (vld1q_u8): Likewise.
9154 (vld1q_u16): Likewise.
9155 (vld1q_u32): Likewise.
9156 (vld1q_u64): Likewise.
9157 (vpmax_s8): Likewise.
9158 (vpmax_s16): Likewise.
9159 (vpmax_s32): Likewise.
9160 (vpmax_u8): Likewise.
9161 (vpmax_u16): Likewise.
9162 (vpmax_u32): Likewise.
9163 (vpmaxq_s8): Likewise.
9164 (vpmaxq_s16): Likewise.
9165 (vpmaxq_s32): Likewise.
9166 (vpmaxq_u8): Likewise.
9167 (vpmaxq_u16): Likewise.
9168 (vpmaxq_u32): Likewise.
9169 (vpmax_f32): Likewise.
9170 (vpmaxq_f32): Likewise.
9171 (vpmaxq_f64): Likewise.
9172 (vpmaxqd_f64): Likewise.
9173 (vpmaxs_f32): Likewise.
9174 (vpmaxnm_f32): Likewise.
9175 (vpmaxnmq_f32): Likewise.
9176 (vpmaxnmq_f64): Likewise.
9177 (vpmaxnmqd_f64): Likewise.
9178 (vpmaxnms_f32): Likewise.
9179 (vpmin_s8): Likewise.
9180 (vpmin_s16): Likewise.
9181 (vpmin_s32): Likewise.
9182 (vpmin_u8): Likewise.
9183 (vpmin_u16): Likewise.
9184 (vpmin_u32): Likewise.
9185 (vpminq_s8): Likewise.
9186 (vpminq_s16): Likewise.
9187 (vpminq_s32): Likewise.
9188 (vpminq_u8): Likewise.
9189 (vpminq_u16): Likewise.
9190 (vpminq_u32): Likewise.
9191 (vpmin_f32): Likewise.
9192 (vpminq_f32): Likewise.
9193 (vpminq_f64): Likewise.
9194 (vpminqd_f64): Likewise.
9195 (vpmins_f32): Likewise.
9196 (vpminnm_f32): Likewise.
9197 (vpminnmq_f32): Likewise.
9198 (vpminnmq_f64): Likewise.
9199 (vpminnmqd_f64): Likewise.
9200 (vpminnms_f32): Likewise.
9201 (vmla_f32): Likewise.
9202 (vmlaq_f32): Likewise.
9203 (vmlaq_f64): Likewise.
9204 (vmls_f32): Likewise.
9205 (vmlsq_f32): Likewise.
9206 (vmlsq_f64): Likewise.
9207 (vqtbl2_s8): Likewise.
9208 (vqtbl2_u8): Likewise.
9209 (vqtbl2_p8): Likewise.
9210 (vqtbl2q_s8): Likewise.
9211 (vqtbl2q_u8): Likewise.
9212 (vqtbl2q_p8): Likewise.
9213 (vqtbl3_s8): Likewise.
9214 (vqtbl3_u8): Likewise.
9215 (vqtbl3_p8): Likewise.
9216 (vqtbl3q_s8): Likewise.
9217 (vqtbl3q_u8): Likewise.
9218 (vqtbl3q_p8): Likewise.
9219 (vqtbl4_s8): Likewise.
9220 (vqtbl4_u8): Likewise.
9221 (vqtbl4_p8): Likewise.
9222 (vqtbl4q_s8): Likewise.
9223 (vqtbl4q_u8): Likewise.
9224 (vqtbl4q_p8): Likewise.
9225 (vqtbx2_s8): Likewise.
9226 (vqtbx2_u8): Likewise.
9227 (vqtbx2_p8): Likewise.
9228 (vqtbx2q_s8): Likewise.
9229 (vqtbx2q_u8): Likewise.
9230 (vqtbx2q_p8): Likewise.
9231 (vqtbx3_s8): Likewise.
9232 (vqtbx3_u8): Likewise.
9233 (vqtbx3_p8): Likewise.
9234 (vqtbx3q_s8): Likewise.
9235 (vqtbx3q_u8): Likewise.
9236 (vqtbx3q_p8): Likewise.
9237 (vqtbx4_s8): Likewise.
9238 (vqtbx4_u8): Likewise.
9239 (vqtbx4_p8): Likewise.
9240 (vqtbx4q_s8): Likewise.
9241 (vqtbx4q_u8): Likewise.
9242 (vqtbx4q_p8): Likewise.
9243 (vrev16_p8): Likewise.
9244 (vrev16_s8): Likewise.
9245 (vrev16_u8): Likewise.
9246 (vrev16q_p8): Likewise.
9247 (vrev16q_s8): Likewise.
9248 (vrev16q_u8): Likewise.
9249 (vrev32_p8): Likewise.
9250 (vrev32_p16): Likewise.
9251 (vrev32_s8): Likewise.
9252 (vrev32_s16): Likewise.
9253 (vrev32_u8): Likewise.
9254 (vrev32_u16): Likewise.
9255 (vrev32q_p8): Likewise.
9256 (vrev32q_p16): Likewise.
9257 (vrev32q_s8): Likewise.
9258 (vrev32q_s16): Likewise.
9259 (vrev32q_u8): Likewise.
9260 (vrev32q_u16): Likewise.
9261 (vrev64_f32): Likewise.
9262 (vrev64_p8): Likewise.
9263 (vrev64_p16): Likewise.
9264 (vrev64_s8): Likewise.
9265 (vrev64_s16): Likewise.
9266 (vrev64_s32): Likewise.
9267 (vrev64_u8): Likewise.
9268 (vrev64_u16): Likewise.
9269 (vrev64_u32): Likewise.
9270 (vrev64q_f32): Likewise.
9271 (vrev64q_p8): Likewise.
9272 (vrev64q_p16): Likewise.
9273 (vrev64q_s8): Likewise.
9274 (vrev64q_s16): Likewise.
9275 (vrev64q_s32): Likewise.
9276 (vrev64q_u8): Likewise.
9277 (vrev64q_u16): Likewise.
9278 (vrev64q_u32): Likewise.
9279 (vsha1cq_u32): Likewise.
9280 (vsha1mq_u32): Likewise.
9281 (vsha1pq_u32): Likewise.
9282 (vsha1h_u32): Likewise.
9283 (vsha1su0q_u32): Likewise.
9284 (vsha1su1q_u32): Likewise.
9285 (vsha256hq_u32): Likewise.
9286 (vsha256h2q_u32): Likewise.
9287 (vsha256su0q_u32): Likewise.
9288 (vsha256su1q_u32): Likewise.
9289 (vmull_p64): Likewise.
9290 (vmull_high_p64): Likewise.
9291 (vsqrt_f32): Likewise.
9292 (vsqrtq_f32): Likewise.
9293 (vsqrt_f64): Likewise.
9294 (vsqrtq_f64): Likewise.
9295 (vst1_f32): Likewise.
9296 (vst1_f64): Likewise.
9297 (vst1_p8): Likewise.
9298 (vst1_p16): Likewise.
9299 (vst1_p64): Likewise.
9300 (vst1_s8): Likewise.
9301 (vst1_s16): Likewise.
9302 (vst1_s32): Likewise.
9303 (vst1_s64): Likewise.
9304 (vst1_u8): Likewise.
9305 (vst1_u16): Likewise.
9306 (vst1_u32): Likewise.
9307 (vst1_u64): Likewise.
9308 (vst1q_f32): Likewise.
9309 (vst1q_f64): Likewise.
9310 (vst1q_p8): Likewise.
9311 (vst1q_p16): Likewise.
9312 (vst1q_p64): Likewise.
9313 (vst1q_s8): Likewise.
9314 (vst1q_s16): Likewise.
9315 (vst1q_s32): Likewise.
9316 (vst1q_s64): Likewise.
9317 (vst1q_u8): Likewise.
9318 (vst1q_u16): Likewise.
9319 (vst1q_u32): Likewise.
9320 (vst1q_u64): Likewise.
9321 (vst1_s64_x2): Likewise.
9322 (vst1_u64_x2): Likewise.
9323 (vst1_f64_x2): Likewise.
9324 (vst1_s8_x2): Likewise.
9325 (vst1_p8_x2): Likewise.
9326 (vst1_s16_x2): Likewise.
9327 (vst1_p16_x2): Likewise.
9328 (vst1_s32_x2): Likewise.
9329 (vst1_u8_x2): Likewise.
9330 (vst1_u16_x2): Likewise.
9331 (vst1_u32_x2): Likewise.
9332 (vst1_f16_x2): Likewise.
9333 (vst1_f32_x2): Likewise.
9334 (vst1_p64_x2): Likewise.
9335 (vst1q_s8_x2): Likewise.
9336 (vst1q_p8_x2): Likewise.
9337 (vst1q_s16_x2): Likewise.
9338 (vst1q_p16_x2): Likewise.
9339 (vst1q_s32_x2): Likewise.
9340 (vst1q_s64_x2): Likewise.
9341 (vst1q_u8_x2): Likewise.
9342 (vst1q_u16_x2): Likewise.
9343 (vst1q_u32_x2): Likewise.
9344 (vst1q_u64_x2): Likewise.
9345 (vst1q_f16_x2): Likewise.
9346 (vst1q_f32_x2): Likewise.
9347 (vst1q_f64_x2): Likewise.
9348 (vst1q_p64_x2): Likewise.
9349 (vst1_s64_x3): Likewise.
9350 (vst1_u64_x3): Likewise.
9351 (vst1_f64_x3): Likewise.
9352 (vst1_s8_x3): Likewise.
9353 (vst1_p8_x3): Likewise.
9354 (vst1_s16_x3): Likewise.
9355 (vst1_p16_x3): Likewise.
9356 (vst1_s32_x3): Likewise.
9357 (vst1_u8_x3): Likewise.
9358 (vst1_u16_x3): Likewise.
9359 (vst1_u32_x3): Likewise.
9360 (vst1_f16_x3): Likewise.
9361 (vst1_f32_x3): Likewise.
9362 (vst1_p64_x3): Likewise.
9363 (vst1q_s8_x3): Likewise.
9364 (vst1q_p8_x3): Likewise.
9365 (vst1q_s16_x3): Likewise.
9366 (vst1q_p16_x3): Likewise.
9367 (vst1q_s32_x3): Likewise.
9368 (vst1q_s64_x3): Likewise.
9369 (vst1q_u8_x3): Likewise.
9370 (vst1q_u16_x3): Likewise.
9371 (vst1q_u32_x3): Likewise.
9372 (vst1q_u64_x3): Likewise.
9373 (vst1q_f16_x3): Likewise.
9374 (vst1q_f32_x3): Likewise.
9375 (vst1q_f64_x3): Likewise.
9376 (vst1q_p64_x3): Likewise.
9377 (vst2_s64): Likewise.
9378 (vst2_u64): Likewise.
9379 (vst2_f64): Likewise.
9380 (vst2_s8): Likewise.
9381 (vst2_p8): Likewise.
9382 (vst2_s16): Likewise.
9383 (vst2_p16): Likewise.
9384 (vst2_s32): Likewise.
9385 (vst2_u8): Likewise.
9386 (vst2_u16): Likewise.
9387 (vst2_u32): Likewise.
9388 (vst2_f16): Likewise.
9389 (vst2_f32): Likewise.
9390 (vst2_p64): Likewise.
9391 (vst2q_s8): Likewise.
9392 (vst2q_p8): Likewise.
9393 (vst2q_s16): Likewise.
9394 (vst2q_p16): Likewise.
9395 (vst2q_s32): Likewise.
9396 (vst2q_s64): Likewise.
9397 (vst2q_u8): Likewise.
9398 (vst2q_u16): Likewise.
9399 (vst2q_u32): Likewise.
9400 (vst2q_u64): Likewise.
9401 (vst2q_f16): Likewise.
9402 (vst2q_f32): Likewise.
9403 (vst2q_f64): Likewise.
9404 (vst2q_p64): Likewise.
9405 (vst3_s64): Likewise.
9406 (vst3_u64): Likewise.
9407 (vst3_f64): Likewise.
9408 (vst3_s8): Likewise.
9409 (vst3_p8): Likewise.
9410 (vst3_s16): Likewise.
9411 (vst3_p16): Likewise.
9412 (vst3_s32): Likewise.
9413 (vst3_u8): Likewise.
9414 (vst3_u16): Likewise.
9415 (vst3_u32): Likewise.
9416 (vst3_f16): Likewise.
9417 (vst3_f32): Likewise.
9418 (vst3_p64): Likewise.
9419 (vst3q_s8): Likewise.
9420 (vst3q_p8): Likewise.
9421 (vst3q_s16): Likewise.
9422 (vst3q_p16): Likewise.
9423 (vst3q_s32): Likewise.
9424 (vst3q_s64): Likewise.
9425 (vst3q_u8): Likewise.
9426 (vst3q_u16): Likewise.
9427 (vst3q_u32): Likewise.
9428 (vst3q_u64): Likewise.
9429 (vst3q_f16): Likewise.
9430 (vst3q_f32): Likewise.
9431 (vst3q_f64): Likewise.
9432 (vst3q_p64): Likewise.
9433 (vst4_s64): Likewise.
9434 (vst4_u64): Likewise.
9435 (vst4_f64): Likewise.
9436 (vst4_s8): Likewise.
9437 (vst4_p8): Likewise.
9438 (vst4_s16): Likewise.
9439 (vst4_p16): Likewise.
9440 (vst4_s32): Likewise.
9441 (vst4_u8): Likewise.
9442 (vst4_u16): Likewise.
9443 (vst4_u32): Likewise.
9444 (vst4_f16): Likewise.
9445 (vst4_f32): Likewise.
9446 (vst4_p64): Likewise.
9447 (vst4q_s8): Likewise.
9448 (vst4q_p8): Likewise.
9449 (vst4q_s16): Likewise.
9450 (vst4q_p16): Likewise.
9451 (vst4q_s32): Likewise.
9452 (vst4q_s64): Likewise.
9453 (vst4q_u8): Likewise.
9454 (vst4q_u16): Likewise.
9455 (vst4q_u32): Likewise.
9456 (vst4q_u64): Likewise.
9457 (vst4q_f16): Likewise.
9458 (vst4q_f32): Likewise.
9459 (vst4q_f64): Likewise.
9460 (vst4q_p64): Likewise.
9461 (vtbx4_s8): Likewise.
9462 (vtbx4_u8): Likewise.
9463 (vtbx4_p8): Likewise.
9464 (vtrn_f32): Likewise.
9465 (vtrn_p8): Likewise.
9466 (vtrn_p16): Likewise.
9467 (vtrn_s8): Likewise.
9468 (vtrn_s16): Likewise.
9469 (vtrn_s32): Likewise.
9470 (vtrn_u8): Likewise.
9471 (vtrn_u16): Likewise.
9472 (vtrn_u32): Likewise.
9473 (vtrnq_f32): Likewise.
9474 (vtrnq_p8): Likewise.
9475 (vtrnq_p16): Likewise.
9476 (vtrnq_s8): Likewise.
9477 (vtrnq_s16): Likewise.
9478 (vtrnq_s32): Likewise.
9479 (vtrnq_u8): Likewise.
9480 (vtrnq_u16): Likewise.
9481 (vtrnq_u32): Likewise.
9482 (vrsqrte_f16): Likewise.
9483 (vrsqrteq_f16): Likewise.
9484 (vsqrt_f16): Likewise.
9485 (vsqrtq_f16): Likewise.
9486 (vabd_f16): Likewise.
9487 (vabdq_f16): Likewise.
9488 (vpadd_f16): Likewise.
9489 (vpaddq_f16): Likewise.
9490 (vpmax_f16): Likewise.
9491 (vpmaxq_f16): Likewise.
9492 (vpmaxnm_f16): Likewise.
9493 (vpmaxnmq_f16): Likewise.
9494 (vpmin_f16): Likewise.
9495 (vpminq_f16): Likewise.
9496 (vpminnm_f16): Likewise.
9497 (vpminnmq_f16): Likewise.
9498 (vrsqrts_f16): Likewise.
9499 (vrsqrtsq_f16): Likewise.
9501 2019-09-25 Richard Biener <rguenther@suse.de>
9503 PR tree-optimization/91896
9504 * tree-vect-loop.c (vectorizable_reduction): The single
9505 def-use cycle optimization cannot apply when there's more
9506 than one pattern stmt involved.
9508 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9510 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
9511 the 'P' mode iterator, replacing the (removed) SI and DI variants.
9512 (reload_macho_picbase_<mode>): Likewise.
9514 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9516 * config/rs6000/rs6000.md: Move darwin.md include until
9517 after the definition of the mode iterators.
9519 2019-09-23 Martin Sebor <msebor@redhat.com>
9521 PR tree-optimization/91570
9522 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
9523 non-constant minlen, maxlen and maxbound.
9525 2019-09-24 Richard Biener <rguenther@suse.de>
9527 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
9529 (_stmt_vec_info::cond_reduc_code): ... this.
9530 (_stmt_vec_info::induc_cond_initial_val): Add.
9531 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
9532 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
9533 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
9534 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
9535 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
9537 (vect_create_epilog_for_reduction): Drop special
9538 induction condition reduction params, pass in reduction code
9540 (vectorizable_reduction): Perform condition reduction kind
9541 selection only at analysis time. Adjust passing on state.
9543 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9545 * config/aarch64/aarch64.md (mov<mode>): Don't call
9546 aarch64_split_dimode_const_store on volatile MEM.
9548 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
9550 * config/aarch64/aarch64-option-extensions.def (fp16fml):
9551 Update hwcap string for fp16fml.
9553 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9556 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9557 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9559 2019-09-24 Martin Liska <mliska@suse.cz>
9561 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9562 instead of if-elseif-elseif-...
9563 * gimple-expr.c (extract_ops_from_tree): Likewise.
9564 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9565 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9567 2019-09-24 Martin Jambor <mjambor@suse.cz>
9570 * ipa-param-manipulation.c (carry_over_param): Make a method of
9571 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9572 in case of a context mismatch.
9573 (ipa_param_body_adjustments::common_initialization): Adjust call to
9575 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9576 private method carry_over_param.
9578 2019-09-24 Martin Jambor <mjambor@suse.cz>
9581 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9583 2019-09-24 Richard Biener <rguenther@suse.de>
9585 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9588 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9590 * config/arm/t-arm (arm-builtins.o): Add dependency on
9591 arm_acle_builtins.def.
9593 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9596 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9597 canonical CONST_INTs. Use gen_rtvec.
9599 2019-09-23 Richard Biener <rguenther@suse.de>
9601 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9602 avoid adjusting by + 0 or * 1.
9603 (vect_create_epilog_for_reduction): Get reduction code only
9604 when necessary. Deal with adjustment_def only when necessary.
9606 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9608 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9611 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9614 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9617 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9619 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9620 code. Merge code blocks with common conditionals. Use declared
9621 macro instead of a magic number for PIC level.
9623 2019-09-21 Martin Sebor <msebor@redhat.com>
9626 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9627 Simplify computation of the offset of the referenced subobject.
9629 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9631 * config/darwin.c (machopic_legitimize_pic_address): Check
9634 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9636 * ira-conflicts.c (can_use_same_reg_p): New function.
9637 (process_reg_shuffles): Take an insn parameter. Ignore cases
9638 in which input operand op_num could seemingly never be allocated
9639 to the same register as the destination.
9640 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9642 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9644 * simplify-rtx.c (neg_const_int): Replace with...
9645 (neg_poly_int_rtx): ...this new function.
9646 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9647 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9648 (simplify_plus_minus): Likewise for constant terms here.
9650 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9652 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9653 HOST_WIDE_PRINT_UNSIGNED.
9655 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9657 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9660 2019-09-20 Maya Rashish <coypu@sdf.org>
9663 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9664 Define to speculation_safe_value_not_needed.
9666 2019-09-20 Richard Biener <rguenther@suse.de>
9667 Uros Bizjak <ubizjak@gmail.com>
9670 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9672 (general_scalar_chain::convert_op): Force not suitable memory
9673 operands to a register.
9675 2019-09-20 Richard Biener <rguenther@suse.de>
9677 PR tree-optimization/91821
9678 * tree-vect-loop.c (check_reduction_path): Check we can compute
9680 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9681 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9682 operands in canonical order.
9683 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9684 STMT_VINFO_REDUC_IDX.
9685 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9686 (STMT_VINFO_REDUC_IDX): Likewise.
9688 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9691 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9693 2019-09-20 Richard Biener <rguenther@suse.de>
9695 PR tree-optimization/91822
9696 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9698 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9699 for reduc_index in nested cycles, adjust vectorizable_condition
9701 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9703 (vect_analyze_stmt): Adjust.
9704 (vect_transform_stmt): Likewise.
9706 2019-09-20 Richard Biener <rguenther@suse.de>
9709 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9710 Ensure there's a sequence point between allocating the new register
9711 and passing a reference to a reg via regno_reg_rtx.
9713 2019-09-20 Martin Jambor <mjambor@suse.cz>
9715 * coretypes.h (cgraph_edge): Declare.
9716 * ipa-param-manipulation.c: Rewrite.
9717 * ipa-param-manipulation.h: Likewise.
9718 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9719 (OBJS): Added ipa-sra.o.
9720 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9721 and ref_p, added fields param_adjustments and performed_splits.
9722 (struct cgraph_clone_info): Remove ags_to_skip and
9723 combined_args_to_skip, new field param_adjustments.
9724 (cgraph_node::create_clone): Changed parameters to use
9725 ipa_param_adjustments.
9726 (cgraph_node::create_virtual_clone): Likewise.
9727 (cgraph_node::create_virtual_clone_with_body): Likewise.
9728 (tree_function_versioning): Likewise.
9729 (cgraph_build_function_type_skip_args): Removed.
9730 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9731 using ipa_param_adjustments.
9732 (clone_of_p): Likewise.
9733 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9734 (build_function_decl_skip_args): Likewise.
9735 (duplicate_thunk_for_node): Adjust parameters using
9736 ipa_param_body_adjustments, copy param_adjustments instead of
9738 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9739 (cgraph_node::create_virtual_clone): Likewise.
9740 (cgraph_node::create_version_clone_with_body): Likewise.
9741 (cgraph_materialize_clone): Likewise.
9742 (symbol_table::materialize_all_clones): Likewise.
9743 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9744 ipa_replace_map check.
9745 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9746 (initialize_node_lattices): Make aware that some parameters might have
9747 already been removed.
9748 (want_remove_some_param_p): New function.
9749 (create_specialized_node): Convert to using ipa_param_adjustments and
9750 deal with possibly pre-existing adjustments.
9751 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9752 (output_node_opt_summary): Do not stream removed fields. Stream
9753 parameter adjustments instead of argumetns to skip.
9754 (input_node_opt_summary): Likewise.
9755 (input_node_opt_summary): Likewise.
9756 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9757 * lto-streamer.h (lto_section_type): Likewise.
9758 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9760 (copy_decl_to_var): Declare.
9761 * tree-inline.c (update_clone_info): Do not remap old_tree.
9762 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9763 statements, walk all extra generated statements and remap their
9765 (redirect_all_calls): Add killed SSA names to a hash set.
9766 (remap_ssa_name): Do not remap killed SSA names.
9767 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9768 half of functionality moved to ipa_param_body_adjustments.
9769 (copy_decl_to_var): Make exported.
9770 (copy_body): Destroy killed_new_ssa_names hash set.
9771 (expand_call_inline): Remap performed splits.
9772 (update_clone_info): Likewise.
9773 (tree_function_versioning): Simplify tree_map processing. Updated to
9774 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9775 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9776 for the new interface.
9777 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9778 (simd_clone_compute_base_data_type): Likewise.
9779 (simd_clone_init_simd_arrays): Adjust for the new interface.
9780 (simd_clone_adjust_argument_types): Likewise.
9781 (struct modify_stmt_info): Likewise.
9782 (ipa_simd_modify_stmt_ops): Likewise.
9783 (ipa_simd_modify_function_body): Likewise.
9784 (simd_clone_adjust): Likewise.
9785 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9786 (type_internals_preclude_sra_p): Make public.
9787 * tree-sra.h: New file.
9788 * ipa-inline-transform.c (save_inline_function_body): Update to
9789 refelct new tree_function_versioning signature.
9790 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9791 ipa_param_adjustments to get current parameter indices.
9792 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9793 (ipcp_update_bits): Likewise.
9794 (ipcp_update_vr): Likewise.
9795 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9796 * ipa-sra.c: New file.
9797 * multiple_target.c (create_target_clone): Update to reflet new type
9798 of create_version_clone_with_body.
9799 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9800 tree_function_versioning.
9801 (modify_function): Update to reflect new type of
9802 tree_function_versioning.
9803 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9804 * passes.def: Remove old IPA-SRA and add new one.
9805 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9806 (make_pass_ipa_sra): Declare.
9807 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9809 * doc/invoke.texi (ipa-sra-max-replacements): New.
9811 2019-09-19 Martin Sebor <msebor@redhat.com>
9814 * builtins.c (component_size): Correct trailing array computation,
9815 rename to component_ref_size and move...
9816 (compute_objsize): Adjust.
9817 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9818 (builtin_access::strict): Do not consider memmove.
9819 (builtin_access::write_off): New function.
9820 (builtin_memref::builtin_memref): Initialize refsize.
9821 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9823 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9825 (builtin_access::builtin_access): Initialize dstoff to destination
9826 refeence offset here instead of in maybe_diag_overlap. Adjust
9827 referencess even to unrelated objects. Adjust sizrange of bounded
9828 string functions to reflect bound. For strcat, adjust destination
9829 sizrange by that of source.
9830 (builtin_access::strcat_overlap): Adjust offsets and sizes
9831 to reflect the increase in destination sizrange above.
9832 (builtin_access::overlap): Do not set dstoff here but instead
9833 in builtin_access::builtin_access.
9834 (check_bounds_or_overlap): Use builtin_access::write_off.
9835 (maybe_diag_access_bounds): Add argument. Add informational notes.
9836 (dump_builtin_memref, dump_builtin_access): New functions.
9837 * tree.c (component_ref_size): ...to here.
9838 * tree.h (component_ref_size): Declare.
9839 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9840 nul in the size of the source string.
9842 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9845 * doc/cpp.texi: Document support for extended characters in
9847 * doc/cppopts.texi: Likewise.
9849 2019-09-19 Richard Biener <rguenther@suse.de>
9851 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9852 (check_reduction_path): New overload having the path as result.
9853 (vect_is_simple_reduction): From the detected reduction
9854 path build a SLP reduction chain if possible.
9856 2019-09-19 Richard Biener <rguenther@suse.de>
9859 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9860 Force operand to a register if it isn't nonimmediate_operand.
9862 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9864 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9865 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9866 (logical_op): Remove code attribute.
9867 (logical_OP): Likewise.
9869 2019-09-19 Martin Liska <mliska@suse.cz>
9871 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9874 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9876 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9879 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9880 for NE comparison of TImode values.
9881 (aarch64_emit_load_exclusive): Add support for TImode.
9882 (aarch64_emit_store_exclusive): Likewise.
9883 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9884 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9885 Change iterator from ALLI to ALLI_TI.
9886 (@atomic_compare_and_swap<JUST_TI>): New.
9887 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9888 (aarch64_load_exclusive_pair): New.
9889 (aarch64_store_exclusive_pair): New.
9890 * config/aarch64/iterators.md (JUST_TI): New.
9892 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9893 strong_zero_p for aarch64_track_speculation; unify some code paths;
9894 use aarch64_gen_compare_reg instead of open-coding.
9896 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9897 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9898 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9899 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9900 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9901 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9902 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9903 (atomic_<atomic_op><ALLI>): Likewise.
9904 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9905 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9906 * doc/invoke.texi: Document -moutline-atomics.
9908 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9910 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9911 trivial predicate for condition branch.
9912 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9914 (compute_bb_predicates): Update predicate based on post-dominating
9916 (analyze_function_body): Calculate post-dominating information.
9918 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9920 * tree-vectorizer.h (vectorizable_condition): Take an int
9921 reduction index instead of a boolean flag.
9922 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9923 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9924 reductions if the reduction accumulator is the "then" rather
9925 than the "else" value.
9926 (vect_analyze_stmt): Update call accordingly.
9927 (vect_transform_stmt): Likewise.
9928 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9929 asserting that the index is > 0.
9931 2019-09-19 Martin Liska <mliska@suse.cz>
9933 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9934 (sort_congruence_classes_by_decl_uid): Likewise.
9935 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9937 (sem_item_optimizer::merge_classes): Likewise.
9939 2019-09-19 Richard Biener <rguenther@suse.de>
9941 PR tree-optimization/91812
9942 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9945 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9947 * defaults.h (TARGET_UNIT): New macro.
9948 (target_unit): New type.
9949 * rtl.h (native_encode_rtx, native_decode_rtx)
9950 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9951 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9952 * rtlanal.c (subreg_lsb_1): Delete.
9953 (subreg_size_lsb): New function.
9954 * simplify-rtx.c: Include rtx-vector-builder.h
9955 (simplify_immed_subreg): Delete.
9956 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9957 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9959 (simplify_subreg): Use them.
9960 (test_vector_subregs_modes, test_vector_subregs_repeating)
9961 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9962 (test_vector_subregs): New functions.
9963 (test_vector_ops): Call test_vector_subregs for integer vector
9964 modes with at least 2 elements.
9966 2019-09-19 Richard Biener <rguenther@suse.de>
9968 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9969 LOOP_VINFO_OPERANDS_SWAPPED.
9970 (parloops_is_simple_reduction): Likewise.
9971 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9972 initialize operands_swapped.
9973 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9974 (vect_is_slp_reduction): Do not swap operands.
9975 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9976 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9978 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9981 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9982 Add avx_partial_xmm_update.
9984 2019-09-18 Jim Wilson <jimw@sifive.com>
9987 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9988 (riscv_move_integer): Likewise.
9989 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9990 riscv_move_integer arg.
9991 (riscv_legitimize_move): Likewise.
9992 (riscv_force_temporary): New parameter in_splitter. Don't call
9994 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9996 (riscv_add_offset): Likewise.
9997 (riscv_split_symbol): New parameter in_splitter. Pass to
9998 riscv_force_temporary.
9999 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10001 (riscv_move_integer): New parameter in_splitter. New local
10002 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10004 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10005 riscv_split_symbol, and riscv_force_temporary args.
10006 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10007 riscv_move_integer arg.
10008 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10010 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10013 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10014 hard register store cost to 6.
10016 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10019 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10020 pseudo register store cost from 3 to 6 to make it the same as
10023 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10026 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10027 (one_cmpldi2): Likewise.
10028 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10029 of the constant parts is simple.
10030 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10031 (logical_op): Add new code attribute.
10032 (logical_OP): Likewise.
10033 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10034 (arm_iordi_operand): Add predicate.
10035 (arm_xordi_operand): Add predicate.
10037 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10039 * config/arm/arm.md (maddsidi4): Remove expander.
10040 (mulsidi3adddi): Remove pattern.
10041 (mulsidi3adddi_v6): Likewise.
10042 (mulsidi3_nov6): Likewise.
10043 (mulsidi3_v6): Likewise.
10044 (umulsidi3): Remove expander.
10045 (umulsidi3_nov6): Remove pattern.
10046 (umulsidi3_v6): Likewise.
10047 (umulsidi3adddi): Likewise.
10048 (umulsidi3adddi_v6): Likewise.
10049 (<Us>mulsidi3): Add combined expander.
10050 (<Us>maddsidi4): Likewise.
10051 (<US>mull): Add combined umull and smull pattern.
10052 (<US>mlal): Likewise.
10053 * config/arm/iterators.md (Us): Add new iterator.
10055 2019-09-18 Richard Biener <rguenther@suse.de>
10057 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10059 (vectorize_fold_left_reduction): Remove assert.
10060 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10061 operand in position 2. Remove assert.
10063 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10065 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10066 (smulsi3_highpart_nov6): Remove pattern.
10067 (smulsi3_highpart_v6): Likewise.
10068 (umulsi3_highpart): Likewise.
10069 (umulsi3_highpart_nov6): Likewise.
10070 (umulsi3_highpart_v6): Likewise.
10071 (<US>mull_high): Add new combined multiply pattern.
10073 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10075 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10076 (arm_mulsi3_v6): Likewise.
10077 (mulsi3addsi_v6): Likewise.
10078 (mulsi3subsi): Likewise.
10079 (mul): Add new multiply pattern.
10083 2019-09-18 Richard Biener <rguenther@suse.de>
10085 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10086 (parloops_valid_reduction_input_p): Copy from
10087 valid_reduction_input_p.
10088 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10089 (parloops_needs_fold_left_reduction_p): Copy from
10090 needs_fold_left_reduction_p.
10091 (parloops_is_simple_reduction): Copy from
10092 vect_is_simple_reduction.
10093 (parloops_force_simple_reduction): Copy from
10094 vect_force_simple_reduction.
10095 (gather_scalar_reductions): Adjust.
10096 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10097 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10099 2019-09-18 Richard Biener <rguenther@suse.de>
10101 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10102 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10104 (vect_create_epilog_for_reduction): Remove dead code.
10106 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10108 * varasm.c (assemble_real): Generate canonical const_ints.
10110 2019-09-18 Richard Biener <rguenther@suse.de>
10113 * lto-streamer-in.c (input_eh_regions): Move EH init to
10114 lto_materialize_function.
10115 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10118 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10120 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10123 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10125 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10126 of checking specifically for INTEGER_CST.
10128 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10130 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10131 sizes instead of uhwi sizes.
10133 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10135 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10136 (add_const_value_attribute): Handle CONST_POLY_INT.
10138 2019-09-18 Martin Liska <mliska@suse.cz>
10140 * dbgcnt.def (store_merging): New counter.
10141 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10142 Use it in store merging.
10144 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10146 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10148 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10149 * config/arm/arm.c (arm_sched_variable_issue): New function.
10150 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10152 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10154 * config/arm/types.md (no_reservation): New reservation.
10155 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10157 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10158 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10159 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10160 * config/arm/arm1020e.md (1020alu_op): Likewise.
10161 * config/arm/arm1026ejs.md (alu_op): Likewise.
10162 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10163 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10164 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10165 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10166 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10167 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10168 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10169 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10170 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10171 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10172 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10173 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10174 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10175 * config/arm/fa526.md (526_alu_op): Likewise.
10176 * config/arm/fa606te.md (606te_alu_op): Likewise.
10177 * config/arm/fa626te.md (626te_alu_op): Likewise.
10178 * config/arm/fa726te.md (726te_alu_op): Likewise.
10179 * config/arm/xgene1.md (xgene1_nop): Likewise.
10181 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10183 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10184 "no_insn" to "branch".
10186 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10188 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10190 2019-09-17 Richard Biener <rguenther@suse.de>
10193 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10194 was missing generate locations only once.
10196 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
10199 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
10201 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
10202 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
10203 for switch default case using range analysis information.
10205 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
10208 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
10209 mode attributed is supported by FDPIC.
10211 2019-09-17 Richard Biener <rguenther@suse.de>
10213 PR tree-optimization/91790
10214 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
10215 use the correct DR for setting up realignment.
10217 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10220 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
10221 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
10222 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
10223 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
10225 2019-09-16 Jason Merrill <jason@redhat.com>
10227 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
10229 2019-09-16 Martin Liska <mliska@suse.cz>
10231 * gimple-fold.c (or_comparisons_1): Remove rules moved
10233 * match.pd: ... here.
10235 2019-09-16 Martin Liska <mliska@suse.cz>
10237 * gimple-fold.c (or_comparisons_1): Remove rules
10239 * match.pd: ... here.
10241 2019-09-16 Martin Liska <mliska@suse.cz>
10243 * genmatch.c (dt_node::append_simplify): Do not print
10244 warning when we have duplicate patterns belonging
10245 to a same simplify rule.
10246 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
10247 (maybe_fold_comparisons_from_match_pd): Handle
10248 tcc_comparison as a results.
10249 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
10251 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10252 Qi Feng <ffengqi@linux.ibm.com>
10254 PR middle-end/88784
10255 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
10256 (x > y && x == XXX_MIN): Optimize into 'false'.
10257 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
10258 (x < y && x != XXX_MAX): Optimize into 'x < y'.
10259 (x < y && x == XXX_MAX): Optimize into 'false'.
10260 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
10261 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
10262 (x <= y || x != XXX_MIN): Optimize into 'true'.
10263 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
10264 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
10265 (x >= y || x != XXX_MAX): Optimize into 'true'.
10266 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
10268 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10269 Martin Liska <mliska@suse.cz>
10271 * gimple-fold.c (and_comparisons_1): Add type as first
10273 (and_var_with_comparison): Likewise.
10274 (and_var_with_comparison_1): Likewise.
10275 (or_comparisons_1): Likewise.
10276 (or_var_with_comparison): Likewise.
10277 (or_var_with_comparison_1): Likewise.
10278 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
10279 (maybe_fold_or_comparisons): Likewise.
10280 (maybe_fold_comparisons_from_match_pd): New.
10281 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
10282 (maybe_fold_or_comparisons): Likewise.
10283 * gimple.c (gimple_size): Make it public and add num_ops argument.
10284 (gimple_init): New function.
10285 (gimple_alloc): Call gimple_init.
10286 * gimple.h (gimple_size): New.
10287 (gimple_init): Likewise.
10288 * tree-if-conv.c (fold_or_predicates): Pass type.
10289 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10290 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
10291 (optimize_vec_cond_expr): Likewise.
10292 (ovce_extract_ops): Return type of conditional expression.
10293 * tree-ssanames.c (init_ssa_name_imm_use): New.
10294 (make_ssa_name_fn): Use init_ssa_name_imm_use.
10295 * tree-ssanames.h (init_ssa_name_imm_use): New.
10297 2019-09-16 Richard Biener <rguenther@suse.de>
10299 PR tree-optimization/91756
10300 PR tree-optimization/87132
10301 * tree-ssa-alias.h (enum translate_flags): New.
10302 (get_continuation_for_phi): Use it instead of simple bool flag.
10303 (walk_non_aliased_vuses): Likewise.
10304 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10305 (get_continuation_for_phi): When looking across backedges only
10306 disallow valueization.
10307 (walk_non_aliased_vuses): Adjust.
10308 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
10311 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
10313 PR middle-end/80791
10314 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
10315 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10316 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10317 * target.def (have_count_reg_decr_p): New hook.
10318 (doloop_cost_for_generic): Likewise.
10319 (doloop_cost_for_address): Likewise.
10320 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
10321 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10322 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10323 * doc/tm.texi: Regenerate.
10324 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
10326 (record_group): Init doloop_p.
10327 (add_candidate_1): Add optional argument doloop, change the handlings
10329 (add_candidate): Likewise.
10330 (generic_predict_doloop_p): Update attribute.
10331 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
10332 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
10333 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
10335 (get_computation_cost): Update for doloop IV cand extra cost.
10336 (determine_group_iv_cost_cond): Update for doloop IV cand.
10337 (determine_iv_cost): Likewise.
10338 (ivopts_estimate_reg_pressure): Likewise.
10339 (may_eliminate_iv): Update handlings for doloop IV cand.
10340 (add_iv_candidate_for_doloop): New function.
10341 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
10342 (iv_ca_set_no_cp): Update for doloop IV cand.
10343 (iv_ca_set_cp): Likewise.
10344 (iv_ca_dump): Dump register cost.
10345 (find_doloop_use): New function.
10346 (analyze_and_mark_doloop_use): Likewise.
10347 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
10349 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10351 PR middle-end/91708
10352 * cse.c (cse_insn): Do not replace anything with a
10355 2019-09-13 Ian Lance Taylor <iant@golang.org>
10357 * doc/invoke.texi (Optimize Options): Fix typo.
10359 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
10361 PR tree-optimization/89386
10362 * config/i386/sse.md (smulhrs<mode>3): New expander.
10363 (smulhrsv4hi3): Ditto.
10365 2019-09-12 Richard Biener <rguenther@suse.de>
10367 PR tree-optimization/91750
10368 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10369 in the type of the evolution.
10371 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10373 PR tree-optimization/89386
10374 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10375 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10376 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10377 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10378 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10379 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10380 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10381 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10382 (su, r): Handle the unspecs above.
10383 (bt): New int attribute.
10384 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10385 * internal-fn.c (first_commutative_argument): Commutativity info for
10387 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10388 (umulhrs_optab): New optabs.
10389 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10390 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10391 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10393 (vect_vect_recog_func_ptrs): Add it.
10395 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10397 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10400 2019-09-11 Nathan Sidwell <nathan@acm.org>
10402 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10403 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10405 2019-09-11 Richard Biener <rguenther@suse.de>
10407 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10408 * lto-wrapper.c (merge_and_complain): Pick up -g.
10409 (append_compiler_options): Likewise.
10410 (run_gcc): Re-instantiate handling -g0 at link-time.
10411 * doc/invoke.texi (flto): Document debug info generation.
10413 2019-09-11 Richard Biener <rguenther@suse.de>
10415 PR tree-optimization/90387
10416 * vr-values.c (vr_values::extract_range_basic): After inlining
10417 simplify non-constant __builtin_constant_p to false.
10419 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
10421 PR rtl-optimization/89795
10422 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
10423 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
10425 2019-09-11 Jakub Jelinek <jakub@redhat.com>
10427 PR tree-optimization/91723
10428 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
10429 instead of pointer equality when checking if argument vectypes are
10432 PR middle-end/91725
10433 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
10434 of get_nonzero_bits, only call it for integral types.
10436 2019-09-11 Richard Biener <rguenther@suse.de>
10439 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10441 * match.pd: Add flag_unsafe_math_optimizations check
10442 before deciding on the widest type in a binary math operation.
10444 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10446 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
10447 and CALL_REALLY_USED_REGISTERS must be defined, and that
10448 CALL_REALLY_USED_REGISTERS is preferred.
10449 * doc/tm.texi: Regenerate.
10450 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
10451 (call_really_used_regs): Likewise.
10452 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
10453 CALL_REALLY_USED_REGISTERS are defined.
10454 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
10455 initial value if defined.
10456 (initial_call_really_used_regs): Delete.
10457 (saved_call_really_used_regs): Likewise.
10458 (CALL_REALLY_USED_REGNO_P): Likewise.
10459 (init_reg_sets): Remove handling of call_really_used_regs.
10460 (save_register_info, restore_register_info, globalize_reg): Likewise.
10461 (init_reg_sets_1): Likewise. Use call_used_regs instead of
10462 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
10463 outside operand_reg_set.
10464 (fix_register): Don't change call_used_regs if
10465 CALL_REALLY_USED_REGISTERS is defined.
10466 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
10467 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
10468 instead of call_really_used_regs.
10469 (csky_conditional_register_usage): Remove the old handling of
10470 call_used_regs and change the handling of call_really_used_regs
10471 to use call_used_regs instead.
10472 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
10473 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
10474 making a register fixed.
10475 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
10476 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
10477 instead of call_really_used_regs.
10478 (m32r_conditional_register_usage): Don't set call_used_regs when
10479 making a register fixed.
10480 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
10481 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
10482 instead of call_really_used_regs.
10483 (mips_interrupt_extra_call_saved_reg_p): Likewise.
10484 (mips_cfun_call_saved_reg_p): Likewise.
10485 (mips_swap_registers): Remove the old handling of call_used_regs
10486 and change the handling of call_really_used_regs to use call_used_regs
10488 (mips_conditional_register_usage): Likewise.
10489 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
10490 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
10491 instead of call_really_used_regs.
10492 (mn10300_get_live_callee_saved_regs): Likewise.
10493 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
10494 (mn10300_conditional_register_usage): Don't set call_used_regs when
10495 making a register fixed.
10496 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
10497 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10498 Remove the old handling of call_used_regs and change the handling
10499 of call_really_used_regs to use call_used_regs instead.
10500 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
10501 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
10502 instead of call_really_used_regs.
10503 (s390_register_info_gprtofpr, s390_register_info): Likewise.
10504 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
10505 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
10506 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
10507 (s390_conditional_register_usage): Remove the old handling of
10508 call_used_regs and change the handling of call_really_used_regs
10509 to use call_used_regs instead.
10510 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
10511 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
10512 (sh_fix_range, reg_unused_after): Likewise.
10513 (sh_conditional_register_usage): Remove the old handling of
10514 call_used_regs and change the handling of call_really_used_regs
10515 to use call_used_regs instead.
10516 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
10517 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
10518 call_used_regs when making a register fixed.
10519 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
10520 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
10521 call_used_regs when making a register fixed.
10522 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
10523 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
10524 set call_used_regs when making a register fixed.
10525 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
10526 * config/visium/visium.c (visium_conditional_register_usage): Remove
10527 the old handling of call_used_regs and change the handling of
10528 call_really_used_regs to use call_used_regs instead.
10530 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10532 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
10533 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
10534 * reginfo.c (call_used_regs): New macro.
10536 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10538 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
10540 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10541 (bpf_expand_epilogue): Likewise.
10542 * config/c6x/c6x.c (c6x_save_reg): Likewise.
10543 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10544 (ft32_expand_epilogue): Likewise.
10545 * config/i386/i386.c (ix86_save_reg): Likewise.
10546 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
10547 (moxie_expand_epilogue): Likewise.
10548 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10549 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10550 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10552 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10554 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10555 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10556 instead of testing call_used_regs directly.
10557 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10558 (aarch64_components_for_bb): Likewise.
10559 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10560 * config/arc/arc.c (arc_must_save_register): Likewise.
10561 (arc_epilogue_uses): Likewise.
10562 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10563 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10564 (arm_compute_save_reg0_reg12_mask): Likewise.
10565 (arm_compute_save_core_reg_mask): Likewise.
10566 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10567 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10568 (cmse_nonsecure_entry_clear_before_return): Likewise.
10569 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10570 (arm_expand_epilogue): Likewise.
10571 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10572 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10573 (_reg_unused_after): Likewise.
10574 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10575 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10576 (add_to_reg, hwloop_optimize): Likewise.
10577 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10578 (bpf_expand_epilogue): Likewise.
10579 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10580 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10581 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10582 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10583 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10584 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10585 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10586 * config/frv/frv.c (frv_stack_info): Likewise.
10587 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10588 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10589 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10590 (move_callee_saved_registers): Likewise.
10591 * config/h8300/h8300.c (byte_reg): Likewise.
10592 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10593 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10594 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10595 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10596 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10597 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10598 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10599 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10600 * config/m32c/m32c.c (need_to_save): Likewise.
10601 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10602 * config/mcore/mcore.c (calc_live_regs): Likewise.
10603 * config/microblaze/microblaze.c (microblaze_must_save_register):
10605 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10606 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10607 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10608 (mmix_expand_epilogue): Likewise.
10609 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10610 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10611 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10612 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10613 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10614 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10615 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10616 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10617 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10618 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10619 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10620 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10621 * config/rl78/rl78.c (need_to_save): Likewise.
10622 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10623 (rs6000_stack_info, generate_set_vrsave): Likewise.
10624 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10625 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10626 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10627 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10628 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10629 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10630 (save_local_or_in_reg_p): Likewise.
10631 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10632 (xstormy16_epilogue_uses): Likewise.
10633 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10634 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10635 * config/v850/v850.c (compute_register_save_size): Likewise.
10636 * config/vax/vax.c (vax_expand_prologue): Likewise.
10637 * config/visium/visium.c (visium_save_reg_p): Likewise.
10638 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10639 * cselib.c (cselib_process_insn): Likewise.
10640 * df-scan.c (df_get_entry_block_def_set): Likewise.
10641 * function.c (aggregate_value_p): Likewise.
10642 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10643 * ira-lives.c (process_bb_node_lives): Likewise.
10644 * ira.c (do_reload): Likewise.
10645 * lra-lives.c (process_bb_lives): Likewise.
10646 * lra-remat.c (lra_remat): Likewise.
10647 * lra.c (lra): Likewise.
10648 * postreload.c (reload_combine_recognize_pattern): Likewise.
10649 (reload_cse_move2add): Likewise.
10650 * recog.c (peep2_find_free_register): Likewise.
10651 * regrename.c (check_new_reg_p): Likewise.
10652 * reload.c (find_equiv_reg): Likewise.
10653 * reload1.c (reload, find_reg): Likewise.
10654 * sel-sched.c (init_hard_regs_data): Likewise.
10656 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10658 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10659 regs_invalidated_by_call & ~fixed_reg_set instead of
10660 call_used_or_fixed_regs & ~fixed_reg_set.
10661 * config/sh/sh.c (output_stack_adjust): Likewise.
10663 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10665 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10666 (call_used_reg_set): Delete.
10667 (call_used_or_fixed_regs): New macro.
10668 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10669 of call_used_reg_set.
10670 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10671 instead of call_used_regs.
10672 (save_call_clobbered_regs): Likewise.
10673 * cfgcleanup.c (old_insns_match_p): Likewise.
10674 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10675 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10677 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10678 * config/sh/sh.c (output_stack_adjust): Likewise.
10679 * final.c (collect_fn_hard_reg_usage): Likewise.
10680 * ira-build.c (ira_build): Likewise.
10681 * ira-color.c (calculate_saved_nregs): Likewise.
10682 (allocno_reload_assign, calculate_spill_cost): Likewise.
10683 * ira-conflicts.c (ira_build_conflicts): Likewise.
10684 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10685 * ira-lives.c (process_bb_node_lives): Likewise.
10686 * ira.c (setup_reg_renumber): Likewise.
10687 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10688 * lra-constraints.c (need_for_call_save_p): Likewise.
10689 (need_for_split_p, inherit_in_ebb): Likewise.
10690 * lra-lives.c (process_bb_lives): Likewise.
10691 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10692 * postreload.c (reload_combine): Likewise.
10693 * regrename.c (find_rename_reg): Likewise.
10694 * reload1.c (reload_as_needed): Likewise.
10695 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10696 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10697 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10699 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10701 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10702 (no_caller_save_reg_set): Delete.
10703 * caller-save.c (init_caller_save): Don't initialize it.
10704 * ira-conflicts.c (ira_build_conflicts): Calculate
10705 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10707 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10709 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10710 (target_hard_regs::x_savable_regs): New field.
10711 (call_fixed_reg_set): Delete.
10712 (savable_regs): New macro,
10713 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10714 (init_reg_sets_1): Likewise. Initialize savable_regs.
10715 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10716 for all registers. Set savable_regs instead of call_fixed_reg_set.
10717 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10718 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10719 * config/sh/sh.c (output_stack_adjust): Likewise.
10721 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10723 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10724 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10725 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10727 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10729 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10730 * rtlanal.c (get_call_rtx_from): Likewise.
10731 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10732 than the pattern to get_call_rtx_from.
10733 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10734 an rtx_insn * instead of an rtx.
10735 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10737 2019-09-10 Martin Liska <mliska@suse.cz>
10739 * common.opt: Use newly added WarnRemoved.
10740 * config/aarch64/aarch64.opt: Likewise.
10741 * config/arm/arm.opt: Likewise.
10742 * config/i386/i386.opt: Likewise.
10743 * config/ia64/ia64.opt: Likewise.
10744 * config/rs6000/rs6000.opt: Likewise.
10745 * doc/options.texi: Document WarnRemoved properly.
10746 * dwarf2out.c (gen_producer_string): Handle renamed
10747 OPT_SPECIAL_warn_removed.
10748 * lto-opts.c (lto_write_options): Likewise.
10749 * lto-wrapper.c (merge_and_complain): Likewise.
10750 * opts-common.c (decode_cmdline_option): Likewise.
10751 (prune_options): Likewise.
10752 (read_cmdline_option): Likewise.
10753 (control_warning_option): Likewise.
10754 * opts.c (print_filtered_help): Likewise.
10755 * optc-gen.awk: Parse for WarnRemoved and make usage
10756 of Deprecated an error.
10757 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10759 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10761 * doc/install.texi: Fix syntax for html generation.
10763 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10765 PR middle-end/91680
10766 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10767 the shift type to type.
10769 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10771 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10773 (stack_protect_combined_test_insn): Likewise.
10775 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10776 Mickaël Guêné <mickael.guene@st.com>
10778 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10779 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10780 (load_tp_soft_fdpic): New pattern.
10781 (load_tp_soft): Disable in FDPIC mode.
10783 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10784 Mickaël Guêné <mickael.guene@st.com>
10786 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10787 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10788 (arm_call_tls_get_addr): Add FDPIC support.
10789 (legitimize_tls_address): Likewise.
10790 (arm_emit_tls_decoration): Likewise.
10792 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10793 Mickaël Guêné <mickael.guene@st.com>
10795 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10797 (arm_trampoline_init): Likewise.
10798 (arm_trampoline_adjust_address): Likewise.
10799 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10801 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10802 Mickaël Guêné <mickael.guene@st.com>
10804 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10805 (legitimize_pic_address): Enforce binding rules on function
10806 pointers in FDPIC mode.
10807 (arm_assemble_integer): Likewise.
10809 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10810 Mickaël Guêné <mickael.guene@st.com>
10812 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10813 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10816 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10817 Mickaël Guêné <mickael.guene@st.com>
10819 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10822 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10823 Mickaël Guêné <mickael.guene@st.com>
10825 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10827 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10829 * config/arm/arm.c (arm_option_override): Define pic register to
10831 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10832 have no decl or go through PLT.
10833 (calculate_pic_address_constant): New function.
10834 (legitimize_pic_address): Call calculate_pic_address_constant.
10835 (arm_load_pic_register): Handle TARGET_FDPIC.
10836 (arm_is_segment_info_known): New function.
10837 (arm_pic_static_addr): Add support for FDPIC.
10838 (arm_load_function_descriptor): New function.
10839 (arm_emit_call_insn): Add support for FDPIC.
10840 (arm_assemble_integer): Add support for FDPIC.
10841 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10842 Define. (FDPIC_REGNUM): New define.
10843 * config/arm/arm.md (call): Add support for FDPIC.
10844 (call_value): Likewise.
10845 (restore_pic_register_after_call): New pattern.
10846 (untyped_call): Disable if FDPIC.
10847 (untyped_return): Likewise.
10848 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10850 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10851 Mickaël Guêné <mickael.guene@st.com>
10853 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10854 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10855 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10856 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10857 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10858 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10859 * config/arm/uclinuxfdpiceabi.h: New file.
10861 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10863 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10865 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10866 Mickaël Guêné <mickael.guene@st.com>
10868 * config/arm/arm.opt: Add -mfdpic option.
10869 * doc/invoke.texi: Add documentation for -mfdpic.
10871 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10873 * expmed.c (extract_bit_field): Update function comment
10875 * expr.c (expand_expr_real): Update function comment
10877 (expand_misaligned_mem_ref): New helper function.
10878 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10879 Remove duplicate assignment to "base" at case MEM_REF.
10880 Remove a shadowed variable "unsignedp" at case VCE.
10882 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10884 * regset.h (regs_invalidated_by_call_regset): Delete.
10885 (fixed_reg_set_regset): Likewise.
10886 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10887 (fixed_reg_set_regset, persistent_obstack): Likewise.
10888 (init_reg_sets_1, globalize_reg): Update accordingly.
10889 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10890 instead of a bitmap.
10891 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10892 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10893 instead of regs_invalidated_by_call_regset.
10894 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10895 * df-scan.c (df_scan_start_dump): Likewise.
10896 * dse.c (copy_fixed_regs): Likewise.
10897 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10899 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10901 * array-traits.h: New file.
10902 * coretypes.h (array_traits, bitmap_view): New types.
10903 * bitmap.h: Include "array-traits.h"
10904 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10905 (base_bitmap_view, bitmap_view): New classes.
10906 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10907 * hard-reg-set.h: Include array-traits.h.
10908 (array_traits<HARD_REG_SET>): New struct.
10909 * regset.h (IOR_REG_SET_HRS): New macro.
10910 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10911 rather than iterating over each hard register.
10912 * sched-deps.c (sched_analyze_insn): Likewise.
10913 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10915 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10917 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10918 instead of a HARD_REG_SET *.
10919 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10920 (ira_build): Update call accordingly.
10921 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10923 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10925 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10926 (HARD_REG_SET::operator!=): Likewise.
10927 (hard_reg_set_equal_p): Delete.
10928 * cfgcleanup.c (old_insns_match_p): Use == instead of
10929 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10930 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10931 (add_allocno_hard_regs_to_forest): Likewise.
10932 (setup_allocno_available_regs_num): Likewise.
10933 * ira.c (setup_pressure_classes): Likewise.
10934 (setup_allocno_and_important_classes): Likewise.
10935 (setup_reg_class_relations): Likewise.
10936 * lra-lives.c (process_bb_lives): Likewise.
10937 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10939 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10941 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10942 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10943 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10944 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10946 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10947 * ira.c (setup_reg_renumber): Likewise.
10948 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10949 * regrename.c (regrename_find_superclass): Likewise.
10950 * reload1.c (find_reg): Likewise.
10952 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10954 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10955 * caller-save.c (setup_save_areas): Use "&~" instead of
10956 AND_COMPL_HARD_REG_SET.
10957 (save_call_clobbered_regs): Likewise.
10958 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10960 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10961 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10962 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10963 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10964 (mips_conditional_register_usage): Likewise.
10965 * config/sh/sh.c (output_stack_adjust): Likewise.
10966 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10967 (setup_profitable_hard_regs): Likewise.
10968 (get_conflict_and_start_profitable_regs): Likewise.
10969 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10970 (ira_build_conflicts): Likewise.
10971 * ira-costs.c (restrict_cost_classes): Likewise.
10972 (setup_regno_cost_classes_by_aclass): Likewise.
10973 * ira-lives.c (process_bb_node_lives): Likewise.
10974 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10975 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10976 (setup_allocno_and_important_classes, setup_class_translate_array)
10977 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10979 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10980 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10981 (process_alt_operands, inherit_in_ebb): Likewise.
10982 * lra-eliminations.c (update_reg_eliminate): Likewise.
10983 * lra-lives.c (process_bb_lives): Likewise.
10984 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10985 * resource.c (find_dead_or_set_registers): Likewise.
10986 (mark_target_live_regs): Likewise.
10987 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10988 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10989 (implicit_clobber_conflict_p): Likewise.
10990 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10991 (try_shrink_wrapping): Likewise.
10993 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10995 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10996 (HARD_REG_SET::operator|=): Likewise.
10997 (IOR_HARD_REG_SET): Delete.
10998 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11000 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11001 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11002 * final.c (collect_fn_hard_reg_usage): Likewise.
11003 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11004 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11005 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11006 (propagate_some_info_from_allocno): Likewise.
11007 (copy_info_to_removed_store_destinations): Likewise.
11008 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11009 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11010 (fast_allocation): Likewise.
11011 * ira-conflicts.c (ira_build_conflicts): Likewise.
11012 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11013 (process_bb_node_lives): Likewise.
11014 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11015 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11016 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11017 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11018 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11019 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11020 (process_bb_lives): Likewise.
11021 * lra-spills.c (assign_spill_hard_regs): Likewise.
11022 * postreload.c (reload_combine): Likewise.
11023 * reginfo.c (init_reg_sets_1): Likewise.
11024 * regrename.c (merge_overlapping_regs, find_rename_reg)
11025 (merge_chains): Likewise.
11026 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11027 (find_reload_regs, finish_spills, choose_reload_regs_init)
11028 (emit_reload_insns): Likewise.
11029 * reorg.c (redundant_insn): Likewise.
11030 * resource.c (find_dead_or_set_registers, mark_set_resources)
11031 (mark_target_live_regs): Likewise.
11032 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11033 * sched-deps.c (sched_analyze_insn): Likewise.
11034 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11035 (find_best_reg_for_expr): Likewise.
11036 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11038 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11040 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11041 (HARD_REG_SET::operator&): Likewise.
11042 (AND_HARD_REG_SET): Delete.
11043 * caller-save.c (setup_save_areas): Use "&" instead of
11045 (save_call_clobbered_regs): Likewise.
11046 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11047 * config/m32c/m32c.c (reduce_class): Likewise.
11048 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11049 * final.c (get_call_reg_set_usage): Likewise.
11050 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11051 (setup_left_conflict_sizes_p): Likewise.
11052 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11053 (ira_build_conflicts): Likewise.
11054 * ira-costs.c (restrict_cost_classes): Likewise.
11055 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11056 (setup_reg_class_relations): Likewise.
11057 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11058 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11059 * resource.c (find_dead_or_set_registers): Likewise.
11060 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11062 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11064 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11065 (COMPL_HARD_REG_SET): Delete.
11066 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11067 of COMPL_HARD_REG_SET.
11068 (try_rename_operands): Likewise.
11069 * config/sh/sh.c (push_regs): Likewise.
11070 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11071 * lra-constraints.c (contains_reg_p): Likewise.
11072 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11074 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11076 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11077 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11078 of COPY_HARD_REG_SET.
11079 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11080 (epiphany_conditional_register_usage): Likewise.
11081 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11082 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11083 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11084 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11085 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11086 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11087 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11088 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11089 * config/sh/sh.c (output_stack_adjust): Likewise.
11090 * final.c (collect_fn_hard_reg_usage): Likewise.
11091 (get_call_reg_set_usage): Likewise.
11092 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11093 (ira_flattening): Likewise.
11094 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11095 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11096 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11097 (ira_reassign_pseudos): Likewise.
11098 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11099 (ira_build_conflicts): Likewise.
11100 * ira-costs.c (restrict_cost_classes): Likewise.
11101 (setup_regno_cost_classes_by_aclass): Likewise.
11102 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11103 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11104 (setup_stack_reg_pressure_class, setup_pressure_classes)
11105 (setup_allocno_and_important_classes, setup_class_translate_array)
11106 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11107 (ira_setup_eliminable_regset): Likewise.
11108 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11109 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11110 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11111 (process_alt_operands, inherit_in_ebb): Likewise.
11112 * lra-lives.c (process_bb_lives): Likewise.
11113 * lra-spills.c (assign_spill_hard_regs): Likewise.
11114 * lra.c (lra): Likewise.
11115 * mode-switching.c (new_seginfo): Likewise.
11116 * postreload.c (reload_combine): Likewise.
11117 * reg-stack.c (straighten_stack): Likewise.
11118 * reginfo.c (save_register_info, restore_register_info): Likewise.
11119 (init_reg_sets_1, record_subregs_of_mode): Likewise
11120 * regrename.c (create_new_chain, rename_chains): Likewise.
11121 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11122 (find_reload_regs): Likewise.
11123 * resource.c (find_dead_or_set_registers): Likewise.
11124 (mark_target_live_regs): Likewise.
11125 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11127 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11129 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11130 (note_pattern_stores): Declare.
11131 (note_stores): Take an rtx_insn *.
11132 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11133 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11134 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11135 (note_stores): Take an rtx_insn * as argument and process
11136 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11137 (note_pattern_stores): ...this.
11138 (find_first_parameter_load): Pass the insn rather than
11139 its pattern to note_stores.
11140 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11141 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11142 (insert_one_insn): Likewise.
11143 * combine.c (combine_instructions): Likewise.
11144 (likely_spilled_retval_p): Likewise.
11145 (try_combine): Use note_pattern_stores instead of note_stores.
11146 (record_dead_and_set_regs): Pass the insn rather than its pattern
11148 (reg_dead_at_p): Likewise.
11149 * config/bfin/bfin.c (workaround_speculation): Likewise.
11150 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11151 rather than an rtx.
11152 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11153 instead of note_stores.
11154 (frv_optimize_membar_local): Pass the insn rather than its pattern
11156 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11157 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11158 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11159 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11160 (mips_reorg_process_insns): Likewise.
11161 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11162 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11164 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11165 its pattern to note_stores.
11166 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11168 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11169 the insn to note_stores.
11170 (prescan_insns_for_dce): Update call accordingly.
11171 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11173 * df-problems.c (can_move_insns_across): Likewise.
11174 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11175 * function.c (assign_parm_setup_reg): Likewise.
11176 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11177 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11178 (single_set_gcse): Likewise.
11179 * ira.c (validate_equiv_mem): Likewise.
11180 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11182 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11183 pattern to note_stores.
11184 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11185 * loop-iv.c (simplify_using_initial_values): Likewise.
11186 * mode-switching.c (optimize_mode_switching): Likewise.
11187 * optabs.c (emit_libcall_block_1): Likewise.
11188 (expand_atomic_compare_and_swap): Likewise.
11189 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11190 (record_opr_changes): Likewise. Remove explicit handling of
11191 CALL_INSN_FUNCTION_USAGE.
11192 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11193 * regcprop.c (kill_clobbered_values): Likewise.
11194 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11196 * regrename.c (build_def_use): Likewise.
11197 * reload1.c (reload): Use note_pattern_stores instead of note_stores
11198 for mark_not_eliminable.
11199 (reload_as_needed): Pass the insn rather than its pattern
11201 (emit_output_reload_insns): Likewise.
11202 * resource.c (mark_target_live_regs): Likewise.
11203 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11204 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
11205 instead of note_stores.
11206 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
11207 its pattern to note_stores.
11208 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
11209 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
11211 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11213 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
11214 than a #define. Use a structure rather than an array as the
11215 fallback definition. Remove special cases for low array sizes.
11216 (const_hard_reg_set): New typedef.
11217 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
11218 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
11219 (hard_reg_set_empty_p): Likewise.
11220 (SET_HARD_REG_BIT): Use a function rather than a macro to
11221 handle the case in which HARD_REG_SET is a structure.
11222 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
11223 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
11224 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
11225 (IOR_COMPL_HARD_REG_SET): Likewise.
11226 (hard_reg_set_iterator::pset): Constify the pointer target.
11227 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
11228 of a "const HARD_REG_SET". Update the handling of non-integer
11230 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
11231 * reload.h: Likewise.
11232 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
11233 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
11234 of a "const HARD_REG_SET".
11235 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
11236 (range_in_hard_reg_set_p): Likewise.
11237 * ira-costs.c (restrict_cost_classes): Likewise.
11238 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
11239 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11240 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
11241 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
11242 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
11243 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
11244 take an unsigned int and open-code the HARD_REG_SET operations.
11246 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11248 * Makefile.in (OBJS): Remove bt-load.o.
11249 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
11250 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11251 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
11252 document that the option no longer does anything.
11253 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11254 * target.def (branch_target_register_class): Delete.
11255 (branch_target_register_callee_saved): Likewise.
11256 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11257 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
11258 * doc/tm.texi: Regenerate.
11259 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
11260 (make_pass_branch_target_load_optimize2): Likewise.
11261 * passes.def (pass_branch_target_load_optimize1): Likewise.
11262 (pass_branch_target_load_optimize2): Likewise.
11263 * targhooks.h (default_branch_target_register_class): Likewise.
11264 * targhooks.c (default_branch_target_register_class): Likewise.
11265 * opt-suggestions.c (test_completion_valid_options): Remove
11266 -fbtr-bb-exclusive from the list of test options.
11267 * bt-load.c: Remove.
11269 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11271 * match.pd: Add flag_unsafe_math_optimizations check
11272 before deciding on the widest type in a binary math operation.
11274 2019-09-09 Martin Liska <mliska@suse.cz>
11276 * config/i386/i386.opt: Update comment of removed
11277 options that are preserved only for backward
11280 2019-09-09 Jakub Jelinek <jakub@redhat.com>
11283 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
11284 instead of __v16qs.
11287 * config/i386/avxintrin.h (__v32qs): New typedef.
11288 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
11289 instead of __v32qi.
11291 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11293 * doc/invoke.texi (Option Summary): Cover eBPF.
11294 (eBPF Options): New section.
11295 * doc/extend.texi (BPF Built-in Functions): Likewise.
11296 (BPF Kernel Helpers): Likewise.
11298 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11300 * config.gcc: Support for bpf-*-* targets.
11301 * common/config/bpf/bpf-common.c: New file.
11302 * config/bpf/t-bpf: Likewise.
11303 * config/bpf/predicates.md: Likewise.
11304 * config/bpf/constraints.md: Likewise.
11305 * config/bpf/bpf.opt: Likewise.
11306 * config/bpf/bpf.md: Likewise.
11307 * config/bpf/bpf.h: Likewise.
11308 * config/bpf/bpf.c: Likewise.
11309 * config/bpf/bpf-protos.h: Likewise.
11310 * config/bpf/bpf-opts.h: Likewise.
11311 * config/bpf/bpf-helpers.h: Likewise.
11312 * config/bpf/bpf-helpers.def: Likewise.
11314 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11316 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11319 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11321 * opt-functions.awk (integer_range_info): Make sure values are in
11322 numeric context before operating with them.
11324 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
11326 * genemit.c (gen_split): Print the filename and line number where the
11327 splitter (or peephole2) was defined, to the dump file.
11329 2019-09-07 Jakub Jelinek <jakub@redhat.com>
11331 PR tree-optimization/91665
11332 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
11333 incompatible with the type of PHI result.
11335 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11338 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
11339 gen_unaligned_storedi for 4-byte aligned addresses.
11341 2019-09-06 Jim Wilson <jimw@sifive.com>
11343 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
11346 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11348 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
11350 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11352 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
11353 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
11355 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
11358 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
11359 cost of SSE->integer and integer->SSE moves from 2 to 6.
11360 (core_cost): Ditto.
11362 2019-09-06 Jakub Jelinek <jakub@redhat.com>
11364 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
11365 before testing TYPE_TRANSPARENT_AGGR.
11366 * calls.c (initialize_argument_information, load_register_parameters):
11369 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11371 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11373 (cmp_ior): Likewise.
11375 2019-09-06 Martin Liska <mliska@suse.cz>
11377 * doc/match-and-simplify.texi: Separate tuples with ;.
11379 2019-09-06 Martin Liska <mliska@suse.cz>
11382 * Makefile.in: Remove tlink.o.
11383 * collect2.c (do_link): New function isolated
11386 * collect2.h (do_tlink): Remove declaration of do_tlink.
11387 * doc/extend.texi: Remove documentation of -frepo.
11388 * doc/invoke.texi: Likewise.
11389 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11392 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11393 Jim Wilson <jimw@sifive.com>
11396 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11397 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11398 paradoxical_subreg_p (operands[0]).
11399 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11400 use as intermediate value.
11402 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11404 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11405 (sync_compare_and_swap<mode>_insn): Likewise.
11407 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11409 PR middle-end/91615
11410 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11411 without movmisalign optab.
11413 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11415 PR middle-end/91001
11416 PR middle-end/91105
11417 PR middle-end/91106
11418 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
11419 types, use type of their first field instead of type of
11420 args[i].tree_value.
11422 2019-09-05 Richard Biener <rguenther@suse.de>
11424 PR rtl-optimization/91656
11425 * postreload-gcse.c (record_last_mem_set_info): Revert addition
11428 2019-09-05 Richard Biener <rguenther@suse.de>
11430 PR middle-end/90501
11431 * tree-inline.c (declare_return_variable): Mark the return
11432 slot as addressable after building an address of it.
11434 2019-09-05 Arnaud Charlet <charlet@adacore.com>
11436 * doc/install.texi: Update and clarify requirements to build GNAT.
11438 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
11440 PR middle-end/91577
11441 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
11442 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
11443 call to be in memory.
11444 (pass_expand::execute): Call discover_nonconstant_array_refs before
11445 setting currently_expanding_to_rtl.
11447 2019-09-04 Caroline Tice <cmtice@google.com>
11449 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
11450 specified together.
11452 2019-09-04 Marek Polacek <polacek@redhat.com>
11454 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
11456 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
11459 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11460 for QI and HImode moves between SSE and general registers.
11462 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11465 * doc/invoke.texi: Document -Wenum-conversion.
11467 2019-09-04 Richard Biener <rguenther@suse.de>
11469 PR rtl-optimization/36262
11470 * postreload-gcse.c: Include intl.h and gcse.h.
11471 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
11472 to avoid linear list walk.
11473 (record_last_mem_set_info): Gate off if not computing transparentness.
11474 (get_bb_avail_insn): If transparentness isn't computed give up
11476 (gcse_after_reload_main): Skip compute_transp and extended PRE
11477 if gcse_or_cprop_is_too_expensive says so.
11479 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11481 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
11483 (msp430_select_section): Handle decls with the "noinit" attribute with
11484 default_elf_select_section.
11485 Handle SECCAT_RODATA_MERGE_* section types with
11486 default_elf_select_section.
11487 Add comments about handling of unsupported section types.
11488 (msp430_section_type_flags): Remove handling of the noinit section.
11490 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11492 * config/msp430/msp430.c (msp430_attr): Remove warnings about
11493 conflicting msp430-specific attributes.
11494 (msp430_section_attr): Likewise.
11495 Add warnings about conflicts with generic "noinit" and "section"
11497 Fix grammar in -mlarge error message.
11498 (msp430_data_attr): Rename to msp430_persist_attr.
11499 Add warnings about conflicts with generic "noinit" and "section"
11501 Add warning for when variable is not initialized.
11502 Chain conditionals which prevent the attribute being added.
11503 (ATTR_EXCL): New helper.
11504 (attr_reent_exclusions): New exclusion table.
11505 (attr_naked_exclusions): Likewise.
11506 (attr_crit_exclusions): Likewise.
11507 (attr_lower_exclusions): Likewise.
11508 (attr_upper_exclusions): Likewise.
11509 (attr_either_exclusions): Likewise.
11510 (attr_persist_exclusions): Likewise.
11511 (msp430_attribute_table): Update with exclusion rules.
11512 (msp430_output_aligned_decl_common): Don't output common symbol if decl
11515 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11517 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
11518 (msp430_handle_generic_attribute): New function.
11519 * doc/tm.texi: Regenerate.
11520 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
11521 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11522 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11523 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
11525 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
11527 PR tree-optimization/91504
11528 * match.pd: Add ((~a & b) ^a) --> (a | b).
11530 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11533 * config/i386/i386-expand.c (split_double_mode): If there is more than
11534 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
11535 already split matching MEM operand instead of calling adjust_address
11538 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
11540 * config.gcc: Obsolete spu target. Remove references to spu.
11541 * configure.ac: Remove references to spu.
11542 * configure: Regenerate.
11543 * config/spu/: Remove directory.
11544 * common/config/spu/: Remove directory.
11546 * doc/extend.texi: Remove references to spu.
11547 * doc/invoke.texi: Likewise.
11548 * doc/md.texi: Likewise.
11549 * doc/sourcebuild.texi: Likewise.
11551 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11553 PR middle-end/91603
11554 PR middle-end/91612
11555 PR middle-end/91613
11556 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11557 and SSA_NAME referring to CONSTANT_P correctly.
11559 2019-09-03 Richard Biener <rguenther@suse.de>
11561 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11562 (vn_nary_op_insert): Likewise.
11563 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11564 (vn_nary_op_lookup): Likewise.
11565 (vn_nary_op_insert): Likewise.
11567 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11569 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11570 (*op0, 1) instead of XEXP (*op1, 0).
11572 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11574 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11575 (aarch64_fjcvtzs): New define_insn.
11576 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11577 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11579 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11580 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11581 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11582 __ARM_FEATURE_JCVT where appropriate.
11583 * config/aarch64/arm_acle.h (__jcvt): Define.
11585 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11587 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11588 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11589 (aarch64_<frintnzs_op><mode>): New define_insn.
11590 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11591 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11592 __ARM_FEATURE_FRINT when appropriate.
11593 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11594 frint32x, frint64z, frint64x.
11595 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11596 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11597 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11598 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11599 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11600 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11601 * config/aarch64/iterators.md (VSFDF): Define.
11602 (FRINTNZX): Likewise.
11603 (frintnzs_op): Likewise.
11605 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11607 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11608 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11610 * config/aarch64/aarch64-tune.md: Regenerated.
11611 * doc/invoke.texi: Document the new processors.
11613 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11615 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11619 (sve2-sm4): Likewise.
11620 (sveaes): Likewise.
11621 (svesha3): Likewise.
11622 (svebitperm): Likewise.
11624 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11625 Richard Biener <rguenther@suse.de>
11627 PR tree-optimization/91597
11628 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11629 BIT_AND_EXPR optimization for pointers, even if both operand
11630 ranges don't include NULL, the result can be NULL.
11632 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11634 PR middle-end/91605
11635 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11636 (non_mem_decl_p): ...this.
11637 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11638 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11639 unconditionally as before.
11641 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11644 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11645 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11646 * tree.def (LTGT_EXPR): Likewise.
11647 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11649 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11652 * fold-const.c (range_check_type): For enumeral and boolean
11653 type, pass 1 to type_for_size langhook instead of
11654 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11655 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11656 (build_range_check): Don't call unsigned_type_for for pointer types.
11657 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11658 range_check_type result.
11660 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11662 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11663 (replace_ref): Do not replace a chain of only two candidates which are
11664 valid memory references.
11666 2019-09-02 Martin Liska <mliska@suse.cz>
11668 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11669 Bail out when we'll end up with the same number of clusters as
11671 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11672 (jump_table_cluster::can_be_handled): Remove the guard
11673 as it's already handled in ::is_enabled. Allocate output
11674 after early bail out.
11676 2019-09-02 Martin Liska <mliska@suse.cz>
11678 PR gcov-profile/91601
11679 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11680 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11681 also negative edges.
11682 (circuit): Handle also negative edges as they can happen
11683 in some situations.
11685 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11688 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11689 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11690 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11692 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11694 PR middle-end/91623
11695 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11696 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11697 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11701 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11702 GIMPLE_ASM TREE_LIST operands.
11704 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11706 * doc/generic.texi (Unary and Binary Expressions): Mark up
11707 an instance of TYPE_MIN.
11709 2019-08-31 Stafford Horne <shorne@gmail.com>
11711 * config/or1k/constraints.md (t): New constraint.
11712 * config/or1k/or1k.h (GOT_REGS): New register class.
11713 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11715 2019-08-30 Jim Wilson <jimw@sifive.com>
11717 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11718 and -fpic and -mplt then disable -msave-restore and warn.
11720 2019-08-30 Martin Sebor <msebor@redhat.com>
11722 PR middle-end/91599
11723 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11724 the statement doesn't have one.
11725 * gimple-pretty-print.c (percent_G_format): Same.
11727 PR middle-end/91584
11728 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11729 before using them to validate MEM_REF offset.
11731 2019-08-30 Marek Polacek <polacek@redhat.com>
11733 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11735 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11737 * config/arm/arm.md (unaligned_loaddi,
11738 unaligned_storedi): New unspec insn patterns.
11739 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11740 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11741 and unaligned_storedi for 4-byte aligned memory.
11742 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11743 4-byte aligned memory.
11745 2019-08-30 Martin Jambor <mjambor@suse.cz>
11747 tree-optimization/91579
11748 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11749 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11751 (arg_needs_copy_p): Removed.
11752 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11754 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11756 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11758 * config/i386/i386-features.c
11759 (general_scalar_chain::compute_convert_gain):
11760 Correct cost for double-word shifts.
11761 (general_scalar_to_vector_candidate_p): Reject count operands
11762 greater or equal to mode bitsize.
11764 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11766 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11767 for moves between SSE and non-general registers and between
11768 mask and non-general registers.
11769 (ix86_register_move_cost): Remove stalled comment.
11771 2019-08-29 Richard Biener <rguenther@suse.de>
11773 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11774 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11776 2019-08-29 Richard Biener <rguenther@suse.de>
11779 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11780 Do not emit scalar copies for debug-insns, instead replace
11781 their uses with the reg copy used in the chain or reset them
11782 if there is a reaching definition outside of the chain as well.
11784 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11787 * config/i386/i386-expand.c (expand_vec_perm_movs,
11788 expand_vec_perm_blend, expand_vec_perm_vpermil,
11789 expand_vec_perm_pshufb, expand_vec_perm_1,
11790 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11791 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11792 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11793 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11794 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11795 comments - replace ix86_expand_vec_perm_builtin_1 with
11796 ix86_expand_vec_perm_const_1.
11797 (expand_vec_perm2_vperm2f128_vblend): New function.
11798 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11799 expand_vec_perm2_vperm2f128_vblend as last resort.
11800 (canonicalize_perm): Formatting fix.
11802 PR tree-optimization/91351
11803 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11805 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11806 range_check_type returns NULL.
11807 * tree-switch-conversion.c (switch_conversion::build_one_array):
11808 Use range_check_type instead of unsigned_type_for, don't perform
11809 linear opt if it returns NULL.
11810 (bit_test_cluster::find_bit_tests): Formatting fix.
11811 (bit_test_cluster::emit): Use range_check_type instead of
11813 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11816 2019-08-29 Richard Biener <rguenther@suse.de>
11818 PR tree-optimization/91568
11819 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11820 (vect_update_max_nunits): Add overload for poly_uint64.
11821 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11822 (vect_build_slp_tree): Record max_nunits into the subtree
11823 and merge it upwards.
11824 (vect_print_slp_tree): Print max_nunits.
11826 2019-08-28 Marek Polacek <polacek@redhat.com>
11828 Implement P1152R4: Deprecating some uses of volatile.
11830 * doc/invoke.texi: Document -Wvolatile.
11832 2019-08-28 Marek Polacek <polacek@redhat.com>
11834 PR c++/91360 - Implement C++20 P1143R2: constinit.
11835 * doc/invoke.texi: Document -Wc++20-compat.
11837 2019-08-28 Martin Sebor <msebor@redhat.com>
11839 PR tree-optimization/91457
11840 * builtins.c (component_size): New function.
11841 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11842 * builtins.h (compute_objsize): Add argument.
11843 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11844 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11845 (vrp_prop::check_mem_ref): Same.
11846 (vrp_prop::search_for_addr_array): Set no-warning bit.
11847 (check_array_bounds): Same.
11849 2019-08-28 Martin Sebor <msebor@redhat.com>
11852 * opts-common.c (option_enabled): Correct checking for language
11855 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11857 * config/i386/i386.c (ix86_register_move_cost): Do not
11858 limit the cost of moves to/from XMM register to minimum 8.
11860 2019-08-28 Martin Jambor <mjambor@suse.cz>
11863 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11864 checking assert a normal assert to test it really is redundant.
11865 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11867 (update_jump_functions_after_inlining): Removed combining unary
11868 arithmetic operations with an ancestor jump function.
11869 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11872 2019-08-28 Richard Biener <rguenther@suse.de>
11874 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11875 add the MD problem.
11877 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11878 Richard Biener <rguenther@suse.de>
11880 * expr.c (expand_assignment): Handle misaligned DECLs.
11881 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11882 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11884 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11885 * varasm.c (build_constant_desc): Align constants of misaligned types.
11886 * config/arm/predicates.md (aligned_operand): New predicate.
11887 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11888 aligned_operand to check restrictions on memory addresses.
11889 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11890 * config/arm/vec-common.md (mov<VALL>): Likewise.
11892 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11895 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11896 V_128 iterator instead of VI_128.
11898 2019-08-28 Martin Liska <mliska@suse.cz>
11900 PR tree-optimization/90970
11901 * builtins.c (check_access): Remove assignment to maxread
11902 as it hasn't been used since when it was introduced in r255755.
11904 2019-08-27 Martin Sebor <msebor@redhat.com>
11906 PR tree-optimization/91567
11907 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11908 of unknown strings.
11909 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11910 to PTRDIFF_MAX - 2.
11912 2019-08-27 Jeff Law <law@redhat.com>
11914 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11915 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11917 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11920 * config/i386/i386-features.c (convert_scalars_to_vector):
11921 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11922 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11923 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11924 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11926 2019-08-27 Richard Biener <rguenther@suse.de>
11928 * config/i386/i386-features.h
11929 (general_scalar_chain::~general_scalar_chain): Add.
11930 (general_scalar_chain::insns_conv): New bitmap.
11931 (general_scalar_chain::n_sse_to_integer): New.
11932 (general_scalar_chain::n_integer_to_sse): Likewise.
11933 (general_scalar_chain::make_vector_copies): Adjust signature.
11934 * config/i386/i386-features.c
11935 (general_scalar_chain::general_scalar_chain): Outline,
11936 initialize new members.
11937 (general_scalar_chain::~general_scalar_chain): New.
11938 (general_scalar_chain::mark_dual_mode_def): Record insns
11939 we need to insert conversions at and count them.
11940 (general_scalar_chain::compute_convert_gain): Account
11941 for conversion instructions at chain boundary.
11942 (general_scalar_chain::make_vector_copies): Generate a single
11943 copy for a def by a specific insn.
11944 (general_scalar_chain::convert_registers): First populate
11945 defs_map, then make copies at out-of chain insns.
11947 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11949 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11951 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11953 2019-08-27 Martin Liska <mliska@suse.cz>
11955 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11957 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11958 Enclose in anonymous namespace.
11959 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11960 hard_register initialization in braces.
11961 * tree-vrp.h (value_range_base::supports_type_p): Return false
11962 for function with boolean return type.
11964 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11966 * config/i386/i386.c (emit_i387_cw_initialization)
11967 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11969 2019-08-26 Martin Sebor <msebor@redhat.com>
11972 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11973 (sprintf_dom_walker): Remove class.
11974 (get_int_range): Make argument const.
11975 (directive::fmtfunc, directive::set_precision): Same.
11976 (format_none): Same.
11977 (build_intmax_type_nodes): Same.
11978 (adjust_range_for_overflow): Same.
11979 (format_floating): Same.
11980 (format_character): Same.
11981 (format_string): Same.
11982 (format_plain): Same.
11983 (get_int_range): Cast away constness.
11984 (format_integer): Same.
11985 (get_string_length): Call get_range_strlen_dynamic. Handle
11986 null lendata.maxbound.
11987 (should_warn_p): Adjust argument scope qualifier.
11988 (maybe_warn): Same.
11989 (format_directive): Same.
11990 (parse_directive): Same.
11991 (is_call_safe): Same.
11992 (try_substitute_return_value): Same.
11993 (sprintf_dom_walker::handle_printf_call): Rename...
11994 (handle_printf_call): ...to this. Initialize target to host charmap
11995 here instead of in pass_sprintf_length::execute.
11996 (struct call_info): Make global.
11997 (sprintf_dom_walker::compute_format_length): Make global.
11998 (sprintf_dom_walker::handle_gimple_call): Same.
11999 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12000 * print-rtl.c (print_pattern): Reduce the number of spaces to
12001 avoid -Wformat-truncation.
12002 * tree-pass.h (make_pass_warn_printf): New function.
12003 * tree-ssa-strlen.c (strlen_optimize): New variable.
12004 (get_string_length): Add comments.
12005 (get_range_strlen_dynamic): New function.
12006 (check_and_optimize_call): New function.
12007 (handle_integral_assign): New function.
12008 (strlen_check_and_optimize_stmt): Factor code out into
12009 strlen_check_and_optimize_call and handle_integral_assign.
12010 (strlen_dom_walker::evrp): New member.
12011 (strlen_dom_walker::before_dom_children): Use evrp member.
12012 (strlen_dom_walker::after_dom_children): Use evrp member.
12013 (printf_strlen_execute): New function.
12014 (pass_strlen::gate): Update to handle printf calls.
12015 (dump_strlen_info): New function.
12016 (pass_data_warn_printf): New variable.
12017 (pass_warn_printf): New class.
12018 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12019 (handle_printf_call): Same.
12020 * tree-vrp.c (value_range_base::type): Adjust assertion.
12021 * vr-values.c (vr_values::update_value_range): Use type of the first
12022 argument rather than the second.
12024 2019-08-26 Richard Biener <rguenther@suse.de>
12026 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12028 (convert_scalars_to_vector): Do not call it.
12030 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12031 Uros Bizjak <ubizjak@gmail.com>
12033 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12034 CASE_MATHFN_FLOATN for roundeven.
12035 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12037 (ix86_mode_needed): Likewise.
12038 (ix86_mode_after): Likewise.
12039 (ix86_mode_entry): Likewise.
12040 (ix86_mode_exit): Likewise.
12041 (ix86_emit_mode_set): Likewise.
12042 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12043 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12044 (ix86_entity): Add I387_ROUNDEVEN.
12045 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12046 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12047 (define_int_iterator): Likewise.
12048 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12049 (define_constant): Define ROUND_ROUNDEVEN mode.
12050 (define_attr): Add roundeven mode for i387_cw.
12051 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12052 * internal-fn.def (ROUNDEVEN): New builtin function.
12053 * optabs.def (roundeven_optab): New optab.
12055 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12057 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12059 * builtins.def: Added function definitions for roundeven function
12061 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12062 function call. Adjust condition for floor, ceil, trunc and round.
12063 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12064 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12065 (integer_valued_real_call_p): Added case for roundeven function.
12066 * real.c (is_even): New function. Returns true if real number is even,
12067 otherwise returns false.
12068 (is_halfway_below): New function. Returns true if real number is
12069 halfway between two integers, else return false.
12070 (real_roundeven): New function. Round real number to nearest integer,
12071 rounding halfway cases towards even.
12072 * real.h (real_value): Added descriptive comments. Added function
12073 declaration for roundeven function.
12074 * doc/extend.texi (Other Builtins): List roundeven variants among
12075 functions which can be handled as builtins.
12077 2019-08-26 Richard Biener <rguenther@suse.de>
12081 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12083 (general_scalar_chain::replace_with_subreg): Remove.
12084 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12085 (general_scalar_chain::convert_reg): Adjust signature.
12086 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12087 iterate over all defs of a reg.
12088 (general_scalar_chain::replace_with_subreg): Remove.
12089 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12090 (general_scalar_chain::make_vector_copies): Populate defs_map,
12091 place copy only after defs that are used as vectors in the chain.
12092 (general_scalar_chain::convert_reg): Emit a copy for a specific
12093 def in a specific instruction.
12094 (general_scalar_chain::convert_op): All reg uses are converted here.
12095 (general_scalar_chain::convert_insn): Emit copies for scalar
12096 uses of defs here. Replace uses with the copies we created.
12097 Replace and convert the def. Adjust REG_DEAD notes, remove
12098 REG_EQUIV/EQUAL notes.
12099 (general_scalar_chain::convert_registers): Only handle copies
12100 into the chain here.
12102 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12104 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12106 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12108 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12109 Add nop_convert case.
12110 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12111 Fold all statements if requested.
12112 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12113 Allow to fold all statements.
12114 * tree-vrp.c (class vrp_folder):
12115 Let substitute_and_fold_engine fold all statements.
12117 2019-08-26 Richard Biener <rguenther@suse.de>
12119 PR tree-optimization/91526
12120 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12121 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12122 TODO_update_address_taken.
12124 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12126 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12129 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12131 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12132 machine mode for unspec_volatile operand.
12134 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12136 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12137 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12138 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12139 (prefer_neon_for_64bits): Remove.
12140 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12141 (tune_params): Remove PREF_NEON_64_FALSE uses.
12142 (arm_option_override): Remove prefer_neon selection code.
12143 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12144 * config/arm/arm-protos.h (tune_params): Remove
12145 prefer_neon_for_64bits.
12146 (prefer_neon_for_64bits): Remove.
12148 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12151 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12152 and issue any diagnostics needed before collecting the pre-PCH
12155 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12157 PR middle-end/91283
12158 * common.opt (fexcess-precision=): Add Optimization flag. Use
12159 flag_excess_precision variable instead of
12160 flag_excess_precision_cmdline.
12161 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12163 (flag_excess_precision): Don't define.
12164 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12165 flag_excess_precision_cmdline. Remove comment.
12166 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12167 and x_flag_excess_precision instead of
12168 frontend_set_flag_excess_precision_cmdline and
12169 x_flag_excess_precision_cmdline.
12170 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12171 x_flag_excess_precision_cmdline.
12172 * toplev.c (init_excess_precision): Remove.
12173 (lang_dependent_init_target): Don't call it.
12175 2019-08-23 Martin Liska <mliska@suse.cz>
12177 * lto-wrapper.c (run_gcc): When setting jobserver
12178 set also parallel to 1. This was done so before r273908.
12180 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12182 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12183 (cortex-a76ae): Likewise.
12184 (cortex-a77): Likewise
12185 * config/arm/arm-tables.opt: Regenerate.
12186 * config/arm/arm-tune.md: Likewise.
12187 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12188 cortex-a77 CPU options.
12190 2019-08-23 Martin Liska <mliska@suse.cz>
12192 * profile.c (instrument_values): Do not set
12193 0 as last argument.
12194 * tree-profile.c (gimple_gen_interval_profiler): Remove
12196 (gimple_gen_pow2_profiler): Likewise.
12197 (gimple_gen_topn_values_profiler): Likewise.
12198 (gimple_gen_ic_profiler): Likewise.
12199 (gimple_gen_time_profiler): Likewise.
12200 (gimple_gen_average_profiler): Likewise.
12201 (gimple_gen_ior_profiler): Likewise.
12202 * value-prof.c (dump_histogram_value): Use default
12203 in switch statement instead of HIST_TYPE_MAX.
12204 (stream_in_histogram_value): Likewise.
12205 (gimple_duplicate_stmt_histograms): Do not
12206 use NULL for implicitly set arguments.
12207 (gimple_divmod_values_to_profile): Do not use
12208 reserve+quick_push.
12209 (gimple_indirect_call_to_profile): Likewise.
12210 (gimple_find_values_to_profile): Use implicit
12211 function call arguments.
12212 * value-prof.h (gimple_alloc_histogram_value):
12213 Set default values.
12214 (gimple_gen_interval_profiler): Remove last argument.
12215 (gimple_gen_pow2_profiler): Likewise.
12216 (gimple_gen_topn_values_profiler): Likewise.
12217 (gimple_gen_ic_profiler): Likewise.
12218 (gimple_gen_time_profiler): Likewise.
12219 (gimple_gen_average_profiler): Likewise.
12220 (gimple_gen_ior_profiler): Likewise.
12222 2019-08-22 Martin Sebor <msebor@redhat.com>
12224 PR middle-end/91490
12225 * builtins.c (c_strlen): Rename argument and introduce new local.
12226 Set no-warning bit on original argument.
12227 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
12228 Fold empty and zero constructors into empty strings.
12229 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
12230 for missing initializers.
12231 * tree.c (build_string_literal): Handle optional argument.
12232 * tree.h (build_string_literal): Add defaulted argument.
12233 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
12234 no-warning bit on original expression.
12236 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12239 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12240 and UNSPEC_DARN_RAW.
12241 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
12243 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
12244 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
12245 (darn): Use an unspec_volatile, and UNSPECV_DARN.
12247 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12249 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12250 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
12251 * config/rs6000/rs6000.md (unspec): ... here.
12252 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
12253 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12254 cmpeqb, *cmpeqb_internal): Delete, move to...
12255 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
12256 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12257 cmpeqb, *cmpeqb_internal): ... here.
12259 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12261 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
12262 intrinsics if __ARM_FP.
12263 Use __ARM_FEATURE_CRC32 ifdef guard.
12265 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12267 * config/arm/arm.md (neon_for_64bits): Remove.
12268 (avoid_neon_for_64bits): Remove.
12269 (arm_adddi3): Always split early.
12270 (arm_subdi3): Always split early.
12271 (negdi2): Remove Neon expansion.
12272 (split zero_extend): Split before reload.
12273 (split sign_extend): Split before reload.
12275 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12277 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
12278 (qhs_extenddi_cstr): Likewise.
12279 * config/arm/arm.md (ashldi3): Always expand early.
12280 (ashlsi3): Likewise.
12281 (ashrsi3): Likewise.
12282 (zero_extend<mode>di2): Remove Neon variants.
12283 (extend<mode>di2): Likewise.
12284 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
12285 (signed_shift_di3_neon): Likewise.
12286 (unsigned_shift_di3_neon): Likewise.
12287 (ashrdi3_neon_imm_noclobber): Likewise.
12288 (lshrdi3_neon_imm_noclobber): Likewise.
12289 (<shift>di3_neon): Likewise.
12290 (split extend): Remove DI extend split patterns.
12292 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12294 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
12295 (split not): Add DImode not splitter.
12296 (anddi3): Remove pattern.
12297 (anddi3_insn): Likewise.
12298 (anddi_zesidi_di): Likewise.
12299 (anddi_sesdi_di): Likewise.
12300 (anddi_notdi_di): Likewise.
12301 (anddi_notzesidi_di): Likewise.
12302 (anddi_notsesidi_di): Likewise.
12303 (iordi3): Likewise.
12304 (iordi3_insn): Likewise.
12305 (iordi_zesidi_di): Likewise.
12306 (iordi_sesidi_di): Likewise.
12307 (xordi3): Likewise.
12308 (xordi3_insn): Likewise.
12309 (xordi_sesidi_di): Likewise.
12310 (xordi_zesidi_di): Likewise.
12311 (one_cmpldi2): Likewise.
12312 (one_cmpldi2_insn): Likewise.
12313 * config/arm/constraints.md: Remove De, Df, Dg constraints.
12314 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
12316 (iwmmxt_xordi3): Likewise.
12317 (iwmmxt_anddi3): Likewise.
12318 * config/arm/neon.md (orndi3_neon): Remove pattern.
12319 (anddi_notdi_di): Likewise.
12320 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
12321 (arm_iordi_operand_neon): Likewise.
12322 (arm_xordi_operand_neon): Likewise.
12323 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
12324 (iordi_notzesidi_di): Likewise.
12325 (iordi_notdi_zesidi): Likewise.
12326 (iordi_notsesidi_di): Likewise.
12328 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
12330 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
12332 (iorsi3_compare0_scratch): Likewise.
12334 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
12336 * config/aarch64/aarch64-simd-builtins.def:
12339 * config/aarch64/aarch64-simd.md:
12340 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
12341 (aarch64_st1x4<VALLDIF:mode>): Likewise.
12342 (aarch64_ld1_x4_<mode>): Likewise.
12343 (aarch64_st1_x4_<mode>): Likewise.
12344 * config/aarch64/arm_neon.h:
12345 (vld1_s8_x4): New function.
12346 (vld1q_s8_x4): Likewise.
12347 (vld1_s16_x4): Likewise.
12348 (vld1q_s16_x4): Likewise.
12349 (vld1_s32_x4): Likewise.
12350 (vld1q_s32_x4): Likewise.
12351 (vld1_u8_x4): Likewise.
12352 (vld1q_u8_x4): Likewise.
12353 (vld1_u16_x4): Likewise.
12354 (vld1q_u16_x4): Likewise.
12355 (vld1_u32_x4): Likewise.
12356 (vld1q_u32_x4): Likewise.
12357 (vld1_f16_x4): Likewise.
12358 (vld1q_f16_x4): Likewise.
12359 (vld1_f32_x4): Likewise.
12360 (vld1q_f32_x4): Likewise.
12361 (vld1_p8_x4): Likewise.
12362 (vld1q_p8_x4): Likewise.
12363 (vld1_p16_x4): Likewise.
12364 (vld1q_p16_x4): Likewise.
12365 (vld1_s64_x4): Likewise.
12366 (vld1_u64_x4): Likewise.
12367 (vld1_p64_x4): Likewise.
12368 (vld1q_s64_x4): Likewise.
12369 (vld1q_u64_x4): Likewise.
12370 (vld1q_p64_x4): Likewise.
12371 (vld1_f64_x4): Likewise.
12372 (vld1q_f64_x4): Likewise.
12373 (vst1_s8_x4): Likewise.
12374 (vst1q_s8_x4): Likewise.
12375 (vst1_s16_x4): Likewise.
12376 (vst1q_s16_x4): Likewise.
12377 (vst1_s32_x4): Likewise.
12378 (vst1q_s32_x4): Likewise.
12379 (vst1_u8_x4): Likewise.
12380 (vst1q_u8_x4): Likewise.
12381 (vst1_u16_x4): Likewise.
12382 (vst1q_u16_x4): Likewise.
12383 (vst1_u32_x4): Likewise.
12384 (vst1q_u32_x4): Likewise.
12385 (vst1_f16_x4): Likewise.
12386 (vst1q_f16_x4): Likewise.
12387 (vst1_f32_x4): Likewise.
12388 (vst1q_f32_x4): Likewise.
12389 (vst1_p8_x4): Likewise.
12390 (vst1q_p8_x4): Likewise.
12391 (vst1_p16_x4): Likewise.
12392 (vst1q_p16_x4): Likewise.
12393 (vst1_s64_x4): Likewise.
12394 (vst1_u64_x4): Likewise.
12395 (vst1_p64_x4): Likewise.
12396 (vst1q_s64_x4): Likewise.
12397 (vst1q_u64_x4): Likewise.
12398 (vst1q_p64_x4): Likewise.
12399 (vst1_f64_x4): Likewise.
12400 (vst1q_f64_x4): Likewise.
12402 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12404 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12406 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12407 Richard Sandiford <richard.sandiford@arm.com>
12410 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12411 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
12413 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12416 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
12417 in reg if it fails aarch64_plus_operand predicate.
12419 2019-08-21 Richard Biener <rguenther@suse.de>
12421 PR tree-optimization/91482
12422 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
12423 BUILT_IN_ASSUME_ALIGNED calls.
12425 2019-08-21 Richard Biener <rguenther@suse.de>
12429 * config/i386/i386-features.c
12430 (general_scalar_chain::make_vector_copies): Copy stack temporary
12431 rtx when using it multiple times.
12432 (general_scalar_chain::convert_reg): Likewise.
12434 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12436 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
12438 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
12440 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
12441 catch more redundant zero initialization cases.
12442 (dse_dom_walker::dse_optimize_stmt): Likewise.
12444 2019-08-20 Richard Biener <rguenther@suse.de>
12447 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
12448 by collect2 when targetm.have_ctors_dtors which avoids dragging
12449 in temporary filenames from LTO input objects.
12451 2019-08-20 Richard Biener <rguenther@suse.de>
12453 PR tree-optimization/37242
12454 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
12455 to (T)a + (T)b if we know that a + b does not overflow.
12457 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
12459 PR rtl-optimization/91347
12460 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
12461 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
12463 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12465 * calls.h (function_arg_info): Add a pass_by_reference field,
12466 defaulting to false.
12467 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12468 when applying pass-by-reference semantics.
12469 (initialize_argument_information): Likewise.
12470 (emit_library_call_value_1): Likewise.
12471 * function.c (assign_parm_data_one): Remove passed_pointer field.
12472 (assign_parm_find_data_types): Don't set it.
12473 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
12474 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
12475 arg.pass_by_reference instead of passed_pointer.
12477 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12479 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
12480 into a single function_arg_info, updating its fields when we
12481 apply pass-by-reference and promotion semantics. Use the
12482 function_arg_info to track the mode rather than keeping it in
12483 a separate local variable.
12484 (initialize_argument_information): Likewise. Base the final
12485 arg_to_skip on this new function_arg_info rather than creating
12486 a new one from scratch.
12488 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12490 * function.c (assign_parm_data_one): Replace passed_type,
12491 promoted_mode and named_arg with a function_arg_info field.
12492 (assign_parm_find_data_types): Remove local variables and
12493 assign directly to "data". Make data->passed_mode shadow
12494 data->arg.mode until promotion, then assign the promoted
12495 mode to data->arg.mode.
12496 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
12497 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
12498 (assign_parm_remove_parallels, assign_parm_setup_block_p)
12499 (assign_parm_setup_block, assign_parm_setup_reg)
12500 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
12501 arg.mode instead of promoted_mode, arg.type instead of passed_type
12502 and arg.named instead of named_arg. Use data->arg for
12503 function_arg_info structures that had the field values passed_type,
12504 promoted_mode and named_arg. Base other function_arg_infos on
12505 data->arg, changing the necessary properties.
12507 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12509 * calls.h (apply_pass_by_reference_rules): Declare.
12510 * calls.c (apply_pass_by_reference_rules): New function.
12511 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
12512 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
12513 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12514 * function.c (assign_parm_find_data_types): Likewise.
12515 * var-tracking.c (prepare_call_arguments): Likewise.
12517 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12519 * target.def (must_pass_in_stack): Take a function_arg_info instead
12520 of a mode and a type.
12521 * doc/tm.texi: Regenerate.
12522 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
12523 instead of a mode and a type.
12524 (must_pass_in_stack_var_size_or_pad): Likewise.
12525 * calls.c (must_pass_in_stack_var_size): Likewise.
12526 (must_pass_in_stack_var_size_or_pad): Likewise.
12527 (initialize_argument_information): Update call to
12528 targetm.calls.must_pass_in_stack.
12529 (must_pass_va_arg_on_stack): Likewise.
12530 * function.c (assign_parm_find_entry_rtl): Likewise.
12531 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
12532 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12533 (alpha_function_arg_advance): Likewise.
12534 * config/cr16/cr16.c (cr16_function_arg): Likewise.
12535 (cr16_function_arg_advance): Likewise.
12536 * config/cris/cris.c (cris_pass_by_reference): Likewise.
12537 (cris_arg_partial_bytes): Likewise.
12538 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12539 * config/lm32/lm32.c (lm32_function_arg): Likewise.
12540 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
12541 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
12542 * config/mips/mips.c (mips_pass_by_reference): Likewise.
12543 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
12544 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
12545 * config/sh/sh.c (sh_pass_by_reference): Likewise.
12546 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12547 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12548 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
12549 instead of a mode and a type.
12550 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
12551 (fr30_num_arg_regs): Likewise.
12552 (fr30_setup_incoming_varargs): Update calls accordingly.
12553 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12554 (fr30_function_arg_advance): Likewise.
12555 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12556 instead of a mode and a type.
12557 * config/gcn/gcn.c (num_arg_regs): Likewise.
12558 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12559 num_arg_regs and targetm.calls.must_pass_in_stack.
12560 (gcn_arg_partial_bytes): Likewise.
12561 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12562 function_arg_info instead of a mode and a type.
12563 (classify_argument): Update call accordingly.
12564 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12565 function_arg_info instead of a mode and a type.
12566 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12568 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12569 (rs6000_parm_needs_stack): Update call accordingly.
12570 (setup_incoming_varargs): Likewise.
12572 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12574 * target.def (callee_copies): Take a function_arg_info instead
12575 of a mode, type and named flag.
12576 * doc/tm.texi: Regenerate.
12577 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12578 instead of a mode, type and named flag.
12579 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12580 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12581 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12582 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12583 instead of a mode, type and named flag.
12584 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12585 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12586 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12587 * calls.h (reference_callee_copied): Take a function_arg_info
12588 instead of a mode, type and named flag.
12589 * calls.c (reference_callee_copied): Likewise.
12590 (initialize_argument_information): Update call accordingly.
12591 (emit_library_call_value_1): Likewise.
12592 * function.c (gimplify_parameters): Likewise.
12593 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12594 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12595 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12596 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12597 (TARGET_CALLEE_COPIES): Define to
12598 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12599 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12600 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12601 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12602 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12603 instead of a mode, type and named flag.
12604 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12605 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12606 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12607 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12608 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12609 (TARGET_CALLEE_COPIES): Define to
12610 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12611 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12612 instead of a mode, type and named flag.
12613 * config/sh/sh.c (sh_callee_copies): Likewise.
12614 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12615 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12616 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12618 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12620 * target.def (function_arg_advance): Take a function_arg_info instead
12621 of a mode, type and named flag.
12622 * doc/tm.texi: Regenerate.
12623 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12624 instead of a mode, type and named flag.
12625 * targhooks.c (default_function_arg_advance): Likewise.
12626 * calls.c (initialize_argument_information): Update call to
12627 targetm.calls.function_arg_advance.
12628 (emit_library_call_value_1): Likewise.
12629 * dse.c (get_call_args): Likewise.
12630 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12631 * function.c (assign_parms, gimplify_parameters): Likewise.
12632 * var-tracking.c (prepare_call_arguments): Likewise.
12633 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12634 function_arg_info instead of a mode, type and named flag.
12635 (aarch64_setup_incoming_varargs): Update call accordingly.
12636 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12637 function_arg_info instead of a mode, type and named flag.
12638 (alpha_setup_incoming_varargs): Update call accordingly.
12639 * config/arc/arc.c (arc_function_arg_advance): Take a
12640 function_arg_info instead of a mode, type and named flag.
12641 (arc_setup_incoming_varargs): Update call accordingly.
12642 * config/arm/arm.c (arm_function_arg_advance): Take a
12643 function_arg_info instead of a mode, type and named flag.
12644 (cmse_func_args_or_return_in_stack): Update call accordingly.
12645 (arm_function_ok_for_sibcall): Likewise.
12646 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12647 * config/avr/avr.c (avr_function_arg_advance): Take a
12648 function_arg_info instead of a mode, type and named flag.
12649 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12650 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12651 (c6x_call_saved_register_used): Update call accordingly.
12652 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12653 function_arg_info instead of a mode, type and named flag.
12654 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12655 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12656 (csky_setup_incoming_varargs): Update call accordingly.
12657 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12658 function_arg_info instead of a mode, type and named flag.
12659 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12660 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12661 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12662 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12663 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12664 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12665 (ix86_setup_incoming_varargs): Update call accordingly.
12666 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12667 function_arg_info instead of a mode, type and named flag.
12668 (ia64_setup_incoming_varargs): Update call accordingly.
12669 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12670 function_arg_info instead of a mode, type and named flag.
12671 (iq2000_expand_prologue): Update call accordingly.
12672 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12673 function_arg_info instead of a mode, type and named flag.
12674 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12675 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12676 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12677 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12678 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12680 (microblaze_expand_prologue): Update call accordingly.
12681 * config/mips/mips.c (mips_function_arg_advance): Take a
12682 function_arg_info instead of a mode, type and named flag.
12683 (mips_setup_incoming_varargs): Update call accordingly.
12684 (mips_output_args_xfer): Likewise.
12685 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12686 function_arg_info instead of a mode, type and named flag.
12687 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12688 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12689 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12690 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12691 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12692 (nios2_setup_incoming_varargs): Update call accordingly.
12693 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12694 function_arg_info instead of a mode, type and named flag.
12695 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12696 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12697 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12698 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12699 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12700 (riscv_setup_incoming_varargs): Update call accordingly.
12701 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12702 function_arg_info instead of a mode, type and named flag.
12703 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12705 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12706 (rs6000_parm_needs_stack): Update call accordingly.
12707 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12708 instead of a mode, type and named flag.
12709 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12710 (s390_call_saved_register_used): Update call accordingly.
12711 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12712 instead of a mode, type and named flag.
12713 (sh_output_mi_thunk): Update call accordingly.
12714 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12715 function_arg_info instead of a mode, type and named flag.
12716 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12717 (spu_setup_incoming_varargs): Update call accordingly.
12718 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12719 function_arg_info instead of a mode, type and named flag.
12720 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12721 (tilegx_setup_incoming_varargs): Update call accordingly.
12722 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12723 function_arg_info instead of a mode, type and named flag.
12724 (tilegx_setup_incoming_varargs): Update call accordingly.
12725 * config/v850/v850.c (v850_function_arg_advance): Take a
12726 function_arg_info instead of a mode, type and named flag.
12727 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12728 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12729 (visium_setup_incoming_varargs): Update call accordingly.
12730 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12731 function_arg_info instead of a mode, type and named flag.
12733 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12735 * target.def (function_arg, function_incoming_arg): Take a
12736 function_arg_info instead of a mode, tree and named flag.
12737 * doc/tm.texi: Regenerate.
12738 * targhooks.h (default_function_arg): Take a function_arg_info
12739 instead of a mode, tree and named flag.
12740 (default_function_incoming_arg): Likewise.
12741 * targhooks.c (default_function_arg): Likewise.
12742 (default_function_incoming_arg): Likewise.
12743 * calls.h (function_arg_info::end_marker_p): New function.
12744 (function_arg_info::end_marker): Likewise.
12745 * calls.c (prepare_call_address, initialize_argument_information)
12746 (expand_call, emit_library_call_value_1): Update calls to
12747 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12748 * dse.c: Include calls.h.
12749 (get_call_args): Update call to targetm.calls.function_arg.
12750 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12751 * var-tracking.c (prepare_call_arguments): Likewise.
12752 * function.c (assign_parm_find_entry_rtl): Update call to
12753 targetm.calls.function_incoming_arg.
12754 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12755 function_arg_info instead of a mode, tree and named flag.
12756 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12757 * config/arc/arc.c (arc_function_arg): Likewise.
12758 * config/arm/arm.c (arm_function_arg): Likewise.
12759 (cmse_func_args_or_return_in_stack): Update call accordingly.
12760 (arm_function_ok_for_sibcall): Likewise.
12761 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12762 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12763 instead of a mode, tree and named flag.
12764 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12765 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12766 (c6x_call_saved_register_used): Update call accordingly.
12767 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12768 instead of a mode, tree and named flag.
12769 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12770 (cris_function_arg_1): Likewise.
12771 * config/csky/csky.c (csky_function_arg): Likewise.
12772 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12773 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12774 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12775 (frv_function_arg_1): Likewise.
12776 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12777 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12778 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12779 * config/i386/i386.c (ix86_function_arg): Likewise.
12780 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12781 (ia64_function_arg_1): Likewise.
12782 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12783 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12785 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12786 instead of a mode, tree and named flag.
12787 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12788 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12789 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12790 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12791 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12792 (microblaze_expand_prologue): Update call accordingly.
12793 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12794 instead of a mode, tree and named flag.
12795 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12796 (mmix_function_arg_1): Likewise.
12797 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12798 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12799 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12800 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12801 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12802 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12803 (nvptx_function_incoming_arg): Likewise.
12804 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12805 * config/pa/pa.c (pa_function_arg): Likewise.
12806 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12807 * config/pru/pru.c (pru_function_arg): Likewise.
12808 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12809 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12810 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12811 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12812 (rs6000_parm_needs_stack): Update call accordingly.
12813 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12814 instead of a mode, tree and named flag.
12815 * config/s390/s390.c (s390_function_arg): Likewise.
12816 (s390_call_saved_register_used): Update call accordingly.
12817 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12818 instead of a mode, tree and named flag.
12819 (sh_output_mi_thunk): Update call accordingly.
12820 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12821 (sparc_function_incoming_arg): Take a function_arg_info instead of
12822 a mode, tree and named flag.
12823 * config/spu/spu.c (spu_function_arg): Likewise.
12824 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12825 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12826 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12827 * config/v850/v850.c (v850_function_arg): Likewise.
12828 * config/vax/vax.c (vax_function_arg): Likewise.
12829 * config/visium/visium.c (visium_function_arg): Likewise.
12830 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12831 (xtensa_function_incoming_arg): Likewise.
12833 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12835 * target.def (setup_incoming_varargs): Take a function_arg_info
12836 instead of a mode and tree.
12837 * doc/tm.texi: Regenerate.
12838 * targhooks.h (default_setup_incoming_varargs): Take a
12839 function_arg_info instead of a mode and tree.
12840 * targhooks.c (default_setup_incoming_varargs): Likewise.
12841 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12842 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12843 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12844 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12845 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12846 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12847 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12848 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12850 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12851 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12852 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12853 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12854 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12855 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12856 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12857 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12858 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12859 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12860 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12861 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12862 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12863 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12864 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12865 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12866 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12867 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12868 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12869 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12870 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12871 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12872 * function.c (assign_parms_setup_varargs): Update call to
12873 targetm.calls.setup_incoming_varargs.
12875 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12877 * target.def (pass_by_reference): Take a function_arg_info instead
12878 of a mode, type and named flag.
12879 * doc/tm.texi: Regenerate.
12880 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12882 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12883 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12884 function_arg_info instead of a mode, type and named flag.
12885 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12886 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12887 mode, type and named flag.
12888 * calls.c (pass_by_reference): Likewise.
12889 (pass_va_arg_by_reference): Update call accordingly.
12890 (initialize_argument_information): Likewise.
12891 (emit_library_call_value_1): Likewise.
12892 * function.c (assign_parm_find_data_types): Likewise.
12893 * var-tracking.c (prepare_call_arguments): Likewise.
12894 * stor-layout.c: Include calls.h.
12895 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12896 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12897 function_arg_info instead of a mode, type and named flag.
12898 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12899 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12900 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12901 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12902 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12903 (c6x_call_saved_register_used): Update call to pass_by_reference.
12904 * config/cris/cris.c (cris_pass_by_reference): Take a
12905 function_arg_info instead of a mode, type and named flag.
12906 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12907 function_arg_info instead of a mode, type and named flag.
12908 (epiphany_arg_partial_bytes): Update call accordingly.
12909 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12910 function_arg_info instead of a mode, type and named flag.
12911 (ft32_arg_partial_bytes): Update call accordingly.
12912 * config/i386/i386.c (ix86_pass_by_reference): Take a
12913 function_arg_info instead of a mode, type and named flag.
12914 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12915 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12916 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12917 (m32r_return_in_memory): Update call accordingly.
12918 * config/mips/mips.c (mips_pass_by_reference): Take a
12919 function_arg_info instead of a mode, type and named flag.
12920 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12921 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12922 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12923 (moxie_arg_partial_bytes): Update call accordingly.
12924 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12925 function_arg_info instead of a mode, type and named flag.
12926 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12927 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12928 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12929 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12930 (riscv_return_in_memory): Update call accordingly.
12931 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12932 function_arg_info instead of a mode, type and named flag.
12933 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12934 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12935 * config/s390/s390.c (s390_pass_by_reference): Take a
12936 function_arg_info instead of a mode, type and named flag.
12937 (s390_call_saved_register_used): Update call accordingly.
12938 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12939 instead of a mode, type and named flag.
12940 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12941 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12942 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12943 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12944 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12945 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12947 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12949 * target.def (arg_partial_bytes): Take a function_arg_info instead
12950 of a mode, type and named flag.
12951 * doc/tm.texi: Regenerate.
12952 * target.h (function_arg_info): Declare.
12953 * calls.h (function_arg_info): New class.
12954 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12955 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12956 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12957 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12958 * calls.c (initialize_argument_information): Update call to
12959 targetm.calls.partial_bytes.
12960 (emit_library_call_value_1): Likewise.
12961 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12962 * function.c (assign_parm_find_entry_rtl): Likewise.
12963 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12964 function_arg_info instead of a mode, type and named flag.
12965 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12966 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12967 (cmse_func_args_or_return_in_stack): Update accordingly.
12968 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12969 function_arg_info instead of a mode, type and named flag.
12970 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12971 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12972 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12973 * config/fr30/fr30.c: Include calls.h.
12974 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12975 type and named flag.
12976 * config/frv/frv.c: Include calls.h.
12977 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12978 type and named flag.
12979 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12980 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12981 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12982 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12983 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12984 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12985 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12987 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12988 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12989 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12990 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12991 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12992 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12993 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12994 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12995 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12996 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12997 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12998 (rs6000_parm_needs_stack): Update call accordingly.
12999 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13000 function_arg_info instead of a mode, type and named flag.
13001 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13002 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13004 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13006 * calls.h (must_pass_va_arg_in_stack): Declare.
13007 * calls.c (must_pass_va_arg_in_stack): New function.
13008 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13009 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13010 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13012 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13014 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13016 * calls.h (pass_va_arg_by_reference): Declare.
13017 * calls.c (pass_va_arg_by_reference): New function.
13018 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13019 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13020 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13021 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13022 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13023 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13024 (mips_gimplify_va_arg_expr): Likewise.
13025 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13026 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13027 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13028 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13029 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13030 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13031 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13032 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13033 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13034 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13035 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13037 2019-08-20 Richard Biener <rguenther@suse.de>
13040 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13041 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13042 (convert_scalars_to_vector): Add timode_p parameter and use it
13043 to guard TImode-only operation.
13044 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13045 (pass_stv::execute): Pass down timode_p.
13047 2019-08-20 Lili Cui <lili.cui@intel.com>
13049 * common/config/i386/i386-common.c
13050 (processor_names): Add tigerlake and cooperlake.
13051 (processor_alias_table): Add tigerlake and cooperlake.
13052 * config.gcc: Add -march=tigerlake and cooperlake.
13053 * config/i386/driver-i386.c
13054 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13055 Add "has_avx" to classify processor.
13056 * config/i386/i386-builtins.c (processor_model) :
13057 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13058 (arch_names_table): Add tigerlake and cooperlake.
13059 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13060 and PROCESSOR_COOPERLAKE.
13061 * config/i386/i386-c.c
13062 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13063 * config/i386/i386-options.c
13064 (m_TIGERLAKE): Define.
13065 (m_COOPERLAKE): Ditto.
13066 (m_CORE_AVX512): Ditto.
13067 (processor_cost_table): Add cascadelake.
13068 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13069 * config/i386/i386.h
13070 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13071 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13072 (PTA_MOVDIRI): Ditto.
13073 (PTA_MOVDIR64B): Ditto.
13074 (PTA_COOPERLAKE): Ditto.
13075 (PTA_TIGERLAKE): Ditto.
13076 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13077 * doc/extend.texi: Add tigerlake and cooperlake.
13078 * doc/invoke.texi: Add tigerlake and cooperlake.
13080 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13082 * doc/install.texi (Specific, alpha): Remove note to use
13083 binutils 2.11.2 or later.
13085 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13087 PR middle-end/89544
13088 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13091 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13093 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13094 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13095 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13096 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13097 * config/aarch64/constraints.md (Dt): New constraint
13098 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13100 2019-08-19 Richard Biener <rguenther@suse.de>
13102 PR tree-optimization/91403
13103 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13104 cases we can handle with tail-recursion...
13105 (follow_ssa_edge_expr): ... here. Do so.
13107 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13110 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13111 implemented for -fsanitize=kernel-address, and merge check logic
13112 with -fsanitize=address.
13114 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13116 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13117 for cpu and machine. Factor 64/32b builtins.
13119 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13121 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13122 gone, point to sourceforge.net.
13124 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13126 * doc/ux.texi (User Experience Guidelines): Update reference.
13128 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13130 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13133 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13135 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13136 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13138 2019-08-16 Martin Sebor <msebor@redhat.com>
13140 * tree.def (TYPE_SIZE): Clarify.
13141 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13143 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13145 PR tree-optimization/91109
13146 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13147 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13148 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13150 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13152 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13153 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13154 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13155 (uavg<mode>3_ceil): New expander.
13156 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13157 mode iterator when creating CONST1_RTX.
13158 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13159 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13160 mode iterator for const1_operand predicate.
13162 2019-08-16 Richard Biener <rguenther@suse.de>
13164 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13165 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13167 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13168 (analyze_evolution_in_loop): Likewise.
13169 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13170 (follow_ssa_edge_expr): ... here. Refactor code.
13172 2019-08-16 Richard Biener <rguenther@suse.de>
13175 * config/i386/i386-features.c
13176 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13178 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13181 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13182 only if subst_name matches curr_attr string.
13184 2019-08-16 Richard Biener <rguenther@suse.de>
13186 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13187 stmt at gsi_p, instead replace it with a NOP removed later.
13188 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13189 that became dead because of that.
13191 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13193 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13194 for which we can't represent a range.
13195 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
13197 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13198 Set VR_UNDEFINED if type is not supported.
13199 * tree-ssanames.c (get_range_info): Pass type to set_varying.
13200 * tree-vrp.c (value_range_base::check): Assert that a varying has
13202 (value_range_base::equal_p): Early bail for undefines.
13203 (value_range_base::set_varying): Accept a type.
13204 (value_range::set_varying): Same.
13205 (value_range_base::type): VARYING can have a type, while UNDEFINE
13207 (value_range_base::dump): Print type for VARYING nodes.
13208 (value_range_base::set): Add type to VARYING.
13209 (extract_range_from_multiplicative_op): Pass type to set_varying.
13210 (extract_range_from_binary_expr): Same.
13211 (value_range_base::intersect_helper): Same.
13212 (value_range_base::union_helper): Same.
13213 (value_range_base::normalize_symbolics): Same.
13214 (determine_value_range_1): Same.
13215 * tree-vrp.h (class value_range_base): Add type to set_varying.
13216 Add prototype for dump(void).
13217 Add prototype for supports_type_p.
13218 (class value_range): Add type to set_varying.
13219 Add prototype for dump(void).
13220 * vr-values.c (set_value_range_to_truthvalue): Pass type to
13222 (vr_values::get_lattice_entry): Set varying even if propagation
13224 Pass type to set_varying.
13225 (vr_values::get_value_range): Remove vr_const_varying.
13226 Reallocate the lattice if needed.
13227 (vr_values::update_value_range): Pass type to set_varying.
13228 (vr_values::extract_range_for_var_from_comparison_expr): Same.
13229 (vr_values::extract_range_from_binary_expr): Same.
13230 (vr_values::extract_range_from_unary_expr): Same.
13231 (vr_values::extract_range_from_cond_expr): Same.
13232 (vr_values::check_for_binary_op_overflow): Same.
13233 (vr_values::extract_range_basic): Same.
13234 (vr_values::extract_range_from_assignment): Same.
13235 (vr_values::vr_values): Increase size of num_vr_values.
13236 (vr_values::extract_range_from_phi_node): Pass type to
13239 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
13242 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
13243 for costs of hard register moves.
13244 (ix86_register_move_cost): Likewise.
13245 * config/i386/i386.h (processor_costs): Move costs of hard
13246 register moves to hard_register. Add int_load, int_store,
13247 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13248 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
13249 for costs of RTL expressions.
13250 * config/i386/x86-tune-costs.h: Move costs of hard register
13251 moves to hard_register. Duplicate int_load, int_store,
13252 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13253 sse_load, sse_store for costs of RTL expressions.
13255 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13257 * target.def (setup_incoming_vararg_bounds): Remove.
13258 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
13259 * doc/tm.texi: Regenerate.
13260 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
13261 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
13262 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13263 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
13265 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13267 MSP430: Fix lines over 80 characters long in
13268 config/msp430/*.{c,h} files
13270 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
13271 specifier in string.
13272 (msp430_select_hwmult_lib): Split line more than 80 characters long.
13273 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
13274 redundant old comment.
13275 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13276 Split line more than 80 characters long.
13277 * config/msp430/msp430.c (msp430_option_override): Likewise.
13278 (msp430_return_in_memory): Likewise.
13279 (msp430_gimplify_va_arg_expr): Likewise.
13280 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
13281 (msp430_legitimate_constant): Likewise.
13282 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
13283 (msp430_attr): Likewise.
13284 (msp430_data_attr): Likewise.
13285 (msp430_start_function): Likewise.
13286 (gen_prefix): Likewise.
13287 (msp430_init_sections): Likewise.
13288 (msp430_select_section): Likewise.
13289 (msp430_function_section): Likewise.
13290 (msp430_unique_section): Likewise.
13291 (msp430_output_aligned_decl_common): Likewise.
13292 (msp430_do_not_relax_short_jumps): Likewise.
13293 (msp430_init_builtins): Likewise.
13294 (msp430_expand_delay_cycles): Likewise.
13295 (msp430_expand_prologue): Likewise.
13296 (msp430_expand_epilogue): Likewise.
13297 (msp430_expand_helper): Likewise.
13298 (msp430_split_movsi): Likewise.
13299 (msp430_print_operand): Likewise.
13300 (msp430_return_addr_rtx): Likewise.
13301 (msp430x_extendhisi): Likewise.
13302 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
13303 (ASM_SPEC): Likewise.
13304 Remove very obvious comments.
13305 (LIB_SPEC): Split line more than 80 characters long.
13306 (EH_RETURN_HANDLER_RTX): Likewise.
13307 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13309 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13311 MSP430: Fix whitespace errors and incorrect indentation in
13312 config/msp430/*.{c,h} files
13314 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
13315 (msp430_select_hwmult_lib): Likewise.
13316 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
13317 (msp430_extract_mcu_data): Likewise.
13318 (struct t_msp430_mcu_data): Likewise.
13319 * config/msp430/msp430.c (struct machine_function): Remove whitespace
13320 before left square bracket.
13321 (msp430_option_override): Fix indentation.
13322 (msp430_hard_regno_nregs_with_padding): Likewise.
13323 (msp430_initial_elimination_offset): Likewise.
13324 (msp430_special_register_convention_p): Remove whitespace before left
13325 square bracket and after exclamation mark.
13326 (msp430_evaluate_arg): Likewise.
13327 (msp430_callee_copies): Fix indentation.
13328 (msp430_gimplify_va_arg_expr): Likewise.
13329 (msp430_function_arg_advance): Remove whitespace before left square
13331 (reg_ok_for_addr): Likewise.
13332 (msp430_preserve_reg_p): Likewise.
13333 (msp430_compute_frame_info): Likewise.
13334 (msp430_asm_output_addr_const_extra): Add space between function name
13335 and open parenthesis.
13336 (has_section_name): Fix indentation.
13337 (msp430_attr): Remove trailing whitespace.
13338 (msp430_section_attr): Likewise.
13339 (msp430_data_attr): Likewise.
13340 (struct msp430_attribute_table): Fix comment and whitespace.
13341 (msp430_start_function): Remove whitespace before left square bracket.
13342 Add space between function name and open parenthesis.
13343 (msp430_select_section): Remove trailing whitespace.
13344 (msp430_section_type_flags): Remove trailing whitespace.
13345 (msp430_unique_section): Remove space before closing parenthesis.
13346 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
13347 (msp430_builtins): Remove whitespace before left square bracket.
13348 (msp430_init_builtins): Fix indentation.
13349 (msp430_expand_prologue): Remove whitespace before left square bracket.
13350 Remove space before closing parenthesis.
13351 (msp430_expand_epilogue): Remove whitespace before left square bracket.
13352 (msp430_split_movsi): Remove space before closing parenthesis.
13353 (helper_function_name_mappings): Fix indentation.
13354 (msp430_use_f5_series_hwmult): Fix whitespace.
13355 (use_32bit_hwmult): Likewise.
13356 (msp430_no_hwmult): Likewise.
13357 (msp430_output_labelref): Remove whitespace before left square bracket.
13358 (msp430_print_operand_raw): Likewise.
13359 (msp430_print_operand_addr): Likewise.
13360 (msp430_print_operand): Add two spaces after '.' in comment.
13361 Fix trailing whitespace.
13362 (msp430x_extendhisi): Fix indentation.
13363 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
13365 (PC_REGNUM): Likewise.
13366 (STACK_POINTER_REGNUM): Likewise.
13367 (CC_REGNUM): Likewise.
13369 2019-08-15 Richard Biener <rguenther@suse.de>
13372 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13374 (general_scalar_chain::make_vector_copies): Use it.
13376 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13378 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13380 2019-08-15 Martin Liska <mliska@suse.cz>
13382 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13383 operators with no arguments.
13384 (eliminate_unnecessary_stmts): Likewise here.
13386 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13388 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13389 <case COMPARE>: Revert 2019-08-14 change.
13390 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13391 for (TARGET_64BIT || mode != DImode).
13393 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13395 * tree-vrp.c (value_range_base::set): Merge in code from
13396 value_range_base::set_and_canonicalize.
13397 Enforce canonicalization at set time.
13398 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13399 (value_range_base::set_undefined): Inline call to set().
13400 (value_range_base::set_varying): Same.
13401 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13402 (vrp_val_max): New argument handle_pointers.
13403 (vrp_val_min): Same.
13404 (ranges_from_anti_range): Same.
13405 (extract_range_into_wide_ints): Use tree argument instead of sign
13407 (extract_range_from_multiplicative_op): Take in tree type instead
13408 of precision and sign. Adapt function for canonicalized ranges.
13409 (extract_range_from_binary_expr): Pass type to
13410 extract_range_from_multiplicative_op.
13411 Adapt for canonicalized ranges.
13412 (extract_range_from_unary_expr): Same.
13413 (value_range_base::intersect_helper): Adjust for canonicalized
13415 (value_range_base::union_helper): Same.
13416 (value_range_base::normalize_symbolics): New.
13417 * tree-vrp.h (class value_range_base): Remove
13418 set_and_canonicalize.
13419 New prototype for normalize_symbolics.
13420 (class value_range): Remove set_and_canonicalize.
13421 (vrp_val_min): Adjust prototype.
13422 (vrp_val_max): Same.
13424 (vr_values::extract_range_for_var_from_comparison_expr): Call set
13425 instead of set_and_canonicalize.
13427 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13429 PR middle-end/91444
13430 * tree-vect-stmts.c (vectorizable_call): Check that the function
13431 is a BUILT_IN_MD function before passing it to
13432 targetm.vectorize.builtin_md_vectorized_function.
13434 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13436 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
13437 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
13438 (aarch64_select_early_remat_modes): Use it.
13440 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13442 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
13443 16 for SVE predicates even if they are fixed-length.
13445 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13447 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
13448 operand order match the MOV /Z alias.
13450 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13452 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
13453 the vector pattern as an aarch64_svpattern argument. Update the
13454 overloaded caller accordingly.
13455 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
13456 (aarch64_output_sve_vector_inc_dec): Likewise.
13458 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13460 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
13461 multiplication case, try to compute VG * (lowest set bit) directly
13462 rather than always basing the multiplication on VG. Use
13463 expand_mult for the multiplication if we can.
13465 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13467 * config/aarch64/aarch64-protos.h
13468 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
13469 (aarch64_sve_inc_dec_immediate_p): Rename to...
13470 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13471 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
13472 (aarch64_output_sve_scalar_inc_dec): Declare.
13473 (aarch64_output_sve_inc_dec_immediate): Rename to...
13474 (aarch64_output_sve_vector_inc_dec): ...this.
13475 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
13476 (aarch64_output_sve_scalar_inc_dec): New functions.
13477 (aarch64_output_sve_addvl_addpl): Remove the base and offset
13478 arguments. Only handle true ADDVL and ADDPL instructions;
13479 don't emit an INC or DEC.
13480 (aarch64_sve_inc_dec_immediate_p): Rename to...
13481 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13482 (aarch64_output_sve_inc_dec_immediate): Rename to...
13483 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
13484 aarch64_sve_vector_inc_dec_immediate_p.
13485 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
13486 (aarch64_sve_plus_immediate): New predicates.
13487 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
13488 rather than aarch64_sve_addvl_addpl_immediate.
13489 (aarch64_sve_inc_dec_immediate): Rename to...
13490 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
13491 aarch64_sve_vector_inc_dec_immediate_p.
13492 (aarch64_sve_add_operand): Update accordingly.
13493 * config/aarch64/constraints.md (Uai): New constraint.
13494 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
13495 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
13496 operand into a register if it satisfies aarch64_sve_plus_immediate.
13497 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
13498 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
13499 * config/aarch64/aarch64-sve.md (add<mode>3): Call
13500 aarch64_output_sve_vector_inc_dec instead of
13501 aarch64_output_sve_inc_dec_immediate.
13503 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13505 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
13506 (UNSPEC_REVW): New constants.
13507 (elem_bits): New mode attribute.
13508 (SVE_INT_UNARY): New int iterator.
13509 (optab): Handle UNSPEC_REV[BHW].
13510 (sve_int_op): New int attribute.
13511 (min_elem_bits): Handle VNx16QI and the predicate modes.
13512 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
13513 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
13514 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
13515 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
13516 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
13517 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
13518 unspecs based on the total width of the reversed data.
13519 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
13520 reinterpret followed by a subreg on big-endian targets.
13522 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13523 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13525 * config/aarch64/aarch64-sve.md
13526 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
13527 alternatives in which one of the inputs is in the same register
13530 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13532 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
13533 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
13535 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13537 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
13538 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
13540 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13541 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13543 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
13544 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
13545 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
13547 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13548 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13550 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
13551 Add an alternative that uses reversed shifts.
13553 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13555 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13558 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13560 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13561 a commutativity marker.
13563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13564 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13566 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13567 (aarch64_prepare_sve_cond_int_fma): Declare.
13568 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13569 (aarch64_prepare_sve_int_fma): New functions.
13570 (aarch64_prepare_sve_cond_int_fma): Likewise.
13571 * config/aarch64/aarch64-sve.md
13572 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13573 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13574 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13575 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13576 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13577 (*madd<mode>): Rename to...
13578 (*fma<mode>4): ...this.
13579 (*msub<mode>): Rename to...
13580 (*fnma<mode>4): ...this.
13582 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13583 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13585 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13586 Print 2.0 naturally.
13587 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13588 * config/aarch64/predicates.md
13589 (aarch64_sve_float_negated_arith_immediate): New predicate,
13590 renamed from aarch64_sve_float_arith_with_sub_immediate.
13591 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13592 positive and negative constants.
13593 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13594 or an aarch64_sve_float_arith_with_sub_immediate.
13595 * config/aarch64/constraints.md (vsN): Use
13596 aarch64_sve_float_negated_arith_immediate.
13597 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13599 (sve_pred_fp_rhs2_immediate): New int attribute.
13600 * config/aarch64/aarch64-sve.md
13601 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13602 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13603 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13604 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13605 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13606 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13611 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13612 (*aarch64_cond_abd<SVE_F:mode>_3)
13613 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13615 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13616 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13618 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13619 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13621 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13622 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13624 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13625 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13626 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13627 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13629 * optabs.h (create_convert_operand_from): Expand comment.
13630 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13631 when mapping scalar rtxes to vector operands.
13632 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13633 ashiftrt and lshiftrt.
13634 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13635 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13636 (*cond_<optab><mode>_any_const): New patterns.
13638 2019-08-15 Martin Liska <mliska@suse.cz>
13641 * cgraph.c (cgraph_node::remove): When setting
13642 n->origin = NULL for all nested functions, reset
13645 2019-08-15 Martin Liska <mliska@suse.cz>
13647 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13650 2019-08-15 Martin Liska <mliska@suse.cz>
13653 * passes.c (order): Remove.
13654 (uid_hash_t): Likewise).
13655 (remove_cgraph_node_from_order): Remove from set
13656 of pointers (cgraph_node *).
13657 (insert_cgraph_node_to_order): New.
13658 (duplicate_cgraph_node_to_order): New.
13659 (do_per_function_toporder): Register all 3 cgraph hooks.
13660 Skip removed_nodes now as we know about all of them.
13662 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13664 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13665 <case E_V8QImode>: Use vector_set path for
13666 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13667 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13668 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13670 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13672 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13674 2019-08-14 Martin Sebor <msebor@redhat.com>
13676 PR tree-optimization/91294
13677 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13678 source length as exact.
13680 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13682 * doc/extend.texi: Add "noinit" attribute documentation.
13683 * doc/sourcebuild.texi: Add noinit effective target documentation.
13684 * varasm.c (default_section_type_flags): Add support for "noinit"
13686 (default_elf_select_section): Add support for "noinit" attribute.
13687 * config/msp430/msp430.c (msp430_attribute_table): Remove
13690 2019-08-14 Richard Biener <rguenther@suse.de>
13691 Uroš Bizjak <ubizjak@gmail.com>
13694 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13696 (scalar_chain::smode): New member.
13697 (scalar_chain::vmode): Likewise.
13698 (dimode_scalar_chain): Rename to...
13699 (general_scalar_chain): ... this.
13700 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13701 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13702 base with TImode and V1TImode.
13703 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13704 (general_scalar_chain::vector_const_cost): Adjust for SImode
13706 (general_scalar_chain::compute_convert_gain): Likewise. Add
13707 {S,U}{MIN,MAX} support.
13708 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13709 (general_scalar_chain::make_vector_copies): Likewise. Handle
13710 non-DImode chains appropriately.
13711 (general_scalar_chain::convert_reg): Likewise.
13712 (general_scalar_chain::convert_op): Likewise.
13713 (general_scalar_chain::convert_insn): Likewise. Add
13714 fatal_insn_not_found if the result is not recognized.
13715 (convertible_comparison_p): Pass in the scalar mode and use that.
13716 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13717 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13718 (scalar_to_vector_candidate_p): Remove by inlining into single
13720 (general_remove_non_convertible_regs): Rename from
13721 dimode_remove_non_convertible_regs.
13722 (remove_non_convertible_regs): Remove by inlining into single caller.
13723 (convert_scalars_to_vector): Handle SImode and DImode chains
13724 in addition to TImode chains.
13725 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13726 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13727 (*<maxmin>di3_doubleword): Likewise.
13729 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13730 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13732 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13733 (*cond_bic<mode>_any): New patterns.
13735 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13737 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13738 take the equivalent mask, as well as a bit count.
13739 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13740 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13741 (aarch64_sve_pred_and_operand): New predicates.
13742 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13744 * config/aarch64/aarch64-sve.md
13745 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13746 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13748 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13750 * config/aarch64/aarch64-sve.md
13751 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13752 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13755 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13756 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13758 * config/aarch64/aarch64-sve.md
13759 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13760 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13762 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13763 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13765 * config/aarch64/aarch64-sve.md
13766 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13767 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13769 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13771 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13772 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13775 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13776 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13778 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13780 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13781 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13783 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13784 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13785 (aarch64_print_operand): Add support for %I.
13786 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13787 Bitcast floating-point constants to the corresponding integer constant.
13788 (aarch64_float_const_representable_p): Handle vectors as well
13790 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13791 for the new vcond_mask_<mode><vpred> expander.
13792 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13793 test aarch64_float_const_representable_p.
13794 (aarch64_sve_reg_or_dup_imm): New predicate.
13795 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13796 gen_vcond_mask_<mode><vpred> instead of
13797 gen_aarch64_sve_dup<mode>_const.
13798 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13799 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13800 for operands 1 and 2 respectively. Force operand 2 into a
13801 register if operand 1 is a register. Fold old define_insn...
13802 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13803 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13804 floating-point constants that can be moved as integers. Add
13805 alternatives for MOV /M and FMOV /M.
13806 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13807 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13808 1 and 2 respectively.
13809 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13811 (vss): New constraint.
13813 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13815 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13816 (aarch64_sve_float_maxmin_operand): New predicates.
13817 * config/aarch64/constraints.md (vsB): New constraint.
13819 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13820 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13821 UNSPEC_COND_FMINNM.
13822 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13823 Use aarch64_sve_float_maxmin_operand for operand 2.
13824 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13825 Add alternatives for the constant forms.
13827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13829 * config/aarch64/constraints.md (vsb): New constraint.
13830 (vsm): Generalize description.
13831 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13833 (sve_imm_con): Handle smax, smin, umax and umin.
13834 (sve_imm_prefix): New code attribute.
13835 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13836 (aarch64_sve_vsb_operand): New predicates.
13837 (aarch64_sve_mul_immediate): Rename to...
13838 (aarch64_sve_vsm_immediate): ...this.
13839 (aarch64_sve_mul_operand): Rename to...
13840 (aarch64_sve_vsm_operand): ...this.
13841 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13842 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13843 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13844 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13845 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13846 add movprfx support for the immediate alternatives.
13847 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13849 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13852 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13854 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13855 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13856 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13858 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13860 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13861 (optab, sve_int_op): Handle them.
13862 * config/aarch64/aarch64-sve.md: Expand comment.
13864 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13866 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13867 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13868 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13870 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13872 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13873 (aarch64_expand_sve_const_pred_trn): New functions.
13874 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13875 use the above functions when the parameter is true.
13876 (aarch64_expand_sve_const_pred): Update call accordingly.
13877 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13879 (@aarch64_sve_<perm_insn><mode>): ...this.
13881 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13883 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13885 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13886 (aarch64_sve_emit_int_cmp): New functions.
13887 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13888 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13889 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13890 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13891 (UNSPEC_PRED_Z): New unspec.
13892 (set_clobber_cc_nzc): Delete.
13893 * config/aarch64/aarch64-sve.md: Add a block comment about
13895 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13896 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13897 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13898 UNSPEC_MERGE_PTRUE.
13899 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13900 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13901 check for compatible predicates.
13902 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13903 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13904 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13907 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13909 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13910 * config/aarch64/aarch64-sve.md: Add a section describing it.
13911 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13912 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13913 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13914 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13915 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13916 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13917 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13918 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13919 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13920 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13921 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13922 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13923 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13924 (aarch64_evpc_rev_local): Update accordingly.
13926 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13928 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13930 (SVE_BHSI, SVE_SDI): Tweak comment.
13931 (SVE_HSDI): Likewise. Fix definition.
13932 (SVE_SDF): New mode iterator.
13933 (elem_bits): New mode attribute.
13934 (SVE_COND_FCVT): New int iterator.
13935 * config/aarch64/aarch64-sve.md
13936 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13937 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13938 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13939 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13940 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13941 ...these new patterns.
13942 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13943 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13944 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13946 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13947 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13948 ...these new patterns.
13949 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13950 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13951 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13952 ...this new pattern.
13953 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13954 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13955 ...this new pattern.
13956 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13958 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13960 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13961 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13962 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13964 (optab, su): Handle them.
13965 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13966 * config/aarch64/aarch64-sve.md
13967 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13968 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13969 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13970 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13971 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13972 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13973 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13974 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13975 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13977 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13978 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13979 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13980 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13981 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13982 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13983 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13984 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13985 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13986 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13987 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13988 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13989 of UNSPEC_FLOAT_CONVERT.
13990 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13991 aarch64_sve_extend<mode><Vwide>2.
13993 2019-08-14 Richard Biener <rguenther@suse.de>
13996 * config/i386/i386-features.c
13997 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13998 individual instruction gain. Fix reg-reg copy GRP cost. Use
13999 ix86_cost->sse_op for vector instruction costs.
14001 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14003 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14004 (cmp_op): Handle it.
14005 (SVE_COND_FP_CMP): Rename to...
14006 (SVE_COND_FP_CMP_I0): ...this.
14007 (SVE_FP_CMP): Remove.
14008 * config/aarch64/aarch64-sve.md
14009 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14010 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14011 using unspecs to represent the comparison.
14012 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14013 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14015 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14016 (aarch64_unspec_cond_code): Move after integer code. Handle
14018 (aarch64_emit_sve_predicated_cond): Replace with...
14019 (aarch64_emit_sve_fp_cond): ...this new function.
14020 (aarch64_emit_sve_or_conds): Replace with...
14021 (aarch64_emit_sve_or_fp_conds): ...this new function.
14022 (aarch64_emit_sve_inverted_cond): Replace with...
14023 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14024 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14026 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14028 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14029 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14030 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14031 SVE_HSD instead of SVE_SD.
14033 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14034 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14036 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14038 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14040 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14041 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14042 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14043 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14044 (*div<SVE_F:mode>3): Generalize to...
14045 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14047 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14048 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14050 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14052 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14054 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14056 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14058 * config/aarch64/aarch64-sve.md: Add a block comment about the
14059 handling of predicated FP operations.
14060 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14061 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14062 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14063 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14064 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14066 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14067 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14069 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14070 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14071 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14072 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14073 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14074 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14075 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14076 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14077 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14078 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14079 strictness operands. Use aarch64_sve_pred_dominates_p to check
14080 whether the predicate on the conditional operation is suitable
14081 for merging. Split patterns into the canonical equal-predicate form.
14082 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14083 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14085 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14086 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14088 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14089 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14090 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14092 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14093 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14096 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14097 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14099 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14100 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14101 actually has, rather than relying on REG_EQUAL notes.
14102 Make the insn operand order match the SVE operand order.
14103 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14104 the SVE operand order.
14106 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14108 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14109 (aarch64_emit_set_immediate): Likewise.
14110 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14111 (aarch64_pfalse_reg): Likewise.
14112 (aarch64_convert_sve_data_to_pred): New function.
14113 (aarch64_sve_move_pred_via_while): Take an optional target register
14114 and the required register mode.
14115 (aarch64_expand_sve_const_pred_1): New function.
14116 (aarch64_expand_sve_const_pred): Likewise.
14117 (aarch64_expand_mov_immediate): Build an all-true predicate
14118 if the significant bits of the immediate are all true. Use
14119 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14120 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14121 before register allocation.
14122 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14123 a VNx16BI PTRUE when splitting the memory alternative.
14124 (vec_duplicate<mode>): Update accordingly.
14125 (*pred_cmp<cmp_op><mode>): Rename to...
14126 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14128 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14130 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14131 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14132 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14133 (UNSPEC_PTEST): New unspec.
14134 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14135 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14136 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14137 * config/aarch64/aarch64-sve.md: Add a new section describing the
14138 handling of UNSPEC_PTEST.
14139 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14140 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14141 (ptest_ptrue<mode>): Replace with...
14142 (aarch64_ptest<mode>): ...this new pattern.
14143 (cbranch<mode>4): Update after above changes.
14144 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14145 UNSPEC_PTEST_PTRUE.
14146 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14147 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14148 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14150 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14153 * builtins.c (builtin_with_linkage_p): New function.
14154 * builtins.h (builtin_with_linkage_p): New function.
14155 * symtab.c (write_symbol): Remove redundant assert.
14156 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14157 Remove FIXME and use builtin_with_linkage_p.
14159 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14161 PR middle-end/91421
14162 * tree-core.h (function_decl::function_code): Change type to
14164 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14165 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14166 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14167 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14168 is BUILT_IN_NORMAL.
14169 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14170 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14171 (fndecl_built_in_p): Change the type of the "name" argument to
14173 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14174 after check for DECL_BUILT_IN_CLASS.
14175 * cgraphclones.c (build_function_decl_skip_args): Use
14176 set_decl_built_in_function.
14177 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14178 * ipa-split.c (split_function): Likewise.
14179 * langhooks.c (add_builtin_function_common): Likewise.
14180 * omp-simd-clone.c (simd_clone_create): Likewise.
14181 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14182 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14183 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14184 DECL_FUNCTION_CODE.
14185 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14186 instead of DECL_FUNCTION_CODE.
14187 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14188 instead of DECL_FUNCTION_CODE.
14189 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14190 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14191 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14192 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14193 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14194 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14195 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14196 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
14197 (alpha_gimple_fold_builtin): Likewise.
14198 * config/arc/arc.c (arc_expand_builtin): Likewise.
14199 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
14200 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
14201 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
14202 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
14203 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
14204 * config/frv/frv.c (frv_expand_builtin): Likewise.
14205 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
14206 (gcn_expand_builtin): Likewise.
14207 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
14208 (fold_builtin_cpu): Likewise.
14209 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
14210 * config/i386/i386.c (ix86_fold_builtin): Likewise.
14211 (ix86_gimple_fold_builtin): Likewise.
14212 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
14213 (ia64_expand_builtin): Likewise.
14214 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
14215 * config/mips/mips.c (mips_expand_builtin): Likewise.
14216 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
14217 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14218 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
14219 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
14220 * config/pa/pa.c (pa_expand_builtin): Likewise.
14221 * config/pru/pru.c (pru_expand_builtin): Likewise.
14222 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
14223 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14225 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
14226 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
14227 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
14228 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
14229 (rs6000_builtin_reciprocal): Likewise.
14230 * config/rx/rx.c (rx_expand_builtin): Likewise.
14231 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14232 * config/s390/s390.c (s390_expand_builtin): Likewise.
14233 * config/sh/sh.c (sh_expand_builtin): Likewise.
14234 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
14235 (sparc_fold_builtin): Likewise.
14236 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14237 * config/spu/spu.c (spu_expand_builtin): Likewise.
14238 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
14239 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
14240 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
14241 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14242 (xtensa_expand_builtin): Likewise.
14244 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14246 PR middle-end/91421
14247 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
14248 before the DECL_FUNCTION_CODE.
14249 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
14250 to check for a BUILT_IN_ALLOCA call.
14251 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
14252 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
14253 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
14254 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14255 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
14256 for BUILT_IN_NORMAL functions.
14257 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
14258 test for BUILT_IN_TM_ABORT.
14259 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
14260 to check for a BUILT_IN_STACK_RESTORE call.
14261 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
14262 * tree-ssa-threadedge.c
14263 (record_temporary_equivalences_from_stmts_at_dest): Check for a
14264 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
14265 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
14266 test for a BUILT_IN_NORMAL call instead of a negative test for
14267 an internal function call.
14269 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14271 * tree.h (build_vector_a_then_b): Declare.
14272 * tree.c (build_vector_a_then_b): New function.
14273 * fold-const-call.c (fold_while_ult): Likewise.
14274 (fold_const_call): Use it to handle IFN_WHILE_ULT.
14275 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
14276 (aarch64_svpattern): New enum.
14277 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
14278 constants through aarch64_expand_mov_immediate.
14279 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
14280 than general_operand as the predicate for operand 1.
14281 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
14282 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
14284 (simd_immediate_info::simd_immediate_info): New overload that
14285 takes a scalar_int_mode and an svpattern.
14286 (simd_immediate_info::u): Add a "pattern" field.
14287 (svpattern_token): New function.
14288 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
14289 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
14290 (aarch64_sve_move_pred_via_while): New functions.
14291 (aarch64_expand_mov_immediate): Try using
14292 aarch64_sve_move_pred_via_while for predicates that contain N ones
14293 followed by M zeros but that do not correspond to a VLnnn pattern.
14294 (aarch64_sve_pred_valid_immediate): New function.
14295 (aarch64_simd_valid_immediate): Use it instead of dealing directly
14296 with PTRUE and PFALSE.
14297 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
14300 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
14302 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
14304 (darwin_override_options): Likewise.
14305 * config/darwin.h: Likewise.
14306 * config/darwin.opt: Likewise.
14307 * config/i386/i386.c (output_pic_addr_const): Likewise.
14308 * config/rs6000/darwin.h: Likewise.
14309 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
14310 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
14311 ... this TARGET_MACHO_SYMBOL_STUBS.
14312 (FUNCTION_PROFILER):Likewise.
14313 * config/i386/i386.h: Likewise.
14315 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14317 * config/i386/i386-expand.c (ix86_expand_vector_extract)
14318 <case E_V2SImode>: Use vec_extr path for
14319 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14320 <case E_V8QImode>: Ditto.
14321 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
14322 Use SWI48 mode iterator. Use %k to output operand 0.
14323 (*mmx_pextrw): New insn pattern.
14324 (*mmx_pextrb): Ditto.
14325 (*mmx_pextrb_zext): Ditto.
14327 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
14329 * target.def (libc_has_function, libc_has_fast_function): Improve
14330 documentation strings.
14331 * doc/tm.texi: Regenerate.
14333 2019-08-13 Caroline Tice <cmtice@google.com>
14336 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
14337 vtv_end.o or vtv_end_preinit.o files if !static.
14339 2019-08-13 Olivier Hainque <hainque@adacore.com>
14341 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
14343 2019-08-13 Olivier Hainque <hainque@adacore.com>
14345 * rtlanal.c (tablejump_casesi_pattern): New function, to
14346 determine if a tablejump insn is a casesi dispatcher. Extracted
14347 from patch_jump_insn.
14348 * rtl.h (tablejump_casesi_pattern): Declare.
14349 * cfgrtl.c (patch_jump_insn): Use it.
14350 * dwarf2cfi.c (create_trace_edges): Use it.
14352 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14355 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
14356 operand is larger than a long int.
14358 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14360 * machmode.h (opt_mode::else_mode): New function.
14361 (opt_mode::else_blk): Use it.
14362 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
14363 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
14364 (aarch64_gen_stepped_int_parallel): Likewise.
14365 (aarch64_stepped_int_parallel_p): Likewise.
14366 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14368 * config/aarch64/aarch64.c
14369 (aarch64_expand_sve_widened_duplicate): Delete.
14370 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14371 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14372 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14373 argument. Use early returns in the !CONST_INT_P handling.
14374 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14375 than handling some inline.
14376 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14378 (aarch64_simd_container_mode): ...here.
14379 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14380 (aarch64_sve_ld1rq_operand_p): New functions.
14381 * config/aarch64/predicates.md (descending_int_parallel)
14382 (aarch64_sve_ld1rq_operand): New predicates.
14383 * config/aarch64/constraints.md (UtQ): New constraint.
14384 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14385 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14386 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14387 (@aarch64_sve_reinterpret<mode>): New expander.
14388 (*aarch64_sve_reinterpret<mode>): New pattern.
14389 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14390 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14391 (*sve_ld1rq<Vesize>): Replace with...
14392 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14394 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14396 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14399 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14401 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14402 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14403 (msp430_check_path_for_devices): New.
14404 (parse_devices_csv_1): New.
14405 (parse_devices_csv): New.
14406 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14407 MCU data in devices.csv before using the hard-coded data.
14408 Warn if devices.csv isn't found and the MCU wasn't found in the
14409 hard-coded data either.
14410 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14411 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
14412 Search for devices.csv on -I and -L paths.
14413 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
14414 msp430_set_driver_var.
14415 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
14416 -mdevices-csv-loc=.
14417 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
14418 searched for devices.csv.
14419 (mwarn-devices-csv): Document option.
14421 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14423 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
14424 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
14425 Use a single Dn alternative instead of separate Dz and Dm
14426 alternatives. Use aarch64_output_sve_move_immediate.
14427 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
14429 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
14430 for predicates too.
14431 (aarch64_output_sve_mov_immediate): Handle predicate modes.
14432 (aarch64_output_ptrue): Delete.
14434 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14436 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
14438 (simd_immediate_info::value, simd_immediate_info::step)
14439 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
14441 (simd_immediate_info::u): ...this new union.
14442 (simd_immediate_info::simd_immediate_info): Update accordingly.
14443 (aarch64_output_simd_mov_immediate): Likewise.
14444 (aarch64_output_sve_mov_immediate): Likewise.
14446 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14448 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
14450 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
14451 (msp430_select_cpu): New spec function.
14452 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
14454 * config/msp430/msp430-devices.c: New file.
14455 * config/msp430/msp430-devices.h: New file.
14456 * config/msp430/msp430.c: Remove msp430_mcu_data.
14457 (msp430_option_override): Use msp430_extract_mcu_data to extract
14459 (msp430_use_f5_series_hwmult): Likewise.
14460 (use_32bit_hwmult): Likewise.
14461 (msp430_no_hwmult): Likewise.
14462 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
14464 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
14466 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
14467 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
14468 Remove hard-coded MCU multilib data.
14470 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14472 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
14473 based on the mode instead of testing properties of it.
14475 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14477 * doc/md.texi: Document the x and y constraints for AArch64.
14478 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
14479 (FP_LO8_REGS): New reg_class.
14480 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
14481 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
14482 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
14483 * config/aarch64/predicates.md (aarch64_simd_register): Use
14484 FP_REGNUM_P instead of checking the classes manually.
14485 * config/aarch64/constraints.md (y): New constraint.
14487 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14489 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
14490 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
14491 * config/aarch64/aarch64-simd.md
14492 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
14493 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
14494 from the asm template.
14495 * config/aarch64/aarch64-sve.md
14496 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
14497 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
14498 from the asm template.
14499 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
14500 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
14501 from the asm template.
14502 * config/aarch64/aarch64-simd-builtins.def: Update comment.
14504 2019-08-13 Martin Liska <mliska@suse.cz>
14506 * value-prof.c (gimple_ic_transform): Add new line.
14507 Print details with MSG_NOTE.
14509 2019-08-13 Martin Liska <mliska@suse.cz>
14511 * doc/invoke.texi: Document automatic detection of jobserver.
14512 * lto-wrapper.c (run_gcc): Detect jobserver always.
14514 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14516 * config/i386/i386-expand.c (ix86_expand_vector_set)
14517 <case E_V2SImode>: Use vec_merge path for
14518 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14519 <case E_V8QImode>: Ditto.
14520 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
14521 (*mmx_pinsrb): Ditto.
14523 2019-08-12 Jakub Jelinek <jakub@redhat.com>
14527 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
14528 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
14529 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
14530 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
14531 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
14533 2019-08-12 Richard Biener <rguenther@suse.de>
14536 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
14539 2019-08-12 Richard Biener <rguenther@suse.de>
14542 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
14543 lang_mask option, always use CL_DRIVER.
14544 (get_options_from_collect_gcc_options): Adjust.
14545 (find_and_merge_options): Likewise.
14546 (run_gcc): Likewise.
14548 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14550 * ipa-predicate.c (add_condition): Restore inverted test.
14552 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14554 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14555 (enum omp_clause_device_type_kind): New enum.
14556 (struct tree_omp_clause): Add subcode.device_type_kind.
14557 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14558 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14559 for device_type clause.
14560 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14561 * tree-pretty-print.c (dump_omp_clause): Likewise.
14564 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14567 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14569 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14570 handling spilled pseudos.
14572 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14575 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14576 to preserve the contents of the original insns.
14578 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14580 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14581 (addsi3_compare_op2): Likewise.
14583 2019-08-09 Martin Liska <mliska@suse.cz>
14585 * alias.c (alias_ptr_types_compatible_p): Strengten
14586 type comparison in LTO mode.
14588 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14590 PR middle-end/90313
14591 * tree-tailcall.c (find_tail_calls): Reject calls that might
14592 read from an escaped RESULT_DECL.
14594 2019-08-09 Martin Liska <mliska@suse.cz>
14596 * doc/invoke.texi: Document the option value.
14597 * lto-wrapper.c (run_gcc): Set auto_parallel
14598 only with -flto=auto.
14600 2019-08-09 Martin Liska <mliska@suse.cz>
14602 * opts.c (common_handle_option): Error for an invalid argument
14605 2019-08-09 Martin Liska <mliska@suse.cz>
14607 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14608 use dump_printf to report optimization.
14609 (sem_variable::merge): Likwise.
14610 (sem_item_optimizer::merge_classes): Use dump_printf to report
14613 2019-08-09 Martin Liska <mliska@suse.cz>
14615 * value-prof.c (gimple_divmod_fixed_value_transform):
14616 Use dump_printf_loc.
14617 (gimple_mod_pow2_value_transform): Likewise.
14618 (gimple_mod_subtract_transform): Likewise.
14619 (init_node_map): Likewise.
14620 (gimple_ic_transform): Likewise.
14621 (gimple_stringops_transform): Likewise.
14623 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14625 * doc/extend.texi: Add const qualifier to ld intrinsics.
14627 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14629 * config/rs6000/dfp.md (D64_D128): Rename to ...
14630 (DDTD): ... this, throughout.
14631 (dfp_suffix): Rename to ...
14632 (q): ... this, throughout.
14634 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14636 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14637 (dfp_suffix): Ditto.
14638 (adddd3, addtd3): Merge to ...
14639 (add<mode>3 for D64_D128): ... this.
14640 (subdd3, subtd3): Merge to ...
14641 (sub<mode>3 for D64_D128): ... this.
14642 (muldd3, multd3): Merge to ...
14643 (mul<mode>3 for D64_D128): ... this.
14644 (divdd3, divtd3): Merge to ...
14645 (div<mode>3 for D64_D128): ... this.
14646 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14647 (*cmp<mode>_internal1 for D64_D128): ... this.
14648 (ftruncdd2, ftrunctd2): Merge to ...
14649 (ftrunc<mode>2 for D64_D128): ... this.
14650 (fixdddi2, fixtddi2): Merge to ...
14651 (fix<mode>di2 for D64_D128): ... this.
14653 2019-08-08 Jim Wilson <jimw@sifive.com>
14656 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14657 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14658 Pass into recursive call.
14659 (riscv_flatten_aggregate_argument): New arg. Pass to
14660 riscv_flatten_aggregate_field.
14661 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14662 riscv_flatten_aggregate_argument twice, with false and true as last
14663 arg. Process result twice. Compare results and warn if different.
14664 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14666 2019-08-08 Martin Liska <mliska@suse.cz>
14669 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14670 * lto-wrapper.c (jobserver_active_p): Likewise.
14672 2019-08-08 Martin Liska <mliska@suse.cz>
14674 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14675 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14676 (create_version_clone_with_body): Likewise.
14678 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14680 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14681 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14682 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14683 GOVD_EXPLICIT flags.
14684 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14685 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14686 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14687 call install_var_field with mask 11 instead of 3.
14688 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14689 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14691 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14693 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14694 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14696 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14698 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14699 MOVPRFX alternatives. Make the GPR alternatives more expensive
14702 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14704 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14705 Disparage the GPR alternative relative to the FPR one.
14706 Fix handling of 8-bit and 16-bit FPR values.
14708 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14710 * config/aarch64/iterators.md (BITWISEV): Delete.
14711 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14712 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14713 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14714 UNSPEC_FMINNMV, UNSPEC_FMINV.
14715 (bit_reduc_op): Delete.
14716 (sve_int_op): New int attribute.
14717 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14718 UNSPEC_FMINNMV, UNSPEC_FMINV.
14719 * config/aarch64/aarch64-sve.md
14720 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14721 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14722 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14723 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14724 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14725 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14727 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14728 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14729 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14730 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14731 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14734 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14736 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14737 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14738 (fms<mode>4, *fms<mode>4): Replace with...
14739 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14740 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14741 Use unspecs instead of rtx codes.
14742 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14743 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14745 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14747 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14749 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14750 * config/aarch64/aarch64-sve.md
14751 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14752 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14753 use a single unspec for the rhs.
14754 (*<su><maxmin><mode>3): Delete.
14755 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14757 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14759 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14760 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14761 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14762 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14763 (optab, sve_fp_op): Handle them.
14764 (SVE_FP_UNARY): Delete.
14765 (optab): Remove sqrt entry.
14766 (sve_fp_op): Remove neg, abs and sqrt entries.
14767 (SVE_COND_FP_UNARY): New int iterator.
14768 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14769 (*<frint_pattern><mode>2): Delete.
14770 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14771 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14772 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14773 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14775 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14777 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14779 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14781 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14782 (UNSPEC_COND_FADD): ...this.
14783 (UNSPEC_COND_SUB): Rename to...
14784 (UNSPEC_COND_FSUB): ...this.
14785 (UNSPEC_COND_MUL): Rename to...
14786 (UNSPEC_COND_FMUL): ...this.
14787 (UNSPEC_COND_DIV): Rename to...
14788 (UNSPEC_COND_FDIV): ...this.
14789 (UNSPEC_COND_MAX): Rename to...
14790 (UNSPEC_COND_FMAXNM): ...this.
14791 (UNSPEC_COND_MIN): Rename to...
14792 (UNSPEC_COND_FMINNM): ...this.
14793 (UNSPEC_COND_LT): Rename to...
14794 (UNSPEC_COND_FCMLT): ...this.
14795 (UNSPEC_COND_LE): Rename to...
14796 (UNSPEC_COND_FCMLE): ...this.
14797 (UNSPEC_COND_EQ): Rename to...
14798 (UNSPEC_COND_FCMEQ): ...this.
14799 (UNSPEC_COND_NE): Rename to...
14800 (UNSPEC_COND_FCMNE): ...this.
14801 (UNSPEC_COND_GE): Rename to...
14802 (UNSPEC_COND_FCMGE): ...this.
14803 (UNSPEC_COND_GT): Rename to...
14804 (UNSPEC_COND_FCMGT): ...this.
14805 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14806 (sve_fp_op_rev): Update accordingly.
14807 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14809 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14811 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14813 * config/aarch64/check-sve-md.awk: New file.
14814 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14815 (insn-conditions.md): Depend on it.
14817 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14820 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14821 (*negsi2_cmpz_zext): Ditto.
14823 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14825 * config/aarch64/iterators.md (commutative): Remove.
14827 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14830 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14831 processing COLLECT_GCC_OPTIONS.
14832 (run_gcc): Likewise.
14834 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14836 PR tree-optimization/91109
14837 * lra-remat.c (update_scratch_ops): Remove assignment of the
14840 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14842 * data-streamer.h (streamer_write_poly_uint64): Declare.
14843 (streamer_read_poly_uint64): Likewise.
14844 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14845 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14846 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14847 (add_condition): Take a poly_int64 size.
14848 * ipa-predicate.c (add_condition): Likewise.
14849 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14850 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14851 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14852 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14853 condition::size as a poly_int64.
14854 (unmodified_parm_1): Take a poly_int64 size pointer.
14855 (unmodified_parm): Likewise.
14856 (unmodified_parm_or_parm_agg_item): Likewise.
14857 (set_cond_stmt_execution_predicate): Update accordingly.
14858 (set_switch_stmt_execution_predicate): Likewise.
14859 (will_be_nonconstant_expr_predicate): Likewise.
14860 (will_be_nonconstant_predicate): Likewise.
14861 (inline_read_section): Stream condition::size as a poly_int.
14862 (ipa_fn_summary_write): Likewise.
14864 2019-08-07 Martin Liska <mliska@suse.cz>
14866 * fold-const.c (twoval_comparison_p): Replace int
14867 with bool as a return type.
14868 (simple_operand_p): Likewise.
14869 (operand_equal_p): Replace int with bool as a return type.
14870 * fold-const.h (operand_equal_p): Likewise.
14872 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14874 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14875 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14876 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14877 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14878 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14879 * tree-pretty-print.c (dump_omp_clause): Likewise.
14880 * tree-nested.c (convert_nonlocal_omp_clauses,
14881 convert_local_omp_clauses): Likewise.
14882 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14884 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14885 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14886 clause with array or reference to array types, no matter what type
14887 except for reference it has.
14889 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14891 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14893 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14895 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14896 (arch_canonicalize): Support rv32g and rv64g and fix error
14899 2019-08-06 Martin Liska <mliska@suse.cz>
14901 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14902 and DECL_IS_OPERATOR_DELETE_P.
14904 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14906 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14907 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14908 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14909 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14910 (gimplify_omp_for): Don't do C++ random access iterator clause
14911 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14912 don't predetermine the artificial iterator in case of C++ random
14913 access iterators as lastprivate, but private. For OMP_LOOP, force
14914 bind expr around simd body and force for_pre_body before the
14915 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14916 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14917 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14918 diff var of C++ random access iterators. Handle
14919 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14920 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14921 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14922 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14923 * omp-low.c (lower_rec_input_clauses): For
14924 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14925 variables instead of default constructing them.
14926 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14927 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14928 is_taskloop_ctx check from the assert to the guarding condition.
14930 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14932 * config/riscv/multilib-generator: (canonical_order): New.
14933 (arch_canonicalize): Dito.
14934 Apply arch_canonicalize for alts.
14936 2019-08-05 Martin Sebor <msebor@redhat.com>
14938 * doc/extend.texi (Common Variable Attributes): Document alias
14941 2019-08-05 Marek Polacek <polacek@redhat.com>
14943 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14944 * doc/invoke.texi: Document -Wcomma-subscript.
14946 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14948 * tree-core.h (tree_function_decl): Make function_code an
14949 independent field. Group the remaining bitfields into bytes
14950 and move decl_type so that it contines to be at a byte boundary.
14951 Leave 12 bits for future expansion.
14953 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14955 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14956 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14957 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14960 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14962 * gimple.h (gimple_move_vops): Declare.
14963 * gimple.c (gimple_move_vops): New function
14964 * gimple-fold.c (replace_call_with_call_and_fold)
14965 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14966 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14967 (gimple_fold_call): Use it.
14968 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14969 * tree-call-cdce.c (use_internal_fn): Likewise.
14970 * tree-if-conv.c (predicate_load_or_store): Likewise.
14971 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14972 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14973 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14974 (update_call_from_tree): Likewise.
14975 * tree-vect-stmts.c (vectorizable_load): Likewise.
14976 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14978 2019-08-05 Martin Liska <mliska@suse.cz>
14981 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14982 with not arguments.
14983 (eliminate_unnecessary_stmts): Likewise.
14985 2019-08-05 Richard Biener <rguenther@suse.de>
14987 PR middle-end/91169
14988 * fold-const.c (get_array_ctor_element_at_index): Create
14989 offset_ints according to the sign of the index type and treat
14990 that as signed if it is obviously so.
14992 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14995 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14996 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14997 _mm256_storeu2_m128i): New function.
14999 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15001 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15002 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15004 2019-08-05 Alan Modra <amodra@gmail.com>
15007 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15008 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15010 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15012 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15013 bug that was fixed in Tcl 8.6.1.
15015 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15017 * config/rs6000/future.md: New file.
15018 * config/rs6000/rs6000.md: Include future.md.
15019 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15021 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15023 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15024 check to use targetm.slow_unaligned_access instead.
15026 * function.c (assign_param_data_one): Remove unused data members.
15028 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15030 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15031 build_distinct_type_copy.
15032 (simd_clone_adjust_argument_types): Ditto.
15033 (simd_clone_adjust): Call build_distinct_type_copy here.
15034 (expand_simd_clones): Ditto.
15036 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15039 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15041 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15043 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15044 from 'const void *'.
15045 (sort_locs_in_loop_postorder_cmp): Likewise.
15047 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15049 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15050 (hot-bb-count-ws-permille): Likewise.
15051 (hot-bb-frequency-fraction): Likewise.
15052 (unlikely-bb-count-fraction): Likewise.
15053 * params.def (hot-bb-count-fraction): Rework description.
15054 (hot-bb-count-ws-permille): Likewise.
15055 (hot-bb-frequency-fraction): Likewise.
15056 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15057 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15059 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15062 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15065 2019-08-02 Richard Biener <rguenther@suse.de>
15067 * vec.h (vec::sort): Add gcc_qsort_r support.
15068 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15069 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15070 to gcc_qsort_r style callback.
15071 (sort_locs_in_loop_postorder_cmp): Likewise.
15072 (analyze_memory_references): Use gcc_sort_r interfaces.
15073 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15075 2019-08-02 Martin Liska <mliska@suse.cz>
15078 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15079 to detect working job server.
15080 (driver::detect_jobserver): Test whether jobserver
15081 is active from GCC driver. That will prevent situation where
15082 GCC is invoked from a LD plugin and the linker already uses
15083 file descriptors suggested by make. That leads to a wrong
15085 * gcc.h (driver): Add detect_jobserver.
15086 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15087 not scanning for --jobserver-auth prefix.
15089 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15091 PR tree-optimization/91201
15092 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15093 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15096 2019-08-01 Martin Sebor <msebor@redhat.com>
15099 * tree.c (type_initializer_zero_p): Define.
15100 * tree.h (type_initializer_zero_p): New function.
15102 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15104 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15106 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15108 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15109 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15110 * predict.c (maybe_hot_count_p): Likewise.
15111 (maybe_hot_bb_p): Tweak comment.
15112 (maybe_hot_edge_p): Likewise.
15113 (probably_never_executed): Likewise. Minor tweak.
15114 (probably_never_executed_bb_p): Likewise.
15115 (unlikely_executed_edge_p): Likewise.
15116 (probably_never_executed_edge_p): Likewise.
15117 (optimize_function_for_size_p): Likewise.
15118 (optimize_function_for_speed_p): Likewise.
15119 (function_optimization_type): Likewise.
15120 (optimize_bb_for_size_p): Likewise.
15121 (optimize_bb_for_speed_p): Likewise.
15122 (bb_optimization_type): Likewise.
15123 (optimize_edge_for_size_p): Likewise.
15124 (optimize_edge_for_speed_p): Likewise.
15125 (optimize_insn_for_size_p): Likewise.
15126 (optimize_insn_for_speed_p): Likewise.
15127 (optimize_loop_for_size_p): Likewise.
15128 (optimize_loop_for_speed_p): Likewise.
15129 (optimize_loop_nest_for_speed_p): Likewise.
15130 (optimize_loop_nest_for_size_p): Likewise.
15131 (predictable_edge_p): Likewise.
15132 (handle_missing_profiles): Minor tweak.
15134 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15136 * config/rs6000/predicates.md (pcrel_external_address): Update
15139 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15142 * config/i386/mmx.md (usadv8qi): New expander.
15144 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15147 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15148 with reserved names that are in a system header.
15150 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15152 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15153 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15154 (*vec_extractv2si_0_zext): Ditto.
15155 (*vec_extractv2si_1): Add (rm,x) alternative.
15156 (*vec_extractv2si_1_zext): New insn pattern.
15157 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15160 2019-08-01 Richard Biener <rguenther@suse.de>
15162 * domwalk.c (bb_postorder): Remove static variable.
15163 (cmp_bb_postorder): Adjust.
15164 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15165 (dom_walker::walk): Adjust.
15167 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15169 * sort.cc (sort_r_ctx): New struct.
15170 (reorder23): Make templated on context type.
15171 (reorder45): Ditto.
15172 (cmp1): Ditto. Adjust signature.
15174 (mergesort): Ditto.
15175 [CHECKING_P] (cmp2to3): New static function. Use it...
15176 (gcc_qsort) [CHECKING_P]: ...here.
15177 (gcc_sort_r): New function.
15178 * system.h (sort_r_cmp_fn): New function typedef.
15179 (qsort_chk): Adjust signature.
15180 (gcc_sort_r): Declare.
15181 * vec.c (qsort_chk_error): Adjust.
15182 (qsort_chk): Adjust.
15184 2019-08-01 Richard Biener <rguenther@suse.de>
15186 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15187 (compute_antic): Localize it here.
15189 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15191 * common/config/riscv/riscv-common.c: Check -march string ends
15194 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15196 * ipa-devirt.c (type_warning_cmp): Make static.
15197 (decl_warning_cmp): Ditto.
15199 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
15202 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
15203 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
15204 use of deleted rs6000_dejagnu_cpu_index variable.
15205 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
15206 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15207 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
15208 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
15209 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
15210 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15212 2019-07-31 Richard Biener <rguenther@suse.de>
15214 PR tree-optimization/91280
15215 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15216 Decompose MEM_REF manually for offset handling.
15218 2019-07-31 Richard Biener <rguenther@suse.de>
15220 PR tree-optimization/91293
15221 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
15222 of reduction stmts.
15224 2019-07-31 Matt Thomas <matt@3am-software.com>
15225 Nick Hudson <nick@nthcliff.demon.co.uk>
15226 Matthew Green <mrg@eterna.com.au>
15227 Maya Rashish <coypu@sdf.org>
15229 * config.gcc (hppa*-*-netbsd*): New target.
15230 * config/pa/pa-netbsd.h: New file.
15231 * config/pa/pa32-netbsd.h: New file.
15233 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15235 PR tree-optimization/91201
15236 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
15238 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
15240 * config/gcn/gcn-valu.md
15241 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
15242 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
15243 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
15244 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
15245 struct ilist. Add nops for delayeduse insns.
15246 * config/gcn/gcn.md (delayeduse): New attribute.
15247 (*movbi): Remove s_waitcnt from stores.
15248 (*mov<mode>_insn): Likewise.
15249 (*movti_insn): Likewise. Add delayeduse attribute.
15250 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
15251 (atomic_store<mode>): Remove or adjust s_waitcnt.
15253 2019-07-31 Richard Biener <rguenther@suse.de>
15255 * vr-values.h (vr_values::swap_vr_value): New.
15256 (vr_values::free_value_range): likewise.
15257 * vr-values.c (vr_values::swap_vr_value): Implement.
15258 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
15259 Do not return a range or take a var.
15260 (evrp_range_analyzer::stack): Change back to recording a non-const
15262 * gimple-ssa-evrp-analyze.c
15263 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
15265 (evrp_range_analyzer::pop_to_marker): Adjust.
15266 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
15267 (evrp_range_analyzer::pop_value_range): Likewise. Free the
15268 no longer needed value-range.
15270 2019-07-31 Martin Liska <mliska@suse.cz>
15272 * tree-ssa-dce.c (propagate_necessity): Delete operator can
15273 have size and (or) alignment as 2nd and later arguments.
15274 Mark all of them as necessary.
15276 2019-07-31 Richard Biener <rguenther@suse.de>
15278 PR tree-optimization/91178
15279 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15280 Use tail-recursion.
15282 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15284 PR tree-optimization/91201
15285 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
15286 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
15288 (reduc_plus_scal_<mode>): Improve formatting by introducing
15291 2019-07-31 Sudakshina Das <sudi.das@arm.com>
15293 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
15294 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
15295 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
15296 (aarch64_init_tme_builtins): New.
15297 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
15298 (aarch64_expand_builtin_tme): New.
15299 (aarch64_expand_builtin): Handle TME builtins.
15300 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15301 __ARM_FEATURE_TME when enabled.
15302 * config/aarch64/aarch64-option-extensions.def: Add "tme".
15303 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
15305 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
15306 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
15308 (tstart, ttest, tcommit, tcancel): New instructions.
15309 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
15310 (__tcancel, __ttest): New.
15311 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
15312 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
15313 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
15314 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
15315 * config/arm/types.md: Add new tme type attr.
15316 * doc/invoke.texi: Document "tme".
15318 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
15320 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
15321 warn_unused_result attribute.
15322 (cmse_check_address_range): Add warn_unused_result attribute.
15324 2019-07-31 Richard Biener <rguenther@suse.de>
15326 PR tree-optimization/91257
15327 * tree-vrp.c (union_ranges): Unify equality and less tests
15328 by using compare_values. Re-order cheap tests first.
15330 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15332 PR middle-end/91301
15333 * gimplify.c (gimplify_omp_for): If for class iterator on
15334 distribute parallel for there is no data sharing clause
15335 on inner_for_stmt, look for private clause on combined
15336 parallel too and if found, move it to inner_for_stmt.
15338 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
15340 * lra-int.h (lra_operand_data): Remove early_clobber field.
15341 (lra_insn_reg): Likewise.
15342 * lra.c (debug_operand_data): Update accordingly.
15343 (setup_operand_alternative): Likewise.
15344 (new_insn_reg): Likewise. Remove early_clobber parameter.
15345 (collect_non_operand_hard_regs): Update call accordingly.
15346 Don't assign to lra_insn_reg::early_clobber.
15347 (add_regs_to_insn_regno_info): Remove early_clobber parameter
15348 and update calls to new_insn_reg.
15349 (lra_update_insn_regno_info): Update calls accordingly.
15350 * lra-constraints.c (update_and_check_small_class_inputs): Take the
15351 alternative number as a parameter and test whether the operand
15352 is earlyclobbered in that particular alternative.
15353 (process_alt_operands): Update call accordingly. Use per-alternative
15354 checks for earyclobber here too.
15355 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
15356 against zero for IRA_UNKNOWN_ALT.
15358 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15360 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
15362 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
15364 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
15365 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15367 2019-07-30 Martin Liska <mliska@suse.cz>
15370 * cgraph.c (cgraph_edge::make_direct): Use
15371 edge->indirect_unknown_callee as edge->resolve_speculation can
15372 deallocate edge which is this pointer.
15374 2019-07-30 Richard Biener <rguenther@suse.de>
15376 PR tree-optimization/91257
15377 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15379 2019-07-30 Martin Liska <mliska@suse.cz>
15381 * doc/invoke.texi: Document new behavior.
15382 * lto-wrapper.c (cpuset_popcount): New function
15383 is a copy of libgomp/config/linux/proc.c.
15384 (init_num_threads): Likewise.
15385 (run_gcc): Automatically detect core count for -flto.
15386 (jobserver_active_p): New function.
15388 2019-07-30 Richard Biener <rguenther@suse.de>
15390 PR tree-optimization/91257
15391 * bitmap.h (bitmap_ior_into_and_free): Declare.
15392 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15393 whether to add the unliked element to the freelist.
15394 (bitmap_list_insert_element_after): Add defaulted param for
15395 an already allocated element.
15396 (bitmap_ior_into_and_free): New function.
15397 * tree-ssa-structalias.c (condense_visit): Reduce the
15398 ponts-to and edge bitmaps of the SCC members in a
15399 logarithmic fashion rather than all to one.
15401 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15403 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15404 parameter. When nonnull, make sure that the addition or subtraction
15405 has the same condition.
15406 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15407 for CFN_COND_MUL too.
15409 2019-07-30 Richard Biener <rguenther@suse.de>
15411 PR tree-optimization/91291
15412 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
15415 2019-07-30 Jakub Jelinek <jakub@redhat.com>
15417 PR middle-end/91216
15418 * omp-low.c (global_nonaddressable_vars): New variable.
15419 (use_pointer_for_field): For global decls, if they are non-addressable,
15420 remember it in the global_nonaddressable_vars bitmap, if they are
15421 addressable and in the global_nonaddressable_vars bitmap, ignore their
15422 TREE_ADDRESSABLE bit.
15423 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
15424 vars in global_nonaddressable_vars bitmap.
15425 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
15428 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
15429 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
15430 comparison to unsigned HOST_WIDE_INT before shifting it left.
15432 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15434 * config/i386/i386.md (movstrict<mode>): Use register_operand
15435 predicate for operand 0. Add expander condition. Assert that
15436 operand 0 is a SUBREG RTX.
15437 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
15438 Update operand constraints and insn condition.
15439 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
15440 (zero_extendqihi2_and): Do not call gen_movstrictqi.
15441 (*setcc_qi_slp): Use register_operand predicate for operand 0.
15442 Update operand 0 constraints.
15443 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
15445 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15447 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
15448 when -m{code,data}-region are used without -mlarge.
15449 * config/msp430/msp430.c (msp430_option_override): Error when a
15450 non-default code or data region is used without -mlarge.
15451 (msp430_section_attr): Emit a warning and do not add upper/lower/either
15452 attributes when they are used without -mlarge.
15454 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15457 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
15459 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15461 PR middle-end/91242
15462 * wide-int.h (generic_wide_int::sext_elt): New function.
15463 * inchash.h (hash::add_wide_int): Use it instead of elt.
15465 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15467 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
15469 * config/arm/arm.md (<crc_variant>): Rename to...
15470 (arm_<crc_variant>): ... This.
15471 (<cdp>): Rename to...
15472 (arm_<cdp>): ... This.
15473 (<ldc>): Rename to...
15474 (arm_<ldc>): ... This.
15475 (<stc>): Rename to...
15476 (arm_<stc>): ... This.
15477 (<mcr>): Rename to...
15478 (arm_<mcr>): ... This.
15479 (<mrc>): Rename to...
15480 (arm_<mrc>): ... This.
15481 (<mcrr>): Rename to...
15482 (arm_<mcrr>): ... This.
15483 (<mrrc>): Rename to...
15484 (arm_<mrrc>): ... This.
15486 2019-07-29 Richard Biener <rguenther@suse.de>
15488 PR tree-optimization/91257
15489 * tree-ssa-sccvn.h (struct vn_avail): New.
15490 (struct vn_ssa_aux): Add avail member.
15491 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
15492 member, add m_avail_freelist one.
15493 (rpo_elim::~rpo_elim): Remove.
15494 (rpo_elim::eliminate_avail): Adjust to new avail tracking
15496 (rpo_elim::eliminate_push_avail): Likewise.
15497 (do_unwind): Likewise.
15498 (do_rpo_vn): Likewise.
15500 2019-07-29 Richard Biener <rguenther@suse.de>
15502 PR tree-optimization/91257
15503 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
15504 most cases, instead call compare_values which handles the
15505 symbolic ranges we handle specially.
15506 (compare_values_warnv): Do not call operand_less_p but open-code
15507 the effective fold calls. Avoid converting so much.
15509 2019-07-29 Martin Liska <mliska@suse.cz>
15511 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
15512 remove LHS of operator new call. It's handled latter.
15514 2019-07-29 Richard Biener <rguenther@suse.de>
15516 PR tree-optimization/91267
15517 * vr-values.c (vr_values::update_value_range): Add early return
15518 for effectively VARYING lattice entry.
15520 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15523 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
15524 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
15525 necessary if keep_all_vdefs_p is true.
15526 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
15527 that keep_all_vdefs_p is false.
15528 (mark_all_reaching_defs_necessary): Likewise.
15529 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
15531 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15533 * common.opt (Og): Change the initial value of flag_dse to 0.
15534 * opts.c (default_options_table): Move OPT_ftree_dse from
15535 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
15536 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
15537 entry before the OPT_ftree_sra entry.
15538 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
15539 of flags disabled by Og.
15541 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15543 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
15546 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15548 * doc/sourcebuild.texi (check-function-bodies): Document.
15550 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15552 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15553 VEC_DUPLICATE of a fixed-length vector even if the result
15554 is variable-length. Likewise fold a duplicate of a
15555 variable-length vector if the variable-length vector is
15556 itself a duplicate of a fixed-length sequence.
15557 (test_vector_ops_duplicate): Test more cases.
15559 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15561 * vector-builder.h (vector_builder): Add a shape template parameter.
15562 (vector_builder::new_unary_operation): New function, generalizing
15563 the old tree_vector_builder function.
15564 (vector_builder::new_binary_operation): Likewise.
15565 (vector_builder::binary_encoded_nelts): Likewise.
15566 * int-vector-builder.h (int_vector_builder): Update template
15567 parameters to vector_builder.
15568 (int_vector_builder::shape_nelts): New function.
15569 * rtx-vector-builder.h (rtx_vector_builder): Update template
15570 parameters to vector_builder.
15571 (rtx_vector_builder::shape_nelts): New function.
15572 (rtx_vector_builder::nelts_of): Likewise.
15573 (rtx_vector_builder::npatterns_of): Likewise.
15574 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15575 * tree-vector-builder.h (tree_vector_builder): Update template
15576 parameters to vector_builder.
15577 (tree_vector_builder::shape_nelts): New function.
15578 (tree_vector_builder::nelts_of): Likewise.
15579 (tree_vector_builder::npatterns_of): Likewise.
15580 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15581 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15582 (tree_vector_builder::new_binary_operation): Delete.
15583 (tree_vector_builder::binary_encoded_nelts): Likewise.
15584 * simplify-rtx.c: Include rtx-vector-builder.h.
15585 (distributes_over_addition_p): New function.
15586 (simplify_const_unary_operation)
15587 (simplify_const_binary_operation): Generalize handling of vector
15588 constants to include variable-length vectors.
15589 (test_vector_ops_series): Add more tests.
15591 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15594 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15595 than INDENTIFIER_POINTER.
15597 2019-07-28 Martin Liska <mliska@suse.cz>
15600 * cgraph.c (symbol_table::create_edge): Always allocate
15602 (symbol_table::free_edge): Store summary_id to
15603 edge_released_summary_ids if != -1;
15604 * cgraph.h (NEXT_FREE_NODE): Remove.
15605 (SET_NEXT_FREE_NODE): Likewise.
15606 (NEXT_FREE_EDGE): Likewise.
15607 (symbol_table::release_symbol): Store summary_id to
15608 cgraph_released_summary_ids if != -1;
15609 (symbol_table::allocate_cgraph_symbol): Always allocate
15612 2019-07-28 Alan Modra <amodra@gmail.com>
15614 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15617 2019-07-28 Alan Modra <amodra@gmail.com>
15620 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15622 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15623 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15624 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15626 2019-07-28 Alan Modra <amodra@gmail.com>
15629 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15630 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15631 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15632 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15633 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15634 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15635 in asm_default spec.
15636 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15637 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15639 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15641 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15643 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15646 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15647 * config/aarch64/aarch64-option-extensions.def: Add new comments
15648 and restore easier to read options.
15650 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15652 * convert.c (convert_to_real_1): Move part of conversion code...
15653 * match.pd: ...To here.
15655 2019-07-26 Martin Jambor <mjambor@suse.cz>
15658 * ipa-inline-transform.c (check_speculations_1): New function.
15659 (push_all_edges_in_set_to_vec): Likewise.
15660 (check_speculations): Use check_speculations_1, new parameter
15662 (inline_call): Pass new_edges to check_speculations.
15663 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15665 (speculation_useful_p): Early return true if edge is inlined, remove
15666 later checks for inline_failed.
15668 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15670 PR rtl-optimization/91223
15671 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15672 matching with INOUT operand.
15674 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15676 * stmt.c (expand_case): Try to narrow the index type if it's larger
15677 than a word. Tidy up.
15679 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15681 * cif-code.def (NEVER_CALL): New code.
15682 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15683 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15685 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15687 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15688 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15690 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15692 * ipa-devirt.c (add_type_duplicate): Fix return value.
15694 2019-07-25 Richard Biener <rguenther@suse.de>
15696 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15697 type parameter and use it instead of guessing expression
15698 type from the first operand.
15699 (extract_range_from_binary_expr): Pass expr_type down.
15701 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15703 * config/arm/arm.md (SATrev): Change to code attribute.
15704 (*satsi_<SAT:code>): Adjust for the above.
15705 (*satsi_<SAT:code>_shift): Likewise.
15707 2019-07-25 Richard Biener <rguenther@suse.de>
15709 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15710 Make value_range * temporary const.
15711 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15713 (evrp_range_analyzer::record_ranges_from_): Likewise.
15714 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15715 deal with having recorded a const one.
15716 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15717 Return a const value_range *.
15718 (evrp_range_analyzer::pop_value_range): Likewise.
15719 (evrp_range_analyzer::stack): Record const value_range *s.
15720 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15722 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15723 (format_integer): Likewise.
15724 (sprintf_dom_walker::handle_gimple_call): Likewise.
15725 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15726 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15727 (vrp_prop::get_value_range): Adjust.
15728 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15729 modifying the lattice in-place.
15730 (vrp_prop::visit_stmt): Likewise.
15731 * vr-values.c (vr_values::get_lattice_entry): New private method.
15732 (vr_values::get_value_range): Wrap it and return a const
15734 (vr_values::set_def_to_varying): New.
15735 (vr_values::set_defs_to_varying): Use it.
15736 (vr_values::update_value_range): Likewise.
15737 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15738 (values::op_with_constant_singleton_va): Likewise.
15739 (vr_values::extract_range_for_var_from_co): Likewise.
15740 (vr_values::extract_range_from_ssa_name): Likewise.
15741 (vr_values::extract_range_from_cond_expr): Likewise.
15742 (vr_values::extract_range_basic): Likewise.
15743 (compare_ranges): Take const value_range *, adjust.
15744 (compare_range_with_value): Likewise.
15745 (vrp_valueize): Adjust.
15746 (vrp_valueize_1): Likewise.
15747 (vr_values::get_vr_for_comparison): Return a const value_range *.
15748 (vr_values::compare_name_with_value): Adjust.
15749 (vr_values::compare_names): Likewise.
15750 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15752 (vr_values::vrp_evaluate_conditional): Likewise.
15753 (find_case_label_ranges): Take a const value_range *.
15754 (vr_values::vrp_visit_switch_stmt): Adjust.
15755 (vr_values::extract_range_from_phi_node): Likewise.
15756 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15757 (vr_values::simplify_abs_using_ranges): Likewise.
15758 (test_for_singularity): Take a const value_range *.
15759 (range_fits_type_p): Likewise.
15760 (vr_values::simplify_cond_using_ranges_1): Adjust.
15761 (vr_values::simplify_cond_using_ranges_2): Likewise.
15762 (vr_values::simplify_switch_using_ranges): Likewise.
15763 (vr_values::simplify_float_conversion_usi): Likewise.
15764 (vr_values::two_valued_val_range_p): Likewise.
15765 * vr-values.h (vr_values::get_value_range): Return a const
15767 (vr_values::set_def_to_varying): New.
15768 (vr_values::get_lattice_entry): New private method.
15769 (vr_values::get_vr_for_comparison): Return a const value_range *.
15771 2019-07-25 Martin Liska <mliska@suse.cz>
15772 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15775 * common.opt: Add -fallocation-dce
15776 * gimple.c (gimple_call_operator_delete_p): New.
15777 * gimple.h (gimple_call_operator_delete_p): Likewise.
15778 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15779 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15780 DECL_IS_OPERATOR_DELETE_P.
15781 (mark_all_reaching_defs_necessary_1): Likewise.
15782 (propagate_necessity): Likewise.
15783 (eliminate_unnecessary_stmts): Handle
15784 gimple_call_operator_delete_p.
15785 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15786 Add packing of OPERATOR_DELETE.
15787 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15789 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15790 (DECL_SET_IS_OPERATOR_DELETE): New.
15791 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15793 2019-07-25 Martin Liska <mliska@suse.cz>
15795 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15796 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15797 * coverage.c (coverage_begin_function): Likewise.
15798 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15799 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15800 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15801 (sem_item::hash_referenced_symbol_properties): Likewise.
15802 * lto-streamer-out.c (hash_tree): Likewise.
15803 * predict.c (expr_expected_value_1): Likewise.
15804 * tree-inline.c (expand_call_inline): Likewise.
15805 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15806 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15807 * tree-core.h (enum function_decl_type): New enum.
15808 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15809 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15810 (set_function_decl_type): Likewise.
15811 (DECL_IS_OPERATOR_NEW_P): New.
15812 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15813 (DECL_LAMBDA_FUNCTION): Likewise.
15814 (DECL_LAMBDA_FUNCTION_P): Likewise.
15815 (DECL_IS_OPERATOR_NEW): Remove.
15816 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15818 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15820 * ipa-profile.c (get_most_common_single_value): Use
15821 get_nth_most_common_value.
15822 * profile.c (sort_hist_value): New function.
15823 (compute_value_histograms): Call sort_hist_value to sort the
15824 values after loading from disk.
15825 * value-prof.c (get_most_common_single_value): Rename to ...
15826 get_nth_most_common_value. Add input params n, return
15827 the n_th value and count.
15828 (gimple_divmod_fixed_value_transform): Use
15829 get_nth_most_common_value.
15830 (gimple_ic_transform): Likewise.
15831 (gimple_stringops_transform): Likewise.
15832 * value-prof.h (get_most_common_single_value): Add input params
15835 2019-07-25 Richard Biener <rguenther@suse.de>
15837 PR tree-optimization/91236
15838 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15839 size of CONSTRUCTOR write. Fix buffer size we pass to
15840 native_encode_expr.
15842 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15844 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15845 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15848 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15850 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15851 explicitly disabled with --disable-initfini-array.
15853 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15855 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15858 2019-07-24 Martin Sebor <msebor@redhat.com>
15860 PR tree-optimization/91183
15861 PR tree-optimization/86688
15862 * builtins.c (compute_objsize): Handle MEM_REF.
15863 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15864 (get_min_string_length): Remove.
15865 (count_nonzero_bytes): New function.
15866 (handle_char_store): Rename...
15867 (handle_store): to this. Handle multibyte stores via integer types.
15868 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15871 2019-07-24 Martin Sebor <msebor@redhat.com>
15874 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15875 (diagnostic_report_diagnostic): Same.
15876 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15877 (diagnostic_context::lang_mask): New data member.
15878 * ipa-pure-const.c (suggest_attribute): Use
15879 lang_hooks.option_lang_mask ().
15880 * opts-common.c (option_enabled): Handle new argument.
15881 (get_option_state): Pass an additional argument.
15882 * opts.c (print_filtered_help): Print supported languages for
15883 unsupported options. Adjust printing of current state.
15884 * opts.h (option_enabled): Add argument.
15885 * toplev.c (print_switch_values): Use lang_mask.
15886 (general_init): Set global_dc->lang_mask.
15888 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15891 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15893 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15895 * cgraphunit.c (symbol_table::compile): Start and stop
15896 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15897 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15899 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15901 * gimplify.c (flag_instrument_functions_exclude_p): Include
15902 namespace/class information in the printable name.
15903 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15904 to tokens entered into the vector.
15906 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15908 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15909 (get_static_chain): Call it instead of build_simple_mem_ref.
15910 (get_frame_field): Likewise.
15911 (get_nonlocal_debug_decl): Likewise.
15912 (convert_nonlocal_reference_op): Likewise.
15914 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15916 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15918 (arc_compute_frame_size): Millicode is disabled when compiling
15920 (arc_return_address_register): Likewise.
15921 (arc_compute_function_type): Likewise.
15922 (arc_compute_frame_size): Likewise.
15923 (secondary_reload_info): Likewise.
15924 (arc_get_unalign): Likewise.
15925 (arc_can_use_return_insn): Declare.
15926 * config/arc/arc.c (AUX_LP_START): Define
15927 (AUX_LP_END): Likewise.
15928 (arc_frame_info): Update gmask member to 64-bit datum.
15929 (GMASK_LEN): Update.
15930 (arc_compute_function_type): Make it static, move it forward.
15931 (arc_must_save_register): Update, consider the extra regs.
15932 (arc_compute_millicode_save_restore_regs): Update to use the 64
15934 (arc_compute_frame_size): Likewise.
15935 (arc_enter_leave_p): Likewise.
15936 (arc_save_callee_saves): Likewise.
15937 (arc_restore_callee_saves): Likewise.
15938 (arc_save_callee_enter): Likewise.
15939 (arc_restore_callee_leave): Likewise.
15940 (arc_save_callee_milli): Likewise.
15941 (arc_restore_callee_milli): Likewise.
15942 (arc_expand_prologue): Add new interrupt handling.
15943 (arc_return_address_register): Make it static, move it forward.
15944 (arc_expand_epilogue): Add new interrupt handling.
15945 (arc_get_unalign): Delete.
15946 (arc_epilogue_uses): Make sure we do not remove the extra
15947 saved/restored registers when interrupt.
15948 (arc_can_use_return_insn): New function.
15949 (push_reg): Likewise.
15950 (pop_reg): Likewise.
15951 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15953 (arc_restore_callee_saves): Likewise, but restoring.
15954 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15955 (R33_REG): Likewise.
15956 (R34_REG): Likewise.
15957 (R35_REG): Likewise.
15958 (R36_REG): Likewise.
15959 (R37_REG): Likewise.
15960 (R38_REG): Likewise.
15961 (R39_REG): Likewise.
15962 (R45_REG): Likewise.
15963 (R46_REG): Likewise.
15964 (R47_REG): Likewise.
15965 (R48_REG): Likewise.
15966 (R49_REG): Likewise.
15967 (R50_REG): Likewise.
15968 (R51_REG): Likewise.
15969 (R52_REG): Likewise.
15970 (R53_REG): Likewise.
15971 (R54_REG): Likewise.
15972 (R55_REG): Likewise.
15973 (R56_REG): Likewise.
15974 (R58_REG): Likewise.
15975 (type): Add rtie attribute.
15976 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15977 (movsi_insn): Accept moves to lp_count.
15978 (rtie): Update pattern.
15979 (simple_return): Simplify it, don't use this pattern as a return
15981 (arc600_rtie): New pattern.
15982 (p_return_i): Clean up.
15983 (return): Likewise.
15984 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15986 * config/arc/predicates.md (move_src_operand): Consider lp_count
15989 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15991 * config/s390/predicates.md (addv_const_operand): New predicate.
15992 * config/s390/s390-modes.def (CCO): New condition code mode.
15993 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15994 (s390_branch_condition_mask): Likewise.
15995 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15996 ("mulv<mode>4"): New expanders.
15997 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15998 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15999 pattern definitions.
16001 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16003 PR middle-end/91166
16004 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16005 (define_predicates): Add entry for uniform_vector_p.
16006 (vec_same_elem_p): New match pattern.
16008 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16011 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16012 * config/i386/darwin32-biarch.h .. to here.
16013 * config/i386/darwin64-biarch.h: Adjust comments.
16014 * config/rs6000/darwin32-biarch.h: Likewise.
16015 * config/rs6000/darwin64-biarch.h: Likewise.
16016 * config.gcc: Missed commit from r273746
16017 (*-*-darwin*): Don't include CPU t-darwin here.
16018 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16019 an error message if i686-darwin configuration is attempted for
16022 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16025 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16026 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16027 an error message if i686-darwin configuration is attempted for
16029 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16030 (powerpc-*-darwin*): Use biarch files where needed.
16031 (powerpc64-*-darwin*): Likewise.
16032 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16033 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16035 * config/i386/darwin32-biarch.h: New.
16036 * config/i386/darwin64.h: Rename.
16037 * config/i386/darwin64-biarch.h: To this.
16038 * config/i386/t-darwin: Rename.
16039 * config/i386/t-darwin32-biarch: To this.
16040 * config/i386/t-darwin64: Rename.
16041 * config/i386/t-darwin64-biarch: To this.
16042 * config/rs6000/darwin32-biarch.h: New.
16043 * config/rs6000/darwin64.h: Rename.
16044 * config/rs6000/darwin64-biarch.h: To this.
16045 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16047 * config/rs6000/t-darwin8: Rename.
16048 * config/rs6000/t-darwin32-biarch: To this.
16049 * config/rs6000/t-darwin64 Rename.
16050 * config/rs6000/t-darwin64-biarch: To this.
16052 2019-07-23 Martin Sebor <msebor@redhat.com>
16054 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16056 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16058 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16059 (rh): New alias for it.
16061 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16063 * gdbhooks.py: Pass replace=True to
16064 gdb.printing.register_pretty_printer.
16066 2019-07-23 Richard Biener <rguenther@suse.de>
16069 * lto-streamer-in.c (input_function): Drop inline-entry markers
16070 that ended up with an unknown location block.
16072 2019-07-23 Richard Biener <rguenther@suse.de>
16074 PR tree-optimization/83518
16075 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16076 init from a constant even when partial defs are already recorded.
16078 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16080 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16081 * config/i386/znver1.md: Enable patterns for znver2 and add store
16082 variants which use extra AGU unit.
16084 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16086 * config/i386/i386-options.c (ix86_option_override_internal): Default
16087 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16088 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16091 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16093 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16094 (znver2_costs): Update 256 bit SSE costs and multiplication.
16096 2019-07-23 Jan Beulich <jbeulich@suse.com>
16098 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16099 Require only AVX512F.
16100 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16101 alternative expanding to vpternlog.
16103 2019-07-23 Martin Liska <mliska@suse.cz>
16105 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16106 to -flto in dwarf producer string.
16108 2019-07-23 Richard Biener <rguenther@suse.de>
16110 * tree-cfg.c (label_for_bb): Remove global var.
16111 (main_block_label): Take label_for_bb as argument.
16112 (cleanup_dead_labels_eh): Likewise, adjust.
16113 (cleanup_dead_labels): Adjust.
16115 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16117 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16118 Configurations): Add documentation for __builtin_mtfsf.
16120 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16122 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16123 * config/riscv/riscv.c (riscv_constant_alignment): Use
16124 riscv_align_data_type.
16125 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16126 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16127 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16128 * config/riscv/riscv.opt (malign-data): New.
16129 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16131 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16133 * cgraph.c (dump_graphviz): New function.
16134 * cgraph.h (dump_graphviz): New function.
16135 * symtab.c (dump_graphviz): New function.
16137 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16139 * config/aarch64/aarch64-simd.md
16140 (*aarch64_simd_sra<mode>): New.
16141 * config/aarch64/iterators.md
16142 (SHIFTRT): New iterator.
16143 (sra_op): New attribute.
16145 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16147 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16148 callee-saved regs R4->R10 in an interrupt function that calls another
16151 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16153 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16154 (_mm_blendv_epi8): New.
16156 2019-07-22 Richard Biener <rguenther@suse.de>
16158 PR tree-optimization/91221
16159 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16160 restrict partial-def handling of empty constructors and
16161 memset to refs with known offset.
16163 2019-07-22 Jan Beulich <jbeulich@suse.com>
16165 * config/i386/sse.md (ternlogsuffix): New.
16166 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16168 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16170 2019-07-22 Martin Liska <mliska@suse.cz>
16172 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16174 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16176 2019-07-22 Martin Liska <mliska@suse.cz>
16178 * lto-section-in.c (lto_get_section_data):
16179 Use new function get_compression.
16180 * lto-streamer-out.c (produce_lto_section): Use
16181 set_compression to encode compression algorithm.
16182 * lto-streamer.h (struct lto_section): Do not
16183 use bitfields in the format.
16185 2019-07-22 Martin Liska <mliska@suse.cz>
16188 * opts-common.c (decode_cmdline_option): Decode
16189 argument of -Werror and check it for a wrong language.
16190 * opts-global.c (complain_wrong_lang): Remove such case.
16192 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16194 * config/arc/arc.c (prepare_move_operands): Always use an
16195 intermediate register when storing a TLS symbols.
16197 2019-07-22 Stafford Horne <shorne@gmail.com>
16199 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
16202 2019-07-22 Stafford Horne <shorne@gmail.com>
16204 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
16205 and munordered-float validations.
16206 * config/or1k/constraints.md (d): New register constraint.
16207 * config/or1k/predicates.md (fp_comparison_operator): New.
16208 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
16210 (or1k_expand_compare): Normalize unordered comparisons.
16211 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
16212 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
16213 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
16214 * config/or1k/or1k.md (type): Add fpu.
16215 (fpu): New instruction reservation.
16216 (F, f, fr, fi, FI, FOP, fop): New.
16217 (<fop><F:mode>3): New ALU instruction definition.
16218 (float<fi><F:mode>2): New conversion instruction definition.
16219 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
16220 (fpcmpcc): New code iterator.
16221 (*sf_fp_insn): New instruction definition.
16222 (cstore<F:mode>4): New expand definition.
16223 (cbranch<F:mode>4): New expand definition.
16224 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
16225 munordered-float): New options.
16226 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
16229 2019-07-22 Stafford Horne <shorne@gmail.com>
16231 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
16232 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
16233 documenation to be more clear.
16234 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
16236 * config/or1k/or1k.opt (mrori): New option.
16237 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
16238 msfimm, mshftimm): Rewrite documentation to be more clear.
16239 * config/or1k/or1k.md (insn_support): Add ror and rori.
16240 (enabled): Add conditions for ror and rori.
16241 (rotrsi3): Replace condition for shftimm with ror and rori.
16243 2019-07-22 Stafford Horne <shorne@gmail.com>
16246 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
16247 (extend<mode>si2): Update predicate.
16248 * config/or1k/predicates.md (volatile_mem_operand): New.
16249 (reg_or_mem_operand): New.
16251 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
16253 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
16254 * config/rs6000/rs6000-call.c: ... to here.
16256 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16258 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
16261 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16263 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
16265 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16267 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
16269 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16271 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
16272 (any_memory_operand): New predicate.
16273 (reg_or_mem_operand): Use it.
16275 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16278 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
16280 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
16282 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
16283 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
16285 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16287 * tree.def (OMP_LOOP): New tree code.
16288 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
16289 (enum omp_clause_bind_kind): New enum.
16290 (struct tree_omp_clause): Add subcode.bind_kind.
16291 * tree.h (OMP_LOOP_CHECK): Rename to ...
16292 (OMP_LOOPING_CHECK): ... this.
16293 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
16294 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
16295 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
16296 (OMP_CLAUSE_BIND_KIND): Define.
16297 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16298 bind clause entries.
16299 (walk_tree_1): Handle OMP_CLAUSE_BIND.
16300 * tree-pretty-print.c (dump_omp_clause): Likewise.
16301 (dump_generic_node): Handle OMP_LOOP.
16302 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
16303 (in_omp_construct): New variable.
16304 (is_gimple_stmt): Handle OMP_LOOP.
16305 (gimplify_scan_omp_clauses): For lastprivate don't set
16306 check_non_private if code == OMP_LOOP. For reduction clause
16307 on OMP_LOOP combined with parallel or teams propagate as shared
16308 on the combined construct. Handle OMP_CLAUSE_BIND.
16309 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
16310 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
16311 for constructs from a loop construct to gimplify_scan_omp_clauses.
16312 Don't predetermine iterator linear on OMP_SIMD from loop construct.
16313 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
16314 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
16315 to match the implicit ORT_TARGET construct around whole body.
16316 Temporarily clear in_omp_construct when processing body.
16317 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
16318 etc. temporarily set in_omp_construct when processing body.
16319 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
16320 * omp-low.c (struct omp_context): Add loop_p.
16321 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
16322 in that the original var might be private.
16323 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
16324 (check_omp_nesting_restrictions): Adjust nesting restrictions for
16325 addition of loop construct.
16326 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
16328 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
16329 lastprivate non-addressable iterator of a collapse(1) simd.
16331 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
16333 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
16336 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
16338 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
16339 refer to default conditions. Warn for the 'y' spec which is ignored
16340 by current linkers.
16342 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
16344 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
16345 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16346 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16347 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16348 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16349 init_cumulative_args, rs6000_promote_function_mode,
16350 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16351 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16352 rs6000_function_arg_boundary, rs6000_parm_offset,
16353 rs6000_parm_start, rs6000_arg_size,
16354 rs6000_darwin64_record_arg_advance_flush,
16355 rs6000_darwin64_record_arg_advance_recurse,
16356 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16357 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16358 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16359 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16360 rs6000_finish_function_arg, rs6000_function_arg,
16361 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16362 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16363 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16364 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16365 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16366 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16367 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16368 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16369 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16370 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16371 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16372 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16373 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16374 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16375 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16376 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16377 get_element_number, altivec_expand_vec_set_builtin,
16378 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16379 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16380 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16381 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16382 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16383 rs6000_expand_builtin, rs6000_vector_type,
16384 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16385 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16386 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16388 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16389 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16390 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16391 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16392 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16393 init_cumulative_args, rs6000_promote_function_mode,
16394 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16395 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16396 rs6000_function_arg_boundary, rs6000_parm_offset,
16397 rs6000_parm_start, rs6000_arg_size,
16398 rs6000_darwin64_record_arg_advance_flush,
16399 rs6000_darwin64_record_arg_advance_recurse,
16400 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16401 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16402 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16403 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16404 rs6000_finish_function_arg, rs6000_function_arg,
16405 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16406 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16407 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16408 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16409 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16410 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16411 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16412 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16413 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16414 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16415 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16416 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16417 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16418 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16419 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16420 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16421 get_element_number, altivec_expand_vec_set_builtin,
16422 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16423 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16424 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16425 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16426 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16427 rs6000_expand_builtin, rs6000_vector_type,
16428 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16429 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16430 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
16431 to here from rs6000.c.
16432 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
16433 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
16434 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
16435 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
16436 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
16437 rs6000_return_in_memory, rs6000_return_in_msb,
16438 rs6000_pass_by_reference, setup_incoming_varargs,
16439 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
16440 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
16441 rs6000_function_arg_padding, rs6000_function_arg,
16442 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
16443 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
16444 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
16445 rs6000_passes_long_double, rs6000_passes_vector,
16446 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
16447 altivec_builtin_mask_for_load) Add declarations.
16448 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
16449 * config/config.gcc: Add new source file rs6000-call.c to garbage
16450 collector and extra_objs.
16452 2019-07-19 Jeff Law <law@redhat.com>
16454 PR tree-optimization/86061
16455 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16456 strncpy. Drop some trivial dead code.
16457 (maybe_trim_memstar_call): Handle strncpy.
16459 2019-07-19 Richard Biener <rguenther@suse.de>
16461 PR tree-optimization/91211
16462 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16463 memset encoding size.
16465 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
16468 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
16470 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
16473 * ipa-inline.c (recursive_inlining): Fix limits check.
16475 2019-07-19 Richard Biener <rguenther@suse.de>
16477 PR tree-optimization/91200
16478 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
16479 no PHI nodes in middle-bb.
16481 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
16483 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
16485 * config/aarch64/aarch64-option-extensions.def: Likewise.
16487 2019-07-19 Jakub Jelinek <jakub@redhat.com>
16489 PR middle-end/91190
16490 * function.c (insert_temp_slot_address): Store into the hash table
16491 a copy of address to avoid RTL sharing issues.
16493 2019-07-19 Richard Biener <rguenther@suse.de>
16495 PR tree-optimization/91207
16497 2019-07-17 Richard Biener <rguenther@suse.de>
16499 PR tree-optimization/91178
16500 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16501 loads with a gap larger than the vector size always use
16503 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16504 avoid loading vectors that are only contained in the gap
16505 and thus are not needed.
16507 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16509 * config/i386/i386.md (*addqi_2_slp): Remove.
16510 (*<code>qi_2_slp): Ditto.
16512 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
16514 * config/rs6000/predicates.md (prefixed_mem_operand): Call
16515 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
16516 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
16517 Rename function from rs6000_prefixed_address.
16518 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16520 (TARGET_TOC): Likewise.
16521 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16523 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16525 (TARGET_TOC): Likewise.
16526 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16528 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16530 (TARGET_TOC): Likewise.
16531 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16532 check to require -mcmodel=medium for pc-relative addressing.
16533 (create_TOC_reference): Add assertion for TARGET_TOC.
16534 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
16536 (rs6000_emit_move): Likewise.
16537 (TOC_alias_set): Rename TOC alias set static variable from 'set'
16538 to 'TOC_alias_set'.
16539 (get_TOC_alias_set): Likewise.
16540 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
16542 (rs6000_can_eliminate): Likewise.
16543 (rs6000_prefixed_address_mode_p): Rename function from
16544 rs6000_prefixed_address.
16545 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
16546 TARGET_HAS_TOC and not pc-relative.
16547 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
16548 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16550 (TARGET_TOC): Likewise.
16551 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16554 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16557 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16558 for operand 0. Do not use (match_dup) to match operand 1 with
16559 operand 0. Add check in insn constraint that either input operand
16560 matches operand 0. Use SWI12 mode iterator to also handle
16562 (*and<mode>_1_slp): Ditto.
16563 (*<code>qi_1_slp): Ditto.
16564 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16565 Do not use (match_dup) to match operand 1 with operand 0. Add
16566 check in insn constraint that operand 1 matches operand 0.
16567 Use SWI12 mode iterator to also handle HImode operands.
16568 (*ashl<mode>3_1_slp): Ditto.
16569 (*<shift_insn><mode>3_1_slp): Ditto.
16570 (*<rotate_insn><mode>3_1_slp): Ditto.
16572 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16574 * config/arm/arm-builtins.c
16575 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16576 (arm_expand_unop_builtin): Likewise.
16577 * config/arm/crypto.md
16578 (crypto_sha1h): Convert from define_insn to define_expand.
16579 (crypto_<crypto_pattern>): Likewise.
16580 (crypto_sha1h_lb): New define_insn.
16581 (crypto_<crypto_pattern>_lb): Likewise.
16583 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16586 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16587 (vsha1cq_u32): Likewise.
16588 (vsha1pq_u32): Likewise.
16589 (vsha1mq_u32): Likewise.
16590 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16592 (crypto_sha1c): Correct vec select.
16593 (crypto_sha1m): Likewise.
16594 (crypto_sha1p): Likewise.
16596 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16598 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16599 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16600 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16601 (subdi_zesidi_zesidi): Likewise.
16602 (negdi2_compare, negdi2_insn): Likewise.
16603 (negdi_extensidi): Likewise.
16604 (negdi_zero_extendsidi): Likewise.
16605 (arm_cmpdi_insn): Likewise.
16606 (subsi3_carryin): Use arm_borrow_operation.
16607 (subsi3_carryin_const): Likewise.
16608 (subsi3_carryin_const0): Likewise.
16609 (subsi3_carryin_compare): Likewise.
16610 (subsi3_carryin_compare_const): Likewise.
16611 (subsi3_carryin_compare_const0): Likewise.
16612 (subsi3_carryin_shift): Likewise.
16613 (rsbsi3_carryin_shift): Likewise.
16614 (negsi2_carryin_compare): Likewise.
16616 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16618 PR tree-optimization/91137
16619 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16620 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16621 Init, use and fini the above new field.
16622 (determine_base_object_1): New function.
16623 (determine_base_object): Reimplement using walk_tree.
16625 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16627 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16628 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16629 CLEANUP_FORCE_FAST_DCE is set.
16630 * ifcvt.c (rest_of_handle_if_conversion): Pass
16631 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16632 if-conversion succeeded.
16634 2019-07-18 Richard Biener <rguenther@suse.de>
16636 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16637 branches to make code less indented.
16639 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16641 PR middle-end/81824
16642 * attribs.c (decls_mismatched_attributes): Simplify the logic
16643 that avoids duplicates and false positives.
16645 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16647 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16648 data into data section when generating PIC code.
16649 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16650 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16651 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16652 return 2 for SOM and 0 for other targets.
16654 2019-07-17 Jeff Law <law@redhat.com>
16656 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16657 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16658 avoid unexpected switch statement fallthru.
16660 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16662 * config/i386/i386.md (*add<dwi>3_doubleword):
16663 Remove redundant constraints.
16664 (*add<mode>_1): Ditto.
16667 (*addqi_1_slp): Ditto.
16668 (*add<mode>_2): Ditto.
16669 (*addv<mode>4): Ditto.
16670 (*sub<dwi>3_doubleword): Ditto.
16671 (*sub<mode>_1): Ditto.
16672 (*subqi_1_slp): Ditto.
16673 (*sub<mode>_2): Ditto.
16674 (*subv<mode>4): Ditto.
16675 (*sub<mode>_3): Ditto.
16676 (@add<mode>3_carry): Ditto.
16677 (@sub<mode>3_carry): Ditto.
16678 (*add<mode>3_cc_overflow_1): Ditto.
16679 (*add<mode>3_zext_cc_overflow_2): Ditto.
16681 (*and<mode>_1): Ditto.
16683 (*andqi_1_slp): Ditto.
16685 (*andqi_2_maybe_si): Ditto.
16686 (*and<mode>_2): Ditto.
16687 (*andqi_2_slp): Ditto.
16688 (*<code><mode>_1): Ditto.
16689 (*<code>qi_1): Ditto.
16690 (*<code>qi_1_slp): Ditto.
16691 (*<code><mode>_2): Ditto.
16692 (*<code>qi_2_slp): Ditto.
16694 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16696 * alias.c (record_component_aliases): Do not simplify pointed-to
16697 types of ODR types.
16699 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16701 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16702 partial reg stall on alternative 2.
16704 2019-07-17 Richard Biener <rguenther@suse.de>
16706 PR tree-optimization/91178
16707 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16708 lower SSA names to avoid quadratic behavior in the common case.
16709 * tree-data-ref.c (split_constant_offset): Add limit argument
16710 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16711 (split_constant_offset_1): Add limit argument and use it to
16712 limit SSA def walking. Optimize the common plus/minus case.
16714 2019-07-17 Richard Biener <rguenther@suse.de>
16716 PR tree-optimization/91178
16717 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16718 loads with a gap larger than the vector size always use
16720 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16721 avoid loading vectors that are only contained in the gap
16722 and thus are not needed.
16724 2019-07-17 Richard Biener <rguenther@suse.de>
16726 PR tree-optimization/91180
16727 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16728 computation for memset partial defs.
16730 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16732 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16733 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16734 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16735 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16736 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16737 * omp-grid.c (grid_process_grid_body,
16738 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16739 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16740 == GF_OMP_FOR_KIND_SIMD.
16741 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16742 check_omp_nesting_restrictions, scan_omp_1_stmt,
16743 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16744 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16745 omp_find_scan): Likewise.
16746 * omp-expand.c (expand_omp_for): Likewise.
16747 * omp-general.c (omp_extract_for_data): Likewise.
16749 PR tree-optimization/91157
16750 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16751 a vector boolean with scalar mode.
16752 (expand_vector_condition): Handle first operand being a vector boolean
16754 (expand_vector_operations_1): For comparisons, don't bail out early
16755 if the return type is vector boolean with scalar mode, but comparison
16756 operand type is not.
16758 2019-07-17 Richard Biener <rguenther@suse.de>
16760 PR tree-optimization/91181
16761 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16762 IFN_LOADs as calls.
16764 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16766 * config/i386/i386.md (*testdi_1): Match CCZmode for
16767 constants that might have the SImode sign bit set.
16768 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16769 Use correct constraints for pentium pairing.
16770 (*test<mode>_1): Ditto.
16772 2019-07-16 Jeff Law <law@redhat.com>
16774 PR rtl-optimization/91173
16775 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16776 SSA_NAME with a constant value, fold its value into the offset
16777 and clear the base before calling gen_addr_rtx.
16779 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16781 PR rtl-optimization/91164
16782 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16783 invalidate dominance info.
16785 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16787 * read-md.h (md_reader::record_potential_iterator_use): Add a
16788 file_location parameter.
16789 * read-rtl.c (attribute_use::loc): New field.
16790 (map_attr_string): Take a file_location parameter. Report cases
16791 in which attributes map to multiple distinct values.
16792 (apply_attribute_uses): Update call accordingly.
16793 (md_reader::handle_overloaded_name): Likewise.
16794 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16796 (record_attribute_use): Take a file_location parameter.
16797 Initialize attribute_use::loc.
16798 (md_reader::record_potential_iterator_use): Take a file_location
16799 parameter. Update call to record_attribute_use.
16800 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16801 (rtx_reader::read_rtx_code): Likewise.
16802 (rtx_reader::read_rtx_operand): Likewise. Record a location
16803 for implicitly-expanded empty strings.
16805 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16807 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16808 Use file_location instead of separate fields.
16809 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16810 separate filename and line number.
16811 * read-md.c (ptr_loc): As above.
16812 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16813 (md_reader::fprint_md_ptr_loc): Likewise.
16814 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16815 instead of a separate filename and line number.
16816 (md_reader::read_string): Update call accordingly.
16818 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16820 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16821 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16822 leaving the choice between SFDF and P implicit.
16823 (*mov<mode>_update2): Likewise.
16824 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16825 rather than leaving the choice betweem IBM128 and GPR implicit.
16826 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16827 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16829 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16830 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16831 * config/rs6000/vsx.md
16832 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16833 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16834 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16835 and VSX_EXTRACT_I implicit.
16837 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16839 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16840 Explicitly use <MOVEP1:MODE> for the mode attribute.
16842 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16845 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16847 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16850 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16851 .machine directive.
16853 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16855 * config/i386/i386.md (@test<mode>_ccno_1):
16856 Rename from test<mode>_ccno_1.
16857 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16858 (*testqi_1_maybe_si): Remove modrm attribute.
16859 (*test<mode>_1): Ditto.
16860 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16861 gen_test_ccno_1 and gen_extend_insn.
16863 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16865 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16868 2019-07-15 Richard Biener <rguenther@suse.de>
16870 PR middle-end/91162
16871 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16872 node make sure to replace all uses with something valid.
16874 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16876 PR tree-optimization/88497
16877 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16878 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16879 function undistribute_bitref_for_vector.
16880 (undistribute_bitref_for_vector): New function.
16881 (cleanup_vinfo_map): Likewise.
16882 (sort_by_mach_mode): Likewise.
16884 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16886 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16887 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16888 and testdi_ccno_1 using SWI48 mode attribute.
16889 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16890 x86_64_szext_general_operand.
16891 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16892 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16893 instead of genera_operand mode attribute.
16895 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16897 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16898 fopen and fclose to their respective types.
16899 (DotFn.invoke): Ditto.
16901 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16903 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16904 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16905 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16906 (array_index_predicate): Remove.
16907 (analyze_function_body): Account cost for variable ofsetted array
16909 (estimate_node_size_and_time): Do not compute array index hint.
16910 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16911 (inline_read_section): Do not read array index hint.
16912 (ipa_fn_summary_write): Do not write array index hint.
16913 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16914 * ipa-cp.c (hint_time_bonus): Remove.
16915 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16916 (ipa_fnsummary): Remove array_index.
16917 * ipa-inline.c (want_inline_small_function_p): Do not use
16919 (edge_badness): Likewise.
16920 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16922 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16925 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16926 superfluous "builtin function" phrasing.
16928 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16930 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16932 (aliasing_component_refs_walk): Break out from ...
16933 (aliasing_component_refs_p): ... here.
16935 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16938 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16939 "builtin function" phrasing.
16941 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16944 * recog.h (temporary_volatile_ok): New class.
16945 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16946 volatile_ok temporarily to true using temporary_volatile_ok.
16947 * expr.c (emit_block_move_via_cpymem): Likewise.
16948 * optabs.c (maybe_legitimize_operand): Likewise.
16950 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16952 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16953 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16954 uses inside of order(concurrent) constructs.
16955 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16956 OMP_CLAUSE_ORDER is seen.
16957 * omp-low.c (struct omp_context): Add order_concurrent member.
16958 (scan_sharing_clauses): Set ctx->order_concurrent if
16959 OMP_CLAUSE_ORDER is seen.
16960 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16961 of simd order(concurrent). Diagnose constructs not allowed inside of
16962 for order(concurrent).
16963 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16964 complaining about static double setjmp (double); or class static
16965 methods or non-global namespace setjmps.
16966 (omp_runtime_api_call): New function.
16967 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16968 order(concurrent) loops.
16970 2019-07-12 Martin Sebor <msebor@redhat.com>
16972 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16973 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16974 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16975 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16977 2019-07-12 Jan Hubicka <jh@suse.cz>
16979 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16980 (indirect_refs_may_alias_p): ... here.
16981 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16982 mem refs in the access paths.
16984 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16986 PR tree-optimization/89430
16987 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16988 store elimination for local variable without address escape.
16990 2019-07-12 Jeff Law <law@redhat.com>
16992 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16993 for the ".far" section.
16995 2019-07-12 Richard Biener <rguenther@suse.de>
16997 PR tree-optimization/91145
16998 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17001 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17003 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17004 rather than this_state as the lowering context for the ELSE
17005 seq in a GIMPLE_EH_ELSE.
17007 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17009 * vector-builder.h (vector_builder::elt): Allow already-supplied
17010 elements to be read back before building is complete.
17012 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17014 PR rtl-optimization/91136
17015 * df-core.c (ACCESSING REFS): Fix typos in comment.
17016 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17017 the beginning of the block to the initial set of live registers.
17019 2019-07-12 Richard Biener <rguenther@suse.de>
17021 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17022 * fold-const.c (get_array_ctor_element_at_index): Add
17023 ctor_idx output parameter informing the caller where in
17024 the constructor the element was (not) found. Add early exit
17025 for when the ctor is sorted.
17026 * gimple-fold.c (fold_array_ctor_reference): Support constant
17027 folding across multiple array elements.
17029 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17031 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17032 doesn't have location, set the current location to the function's end.
17034 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17036 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17037 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17038 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17039 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17040 * config/aarch64/aarch64-simd.md
17041 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17042 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17043 * config/aarch64/aarch64-sve.md
17044 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17045 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17047 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17049 * doc/md.texi: Document that @ patterns can have different
17050 numbers of operands.
17051 * genemit.c (handle_overloaded_gen): Handle this case.
17052 * genopinit.c (handle_overloaded_gen): Likewise.
17053 * gensupport.c (replace_operands_with_dups): Iterate over
17054 the new rtx's format rather than the old one's.
17056 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17058 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17059 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17060 order clause entries.
17061 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17062 * tree-pretty-print.c (dump_omp_clause): Likewise.
17063 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17065 * omp-low.c (scan_sharing_clauses): Likewise.
17066 * tree-nested.c (convert_nonlocal_omp_clauses,
17067 convert_local_omp_clauses): Likewise.
17069 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17071 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17072 fallthrough target of current basic block isn't the placed
17075 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17078 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17079 (_mm512_storeu_epi64): Likewise.
17080 (_mm512_loadu_epi32): Likewise.
17081 (_mm512_storeu_epi32): Likewise.
17082 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17083 (_mm_storeu_epi64): Likewise.
17084 (_mm256_storeu_epi32): Likewise.
17085 (_mm_storeu_epi32): Likewise.
17087 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17089 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17091 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17093 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17096 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17099 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17100 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17101 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17102 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17103 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17104 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17106 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17107 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17108 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17110 (sse2_cvttpd2dq<mask_name>): Change into ...
17111 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17112 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17113 (*sse2_cvtpd2dq<mask_name>): Change into ...
17114 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17115 Add "C" constraint to const0_operand.
17116 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17117 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17121 * config/i386/i386-builtin-types.def
17122 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17123 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17124 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17125 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17126 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17127 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17128 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17129 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17130 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17131 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17132 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17133 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17134 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17135 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17136 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17137 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17138 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17139 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17140 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17141 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17142 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17143 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17144 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17145 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17146 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17147 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17148 __builtin_ia32_vpdpbusd_v4si_maskz,
17149 __builtin_ia32_vpdpbusds_v16si_mask,
17150 __builtin_ia32_vpdpbusds_v16si_maskz,
17151 __builtin_ia32_vpdpbusds_v8si_mask,
17152 __builtin_ia32_vpdpbusds_v8si_maskz,
17153 __builtin_ia32_vpdpbusds_v4si_mask,
17154 __builtin_ia32_vpdpbusds_v4si_maskz,
17155 __builtin_ia32_vpdpwssd_v16si_mask,
17156 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17157 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17158 __builtin_ia32_vpdpwssd_v4si_maskz,
17159 __builtin_ia32_vpdpwssds_v16si_mask,
17160 __builtin_ia32_vpdpwssds_v16si_maskz,
17161 __builtin_ia32_vpdpwssds_v8si_mask,
17162 __builtin_ia32_vpdpwssds_v8si_maskz,
17163 __builtin_ia32_vpdpwssds_v4si_mask,
17164 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17165 suffixed types rather than *_INT.
17166 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17167 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17168 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17169 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17170 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17171 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17173 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17175 * tree-vrp.c (intersect_ranges): If we know the intersection is
17176 empty, there is no need to conservatively add anything else to
17179 2019-07-11 Richard Biener <rguenther@suse.de>
17181 PR middle-end/91131
17182 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17183 when the object is volatile and we have not cleared it even though
17184 there are no nonzero elements.
17186 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17188 * config/rs6000/predicates.md (cint34_operand): Update
17189 SIGNED_34BIT_OFFSET_P call.
17190 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17191 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17192 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17193 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17194 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17196 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
17197 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
17198 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
17199 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
17200 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
17202 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
17204 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
17205 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
17206 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
17207 (DEF_MIN_OSX_VERSION): New.
17209 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17211 * fold-const.c (fold_relational_const): Fix folding of
17212 vector-to-scalar NE_EXPRs.
17213 (test_vector_folding): Add more tests.
17215 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17218 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
17219 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
17220 (vec_setv2di_internal): Reexpress as...
17221 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
17222 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
17223 rather than gen_neon_vset_lane<mode>.
17225 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
17228 * lra-constraints.c (process_alt_operands): Don't match user
17229 defined regs only if they are early clobbers.
17231 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
17233 * wide-int.h (wi::lshift): Reject negative values for the fast path.
17235 2019-07-10 Richard Biener <rguenther@suse.de>
17237 PR tree-optimization/91126
17238 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
17239 native encoding offset for BYTES_BIG_ENDIAN.
17240 (vn_reference_lookup_3): Likewise.
17242 2019-07-10 Richard Biener <rguenther@suse.de>
17244 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
17245 LHS whenever possible.
17247 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
17249 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
17250 from ...; work also on duplicated types.
17251 (nonoverlapping_component_refs_since_match): ... here
17252 (ncr_type_uid): Break out from ...
17253 (ncr_compar): ... here; look for TYPE_UID of canonical type if
17255 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
17256 the types and nonoverlapping_component_refs_p_1 to disambiguate.
17258 2019-07-09 Martin Sebor <msebor@redhat.com>
17260 PR tree-optimization/90989
17261 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
17262 optimization to just single character stores.
17264 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
17266 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
17267 Swap operands only once.
17269 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17271 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
17272 for both call instructions.
17274 2019-07-09 John Darrington <john@darrington.wattle.id.au>
17276 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
17277 rather than GET_MODE_BITSIZE to better handle partial integer modes.
17279 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
17281 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
17282 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
17283 function from rs6000-logue.c back to rs6000.c.
17284 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
17286 2019-07-09 Martin Sebor <msebor@redhat.com>
17289 * auto-profile.c: Change class-key of PODs to struct and others
17291 * basic-block.h: Same.
17292 * bitmap.c (bitmap_alloc): Same.
17294 * builtins.c (expand_builtin_prefetch): Same.
17295 (expand_builtin_interclass_mathfn): Same.
17296 (expand_builtin_strlen): Same.
17297 (expand_builtin_mempcpy_args): Same.
17298 (expand_cmpstr): Same.
17299 (expand_builtin___clear_cache): Same.
17300 (expand_ifn_atomic_bit_test_and): Same.
17301 (expand_builtin_thread_pointer): Same.
17302 (expand_builtin_set_thread_pointer): Same.
17303 * caller-save.c (setup_save_areas): Same.
17304 (replace_reg_with_saved_mem): Same.
17305 (insert_restore): Same.
17306 (insert_save): Same.
17307 (add_used_regs): Same.
17308 * cfg.c (get_bb_copy): Same.
17309 (set_loop_copy): Same.
17312 * cfgexpand.c (alloc_stack_frame_space): Same.
17313 (add_stack_var): Same.
17314 (add_stack_var_conflict): Same.
17315 (add_scope_conflicts_1): Same.
17316 (update_alias_info_with_stack_vars): Same.
17317 (expand_used_vars): Same.
17318 * cfghooks.c (redirect_edge_and_branch_force): Same.
17319 (delete_basic_block): Same.
17320 (split_edge): Same.
17321 (make_forwarder_block): Same.
17322 (force_nonfallthru): Same.
17323 (duplicate_block): Same.
17324 (lv_flush_pending_stmts): Same.
17325 * cfghooks.h: Same.
17326 * cfgloop.c (flow_loops_cfg_dump): Same.
17327 (flow_loop_nested_p): Same.
17328 (superloop_at_depth): Same.
17329 (get_loop_latch_edges): Same.
17330 (flow_loop_dump): Same.
17331 (flow_loops_dump): Same.
17332 (flow_loops_free): Same.
17333 (flow_loop_nodes_find): Same.
17334 (establish_preds): Same.
17335 (flow_loop_tree_node_add): Same.
17336 (flow_loop_tree_node_remove): Same.
17337 (flow_loops_find): Same.
17338 (find_subloop_latch_edge_by_profile): Same.
17339 (find_subloop_latch_edge_by_ivs): Same.
17340 (mfb_redirect_edges_in_set): Same.
17341 (form_subloop): Same.
17342 (merge_latch_edges): Same.
17343 (disambiguate_multiple_latches): Same.
17344 (disambiguate_loops_with_multiple_latches): Same.
17345 (flow_bb_inside_loop_p): Same.
17346 (glb_enum_p): Same.
17347 (get_loop_body_with_size): Same.
17348 (get_loop_body): Same.
17349 (fill_sons_in_loop): Same.
17350 (get_loop_body_in_dom_order): Same.
17351 (get_loop_body_in_custom_order): Same.
17352 (release_recorded_exits): Same.
17353 (get_loop_exit_edges): Same.
17354 (num_loop_branches): Same.
17355 (remove_bb_from_loops): Same.
17356 (find_common_loop): Same.
17357 (delete_loop): Same.
17358 (cancel_loop): Same.
17359 (verify_loop_structure): Same.
17360 (loop_preheader_edge): Same.
17361 (loop_exit_edge_p): Same.
17362 (single_exit): Same.
17363 (loop_exits_to_bb_p): Same.
17364 (loop_exits_from_bb_p): Same.
17365 (get_loop_location): Same.
17366 (record_niter_bound): Same.
17367 (get_estimated_loop_iterations_int): Same.
17368 (max_stmt_executions_int): Same.
17369 (likely_max_stmt_executions_int): Same.
17370 (get_estimated_loop_iterations): Same.
17371 (get_max_loop_iterations): Same.
17372 (get_max_loop_iterations_int): Same.
17373 (get_likely_max_loop_iterations): Same.
17374 * cfgloop.h (simple_loop_desc): Same.
17376 (loop_depth): Same.
17377 (loop_outer): Same.
17378 (loop_iterator::next): Same.
17379 (loop_outermost): Same.
17380 * cfgloopanal.c (mark_irreducible_loops): Same.
17381 (num_loop_insns): Same.
17382 (average_num_loop_insns): Same.
17383 (expected_loop_iterations_unbounded): Same.
17384 (expected_loop_iterations): Same.
17385 (mark_loop_exit_edges): Same.
17386 (single_likely_exit): Same.
17387 * cfgloopmanip.c (fix_bb_placement): Same.
17388 (fix_bb_placements): Same.
17389 (remove_path): Same.
17390 (place_new_loop): Same.
17392 (scale_loop_frequencies): Same.
17393 (scale_loop_profile): Same.
17394 (create_empty_if_region_on_edge): Same.
17395 (create_empty_loop_on_edge): Same.
17398 (fix_loop_placements): Same.
17399 (copy_loop_info): Same.
17400 (duplicate_loop): Same.
17401 (duplicate_subloops): Same.
17402 (loop_redirect_edge): Same.
17403 (can_duplicate_loop_p): Same.
17404 (duplicate_loop_to_header_edge): Same.
17405 (mfb_keep_just): Same.
17406 (has_preds_from_loop): Same.
17407 (create_preheader): Same.
17408 (create_preheaders): Same.
17409 (lv_adjust_loop_entry_edge): Same.
17410 (loop_version): Same.
17411 * cfgloopmanip.h: Same.
17413 * cgraphbuild.c: Same.
17414 * combine.c (make_extraction): Same.
17415 * config/i386/i386-features.c: Same.
17416 * config/i386/i386-features.h: Same.
17417 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
17418 (ix86_emit_outlined_ms2sysv_restore): Same.
17419 (ix86_noce_conversion_profitable_p): Same.
17420 (ix86_init_cost): Same.
17421 (ix86_simd_clone_usable): Same.
17422 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
17424 * coretypes.h: Same.
17425 * data-streamer-in.c (string_for_index): Change class-key of PODs
17426 to struct and others to class.
17427 (streamer_read_indexed_string): Same.
17428 (streamer_read_string): Same.
17429 (bp_unpack_indexed_string): Same.
17430 (bp_unpack_string): Same.
17431 (streamer_read_uhwi): Same.
17432 (streamer_read_hwi): Same.
17433 (streamer_read_gcov_count): Same.
17434 (streamer_read_wide_int): Same.
17435 * data-streamer.h (streamer_write_bitpack): Same.
17436 (bp_unpack_value): Same.
17437 (streamer_write_char_stream): Same.
17438 (streamer_write_hwi_in_range): Same.
17439 (streamer_write_record_start): Same.
17440 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
17441 (add_cross_iteration_register_deps): Same.
17442 (build_intra_loop_deps): Same.
17443 * df-core.c (df_analyze): Same.
17444 (loop_post_order_compute): Same.
17445 (loop_inverted_post_order_compute): Same.
17446 * df-problems.c (df_rd_alloc): Same.
17447 (df_rd_simulate_one_insn): Same.
17448 (df_rd_local_compute): Same.
17449 (df_rd_init_solution): Same.
17450 (df_rd_confluence_n): Same.
17451 (df_rd_transfer_function): Same.
17452 (df_rd_free): Same.
17453 (df_rd_dump_defs_set): Same.
17454 (df_rd_top_dump): Same.
17455 (df_lr_alloc): Same.
17456 (df_lr_reset): Same.
17457 (df_lr_local_compute): Same.
17458 (df_lr_init): Same.
17459 (df_lr_confluence_n): Same.
17460 (df_lr_free): Same.
17461 (df_lr_top_dump): Same.
17462 (df_lr_verify_transfer_functions): Same.
17463 (df_live_alloc): Same.
17464 (df_live_reset): Same.
17465 (df_live_init): Same.
17466 (df_live_confluence_n): Same.
17467 (df_live_finalize): Same.
17468 (df_live_free): Same.
17469 (df_live_top_dump): Same.
17470 (df_live_verify_transfer_functions): Same.
17471 (df_mir_alloc): Same.
17472 (df_mir_reset): Same.
17473 (df_mir_init): Same.
17474 (df_mir_confluence_n): Same.
17475 (df_mir_free): Same.
17476 (df_mir_top_dump): Same.
17477 (df_word_lr_alloc): Same.
17478 (df_word_lr_reset): Same.
17479 (df_word_lr_init): Same.
17480 (df_word_lr_confluence_n): Same.
17481 (df_word_lr_free): Same.
17482 (df_word_lr_top_dump): Same.
17483 (df_md_alloc): Same.
17484 (df_md_simulate_one_insn): Same.
17485 (df_md_reset): Same.
17486 (df_md_init): Same.
17487 (df_md_free): Same.
17488 (df_md_top_dump): Same.
17489 * df-scan.c (df_insn_delete): Same.
17490 (df_insn_rescan): Same.
17491 (df_notes_rescan): Same.
17492 (df_sort_and_compress_mws): Same.
17493 (df_install_mws): Same.
17494 (df_refs_add_to_chains): Same.
17495 (df_ref_create_structure): Same.
17496 (df_ref_record): Same.
17497 (df_def_record_1): Same.
17498 (df_find_hard_reg_defs): Same.
17499 (df_uses_record): Same.
17500 (df_get_conditional_uses): Same.
17501 (df_get_call_refs): Same.
17502 (df_recompute_luids): Same.
17503 (df_get_entry_block_def_set): Same.
17504 (df_entry_block_defs_collect): Same.
17505 (df_get_exit_block_use_set): Same.
17506 (df_exit_block_uses_collect): Same.
17507 (df_mws_verify): Same.
17508 (df_bb_verify): Same.
17509 * df.h (df_scan_get_bb_info): Same.
17510 * doc/tm.texi: Same.
17511 * dse.c (record_store): Same.
17512 * dumpfile.h: Same.
17513 * emit-rtl.c (const_fixed_hasher::equal): Same.
17514 (set_mem_attributes_minus_bitpos): Same.
17515 (change_address): Same.
17516 (adjust_address_1): Same.
17517 (offset_address): Same.
17518 * emit-rtl.h: Same.
17519 * except.c (dw2_build_landing_pads): Same.
17520 (sjlj_emit_dispatch_table): Same.
17521 * explow.c (allocate_dynamic_stack_space): Same.
17522 (emit_stack_probe): Same.
17523 (probe_stack_range): Same.
17524 * expmed.c (store_bit_field_using_insv): Same.
17525 (store_bit_field_1): Same.
17526 (store_integral_bit_field): Same.
17527 (extract_bit_field_using_extv): Same.
17528 (extract_bit_field_1): Same.
17529 (emit_cstore): Same.
17530 * expr.c (emit_block_move_via_cpymem): Same.
17531 (expand_cmpstrn_or_cmpmem): Same.
17532 (set_storage_via_setmem): Same.
17533 (emit_single_push_insn_1): Same.
17534 (expand_assignment): Same.
17535 (store_constructor): Same.
17536 (expand_expr_real_2): Same.
17537 (expand_expr_real_1): Same.
17538 (try_casesi): Same.
17540 * function.c (try_fit_stack_local): Same.
17541 (assign_stack_local_1): Same.
17542 (assign_stack_local): Same.
17543 (cut_slot_from_list): Same.
17544 (insert_slot_to_list): Same.
17545 (max_slot_level): Same.
17546 (move_slot_to_level): Same.
17547 (temp_address_hasher::equal): Same.
17548 (remove_unused_temp_slot_addresses): Same.
17549 (assign_temp): Same.
17550 (combine_temp_slots): Same.
17551 (update_temp_slot_address): Same.
17552 (preserve_temp_slots): Same.
17553 * function.h: Same.
17555 * gcc-rich-location.h: Same.
17557 * genattrtab.c (check_attr_test): Same.
17558 (check_attr_value): Same.
17559 (convert_set_attr_alternative): Same.
17560 (convert_set_attr): Same.
17561 (check_defs): Same.
17562 (copy_boolean): Same.
17563 (get_attr_value): Same.
17564 (expand_delays): Same.
17565 (make_length_attrs): Same.
17567 (make_alternative_compare): Same.
17568 (simplify_test_exp): Same.
17569 (tests_attr_p): Same.
17570 (get_attr_order): Same.
17571 (clear_struct_flag): Same.
17573 (compares_alternatives_p): Same.
17576 (find_attrs_to_cache): Same.
17577 (write_test_expr): Same.
17578 (walk_attr_value): Same.
17579 (write_attr_get): Same.
17580 (eliminate_known_true): Same.
17581 (write_insn_cases): Same.
17582 (write_attr_case): Same.
17583 (write_attr_valueq): Same.
17584 (write_attr_value): Same.
17585 (write_dummy_eligible_delay): Same.
17586 (next_comma_elt): Same.
17588 (make_internal_attr): Same.
17589 (copy_rtx_unchanging): Same.
17590 (gen_insn_reserv): Same.
17591 (check_tune_attr): Same.
17592 (make_automaton_attrs): Same.
17593 (handle_arg): Same.
17594 * genextract.c (gen_insn): Same.
17595 (VEC_char_to_string): Same.
17596 * genmatch.c (print_operand): Same.
17598 (parser::parse_operation): Same.
17599 (parser::parse_capture): Same.
17600 (parser::parse_c_expr): Same.
17601 (parser::parse_simplify): Same.
17603 * genoutput.c (output_operand_data): Same.
17604 (output_get_insn_name): Same.
17605 (compare_operands): Same.
17606 (place_operands): Same.
17607 (process_template): Same.
17608 (validate_insn_alternatives): Same.
17609 (validate_insn_operands): Same.
17610 (gen_expand): Same.
17611 (note_constraint): Same.
17612 * genpreds.c (write_one_predicate_function): Same.
17613 (add_constraint): Same.
17614 (process_define_register_constraint): Same.
17615 (write_lookup_constraint_1): Same.
17616 (write_lookup_constraint_array): Same.
17617 (write_insn_constraint_len): Same.
17618 (write_reg_class_for_constraint_1): Same.
17619 (write_constraint_satisfied_p_array): Same.
17620 * genrecog.c (optimize_subroutine_group): Same.
17621 * gensupport.c (process_define_predicate): Same.
17622 (queue_pattern): Same.
17623 (remove_from_queue): Same.
17624 (process_rtx): Same.
17625 (is_predicable): Same.
17626 (change_subst_attribute): Same.
17627 (subst_pattern_match): Same.
17628 (alter_constraints): Same.
17629 (alter_attrs_for_insn): Same.
17630 (shift_output_template): Same.
17631 (alter_output_for_subst_insn): Same.
17632 (process_one_cond_exec): Same.
17634 (process_define_cond_exec): Same.
17635 (mnemonic_htab_callback): Same.
17636 (gen_mnemonic_attr): Same.
17637 (read_md_rtx): Same.
17638 * ggc-page.c: Same.
17639 * gimple-loop-interchange.cc (dump_reduction): Same.
17640 (dump_induction): Same.
17641 (loop_cand::~loop_cand): Same.
17642 (free_data_refs_with_aux): Same.
17643 (tree_loop_interchange::interchange_loops): Same.
17644 (tree_loop_interchange::map_inductions_to_loop): Same.
17645 (tree_loop_interchange::move_code_to_inner_loop): Same.
17646 (compute_access_stride): Same.
17647 (compute_access_strides): Same.
17648 (proper_loop_form_for_interchange): Same.
17649 (tree_loop_interchange_compute_ddrs): Same.
17650 (prune_datarefs_not_in_loop): Same.
17651 (prepare_data_references): Same.
17652 (pass_linterchange::execute): Same.
17653 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17654 (unroll_jam_possible_p): Same.
17655 (fuse_loops): Same.
17656 (adjust_unroll_factor): Same.
17657 (tree_loop_unroll_and_jam): Same.
17658 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17659 (loop_versioning::expensive_stmt_p): Same.
17660 (loop_versioning::version_for_unity): Same.
17661 (loop_versioning::dump_inner_likelihood): Same.
17662 (loop_versioning::find_per_loop_multiplication): Same.
17663 (loop_versioning::analyze_term_using_scevs): Same.
17664 (loop_versioning::record_address_fragment): Same.
17665 (loop_versioning::analyze_expr): Same.
17666 (loop_versioning::analyze_blocks): Same.
17667 (loop_versioning::prune_conditions): Same.
17668 (loop_versioning::merge_loop_info): Same.
17669 (loop_versioning::add_loop_to_queue): Same.
17670 (loop_versioning::decide_whether_loop_is_versionable): Same.
17671 (loop_versioning::make_versioning_decisions): Same.
17672 (loop_versioning::implement_versioning_decisions): Same.
17673 * gimple-ssa-evrp-analyze.c
17674 (evrp_range_analyzer::record_ranges_from_phis): Same.
17675 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17676 (count_multiple_uses): Same.
17677 (split_group): Same.
17678 (imm_store_chain_info::output_merged_store): Same.
17679 (pass_store_merging::process_store): Same.
17680 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17681 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17683 (alloca_call_type): Same.
17684 (pass_walloca::execute): Same.
17685 * gimple-streamer-in.c (input_phi): Same.
17686 (input_gimple_stmt): Same.
17687 * gimple-streamer.h: Same.
17688 * godump.c (go_force_record_alignment): Same.
17689 (go_format_type): Same.
17690 (go_output_type): Same.
17691 (go_output_fndecl): Same.
17692 (go_output_typedef): Same.
17693 (keyword_hash_init): Same.
17694 (find_dummy_types): Same.
17695 * graph.c (draw_cfg_nodes_no_loops): Same.
17696 (draw_cfg_nodes_for_loop): Same.
17697 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17698 * hsa-brig.c: Same.
17699 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17700 * hsa-dump.c (dump_hsa_cfun): Same.
17701 * hsa-gen.c (gen_function_def_parameters): Same.
17702 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17703 * input.c (dump_line_table_statistics): Same.
17704 (test_lexer): Same.
17706 * internal-fn.c (get_multi_vector_move): Same.
17707 (expand_load_lanes_optab_fn): Same.
17708 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17709 (expand_GOMP_SIMT_EXIT): Same.
17710 (expand_GOMP_SIMT_LAST_LANE): Same.
17711 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17712 (expand_GOMP_SIMT_VOTE_ANY): Same.
17713 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17714 (expand_GOMP_SIMT_XCHG_IDX): Same.
17715 (expand_addsub_overflow): Same.
17716 (expand_neg_overflow): Same.
17717 (expand_mul_overflow): Same.
17718 (expand_call_mem_ref): Same.
17719 (expand_mask_load_optab_fn): Same.
17720 (expand_scatter_store_optab_fn): Same.
17721 (expand_gather_load_optab_fn): Same.
17722 * ipa-cp.c (ipa_get_parm_lattices): Same.
17723 (print_all_lattices): Same.
17724 (ignore_edge_p): Same.
17725 (build_toporder_info): Same.
17726 (free_toporder_info): Same.
17727 (push_node_to_stack): Same.
17728 (ipcp_lattice<valtype>::set_contains_variable): Same.
17729 (set_agg_lats_to_bottom): Same.
17730 (ipcp_bits_lattice::meet_with): Same.
17731 (set_single_call_flag): Same.
17732 (initialize_node_lattices): Same.
17733 (ipa_get_jf_ancestor_result): Same.
17734 (ipcp_verify_propagated_values): Same.
17735 (propagate_scalar_across_jump_function): Same.
17736 (propagate_context_across_jump_function): Same.
17737 (propagate_bits_across_jump_function): Same.
17738 (ipa_vr_operation_and_type_effects): Same.
17739 (propagate_vr_across_jump_function): Same.
17740 (set_check_aggs_by_ref): Same.
17741 (set_chain_of_aglats_contains_variable): Same.
17742 (merge_aggregate_lattices): Same.
17743 (agg_pass_through_permissible_p): Same.
17744 (propagate_aggs_across_jump_function): Same.
17745 (call_passes_through_thunk_p): Same.
17746 (propagate_constants_across_call): Same.
17747 (devirtualization_time_bonus): Same.
17748 (good_cloning_opportunity_p): Same.
17749 (context_independent_aggregate_values): Same.
17750 (gather_context_independent_values): Same.
17751 (perform_estimation_of_a_value): Same.
17752 (estimate_local_effects): Same.
17753 (value_topo_info<valtype>::add_val): Same.
17754 (add_all_node_vals_to_toposort): Same.
17755 (value_topo_info<valtype>::propagate_effects): Same.
17756 (ipcp_propagate_stage): Same.
17757 (ipcp_discover_new_direct_edges): Same.
17758 (same_node_or_its_all_contexts_clone_p): Same.
17759 (cgraph_edge_brings_value_p): Same.
17760 (gather_edges_for_value): Same.
17761 (create_specialized_node): Same.
17762 (find_more_scalar_values_for_callers_subset): Same.
17763 (find_more_contexts_for_caller_subset): Same.
17764 (copy_plats_to_inter): Same.
17765 (intersect_aggregates_with_edge): Same.
17766 (find_aggregate_values_for_callers_subset): Same.
17767 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17768 (decide_about_value): Same.
17769 (decide_whether_version_node): Same.
17770 (spread_undeadness): Same.
17771 (identify_dead_nodes): Same.
17772 (ipcp_store_vr_results): Same.
17773 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17774 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17775 (redirect_to_unreachable): Same.
17776 (edge_set_predicate): Same.
17777 (evaluate_conditions_for_known_args): Same.
17778 (evaluate_properties_for_edge): Same.
17779 (ipa_fn_summary_t::duplicate): Same.
17780 (ipa_call_summary_t::duplicate): Same.
17781 (dump_ipa_call_summary): Same.
17782 (ipa_dump_fn_summary): Same.
17783 (eliminated_by_inlining_prob): Same.
17784 (set_cond_stmt_execution_predicate): Same.
17785 (set_switch_stmt_execution_predicate): Same.
17786 (compute_bb_predicates): Same.
17787 (will_be_nonconstant_expr_predicate): Same.
17788 (phi_result_unknown_predicate): Same.
17789 (analyze_function_body): Same.
17790 (compute_fn_summary): Same.
17791 (estimate_edge_devirt_benefit): Same.
17792 (estimate_edge_size_and_time): Same.
17793 (estimate_calls_size_and_time): Same.
17794 (estimate_node_size_and_time): Same.
17795 (remap_edge_change_prob): Same.
17796 (remap_edge_summaries): Same.
17797 (ipa_merge_fn_summary_after_inlining): Same.
17798 (ipa_fn_summary_generate): Same.
17799 (inline_read_section): Same.
17800 (ipa_fn_summary_read): Same.
17801 (ipa_fn_summary_write): Same.
17802 * ipa-fnsummary.h: Same.
17803 * ipa-hsa.c (ipa_hsa_read_section): Same.
17804 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17805 * ipa-icf.c (sem_function::param_used_p): Same.
17806 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17807 * ipa-inline.c (edge_badness): Same.
17808 (inline_small_functions): Same.
17809 * ipa-polymorphic-call.c
17810 (ipa_polymorphic_call_context::stream_out): Same.
17811 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17812 (predicate::remap_after_inlining): Same.
17813 (predicate::stream_out): Same.
17814 * ipa-predicate.h: Same.
17815 * ipa-profile.c (ipa_profile_read_summary): Same.
17816 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17817 (count_formal_params): Same.
17818 (ipa_dump_param): Same.
17819 (ipa_alloc_node_params): Same.
17820 (ipa_print_node_jump_functions_for_edge): Same.
17821 (ipa_print_node_jump_functions): Same.
17822 (ipa_load_from_parm_agg): Same.
17823 (get_ancestor_addr_info): Same.
17824 (ipa_compute_jump_functions_for_edge): Same.
17825 (ipa_analyze_virtual_call_uses): Same.
17826 (ipa_analyze_stmt_uses): Same.
17827 (ipa_analyze_params_uses_in_bb): Same.
17828 (update_jump_functions_after_inlining): Same.
17829 (try_decrement_rdesc_refcount): Same.
17830 (ipa_impossible_devirt_target): Same.
17831 (update_indirect_edges_after_inlining): Same.
17832 (combine_controlled_uses_counters): Same.
17833 (ipa_edge_args_sum_t::duplicate): Same.
17834 (ipa_write_jump_function): Same.
17835 (ipa_write_indirect_edge_info): Same.
17836 (ipa_write_node_info): Same.
17837 (ipa_read_edge_info): Same.
17838 (ipa_prop_read_section): Same.
17839 (read_replacements_section): Same.
17840 * ipa-prop.h (ipa_get_param_count): Same.
17841 (ipa_get_param): Same.
17842 (ipa_get_type): Same.
17843 (ipa_get_param_move_cost): Same.
17844 (ipa_set_param_used): Same.
17845 (ipa_get_controlled_uses): Same.
17846 (ipa_set_controlled_uses): Same.
17847 (ipa_get_cs_argument_count): Same.
17848 * ipa-pure-const.c (analyze_function): Same.
17849 (pure_const_read_summary): Same.
17851 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17852 * ipa-split.c (test_nonssa_use): Same.
17853 (dump_split_point): Same.
17854 (dominated_by_forbidden): Same.
17855 (split_part_set_ssa_name_p): Same.
17856 (find_split_points): Same.
17857 * ira-build.c (finish_loop_tree_nodes): Same.
17858 (low_pressure_loop_node_p): Same.
17859 * ira-color.c (ira_reuse_stack_slot): Same.
17861 * ira.c (setup_reg_equiv): Same.
17862 (print_insn_chain): Same.
17864 * loop-doloop.c (doloop_condition_get): Same.
17866 (record_reg_sets): Same.
17867 (doloop_optimize): Same.
17868 * loop-init.c (loop_optimizer_init): Same.
17869 (fix_loop_structure): Same.
17870 * loop-invariant.c (merge_identical_invariants): Same.
17871 (compute_always_reached): Same.
17872 (find_exits): Same.
17873 (may_assign_reg_p): Same.
17874 (find_invariants_bb): Same.
17875 (find_invariants_body): Same.
17876 (replace_uses): Same.
17877 (can_move_invariant_reg): Same.
17878 (free_inv_motion_data): Same.
17879 (move_single_loop_invariants): Same.
17880 (change_pressure): Same.
17881 (mark_ref_regs): Same.
17882 (calculate_loop_reg_pressure): Same.
17883 * loop-iv.c (biv_entry_hasher::equal): Same.
17884 (iv_extend_to_rtx_code): Same.
17885 (check_iv_ref_table_size): Same.
17886 (clear_iv_info): Same.
17887 (latch_dominating_def): Same.
17888 (iv_get_reaching_def): Same.
17889 (iv_constant): Same.
17895 (get_biv_step): Same.
17897 (analyzed_for_bivness_p): Same.
17898 (record_biv): Same.
17899 (iv_analyze_biv): Same.
17900 (iv_analyze_expr): Same.
17901 (iv_analyze_def): Same.
17902 (iv_analyze_op): Same.
17903 (iv_analyze): Same.
17904 (iv_analyze_result): Same.
17906 (eliminate_implied_conditions): Same.
17907 (simplify_using_initial_values): Same.
17908 (shorten_into_mode): Same.
17909 (canonicalize_iv_subregs): Same.
17910 (determine_max_iter): Same.
17911 (check_simple_exit): Same.
17912 (find_simple_exit): Same.
17913 (get_simple_loop_desc): Same.
17914 * loop-unroll.c (report_unroll): Same.
17915 (decide_unrolling): Same.
17916 (unroll_loops): Same.
17917 (loop_exit_at_end_p): Same.
17918 (decide_unroll_constant_iterations): Same.
17919 (unroll_loop_constant_iterations): Same.
17920 (compare_and_jump_seq): Same.
17921 (unroll_loop_runtime_iterations): Same.
17922 (decide_unroll_stupid): Same.
17923 (unroll_loop_stupid): Same.
17924 (referenced_in_one_insn_in_loop_p): Same.
17925 (reset_debug_uses_in_loop): Same.
17926 (analyze_iv_to_split_insn): Same.
17927 * lra-eliminations.c (lra_debug_elim_table): Same.
17928 (setup_can_eliminate): Same.
17930 (lra_get_elimination_hard_regno): Same.
17931 (lra_eliminate_regs_1): Same.
17932 (eliminate_regs_in_insn): Same.
17933 (update_reg_eliminate): Same.
17934 (init_elimination): Same.
17935 (lra_eliminate): Same.
17937 * lra-lives.c (initiate_live_solver): Same.
17938 * lra-remat.c (create_remat_bb_data): Same.
17939 * lra-spills.c (lra_spill): Same.
17940 * lra.c (lra_set_insn_recog_data): Same.
17941 (lra_set_used_insn_alternative_by_uid): Same.
17942 (init_reg_info): Same.
17943 (expand_reg_info): Same.
17944 * lto-cgraph.c (output_symtab): Same.
17945 (read_identifier): Same.
17946 (get_alias_symbol): Same.
17947 (input_node): Same.
17948 (input_varpool_node): Same.
17950 (input_edge): Same.
17951 (input_cgraph_1): Same.
17952 (input_refs): Same.
17953 (input_symtab): Same.
17954 (input_offload_tables): Same.
17955 (output_cgraph_opt_summary): Same.
17956 (input_edge_opt_summary): Same.
17957 (input_cgraph_opt_section): Same.
17958 * lto-section-in.c (lto_free_raw_section_data): Same.
17959 (lto_create_simple_input_block): Same.
17960 (lto_free_function_in_decl_state_for_node): Same.
17961 * lto-streamer-in.c (lto_tag_check_set): Same.
17962 (lto_location_cache::revert_location_cache): Same.
17963 (lto_location_cache::input_location): Same.
17964 (lto_input_location): Same.
17965 (stream_input_location_now): Same.
17966 (lto_input_tree_ref): Same.
17967 (lto_input_eh_catch_list): Same.
17968 (input_eh_region): Same.
17969 (lto_init_eh): Same.
17970 (make_new_block): Same.
17972 (fixup_call_stmt_edges): Same.
17973 (input_struct_function_base): Same.
17974 (input_function): Same.
17975 (lto_read_body_or_constructor): Same.
17976 (lto_read_tree_1): Same.
17977 (lto_read_tree): Same.
17978 (lto_input_scc): Same.
17979 (lto_input_tree_1): Same.
17980 (lto_input_toplevel_asms): Same.
17981 (lto_input_mode_table): Same.
17982 (lto_reader_init): Same.
17983 (lto_data_in_create): Same.
17984 * lto-streamer-out.c (output_cfg): Same.
17985 * lto-streamer.h: Same.
17986 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17987 (generate_prolog_epilog): Same.
17988 (mark_loop_unsched): Same.
17989 (dump_insn_location): Same.
17990 (loop_canon_p): Same.
17991 (sms_schedule): Same.
17992 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17993 (expand_omp_for_generic): Same.
17994 (expand_omp_for_static_nochunk): Same.
17995 (expand_omp_for_static_chunk): Same.
17996 (expand_omp_simd): Same.
17997 (expand_omp_taskloop_for_inner): Same.
17998 (expand_oacc_for): Same.
17999 (expand_omp_atomic_pipeline): Same.
18000 (mark_loops_in_oacc_kernels_region): Same.
18001 * omp-offload.c (oacc_xform_loop): Same.
18002 * omp-simd-clone.c (simd_clone_adjust): Same.
18003 * optabs-query.c (get_traditional_extraction_insn): Same.
18004 * optabs.c (expand_vector_broadcast): Same.
18005 (expand_binop_directly): Same.
18006 (expand_twoval_unop): Same.
18007 (expand_twoval_binop): Same.
18008 (expand_unop_direct): Same.
18009 (emit_indirect_jump): Same.
18010 (emit_conditional_move): Same.
18011 (emit_conditional_neg_or_complement): Same.
18012 (emit_conditional_add): Same.
18013 (vector_compare_rtx): Same.
18014 (expand_vec_perm_1): Same.
18015 (expand_vec_perm_const): Same.
18016 (expand_vec_cond_expr): Same.
18017 (expand_vec_series_expr): Same.
18018 (maybe_emit_atomic_exchange): Same.
18019 (maybe_emit_sync_lock_test_and_set): Same.
18020 (expand_atomic_compare_and_swap): Same.
18021 (expand_atomic_load): Same.
18022 (expand_atomic_store): Same.
18023 (maybe_emit_op): Same.
18024 (valid_multiword_target_p): Same.
18025 (create_integer_operand): Same.
18026 (maybe_legitimize_operand_same_code): Same.
18027 (maybe_legitimize_operand): Same.
18028 (create_convert_operand_from_type): Same.
18029 (can_reuse_operands_p): Same.
18030 (maybe_legitimize_operands): Same.
18031 (maybe_gen_insn): Same.
18032 (maybe_expand_insn): Same.
18033 (maybe_expand_jump_insn): Same.
18034 (expand_insn): Same.
18035 * optabs.h (create_expand_operand): Same.
18036 (create_fixed_operand): Same.
18037 (create_output_operand): Same.
18038 (create_input_operand): Same.
18039 (create_convert_operand_to): Same.
18040 (create_convert_operand_from): Same.
18042 * poly-int.h: Same.
18043 * predict.c (optimize_insn_for_speed_p): Same.
18044 (optimize_loop_for_size_p): Same.
18045 (optimize_loop_for_speed_p): Same.
18046 (optimize_loop_nest_for_speed_p): Same.
18047 (get_base_value): Same.
18048 (predicted_by_loop_heuristics_p): Same.
18049 (predict_extra_loop_exits): Same.
18050 (predict_loops): Same.
18051 (predict_paths_for_bb): Same.
18052 (predict_paths_leading_to): Same.
18053 (propagate_freq): Same.
18054 (pass_profile::execute): Same.
18056 * profile-count.c (profile_count::differs_from_p): Same.
18057 (profile_probability::differs_lot_from_p): Same.
18058 * profile-count.h: Same.
18059 * profile.c (branch_prob): Same.
18060 * regrename.c (free_chain_data): Same.
18061 (mark_conflict): Same.
18062 (create_new_chain): Same.
18063 (merge_overlapping_regs): Same.
18064 (init_rename_info): Same.
18065 (merge_chains): Same.
18066 (regrename_analyze): Same.
18067 (regrename_do_replace): Same.
18068 (scan_rtx_reg): Same.
18069 (record_out_operands): Same.
18070 (build_def_use): Same.
18071 * regrename.h: Same.
18073 * reload1.c (init_reload): Same.
18074 (maybe_fix_stack_asms): Same.
18075 (copy_reloads): Same.
18076 (count_pseudo): Same.
18077 (count_spilled_pseudo): Same.
18079 (find_reload_regs): Same.
18080 (select_reload_regs): Same.
18081 (spill_hard_reg): Same.
18082 (fixup_eh_region_note): Same.
18083 (set_reload_reg): Same.
18084 (allocate_reload_reg): Same.
18085 (compute_reload_subreg_offset): Same.
18086 (reload_adjust_reg_for_icode): Same.
18087 (emit_input_reload_insns): Same.
18088 (emit_output_reload_insns): Same.
18089 (do_input_reload): Same.
18090 (inherit_piecemeal_p): Same.
18092 * sanopt.c (maybe_get_dominating_check): Same.
18093 (maybe_optimize_ubsan_ptr_ifn): Same.
18094 (can_remove_asan_check): Same.
18095 (maybe_optimize_asan_check_ifn): Same.
18096 (sanopt_optimize_walker): Same.
18097 * sched-deps.c (add_dependence_list): Same.
18098 (chain_to_prev_insn): Same.
18099 (add_insn_mem_dependence): Same.
18100 (create_insn_reg_set): Same.
18101 (maybe_extend_reg_info_p): Same.
18102 (sched_analyze_reg): Same.
18103 (sched_analyze_1): Same.
18104 (get_implicit_reg_pending_clobbers): Same.
18105 (chain_to_prev_insn_p): Same.
18106 (deps_analyze_insn): Same.
18107 (deps_start_bb): Same.
18108 (sched_free_deps): Same.
18110 (init_deps_reg_last): Same.
18112 * sched-ebb.c: Same.
18113 * sched-int.h: Same.
18114 * sched-rgn.c (add_branch_dependences): Same.
18115 (concat_insn_mem_list): Same.
18117 (sched_rgn_compute_dependencies): Same.
18118 * sel-sched-ir.c (reset_target_context): Same.
18119 (copy_deps_context): Same.
18120 (init_id_from_df): Same.
18121 (has_dependence_p): Same.
18122 (change_loops_latches): Same.
18123 (bb_top_order_comparator): Same.
18124 (make_region_from_loop_preheader): Same.
18125 (sel_init_pipelining): Same.
18126 (get_loop_nest_for_rgn): Same.
18127 (make_regions_from_the_rest): Same.
18128 (sel_is_loop_preheader_p): Same.
18129 * sel-sched-ir.h (inner_loop_header_p): Same.
18130 (get_all_loop_exits): Same.
18131 * selftest.h: Same.
18132 * sese.c (sese_build_liveouts): Same.
18133 (sese_insert_phis_for_liveouts): Same.
18134 * sese.h (defined_in_sese_p): Same.
18135 * sreal.c (sreal::stream_out): Same.
18137 * streamer-hooks.h: Same.
18138 * target-globals.c (save_target_globals): Same.
18139 * target-globals.h: Same.
18140 * target.def: Same.
18142 * targhooks.c (default_has_ifunc_p): Same.
18143 (default_empty_mask_is_expensive): Same.
18144 (default_init_cost): Same.
18145 * targhooks.h: Same.
18147 * tree-affine.c (aff_combination_mult): Same.
18148 (aff_combination_expand): Same.
18149 (aff_combination_constant_multiple_p): Same.
18150 * tree-affine.h: Same.
18151 * tree-cfg.c (build_gimple_cfg): Same.
18152 (replace_loop_annotate_in_block): Same.
18153 (replace_uses_by): Same.
18155 (dump_cfg_stats): Same.
18156 (gimple_duplicate_sese_region): Same.
18157 (gimple_duplicate_sese_tail): Same.
18158 (move_block_to_fn): Same.
18159 (replace_block_vars_by_duplicates): Same.
18160 (move_sese_region_to_fn): Same.
18161 (print_loops_bb): Same.
18162 (print_loop): Same.
18163 (print_loops): Same.
18165 (debug_loops): Same.
18166 * tree-cfg.h: Same.
18167 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18168 (chrec_fold_multiply_poly_poly): Same.
18169 (chrec_evaluate): Same.
18170 (chrec_component_in_loop_num): Same.
18171 (reset_evolution_in_loop): Same.
18172 (is_multivariate_chrec): Same.
18173 (chrec_contains_symbols): Same.
18174 (nb_vars_in_chrec): Same.
18175 (chrec_convert_1): Same.
18176 (chrec_convert_aggressive): Same.
18177 * tree-chrec.h: Same.
18178 * tree-core.h: Same.
18179 * tree-data-ref.c (dump_data_dependence_relation): Same.
18180 (canonicalize_base_object_address): Same.
18181 (data_ref_compare_tree): Same.
18182 (prune_runtime_alias_test_list): Same.
18183 (get_segment_min_max): Same.
18184 (create_intersect_range_checks): Same.
18185 (conflict_fn_no_dependence): Same.
18186 (object_address_invariant_in_loop_p): Same.
18187 (analyze_ziv_subscript): Same.
18188 (analyze_siv_subscript_cst_affine): Same.
18189 (analyze_miv_subscript): Same.
18190 (analyze_overlapping_iterations): Same.
18191 (build_classic_dist_vector_1): Same.
18192 (add_other_self_distances): Same.
18193 (same_access_functions): Same.
18194 (build_classic_dir_vector): Same.
18195 (subscript_dependence_tester_1): Same.
18196 (subscript_dependence_tester): Same.
18197 (access_functions_are_affine_or_constant_p): Same.
18198 (get_references_in_stmt): Same.
18199 (loop_nest_has_data_refs): Same.
18200 (graphite_find_data_references_in_stmt): Same.
18201 (find_data_references_in_bb): Same.
18202 (get_base_for_alignment): Same.
18203 (find_loop_nest_1): Same.
18204 (find_loop_nest): Same.
18205 * tree-data-ref.h (dr_alignment): Same.
18206 (ddr_dependence_level): Same.
18207 * tree-if-conv.c (fold_build_cond_expr): Same.
18208 (add_to_predicate_list): Same.
18209 (add_to_dst_predicate_list): Same.
18210 (phi_convertible_by_degenerating_args): Same.
18211 (idx_within_array_bound): Same.
18212 (all_preds_critical_p): Same.
18213 (pred_blocks_visited_p): Same.
18214 (predicate_bbs): Same.
18215 (build_region): Same.
18216 (if_convertible_loop_p_1): Same.
18217 (is_cond_scalar_reduction): Same.
18218 (predicate_scalar_phi): Same.
18219 (remove_conditions_and_labels): Same.
18220 (combine_blocks): Same.
18221 (version_loop_for_if_conversion): Same.
18222 (versionable_outer_loop_p): Same.
18223 (ifcvt_local_dce): Same.
18224 (tree_if_conversion): Same.
18225 (pass_if_conversion::gate): Same.
18226 * tree-if-conv.h: Same.
18227 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
18228 * tree-loop-distribution.c (bb_top_order_cmp): Same.
18230 (stmt_has_scalar_dependences_outside_loop): Same.
18231 (copy_loop_before): Same.
18232 (create_bb_after_loop): Same.
18233 (const_with_all_bytes_same): Same.
18234 (generate_memset_builtin): Same.
18235 (generate_memcpy_builtin): Same.
18236 (destroy_loop): Same.
18237 (build_rdg_partition_for_vertex): Same.
18238 (compute_access_range): Same.
18239 (data_ref_segment_size): Same.
18240 (latch_dominated_by_data_ref): Same.
18241 (compute_alias_check_pairs): Same.
18242 (fuse_memset_builtins): Same.
18243 (finalize_partitions): Same.
18244 (find_seed_stmts_for_distribution): Same.
18245 (prepare_perfect_loop_nest): Same.
18246 * tree-parloops.c (lambda_transform_legal_p): Same.
18247 (loop_parallel_p): Same.
18248 (reduc_stmt_res): Same.
18249 (add_field_for_name): Same.
18250 (create_call_for_reduction_1): Same.
18251 (replace_uses_in_bb_by): Same.
18252 (transform_to_exit_first_loop_alt): Same.
18253 (try_transform_to_exit_first_loop_alt): Same.
18254 (transform_to_exit_first_loop): Same.
18256 (gen_parallel_loop): Same.
18257 (gather_scalar_reductions): Same.
18258 (get_omp_data_i_param): Same.
18259 (try_create_reduction_list): Same.
18260 (oacc_entry_exit_single_gang): Same.
18261 (parallelize_loops): Same.
18262 * tree-pass.h: Same.
18263 * tree-predcom.c (determine_offset): Same.
18264 (last_always_executed_block): Same.
18265 (split_data_refs_to_components): Same.
18266 (suitable_component_p): Same.
18267 (valid_initializer_p): Same.
18268 (find_looparound_phi): Same.
18269 (insert_looparound_copy): Same.
18270 (add_looparound_copies): Same.
18271 (determine_roots_comp): Same.
18272 (predcom_tmp_var): Same.
18273 (initialize_root_vars): Same.
18274 (initialize_root_vars_store_elim_1): Same.
18275 (initialize_root_vars_store_elim_2): Same.
18276 (finalize_eliminated_stores): Same.
18277 (initialize_root_vars_lm): Same.
18278 (remove_stmt): Same.
18279 (determine_unroll_factor): Same.
18280 (execute_pred_commoning_cbck): Same.
18281 (base_names_in_chain_on): Same.
18282 (combine_chains): Same.
18283 (pcom_stmt_dominates_stmt_p): Same.
18284 (try_combine_chains): Same.
18285 (prepare_initializers_chain_store_elim): Same.
18286 (prepare_initializers_chain): Same.
18287 (prepare_initializers): Same.
18288 (prepare_finalizers_chain): Same.
18289 (prepare_finalizers): Same.
18290 (insert_init_seqs): Same.
18291 * tree-scalar-evolution.c (loop_phi_node_p): Same.
18292 (compute_overall_effect_of_inner_loop): Same.
18293 (add_to_evolution_1): Same.
18294 (add_to_evolution): Same.
18295 (follow_ssa_edge_binary): Same.
18296 (follow_ssa_edge_expr): Same.
18297 (backedge_phi_arg_p): Same.
18298 (follow_ssa_edge_in_condition_phi_branch): Same.
18299 (follow_ssa_edge_in_condition_phi): Same.
18300 (follow_ssa_edge_inner_loop_phi): Same.
18301 (follow_ssa_edge): Same.
18302 (analyze_evolution_in_loop): Same.
18303 (analyze_initial_condition): Same.
18304 (interpret_loop_phi): Same.
18305 (interpret_condition_phi): Same.
18306 (interpret_rhs_expr): Same.
18307 (interpret_expr): Same.
18308 (interpret_gimple_assign): Same.
18309 (analyze_scalar_evolution_1): Same.
18310 (analyze_scalar_evolution): Same.
18311 (analyze_scalar_evolution_for_address_of): Same.
18312 (get_instantiated_value_entry): Same.
18313 (loop_closed_phi_def): Same.
18314 (instantiate_scev_name): Same.
18315 (instantiate_scev_poly): Same.
18316 (instantiate_scev_binary): Same.
18317 (instantiate_scev_convert): Same.
18318 (instantiate_scev_not): Same.
18319 (instantiate_scev_r): Same.
18320 (instantiate_scev): Same.
18321 (resolve_mixers): Same.
18322 (initialize_scalar_evolutions_analyzer): Same.
18323 (scev_reset_htab): Same.
18324 (scev_reset): Same.
18325 (derive_simple_iv_with_niters): Same.
18326 (simple_iv_with_niters): Same.
18327 (expression_expensive_p): Same.
18328 (final_value_replacement_loop): Same.
18329 * tree-scalar-evolution.h (block_before_loop): Same.
18330 * tree-ssa-address.h: Same.
18331 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
18332 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
18333 (record_edge_info): Same.
18334 * tree-ssa-live.c (var_map_base_fini): Same.
18335 (remove_unused_locals): Same.
18336 * tree-ssa-live.h: Same.
18337 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
18338 (pass_ch_vect::execute): Same.
18339 (pass_ch::process_loop_p): Same.
18340 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
18341 (movement_possibility): Same.
18342 (outermost_invariant_loop): Same.
18344 (determine_max_movement): Same.
18345 (invariantness_dom_walker::before_dom_children): Same.
18346 (move_computations): Same.
18347 (may_move_till): Same.
18348 (force_move_till_op): Same.
18349 (force_move_till): Same.
18350 (memref_free): Same.
18351 (record_mem_ref_loc): Same.
18352 (set_ref_stored_in_loop): Same.
18353 (mark_ref_stored): Same.
18354 (sort_bbs_in_loop_postorder_cmp): Same.
18355 (sort_locs_in_loop_postorder_cmp): Same.
18356 (analyze_memory_references): Same.
18357 (mem_refs_may_alias_p): Same.
18358 (find_ref_loc_in_loop_cmp): Same.
18359 (rewrite_mem_ref_loc::operator): Same.
18360 (first_mem_ref_loc_1::operator): Same.
18361 (sm_set_flag_if_changed::operator): Same.
18362 (execute_sm_if_changed_flag_set): Same.
18363 (execute_sm): Same.
18364 (hoist_memory_references): Same.
18365 (ref_always_accessed::operator): Same.
18366 (refs_independent_p): Same.
18367 (record_dep_loop): Same.
18368 (ref_indep_loop_p_1): Same.
18369 (ref_indep_loop_p): Same.
18370 (can_sm_ref_p): Same.
18371 (find_refs_for_sm): Same.
18372 (loop_suitable_for_sm): Same.
18373 (store_motion_loop): Same.
18374 (store_motion): Same.
18375 (fill_always_executed_in): Same.
18376 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18377 (estimated_unrolled_size): Same.
18378 (loop_edge_to_cancel): Same.
18379 (remove_exits_and_undefined_stmts): Same.
18380 (remove_redundant_iv_tests): Same.
18381 (unloop_loops): Same.
18382 (estimated_peeled_sequence_size): Same.
18383 (try_peel_loop): Same.
18384 (canonicalize_loop_induction_variables): Same.
18385 (canonicalize_induction_variables): Same.
18386 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18388 (stmt_after_inc_pos): Same.
18389 (contains_abnormal_ssa_name_p): Same.
18390 (niter_for_exit): Same.
18393 (find_givs_in_bb): Same.
18394 (find_induction_variables): Same.
18395 (find_interesting_uses_cond): Same.
18396 (outermost_invariant_loop_for_expr): Same.
18397 (idx_find_step): Same.
18398 (add_candidate_1): Same.
18399 (add_iv_candidate_derived_from_uses): Same.
18400 (alloc_use_cost_map): Same.
18401 (prepare_decl_rtl): Same.
18402 (generic_predict_doloop_p): Same.
18403 (computation_cost): Same.
18404 (determine_common_wider_type): Same.
18405 (get_computation_aff_1): Same.
18406 (get_use_type): Same.
18407 (determine_group_iv_cost_address): Same.
18409 (difference_cannot_overflow_p): Same.
18410 (may_eliminate_iv): Same.
18411 (determine_set_costs): Same.
18412 (cheaper_cost_pair): Same.
18413 (compare_cost_pair): Same.
18414 (iv_ca_cand_for_group): Same.
18415 (iv_ca_recount_cost): Same.
18416 (iv_ca_set_remove_invs): Same.
18417 (iv_ca_set_no_cp): Same.
18418 (iv_ca_set_add_invs): Same.
18419 (iv_ca_set_cp): Same.
18420 (iv_ca_add_group): Same.
18421 (iv_ca_cost): Same.
18422 (iv_ca_compare_deps): Same.
18423 (iv_ca_delta_reverse): Same.
18424 (iv_ca_delta_commit): Same.
18425 (iv_ca_cand_used_p): Same.
18426 (iv_ca_delta_free): Same.
18428 (iv_ca_free): Same.
18429 (iv_ca_dump): Same.
18430 (iv_ca_extend): Same.
18431 (iv_ca_narrow): Same.
18432 (iv_ca_prune): Same.
18433 (cheaper_cost_with_cand): Same.
18434 (iv_ca_replace): Same.
18435 (try_add_cand_for): Same.
18436 (get_initial_solution): Same.
18437 (try_improve_iv_set): Same.
18438 (find_optimal_iv_set_1): Same.
18439 (create_new_iv): Same.
18440 (rewrite_use_compare): Same.
18441 (remove_unused_ivs): Same.
18442 (determine_scaling_factor): Same.
18443 * tree-ssa-loop-ivopts.h: Same.
18444 * tree-ssa-loop-manip.c (create_iv): Same.
18445 (compute_live_loop_exits): Same.
18446 (add_exit_phi): Same.
18447 (add_exit_phis): Same.
18448 (find_uses_to_rename_use): Same.
18449 (find_uses_to_rename_def): Same.
18450 (find_uses_to_rename_in_loop): Same.
18451 (rewrite_into_loop_closed_ssa): Same.
18452 (check_loop_closed_ssa_bb): Same.
18453 (split_loop_exit_edge): Same.
18454 (ip_end_pos): Same.
18455 (ip_normal_pos): Same.
18456 (copy_phi_node_args): Same.
18457 (gimple_duplicate_loop_to_header_edge): Same.
18458 (can_unroll_loop_p): Same.
18459 (determine_exit_conditions): Same.
18460 (scale_dominated_blocks_in_loop): Same.
18461 (niter_for_unrolled_loop): Same.
18462 (tree_transform_and_unroll_loop): Same.
18463 (rewrite_all_phi_nodes_with_iv): Same.
18464 * tree-ssa-loop-manip.h: Same.
18465 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
18466 (number_of_iterations_ne): Same.
18467 (assert_no_overflow_lt): Same.
18468 (assert_loop_rolls_lt): Same.
18469 (number_of_iterations_lt): Same.
18470 (adjust_cond_for_loop_until_wrap): Same.
18471 (tree_simplify_using_condition): Same.
18472 (simplify_using_initial_conditions): Same.
18473 (simplify_using_outer_evolutions): Same.
18474 (loop_only_exit_p): Same.
18475 (ssa_defined_by_minus_one_stmt_p): Same.
18476 (number_of_iterations_popcount): Same.
18477 (number_of_iterations_exit): Same.
18478 (find_loop_niter): Same.
18479 (finite_loop_p): Same.
18480 (chain_of_csts_start): Same.
18481 (get_val_for): Same.
18482 (loop_niter_by_eval): Same.
18483 (derive_constant_upper_bound_ops): Same.
18484 (do_warn_aggressive_loop_optimizations): Same.
18485 (record_estimate): Same.
18486 (get_cst_init_from_scev): Same.
18487 (record_nonwrapping_iv): Same.
18488 (idx_infer_loop_bounds): Same.
18489 (infer_loop_bounds_from_ref): Same.
18490 (infer_loop_bounds_from_array): Same.
18491 (infer_loop_bounds_from_pointer_arith): Same.
18492 (infer_loop_bounds_from_signedness): Same.
18493 (bound_index): Same.
18494 (discover_iteration_bound_by_body_walk): Same.
18495 (maybe_lower_iteration_bound): Same.
18496 (estimate_numbers_of_iterations): Same.
18497 (estimated_loop_iterations): Same.
18498 (estimated_loop_iterations_int): Same.
18499 (max_loop_iterations): Same.
18500 (max_loop_iterations_int): Same.
18501 (likely_max_loop_iterations): Same.
18502 (likely_max_loop_iterations_int): Same.
18503 (estimated_stmt_executions_int): Same.
18504 (max_stmt_executions): Same.
18505 (likely_max_stmt_executions): Same.
18506 (estimated_stmt_executions): Same.
18507 (stmt_dominates_stmt_p): Same.
18508 (nowrap_type_p): Same.
18509 (loop_exits_before_overflow): Same.
18510 (scev_var_range_cant_overflow): Same.
18511 (scev_probably_wraps_p): Same.
18512 (free_numbers_of_iterations_estimates): Same.
18513 * tree-ssa-loop-niter.h: Same.
18514 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
18515 (idx_analyze_ref): Same.
18516 (analyze_ref): Same.
18517 (gather_memory_references_ref): Same.
18518 (mark_nontemporal_store): Same.
18519 (emit_mfence_after_loop): Same.
18520 (may_use_storent_in_loop_p): Same.
18521 (mark_nontemporal_stores): Same.
18522 (should_unroll_loop_p): Same.
18523 (volume_of_dist_vector): Same.
18524 (add_subscript_strides): Same.
18525 (self_reuse_distance): Same.
18526 (insn_to_prefetch_ratio_too_small_p): Same.
18527 * tree-ssa-loop-split.c (split_at_bb_p): Same.
18528 (patch_loop_exit): Same.
18529 (find_or_create_guard_phi): Same.
18530 (easy_exit_values): Same.
18531 (connect_loop_phis): Same.
18532 (connect_loops): Same.
18533 (compute_new_first_bound): Same.
18534 (split_loop): Same.
18535 (tree_ssa_split_loops): Same.
18536 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
18537 (is_maybe_undefined): Same.
18538 (tree_may_unswitch_on): Same.
18539 (simplify_using_entry_checks): Same.
18540 (tree_unswitch_single_loop): Same.
18541 (tree_unswitch_loop): Same.
18542 (tree_unswitch_outer_loop): Same.
18543 (empty_bb_without_guard_p): Same.
18544 (used_outside_loop_p): Same.
18545 (get_vop_from_header): Same.
18546 (hoist_guard): Same.
18547 * tree-ssa-loop.c (gate_oacc_kernels): Same.
18548 (get_lsm_tmp_name): Same.
18549 * tree-ssa-loop.h: Same.
18550 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
18551 (build_and_add_sum): Same.
18552 (no_side_effect_bb): Same.
18554 (linearize_expr): Same.
18555 (should_break_up_subtract): Same.
18556 (linearize_expr_tree): Same.
18557 * tree-ssa-scopedtables.c: Same.
18558 * tree-ssa-scopedtables.h: Same.
18559 * tree-ssa-structalias.c (condense_visit): Same.
18560 (label_visit): Same.
18561 (dump_pred_graph): Same.
18562 (perform_var_substitution): Same.
18563 (move_complex_constraints): Same.
18564 (remove_preds_and_fake_succs): Same.
18565 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18566 (determine_bb_domination_status): Same.
18567 (duplicate_thread_path): Same.
18568 (thread_through_all_blocks): Same.
18569 * tree-ssa-threadupdate.h: Same.
18570 * tree-streamer-in.c (streamer_read_string_cst): Same.
18571 (input_identifier): Same.
18572 (unpack_ts_type_common_value_fields): Same.
18573 (unpack_ts_block_value_fields): Same.
18574 (unpack_ts_translation_unit_decl_value_fields): Same.
18575 (unpack_ts_omp_clause_value_fields): Same.
18576 (streamer_read_tree_bitfields): Same.
18577 (streamer_alloc_tree): Same.
18578 (lto_input_ts_common_tree_pointers): Same.
18579 (lto_input_ts_vector_tree_pointers): Same.
18580 (lto_input_ts_poly_tree_pointers): Same.
18581 (lto_input_ts_complex_tree_pointers): Same.
18582 (lto_input_ts_decl_minimal_tree_pointers): Same.
18583 (lto_input_ts_decl_common_tree_pointers): Same.
18584 (lto_input_ts_decl_non_common_tree_pointers): Same.
18585 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18586 (lto_input_ts_field_decl_tree_pointers): Same.
18587 (lto_input_ts_function_decl_tree_pointers): Same.
18588 (lto_input_ts_type_common_tree_pointers): Same.
18589 (lto_input_ts_type_non_common_tree_pointers): Same.
18590 (lto_input_ts_list_tree_pointers): Same.
18591 (lto_input_ts_vec_tree_pointers): Same.
18592 (lto_input_ts_exp_tree_pointers): Same.
18593 (lto_input_ts_block_tree_pointers): Same.
18594 (lto_input_ts_binfo_tree_pointers): Same.
18595 (lto_input_ts_constructor_tree_pointers): Same.
18596 (lto_input_ts_omp_clause_tree_pointers): Same.
18597 (streamer_read_tree_body): Same.
18598 * tree-streamer.h: Same.
18599 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18600 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18601 (vect_analyze_possibly_independent_ddr): Same.
18602 (vect_analyze_data_ref_dependence): Same.
18603 (vect_compute_data_ref_alignment): Same.
18604 (vect_enhance_data_refs_alignment): Same.
18605 (vect_analyze_data_ref_access): Same.
18606 (vect_check_gather_scatter): Same.
18607 (vect_find_stmt_data_reference): Same.
18608 (vect_create_addr_base_for_vector_ref): Same.
18609 (vect_setup_realignment): Same.
18610 (vect_supportable_dr_alignment): Same.
18611 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18612 (adjust_phi_and_debug_stmts): Same.
18613 (vect_set_loop_mask): Same.
18614 (add_preheader_seq): Same.
18615 (vect_maybe_permute_loop_masks): Same.
18616 (vect_set_loop_masks_directly): Same.
18617 (vect_set_loop_condition_masked): Same.
18618 (vect_set_loop_condition_unmasked): Same.
18619 (slpeel_duplicate_current_defs_from_edges): Same.
18620 (slpeel_add_loop_guard): Same.
18621 (slpeel_can_duplicate_loop_p): Same.
18622 (create_lcssa_for_virtual_phi): Same.
18624 (vect_update_ivs_after_vectorizer): Same.
18625 (vect_gen_vector_loop_niters_mult_vf): Same.
18626 (slpeel_update_phi_nodes_for_loops): Same.
18627 (slpeel_update_phi_nodes_for_guard1): Same.
18628 (find_guard_arg): Same.
18629 (slpeel_update_phi_nodes_for_guard2): Same.
18630 (slpeel_update_phi_nodes_for_lcssa): Same.
18631 (vect_do_peeling): Same.
18632 (vect_create_cond_for_alias_checks): Same.
18633 (vect_loop_versioning): Same.
18634 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18635 (vect_inner_phi_in_double_reduction_p): Same.
18636 (vect_analyze_scalar_cycles_1): Same.
18637 (vect_fixup_scalar_cycles_with_patterns): Same.
18638 (vect_get_loop_niters): Same.
18639 (bb_in_loop_p): Same.
18640 (vect_get_max_nscalars_per_iter): Same.
18641 (vect_verify_full_masking): Same.
18642 (vect_compute_single_scalar_iteration_cost): Same.
18643 (vect_analyze_loop_form_1): Same.
18644 (vect_analyze_loop_form): Same.
18645 (vect_active_double_reduction_p): Same.
18646 (vect_analyze_loop_operations): Same.
18647 (neutral_op_for_slp_reduction): Same.
18648 (vect_is_simple_reduction): Same.
18649 (vect_model_reduction_cost): Same.
18650 (get_initial_def_for_reduction): Same.
18651 (get_initial_defs_for_reduction): Same.
18652 (vect_create_epilog_for_reduction): Same.
18653 (vectorize_fold_left_reduction): Same.
18654 (vectorizable_reduction): Same.
18655 (vectorizable_induction): Same.
18656 (vectorizable_live_operation): Same.
18657 (loop_niters_no_overflow): Same.
18658 (vect_get_loop_mask): Same.
18659 (vect_transform_loop_stmt): Same.
18660 (vect_transform_loop): Same.
18661 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18662 (vect_determine_precisions): Same.
18663 (vect_pattern_recog_1): Same.
18664 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18665 * tree-vect-stmts.c (stmt_vectype): Same.
18666 (process_use): Same.
18667 (vect_init_vector_1): Same.
18668 (vect_truncate_gather_scatter_offset): Same.
18669 (get_group_load_store_type): Same.
18670 (vect_build_gather_load_calls): Same.
18671 (vect_get_strided_load_store_ops): Same.
18672 (vectorizable_simd_clone_call): Same.
18673 (vectorizable_store): Same.
18674 (permute_vec_elements): Same.
18675 (vectorizable_load): Same.
18676 (vect_transform_stmt): Same.
18677 (supportable_widening_operation): Same.
18678 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18679 (vec_info::free_stmt_vec_info): Same.
18680 (vect_free_loop_info_assumptions): Same.
18681 (vect_loop_vectorized_call): Same.
18682 (set_uid_loop_bbs): Same.
18683 (vectorize_loops): Same.
18684 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18685 * tree.c (add_tree_to_fld_list): Same.
18686 (fld_type_variant_equal_p): Same.
18687 (fld_decl_context): Same.
18688 (fld_incomplete_type_of): Same.
18689 (free_lang_data_in_binfo): Same.
18690 (need_assembler_name_p): Same.
18691 (find_decls_types_r): Same.
18692 (get_eh_types_for_runtime): Same.
18693 (find_decls_types_in_eh_region): Same.
18694 (find_decls_types_in_node): Same.
18695 (assign_assembler_name_if_needed): Same.
18696 * value-prof.c (stream_out_histogram_value): Same.
18697 * value-prof.h: Same.
18698 * var-tracking.c (use_narrower_mode): Same.
18699 (prepare_call_arguments): Same.
18700 (vt_expand_loc_callback): Same.
18701 (resolve_expansions_pending_recursion): Same.
18702 (vt_expand_loc): Same.
18703 * varasm.c (const_hash_1): Same.
18704 (compare_constant): Same.
18705 (tree_output_constant_def): Same.
18706 (simplify_subtraction): Same.
18707 (get_pool_constant): Same.
18708 (output_constant_pool_2): Same.
18709 (output_constant_pool_1): Same.
18710 (mark_constants_in_pattern): Same.
18711 (mark_constant_pool): Same.
18712 (get_section_anchor): Same.
18713 * vr-values.c (compare_range_with_value): Same.
18714 (vr_values::extract_range_from_phi_node): Same.
18715 * vr-values.h: Same.
18716 * web.c (unionfind_union): Same.
18717 * wide-int.h: Same.
18719 2019-07-09 Martin Sebor <msebor@redhat.com>
18722 * align.h: Change class-key from class to struct and vice versa
18723 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18724 * alloc-pool.h: Same.
18725 * asan.c (shadow_mem_size): Same.
18726 * auto-profile.c: Same.
18727 * basic-block.h: Same.
18729 * cfgexpand.c (set_rtl): Same.
18730 (expand_one_stack_var_at): Same.
18731 * cfghooks.h: Same.
18734 * config/i386/i386.h: Same.
18735 * df-problems.c (df_print_bb_index): Same.
18737 * df.h (df_single_use): Same.
18738 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18739 (layout::annotation_line_showed_range_p): Same.
18740 (get_printed_columns): Same.
18741 (correction::ensure_terminated): Same.
18742 (line_corrections::~line_corrections): Same.
18745 * dump-context.h: Same.
18746 * dumpfile.h: Same.
18747 * dwarf2out.c: Same.
18748 * edit-context.c: Same.
18749 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18751 * function.c (assign_stack_local): Same.
18752 * function.h: Same.
18754 * gcov.c (block_info::block_info): Same.
18755 * genattrtab.c: Same.
18756 * genextract.c: Same.
18757 * genmatch.c (comparison_code_p): Same.
18758 (id_base::id_base): Same.
18759 (decision_tree::print): Same.
18760 * genoutput.c: Same.
18761 * genpreds.c (write_one_predicate_function): Same.
18762 * genrecog.c (validate_pattern): Same.
18763 (find_operand_positions): Same.
18764 (optimize_subroutine_group): Same.
18765 (merge_pattern_transition::merge_pattern_transition): Same.
18766 (merge_pattern_info::merge_pattern_info): Same.
18767 (merge_state_result::merge_state_result): Same.
18768 (merge_into_state): Same.
18769 * gensupport.c: Same.
18770 * gensupport.h: Same.
18771 * ggc-common.c (init_ggc_heuristics): Same.
18772 * ggc-tests.c (test_union): Same.
18773 * gimple-loop-interchange.cc (dump_induction): Same.
18774 * gimple-loop-versioning.cc: Same.
18775 * gimple-match.h (gimple_match_cond::any_else): Same.
18776 * gimple-ssa-backprop.c: Same.
18777 * gimple-ssa-sprintf.c: Same.
18778 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18780 (store_immediate_info::store_immediate_info): Same.
18781 (merged_store_group::apply_stores): Same.
18782 (get_location_for_stmts): Same.
18783 * gimple-ssa-strength-reduction.c: Same.
18784 * gimple-ssa-warn-alloca.c: Same.
18785 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18786 * godump.c (go_type_decl): Same.
18787 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18788 * hash-map.h: Same.
18789 * hash-set-tests.c (test_set_of_strings): Same.
18790 * hsa-brig.c: Same.
18791 * hsa-common.h: Same.
18792 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18793 * input.c (assert_loceq): Same.
18796 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18797 * ipa-fnsummary.h: Same.
18798 * ipa-inline.h: Same.
18799 * ipa-prop.h: Same.
18800 * ipa-split.c (visit_bb): Same.
18801 * ira-int.h (minmax_set_iter_next): Same.
18802 * loop-invariant.c: Same.
18804 * lra-eliminations.c: Same.
18806 * lra-lives.c (mark_regno_dead): Same.
18807 * lra-remat.c: Same.
18808 * lra-spills.c: Same.
18809 * lto-streamer.h: Same.
18810 * mem-stats.h: Same.
18811 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18812 * omp-low.c (omp_clause_aligned_alignment): Same.
18813 * optabs-query.h (get_vcond_eq_icode): Same.
18815 * opts.c (wrap_help): Same.
18816 * poly-int.h: Same.
18817 * predict.c (predict_paths_leading_to_edge): Same.
18818 * pretty-print.h: Same.
18819 * profile-count.h: Same.
18821 * read-rtl-function.c: Same.
18824 * regrename.c: Same.
18825 * regrename.h: Same.
18827 * rtl-iter.h: Same.
18828 * rtl.h (costs_add_n_insns): Same.
18830 * sched-int.h: Same.
18831 * sel-sched-ir.h: Same.
18832 * selftest.h: Same.
18833 * sese.h (vec_find): Same.
18835 * target-globals.h: Same.
18836 * tree-affine.c (aff_combination_find_elt): Same.
18837 * tree-affine.h: Same.
18838 * tree-data-ref.h: Same.
18839 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18840 * tree-predcom.c: Same.
18841 * tree-scalar-evolution.c (find_var_scev_info): Same.
18842 * tree-ssa-alias.h: Same.
18843 * tree-ssa-ccp.c: Same.
18844 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18845 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18846 (rewrite_mem_refs): Same.
18847 (execute_sm_if_changed): Same.
18848 (hoist_memory_references): Same.
18849 * tree-ssa-loop-ivopts.c (operator<=): Same.
18850 * tree-ssa-loop.h: Same.
18851 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18852 * tree-ssa-structalias.c: Same.
18853 * tree-switch-conversion.h (cluster::cluster): Same.
18854 (simple_cluster::simple_cluster): Same.
18855 * tree-vect-patterns.c (type_conversion_p): Same.
18856 * tree-vectorizer.c (dump_stmt_cost): Same.
18857 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18858 * tree.c (protected_set_expr_location): Same.
18859 * tree.h (desired_pro_or_demotion_p): Same.
18860 (fndecl_built_in_p): Same.
18861 * unique-ptr-tests.cc: Same.
18862 * var-tracking.c (delete_variable_part): Same.
18863 * varasm.c (assemble_real): Same.
18864 (tree_output_constant_def): Same.
18866 * wide-int-bitmask.h: Same.
18867 * wide-int.h (decompose): Same.
18869 2019-07-09 Richard Biener <rguenther@suse.de>
18871 PR tree-optimization/91114
18872 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18873 find a vector type isn't fatal.
18875 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18877 * config/aarch64/aarch64-simd.md
18878 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18879 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18880 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18881 (*aarch64_crypto_aese_fused,
18882 *aarch64_crypto_aesd_fused): Update to new definition.
18883 * config/aarch64/aarch64.c
18884 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18886 2019-07-09 Richard Biener <rguenther@suse.de>
18888 * gimple-match.h (gimple_match_op::resimplify): New.
18889 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18890 gimple_resimplify4, gimple_resimplify5): Remove.
18891 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18892 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18894 (gimple_match_op::resimplify): New.
18895 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18896 according to availability. Use gimple_match_op::resimplify.
18898 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18900 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18902 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18904 * config/arm/crypto.md:
18905 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18906 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18907 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18908 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18910 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18911 * config/arm/aarch-common-protos.h
18912 (aarch_crypto_can_dual_issue): Remove.
18913 * config/arm/aarch-common.c
18914 (aarch_crypto_can_dual_issue): Likewise.
18915 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18916 * config/arm/cortex-a53.md: Likewise.
18917 * config/arm/cortex-a57.md: Likewise.
18918 * config/arm/iterators.md:
18919 (CRYPTO_BINARY): Redefine.
18920 (CRYPTO_UNARY): Removed.
18921 (CRYPTO_AES, CRYPTO_AESMC): New.
18923 2019-07-09 Richard Biener <rguenther@suse.de>
18925 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18926 (vn_reference_lookup_3): If the main ref has no access path recorded
18927 but orig_ref has use it to do access-path based disambiguation.
18928 (vn_reference_lookup_pieces): Adjust.
18929 (vn_reference_lookup): Pass down original ref if we valueized.
18931 2019-07-09 Martin Liska <mliska@suse.cz>
18933 * doc/extend.texi: Document influence on loop
18936 2019-07-09 Martin Liska <mliska@suse.cz>
18938 * lto-compress.c (lto_normalized_zstd_level): Do not use
18939 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18940 of libzstd. One can use 0 as a default compression level.
18942 2019-07-09 Martin Liska <mliska@suse.cz>
18944 * doc/invoke.texi: Add link from -fprofile-dir option.
18945 Use better wording for 'gcno filename'.
18947 2019-07-08 Martin Sebor <msebor@redhat.com>
18949 PR middle-end/71924
18950 PR middle-end/90549
18951 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18953 (args_loc_t): New type.
18954 (args_loc_t, locmap_t): same.
18955 (diag_returned_locals): New function.
18956 (is_addr_local): Same.
18957 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18958 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18959 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18961 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18963 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18964 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18965 and casts in offset when different, both through gimple stmts
18966 and through trees. Rewritten using loops to minimize code duplication
18969 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18971 * emit-rtl.c (set_insn_locations): New function moved from...
18972 * function.c (set_insn_locations): ...here.
18973 * ira-emit.c (emit_moves): Propagate location of the first instruction
18974 to the inserted move instructions.
18975 * reg-stack.c (compensate_edge): Set the location if the sequence is
18976 inserted on the edge.
18977 * rtl.h (set_insn_locations): Declare.
18979 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18981 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18982 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18985 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18987 PR rtl-optimization/88233
18988 * common.opt (fsplit-wide-types-early): New option.
18989 * common/config/rs6000/rs6000-common.c
18990 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18992 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18993 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18994 flag_split_wide_types_early.
18995 (pass_data_lower_subreg3): New.
18996 (pass_lower_subreg3): New.
18997 (make_pass_lower_subreg3): New.
18998 * passes.def (pass_lower_subreg2): Move after the loop passes.
18999 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19000 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19001 the pass pipeline; its previous place is taken by ...
19002 (make_pass_lower_subreg3): ... this.
19004 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19006 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19007 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19009 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19011 * config/s390/constraints.md: Add new jsc constraint.
19012 * config/s390/predicates.md: New predicates.
19013 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19014 * config/s390/s390.c (s390_valid_shift_count): New function.
19015 (print_shift_count_operand): Use s390_valid_shift_count.
19016 (print_operand): Likewise.
19017 * config/s390/s390.md: Use new predicate.
19018 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19019 * config/s390/vector.md: Use new predicate.
19021 2019-07-08 Andrew Waterman <andrew@sifive.com>
19022 Jim Wilson <jimw@sifive.com>
19024 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19025 bitsize instead of BITS_PER_WORD.
19027 2019-07-08 Martin Liska <mliska@suse.cz>
19029 * collect2.c (defined): Revert to before r254460.
19030 (scan_prog_file): Revert to before r254460.
19032 2019-07-08 Richard Biener <rguenther@suse.de>
19034 PR tree-optimization/83518
19035 * tree-ssa-sccvn.c: Include splay-tree.h.
19036 (struct pd_range, struct pd_data): New.
19037 (struct vn_walk_cb_data): Add data to track partial definitions.
19038 (vn_walk_cb_data::~vn_walk_cb_data): New.
19039 (vn_walk_cb_data::push_partial_def): New.
19040 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19041 (vn_reference_lookup_2): When partial defs are registered give up.
19042 (vn_reference_lookup_3): Track partial defs for memset and
19043 constructor zeroing and for defs from constants.
19045 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19047 * doc/install.texi (bootstrap-Og): Document.
19049 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19051 * config/riscv/pic.md (*local_pic_load_s<mode>)
19052 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19053 referenced by <mode>, giving...
19054 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19055 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19056 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19057 use <X:MODE> for the mode attribute.
19059 2019-07-07 Jeff Law <law@redhat.com>
19061 PR tree-optimization/91090
19062 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19063 in handling of ranges to simplify switch statements.
19065 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19067 * config/darwin.c (darwin_override_options): Make a final check on PIC
19070 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19072 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19073 on for kernel code.
19075 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19078 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19079 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19080 instead of matching them to "l" output operands.
19082 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19084 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19085 and check whether addr.reg is nonnull before using it.
19087 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19089 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19090 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19091 variable(s). For conditional lastprivate look through outer
19092 GIMPLE_OMP_SCAN context.
19093 (lower_omp_1): For conditional lastprivate look through outer
19094 GIMPLE_OMP_SCAN context.
19096 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19097 member to combined_into_simd_safelen1.
19098 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19099 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19100 clauses if ctx->combined_into_simd_safelen1 put statements after the
19101 predicate conditionalized block rather than into it.
19103 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19105 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19107 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19108 Make the choice of <mode> explicit, giving...
19109 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19111 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19113 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19114 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19116 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19117 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19118 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19119 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19120 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19121 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19122 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19123 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19124 (*avx512f_scatterdi<mode>): Likewise.
19125 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19127 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19129 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19130 specify the mode iterator referenced by <mode>, giving...
19131 (*push1_h8300hs_<QHI:mode>): ...this.
19133 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19135 * config/gcn/gcn-valu.md
19136 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19137 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19138 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19139 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19140 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19141 but using the _exec comparison patterns.
19142 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19143 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19144 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19145 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19146 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19147 but using the _exec comparison patterns.
19149 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19151 * config/arm/sync.md
19152 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19153 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19154 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19155 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19156 <SIDI:cas_cmp_str>.
19158 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19160 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19161 (maybe_lookup_ctx): Add forward declaration.
19162 (omp_find_scan): Likewise. Walk into body of simd if composited
19163 with worksharing loop.
19164 (scan_omp_simd_scan): New function.
19165 (scan_omp_1_stmt): Call it.
19166 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19167 ctx->for_simd_scan_phase.
19168 (lower_rec_input_clauses): Do much less work for inscan reductions
19169 in ctx->for_simd_scan_phase is_simd regions.
19170 (lower_omp_scan): Set is_simd also on simd constructs composited
19171 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19172 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19173 emit their body after in simd constructs composited with worksharing
19175 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19177 * omp-low.c (omp_find_scan): Make static.
19178 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19179 the second loop, var2 represents the first partial sum and so needs
19180 to go before rprivb[ivar].
19182 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19184 * config/rs6000/rs6000-logue.c: Remove unused code.
19186 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19188 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19190 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19193 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19194 check with a frame laid out check.
19196 2019-07-05 Richard Biener <rguenther@suse.de>
19198 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
19199 when comparing against a store with possibly the same value.
19201 2019-07-05 Richard Biener <rguenther@suse.de>
19203 PR tree-optimization/91091
19204 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
19205 (walk_non_aliased_vuses): Likewise.
19206 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
19207 (get_continuation_for_phi): New tbaa_p parameter and pass
19209 (walk_non_aliased_vuses): Likewise.
19210 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
19211 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
19212 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
19214 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
19215 (adjust_offsets_for_equal_base_address): New function.
19216 (vn_reference_lookup_3): Use it to catch more base equivalences.
19217 Handle and pass down tbaa_p flag.
19218 (vn_reference_lookup_pieces): Adjust.
19219 (vn_reference_lookup): Remove alias-set altering, instead pass
19220 down false as tbaa_p.
19222 2019-07-05 Richard Biener <rguenther@suse.de>
19224 PR tree-optimization/91091
19225 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
19226 accesses can happen with -fno-strict-aliasing.
19228 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
19230 * tree-ssa-alias.c (alias_stats): Add
19231 nonoverlapping_component_refs_since_match_p_must_overlap.
19232 (dump_alias_stats): Print it.
19233 (nonoverlapping_component_refs_since_match_p): Add early exit.
19234 (nonoverlapping_component_refs_p): Do not account early exit.
19236 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19238 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
19239 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
19240 (emit_eh_dispatch): Delete.
19241 (lower_catch): Emit the eh_dispatch manually and set the location of
19242 the first catch statement onto it.
19243 (lower_eh_filter): Emit the eh_dispatch manually and set location.
19244 (lower_eh_dispatch): Propagate location.
19245 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
19246 (eliminate_build): Likewise.
19248 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19250 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
19251 phi nodes if possible.
19252 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
19253 location info on the newly created statement.
19254 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
19255 newly created increment if needed.
19257 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19259 PR middle-end/78884
19260 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
19261 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
19262 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
19263 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
19264 ctx->add_safelen1 is set.
19266 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
19267 GOMP_loop_start at the start of second worksharing loop in a scan.
19268 For nowait, don't emit GOMP_loop_end_nowait at the end of first
19269 worksharing loop in a scan even if there are conditional lastprivates,
19270 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
19272 2019-07-04 Jan Hubicka <jh@suse.cz>
19274 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
19275 Fix check for match in the ref walk.
19277 2019-07-04 Martin Liska <mliska@suse.cz>
19279 * tree-ssa-loop-niter.c
19280 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
19281 (estimate_numbers_of_iterations):
19282 Support __builtin_expect_with_probability for analysis
19283 of # of loop iterations.
19285 2019-07-04 Alexandre Oliva <oliva@adacore.com>
19287 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
19288 * except.c: Likewise.
19289 * expr.c (expand_expr_real_1): Reject it.
19290 * gimplify.c (gimplify_expr): Gimplify it, within
19292 * tree-dump.c (dequeue_and_dump): Dump it.
19293 * tree-pretty-print.c (dump_generic_node): Likewise.
19294 * tree.c (block_may_fallthru): Handle it.
19295 * tree.def (EH_ELSE_EXPR): Introduce it.
19296 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
19297 with GIMPLE_EH_ELSE as try/finally/else.
19299 2019-07-04 Richard Biener <rguenther@suse.de>
19302 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19303 parameter whether to disable GC collection.
19304 * passes.c (execute_one_ipa_transform_pass): Likewise, and
19306 (execute_all_ipa_transforms): Likewise and pass it down.
19307 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
19308 collection from applying IPA transforms.
19309 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
19310 from applying IPA transforms.
19312 2019-07-04 Richard Biener <rguenther@suse.de>
19314 PR tree-optimization/90911
19315 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
19316 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
19317 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19318 scalar_loop_scaling.
19319 (vect_transform_loop): Scale scalar loop profile if needed.
19320 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
19321 the loop copy from if-conversion adjust edge probabilities
19322 and scale the vectorized loop body profile, queue the scalar
19323 profile for updating after peeling.
19325 2019-07-04 Jan Hubicka <jh@suse.cz>
19327 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
19328 parameters; return early for must-alias.
19329 (indirect_ref_may_alias_decl_p): Likewise; when establishing
19330 outer types match, try nonoverlapping_component_refs
19331 if must-alias is not obvious.
19332 (indirect_refs_may_alias_p): Likewise.
19333 (refs_may_alias_p_2): Likewise.
19335 2019-07-04 Richard Biener <rguenther@suse.de>
19337 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
19339 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
19341 (struct vn_walk_cb_data): New callback data struct.
19342 (vn_reference_lookup_2): Adjust.
19343 (vn_reference_lookup_3): Likewise.
19344 (vn_reference_lookup_pieces): Likewise.
19345 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
19346 (visit_reference_op_load): Adjust.
19348 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19350 PR tree-optimization/91063
19351 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
19352 stmt from stmts sequence before calling vect_init_vector_1.
19355 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19358 * fwprop.c (reg_single_def_p): New function.
19359 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
19360 (forward_propagate_into): New parameter reg_prop_only
19361 with default value false.
19362 Propagate def's src into loop only if SET_SRC and SET_DEST
19363 of def_set have single definitions.
19364 Likewise if reg_prop_only is set to true.
19365 (fwprop): New param fwprop_addr_p.
19366 Integrate fwprop_addr into fwprop.
19367 (fwprop_addr): Remove.
19368 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19370 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19371 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19372 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19374 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19376 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19377 in worksharing loop scans.
19379 PR tree-optimization/91074
19380 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19383 PR rtl-optimization/90756
19384 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19387 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19389 * config/aarch64/aarch64.md: Remove redundant constraints from
19390 define_expand but keep some patterns untouched if they are
19391 specially selected by TARGET_SECONDARY_RELOAD hook.
19392 * config/aarch64/aarch64-sve.md: Likewise.
19393 * config/aarch64/atomics.md: Remove redundant constraints from
19395 * config/aarch64/aarch64-simd.md: Likewise.
19397 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19399 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19400 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19401 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19403 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19406 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19408 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19409 (STARTFILE_SPEC): Split crt3 into a separate spec.
19410 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19411 (DARWIN_CRT2_SPEC): New.
19412 (DARWIN_CRT3_SPEC): New.
19413 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
19414 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
19415 (DARWIN_CRT3_SPEC): New.
19417 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
19419 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
19420 Change the RTL attribute "length" from "4" to "*" to allow the
19421 length attribute to be adjusted automatically for prefixed load,
19422 store, and add immediate instructions.
19423 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
19425 (extendsi<mode>2, EXTSI iterator): Likewise.
19426 (movsi_internal1): Likewise.
19427 (movsi_from_sf): Likewise.
19428 (movdi_from_sf_zero_ext): Likewise.
19429 (mov<mode>_internal): Likewise.
19430 (movcc_internal1, QHI iterator): Likewise.
19431 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
19432 (movsf_from_si): Likewise.
19433 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
19434 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19435 (mov<mode>, FMOVE128 iterator): Likewise.
19436 (movdi_internal64): Likewise.
19437 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
19439 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
19440 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
19441 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
19442 (vsx_splat_v4sf): Likewise.
19444 2019-07-03 Mark Wielaard <mark@klomp.org>
19447 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
19448 DW_AT_addr_base if there is actually a .debug_addr section with
19450 (output_addr_table): Add DWARF5 table header generation here after
19451 checking there are actually any addresses from...
19452 (dwarf2out_finish): ...here.
19454 2019-07-03 Richard Biener <rguenther@suse.de>
19456 PR middle-end/91069
19457 * match.pd (vec_perm -> bit_insert): Fix element read from
19460 2019-07-03 Martin Liska <mliska@suse.cz>
19462 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
19463 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
19465 * generic-match-head.c: Include dbgcnt.h.
19466 * gimple-match-head.c: Likewise.
19468 2019-07-03 Martin Liska <mliska@suse.cz>
19470 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
19471 (GCOV_COUNTER_V_TOPN): New.
19472 (GCOV_COUNTER_V_INDIR): Use _topn.
19473 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
19474 (GCOV_TOPN_VALUES): New.
19475 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
19476 (GCOV_TOPN_VALUES_COUNTERS): New.
19477 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
19479 (gimple_init_gcov_profiler): Rename variables from one_value
19481 (gimple_gen_one_value_profiler): Remove.
19482 (gimple_gen_topn_values_profiler): New function.
19483 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
19484 names instead of SINGLE_VALUE.
19485 (stream_out_histogram_value): Likewise.
19486 (stream_in_histogram_value): Likewise.
19487 (get_most_common_single_value): Likewise.
19488 (gimple_divmod_fixed_value_transform): Likewise.
19489 (gimple_stringops_transform): Likewise.
19490 (gimple_divmod_values_to_profile): Likewise.
19491 (gimple_stringops_values_to_profile): Likewise.
19492 (gimple_find_values_to_profile): Likewise.
19493 * value-prof.h (enum hist_type): Rename to TOPN.
19494 (gimple_gen_one_value_profiler): Remove.
19495 (gimple_gen_topn_values_profiler): New.
19497 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
19499 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
19500 if it has the DW_AT_data_member_location attribute.
19502 2019-07-03 Richard Biener <rguenther@suse.de>
19504 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
19507 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
19509 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
19510 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
19511 (tlsdesc_small_sve_<mode>): Likewise.
19513 2019-07-03 Martin Liska <mliska@suse.cz>
19515 * Makefile.in: Define ZSTD_LIB.
19516 * common.opt: Adjust compression level
19517 to support also zstd levels.
19518 * config.in: Regenerate.
19519 * configure: Likewise.
19520 * configure.ac: Add --with-zstd and --with-zstd-include options
19522 * doc/install.texi: Mention zstd dependency.
19523 * gcc.c: Print supported LTO compression algorithms.
19524 * lto-compress.c (lto_normalized_zstd_level): Likewise.
19525 (lto_compression_zstd): Likewise.
19526 (lto_uncompression_zstd): Likewise.
19527 (lto_end_compression): Dispatch in between zlib and zstd.
19528 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
19529 (lto_uncompression_zlib): Make it static.
19530 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
19531 * lto-section-in.c (lto_get_section_data): Pass info
19532 about used compression.
19533 * lto-streamer-out.c: By default use zstd when possible.
19534 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
19535 (TV_IPA_LTO_COMPRESS): Likewise for compression.
19537 2019-07-03 Martin Liska <mliska@suse.cz>
19539 * lto-section-in.c (lto_get_section_data): Add "lto" section.
19540 * lto-section-out.c (lto_destroy_simple_output_block): Never
19541 compress LTO_section_lto section.
19542 * lto-streamer-out.c (produce_asm): Do not set major_version
19544 (lto_output_toplevel_asms): Likewise.
19545 (produce_lto_section): New function.
19546 (lto_output): Call produce_lto_section.
19547 (lto_write_mode_table): Do not set major_version and
19549 (produce_asm_for_decls): Likewise.
19550 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19552 (struct lto_header): Remove.
19553 (struct lto_section): New struct.
19554 (struct lto_simple_header): Do not inherit from lto_header.
19555 (struct lto_file_decl_data): Add lto_section_header field.
19557 2019-07-03 Martin Liska <mliska@suse.cz>
19559 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19561 * reg-stack.c (check_asm_stack_operands): Likewise.
19562 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19563 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19564 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19565 force_expand_binop.
19567 2019-07-03 Martin Liska <mliska@suse.cz>
19569 PR tree-optimization/90892
19570 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19571 in string constants.
19573 2019-07-03 Martin Liska <mliska@suse.cz>
19575 PR middle-end/90899
19576 * multiple_target.c (create_dispatcher_calls): Add to comdat
19577 group only if set for ifunc.
19579 2019-07-03 Martin Liska <mliska@suse.cz>
19582 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19583 Define local_object_name in outer scope in order to handle
19584 use-after-scope issue.
19586 2019-07-03 Martin Liska <mliska@suse.cz>
19588 * common.opt: Add fprofile-note.
19589 * coverage.c (coverage_init): Append the option
19591 * doc/invoke.texi: Document -fprofile-note.
19593 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19595 PR tree-optimization/91033
19596 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19597 vect_analyze_data_refs): Add bool * arguments.
19598 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19599 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19600 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19601 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19602 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19603 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19604 vect_analyze_data_refs caller.
19606 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19608 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19609 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19610 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19611 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19612 OMP_CLAUSE__SCANTEMP_ entry.
19613 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19614 * tree-pretty-print.c (dump_omp_clause): Likewise.
19615 * tree-nested.c (convert_nonlocal_omp_clauses,
19616 convert_local_omp_clauses): Likewise.
19617 * omp-general.h (struct omp_for_data): Add have_scantemp and
19618 have_nonctrl_scantemp members.
19619 * omp-general.c (omp_extract_for_data): Initialize them.
19620 * omp-low.c (struct omp_context): Add scan_exclusive member.
19621 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19622 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19623 ctx->scan_exclusive.
19624 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19625 of !ctx->scan_inclusive.
19626 (lower_rec_input_clauses): Simplify gimplification of dtors using
19627 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19628 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19629 loops. Don't add barrier for reduction_omp_orig_ref if
19630 ctx->scan_??xclusive.
19631 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19632 (lower_omp_scan): Use ctx->scan_exclusive instead
19633 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19634 reductions. Use new_vard != new_var instead of repeated
19635 omp_is_reference calls.
19636 (omp_find_scan, lower_omp_for_scan): New functions.
19637 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19639 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19640 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19641 and fd->have_scantemp.
19643 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19644 on worksharing loop propagate it as shared clause to containing
19647 * omp-expand.c (expand_omp_for_static_nochunk,
19648 expand_omp_for_static_chunk): For nowait worksharing loop with
19649 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19652 2019-07-02 qing zhao <qing.zhao@oracle.com>
19654 PR preprocessor/90581
19655 * doc/cppopts.texi: Add document for -fmax-include-depth.
19656 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19658 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19660 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19661 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19662 (mmx_packssdw): Ditto.
19663 (mmx_punpckhbw): Ditto.
19664 (mmx_punpcklbw): Ditto.
19665 (mmx_punpckhwd): Ditto.
19666 (mmx_punpcklwd): Ditto.
19667 (mmx_punpckhdq): Ditto.
19668 (mmx_punpckldq): Ditto.
19669 (*vec_dupv4hi): Ditto.
19670 (*vec_dupv2si): Ditto.
19671 (mmx_pmovmskb): Ditto.
19672 * config/i386/sse.md (sse_cvtpi2ps): Use
19673 TARGET_SSE2 && SSE_REG_P in split condition.
19674 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19675 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19676 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19677 (ssse3_pshufbv8qi3): Ditto.
19678 (ssse3_palignrdi): Ditto.
19680 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19682 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19683 with inlined save and restore.
19685 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19687 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19688 to be inserted on single successor edge of the entry block. Then call
19689 commit_edge_insertions instead of inserting the instructions manually.
19690 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19691 RTL expansion and rebuild jump labels chain.
19693 2019-07-02 Richard Biener <rguenther@suse.de>
19695 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19697 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19699 * tree.c (build_common_tree_nodes): Initialize them.
19700 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19701 Make declarations comments.
19702 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19703 chrec_known): Remove definitions.
19704 (initialize_scalar_evolutions_analyzer): Remove.
19705 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19706 * tree-streamer.c (preload_common_nodes): Do not preload
19707 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19709 2019-07-02 Jan Hubicka <jh@suse.cz>
19711 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19714 2019-07-02 Jan Hubicka <jh@suse.cz>
19716 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19718 (nonoverlapping_component_refs_since_match_p): ... this one;
19719 handle also non-decl bases; return -1 if search gave up.
19720 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19721 nonoverlapping_component_refs_of_decl_p_no_alias to
19722 nonoverlapping_component_refs_since_match_p_may_alias,
19723 nonoverlapping_component_refs_since_match_p_no_alias.
19724 (dump_alias_stats): Update dumping.
19725 (aliasing_matching_component_refs_p): Break out from ...;
19726 dispatch to nonoverlapping_component_refs_for_decl_p
19727 and nonoverlapping_component_refs_since_match_p.
19728 (aliasing_component_refs_p): ... here; call
19729 nonoverlapping_component_refs_p in scenarios where we can not
19730 precisely determine base match.
19731 (decl_refs_may_alias_p): Use
19732 nonoverlapping_component_refs_since_match_p.
19733 (indirect_ref_may_alias_decl_p): Do not call
19734 nonoverlapping_component_refs_p.
19735 (indirect_refs_may_alias_p): Likewise.
19737 2019-07-02 Jan Hubicka <jh@suse.cz>
19739 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19740 to clobber of return value.
19742 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19744 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19745 for is_neon_type instructions that have not already been categorized.
19747 2019-07-02 Richard Biener <rguenther@suse.de>
19749 PR tree-optimization/58483
19750 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19751 for MEM_REF base hashing.
19752 (equal_mem_array_ref_p): Likewise for base comparison.
19754 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19756 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19757 parameterized name.
19758 (signbit<mode>2): Use that name. Simplify.
19760 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19762 PR middle-end/66726
19763 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19764 Tune heuristic from PR71016 to allow MIN / MAX.
19766 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19768 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19769 parameterized name.
19770 (abs<mode>2): Use that name. Simplify.
19772 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19774 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19775 parameterized name.
19776 (neg<mode>2): Use that name. Simplify.
19778 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19780 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19782 (abs<mode>2): Use that name. Simplify.
19784 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19786 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19788 (neg<mode>2): Use that name. Simplify.
19790 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19792 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19793 ("enabled" attribute): Handle sse_noavx isa attribute.
19794 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19795 Use TARGET_SSE && SSE_REGNO_P in split condition.
19796 (*vec_dupv2sf): Ditto.
19798 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19800 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19802 (floatsi<mode>2): Use that name. Simplify.
19804 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19806 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19807 parameterized name.
19808 (extenddf<mode>2_vsx): Make this a parameterized name.
19809 (extenddf<mode>2): Use those names. Simplify.
19811 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19813 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19815 (eh_return): Use that name. Simplify.
19817 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19819 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19820 (doloop_end): Use that name. Simplify.
19822 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19824 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19825 parameterized name.
19826 (indirect_jump): Use that name. Simplify.
19828 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19830 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19831 parameterized name.
19832 (abs<mode>2): Use that name. Simplify.
19834 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19836 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19837 parameterized name.
19838 (fix_trunc<mode>si2): Use that name. Simplify.
19840 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19842 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19843 (allocate_stack): Use that name. Simplify.
19845 2019-07-01 Martin Sebor <msebor@redhat.com>
19847 PR middle-end/90923
19848 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19849 (hash_map::get_or_insert): Same. Reformat comment.
19850 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19851 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19852 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19853 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19854 (hash_table::hash_table (const hash_table&)): Use copy ctor
19855 instead of assignment to copy elements.
19857 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19858 John David Anglin <danglin@gcc.gnu.org>
19861 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19862 using saved frame pointer.
19864 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19866 PR middle-end/64242
19867 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19868 Add frame clobber and schedule blockage.
19870 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19872 * doc/invoke.texi (Link Options): Further editorial changes to
19873 -flinker-output docs.
19875 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19877 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19878 Load both operands of a PLUS into registers separately.
19880 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19882 * config/s390/vector.md: Fix shift count operand printing.
19884 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19886 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19888 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19890 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19891 Use recog_data to test for an output operand.
19893 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19895 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19896 exclude any others that are disparaged or that are bound to need
19898 (ira_get_dup_out_num): Expand comment.
19900 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19902 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19903 constraint string for each operand/alternative combo. Only handle
19904 '%' at the start of constraint strings, and look for it outside
19907 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19909 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19910 alternative_mask instead of HARD_REG_SET to represent a
19911 bitmask of alternatives.
19912 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19913 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19915 2019-07-01 Martin Liska <mliska@suse.cz>
19917 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19918 use () for a constructor call.
19919 (test_applying_fixits_line_out_of_range): Likewise.
19920 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19922 (free_page): Likewise.
19924 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19926 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19927 parameter names to match usage (no functional change).
19928 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19930 2019-07-01 Richard Biener <rguenther@suse.de>
19932 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19934 (pass_fre::execute): Honor it.
19935 * passes.def: Adjust pass_fre invocations to allow iterating,
19936 add non-iterating pass_fre before late threading/dom.
19938 2019-07-01 Richard Biener <rguenther@suse.de>
19940 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19941 TARGET_MEM_REF handling to also handle address-taken ones.
19943 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19945 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19946 hardware attributes): Document avx512vp2intersect.
19948 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19950 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19951 (abs<mode>2): New expander.
19952 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19953 Use CODE_FOR_ssse3_absv8qi2.
19954 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19955 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19957 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19959 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19960 to sse, sse_noavx and avx. Update all uses.
19962 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19964 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19965 (*mmx_<plusminus_insn><mode>3): Ditto.
19966 (*mmx_mulv4hi3"): Ditto.
19967 (*mmx_smulv4hi3_highpart): Ditto.
19968 (*mmx_umulv4hi3_highpart): Ditto.
19969 (*mmx_pmaddwd): Ditto.
19970 (*sse2_umulv1siv1di3): Ditto.
19971 (*mmx_<code>v4hi3): Ditto.
19972 (*mmx_<code>v8qi3): Ditto.
19973 (mmx_ashr<mode>3): Ditto.
19974 ("mmx_<shift_insn><mode>3): Ditto.
19975 (*mmx_eq<mode>3): Ditto.
19976 (mmx_gt<mode>3): Ditto.
19977 (mmx_andnot<mode>3): Ditto.
19978 (*mmx_<code><mode>3): Ditto.
19979 (*mmx_pinsrw): Ditto.
19980 (*mmx_pextrw): Ditto.
19981 (mmx_pshufw_1): Ditto.
19982 (*mmx_uavgv8qi3): Ditto.
19983 (*mmx_uavgv4hi3): Ditto.
19984 ("mmx_psadbw): Ditto.
19985 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19986 (sse_cvttps2pi): Ditto.
19987 (ssse3_pmaddubsw): Ditto.
19988 (*ssse3_pmulhrswv4hi3): Ditto.
19989 (ssse3_psign<mode>3): Ditto.
19991 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19993 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19994 adjustment for bit-fields to all aggregate types.
19996 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19998 * config/rs6000/predicates.md (pcrel_address): Use
19999 SYMBOL_REF_LOCAL_P to determine if a label is local.
20000 (pcrel_external_address): New predicate.
20001 (non_prefixed_mem_operand): Delete, predicate not used.
20002 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20003 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20005 (SYMBOL_REF_PCREL_P): Likewise.
20008 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20010 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20011 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20012 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20014 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20016 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20017 override on extra_headers.
20019 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20021 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20022 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20024 (darwin_driver_init): Likewise.
20026 2019-06-28 Jan Beulich <jbeulich@suse.com>
20028 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20029 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20030 Eliminate redundant alternative.
20032 2019-06-28 Jan Beulich <jbeulich@suse.com>
20034 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20035 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20036 Use vector_operand.
20038 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20040 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20041 having a lower cost regardless of the speed option.
20043 2019-06-28 Jan Beulich <jbeulich@suse.com>
20045 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20046 vector_operand plus, on both alternatives, "Bm" constraint.
20048 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20050 * config/arm/arm.md: Remove redundant constraints from
20051 define_expand but leave reload_inm and reload_outm patterns
20052 untouched since they need special constraints to work.
20053 * config/arm/arm-fixed.md: Remove redundant constraints from
20055 * config/arm/iwmmxt.md: Likewise.
20056 * config/arm/neon.md: Likewise.
20057 * config/arm/sync.md: Likewise.
20058 * config/arm/thumb1.md: Likewise.
20059 * config/arm/vec-common.md: Likewise.
20061 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20063 * doc/install.texi: Document --disable-tm-clone-registry.
20065 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20068 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20071 PR tree-optimization/91010
20072 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20073 return true. Otherwise, don't call operand_equal_p if offset1 or
20074 offset2 is NULL and just return false.
20076 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20078 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20079 user-specified float mode choice for kernel mode code.
20081 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20083 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20086 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20088 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20089 use longcall for 64b code.
20091 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20093 * builtins.c (get_memory_rtx): Fix comment.
20094 * optabs.def (movmem_optab): Change to cpymem_optab.
20095 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20096 (emit_block_move_hints): Change movmem to cpymem.
20097 * defaults.h: Change movmem to cpymem.
20098 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20099 (default_use_by_pieces_infrastructure_p): Ditto.
20100 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20101 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20103 * config/aarch64/aarch64.h: Change movmem to cpymem.
20104 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20105 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20106 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20108 * config/arc/arc-protos.h: Change movmem to cpymem.
20109 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20110 * config/arc/arc.h: Change movmem to cpymem in comment.
20111 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20112 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20113 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20114 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20115 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20116 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20117 * config/avr/avr-protos.h: Change movmem to cpymem.
20118 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20119 avr_out_movmem): Change movmem to cpymem.
20120 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20121 Change movmem to cpymem.
20122 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20123 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20124 Change movmem to cpymem.
20125 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20126 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20127 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20128 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20129 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20130 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20131 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20132 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20133 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20134 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20135 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20136 expand_small_cpymem_or_setmem,
20137 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20138 expand_set_or_cpymem_constant_prologue,
20139 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20140 * config/i386/i386-protos.h: Change movmem to cpymem.
20141 * config/i386/i386.h: Change movmem to cpymem in comment.
20142 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20143 (setmem<mode>): Change expansion function name.
20144 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20145 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20146 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20147 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20148 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20149 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20150 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20152 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20153 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20154 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20155 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20156 Change movmem to cpymem.
20157 * config/mips/mips.h: Change movmem to cpymem.
20158 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20159 * config/nds32/nds32-memory-manipulation.c
20160 (nds32_expand_movmemsi_loop_unknown_size,
20161 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20162 nds32_expand_movmemsi_unroll,
20163 nds32_expand_movmemsi): Change movmem to cpymem.
20164 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20165 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20166 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20167 (pa_adjust_insn_length): Change call to compute_movmem_length.
20168 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20169 movmemdi, movmemdi_prereload,
20170 movmemdi_postreload): Change movmem to cpymem.
20171 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20172 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20173 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20174 * config/riscv/riscv.h: Change movmem to cpymem.
20175 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20176 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20177 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20179 * config/s390/s390-protos.h: Change movmem to cpymem.
20180 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20181 s390_expand_insv): Change movmem to cpymem.
20182 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20183 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20184 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20185 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20186 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20187 for nonexistent function.
20188 * config/vax/vax.h: Change movmem to cpymem in comment.
20189 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20190 * config/visium/visium.h: Change movmem to cpymem in comment.
20191 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20192 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20193 * doc/md.texi: Change movmem to cpymem and update description to match.
20194 * doc/rtl.texi: Change movmem to cpymem.
20195 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20196 * doc/tm.texi: Regenerate.
20198 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
20200 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
20201 -fvariable-expansion-in-unroller by default.
20202 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
20205 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
20208 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20209 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20211 * config.gcc(rs6000-*-*): Define target_gtfiles.
20213 2019-06-27 Jan Hubicka <jh@suse.cz>
20215 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
20216 (add_type_duplicate): When odr hash is not allocated, to nothing.
20217 (odr_based_tbaa_p): New function.
20218 (set_type_canonical_for_odr_type): New function.
20219 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
20220 set_type_canonical_for_odr_type): New.
20221 * tree.c (gimple_canonical_types_compatible_p): ODR types with
20222 ODR based TBAA are not equivalent to non-ODR types.
20224 2019-06-27 Martin Liska <mliska@suse.cz>
20226 PR tree-optimization/90974
20227 PR rtl-optimization/90975
20228 PR rtl-optimization/90976
20230 PR tree-optimization/91017
20231 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
20233 * lra.c (lra_set_insn_recog_data): Remove a leftover from
20234 initial commit of IRA.
20235 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
20237 * tree-vect-loop.c (vect_create_epilog_for_reduction):
20238 Remove unused mode1.
20239 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
20242 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20245 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
20246 instead of register_operand for operands[1], add m to its constraints
20247 if operands[2] uses "C" constraint. Ensure in condition that if
20248 operands[2] is not 0, then operands[1] is not a MEM. For last two
20249 alternatives, use unaligned loads instead of aligned if operands[1] is
20250 misaligned_operand.
20252 2019-06-27 Martin Liska <mliska@suse.cz>
20254 * asan.c (asan_emit_allocas_unpoison): Remove obviously
20256 * bt-load.c (move_btr_def): Likewise.
20257 * builtins.c (expand_builtin_apply_args_1): Likewise.
20258 (expand_builtin_apply): Likewise.
20259 * cfgexpand.c (expand_asm_stmt): Likewise.
20260 (construct_init_block): Likewise.
20261 * cfghooks.c (verify_flow_info): Likewise.
20262 * cfgloopmanip.c (remove_path): Likewise.
20263 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
20264 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
20265 * combine.c (simplify_if_then_else): Likewise.
20266 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
20267 (choose_basereg): Likewise.
20268 (ix86_expand_prologue): Likewise.
20269 (ix86_preferred_output_reload_class): Likewise.
20270 * cselib.c (cselib_record_sets): Likewise.
20271 * df-scan.c (df_scan_alloc): Likewise.
20272 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
20273 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
20274 * emit-rtl.c (try_split): Likewise.
20275 * graphite-scop-detection.c (assign_parameter_index_in_region):
20277 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
20278 * ira-color.c (setup_profitable_hard_regs): Likewise.
20279 * ira.c (rtx_moveable_p): Likewise.
20280 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
20281 * read-rtl.c (read_subst_mapping): Likewise.
20282 * regrename.c (scan_rtx): Likewise.
20283 * reorg.c (fill_slots_from_thread): Likewise.
20284 * tree-inline.c (tree_function_versioning): Likewise.
20285 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
20286 * tree-ssa-sink.c (statement_sink_location): Likewise.
20287 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
20288 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
20289 (vect_create_epilog_for_reduction): Likewise.
20290 * tree.c (build_nonstandard_integer_type): Likewise.
20292 2019-06-27 Richard Biener <rguenther@suse.de>
20294 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
20296 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
20298 PR tree-optimization/89772
20299 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
20300 out-of-bound accesses checking.
20302 2019-06-27 Martin Liska <mliska@suse.cz>
20304 PR tree-optimization/91014
20305 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
20306 when LHS is NULL_TREE.
20308 2019-06-27 Martin Liska <mliska@suse.cz>
20310 * symbol-summary.h (traverse): Pass
20311 argument a to the call of callback.
20312 (gt_ggc_mx): Mark arguments as unused.
20313 (gt_pch_nx): Likewise.
20315 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
20318 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
20321 2019-06-26 Jeff Law <law@redhat.com>
20323 PR tree-optimization/90883
20324 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
20325 (delete_dead_or_redundant_assignment): Likewise.
20327 PR tree-optimization/90883
20328 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
20329 * tree-ssa-dse.c: Update various comments to distinguish between
20330 dead and redundant stores.
20331 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
20332 (dse_optimize_redundant_stores): New function.
20333 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
20334 Distinguish between dead and redundant calls in dump output. All
20336 (delete_dead_or_redundant_assignment): Similarly for assignments.
20337 (dse_optimize_stmt): Handle _CHK variants. For statements which
20338 store 0 into multiple memory locations, try to prove a subsequent
20339 store is redundant.
20341 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
20344 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
20345 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
20347 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20349 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
20350 (branch_islands): New extern.
20351 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
20352 * config/rs6000/rs6000.c: .. here.
20354 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20356 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
20357 (powerpc*-*-*) ... to here.
20359 2019-06-26 Jeff Law <law@redhat.com>
20361 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
20362 memcpy, memmove and memset builtins.
20363 (maybe_trim_memstar_call): Likewise.
20365 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20367 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20369 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20371 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20373 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20375 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20377 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20379 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20382 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20384 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20386 2019-06-26 Richard Biener <rguenther@suse.de>
20389 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20391 2019-06-26 Richard Biener <rguenther@suse.de>
20393 * lto-streamer.h (lto_bitmap_alloc): Remove.
20394 (lto_bitmap_free): Likewise.
20395 * lto-streamer.c (lto_bitmap_alloc): Remove.
20396 (lto_bitmap_free): Likewise.
20397 (lto_obstack): Likewise.
20398 (lto_obstack_initialized): Likewise.
20399 * lto-streamer-out.c (lto_output): Use own obstack for local
20400 bitmap, free it consistently.
20402 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20405 * config/i386/sse.md
20406 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20407 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20408 insns if operands[2] is misaligned_operand.
20410 2019-06-26 Li Jia He <helijia@linux.ibm.com>
20412 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
20414 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
20417 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20419 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
20421 2019-06-26 Martin Liska <mliska@suse.cz>
20423 PR tree-optimization/90973
20424 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
20425 epilogue_cost_vec instead of prologue_cost_vec for
20428 2019-06-26 Martin Liska <mliska@suse.cz>
20430 * bb-reorder.c (connect_better_edge_p): Add missing else
20431 statement in the middle of if-else statements.
20433 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
20434 H.J. Lu <hongjiu.lu@intel.com>
20435 Olga Makhotina <olga.makhotina@intel.com>
20437 * common/config/i386/i386-common.c
20438 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
20439 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
20440 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
20441 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
20442 (ix86_handle_option): Handle -mavx512vp2intersect.
20443 * config/i386/avx512vp2intersectintrin.h: New.
20444 * config/i386/avx512vp2intersectvlintrin.h: New.
20445 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
20446 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20447 AVX512VP2INTERSECT.
20448 * config/i386/i386-builtin-types.def: Add new types.
20449 * config/i386/i386-builtin.def: Add new builtins.
20450 * config/i386/i386-builtins.c: (enum processor_features): Add
20451 F_AVX512VP2INTERSECT.
20452 (static const _isa_names_table isa_names_table): Ditto.
20453 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20454 __AVX512VP2INTERSECT__.
20455 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
20456 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
20457 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
20458 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
20459 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
20460 * config/i386/i386-options.c (ix86_target_string): Add
20461 -mavx512vp2intersect.
20462 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
20463 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
20464 P2HImode and P2QImode.
20465 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
20466 number for P2QImode and P2HImode.
20467 (ix86_regmode_natural_size): New function.
20468 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
20469 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
20470 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
20471 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
20472 * config/i386/i386.opt: Add -mavx512vp2intersect.
20473 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
20474 avx512vp2intersectvlintrin.h.
20475 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
20476 (define_mode_iterator VI48_AVX512VP2VL): New.
20477 (avx512vp2intersect_2intersect<mode>,
20478 avx512vp2intersect_2intersectv16si): New define_insn patterns.
20479 * config.gcc: Add avx512vp2intersectvlintrin.h and
20480 avx512vp2intersectintrin.h to extra_headers.
20481 * doc/invoke.texi: Document -mavx512vp2intersect.
20483 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
20485 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
20487 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20489 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
20490 savres_routine_syms, savres_routine_name, morestack_ref,
20491 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20492 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20493 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20494 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20495 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20496 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20497 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20498 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20499 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20500 get_stack_clash_protection_probe_interval,
20501 get_stack_clash_protection_guard_size,
20502 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20503 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20504 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20505 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20506 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20507 gen_frame_mem_offset, rs6000_savres_routine_name,
20508 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20509 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20510 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20511 rs6000_global_entry_point_prologue_needed_p,
20512 rs6000_get_separate_components, rs6000_components_for_bb,
20513 rs6000_disqualify_components, rs6000_emit_prologue_components,
20514 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20515 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20516 rs6000_output_savres_externs, rs6000_output_function_prologue,
20517 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20518 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20519 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20520 rs6000_output_function_epilogue, gen_add3_const,
20521 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20522 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20524 (machine_function): Moved to rs6000.h.
20525 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
20527 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
20528 savres_routine_syms, savres_routine_name, morestack_ref,
20529 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20530 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20531 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20532 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20533 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20534 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20535 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20536 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20537 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20538 get_stack_clash_protection_probe_interval,
20539 get_stack_clash_protection_guard_size,
20540 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20541 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20542 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20543 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20544 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20545 gen_frame_mem_offset, rs6000_savres_routine_name,
20546 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20547 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20548 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20549 rs6000_global_entry_point_prologue_needed_p,
20550 rs6000_get_separate_components, rs6000_components_for_bb,
20551 rs6000_disqualify_components, rs6000_emit_prologue_components,
20552 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20553 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20554 rs6000_output_savres_externs, rs6000_output_function_prologue,
20555 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20556 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20557 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20558 rs6000_output_function_epilogue, gen_add3_const,
20559 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20560 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20561 to here from rs6000.c.
20562 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20563 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20564 quad_address_offset_p) Moved to here from rs6000.c.
20565 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20566 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20569 2019-06-25 Martin Liska <mliska@suse.cz>
20571 * hash-table.c (hashtab_chk_error): Move here from ...
20572 * hash-table.h (hashtab_chk_error): ... here.
20574 2019-06-25 Martin Liska <mliska@suse.cz>
20576 PR tree-optimization/90978
20577 * df-scan.c (df_update_entry_block_defs): Remove dead else
20579 (df_update_exit_block_uses): Likewise.
20581 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20582 Andrew Stubbs <ams@codesourcery.com>
20584 * config.gcc (thread_file): Set to gcn for AMD GCN.
20585 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20586 (TARGET_EMUTLS_VAR_INIT): New hook.
20588 2019-06-25 Martin Jambor <mjambor@suse.cz>
20591 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20593 2019-06-25 Richard Biener <rguenther@suse.de>
20595 PR tree-optimization/90930
20596 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20597 into parallel form in the last pass instance.
20599 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20601 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20602 (arc_legitimize_pic_address): Simplify and cleanup the function.
20603 (SYMBOLIC_CONST): Remove.
20604 (prepare_pic_move): Likewise.
20605 (prepare_move_operands): Handle complex mov cases here.
20606 (arc_legitimize_address_0): Remove call to
20607 arc_legitimize_pic_address.
20608 (arc_legitimize_address): Remove call to
20609 arc_legitimize_tls_address.
20610 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20611 (movhi_insn): Likewise.
20613 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20615 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20617 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20618 format of "__intN" types for UINTMAX_TYPE.
20619 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20620 format of "__intN" types for SIZETYPE.
20621 * tree.c (build_common_tree_nodes): Accept "__intN__"
20622 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20623 * doc/invoke.texi: Document that __intN__ disables pedantic
20626 2019-06-25 Jan Hubicka <jh@suse.cz>
20628 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20629 base2_alias_set is non-zero before doing TBAA based disambiguation.
20631 2019-06-25 Martin Liska <mliska@suse.cz>
20633 PR tree-optimization/90973
20634 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20635 of prologue and epilogue.
20637 2019-06-24 Jan Hubicka <jh@suse.cz>
20639 * ipa-utils.h (type_with_linkage_p): Verify that type is
20641 (odr_type_p): Remove extra return.
20642 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20643 hash STRING_FLAG only for arrays and integers.
20644 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20645 Update analogously.
20646 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20648 * print-tree.c (print_node): Print cxx-odr-p
20650 * tree.c (need_assembler_name_p): Also check that type
20652 (verify_type_variant): Update verification of SRING_FLAG;
20653 also check CXX_ODR_P.
20654 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20655 (TYPE_STRING_FLAG): Use it.
20656 (TYPE_CXX_ODR_P): New macro.
20657 * dwarf2out.c (gen_array_type_die): First check that type
20658 is an array and then test string flag.
20660 2019-06-24 Richard Biener <rguenther@suse.de>
20662 PR tree-optimization/90972
20663 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20664 in common code, dealing with STRING_CST properly.
20666 2019-06-24 Richard Biener <rguenther@suse.de>
20668 PR tree-optimization/90930
20669 PR tree-optimization/90316
20670 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20671 decrement of limit.
20673 2019-06-24 Martin Sebor <msebor@redhat.com>
20675 * tree-pretty-print.h: Remove unnecessary punctuation characters
20677 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20679 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20681 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20682 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20683 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20685 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20687 * config/rs6000/darwin.h: Handle GCC target pragma.
20689 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20691 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20693 2019-06-22 Jeff Law <law@redhat.com>
20695 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20697 2019-06-22 Jan Hubicka <jh@suse.cz>
20699 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20700 give up on bitfields; continue searching for different refs
20703 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20705 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20706 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20707 containing the offset as possible simd lane access. Look through
20708 widening conversion. Move the
20709 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20711 2019-06-21 Richard Biener <rguenther@suse.de>
20713 PR tree-optimization/90930
20714 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20715 flag on new stmts to avoid re-processing them.
20717 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20719 PR c++/90875 - added -Wswitch-outside-range option
20720 * doc/invoke.texi (Wswitch-outside-range): Document.
20722 2019-06-21 Jeff Law <law@redhat.com>
20724 PR tree-optimization/90949
20725 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20726 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20728 2019-06-21 Richard Biener <rguenther@suse.de>
20731 * dwarf2out.c (prune_unused_types_walk): Always consider
20732 function-local extern declarations as used.
20734 2019-06-21 Richard Biener <rguenther@suse.de>
20736 PR tree-optimization/90913
20737 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20738 the scalar variant of if-conversion versioning.
20740 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20742 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20743 create another "omp scan inscan exclusive" array if
20744 !ctx->scan_inclusive.
20745 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20746 (lower_omp_scan): Likewise.
20747 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20748 2-bit bitfield for simd_lane_access_p member.
20749 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20750 aux == (void *)-4 as simd lane access.
20751 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20752 comment with permutations to show the canonical permutation order.
20753 (vectorizable_scan_store): Handle exclusive scan.
20754 (vectorizable_store): Call vectorizable_scan_store even for
20755 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20757 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20758 "omp simd array" arrays with one byte elements.
20760 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20762 * config/alpha/alpha.md (@unaligned_store<mode>):
20763 Rename from unaligned_store<mode>.
20764 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20765 * config/alpha/sync.md (@load_locked_<mode>): Rename
20766 from load_locked_<mode>.
20767 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20768 (@atomic_compare_and_swap<mode>_1): Rename
20769 from atomic_compare_and_swap<mode>_1.
20770 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20771 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20772 Use gen_reload_in_aligned and gen_unaligned_store.
20773 (emit_load_locked): Remove.
20774 (emit_store_conditional): Ditto.
20775 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20776 (alpha_split_compare_and_swap): Ditto.
20777 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20778 (alpha_split_compare_and_swap_12): Use gen_load_locked
20779 and gen_store_conditional.
20780 (alpha_split_atomic_exchange): Ditto.
20781 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20782 (alpha_split_atomic_exchange_12): Use gen_load_locked
20783 and gen_store_conditional.
20785 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20787 * config/aarch64/aarch64-errata.h: New file.
20788 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20789 (CA53_ERR_843419_SPEC): Delete.
20790 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20791 * config/aarch64/aarch64-linux.h: Likewise.
20792 * config/aarch64/aarch64-netbsd.h: Likewise.
20793 * config/aarch64/aarch64-freebsd.h: Likewise.
20795 2019-06-20 Marek Polacek <polacek@redhat.com>
20797 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20799 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20801 * config/rs6000/rs6000.md (isa attribute): Add support for
20802 for a future processor.
20804 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20807 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20808 standard scalar operation pattern for V2DF.
20809 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20810 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20811 (*ieee_<ieee_maxmin><mode>3): Likewise.
20812 (vec_setv2df_0): Likewise.
20814 2019-06-20 Jan Hubicka <jh@suse.cz>
20816 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20817 parameter; it has no use in gimple memory model.
20818 (indirect_ref_may_alias_decl_p): Update.
20820 2019-06-20 Martin Liska <mliska@suse.cz>
20822 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20825 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20827 * tree-vect-stmts.c (enum scan_store_kind): New type.
20828 (scan_store_can_perm_p): Change last argument from int * to
20829 vec<enum scan_store_kind> *, record precisely which permutations
20830 need whole vector left shift or that plus VEC_COND_EXPR.
20831 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20832 and additional VEC_COND_EXPR only for those iterations that need it.
20834 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20836 * config.gcc: Fix ARM --with-fpu checking and error message.
20838 2019-06-19 Marek Polacek <polacek@redhat.com>
20840 PR c++/60364 - noreturn after first decl not diagnosed.
20841 * attribs.c (get_attribute_namespace): No longer static.
20842 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20844 (attr_noreturn_exclusions): Make it extern.
20845 * attribs.h (get_attribute_namespace): Declare.
20846 * tree-inline.c (function_attribute_inlinable_p): Use
20847 get_attribute_name.
20849 2019-06-19 Martin Sebor <msebor@redhat.com>
20851 PR tree-optimization/90626
20852 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20854 PR tree-optimization/90626
20855 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20856 (handle_builtin_string_cmp): Call it.
20858 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20860 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20861 and DARWIN_NOPIE_SPEC.
20862 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20863 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20864 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20865 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20866 (DARWIN_EXPORT_DYNAMIC): Delete.
20867 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20868 and pie options processing to darwin.h.
20869 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20871 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20873 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20874 in computing the number of options to be moved.
20876 2019-06-19 Maya Rashish <coypu@sdf.org>
20878 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20879 (CLEAR_INSN_CACHE) Use it.
20881 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20883 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20885 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20887 PR middle-end/84521
20888 * builtins.c (expand_builtin_setjmp_setup): Save
20889 hard_frame_pointer_rtx.
20890 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20892 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20894 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20896 (remove_reg_equal_offset_note): Remove unused function.
20897 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20899 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20900 (arc_builtin_setjmp_frame_value): Remove function.
20901 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20902 (avr_builtin_setjmp_frame_value): Remove function.
20903 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20904 (ix86_builtin_setjmp_frame_value): Remove function.
20905 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20906 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20907 (sparc_builtin_setjmp_frame_value): Remove function.
20908 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20909 (vax_builtin_setjmp_frame_value): Remove function.
20910 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20911 pointer if has_nonlocal_label.
20913 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20915 * doc/md.texi: Document vec_shl_<mode> pattern.
20916 * optabs.def (vec_shl_optab): New optab.
20917 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20918 argument, if == vec_shl_optab, check for left whole vector shift
20919 pattern rather than right shift.
20920 (expand_vec_perm_const): Add vec_shl_optab support.
20921 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20923 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20924 can be handled by vec_shl_optab.
20925 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20926 (check_scan_store): Use it.
20927 (vectorizable_scan_store): If target can't do normal permutations,
20928 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20930 * config/i386/sse.md (vec_shl_<mode>): New expander.
20932 * omp-low.c (lower_rec_input_clauses): Handle references properly
20934 (lower_omp_scan): Likewise.
20936 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20938 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20939 mem_mode is BLKmode.
20941 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20944 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20945 pointer adjustment for the case of no callee-saved registers and
20946 stack frame bigger than 128 bytes.
20948 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20950 PR middle-end/90862
20951 * omp-low.c (check_omp_nesting_restrictions): Handle
20952 GF_OMP_TARGET_KIND_OACC_DECLARE.
20954 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20956 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20957 (@add<mode>3_carry): Rename from add<mode>3_carry.
20958 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20959 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20960 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20961 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20962 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20963 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20964 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20965 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20966 (cmpstrnsi): Use gen_cmp_1.
20967 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20968 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20969 (@umonitor_<mode>): Rename from umonitor_<mode>.
20970 * config/i386/i386-expand.c (ix86_expand_copysign):
20971 Use gen_copysign3_const and gen_copysign3_var.
20972 (ix86_expand_xorsign): Use gen_xorsign3_1.
20973 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20974 gen_sub3_carry_ccgz and gen_cmp1.
20975 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20976 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20977 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20978 (ix86_split_lshr): Ditto.
20979 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20981 2019-06-18 Jason Merrill <jason@redhat.com>
20983 * tree.c (build_constructor): Add MEM_STAT_DECL.
20985 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20987 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20988 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20989 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20990 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20991 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20992 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20993 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20994 Use CC_NZC instead of CC.
20995 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20996 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20997 (aarch64_print_operand): Handle E_CC_NZCmode.
20998 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20999 of gen_set_clobber_cc.
21001 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21003 * config/aarch64/aarch64-sve.md: Tabify file.
21005 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21007 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21008 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21009 * config/aarch64/aarch64-sve.md: Use it.
21011 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21013 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21014 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21015 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21016 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21017 (aarch64_expand_sve_vec_cmp_int): Use it.
21018 (aarch64_expand_sve_vec_cmp_float): Likewise.
21019 * config/aarch64/aarch64-sve.md: Likewise throughout.
21021 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21022 Kugan Vivekanandarajah <kuganv@linaro.org>
21024 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21025 (*cond_<optab><mode>_z): Fold into...
21026 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21027 operand 4 can be tied to operand 0 (either inherently or via RA).
21029 2019-06-18 Richard Biener <rguenther@suse.de>
21032 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21033 as if optimized away.
21035 2019-06-18 Tom de Vries <tdevries@suse.de>
21037 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21038 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21039 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21041 (define_insn "@set_softstack_<mode>"): ... this.
21042 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21043 (define_insn "@omp_simt_enter_<mode>"): ... this.
21044 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21045 (define_insn "@omp_simt_exit_<mode>"): ... this.
21047 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21049 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21050 vf parameter. Restore the previous iv step of nscalars_step,
21051 but give it iv_type rather than compare_type. Tweak code order
21052 to match the comments.
21053 (vect_set_loop_condition_masked): Update accordingly.
21054 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21055 for iv_precision. Tweak comment formatting.
21057 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21059 * config/darwin.c: Strip trailing whitespace.
21061 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21063 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21064 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21066 2019-06-18 Martin Jambor <mjambor@suse.cz>
21069 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21070 caller does not have flag_ipa_cp set.
21072 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21074 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21075 from "*fold_left_plus_<mode>", updated operands order.
21076 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21077 * internal-fn.c (mask_fold_left_direct): New define.
21078 (expand_mask_fold_left_optab_fn): Likewise.
21079 (direct_mask_fold_left_optab_supported_p): Likewise.
21080 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21081 * optabs.def (mask_fold_left_plus_optab): New optab.
21082 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21083 masked internal_fn for a reduction ifn.
21084 (vectorize_fold_left_reduction): Add support for masking reductions.
21086 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21088 PR middle-end/80791
21089 * target.def (predict_doloop_p): New hook.
21090 * targhooks.h (default_predict_doloop_p): New declaration.
21091 * targhooks.c (default_predict_doloop_p): New function.
21092 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21093 * doc/tm.texi: Regenerate.
21094 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21095 (TARGET_PREDICT_DOLOOP_P): New macro.
21096 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21098 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21100 * omp-low.c (struct omp_context): Add scan_inclusive field.
21101 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21103 (struct omplow_simd_context): Add lastlane member.
21104 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21105 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21107 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21108 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21109 (lower_omp_scan): New function.
21110 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21111 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21112 check 3rd argument if present rather than 2nd.
21113 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21114 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21116 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21117 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21119 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21120 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21121 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21123 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21124 IFN_GOMP_SIMD_LANE argument.
21125 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21126 encoded ->aux value.
21127 * tree-vect-stmts.c: Include attribs.h.
21128 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21129 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21131 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21132 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21134 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21137 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21138 (*nabs<mode>2_1): Ditto.
21139 (nabs sse-reg splitter): New splitter.
21140 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21142 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21144 PR bootstrap/90873.
21145 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21148 2019-06-17 Tom de Vries <tdevries@suse.de>
21150 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21151 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21152 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21154 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21156 (define_insn "omp_simt_enter_insn"): Rename to ...
21157 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21158 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21159 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21160 gen_omp_simt_enter_si.
21161 (define_expand "omp_simt_exit"): New.
21162 (define_insn "omp_simt_exit"): Rename to ...
21163 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21166 2019-06-17 Matthew Green <mrg@eterna.com.au>
21167 Maya Rashish <coypu@sdf.org>
21169 * config.gcc (aarch64*-*-netbsd*): New target.
21170 * config/aarch64/aarch64-netbsd.h: New file.
21171 * config/aarch64/t-aarch64-netbsd: Likewise.
21173 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21175 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21176 the access path from base to first VIEW_CONVERT_EXPR or
21179 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21181 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21182 access path on BIT_FIELD_REFs.
21184 2019-06-17 Martin Liska <mliska@suse.cz>
21187 * ipa-utils.h (odr_type_p): Remove dead code.
21189 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21191 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21192 alternative Solaris 11.4 format.
21193 * configure: Regenerate.
21195 2019-06-17 Tom de Vries <tdevries@suse.de>
21197 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
21198 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
21200 (define_insn "call_value_insn"): Rename to ...
21201 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
21203 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
21206 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
21208 PR middle-end/64242
21209 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
21210 frame clobbers and schedule block.
21211 (builtin_longjmp): Likewise.
21213 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21215 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
21216 describe how to perform MSPABI compliant 64-bit shift.
21217 * config/msp430/msp430.md (ashldi3): New define_expand.
21218 (ashrdi3): New define_expand.
21219 (lshrdi3): New define_expand.
21221 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21223 * doc/sourcebuild.texi: Document new effective target keyword
21226 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21228 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
21229 indirect_refs_may_alias_p): Revert accidental commits.
21231 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
21232 at the end of structures.
21234 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21236 * config/darwin.c (machopic_indirect_call_target): Use renamed
21237 darwin_picsymbol_stubs to decide on output.
21238 (darwin_override_options): Handle darwin_picsymbol_stubs.
21239 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
21240 (LD64_VERSION): Revise default.
21241 * config/darwin.opt: (mpic-symbol-stubs): New option.
21242 (darwin_picsymbol_stubs): New variable.
21243 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
21244 rename to TARGET_MACHO_PICSYM_STUBS.
21245 * config/i386/i386.c (output_pic_addr_const): Likewise.
21246 * config/i386/i386.h Likewise.
21247 * config/rs6000/darwin.h: Likewise.
21248 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
21249 darwin_picsymbol_stubs.
21251 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21253 * config/darwin.opt (prebind, noprebind, seglinkedit,
21254 noseglinkedit): Add RejectNegative.
21256 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21258 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
21259 in my previous patch.
21261 2019-06-16 Tom de Vries <tdevries@suse.de>
21263 PR tree-optimization/89376
21264 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
21266 2019-06-15 Maya Rashish <coypu@sdf.org>
21268 * doc/invoke.texi (Spec Files): Update location of the
21271 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
21273 * doc/extend.texi (Common Function Attributes): Clarify
21274 no_sanitize. Fix grammar.
21276 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
21278 * tree-ssa-alias.c (alias_stats): Add
21279 nonoverlapping_component_refs_p_may_alias,
21280 nonoverlapping_component_refs_p_no_alias,
21281 nonoverlapping_component_refs_of_decl_p_may_alias,
21282 nonoverlapping_component_refs_of_decl_p_no_alias.
21283 (dump_alias_stats): Dump them.
21284 (nonoverlapping_component_refs_of_decl_p): Add stats.
21285 (nonoverlapping_component_refs_p): Add stats; do not stop on first
21288 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
21290 * config/i386/i386.md (and<mode>3): Generate zero-extends for
21291 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
21293 (*anddi3_doubleword): Split before reload. Merge with
21294 anddi->zext pre-reload splitter.
21295 (*andndi3_doubleword): Split before reload.
21296 (*<code>di3_doubleword): Ditto.
21297 (*one_cmpldi2_doubleword): Ditto.
21299 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21301 PR middle-end/90779
21302 * gimplify.c: Include omp-offload.h and context.h.
21303 (gimplify_bind_expr): Add "omp declare target" attributes
21304 to static block scope variables inside of target region or target
21307 2019-06-15 Tom de Vries <tdevries@suse.de>
21309 PR tree-optimization/90009
21310 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
21311 Return NULL if bb contains IFN_UNIQUE.
21313 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
21315 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
21316 (un): New define_mode_attr.
21317 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
21318 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
21319 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
21321 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
21323 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
21325 * config/darwin.opt: Add RejectNegative where needed, reorder
21326 and add minimal functional descriptions.
21328 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21330 PR rtl-optimization/90765
21331 * calls.c (update_stack_alignment_for_call): New function.
21332 (expand_call): Call update_stack_alignment_for_call when
21333 outgoing parameter is passed in the stack.
21334 (emit_library_call_value_1): Likewise.
21335 * function.c (locate_and_pad_parm): Don't update
21336 stack_alignment_needed and preferred_stack_boundary.
21338 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21341 * config/i386/i386-features.c
21342 (dimode_scalar_chain::compute_convert_gain): Replace
21343 mmxsse_to_integer with sse_to_integer.
21344 * config/i386/i386.c (ix86_register_move_cost): Verify that
21345 moves between MMX and non-MMX units require secondary memory.
21346 Correct costs of moves between SSE and integer units.
21347 * config/i386/i386.h (processor_costs): Rename cost of moving
21348 SSE register to integer to sse_to_integer. Rename cost of
21350 2019-06-14 Matt Thomas <matt@3am-software.com>
21351 Matthew Green <mrg@eterna.com.au>
21352 Nick Hudson <skrll@netbsd.org>
21353 Maya Rashish <coypu@sdf.org>
21354 Richard Earnshaw <rearnsha@arm.com>
21356 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
21357 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
21358 * config/arm/netbsd-eabi.h: New file.
21359 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
21361 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
21362 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
21363 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
21364 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
21366 2019-06-14 Richard Biener <rguenther@suse.de>
21368 * tree-loop-distribution.c (classify_partition): Return
21369 whether a reduction appeared in all partitions and do not
21370 stop builtin detection because of this.
21371 (distribute_loop): Sort a non-builtin partition last if
21372 there's a reduction in all partitions and make sure the
21373 partition prevailing as last is not a builtin.
21375 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21378 * ipa-prop.c (add_to_agg_contents_list): New function.
21379 (clobber_by_agg_contents_list_p): Likewise.
21380 (extract_mem_content): Likewise.
21381 (get_place_in_agg_contents_list): Delete.
21382 (determine_known_aggregate_parts): Renamed from
21383 determine_locally_known_aggregate_parts. New parameter
21386 2019-06-13 Martin Sebor <msebor@redhat.com>
21388 PR tree-optimization/90662
21389 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21392 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21395 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21396 dbase is not TARGET_MEM_REF.
21398 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21400 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21402 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21403 Do not generate DImode extends for 32bit targets.
21404 (and->zext post-reload splitter): Use gen_extend_insn
21405 instead of indirect functions.
21406 (anddi->zext pre-reload splitter): New.
21407 (*zext<mode>_doubleword_and): Remove.
21408 (*zext<mode>_doubleword): Ditto.
21409 (*zextsi_doubleword): Dittto.
21411 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21413 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
21414 Use gen_sub3_insn instead of indirect function.
21415 (ix86_expand_ashl_const): Use gen_add2_insn instead of
21417 (ix86_adjust_counter): Ditto.
21419 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
21420 Lijia He <helijia@linux.ibm.com>
21422 PR tree-optimization/77820
21423 * tree-ssa-threadedge.c
21424 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
21426 (thread_across_edge): Add call to
21427 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
21429 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
21431 * config/darwin-driver.c (validate_macosx_version_min): New.
21432 (darwin_default_min_version): Cleanup and validate supplied version.
21433 (darwin_driver_init): Likewise and push cleaned version into opts.
21435 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21437 PR tree-optimization/90869
21438 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
21439 converts in MEM_REF referencing decl rather than view converts
21440 from decl type to MEM_REF type.
21442 2019-06-13 Richard Biener <rguenther@suse.de>
21444 PR tree-optimization/90856
21445 * tree-sra.c (build_ref_for_model): Only use
21446 build_reconstructed_reference when address-spaces are the same.
21448 2019-06-13 Jakub Jelinek <jakub@redhat.com>
21450 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
21451 wrap ei variable name in the declaration in ()s.
21452 (nvptx_single): Actually use mode_label variable. Formatting fix.
21454 2019-06-13 Richard Biener <rguenther@suse.de>
21456 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
21457 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
21458 also return the condition stmt.
21459 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
21460 loop we can version and version that, reusing the loop version
21461 created by if-conversion instead of versioning again.
21463 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
21465 * gimple-loop-versioning.cc (prune_loop_conditions): Use
21467 * tree-vrp (value_range_base::may_contain_p): Call into
21468 value_inside_range.
21469 (value_inside_range): Make private inside value_range_base class.
21470 Take min/max from *this.
21471 (range_includes_p): Remove.
21472 * tree-vrp.h (value_range_base): Add value_inside_range.
21473 (range_includes_p): Remove.
21474 (range_includes_zero_p): Call may_contain_p.
21475 * vr-values.c (compare_range_with_value): Same.
21477 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
21479 * doc/extend.texi (ARC Function Attributes): Update info.
21481 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
21483 PR tree-optimization/89713
21484 * doc/invoke.texi (-ffinite-loops): Document new option.
21485 * common.opt (-ffinite-loops): New option.
21486 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
21487 IFN_GOACC_LOOP calls as necessary.
21488 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
21490 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
21491 IFN_GOACC_LOOP call is not used.
21492 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
21494 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21497 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
21498 compare_type is not with Pmode size, we will create an IV with
21499 Pmode size with truncated use (i.e. converted to the correct type).
21500 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
21501 (vect_iv_limit_for_full_masking): New. Factored out of
21502 vect_set_loop_condition_masked.
21503 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
21504 (vect_iv_limit_for_full_masking): Declare.
21506 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21509 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
21510 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
21511 (get_alias_ptr_type_for_ptr_address): Likewise.
21512 (add_iv_candidate_for_use): Add scaled index candidate if useful.
21513 * tree-ssa-address.c (preferred_mem_scale_factor): New.
21514 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
21517 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21519 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
21521 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
21523 * common/config/pru/pru-common.c: New file.
21524 * config.gcc: Add PRU target.
21525 * config/pru/alu-zext.md: New file.
21526 * config/pru/constraints.md: New file.
21527 * config/pru/predicates.md: New file.
21528 * config/pru/pru-opts.h: New file.
21529 * config/pru/pru-passes.c: New file.
21530 * config/pru/pru-pragma.c: New file.
21531 * config/pru/pru-protos.h: New file.
21532 * config/pru/pru.c: New file.
21533 * config/pru/pru.h: New file.
21534 * config/pru/pru.md: New file.
21535 * config/pru/pru.opt: New file.
21536 * config/pru/t-pru: New file.
21537 * doc/extend.texi: Document PRU pragmas.
21538 * doc/invoke.texi: Document PRU-specific options.
21539 * doc/md.texi: Document PRU asm constraints.
21541 2019-06-12 Martin Sebor <msebor@redhat.com>
21543 PR middle-end/90676
21544 * tree-pretty-print.c (dump_mem_ref): New function. Include
21545 MEM_REF type in output when different size than operand.
21546 (dump_generic_node): Move code to dump_mem_ref and call it.
21548 2019-06-12 Martin Sebor <msebor@redhat.com>
21550 PR tree-optimization/90662
21551 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21554 2019-06-12 Tom de Vries <tdevries@suse.de>
21556 PR tree-optimization/90009
21557 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21559 2019-06-12 Martin Liska <mliska@suse.cz>
21561 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21563 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21564 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21565 Do not sanitize created maps.
21567 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21569 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21570 value_range::singleton_p.
21571 * tree-vrp.c (value_range_constant_singleton): Remove.
21572 * tree-vrp.h (value_range_constant_singleton): Remove.
21573 * vr-values.c (vr_values::singleton): Use
21574 value_range::singleton_p.
21576 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21579 * cfgexpand.c (align_local_variable): Add really_expand argument,
21580 don't SET_DECL_ALIGN if it is false.
21581 (add_stack_var): Add really_expand argument, pass it through to
21582 align_local_variable.
21583 (expand_one_stack_var_1): Pass true as really_expand to
21584 align_local_variable.
21585 (expand_one_ssa_partition): Pass true as really_expand to
21587 (expand_one_var): Pass really_expand through to add_stack_var.
21589 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21591 * config/arm/iterators.md (VABAL): New int iterator.
21592 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21593 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21594 UNSPEC_VABAL_U values.
21596 2019-06-12 Martin Liska <mliska@suse.cz>
21598 * value-prof.c (stream_out_histogram_value): Only first value
21601 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21604 * symtab.c (symtab_node::set_section): Allow being called on aliases
21605 as long as they aren't analyzed yet.
21607 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21609 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21610 to `mips_set_text_contents_type' to indicate whether a
21611 non-debug insn follows.
21613 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21615 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21616 enabling -mpcrel by default.
21617 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21618 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21619 that the test against -mcpu=future is done first. Then test if
21620 -mprefixed-addr is on for -mpcrel.
21621 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21623 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21626 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21627 instead of and.u%d.
21629 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21631 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21633 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21635 PR c++/90449 - add -Winaccessible-base option.
21636 * doc/invoke.texi (Winaccessible-base): Document.
21638 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21640 PR tree-optimization/62041
21641 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21643 2019-06-11 Jason Merrill <jason@redhat.com>
21645 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21646 * tree.c (get_tree_code_name): Likewise.
21647 * print-tree.c (print_node): Only briefly print a node with an
21650 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21653 * trans-mem.c (tm_memopt_compute_available): Add assertion
21654 that blocks is not empty. Formatting fix.
21656 2019-06-11 Martin Liska <mliska@suse.cz>
21659 * hash-table.h: Extend create_gcc, add one parameter
21660 that is passed into hash_table::hash_table.
21662 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21664 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21666 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21667 Emit clobber also for non-sse operations.
21668 (ix86_split_fp_absneg_operator): New function.
21669 * config/i386/i386.md (SSEMODEF): New mode iterator.
21670 (ssevecmodef): New mode attribute.
21671 (<code>tf2): Use absneg code iterator.
21672 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21673 Add three-operand AVX alternatives.
21674 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21675 Use absneg code iterator and X87MODEF mode iterator.
21676 (absneg fp_reg non-sse splitter): Call absneg code iterator
21677 and X87MODEF mode iterator.
21678 (absneg general_reg non-sse splitter): Use absneg code iterator
21679 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21680 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21681 code iterator. Add three-operand AVX alternative.
21682 (absneg sse_reg splitter): Use absneg code iterator
21683 and SSEMODEF mode iterator. Handle AVX operands.
21684 (absneg fp_reg splitter): Use absneg code iterator
21685 and MODEF mode iterator.
21686 (absneg general_reg splitter): Merge splitters using MODEF mode
21687 iterator. Use absneg code iterator. Call
21688 ix86_split_fp_absneg_operator.
21689 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21690 Do not enable for non-sse modes before reload.
21691 (CSGNMODE): Remove.
21692 (CSGNVMODE): Ditto.
21693 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21694 ssevecmodef mode attribute instaed of CSGNVMODE.
21695 (copysign<mode>3_const): Ditto.
21696 (copysign<mode>3_var): Ditto.
21697 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21698 Use absneg code iterator. Simplify code using std::swap.
21699 * config/i386/predicates.md (absneg_operator): Remove.
21701 2019-06-10 Martin Sebor <msebor@redhat.com>
21703 * gimple-fold.c (get_range_strlen): Update comment that didn't
21704 make it into r267503 or related commits.
21706 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21708 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21709 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21711 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21713 * tree.def (OMP_SCAN): New tree code.
21714 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21715 OMP_CLAUSE_EXCLUSIVE.
21716 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21717 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21718 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21719 OMP_CLAUSE_{IN,EX}CLUSIVE.
21720 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21721 * tree-nested.c (convert_nonlocal_reference_stmt,
21722 convert_local_reference_stmt, convert_gimple_call): Handle
21724 * tree-pretty-print.c (dump_omp_clause): Handle
21725 OMP_CLAUSE_{IN,EX}CLUSIVE.
21726 (dump_generic_node): Handle OMP_SCAN.
21727 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21728 * gimple.h (gomp_scan): New type.
21729 (is_a_helper <gomp_scan *>::test,
21730 is_a_helper <const gomp_scan *>::test): New templates.
21731 (gimple_build_omp_scan): Declare.
21732 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21733 gimple_omp_scan_set_clauses): New inline functions.
21734 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21735 * gimple.c (gimple_build_omp_scan): New function.
21736 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21737 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21738 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21739 GIMPLE_OMP_TASKGROUP.
21740 (dump_gimple_omp_scan): New function.
21741 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21742 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21743 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21744 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21745 (is_gimple_stmt): Handle OMP_SCAN.
21746 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21747 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21748 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21749 mentioned in nested #pragma omp scan. Handle
21750 OMP_CLAUSE_{IN,EX}CLUSIVE.
21751 (gimplify_expr): Handle OMP_SCAN.
21752 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21753 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21755 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21758 2019-06-10 Martin Liska <mliska@suse.cz>
21760 * ipa-cp.c (ignore_edge_p): New function.
21761 (build_toporder_info): Use it.
21762 * ipa-inline.c (ignore_edge_p): New function.
21763 (inline_small_functions): Use it.
21764 * ipa-pure-const.c (ignore_edge_for_nothrow):
21765 Verify opt_for_fn for caller and callee.
21766 (ignore_edge_for_pure_const): Likewise.
21767 * ipa-reference.c (ignore_edge_p): Extend to check
21769 * ipa-utils.c (searchc): Refactor.
21770 * ipa-utils.h: Fix coding style.
21772 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21774 * config/arc/arc.c (arc_rtx_costs): Update costs.
21776 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21778 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21779 (arc_split_ior): Likewise.
21780 (arc_check_mov_const): Likewise.
21781 (arc_split_mov_const): Likewise.
21782 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21783 (arc_rtx_costs): Replace check Crr with Cax constraint.
21784 (prepare_move_operands): Cleanup, remove unused code.
21785 (arc_split_ior): New function.
21786 (arc_check_ior_const): Likewise.
21787 (arc_split_mov_const): Likewise.
21788 (arc_check_mov_const): Likewise.
21789 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21790 in define_insn_and_split pattern.
21791 (iorsi3): Likewise.
21792 (mulsi3_v2): Add new matching variant.
21793 (andsi3_i): Cleanup pattern.
21794 (rotrsi3_cnt1): Update pattern.
21795 (rotrsi3_cnt8): New pattern.
21796 (ashlsi2_cnt8): Likewise.
21797 (ashlsi2_cnt16): Likewise.
21798 * config/arc/constraints.md (C0p): Update constraint.
21800 (C0x): New pattern.
21801 (Cax): New pattern.
21803 2019-06-10 Martin Liska <mliska@suse.cz>
21805 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21806 Update coding style.
21807 (sem_item_optimizer::dump_cong_classes):
21808 Print how many items are in a non-singular class. Improve
21811 2019-06-10 Martin Liska <mliska@suse.cz>
21813 * value-prof.c (dump_histogram_value): Change dump format.
21814 (gimple_mod_subtract_transform): Remove legacy comment.
21816 2019-06-10 Martin Liska <mliska@suse.cz>
21818 * value-prof.c (dump_histogram_value): Print histogram values
21821 2019-06-10 Martin Liska <mliska@suse.cz>
21823 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21824 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21825 * ipa-profile.c (ipa_profile_generate_summary):
21826 Use get_most_common_single_value.
21827 * tree-profile.c (gimple_init_gcov_profiler):
21828 Instrument with __gcov_one_value_profiler_v2
21829 and __gcov_indirect_call_profiler_v4.
21830 * value-prof.c (dump_histogram_value):
21831 Print all values for HIST_TYPE_SINGLE_VALUE.
21832 (stream_out_histogram_value): Update assert for
21834 (stream_in_histogram_value): Set number of
21835 counters for HIST_TYPE_SINGLE_VALUE.
21836 (get_most_common_single_value): New.
21837 (gimple_divmod_fixed_value_transform):
21838 Use get_most_common_single_value.
21839 (gimple_ic_transform): Likewise.
21840 (gimple_stringops_transform): Likewise.
21841 (gimple_find_values_to_profile): Set number
21842 of counters for HIST_TYPE_SINGLE_VALUE.
21843 * value-prof.h (get_most_common_single_value): New.
21845 2019-06-10 Martin Liska <mliska@suse.cz>
21847 * hash-map.h: Pass default value to hash_table ctor.
21848 * hash-table.h: Add default value to call of a ctor.
21850 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21852 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21853 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21855 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21858 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21859 Call pa_output_function_label.
21860 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21861 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21862 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21864 (pa_linux_output_function_prologue): Declare.
21865 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21866 (pa_output_function_label): New.
21867 (pa_output_function_prologue): Revise to use pa_output_function_label.
21868 (pa_linux_output_function_prologue): New.
21869 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21871 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21873 * tree-vrp.h (value_range_base::intersect): New.
21874 (value_range::intersect_helper): Move from here...
21875 (value_range_base::intersect_helper): ...to here.
21876 * tree-vrp.c (value_range::intersect_helper): Rename to...
21877 (value_range_base::intersect_helper): ...this, and rewrite to
21878 return a value instead of modifying THIS in place.
21879 Also, move equivalence handling...
21880 (value_range::intersect): ...here, while calling intersect_helper.
21881 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21883 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21885 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21887 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21889 * Makefile.in (genprogerr): Add condmd.
21890 (genprog): Remove it here.
21892 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21894 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21896 2019-06-07 Richard Biener <rguenther@suse.de>
21899 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21900 that appear after user labels.
21902 2019-06-07 Martin Liska <mliska@suse.cz>
21904 * cselib.c (cselib_init): Disable hash table
21906 * hash-set.h: Pass new default argument to m_table.
21907 * hash-table.c: Add global variable with hash table
21908 sanitization limit.
21909 * hash-table.h (Allocator>::hash_table): Add new argument
21911 (hashtab_chk_error): New.
21912 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21913 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21914 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21916 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21918 * common.opt (flto-odr-type-merging): Ignore.
21919 * invoke.texi (-flto-odr-type-merging): Remove.
21920 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21921 (can_be_vtable_hashed_p): Remove.
21922 (hash_odr_vtable): Remove.
21923 (odr_vtable_hasher::hash): Remove.
21924 (types_same_for_odr): Remove.
21925 (types_odr_comparable): Remove.
21926 (odr_vtable_hasher::equal): Remove.
21927 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21928 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21929 (get_odr_type): Do not use vtable hash.
21930 (dump_odr_type): Remove commented out code.
21931 (build_type_inheritance_graph): Do not allocate vtable hash.
21932 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21933 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21934 (odr_type_p): Likewise.
21935 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21938 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21940 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21941 immediately after same_types_for_tbaa_p returns -1 and continue
21942 looking for possible exact match; if matching types are arrays
21943 watch for partial overlaps.
21944 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21945 (indirect_refs_may_alias_p): Do type based disambiguation first;
21948 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21950 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21952 2019-06-07 Martin Liska <mliska@suse.cz>
21954 * doc/invoke.texi: Remove param.
21955 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21957 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21958 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21959 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21960 * profile.c (instrument_values): Remove
21961 HIST_TYPE_INDIR_CALL_TOPN.
21962 * tree-profile.c (init_ic_make_global_vars):
21963 Always build __gcov_indirect_call only.
21964 (gimple_init_gcov_profiler): Remove usage
21965 of PARAM_INDIR_CALL_TOPN_PROFILE.
21966 (gimple_gen_ic_profiler): Likewise.
21967 * value-prof.c (dump_histogram_value): Likewise.
21968 (stream_in_histogram_value): Likewise.
21969 (gimple_indirect_call_to_profile): Likewise.
21970 (gimple_find_values_to_profile): Likewise.
21971 * value-prof.h (enum hist_type): Likewise.
21973 2019-06-07 Martin Liska <mliska@suse.cz>
21975 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21978 2019-06-07 Martin Liska <mliska@suse.cz>
21980 PR tree-optimization/78902
21981 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21982 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21983 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21984 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21985 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21986 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21987 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21988 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21989 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21990 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21991 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21992 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21993 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21995 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21996 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21997 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21998 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21999 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22000 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22001 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22002 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22003 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22004 warn_unused_result attribute.
22005 (BUILT_IN_STRDUP): Likewise.
22006 (BUILT_IN_STRNDUP): Likewise.
22007 (BUILT_IN_ALLOCA): Likewise.
22008 (BUILT_IN_CALLOC): Likewise.
22009 (BUILT_IN_MALLOC): Likewise.
22010 (BUILT_IN_REALLOC): Likewise.
22012 2019-06-06 Jim Wilson <jimw@sifive.com>
22015 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22016 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22017 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22019 2019-06-06 Martin Sebor <msebor@redhat.com>
22021 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22022 (handle_builtin_malloc): Remove trailing spaces.
22023 (handle_builtin_memset): Same.
22024 (handle_builtin_memcmp): Same.
22025 (compute_string_length): Same.
22026 (determine_min_objsize): Same.
22027 (handle_builtin_string_cmp): Same.
22028 (handle_char_store): Same. Break up excessively long line.
22030 2019-06-06 Martin Jambor <mjambor@suse.cz>
22032 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22035 2019-06-06 Martin Jambor <mjambor@suse.cz>
22037 * tree-sra.c (struct access): New field grp_same_access_path.
22038 (dump_access): Dump it.
22039 (build_reconstructed_reference): New function.
22040 (build_ref_for_model): Use it if possible.
22041 (path_comparable_for_same_access): New function.
22042 (same_access_path_p): Likewise.
22043 (sort_and_splice_var_accesses): Set the new flag.
22044 (analyze_access_subtree): Likewise.
22045 (propagate_subaccesses_across_link): Propagate zero value of the new
22046 flag down the access tree.
22048 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22050 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22051 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22052 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22053 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22056 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22058 PR tree-optimization/90332
22059 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22060 Handle VALS containing two vectors.
22061 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22063 (@aarch64_combinez<mode>): ... This.
22064 (*aarch64_combinez_be<mode>): Rename to...
22065 (@aarch64_combinez_be<mode>): ... This.
22066 (vec_init<mode><Vhalf>): New define_expand.
22067 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22069 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22071 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22072 library functions only when not optimizing for size.
22073 (ashlsi3): Likewise.
22074 (ashrhi3): Likewise.
22075 (ashrsi3): Likewise.
22076 (lshrhi3): Likewise.
22077 (lshrsi3): Likewise.
22079 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22081 PR rtl-optimization/88751
22082 * ira.c (ira): Use the number of the actually referenced registers
22083 when calculating the threshold.
22085 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22087 * configure: Regenerate.
22089 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22091 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22092 register if it is in memory, so the shift can be emulated with a rotate
22094 (ashrhi3): Likewise.
22095 (lshrhi3): Likewise.
22097 2019-06-06 Martin Liska <mliska@suse.cz>
22099 PR tree-optimization/87954
22100 * match.pd: Simplify mult where both arguments are 0 or 1.
22102 2019-06-06 Richard Biener <rguenther@suse.de>
22104 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22105 put equivalences on UNDEFINED ranges.
22106 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22107 Make sure to drop defs of stmts added during simplification
22110 2019-06-06 Richard Biener <rguenther@suse.de>
22112 * tree-ssa-structalias.c: Include tree-cfg.h.
22113 (make_heapvar): Do not make heap vars artificial.
22114 (find_func_aliases_for_builtin_call): Handle stack allocation
22116 (find_func_aliases): Delay processing of simple enough returns
22118 (set_uids_in_ptset): Adjust.
22119 (find_what_var_points_to): Likewise.
22120 (solve_constraints): Do not dump points-to sets here.
22121 (compute_points_to_sets): Post-process return statements,
22122 amending the escaped solution. Dump points-to sets afterwards.
22123 (ipa_pta_execute): Dump points-to sets.
22125 2019-06-06 Martin Liska <mliska@suse.cz>
22128 * doc/install.texi: Fix HTML headers and
22129 titles for 'Installing GCC' pages.
22131 2019-06-06 Martin Liska <mliska@suse.cz>
22133 * ipa-icf-gimple.h (dump_message_1): Remove.
22134 (dump_message): Likewise.
22135 (return_false_with_message_1): Print also file.
22136 (return_false_with_msg): Likewise.
22137 (return_with_result): Likewise.
22138 (return_with_debug): Likewise.
22139 * ipa-icf.c (sem_function::equals_private): Remove call
22142 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22144 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22145 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22146 memory operand for it.
22147 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22149 2019-06-05 Martin Sebor <msebor@redhat.com>
22151 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22152 Adjust quoting and hyphenation.
22153 * convert.c (convert_to_real_1): Same.
22154 * gcc.c (driver_wrong_lang_callback): Same.
22155 (driver::handle_unrecognized_options): Same.
22156 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22157 * opts-common.c (cmdline_handle_error): Same.
22158 (read_cmdline_option): Same.
22159 * opts-global.c (complain_wrong_lang): Same.
22160 (print_ignored_options): Same.
22161 (handle_common_deferred_options): Same.
22162 * pretty-print.h: Same.
22163 * print-rtl.c (debug_bb_n_slim): Same.
22164 * sched-rgn.c (make_pass_sched_fusion): Same.
22165 * tree-cfg.c (verify_gimple_assign_unary): Same.
22166 (verify_gimple_label): Same.
22167 * tree-ssa-operands.c (verify_ssa_operands): Same.
22168 * varasm.c (do_assemble_alias): Same.
22169 (assemble_alias): Same.
22171 2019-06-05 Richard Henderson <rth@twiddle.net>
22173 * config/alpha/alpha.c (direct_return): Move down after
22174 struct machine_function definition; use saved frame_size;
22176 (struct machine_function): Add sa_mask, sa_size, frame_size.
22177 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22178 (alpha_compute_frame_layout): ... new function.
22179 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22180 (alpha_initial_elimination_offset): Use saved sa_size.
22181 (alpha_vms_initial_elimination_offset): Likewise.
22182 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22183 (alpha_expand_prologue): Use saved frame data. Merge integer
22184 and fp register save loops.
22185 (alpha_expand_epilogue): Likewise.
22186 (alpha_start_function): Use saved frame data.
22187 * config/alpha/alpha-protos.h (direct_return): Update.
22188 (alpha_sa_size): Remove.
22190 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22192 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22193 multiplication by a power-of-two value.
22194 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22195 and turn the modulo operation into a masking operation.
22197 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22200 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
22201 with VOIDmode inner operands.
22203 2019-06-05 Richard Biener <rguenther@suse.de>
22205 PR middle-end/90726
22206 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22207 turn an expression graph into a tree.
22209 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22211 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
22213 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
22214 treat it like explicit monotonic schedule modifier.
22215 (expand_omp_for): Initialize has_lastprivate_conditional.
22216 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
22219 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
22220 references, lookup in in hash map MEM_REF operand instead of the
22222 (lower_omp_1): When looking for lastprivate conditional assignments,
22223 handle MEM_REFs with REFERENCE_TYPE operands.
22225 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
22226 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
22227 and references a VLA. Handle references to non-VLAs if is_simd
22228 all privatization clauses like reductions.
22229 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22230 If omp_is_reference, use always omp simd arrays and set
22231 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
22232 fails, emit reference initialization.
22234 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22237 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22238 _mm_mask_fpclass_sd_mask): New intrinsics.
22239 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
22240 * config/i386/i386-builtin.def
22241 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
22243 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
22244 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
22245 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
22246 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
22247 case QI_FTYPE_V2SF_INT): Ditto.
22248 * config/i386/sse.md
22249 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
22250 Extended to insnstructions with mask operands.
22252 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22254 * config/rs6000/constraints.md (define_register_constraint "wp"):
22256 (define_register_constraint "wq"): Delete.
22257 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22258 (rs6000_init_hard_regno_mode_ok): Adjust.
22259 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22260 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
22261 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
22262 (define_mode_attr VSa): Delete.
22263 (define_mode_attr VSisa): New.
22264 (rest of file): Adjust.
22265 * doc/md.texi (Machine Constraints): Adjust.
22267 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22269 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
22270 (define_attr "enabled"): Handle those new isa values.
22272 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22274 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
22275 (define_mode_attr VSr5): Delete.
22276 (define_mode_attr VStype_sqrt): Delete.
22277 (define_mode_iterator VSX_SPDP): Delete.
22278 (define_mode_attr VS_spdp_res): Delete.
22279 (define_mode_attr VS_spdp_insn): Delete.
22280 (define_mode_attr VS_spdp_type): Delete.
22281 (*vsx_sqrt<mode>2): Adjust.
22282 (vsx_<VS_spdp_insn>): Delete, split to...
22283 (vsx_xscvdpsp): ... this. New. And...
22284 (vsx_xvcvspdp): ... this. New. And...
22285 (vsx_xvcvdpsp): ... this. New.
22287 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22289 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
22291 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
22292 (rest of file): Adjust.
22294 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22296 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
22297 (vsx_extract_<mode>_var): Ditto.
22299 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22301 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
22304 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22306 * config/rs6000/constraints.md (define_register_constraint "ww"):
22308 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22309 (rs6000_init_hard_regno_mode_ok): Adjust.
22310 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22311 RS6000_CONSTRAINT_ww.
22312 * config/rs6000/rs6000.md: Adjust.
22313 * config/rs6000/vsx.md: Adjust.
22314 * doc/md.texi (Machine Constraints): Adjust.
22316 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22318 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
22319 (define_mode_attr sd): New.
22320 (define_mode_attr s): New.
22321 (define_mode_attr Ftrad): Delete.
22322 (define_mode_attr Fvsx): Delete.
22323 (define_mode_attr Fs): Delete.
22324 (rest of file): Use the new mode attributes.
22325 * config.rs6000/vsx.md: Use the new mode attributes.
22327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22329 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
22332 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22334 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
22335 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
22336 used with VSX_B, VSX_D, or VSX_F, with just "wa".
22338 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
22341 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
22342 C++ with strict ANSI requirements.
22344 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
22346 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
22347 computations when step is 1.
22349 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22351 * config/rs6000/constraints.md (define_register_constraint "wf"):
22353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22354 (rs6000_init_hard_regno_mode_ok): Adjust.
22355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22356 RS6000_CONSTRAINT_wf.
22357 * config/rs6000/rs6000.md: Adjust.
22358 * config/rs6000/vsx.md: Adjust.
22359 * doc/md.texi (Machine Constraints): Adjust.
22361 2019-06-04 Andrew Pinski <apinski@marvell.com>
22363 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
22366 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22368 * config/rs6000/constraints.md (define_register_constraint "wd"):
22370 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22371 (rs6000_init_hard_regno_mode_ok): Adjust.
22372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22373 RS6000_CONSTRAINT_wd.
22374 * config/rs6000/rs6000.md: Adjust.
22375 * config/rs6000/vsx.md: Adjust.
22376 * doc/md.texi (Machine Constraints): Adjust.
22378 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22380 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22381 (rest of file): Adjust.
22383 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22385 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22386 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22387 (vsx_splat_<mode>_reg): Adjust.
22389 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22391 * config/rs6000/constraints.md (define_register_constraint "ws"):
22393 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22394 (rs6000_init_hard_regno_mode_ok): Adjust.
22395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22396 RS6000_CONSTRAINT_ws.
22397 * config/rs6000/rs6000.md: Adjust.
22398 * config/rs6000/vsx.md: Adjust.
22399 * doc/md.texi (Machine Constraints): Adjust.
22401 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22403 * config/rs6000/constraints.md (define_register_constraint "wv"):
22405 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22406 (rs6000_init_hard_regno_mode_ok): Adjust.
22407 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22408 RS6000_CONSTRAINT_wv.
22409 * config/rs6000/rs6000.md: Adjust.
22410 * config/rs6000/vsx.md: Adjust.
22411 * doc/md.texi (Machine Constraints): Adjust.
22413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22415 * config/rs6000/constraints.md (define_register_constraint "wi"):
22417 (define_register_constraint "wt"): Delete.
22418 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22419 (rs6000_init_hard_regno_mode_ok): Adjust.
22420 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22421 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
22422 * config/rs6000/rs6000.md: Adjust.
22423 * config/rs6000/vsx.md: Adjust.
22424 * doc/md.texi (Machine Constraints): Adjust.
22426 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22428 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
22430 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
22431 default_elf_asm_output_external.
22433 2019-06-04 Martin Liska <mliska@suse.cz>
22435 * ipa-icf.c (INCLUDE_LIST): Remove.
22436 (sem_item_optimizer::execute): Remove call to init_wpa.
22437 * ipa-icf.h (init_wpa): Remove.
22439 2019-06-04 Jakub Jelinek <jakub@redhat.com>
22441 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
22442 conditional on combined for simd.
22443 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
22445 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
22446 constructs, don't remove lastprivate_conditional_map, but instead set
22447 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
22448 to parent construct temporaries.
22449 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
22450 like !ctx->lastprivate_conditional_map.
22451 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
22452 use up->outer context instead of up.
22453 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
22454 gimple_omp_for_combined_p.
22455 (expand_omp_for_static_nochunk): Likewise.
22456 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
22457 probably moved over into expand_omp_for_generic rather than being copied
22460 2019-06-04 Martin Liska <mliska@suse.cz>
22462 * value-prof.c (dump_histogram_value): Fix typo.
22463 (gimple_mod_subtract_transform): Likewise.
22465 2019-06-04 Richard Biener <rguenther@suse.de>
22467 PR middle-end/90726
22468 * tree-chrec.c (chrec_contains_symbols): Add to visited.
22469 (tree_contains_chrecs): Likewise.
22470 (chrec_contains_symbols_defined_in_loop): Move here and avoid
22471 exponential behaivor from ...
22472 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22474 (expression_expensive_p): Avoid exponential behavior and compute
22475 expanded size, rejecting any expansion.
22476 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
22477 (idx_contains_abnormal_ssa_name_p): Likewise.
22478 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
22479 (contains_abnormal_ssa_name_p): Simplify and use
22480 walk_tree_without_duplicates.
22482 2019-06-04 Richard Biener <rguenther@suse.de>
22484 PR tree-optimization/90738
22486 2019-06-03 Richard Biener <rguenther@suse.de>
22488 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22489 full reference tree and record in ref->ref.
22490 (vn_reference_lookup_3): Pass in original ref to
22491 ao_ref_init_from_vn_reference.
22492 (vn_reference_lookup): Likewise.
22493 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22494 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22495 Handle non-decl bases in the original reference.
22497 2019-06-04 Martin Liska <mliska@suse.cz>
22499 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
22500 number of references.
22501 (sem_item_optimizer::do_congruence_step):
22502 (sem_item_optimizer::worklist_push): Dump how references
22504 (sem_item_optimizer::worklist_pop): Use heap.
22505 (sem_item_optimizer::process_cong_reduction): Likewise.
22506 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
22508 2019-06-04 Martin Liska <mliska@suse.cz>
22510 * ipa-icf.h (struct sem_usage_pair_hash): New.
22511 (sem_usage_pair_hash::hash): Likewise.
22512 (sem_usage_pair_hash::equal): Likewise.
22513 (struct sem_usage_hash): Likewise.
22514 * ipa-icf.c (sem_item::sem_item): Initialize
22515 referenced_by_count.
22516 (sem_item::add_reference): Register a reference
22517 in ref_map and not in target->usages.
22518 (sem_item::setup): Remove initialization of
22520 (sem_item::~sem_item): Remove usage of dead vectors.
22521 (sem_item::dump): Remove dump of references.
22522 (sem_item_optimizer::sem_item_optimizer): Initialize
22524 (sem_item_optimizer::read_section): Remove useless
22526 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
22527 (sem_item_optimizer::build_graph): Pass m_references
22528 to ::add_reference.
22529 (sem_item_optimizer::verify_classes): Remove usage of dead
22531 (sem_item_optimizer::traverse_congruence_split): Return true
22532 when a class is split.
22533 (sem_item_optimizer::do_congruence_step_for_index): Use
22534 hash_map for look up of (sem_item *, index). That brings
22535 significant speed up.
22536 (sem_item_optimizer::do_congruence_step): Return true
22537 when a split is done.
22538 (congruence_class::is_class_used): Use referenced_by_count.
22540 2019-06-04 Alan Modra <amodra@gmail.com>
22543 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
22546 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22548 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
22549 * config/rs6000/rs6000.c (direct_move_p): Adjust.
22550 (rs6000_secondary_reload_simple_move): Adjust.
22551 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22552 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22553 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22556 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22557 (floatunssi<mode>2_lfiwzx): Adjust.
22558 (fix_trunc<mode>si2_stfiwx): Adjust.
22559 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22560 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22561 (mfpgpr): Mark as deprecated.
22562 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22563 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22564 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22566 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22568 * config/rs6000/constraints.md (define_register_constraint "wg"):
22570 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22571 RS6000_CONSTRAINT_wg.
22572 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22573 (rs6000_init_hard_regno_mode_ok): Adjust.
22574 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22575 Delete "wg" alternatives.
22576 * doc/md.texi (Machine Constraints): Adjust.
22578 2019-06-03 Alan Modra <amodra@gmail.com>
22580 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22581 (get_uncond_jump_length): Assert length less than INT_MAX and
22584 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22586 PR middle-end/64242
22587 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22589 (expand_builtin_nonlocal_goto): Likewise.
22591 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22593 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22594 (aarch64_asm_output_external): Declare.
22595 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22596 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22597 (aarch64_asm_output_alias): New.
22598 (aarch64_asm_output_external): New.
22599 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22600 (ASM_OUTPUT_EXTERNAL): Define.
22602 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22603 * tree-vrp.h (value_range_base::nonzero_p): New.
22604 (value_range_base::set_nonnull): Rename to...
22605 (value_range_base::set_nonzero): ...this.
22606 (value_range_base::set_null): Rename to...
22607 (value_range_base::set_zero): ...this.
22608 (value_range::set_nonnull): Remove.
22609 (value_range::set_null): Remove.
22610 * tree-vrp.c (range_is_null): Remove.
22611 (range_is_nonnull): Remove.
22612 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22613 instead of range_is_*null.
22614 (extract_range_from_unary_expr): Same.
22615 (value_range_base::set_nonnull): Rename to...
22616 (value_range_base::set_nonzero): ...this.
22617 (value_range::set_nonnull): Remove.
22618 (value_range_base::set_null): Rename to...
22619 (value_range_base::set_zero): ...this.
22620 (value_range::set_null): Remove.
22621 (extract_range_from_binary_expr): Rename set_*null uses to
22623 (extract_range_from_unary_expr): Same.
22624 (union_helper): Same.
22625 * vr-values.c (get_value_range): Use set_*zero instead of
22627 (vr_values::extract_range_from_binary_expr): Same.
22628 (vr_values::extract_range_basic): Same.
22630 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22633 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22635 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22637 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22638 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22640 (aarch64_<su>abd<mode>_3): ... This.
22641 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22643 2019-06-03 Richard Biener <rguenther@suse.de>
22645 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22646 full reference tree and record in ref->ref.
22647 (vn_reference_lookup_3): Pass in original ref to
22648 ao_ref_init_from_vn_reference.
22649 (vn_reference_lookup): Likewise.
22650 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22651 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22652 Handle non-decl bases in the original reference.
22654 2019-06-03 Martin Liska <mliska@suse.cz>
22656 * doc/generic.texi: Remove Java Trees.
22658 2019-06-03 Martin Liska <mliska@suse.cz>
22660 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22661 returns 0 when operands are equal.
22663 2019-06-03 Richard Biener <rguenther@suse.de>
22665 PR tree-optimization/90716
22666 * tree-loop-distribution.c (destroy_loop): Process blocks in
22669 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22672 * vector-builder.h (vector_builder::count_dups): New method.
22673 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22675 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22676 (vec_init<mode><Vel>): New pattern.
22677 * config/aarch64/aarch64.c (emit_insr): New function.
22678 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22679 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22680 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22681 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22683 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22685 PR tree-optimization/90681
22686 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22687 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22688 special case for SLP, but fail on non-groupped loads.
22690 2019-06-03 Martin Liska <mliska@suse.cz>
22692 * cfg.c (debug): Use TDF_DETAILS for debug and
22693 print edge info only once.
22695 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22698 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22700 2019-06-01 Martin Sebor <msebor@redhat.com>
22702 PR middle-end/90694
22703 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22705 2019-05-31 Jan Hubicka <jh@suse.cz>
22707 * alias.c: Include ipa-utils.h.
22708 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22709 * ipa-devirt.c (prevailing_odr_type): New.
22710 * ipa-utils.h (previaling_odr_type): Declare.
22712 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22713 Hongtao Liu <hongtao.liu@intel.com>
22716 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22717 NOTE_INSN_DELETED_LABEL check.
22719 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22720 Robert Suchanek <robert.suchanek@mips.com>
22722 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22723 and 3rd operands of the fmadd/fmsub/maddv builtin.
22725 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22727 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22728 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22729 on OMP_SIMD if not nested inside of worksharing loop that also has
22730 lastprivate conditional clause for the same decl.
22731 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22732 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22734 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22736 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22738 (lower_lastprivate_clauses): Likewise.
22739 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22740 calling lower_rec_input_clauses.
22741 (lower_omp_for): Likewise.
22742 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22743 clause on simd construct.
22744 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22745 OMP_CLAUSE__CONDTEMP_ clause is present.
22747 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22750 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22753 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22754 TEX_D32, TEX_D64 or TEX_D128.
22756 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22758 * match.pd (~(vec?cst1:cst2)): New transformation.
22760 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22762 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22763 ((size_t)(A /[ex] B) CMP C): New transformation.
22765 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22767 * doc/md.texi: Document define_insn_and_rewrite.
22768 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22769 * gensupport.c (queue_elem): Update comment.
22770 (replace_operands_with_dups): New function.
22771 (gen_rewrite_sequence): Likewise.
22772 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22773 * read-rtl.c (apply_subst_iterator): Likewise.
22774 (add_condition_to_rtx, named_rtx_p): Likewise.
22775 (rtx_reader::read_rtx_operand): Likewise.
22776 * config/aarch64/aarch64-sve.md
22777 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22778 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22779 define_insn_and_rewrite.
22780 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22781 Remove separate define_split.
22783 2019-05-31 Jan Hubicka <jh@suse.cz>
22785 * tree-ssa-alias.c (type_has_components_p): New function.
22786 (aliasing_component_refs_p): Use it.
22788 2019-05-31 Martin Liska <mliska@suse.cz>
22790 * gdbhooks.py: Add const_tree to TreePrinter.
22792 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22795 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22796 * doc/invoke.texi (Debugging Options): Document new default of
22797 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22799 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22801 PR tree-optimization/90671
22802 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22803 template_block used to be empty on the first call, don't use
22804 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22805 seq with bb_seq and set it with set_bb_seq.
22807 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22809 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22811 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22812 Michael Meissner <meissner@linux.ibm.com>
22814 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22815 (prefixed_mem_operand): Likewise.
22816 (non_prefixed_mem_operand): Likewise.
22817 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22819 * config/rs6000/rs6000.c (print_operand_address): Handle
22820 PC-relative addresses.
22821 (mode_supports_prefixed_address_p): New function.
22822 (rs6000_prefixed_address): New function.
22823 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22824 (SYMBOL_REF_PCREL_P): Likewise.
22826 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22828 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22829 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22830 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22831 is nested inside of parallel region, add _condtemp_ clause to both.
22832 * tree-nested.c (convert_nonlocal_omp_clauses,
22833 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22835 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22837 * omp-general.c (omp_extract_for_data): Compute it.
22838 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22839 (lower_rec_input_clauses): Likewise.
22840 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22841 clause is already present, just add one further one after it.
22842 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22843 (lower_send_shared_vars): Clear _condtemp_ vars.
22844 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22845 or section or taskgroup.
22846 * omp-expand.c (determine_parallel_type): Disallow combining only if
22847 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22848 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22849 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22850 expand_omp_for_static_chunk, expand_omp_for): Use
22851 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22852 determine if a special set of API routines are needed and if condtemp
22853 needs to be initialized, while always initialize cond_var if
22854 fd->lastprivate_conditional is non-zero.
22856 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22857 Michael Meissner <meissner@linux.ibm.com>
22859 * config/rs6000/constraints.md (eI): New constraint.
22860 * config/rs6000/predicates.md (cint34_operand): New predicate.
22861 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22862 (SIGNED_34BIT_OFFSET_P): Likewise.
22863 * doc/md.texi (eI): Document constraint.
22865 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22867 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22869 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22870 Michael Meissner <meissner@linux.ibm.com>
22872 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22873 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22874 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22875 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22876 (OTHER_FUTURE_MASKS): Likewise.
22877 (POWERPC_MASKS): Likewise.
22878 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22879 specified without -mprefixed-addr or -mcpu=future. Error if
22880 -mprefixed-addr is specified without -mcpu=future.
22881 (rs6000_opt_masks): Add entry for prefixed-addr.
22882 * rs6000.opt (mprefixed-addr): New option.
22884 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22886 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22887 cfun->is_thunk check.
22889 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22891 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22894 2019-05-30 Martin Liska <mliska@suse.cz>
22896 * gdbinit.in: Fix 'ptc' command. Add trt
22897 that prints TREE_TYPE($).
22899 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22900 Alan Modra <amodra@gmail.com>
22902 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22904 (rs6000_indirect_call_template_1): ...and here.
22905 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22906 plt16_ha, plt16_lo, mtctr indirect calls. Use
22907 rs6000_pltseq_enum.
22908 (rs6000_decl_ok_for_sibcall): New function.
22909 (rs6000_function_ok_for_sibcall): Refactor.
22910 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22911 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22912 when pcrel. Reorganize.
22913 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22914 * rs6000.h (rs6000_pltseq_enum): New enum.
22915 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22916 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22917 (*pltseq_plt16_ha): Likewise.
22918 (*pltseq_plt16_lo): Likewise.
22919 (*pltseq_mtctr): Likewise.
22920 (*pltseq_plt_pcrel): New insn.
22921 (*call_local_aix): Handle @notoc calls.
22922 (*call_value_local_aix): Likewise.
22923 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22924 (*call_value_nonlocal_aix): Likewise.
22925 (*call_indirect_pcrel): New insn.
22926 (*call_value_indirect_pcrel): Likewise.
22928 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22930 * config/i386/sse.md (*save_multiple<mode>): Rename from
22931 save_multiple<mode>.
22932 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22933 (*restore_multiple_and_return<mode>): Rename from
22934 restore_multiple_and_return<mode>.
22935 (*restore_multiple_leave_return<mode>): Rename from
22936 restore_multiple_leave_return<mode>.
22938 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22940 * config.gcc (rx-*-linux*): New target.
22941 * config/rx/elf.opt: New file.
22942 * config/rx/linux.h: Likewise.
22943 * config/rx/t-linux: Likewise.
22944 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22946 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22947 (ASM_APP_OFF): Likewise.
22948 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22951 2019-05-29 Jan Hubicka <jh@suse.cz>
22953 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22954 variants are pointer equivalent.
22956 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22958 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22959 * config/aarch64/aarch64-sve2.md: New file.
22960 (<u>avg<mode>3_floor): New pattern.
22961 (<u>avg<mode>3_ceil): Likewise.
22962 (*<sur>h<addsub><mode>): Likewise.
22963 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22964 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22966 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22969 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22970 for var_opt_string printing. In cl_optimization_print_diff, print
22971 (null) instead of invoking undefined behavior if one of the
22972 var_opt_string pointers is NULL and use && instead of first || in the
22973 guarding condition. For var_target_other options, handle const char *
22974 target variables similarly to const char * optimize node variables.
22976 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22978 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22979 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22980 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22981 Add autib1716 and pacib1716 initialisation.
22982 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22983 for autib1716 and pacib1716.
22984 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22985 aarch64_post_cfi_startproc): Define.
22986 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22987 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22988 aarch64_handle_pac_ret_protection): Set default sign key to A.
22989 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22990 aarch64_expand_prologue): Add check for b-key.
22991 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22992 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22993 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22994 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22995 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22996 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22997 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22998 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22999 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23000 pauth_hint_num_a with pauth_hint_num.
23001 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23002 pauth_hint_num_a with pauth_hint_num.
23003 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23004 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23005 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23006 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23007 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23008 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23009 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23010 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23011 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23012 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23013 UNSPEC_AUTIA1716 respectively.
23014 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23015 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23016 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23017 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23018 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23019 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23021 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23023 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23024 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23025 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23026 explicit clause on combined parallel into implicit shared clause.
23027 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23028 and firstprivate if the decl has one too from combined parallel to
23029 the worksharing construct.
23031 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23032 Michael Meissner <meissner@linux.ibm.com>
23034 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23036 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23038 * rtl.h (LABEL_REF_P): New #define.
23040 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23042 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23044 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23046 * internal-fn.c: Marked mask_load_direct as vectorizable.
23047 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23048 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23049 combined even if masks different with allow_slp_p param.
23050 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23051 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23052 dissolve SLP-only vectorizable groups when SLP has been discarded.
23053 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23056 (vect_build_slp_tree_1): Fixed comment typo.
23057 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23058 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23059 loads for SLP only.
23060 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23062 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23064 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23066 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23067 Remove obsolete use_thunk reference.
23068 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23069 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23070 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23071 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23072 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23073 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23074 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23075 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23076 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23078 2019-05-28 Nathan Sidwell <nathan@acm.org>
23080 * tree.h (IDENTIFIER_ANON_P): New.
23081 (anon_aggrname_format, anon_aggname_p): Don't declare.
23082 (make_anon_name): Declare.
23083 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23084 (hash_tree): Likewise.
23085 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23086 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23087 (anon_cnt, make_anon_name): New.
23089 2019-05-28 Martin Liska <mliska@suse.cz>
23092 * opts-global.c (decode_options): Print help for all
23093 help_option_arguments.
23094 * opts.c (print_help): Add new argument.
23095 (common_handle_option): Remember all values into
23096 help_option_arguments.
23097 * opts.h (print_help): Add new argument.
23099 2019-05-28 Martin Liska <mliska@suse.cz>
23102 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23103 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23104 (func_checker::compare_bb): Call compare_loops.
23106 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23108 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23109 on sections construct.
23110 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23112 (lower_omp_sections): Handle lastprivate conditional.
23113 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23114 lastprivate_conditional_map.
23115 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23117 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23118 critical, taskgroup and section regions when looking for a region
23119 with non-NULL lastprivate_conditional_map.
23121 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23123 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23124 (*ix86_gen_sub3): Ditto.
23125 (*ix86_gen_sub3_carry): Ditto.
23126 (*ix86_gen_one_cmpl2): Ditto.
23127 (*ix86_gen_andsp): Ditto.
23128 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23129 (gen_and2_insn): New static function.
23130 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23131 Use gen_add3_insn instead of ix86_gen_add3.
23132 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23133 instead of ix86_gen_add3.
23134 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23135 Use gen_sub3_insn instead of ix86_gen_sub3.
23136 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23137 instead of ix86_gen_add3.
23138 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23139 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23140 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23141 * config/i386/i386-options.c (ix86_option_override_internal):
23142 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23143 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23145 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23147 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23148 and DW_OP_GNU_const_index opcodes.
23150 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23152 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23154 2019-05-27 Richard Biener <rguenther@suse.de>
23156 PR tree-optimization/90637
23157 * tree-ssa-sink.c (statement_sink_location): Honor the
23158 computed sink location for single-uses.
23160 2019-05-27 Richard Biener <rguenther@suse.de>
23162 PR middle-end/90610
23163 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23166 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23168 * config/i386/i386.md (@sub<mode>3_carry): Rename
23169 from sub<mode>3_carry.
23170 (@leave_<mode>): New expander.
23171 (*leave): Rename from leave.
23172 (*leave_rex64): Rename from leave_rex64.
23173 (@monitorx_<mode>): Rename from monitorx_<mode>.
23174 (@clzero_<mode>): Rename from clzero_<mode>.
23175 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23176 from sse3_monitor_<mode>.
23177 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23178 (*ix86_gen_leave): Ditto.
23179 (*ix86_gen_monitor): Ditto.
23180 (*ix86_gen_monitorx): Ditto.
23181 (*ix86_gen_clzero): Ditto.
23182 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23183 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23184 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23185 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23186 Use gen_sse3_monitor instead of ix86_gen_monitor.
23187 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23188 instead of ix86_gen_monitorx.
23189 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23190 instead of ix86_gen_clzero.
23191 * config/i386/i386-options.c (ix86_option_override_internal):
23192 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23193 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23195 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23197 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
23198 Rename from tls_global_dynamic_64_<mode>.
23199 (@tls_local_dynamic_base_64_<mode>): Rename from
23200 tls_local_dynamic_base_64_<mode>.
23201 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
23202 Remove indirect function.
23203 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
23204 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
23205 instead of ix86_gen_tls_global_dynamic_64.
23206 Use gen_tls_local_dynamic_base_64 instead of
23207 ix86_gen_tls_local_dynamic_base_64.
23208 * config/i386/i386-options.c (ix86_option_override_internal):
23209 Do not initialize ix86_gen_tls_global_dynamic_64 and
23210 ix86_gen_tls_local_dynamic_base_64.
23212 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23214 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
23215 Rename from pro_epilogue_adjust_stack_<mode>_add.
23216 (@pro_epilogue_adjust_stack_sub_<mode>)
23217 Rename from pro_epilogue_adjust_stack_<mode>_sub.
23218 (@allocate_stack_worker_probe_<mode>):
23219 Rename from allocate_stack_worker_probe_<mode>.
23220 (allocate_stack): Use gen_allocate_stack_worker_probe.
23221 (probe_stack): Use gen_probe_stack_1.
23222 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
23223 (@adjust_stack_and_probe_<mode>): Rename from
23224 adjust_stack_and_probe<mode>.
23225 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
23226 (stack_protect_set): Use gen_stack_protect_set_1.
23227 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
23228 (stack_protect_test): Use gen_stack_protect_test_1.
23229 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
23230 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
23231 Remove indirect function.
23232 (*ix86_gen_adjust_stack_and_probe): Ditto.
23233 (*ix86_gen_probe_stack_range): Ditto.
23234 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
23235 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
23236 (ix86_adjust_stack_and_probe_stack_clash): Use
23237 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
23238 (ix86_adjust_stack_and_probe): Ditto.
23239 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
23240 of ix86_gen_probe_stack_range.
23241 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
23242 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
23243 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
23244 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
23245 CODE_FOR_stack_protect_test_{si,di}.
23246 * config/i386/i386-options.c (ix86_option_override_internal):
23247 Do not initialize ix86_gen_allocate_stack_worker,
23248 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
23250 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
23252 * doc/invoke.texi (Link Options): Many editorial changes around
23255 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23257 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
23258 pre-Solaris 11 referene and most Studio compiler details.
23260 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
23263 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
23264 DImode to SImode in floating-point registers on 64-bit target.
23265 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
23266 register_operand in xmpyu patterns.
23268 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23270 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
23271 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
23272 OMP_CLAUSE__REDUCTEMP_.
23273 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23274 OMP_CLAUSE__CONDTEMP_.
23275 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
23276 * tree-pretty-print.c (dump_omp_clause): Likewise.
23277 * tree-nested.c (convert_nonlocal_omp_clauses,
23278 convert_local_omp_clauses): Likewise.
23279 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
23280 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
23281 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
23283 (gimplify_omp_for): Warn and disable conditional modifier from
23284 lastprivate on loop iterators.
23285 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
23287 * omp-general.c (omp_extract_for_data): Initialize it.
23288 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
23290 (delete_omp_context): Delete it.
23291 (lower_lastprivate_conditional_clauses): New function.
23292 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
23293 handle lastprivate conditional clauses.
23294 (lower_reduction_clauses): Add CLIST argument, emit it into
23295 the critical section if any.
23296 (lower_omp_sections): Adjust lower_lastprivate_clauses and
23297 lower_reduction_clauses callers.
23298 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
23299 to lower_lastprivate_clauses.
23300 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
23301 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
23302 clist into a critical section if not emitted there already by
23303 lower_reduction_clauses.
23304 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
23306 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
23307 conditional variables.
23308 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
23310 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23311 expand_omp_for_static_chunk): Handle lastprivate conditional.
23312 (expand_omp_for): Handle fd.lastprivate_conditional like
23315 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23317 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
23318 kernel does not exit cleanly.
23319 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
23321 2019-05-24 Jason Merrill <jason@redhat.com>
23324 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23326 2019-05-24 Richard Biener <rguenther@suse.de>
23329 * tree-loop-distribution.c (struct partition): Add location
23331 (partition_alloc): Initialize all fields.
23332 (generate_memset_builtin): Use the location recorded in the
23333 partition for the generated call.
23334 (generate_memcpy_builtin): Likewise.
23335 (classify_partition): Record the location of a single store
23336 as location for the partition.
23338 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23340 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
23343 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
23346 * common/config/aarch64/aarch64-common.c
23347 (aarch64_rewrite_selected_cpu): Change local temporary variable
23348 type from unsigned long to uint64_t.
23349 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
23350 aarch64_get_extension_string_for_isa_flags): Change declaration to
23351 match new definition by replacing unsigned long with uint64_t.
23353 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23356 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
23357 gen_attr_type just once instead of 4-7 times. Formatting fixes.
23358 Handle stack_protect_test_<mode> codegen similarly to corresponding
23361 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
23363 * config/i386/darwin.h: Reject -mfentry*.
23364 * doc/sourcebuild.texi: Document mfentry target support.
23366 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23368 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23369 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23370 false for PC-relative functions.
23371 (rs6000_output_function_prologue): Change called function name to
23372 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23373 name,1" for PC-relative functions.
23374 (rs6000_elf_declare_function_name): Change called function name to
23375 rs6000_global_entry_point_prologue_needed_p.
23377 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23380 * config/i386/i386.c (gen_rtx_cost):
23381 Use ix86_tune_cost instead of ix86_cost.
23383 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23384 Michael Meissner <meissner@linux.ibm.com>
23385 Segher Boessenkool <segher@kernel.crashing.org>
23387 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23389 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23390 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23391 (rs6000_fndecl_pcrel_p): Likewise.
23392 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23393 error if -mpcrel is requested without -mcpu=future.
23394 (rs6000_opt_masks): Add entry for pcrel.
23395 (rs6000_fndecl_pcrel_p): New function.
23396 (rs6000_pcrel_p): Likewise.
23397 * config/rs6000/rs6000.opt (mpcrel): New option.
23398 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23400 2019-05-23 Jan Hubicka <jh@suse.cz>
23401 Martin Liska <mliska@suse.cz>
23403 PR tree-optimization/90576
23404 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23406 (aliasing_component_refs_p): Fix three way size compare conditional;
23407 give up earlier in case we can not decide on equivalence.
23409 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23410 Michael Meissner <meissner@linux.ibm.com>
23411 Segher Boessenkool <segher@kernel.crashing.org>
23413 * config.gcc: Add future cpu.
23414 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
23415 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
23417 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
23418 (RS6000_CPU): New instantiation for future cpu.
23419 * config/rs6000/rs6000-opts.h (enum processor_type): Add
23421 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23422 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
23423 * config/rs6000/rs6000-tables.opt: Regenerate.
23424 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
23425 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
23426 (rs6000_machine_from_flags): Handle future cpu.
23427 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
23428 PROCESSOR_POWER9 for now.
23429 (rs6000_adjust_cost): Likewise.
23430 (rs6000_issue_rate): Likewise.
23431 (rs6000_register_move_cost): Likewise.
23432 (rs6000_opt_masks): Add entry for future.
23433 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
23434 (MASK_FUTURE): New #define.
23435 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
23436 * config/rs6000/rs6000.opt (mfuture): New target option.
23437 * doc/invoke.texi (mcpu): Add future cpu.
23439 2019-05-23 Martin Liska <mliska@suse.cz>
23442 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
23443 operation points to a temporary (pointed via tree_to_wide_ref)
23444 that is out of scope after the &.
23446 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
23449 * doc/extend.texi (Function Names): Add missing word.
23451 2019-05-23 Richard Biener <rguenther@suse.de>
23453 PR tree-optimization/88440
23454 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
23456 * tree-loop-distribution.c (generate_memset_builtin): Fold the
23458 (generate_memcpy_builtin): Likewise.
23459 (distribute_loop): Pass in whether to only distribute patterns.
23460 (prepare_perfect_loop_nest): Also allow size optimization.
23461 (pass_loop_distribution::execute): When optimizing a loop
23462 nest for size allow pattern replacement.
23464 2019-05-23 Jakub Jelinek <jakub@redhat.com>
23467 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
23470 2019-05-23 Martin Liska <mliska@suse.cz>
23473 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
23474 expression similarly to gimplify_decl_expr.
23476 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23478 * cse.c (cse_dump_path): s/dump_file/f.
23480 2019-05-22 David Malcolm <dmalcolm@redhat.com>
23483 * diagnostic-format-json.cc: Include "selftest.h".
23484 (json_from_expanded_location): Only add "file" key for non-NULL
23486 (json_from_location_range): Don't add "start" and "finish"
23487 children if they are UNKNOWN_LOCATION.
23488 (selftest::test_unknown_location): New selftest.
23489 (selftest::test_bad_endpoints): New selftest.
23490 (selftest::diagnostic_format_json_cc_tests): New function.
23491 * json.cc (json::object::get): New function.
23492 (selftest::test_object_get): New selftest.
23493 (selftest::json_cc_tests): Call it.
23494 * json.h (json::object::get): New decl.
23495 * selftest-run-tests.c (selftest::run_tests): Call
23496 selftest::diagnostic_format_json_cc_tests.
23497 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
23500 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
23501 Andrew Stubbs <amd@codesourcery.com>
23503 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
23504 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
23505 (kernel): Rename to...
23506 (main_kernel): ... this.
23507 (load_image): Load _init_array and _fini_array kernels.
23508 (run): Add argument for kernel to run.
23509 (main): Run init_array_kernel before main_kernel, and
23510 fini_array_kernel after.
23511 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
23512 amdgpu_hsa_kernel attribute on functions.
23513 (gcn_disable_constructors): Delete.
23514 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
23515 * config/gcn/crt0.c (size_t): Define.
23516 (_init_array, _fini_array): New.
23517 (__preinit_array_start, __preinit_array_end,
23518 __init_array_start, __init_array_end,
23519 __fini_array_start, __fini_array_end): Declare weak references.
23521 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
23523 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
23525 2019-05-22 Jason Merrill <jason@redhat.com>
23527 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23529 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
23532 * config/i386/i386-options.c (ix86_init_machine_status): Set
23533 stack_frame_required to true.
23534 * config/i386/i386.c (ix86_get_frame_size): New function.
23535 (ix86_frame_pointer_required): Replace get_frame_size with
23536 ix86_get_frame_size.
23537 (ix86_compute_frame_layout): Likewise.
23538 (ix86_find_max_used_stack_alignment): Changed to void. Set
23539 stack_frame_required.
23540 (ix86_finalize_stack_frame_flags): Always call
23541 ix86_find_max_used_stack_alignment. Replace get_frame_size with
23542 ix86_get_frame_size.
23543 * config/i386/i386.h (machine_function): Add stack_frame_required.
23545 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23547 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
23549 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
23551 * common/config/aarch64/aarch64-common.c
23552 (struct aarch64_option_extension, struct processor_name_to_arch,
23553 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23554 aarch64_contains_opt,
23555 aarch64_get_extension_string_for_isa_flags): Change type of
23556 variables storing flags to uint64_t.
23557 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23558 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23559 * config/aarch64/aarch64.c (struct processor,
23560 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23561 aarch64_validate_march, aarch64_override_options,
23562 aarch64_option_print, aarch64_handle_attr_isa_flags,
23563 aarch64_declare_function_name, aarch64_start_file): Make flag
23564 variables uint64_t.
23565 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23566 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23567 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23568 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23569 * config/aarch64/driver-aarch64.c
23570 (struct aarch64_arch_extension, struct aarch64_core_data,
23571 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23572 flag variables uint64_t.
23573 * doc/invoke.texi: Add documentation for new arguments.
23575 2019-05-22 Richard Biener <rguenther@suse.de>
23577 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23579 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23581 2019-05-22 Martin Liska <mliska@suse.cz>
23584 * doc/extend.texi: Document the change.
23586 2019-05-22 Richard Biener <rguenther@suse.de>
23588 PR tree-optimization/90450
23589 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23590 (mem_ref_hasher::equal): Check it.
23591 (mem_ref_alloc): Initialize it.
23592 (gather_mem_refs_stmt): Set it.
23594 2019-05-22 Richard Biener <rguenther@suse.de>
23596 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23598 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23601 2019-05-22 Alan Modra <amodra@gmail.com>
23603 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23604 (ASM_CPU_SPEC): Conditionally add -many.
23605 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23606 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23607 (rs6000_file_start): ..extracted from here, and modified to
23609 (rs6000_output_function_prologue): Emit .machine as necessary.
23611 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23613 PR middle-end/90553
23614 * ira-lives.c (process_bb_node_lives): Consider defs
23615 for a call insn to be die before the call, not after.
23617 * function.c (assign_parm_setup_block): Raise alignment of
23618 stacked parameter only for STRICT_ALIGNMENT targets.
23620 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23622 * config/rs6000/constraints.md (define_register_constraint "wz"):
23624 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23625 RS6000_CONSTRAINT_wz.
23626 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23627 (rs6000_init_hard_regno_mode_ok): Adjust.
23628 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23629 * doc/md.texi (Machine Constraints): Adjust.
23631 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23633 * config/rs6000/constraints.md (define_register_constraint "wl"):
23635 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23636 RS6000_CONSTRAINT_wl.
23637 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23638 (rs6000_init_hard_regno_mode_ok): Adjust.
23639 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23640 * doc/md.texi (Machine Constraints): Adjust.
23642 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23644 * config/rs6000/constraints.md (define_register_constraint "wm"):
23646 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23647 RS6000_CONSTRAINT_wm.
23648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23649 (rs6000_init_hard_regno_mode_ok): Adjust.
23650 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23651 * doc/md.texi (Machine Constraints): Adjust.
23653 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23655 * config/rs6000/constraints.md (define_register_constraint "wk"):
23657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23658 RS6000_CONSTRAINT_wk.
23659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23660 (rs6000_init_hard_regno_mode_ok): Adjust.
23661 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23662 * doc/md.texi (Machine Constraints): Adjust.
23664 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23666 * config/rs6000/constraints.md (define_register_constraint "wj"):
23668 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23669 RS6000_CONSTRAINT_wj.
23670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23671 (rs6000_init_hard_regno_mode_ok): Adjust.
23672 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23674 * config/rs6000/vsx.md: Ditto.
23675 * doc/md.texi (Machine Constraints): Adjust.
23677 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23679 * config/rs6000/constraints.md (define_register_constraint "wh"):
23681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23682 RS6000_CONSTRAINT_wh.
23683 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23684 (rs6000_init_hard_regno_mode_ok): Adjust.
23685 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23686 * doc/md.texi (Machine Constraints): Adjust.
23688 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23691 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23692 Avoid calling gen_lowpart with CONST operand.
23694 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23696 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23697 field template_last_to_copy.
23698 (ssa_create_duplicates): Set it, and use it. Attempt to
23699 preserve more debug stmts.
23701 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23703 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23704 (signbit<mode>2): New expander
23706 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23709 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23710 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23712 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23714 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23715 %ebx and %ecx bafore calling cpuid with leaf 1 or
23716 non-constant leaf argument.
23718 2019-05-21 Alan Modra <amodra@gmail.com>
23721 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23722 power9 direct move cost.
23724 2019-05-21 Richard Biener <rguenther@suse.de>
23726 PR middle-end/90510
23727 * fold-const.c (fold_read_from_vector): New function.
23728 * fold-const.h (fold_read_from_vector): Declare.
23729 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23730 single-element insert permutations. Canonicalize selector
23731 further and fix issue with last commit.
23733 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23735 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23736 parameter with default value false to declaration.
23737 (split_edges_for_insertion): New inline function. Wrapper for
23738 split_critical_edges with for_edge_insertion_p = true.
23739 * tree-cfg.c (split_critical_edges): Don't split non-critical
23740 edges if for_edge_insertion_p is false. Fix whitespace.
23741 * tree-ssa-pre.c (pass_pre::execute): Call
23742 split_edges_for_insertion instead of split_critical_edges.
23743 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23744 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23745 (pass_data_sink_code): Update function name in the comment.
23747 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23749 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23750 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23751 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23752 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23755 2019-05-21 Martin Liska <mliska@suse.cz>
23757 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23759 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23760 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23762 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23764 (rs6000_function_arg): Likewise.
23765 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23766 (rs6000_expand_ternop_builtin): Use interval syntax.
23767 (get_element_number): Likewise.
23768 (altivec_expand_builtin): Likewise.
23769 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23771 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23775 * function.h (struct function): Add calls_eh_return member.
23776 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23777 gimplifying __builtin_eh_return call.
23778 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23780 (expand_call_inline): Or in src_cfun->calls_eh_return into
23781 dst_cfun->calls_eh_return.
23782 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23783 cfun->calls_eh_return.
23784 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23785 * lto-streamer-out.c (output_struct_function_base): Write
23788 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23790 PR rtl-optimization/43147
23791 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23792 IX86_BUILTIN_SHUFPD.
23794 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23796 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23797 (refs_may_alias_p_1): ... here; update stats.
23798 (refs_may_alias_p): Do not update stats here.
23800 2019-05-20 Richard Biener <rguenther@suse.de>
23802 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23803 doesn't produce pointers.
23804 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23805 the first operand points to.
23807 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23809 * tree-ssa-alias.c (compare_sizes): New function.
23810 (sompare_type_sizes): New function
23811 (aliasing_component_refs_p): Use it.
23812 (indirect_ref_may_alias_decl_p): Likewise.
23814 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23816 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23818 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23820 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23821 (LIBLSAN_EARLY_SPEC): Likewise.
23822 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23824 2019-05-20 Martin Liska <mliska@suse.cz>
23826 * config/i386/i386.c (ix86_libc_has_fast_function):
23827 Add ATTRIBUTE_UNUSED for the argument.
23829 2019-05-20 Richard Biener <rguenther@suse.de>
23831 * gimple-match-head.c: Include vec-perm-indices.h.
23832 * generic-match-head.c: Likewise.
23833 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23835 * fold-const.c (fold_vec_perm): Export.
23836 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23837 (match.pd): ...here.
23839 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23841 * cfgloop.h (struct loop): Add simdlen member.
23842 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23843 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23844 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23845 as new argument to autovectorize_vector_sizes target hook. If
23846 loop->simdlen, pick up vector size where the vectorization factor
23847 is equal to loop->simd, and if there is none, fall back to the first
23849 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23851 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23852 * omp-general.c (omp_max_vf): Likewise.
23853 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23854 * tree-vect-slp.c (vect_slp_bb): Likewise.
23855 * target.def (autovectorize_vector_sizes): Add ALL argument and
23857 * doc/tm.texi: Adjust documentation.
23858 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23859 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23860 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23862 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23863 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23864 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23865 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23866 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23867 preferred vector size is not 512-bit or 256-bit, just put those
23868 unpreferred ones last.
23870 2019-05-20 Martin Liska <mliska@suse.cz>
23872 * targhooks.c (default_libc_has_fast_function): New function.
23873 * targhooks.h (default_libc_has_fast_function): Likewise.
23875 2019-05-20 Martin Liska <mliska@suse.cz>
23877 PR middle-end/90263
23878 * builtins.c (expand_builtin_memory_copy_args): When having a
23879 target with fast mempcpy implementation do now use memcpy.
23880 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23881 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23882 * doc/tm.texi: Likewise.
23883 * doc/tm.texi.in: Likewise.
23885 * expr.c (emit_block_move_hints): Add 2 new arguments.
23886 * expr.h (emit_block_move_hints): Bail out when libcall
23887 to memcpy would be used.
23889 2019-05-20 Martin Liska <mliska@suse.cz>
23891 * profile-count.c: Add vertical spacing in order
23892 to separate functions.
23893 * profile-count.h: Likewise.
23895 2019-05-20 Martin Liska <mliska@suse.cz>
23897 * profile-count.h: Do not use full qualified
23899 * profile-count.c (profile_count::to_frequency): Likewise.
23901 2019-05-20 Martin Liska <mliska@suse.cz>
23903 * profile-count.h (enum profile_quality): Use capital letters
23904 for enum value names. Use the adjusted names.
23905 * profile-count.c: Use the adjusted names.
23907 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23909 * config/rs6000/constraints.md (define_register_constraint "wH"):
23911 (define_register_constraint "wI"): Delete.
23912 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23913 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23914 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23915 (rs6000_init_hard_regno_mode_ok): Adjust.
23916 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23917 resp. "d", or with "wa" as appropriate, all with "p8v".
23918 * config/rs6000/vsx.md: Ditto.
23919 * doc/md.texi (Machine Constraints): Adjust.
23921 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23923 * config/rs6000/constraints.md (define_register_constraint "wy"):
23925 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23926 RS6000_CONSTRAINT_wy.
23927 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23928 (rs6000_init_hard_regno_mode_ok): Adjust.
23929 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23930 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23931 (define_mode_attr Fisa): New.
23932 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23933 * doc/md.texi (Machine Constraints): Adjust.
23935 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23937 * config/rs6000/constraints.md (define_register_constraint "wu"):
23939 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23940 RS6000_CONSTRAINT_wu.
23941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23942 (rs6000_init_hard_regno_mode_ok): Adjust.
23943 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23945 (define_mode_attr Fa): Delete.
23946 * config/rs6000/vsx.md: Ditto.
23947 * doc/md.texi (Machine Constraints): Adjust.
23949 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23951 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23953 (define_register_constraint "wK"): Delete.
23954 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23955 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23956 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23957 (rs6000_init_hard_regno_mode_ok): Adjust.
23958 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23959 Replace "wK" constraint by "wH" with "p9v".
23960 * config/rs6000/vsx.md: Ditto.
23961 * doc/md.texi (Machine Constraints): Adjust.
23963 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23965 * config/rs6000/constraints.md (define_register_constraint "wb"):
23967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23968 RS6000_CONSTRAINT_wb.
23969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23970 (rs6000_init_hard_regno_mode_ok): Adjust.
23971 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23972 * config/rs6000/vsx.md: Ditto.
23973 * doc/md.texi (Machine Constraints): Adjust.
23975 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23977 * config/rs6000/constraints.md (define_register_constraint "wo"):
23979 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23980 RS6000_CONSTRAINT_wo.
23981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23982 (rs6000_init_hard_regno_mode_ok): Adjust.
23983 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23984 * config/rs6000/altivec.md: Ditto.
23985 * doc/md.texi (Machine Constraints): Adjust.
23987 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23989 * config/darwin-c.c (darwin_register_objc_includes): Do not
23990 prepend the sysroot when building gnu-runtime header search
23993 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23995 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23996 instead of direct output of the asm.
23998 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24000 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24001 argument to be type bool (was int before).
24002 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24003 at first use. Use type bool for some variables. Fix a theoretical
24004 eh_return bug for svr4.
24006 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24008 * config/rs6000/rs6000.md (isa): New attribute.
24009 (enabled): New attribute.
24011 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24013 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24014 assemble_start_function and assemble_end_function.
24016 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24018 PR middle-end/89433
24019 * omp-general.c (oacc_verify_routine_clauses): Change formal
24020 parameters. Add checking if already marked with an OpenACC
24021 'routine' directive. Adjust all users.
24023 PR middle-end/89433
24024 * omp-general.c (oacc_build_routine_dims): Move some of its
24026 (oacc_verify_routine_clauses): ... this new function.
24027 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24029 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24031 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24032 formating of picbase labels to match other ports.
24034 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24036 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24037 in the generated code.
24039 2019-05-16 Martin Sebor <msebor@redhat.com>
24041 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24042 identifiers, keywords, operators, and types in diagnostics. Correct
24043 quoting, spelling, and sentence capitalization issues.
24044 (expand_builtin_atomic_is_lock_free): Same.
24045 (fold_builtin_next_arg): Same.
24046 * cfgexpand.c (expand_one_var): Same.
24047 (tree_conflicts_with_clobbers_p): Same.
24048 (expand_asm_stmt): Same.
24049 (verify_loop_structure): Same.
24050 * cgraphunit.c (process_function_and_variable_attributes): Same.
24051 * collect-utils.c (collect_execute): Same.
24052 * collect2.c (maybe_run_lto_and_relink): Same.
24053 (is_lto_object_file): Same.
24054 (scan_prog_file): Same.
24055 * convert.c (convert_to_real_1): Same.
24056 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24057 * except.c (verify_eh_tree): Same.
24058 * gcc.c (execute): Same.
24059 (eval_spec_function): Same.
24060 (run_attempt): Same.
24061 (driver::set_up_specs): Same.
24062 (compare_debug_auxbase_opt_spec_function): Same.
24063 * gcov-tool.c (unlink_gcda_file): Same.
24065 (do_rewrite): Same.
24066 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24067 * gimplify.c (gimplify_asm_expr): Same.
24068 (gimplify_adjust_omp_clauses): Same.
24069 * hsa-gen.c (gen_hsa_addr_insns): Same.
24070 (gen_hsa_insns_for_load): Same.
24071 (gen_hsa_cmp_insn_from_gimple): Same.
24072 (gen_hsa_insns_for_operation_assignment): Same.
24073 (gen_get_level): Same.
24074 (gen_hsa_alloca): Same.
24075 (omp_simple_builtin::generate): Same.
24076 (gen_hsa_atomic_for_builtin): Same.
24077 (gen_hsa_insns_for_call): Same.
24078 * input.c (dump_location_info): Same.
24079 * ipa-devirt.c (compare_virtual_tables): Same.
24080 * ira.c (ira_setup_eliminable_regset): Same.
24081 * lra-assigns.c (lra_assign): Same.
24082 * lra-constraints.c (lra_constraints): Same.
24083 * lto-streamer-in.c (lto_input_mode_table): Same.
24084 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24085 (merge_and_complain): Same.
24086 (compile_offload_image): Same.
24087 (compile_images_for_offload_targets): Same.
24088 (debug_objcopy): Same.
24091 * opts.c (print_specific_help): Same.
24092 (parse_no_sanitize_attribute): Same.
24093 (print_help): Same.
24094 (handle_param): Same.
24095 * plugin.c (add_new_plugin): Same.
24096 (parse_plugin_arg_opt): Same.
24097 (try_init_one_plugin): Same.
24098 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24099 operators, and types in diagnostics. Correct quoting and spelling
24101 * read-rtl-function.c (parse_edge_flag_token): Same.
24102 (function_reader::parse_enum_value): Same.
24103 * reg-stack.c (check_asm_stack_operands): Same.
24104 * regcprop.c (validate_value_data): Same.
24105 * sched-rgn.c (make_pass_sched_fusion): Same.
24106 * stmt.c (check_unique_operand_names): Same.
24107 * targhooks.c (default_target_option_pragma_parse): Same.
24108 * tlink.c (recompile_files): Same.
24109 * toplev.c (process_options): Same.
24110 (do_compile): Same.
24111 * trans-mem.c (diagnose_tm_1): Same.
24112 (ipa_tm_scan_irr_block): Same.
24113 (ipa_tm_diagnose_transaction): Same.
24114 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24115 format a tree code name in a diagnostic.
24116 (verify_types_in_gimple_min_lval): Same.
24117 (verify_types_in_gimple_reference): Same.
24118 (verify_gimple_call): Same.
24119 (verify_gimple_assign_unary): Same.
24120 (verify_gimple_assign_binary): Same.
24121 (verify_gimple_assign_ternary): Same.
24122 (verify_gimple_assign_single): Same.
24123 (verify_gimple_switch): Same.
24124 (verify_gimple_label): Same.
24125 (verify_gimple_phi): Same.
24126 (verify_gimple_in_seq): Same.
24127 (verify_eh_throw_stmt_node): Same.
24128 (collect_subblocks): Same.
24129 (gimple_verify_flow_info): Same.
24130 (do_warn_unused_result): Same.
24131 * tree-inline.c (expand_call_inline): Same.
24132 * tree-into-ssa.c (update_ssa): Same.
24133 * tree.c (tree_int_cst_elt_check_failed): Same.
24134 (tree_vec_elt_check_failed): Same.
24135 (omp_clause_operand_check_failed): Same.
24136 (verify_type_variant): Same.
24137 (verify_type): Same.
24138 * value-prof.c (verify_histograms): Same.
24139 * varasm.c (assemble_start_function): Same.
24141 2019-05-16 Martin Sebor <msebor@redhat.com>
24143 * config/i386/i386-expand.c (get_element_number): Quote keywords
24144 and other internal names in diagnostics. Adjust other diagnostic
24145 formatting issues noted by -Wformat-diag.
24146 * config/i386/i386-features.c
24147 (ix86_mangle_function_version_assembler_name): Same.
24148 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24149 * config/i386/i386.c (ix86_function_type_abi): Same.
24150 (ix86_function_ms_hook_prologue): Same.
24151 (classify_argument): Same.
24152 (ix86_expand_prologue): Same.
24153 (ix86_md_asm_adjust): Same.
24154 (ix86_memmodel_check): Same.
24156 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24158 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24159 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24162 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24165 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24166 intrinsics without SSE/SSE2/SSSE3.
24167 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24169 (*mmx_uavgv8qi3): Likewise.
24171 2019-05-17 Richard Biener <rguenther@suse.de>
24173 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24174 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24176 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24178 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24179 vec_sldw insn pattern.
24181 2019-05-17 Richard Biener <rguenther@suse.de>
24183 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24185 2019-05-17 Martin Liska <mliska@suse.cz>
24188 * toplev.c (output_stack_usage): With LTO and sanitizer it
24189 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24190 has no file location.
24192 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24195 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24196 sz0 is equal to sz1, instead return false in that case.
24198 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
24199 has non-constant expression, force sctx.lane and use two
24200 argument IFN_GOMP_SIMD_LANE instead of single argument.
24201 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
24202 two argument IFN_GOMP_SIMD_LANE without lhs.
24203 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
24205 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
24207 (LOOP_REQUIRES_VERSIONING): Or in
24208 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
24209 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24211 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
24212 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
24213 from simd if clause if needed.
24215 2019-05-16 Richard Biener <rguenther@suse.de>
24217 * tree-affine.c (expr_to_aff_combination): New function split
24219 (tree_to_aff_combination): ... here.
24220 (aff_combination_expand): Avoid building a GENERIC tree.
24222 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
24224 * cgraphunit.c (cgraph_node::expand_thunk): Remove
24225 assemble_start_function and assemble_end_function calls.
24226 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
24227 assemble_start_function and assemble_end_function.
24228 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
24229 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
24230 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
24231 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
24232 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
24233 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
24234 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
24235 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
24236 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24237 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24238 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
24239 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
24241 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
24242 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
24243 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
24244 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
24245 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24246 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24247 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
24248 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
24249 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24250 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24251 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24252 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24253 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
24254 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
24256 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24257 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24258 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
24260 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
24262 * tree-ssa-alias.c (alias_stats): Add
24263 aliasing_component_refs_p_may_alias and
24264 aliasing_component_refs_p_no_alias.
24265 (dump_alias_stats): Print aliasing_component_refs_p stats.
24266 (aliasing_component_refs_p): Update stats.
24268 2019-05-16 Martin Liska <mliska@suse.cz>
24271 * multiple_target.c (expand_target_clones): Do not allow
24272 target_clones being used with a symbol that is an alias.
24274 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
24276 PR tree-optimization/90394
24277 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
24278 positives rather than ICE for cases where (code2 == NE_EXPR
24279 && code1 == BIT_AND_EXPR).
24281 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24284 * tree-core.h (struct tree_decl_common): Document
24285 decl_nonshareable_flag for PARM_DECLs.
24286 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
24287 * calls.c (expand_call): Don't try tail call if caller
24288 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
24289 passed on the stack and callee needs to pass any arguments on the
24291 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24292 else if instead of series of mutually exclusive ifs. Handle
24293 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
24294 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24296 * lto-streamer.h (LTO_major_version): Bump to 9.
24298 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
24300 PR tree-optimization/90106
24301 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
24302 new parameter as new internal function call, also move it to new
24304 (use_internal_fn): Pass internal function call to
24305 shrink_wrap_one_built_in_call_with_conds.
24307 2019-05-15 Jakub Jelinek <jakub@redhat.com>
24309 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
24311 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
24312 safelen_int and set loop->dont_vectorize.
24314 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24317 * config/i386/i386-builtin.def: Enable MMX intrinsics with
24319 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24321 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
24322 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
24323 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
24326 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24329 * config/i386/mmx.md (*vec_dupv2sf): Changed to
24330 define_insn_and_split to support SSE emulation.
24331 (*vec_extractv2sf_0): Likewise.
24332 (*vec_extractv2sf_1): Likewise.
24333 (*vec_extractv2si_0): Likewise.
24334 (*vec_extractv2si_1): Likewise.
24335 (*vec_extractv2si_zext_mem): Likewise.
24336 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
24337 (vec_extractv2sf_1 splitter): Likewise.
24338 (vec_extractv2sfsf): Likewise.
24339 (vec_setv2si): Likewise.
24340 (vec_extractv2si_1 splitter): Likewise.
24341 (vec_extractv2sisi): Likewise.
24342 (vec_setv4hi): Likewise.
24343 (vec_extractv4hihi): Likewise.
24344 (vec_setv8qi): Likewise.
24345 (vec_extractv8qiqi): Likewise.
24346 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24347 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
24348 (vec_extractv2sisi): Likewise.
24349 (vec_extractv4hihi): Likewise.
24350 (vec_extractv8qiqi): Likewise.
24351 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24352 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
24353 (vec_initv2sisi): Likewise.
24354 (vec_initv4hihi): Likewise.
24355 (vec_initv8qiqi): Likewise.
24356 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
24357 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
24358 (vec_setv4hi): Likewise.
24359 (vec_setv8qi): Likewise.
24361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24364 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
24365 TARGET_MMX_WITH_SSE.
24366 (MMXMODE:*mov<mode>_internal): Likewise.
24367 (MMXMODE:movmisalign<mode>): Likewise.
24369 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24372 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24373 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24374 (sse2_cvtpd2pi): Ditto.
24375 (sse2_cvttpd2pi): Ditto.
24376 (*vec_concatv2sf_sse4_1): Ditto.
24377 (*vec_concatv2sf_sse): Ditto.
24378 (*vec_concatv2si_sse4_1): Ditto.
24379 (*vec_concatv2si): Ditto.
24380 (*vec_concatv4si_0): Ditto.
24381 (*vec_concatv2di_0): Ditto.
24383 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24386 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24391 * config/i386/sse.md (ssse3_palignrdi): Changed to
24392 define_insn_and_split to support SSE emulation.
24394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24397 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24402 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24403 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24409 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24410 or TARGET_MMX_WITH_SSE.
24411 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
24413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24416 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
24418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24421 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
24422 Changed to define_insn_and_split to support SSE emulation.
24424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24427 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
24428 Changed to define_insn_and_split to support SSE emulation.
24430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24433 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
24434 (*mmx_<emms>): This.
24435 (mmx_<emms>): New expander.
24437 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24440 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
24442 (*sse2_umulv1siv1di3): Add SSE2 emulation.
24444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24447 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
24449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24452 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
24454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24457 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
24458 TARGET_MMX_WITH_SSE.
24459 (*mmx_uavgv4hi3): Add SSE emulation.
24461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24464 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
24465 and TARGET_MMX_WITH_SSE.
24466 (*mmx_uavgv8qi3): Add SSE emulation.
24468 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24471 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
24472 maskmovdqu for __MMX_WITH_SSE__.
24474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24477 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
24478 TARGET_MMX and TARGET_MMX_WITH_SSE.
24479 (*mmx_umulv4hi3_highpart): Add SSE emulation.
24481 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24484 * config/i386/mmx.md (mmx_pmovmskb): Changed to
24485 define_insn_and_split to support SSE emulation.
24487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24490 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
24491 and TARGET_MMX_WITH_SSE.
24492 (mmx_<code>v8qi3): Likewise.
24493 (smaxmin:<code>v4hi3): New.
24494 (umaxmin:<code>v8qi3): Likewise.
24495 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
24496 (umaxmin:*mmx_<code>v8qi3): Likewise.
24498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24501 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
24502 TARGET_MMX_WITH_SSE.
24503 (*mmx_pinsrw): Add SSE emulation.
24505 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24508 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
24510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24513 * config/i386/sse.md (sse_cvtpi2ps): Changed to
24514 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24520 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
24521 (sse_cvttps2pi): Likewise.
24523 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24526 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
24527 TARGET_MMX_WITH_SSE.
24528 (mmx_pshufw_1): Add SSE emulation.
24529 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
24530 TARGET_MMX_WITH_SSE to support SSE emulation.
24532 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24535 * config/i386/constraints.md (Yw): New constraint.
24536 * config/i386/mmx.md (*vec_dupv2si): Changed to
24537 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
24538 support SSE emulation.
24540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24543 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
24544 TARGET_MMX_WITH_SSE.
24545 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24547 (mmx_gt<mode>3): Likewise.
24549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24552 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24553 TARGET_MMX_WITH_SSE. Add SSE support.
24555 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24558 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24559 TARGET_MMX_WITH_SSE.
24560 (any_logic:<code><mode>3): New.
24561 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24567 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24568 TARGET_MMX_WITH_SSE. Add SSE emulation.
24569 (mmx_<shift_insn><mode>3): Likewise.
24570 (ashr<mode>3): New.
24571 (<shift_insn><mode>3): Likewise.
24573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24576 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24577 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24582 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24583 TARGET_MMX_WITH_SSE.
24584 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24587 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24590 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24591 TARGET_MMX_WITH_SSE.
24593 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24599 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24600 (plusminus:mmx_<plusminus_insn><mode>3): Check
24601 TARGET_MMX_WITH_SSE.
24602 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24603 (<plusminus_insn><mode>3): New.
24604 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24605 (*mmx_<plusminus_insn><mode>3): Likewise.
24607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24610 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24611 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24613 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24614 define_insn_and_split to support SSE emulation.
24615 (mmx_punpcklbw): Likewise.
24616 (mmx_punpckhwd): Likewise.
24617 (mmx_punpcklwd): Likewise.
24618 (mmx_punpckhdq): Likewise.
24619 (mmx_punpckldq): Likewise.
24621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24622 Uros Bizjak <ubizjak@gmail.com>
24625 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24627 (ix86_split_mmx_pack): Likewise.
24628 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24630 (ix86_split_mmx_pack): Likewise.
24631 * config/i386/i386.md (mmx_isa): New.
24632 (enabled): Also check mmx_isa.
24633 * config/i386/mmx.md (any_s_truncate): New code iterator.
24634 (s_trunsuffix): New code attr.
24635 (mmx_packsswb): Removed.
24636 (mmx_packssdw): Likewise.
24637 (mmx_packuswb): Likewise.
24638 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24639 MMX packsswb/packuswb with SSE2.
24640 (mmx_packssdw): Likewise.
24641 * config/i386/predicates.md (register_mmxmem_operand): New.
24643 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24646 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24647 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24648 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24649 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24650 (ix86_vector_mode_supported_p): Likewise.
24651 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24653 2019-05-15 Martin Liska <mliska@suse.cz>
24655 PR middle-end/90478
24656 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24657 Check for overflow.
24659 2019-05-15 Richard Biener <rguenther@suse.de>
24661 * tree-into-ssa.c (pass_build_ssa::execute): Run
24662 update_address_taken before going into SSA.
24664 2019-05-15 Richard Biener <rguenther@suse.de>
24666 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24667 as __BIT_FIELD_REF with type with -gimple.
24669 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24671 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24672 semantically equivalent branches (left over after prior refactorings).
24674 2019-05-15 Richard Biener <rguenther@suse.de>
24676 PR tree-optimization/88828
24677 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24680 2019-05-14 Richard Biener <rguenther@suse.de>
24682 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24683 as __VIEW_CONVERT with -gimple.
24685 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24688 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24691 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24693 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24694 define_split to become a define_insn_and_split.
24696 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24698 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24700 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24701 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24702 (sibcall_epilogue): Adjust.
24703 (epilogue): Adjust.
24705 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24707 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24708 to unsupported ones.
24709 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24710 * config.host: Likewise.
24711 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24712 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24713 __svr4__]: Remove "brand" fallback.
24714 [!KSTAT_DATA_STRING]: Remove.
24715 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24717 (comdat_group): Likewise.
24718 (set_have_as_tls): Likewise.
24719 (gcc_cv_target_dl_iterate_phdr): Likewise.
24720 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24721 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24722 * configure: Regenerate.
24723 * doc/install.texi: Simplify Solaris target triplets.
24724 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24725 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24726 Remove Solaris 10 references.
24727 Remove obsolete Solaris bug reference.
24728 (Specific, sparc-sun-solaris2.10): Remove.
24730 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24732 * config/i386/i386.md (any_div): New code iterator.
24733 (paired_mod): New code attribute.
24734 (sgnprefix): Handle DIV and UDIV RTXes.
24736 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24737 and udivmod<mode>4 patterns using any_div code iterator.
24738 (divmod splitters): Macroize splitters using any_div code iterator.
24739 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24740 (*udivmodsi4_pow2_zext_2): Ditto.
24741 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24742 and *udivmod<mode>4_noext patterns using any_div code iterator.
24743 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24744 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24745 patterns using any_div code iterator.
24746 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24747 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24748 patterns using any_div code iterator.
24749 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24750 udivmodhiqi3 patterns using any_extend code iterator.
24752 2019-05-14 Richard Biener <rguenther@suse.de>
24753 H.J. Lu <hongjiu.lu@intel.com>
24755 PR tree-optimization/88828
24756 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24757 permuting in a single non-constant element not extracted
24760 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24762 * internal-fn.def (SIGNBIT): New.
24763 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24765 (signbitv4sf2): Likewise.
24767 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24770 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24771 next insn when the SRC reg is dead.
24773 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24775 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24776 (alloc_cand_and_find_basis): Ditto.
24777 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24778 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24779 (create_add_imm_cand, slsr_process_cast): Ditto.
24780 (slsr_process_copy, replace_mult_candidate): Ditto.
24781 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24782 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24783 (pass_strength_reduction::execute): Init the first NULL element.
24785 2019-05-13 Nathan Sidwell <nathan@acm.org>
24787 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24788 (run_attempt): Reformat line break.
24790 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24793 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24794 data registers in sibcall epilogues.
24795 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24797 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24800 * configure.ac (--enable-frame-pointer):
24801 Disable by default for cygwin and mingw.
24802 * configure: Regenerate.
24804 2019-05-13 Nathan Sidwell <nathan@acm.org>
24806 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24808 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24809 (gen_member_die): Move abstract origin check earlier. Only VARs
24810 can be static_inline_p. Simplify splicing control flow.
24812 2019-05-13 Richard Biener <rguenther@suse.de>
24814 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24816 (vect_build_slp_tree_1): Likewise.
24818 2019-05-13 Richard Biener <rguenther@suse.de>
24820 PR tree-optimization/90402
24821 * tree-if-conv.c (tree_if_conversion): Value number only
24822 the loop body by making the latch an exit of the region
24824 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24826 (do_rpo_vn): Deal with multiple edges into the entry block
24827 that are not backedges inside the region by skipping PHIs
24828 of the entry block.
24830 2019-05-13 Richard Biener <rguenther@suse.de>
24832 PR tree-optimization/90316
24833 * tree-ssa-pre.c (insert_aux): Fold into ...
24834 (insert): ... this function. Use a RPO walk to reduce the
24835 number of required iterations.
24837 2019-05-13 Martin Liska <mliska@suse.cz>
24839 PR tree-optimization/90416
24840 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24841 string instead of passing the second part as va_arg argument.
24843 2019-05-13 Martin Liska <mliska@suse.cz>
24845 PR gcov-profile/90380
24846 * gcov.c (handle_cycle): Do not support zero cycle count,
24847 it should not be possible.
24848 (path_contains_zero_cycle_arc): New function.
24849 (circuit): Ignore zero cycle arc counts.
24851 2019-05-13 Martin Liska <mliska@suse.cz>
24853 PR gcov-profile/90380
24854 * gcov.c (enum loop_type): Remove the enum and
24856 (handle_cycle): Assert that we should not reach
24858 (circuit): Use loop_found instead of a tri-state loop_type.
24859 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24862 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24865 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24866 (ix86_output_indirect_branch_via_reg): Use output mechanism
24867 accounting for __USER_LABEL_PREFIX__.
24868 (ix86_output_indirect_branch_via_push): Likewise.
24869 (ix86_output_function_return): Likewise.
24870 (ix86_output_indirect_function_return): Likewise.
24872 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24874 * doc/md.texi: Document use of code attributes in rtx patterns.
24875 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24876 * read-rtl.c (find_code): Split out search loops into...
24877 (maybe_find_code): ...this new function.
24878 (check_code_iterator): Make the error message more informative.
24879 (check_code_attribute): New function.
24880 (rtx_reader::rtx_alloc_for_name): Likewise.
24881 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24882 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24883 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24884 <max_opp> directly as an rtx code instead of via a match_operator.
24885 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24886 (<su>abd<mode>_3): Update accordingly.
24888 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24890 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24891 is given, print the state of the EH "save world" computation for
24894 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24897 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24898 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24900 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24902 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24903 Use pinsrd for TARGET_SSE4_1.
24904 * config/i386/sse.md (movdi_to_sse): Ditto.
24906 2019-05-10 Richard Biener <rguenther@suse.de>
24908 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24909 (do_rpo_vn): Initialize next_value_id.
24911 2019-05-10 Martin Liska <mliska@suse.cz>
24913 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24916 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24918 PR tree-optimization/90385
24919 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24920 arguments of the exit phis.
24923 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24924 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24926 (copy_tree_body_r): Likewise.
24927 (copy_fn): Set id.do_not_fold to true.
24929 2019-05-10 Martin Liska <mliska@suse.cz>
24931 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24932 Reapply changes from r269790.
24934 2019-05-10 Martin Liska <mliska@suse.cz>
24936 PR middle-end/90340
24937 * doc/invoke.texi: New params.
24938 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24939 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24940 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24942 * tree-switch-conversion.h (struct jump_table_cluster):
24945 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24947 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24949 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24951 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24953 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24955 PR rtl-optimization/88879
24956 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24958 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24961 * config/arm/arm.c (callee_saved_reg_p): Move before
24962 thumb_find_work_register.
24963 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24964 thumb_find_work_register. Only call df_get_live_out once.
24965 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24966 (thumb_find_work_register): Use
24967 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24968 algorithms to locate a spare call clobbered reg.
24970 2019-05-09 Martin Liska <mliska@suse.cz>
24972 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24973 and MAX_EXPR in GIMPLE FE format.
24975 2019-05-09 Martin Liska <mliska@suse.cz>
24977 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24978 * gimple-pretty-print.c (dump_gimple_bb_header):
24980 (pp_cfg_jump): Dump edge probability.
24981 * profile-count.c (profile_quality_as_string): Simplify
24982 with a static array.
24983 (parse_profile_quality): New function.
24984 (profile_count::dump): Simplify with a static array.
24985 (profile_count::from_gcov_type): Add new argument.
24986 * profile-count.h (parse_profile_quality): Likewise.
24987 * predict.h (set_hot_bb_threshold): New.
24988 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24990 * predict.c (get_hot_bb_threshold): Set from the new param.
24991 (set_hot_bb_threshold): New.
24993 2019-05-09 Richard Biener <rguenther@suse.de>
24995 PR tree-optimization/90395
24996 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24997 rewrite vector stores that throw internally.
24999 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25001 * cif-code.def (CHKP): Remove.
25004 * configure.ac (--enable-frame-pointer): Disable by default for
25006 * configure: Regenerate.
25008 2019-05-09 Alan Modra <amodra@gmail.com>
25011 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25012 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25013 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25014 cost for general <-> vsx when direct moves are available.
25015 Cost union classes at minimal cost for any reg in the class.
25016 Correct calculation for moves between vsx, float, and altivec.
25017 Don't return a low cost for moves between special regs. Don't
25018 use hard coded register numbers.
25019 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25020 (rs6000_ira_change_pseudo_allocno_class): New function.
25021 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25022 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25024 (movsi_internal1): Don't disparage vector alternatives.
25025 (mov<mode>_internal): Likewise, excepting alternative that
25027 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25028 we <- b alternative.
25030 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25033 PR tree-optimization/89060
25034 * tree-ssa-live.h (live_vars_map): New typedef.
25035 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25036 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25037 (struct compute_live_vars_data): New type.
25038 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25039 live_vars_at_stmt, destroy_live_vars): New functions.
25040 * tree-tailcall.c: Include tree-ssa-live.h.
25041 (live_vars, live_vars_vec): New global variables.
25042 (find_tail_calls): Perform variable life analysis before punting.
25043 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25044 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25046 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25047 Perform variable life analysis to select variables that really need
25049 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25050 instead set id->eh_landing_pad_dest and assert it is the same.
25051 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25053 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25054 Richard Earnshaw <rearnsha@arm.com>
25057 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25059 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25060 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25061 register if both the epilogue and prologue can use call-clobbered
25063 (thumb1_unexpanded_epilogue): Use
25064 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25065 picking temporaries for restoring high regs to match that of the
25066 prologue where possible.
25067 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25068 the list of work registers. Detect if the return address is still live
25069 at the end of the prologue and avoid using it for a work register if so.
25070 If the return address is not live, add LR to the list of pushable regs
25071 after the first pass.
25073 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25075 PR tree-optimization/90078
25076 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25077 (INFTY): Increase the value for infinite cost.
25078 (struct comp_cost): Promote type of members to int64_t.
25079 (infinite_cost): Don't set complexity in initialization.
25080 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25081 overflows to infinite_cost.
25082 (adjust_setup_cost): Promote type of parameter and cost computation
25084 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25086 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25087 cost computation to int64_t.
25088 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25089 int64_t's format specifier in dump.
25091 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25093 PR tree-optimization/90240
25094 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25095 with respect to scaling factor pre-computed for each basic block.
25096 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25097 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25098 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25099 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25100 live range for array of loop's basic blocks. Cleanup aux field of
25101 loop's basic blocks.
25103 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25105 PR tree-optimization/90356
25106 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25108 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25110 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25111 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25112 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25113 (ix86_handle_option): Handle -mavx512bf16.
25114 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25116 * config/i386/avx512bf16vlintrin.h: New.
25117 * config/i386/avx512bf16intrin.h: New.
25118 * config/i386/cpuid.h (bit_AVX512BF16): New.
25119 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25120 * config/i386/i386-builtin-types.def: Add new types.
25121 * config/i386/i386-builtin.def: Add new builtins.
25122 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25124 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25125 (ix86_option_override_internal): Handle BF16.
25126 (ix86_valid_target_attribute_inner_p): Ditto.
25127 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25128 * config/i386/i386-builtin.c (enum processor_features): Add
25130 (static const _isa_names_table isa_names_table): Ditto.
25131 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25132 (PTA_AVX512BF16): Ditto.
25133 * config/i386/i386.opt: Add -mavx512bf16.
25134 * config/i386/immintrin.h: Include avx512bf16intrin.h
25135 and avx512bf16vlintrin.h.
25136 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25137 avx512f_cvtneps2bf16_<mode><mask_name>,
25138 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25139 * config/i386/subst.md (mask_half): Add new subst.
25140 * doc/invoke.texi: Document -mavx512bf16.
25142 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25144 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25145 Delete declaration.
25146 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25147 (rs6000_debug_legitimize_reload_address): Delete.
25148 (rs6000_legitimize_reload_address_ptr): Delete.
25149 (rs6000_option_override_internal): Adjust.
25150 (mem_operand_gpr): Adjust comment.
25151 (legitimate_lo_sum_address_p): Ditto.
25152 (rs6000_legitimize_reload_address): Delete.
25153 (rs6000_debug_legitimize_reload_address): Delete.
25154 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25156 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25159 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25160 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25161 to compute vector element selector for both constant and variable
25164 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25166 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25167 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25168 ashrdi3_cvt using SWI48 mode iterator.
25170 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25172 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25173 (aarch64_<su>abd<mode>_3): Likewise.
25174 (*aarch64_<su>abd<mode>_3): New define_insn.
25175 (<sur>sad<vsi2qi>): New define_expand.
25176 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25177 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25178 (build_vect_cond_expr): Likewise.
25180 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25182 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25183 clobbers outside of accessible_reg_set.
25184 * config/i386/i386.c (ix86_conditional_register_usage):
25185 Disable register sets by clearing corresponding bits in
25186 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25187 call_used_regs and don't clear corresponding reg_names array members.
25189 2019-05-07 Richard Biener <rguenther@suse.de>
25191 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25192 not specified still compute a comp_vectype for invariant
25195 2019-05-07 Richard Biener <rguenther@suse.de>
25197 PR tree-optimization/90316
25198 * tree-ssa-pre.c (translate_vuse_through_block): When
25199 same_valid is NULL do not bother to search for a virtual
25201 (phi_translate_1): When operands changed we cannot keep
25202 the same value-number so do not bother to ask whether
25203 that's possible from translate_vuse_through_block.
25205 2019-05-07 Martin Liska <mliska@suse.cz>
25207 * bitmap.c (bitmap_register): Come up with
25208 alloc_descriptor_max_uid and assign it for
25210 (register_overhead): Use get_descriptor as
25212 (release_overhead): New.
25213 (bitmap_elem_to_freelist): Call it.
25214 (bitmap_elt_clear_from): Likewise.
25215 (bitmap_obstack_free): Likewise.
25216 (bitmap_move): Sensitively release memory.
25217 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
25218 (bitmap_initialize): Initialize alloc_descriptor to zero.
25219 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
25221 2019-05-07 Richard Biener <rguenther@suse.de>
25223 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
25224 we build a SLP node. Remove max_size and limiting.
25225 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
25227 2019-05-07 Richard Biener <rguenther@suse.de>
25229 PR tree-optimization/90316
25230 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
25231 limit by reference.
25232 (walk_non_aliased_vuses): Take walking limit argument.
25233 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
25234 walking if it is reached instead of just counting.
25235 (get_continuation_for_phi): Likewise.
25236 (walk_non_aliased_vuses): Likewise, instead of leaving counter
25237 limiting to the callback.
25238 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
25239 (vn_reference_lookup_3): Likewise.
25240 (vn_reference_lookup_pieces): Likewise.
25241 (vn_reference_lookup): Likewise.
25242 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
25243 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
25244 (avail_exprs_stack::lookup_avail_expr): Likewise.
25246 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
25248 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
25249 for comparaible types in the second direction even if first one
25250 hits incomparable type.
25252 2019-05-07 Richard Biener <rguenther@suse.de>
25255 * lto-wrapper.c (debug_objcopy): Use the original filename
25256 including archive offset for the filename used for -save-temps.
25258 2019-05-07 Li Jia He <helijia@linux.ibm.com>
25260 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
25263 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
25264 Hongtao Liu <hongtao.liu@intel.com>
25268 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
25269 Modified, original implementation isn't correct.
25271 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25273 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
25274 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
25275 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
25276 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
25277 (FRAME_POINTER_REGNUM): Change numbering.
25278 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
25279 (alt_reg_names): Adjust.
25280 (rs6000_conditional_register_usage): Don't mark hard register 64 as
25282 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25283 (DWARF_FRAME_REGISTERS): Delete.
25284 (DWARF2_FRAME_REG_OUT): Fix whitespace.
25285 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25287 (REG_ALLOC_ORDER): Adjust.
25288 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
25289 (REG_CLASS_CONTENTS): Adjust.
25290 (RETURN_ADDR_RTX): Change comment.
25291 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
25293 (REGISTER_NAMES): Adjust.
25294 (ADDITIONAL_REGISTER_NAMES): Adjust.
25295 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25297 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25299 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
25301 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25302 (DWARF_FRAME_REGISTERS): Adjust.
25303 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25305 (REG_ALLOC_ORDER): Adjust.
25306 (enum reg_class): Delete SPR_REGS.
25307 (REG_CLASS_NAMES): Delete SPR_REGS.
25308 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
25309 (REGISTER_NAMES): Adjust.
25310 (ADDITIONAL_REGISTER_NAMES): Adjust.
25311 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25312 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
25313 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
25314 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
25315 (htm_spr_regno): Delete.
25316 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
25318 (rs6000_dbx_register_number): Adjust.
25320 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25322 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
25324 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25326 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
25327 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
25329 2019-05-06 Jakub Jelinek <jakub@redhat.com>
25331 PR tree-optimization/88709
25332 PR tree-optimization/90271
25333 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
25334 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
25335 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
25337 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
25338 of the store merging group is larger than
25339 PARAM_STORE_MERGING_MAX_SIZE parameter.
25340 (split_group): Add bzero_first argument. If set, always emit first
25341 the first store which must be = {} of the whole area and then for the
25342 rest of the stores consider all zero bytes as paddings.
25343 (imm_store_chain_info::output_merged_store): Check if first store
25344 is = {} of the whole area and if yes, determine which setting of
25345 bzero_first for split_group gives smaller number of stores. Adjust
25346 split_group callers.
25347 (lhs_valid_for_store_merging_p): Allow decls.
25348 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
25350 (pass_store_merging::process_store): Likewise.
25352 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
25355 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25356 handling of V1TImode.
25358 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
25361 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
25362 and enable_frame_pointer ...
25363 * configure.ac: ... here. Update help strings for
25364 --enable-frame-pointer.
25365 * configure: Regenerate.
25366 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25367 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25368 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25369 (USE_X86_64_FRAME_POINTER): Ditto.
25371 2019-05-06 Martin Liska <mliska@suse.cz>
25373 * config.gcc: Append to target_gtfiles and fix indentation.
25375 2019-05-06 Richard Biener <rguenther@suse.de>
25377 PR tree-optimization/90358
25378 * tree-vect-stmts.c (get_group_load_store_type): Properly
25379 detect unused upper half of load.
25380 (vectorizable_load): Likewise.
25382 2019-05-06 Richard Biener <rguenther@suse.de>
25384 PR tree-optimization/88828
25385 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25386 (simplify_vector_constructor): ...here. Handle constants in
25389 2019-05-06 Richard Biener <rguenther@suse.de>
25391 PR tree-optimization/90328
25392 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25393 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25394 is valid in the loop nest before using it.
25395 (initialize_data_dependence_relation): Adjust.
25396 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25397 loop as loop-nest to dr_may_alias_p.
25399 2019-05-06 Richard Biener <rguenther@suse.de>
25401 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25403 2019-05-06 Richard Biener <rguenther@suse.de>
25405 PR tree-optimization/90316
25406 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25407 compute target on demand.
25408 (get_continuation_for_phi): Remove code walking stmts to
25409 get to a target virtual operand which could end up being
25412 2019-05-06 Martin Liska <mliska@suse.cz>
25415 * config/i386/i386-options.c (ix86_option_override_internal): Error only
25416 when -mabi is selected to a non-default version.
25418 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
25419 Martin Liska <mliska@suse.cz>
25421 * Makefile.in: Add lto-dump.texi.
25422 * cgraph.h: Add new functions get_visibility_string and
25423 get_symtab_type_string.
25424 * doc/gcc.texi: Include lto-dump section.
25425 * doc/lto-dump.texi: New file.
25426 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
25427 (parse_dump_option): Factor out this function.
25428 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
25429 (parse_dump_option): Export the function.
25430 * symtab.c (symtab_node::get_visibility_string): New function.
25431 (symtab_node::get_symtab_type_string): Likewise.
25433 2019-05-06 Martin Liska <mliska@suse.cz>
25435 * config/i386/i386-builtins.c: New file.
25436 * config/i386/i386-builtins.h: New file.
25437 * config/i386/i386-expand.c: New file.
25438 * config/i386/i386-expand.h: New file.
25439 * config/i386/i386-features.c: New file.
25440 * config/i386/i386-features.h: New file.
25441 * config/i386/i386-options.c: New file.
25442 * config/i386/i386-options.h: New file.
25443 * config.gcc: Add new files into extra_objs and
25445 * config/i386/i386.c: Split content of the file
25446 into newly introduced files.
25447 * config/i386/i386.h: Declare common variables
25449 * config/i386/t-i386: Define dependencies for new files.
25451 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
25454 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
25455 Restrict 'all' variant to 32-bit configurations.
25456 (unaligned_loadhiu): Likewise.
25457 (unaligned_storehi): Likewise.
25458 (unaligned_storesi): Likewise.
25459 (unaligned_loadhis): Disable when compiling for thumb1.
25461 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
25463 PR tree-optimization/90269
25464 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25467 2019-05-03 Martin Liska <mliska@suse.cz>
25469 * hash-map.h: Add is_empty function.
25470 * hash-set.h: Likewise.
25471 * hash-table.h: Likewise.
25472 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
25473 elements () == 0 (and similar usages).
25474 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
25475 * gimplify.c (gimplify_bind_expr): Likewise.
25476 (gimplify_switch_expr): Likewise.
25477 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
25478 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
25479 * postreload-gcse.c (dump_hash_table): Likewise.
25480 (gcse_after_reload_main): Likewise.
25481 * predict.c (combine_predictions_for_bb): Likewise.
25482 * tree-parloops.c (reduction_phi): Likewise.
25483 (separate_decls_in_region): Likewise.
25484 (transform_to_exit_first_loop): Likewise.
25485 (gen_parallel_loop): Likewise.
25486 (gather_scalar_reductions): Likewise.
25487 (try_create_reduction_list): Likewise.
25488 * var-tracking.c (dump_vars): Likewise.
25489 (emit_notes_for_changes): Likewise.
25490 (vt_emit_notes): Likewise.
25492 2019-05-03 Richard Biener <rguenther@suse.de>
25494 PR tree-optimization/90316
25495 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
25498 2019-05-03 Richard Biener <rguenther@suse.de>
25500 * tree-vect-stmts.c (get_group_load_store_type): Avoid
25501 peeling for gaps by loading only lower halves of vectors
25503 (vectorizable_load): Likewise.
25505 2019-05-03 Richard Biener <rguenther@suse.de>
25507 PR middle-end/89518
25508 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
25510 2019-05-03 Richard Biener <rguenther@suse.de>
25512 PR middle-end/87314
25513 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
25514 Handle STRING_CST vs DECL or STRING_CST.
25516 2019-05-03 Richard Biener <rguenther@suse.de>
25518 PR tree-optimization/88963
25519 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
25520 vector loads feeding only BIT_FIELD_REFs to component
25521 loads. Rewrite stores fed by CONSTRUCTORs to component
25524 2019-05-03 Jakub Jelinek <jakub@redhat.com>
25526 * opts.h (finish_options): Remove lang_mask argument.
25527 (print_help, help_option_argument): Declare.
25528 * opts.c (print_help): Remove forward declaration, no longer static.
25529 (finish_options): Remove lang_mask argument, don't call print_help
25531 * opts-global.c (decode_options): Adjust finish_option caller, call
25534 PR tree-optimization/90303
25535 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
25536 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
25538 2019-05-03 Richard Biener <rguenther@suse.de>
25540 PR tree-optimization/89698
25541 * gimple-fold.c (canonicalize_constructor_val): Early out
25542 for constants, handle unfolded INTEGER_CSTs as they appear in
25543 C++ virtual table ctors.
25545 2019-05-03 Richard Biener <rguenther@suse.de>
25547 * passes.c (execute_function_todo): Remove dead code.
25549 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25551 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25552 the internal register number, for any "real" register.
25554 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25556 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25557 correct numbers for TFHAR, TFIAR, TEXASR.
25559 2019-05-02 Richard Biener <rguenther@suse.de>
25561 PR tree-optimization/89653
25562 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25563 update-address-taken before the pass.
25564 * passes.def (pass_tree_loop_init): Put comment before it.
25566 2019-05-02 Richard Biener <rguenther@suse.de>
25568 PR tree-optimization/89509
25569 * tree-ssa-structalias.c (compute_dependence_clique): Look
25570 at the first subvar when determining whether it is restrict.
25572 2019-05-02 Richard Biener <rguenther@suse.de>
25574 PR tree-optimization/90273
25575 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25576 useless debug stmts.
25578 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25580 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25582 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25584 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25585 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25586 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25587 (vectorizable_reduction): Use the functions above to vectorize in a
25588 fully masked loop codes that don't have a conditional internal
25591 2019-05-02 Martin Liska <mliska@suse.cz>
25593 * cgraphclones.c: Call valid_attribute_p with 1 for
25595 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25596 it's for target attribute.
25597 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25598 Add new boolean argument.
25599 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25601 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25602 to ix86_valid_target_attribute_inner_p.
25603 (ix86_valid_target_attribute_p): Pass flags argument to
25604 ix86_valid_target_attribute_inner_p.
25605 (get_builtin_code_for_version): Use 0 as it's target attribute.
25607 2019-05-02 Martin Liska <mliska@suse.cz>
25609 * gcc.c (process_command): Add dummy file only
25611 * opts-global.c (decode_options): Pass lang_mask.
25612 * opts.c (print_help): New function.
25613 (finish_options): Print --help if help_option_argument
25615 (common_handle_option): Factor out content of OPT__help_
25617 * opts.h (finish_options): Add new argument.
25619 2019-05-02 Martin Liska <mliska@suse.cz>
25622 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25623 With -minline-all-stringops use inline expansion using 4B loop.
25624 * doc/invoke.texi: Document the change of
25625 -minline-all-stringops.
25627 2019-05-01 Jeff Law <law@redhat.com>
25629 PR tree-optimization/88797
25630 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25631 PHI feeds a conditional on the RHS of an assignment.
25633 2019-04-30 Andrew Waterman <andrew@sifive.com>
25634 Jim Wilson <jimw@sifive.com>
25636 * config/riscv/constraints.md (L): New.
25637 * config/riscv/predicates.md (lui_operand): New.
25638 (sfb_alu_operand): New.
25639 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25640 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25641 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25642 * config/riscv/risc.md (type): Add sfb_alu.
25643 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25644 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25645 (branch_zero<mode>): Delete.
25646 (mov<mode>cc): New.
25647 (mov<GPR:mode><X:mode>cc): Likewise.
25648 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25650 2019-04-30 Nathan Sidwell <nathan@acm.org>
25652 * tree.h (MARK_TS_EXP): New.
25654 2019-04-30 Martin Liska <mliska@suse.cz>
25656 * opts.c (enable_warning_as_error): Provide hints
25657 for unknown options.
25659 2019-04-30 Martin Liska <mliska@suse.cz>
25662 * doc/invoke.texi: Add missing dash for gas-locview-support
25663 and gno-as-locview-support.
25665 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25668 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25669 whitespace at the start of target attribute string.
25671 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25674 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25675 Define __ARM_FEATURE_ATOMICS.
25677 2019-04-30 Martin Liska <mliska@suse.cz>
25679 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25680 into built_in_function enum. Remove code for endp == 2 and
25681 use BUILT_IN_* constants.
25682 (gimple_fold_builtin): Call the function with fcode.
25684 2019-04-30 Martin Liska <mliska@suse.cz>
25686 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25687 DECL_FUNCTION_CODE into ix86_builtins enum before
25688 the switch statement.
25690 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25692 PR tree-optimization/89475
25693 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25696 2019-04-30 Martin Liska <mliska@suse.cz>
25698 PR translation/90274
25699 * opts.c (print_filtered_help): Wrap string in _(...).
25701 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25703 PR tree-optimization/90240
25705 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25707 PR tree-optimization/90078
25708 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25709 checks for infinite_cost overflow.
25711 2019-04-29 Jeff Law <law@redhat.com>
25713 * passes.def: Move -Wrestrict pass after copy propagation.
25715 2019-04-29 Maya Rashish <coypu@sdf.org>
25717 * config.gcc (default_gnu_indirect_function): Default to yes
25718 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25719 sparc*-*-netbsd*, x86_64-*-netbsd*.
25721 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25723 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25724 where cond2 is NE_EXPR.
25725 (is_value_included_in): Update comment.
25727 2019-04-29 Richard Biener <rguenther@suse.de>
25729 PR tree-optimization/90278
25730 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25731 EH on comparison simplification.
25733 2019-04-29 Jason Merrill <jason@redhat.com>
25735 PR c++/82081 - tail call optimization breaks noexcept
25736 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25737 nothrow function to a might-throw function into a tail call.
25739 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25741 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25742 (DDR_INNER_LOOP): Likewise.
25743 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25744 (initialize_data_dependence_relation): Likewise.
25745 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25747 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25749 PR rtl-optimization/90257
25750 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25754 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25758 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25761 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25764 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25766 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25768 2019-04-29 Richard Biener <rguenther@suse.de>
25770 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25773 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25775 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25776 varasm.h, and netbsd-protos.h.
25778 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25781 * config/i386/i386-protos.h (ix86_data_alignment): Change
25782 the second argument type to unsigned int.
25783 * config/i386/i386.c (ix86_data_alignment): Change "align"
25784 argument type to unsigned int.
25786 2019-04-27 Martin Liska <mliska@suse.cz>
25788 PR middle-end/90258
25789 * opt-suggestions.c (option_proposer::build_option_suggestions):
25790 When get_valid_option_values returns empty values, add the
25791 misspelling candidate.
25793 2019-04-26 Jim Wilson <jimw@sifive.com>
25795 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25797 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25798 Pass orig_mode to riscv_build_integer.
25799 (riscv_split_integer): Pass mode to riscv_move_integer.
25800 (riscv_legitimize_const_move): Likewise.
25801 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25802 promoted_mode. Replace force_reg call with code to load constant into
25803 promoted reg and then subreg it for the store.
25804 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25805 riscv_move_integer.
25807 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25809 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25812 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25814 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25815 commentary about the encoding of precision.
25817 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25819 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25820 * config/i386/t-freebsd64: New file.
25821 * config.gcc: Add the t-freebsd64 for multilib support.
25823 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25825 * doc/extend.texi (vector_size): Add missing comma after @xref.
25827 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25829 * BASE-VER: Set to 10.0.0.
25831 2019-04-25 Richard Biener <rguenther@suse.de>
25833 PR middle-end/89765
25834 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25835 VIEW_CONVERT_EXPR into one operating on an rvalue.
25837 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25840 * config/i386/i386.c (feature_priority): Moved to file scope.
25841 (processor_features): Likewise.
25842 (processor_model): Likewise.
25843 (_arch_names_table): Likewise.
25844 (arch_names_table): Likewise.
25845 (_feature_list): Removed.
25846 (feature_list): Likewise.
25847 (_isa_names_table): Moved to file scope. Add priority.
25848 (isa_names_table): Likewise.
25849 (get_builtin_code_for_version): Replace feature_list with
25850 isa_names_table. Update error message for P_ZERO priority.
25852 2019-04-25 Richard Biener <rguenther@suse.de>
25854 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25855 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25857 2019-04-24 Jeff Law <law@redhat.com>
25859 PR tree-optimization/90037
25860 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25861 * passes.def: Replace all instance of phi-only cprop with the
25862 lattice propagator. Move propagation pass from after erroneous
25863 path isolation to before erroneous path isolation.
25864 * tree-ssa-phionlycprop.c: Remove.
25866 2019-04-24 Richard Biener <rguenther@suse.de>
25868 PR middle-end/90213
25869 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25870 by size and BITS_PER_UNIT on poly-wide-ints.
25872 2019-04-25 Richard Biener <rguenther@suse.de>
25874 PR middle-end/90194
25875 * match.pd: Add pattern to simplify view-conversion of an
25878 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25880 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25881 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25882 for Go on 32 bit AIX.
25883 * config/rs6000/aix72.h: Likewise.
25885 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25888 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25889 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25891 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25894 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25895 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25896 for restored hard frame pointer.
25897 (s390_sched_dependencies_evaluation): Implement new target hook.
25898 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25900 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25902 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25903 * config/arc/arc.c (arc_init): Cleanup warning message.
25904 (arc_override_options): Likewise.
25906 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25909 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25910 a register if both if_true and if_false are MEMs.
25912 PR tree-optimization/90208
25913 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25914 after labels of new_bb, not before them.
25916 PR tree-optimization/90211
25917 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25918 which are not SSA_NAMEs.
25920 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25922 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25924 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25926 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25928 PR rtl-optimization/87979
25929 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25932 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25934 PR rtl-optimization/84032
25935 * modulo-sched.c (ps_insn_find_column): Change condition so that
25936 branch will always be the last insn in a row inside partial
25939 2019-04-23 Richard Biener <rguenther@suse.de>
25942 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25943 dest_single_pred_p argument.
25944 (remove_forwarder_block): Adjust.
25945 (remove_forwarder_block_with_phi): Likewise.
25947 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25948 Bernd Edlinger <bernd.edlinger@hotmail.de>
25949 Jakub Jelinek <jakub@redhat.com>
25952 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25953 if used with general-regs-only.
25954 (arm_conditional_register_usage): Don't add non-general regs if
25956 (arm_valid_target_attribute_rec): Handle general-regs-only.
25957 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25959 (TARGET_HARD_FLOAT_SUB): Define.
25960 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25961 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25962 (TARGET_REALLY_IWMMXT2): Likewise.
25963 * config/arm/arm.opt: Add -mgeneral-regs-only.
25964 * doc/extend.texi: Document ARM general-regs-only target.
25965 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25967 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25969 PR tree-optimization/90078
25970 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25971 checks for infinite_cost overflow.
25973 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25975 PR tree-optimization/90021
25976 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25977 and check univariate against it.
25978 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25979 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25981 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25985 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25988 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25991 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25993 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25995 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25997 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25998 names using operand format, rather than hard-wired.
25999 (speculation_barrier): Likewise.
26001 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26003 PR tree-optimization/88055
26004 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26005 (gen_one_condition): Use it if !HONOR_NANS.
26007 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26009 PR middle-end/90139
26010 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26011 assign_temp instead of gen_reg_rtx.
26013 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26015 PR translation/90118
26016 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26017 Add missing space before %<.
26019 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26021 PR rtl-optimization/87871
26022 * ira-lives.c (make_object_dead): Don't add conflicts to
26023 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26025 2019-04-18 Martin Sebor <msebor@redhat.com>
26027 PR middle-end/89797
26028 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26029 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26030 assuming type size fits in SHWI.
26032 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26035 * ipa-inline.c (flatten_function): New parameter UPDATE.
26036 (ipa_inline, early_inliner): Use it.
26038 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26040 * fold-const.c (int_const_binop): Return early on failure.
26042 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26044 PR middle-end/85164
26045 * combine.c (force_int_to_mode): Cast the argument rather than
26046 the result of known_alignment.
26047 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26049 2019-04-18 Richard Biener <rguenther@suse.de>
26052 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26054 (remove_forwarder_block): ... here.
26055 (remove_forwarder_block_with_phi): Also move debug stmts here.
26057 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26059 PR translation/79183
26060 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26061 inform where appropriate.
26063 2019-04-18 Richard Biener <rguenther@suse.de>
26065 * tree.c (get_qualified_type): Put found type variants at the
26066 head of the variant list.
26068 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26070 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26072 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26075 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26076 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26077 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26078 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26079 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26081 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26083 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26084 even for allocno's with no conflicts.
26085 (print_conflicts): Print an extra newline.
26087 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26089 * auto-inc-dec.c (attempt_change): Set the alignment of the
26090 temporary memory to that of the original.
26092 2019-04-17 Joao Moreira <jmoreira@suse.de>
26094 * targhooks.c (default_print_patchable_function_entry): Emit
26095 __patchable_function_entries section with writable flags to allow
26096 relocation resolution.
26098 2019-04-17 Jonny Grant <jg@jguk.org>
26100 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26102 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26104 PR middle-end/90095
26105 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26106 on lowpart SUBREGs.
26108 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26110 * config/arc/arc.c (arc_init): Format diagnostic string.
26111 (arc_override_options): Likewise.
26112 (check_if_valid_regno_const): Likewise.
26113 (arc_reorg): Likewise.
26115 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26118 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26120 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26122 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26123 (*movdi_update1): Use Pmode.
26124 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26125 (movdi_<mode>_update_stack): Rename to ...
26126 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26128 (*movsi_update1): Use Pmode.
26129 (*movsi_update2): Use Pmode.
26130 (movsi_update): Rename to ...
26131 (movsi_<mode>_update): ... this. Use Pmode.
26132 (movsi_update_stack): Fix condition.
26133 (*movhi_update1): Use Pmode. Fix argument to
26134 avoiding_indexed_address_p.
26135 (*movhi_update2): Ditto.
26136 (*movhi_update3): Ditto.
26137 (*movhi_update4): Ditto.
26138 (*movqi_update1): Ditto.
26139 (*movqi_update2): Ditto.
26140 (*movqi_update3): Ditto.
26141 (*movsf_update1, *movdf_update1): Merge, rename to...
26142 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26143 avoiding_indexed_address_p. Add "size" attribute.
26144 (*movsf_update2, *movdf_update2): Merge, rename to...
26145 (*mov<mode>_update2): This. Ditto.
26146 (*movsf_update3): Use Pmode. Fix argument to
26147 avoiding_indexed_address_p.
26148 (*movsf_update4): Ditto.
26149 (allocate_stack): Simplify condition. Adjust pattern names.
26151 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26154 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26155 whitespace at the start of target attribute string.
26157 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26160 * config/rs6000/power9.md: Add store forwarding bypass.
26162 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26165 * valtrack.c (dead_debug_insert_temp): Reset debug references
26166 to the return value of a call being removed.
26168 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26170 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26171 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26172 implement target hook.
26173 (arc_memory_move_cost): New function.
26174 (TARGET_REGISTER_MOVE_COST): Define.
26175 (TARGET_MEMORY_MOVE_COST): Likewise.
26176 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26177 (MEMORY_MOVE_COST): Likewise.
26179 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26181 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26182 (sibcall_value_insn): Likewise.
26183 * config/arc/constraints.md (Rs5): Remove.
26185 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26187 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26188 for last two fake registers.
26189 (arc_conditional_register_usage): Make sure fake frame and arg
26190 pointer regs are in general regs class.
26191 (FRAME_POINTER_MASK): Remove.
26192 (RETURN_ADDR_MASK): Remove.
26193 (arc_must_save_register): Use hard frame regnum.
26194 (frame_restore_reg): Use hard_frame_pointer_rtx.
26195 (arc_save_callee_saves): Likewise.
26196 (arc_restore_callee_saves): Likewise.
26197 (arc_save_callee_enter): Likewise.
26198 (arc_restore_callee_leave): Likewise.
26199 (arc_save_callee_milli): Likewise.
26200 (arc_eh_return_address_location): Likewise.
26201 (arc_check_multi): Use hard frame regnum.
26202 (arc_can_eliminate): Likewise.
26203 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
26204 for register allocator.
26205 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
26206 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
26207 (FRAME_POINTER_REGNUM): Change it to a fake register.
26208 (HARD_FRAME_POINTER_REGNUM): Defined.
26209 (ARG_POINTER_REGNUM): Change it to a new fake register.
26210 (ELIMINABLE_REGS): Update.
26211 (REGISTER_NAMES): Update names.
26212 * config/arc/arc.md (LP_START): Remove.
26213 (LP_END): Likewise.
26214 (shift_si3_loop): Update pattern.
26216 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26218 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
26219 to avoid delay slot scheduling.
26220 (arc_must_save_register): Don't save SP.
26221 * config/arc/arc.md (stack_tie): Remove.
26222 (UNSPEC_ARC_STKTIE): Likewise.
26224 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
26225 Shiva Chen <shiva0217@gmail.com>
26227 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
26228 code gen with large shift amount.
26230 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
26232 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
26235 2019-04-16 Jakub Jelinek <jakub@redhat.com>
26238 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
26239 print -m64/-mx32/-m32 if it is true.
26240 (ix86_debug_options, ix86_function_specific_print): Pass true as
26241 ADD_ABI_P to ix86_target_string.
26242 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
26243 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
26244 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
26246 PR rtl-optimization/90082
26247 * dce.c (can_delete_call): New function.
26248 (deletable_insn_p, mark_insn): Use it.
26250 PR tree-optimization/90090
26251 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
26253 (is_division_by_square): Likewise. Formatting fix.
26255 2019-04-16 Richard Biener <rguenther@suse.de>
26257 PR tree-optimization/56049
26258 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
26259 equality check if alias-set zero will prevail.
26261 2019-04-15 Jeff Law <law@redhat.com>
26263 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
26264 size and alignment as unsigned.
26266 2019-04-15 Richard Biener <rguenther@suse.de>
26269 * tree-loop-distribution.c (destroy_loop): Preserve correct
26272 2019-04-15 Richard Biener <rguenther@suse.de>
26274 PR tree-optimization/90071
26275 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
26276 abnormal operands from def stmts.
26278 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
26280 PR rtl-optimization/89794
26281 * combine.c (count_auto_inc): New function.
26282 (try_combine): Count how many auto_inc expressions there were in the
26283 original instructions. Ensure we have the same number in the new
26284 instructions. Remove the code that tried to ensure auto_inc side
26285 effects on i1 and i0 are not lost.
26287 2019-04-15 Richard Biener <rguenther@suse.de>
26290 * tree.h (auto_var_p): Declare.
26291 * tree.c (auto_var_p): New function, split out from ...
26292 (auto_var_in_fn_p): ... here.
26293 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
26295 (new_var_info): Initialize it.
26296 (set_uids_in_ptset): Also set the shadow variable uid if required.
26297 (ipa_pta_execute): Postprocess points-to solutions assigning
26298 shadow variable uids for locals that may reach their containing
26299 function recursively.
26300 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
26301 assert but instead check whether the points-to solution is
26304 2019-04-15 Martin Jambor <mjambor@suse.cz>
26307 * cgraph.c (clone_of_p): Loop over clone chain for each step in
26310 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26312 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
26314 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26315 Kito Cheng <kito.cheng@gmail.com>
26316 Shiva Chen <shiva0217@gmail.com>
26318 * config/nds32/nds32-md-auxiliary.c
26319 (nds32_legitimize_pic_address): Use new PIC pattern.
26320 (nds32_legitimize_tls_address): Use new TLS pattern.
26321 (nds32_output_symrel): New.
26322 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
26323 (nds32_alloc_relax_group_id): Ditto.
26324 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
26325 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
26327 (nds32_group_tls_insn): Ditto.
26328 (nds32_group_float_insns): Ditto.
26329 * config/nds32/nds32.md (tls_le): New.
26332 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
26334 * configure: Add nds32 target for dwarf2 debug_line checking.
26335 * configure.ac: Regenerated.
26337 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
26340 * ipa-devirt.c (skip_in_fields_list_p): New.
26341 (odr_types_equivalent_p): Use it.
26343 2019-04-13 Jakub Jelinek <jakub@redhat.com>
26346 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
26347 instead of strncmp when checking for thumb and arm. Formatting fixes.
26349 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
26351 * doc/install.texi: Document --with-target-system-zlib.
26353 2019-04-12 Martin Sebor <msebor@redhat.com>
26359 * targhooks.c (default_vector_alignment): Avoid assuming
26360 argument fits in SHWI.
26361 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
26362 a shift expression.
26363 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
26365 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26367 PR rtl-optimization/89965
26368 * dce.c: Include rtl-iter.h.
26369 (struct check_argument_load_data): New type.
26370 (check_argument_load): New function.
26371 (find_call_stack_args): Check for loads from stack slots still tracked
26372 in sp_bytes and punt if any is found.
26374 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26376 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26378 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26379 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26381 2019-04-12 Martin Liska <mliska@suse.cz>
26383 PR middle-end/89970
26384 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26386 (separate_attrs): Handle multiple 'default's.
26387 (expand_target_clones): Rework error handling code.
26389 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26392 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26393 mode of vector rather than mode of destination for move instruction.
26394 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26395 Use QI inner mode with V16QI vector mode.
26397 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26400 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26401 "invalid %%t operand" in output_operand_lossage message.
26403 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26405 * config/s390/predicates.md (permute_pattern_operand): New
26407 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26408 operand for the permute pattern.
26409 ("*vec_perm<mode>"): New insn definition.
26410 ("bswap<mode>"): Generate the permute pattern operand in the
26411 expander and perform the operand reloads for pre arch13 level
26413 ("*bswap<mode>_emu"): Rename to ...
26414 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
26415 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
26416 Add the USE operand for the permute pattern.
26417 ("*vec_set_bswap_vec<mode>"): Likewise.
26419 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26422 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
26423 and gcc_unreachable if it fails, just call tree_to_uhwi which
26424 verifies that too. Test TREE_CHAIN instead of list_length > 1.
26425 Start warning message with a lower-case letter. Formatting fixes.
26427 PR rtl-optimization/90026
26428 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
26429 successors, look for BARRIERs inside of the whole BB_FOOTER chain
26430 rather than just at the start of it. If e->src BB_FOOTER is not NULL
26431 in cfglayout mode, use emit_barrier_after_bb.
26433 2018-04-11 Steve Ellcey <sellcey@marvell.com>
26435 PR rtl-optimization/87763
26436 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
26439 2019-04-11 Tom de Vries <tdevries@suse.de>
26441 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
26442 max macro using statement expression.
26444 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
26446 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
26447 * xcoffout.c (xcoff_private_rodata_section_name): Define.
26448 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
26449 read_only_private_data_section using xcoff_private_rodata_section_name.
26450 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
26452 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
26455 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
26457 2019-04-11 Jakub Jelinek <jakub@redhat.com>
26459 PR rtl-optimization/89965
26460 * dce.c (sp_based_mem_offset): New function.
26461 (find_call_stack_args): Use sp_based_mem_offset.
26463 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
26465 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
26467 2019-04-11 Richard Biener <rguenther@suse.de>
26469 PR tree-optimization/90020
26470 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
26471 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
26472 * tree-ssa-pre.c (compute_avail): Use it to not put
26473 possibly trapping references after a call that might not
26474 return into EXP_GEN.
26475 * gcse.c (compute_hash_table_work): Do not elide
26476 marking a block containing a call if the call might not
26479 2019-04-11 Richard Biener <rguenther@suse.de>
26481 PR tree-optimization/90018
26482 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
26483 Test both SLP and interleaving variants.
26485 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
26487 * config/s390/8561.md: New file.
26488 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26489 Add arch13 cpu model.
26490 * config/s390/s390-opts.h (enum processor_type): Likewise.
26491 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
26492 (s390_get_unit_mask): Likewise.
26493 (s390_is_fpd): Likewise.
26494 (s390_is_fxd): Likewise.
26495 * config/s390/s390.h (s390_tune_attr): Likewise.
26496 * config/s390/s390.md: Include arch13 pipeline description.
26497 * config/s390/s390.opt: Add arch13.
26499 2018-04-10 Steve Ellcey <sellcey@marvell.com>
26501 PR rtl-optimization/87763
26502 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
26504 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
26506 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
26508 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
26509 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
26510 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
26511 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
26513 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
26515 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
26516 "Although" in -fipa-icf documentation.
26518 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
26519 of using multiple -g options.
26521 2019-04-10 Martin Liska <mliska@suse.cz>
26523 PR gcov-profile/89959
26524 * doc/gcov.texi: Make documentation of -x option
26527 2019-04-10 Richard Biener <rguenther@suse.de>
26529 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
26531 (DR_GROUP_SAME_DR_STMT): Remove.
26532 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
26533 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
26534 replace with assert.
26535 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
26536 (vect_record_grouped_load_vectors): Remove unreachable code.
26538 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
26541 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
26542 obsolete reference to N.
26544 2019-04-10 Jakub Jelinek <jakub@redhat.com>
26546 PR middle-end/90025
26547 * expr.c (store_expr): Set properly size on the MEM passed to
26551 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26552 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26553 translation is needed, and when translation is needed, only append
26554 ... if the string length is hostsz or more bytes long. Avoid using
26557 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26560 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26561 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26563 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26564 differences directly.
26565 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26567 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26569 PR translation/90011
26570 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26572 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26574 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26575 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26576 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26577 trailing space from -gsplit-dwarf diagnostics.
26579 PR tree-optimization/89998
26580 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26581 instead of integer_type_node if possible, don't add ranges if return
26582 type is not compatible with int.
26583 * gimple-fold.c (gimple_fold_builtin_sprintf,
26584 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26587 2019-04-09 Martin Liska <mliska@suse.cz>
26589 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26590 * doc/install.texi: Document the new config.
26592 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26594 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26595 use gimple_expr_type for load and store calls. Skip over the
26596 condition argument in a conditional internal function.
26597 Protect use of TREE_INT_CST_LOW.
26599 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26602 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26603 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26604 trailing period from it too.
26606 2019-04-08 wu yuan <wuyuan5@huawei.com>
26608 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26609 * config/aarch64/aarch64.md: Add "tsv110.md".
26610 * config/aarch64/tsv110.md: New file.
26612 2019-04-08 Richard Biener <rguenther@suse.de>
26614 PR tree-optimization/90006
26615 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26618 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26621 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26623 (fma_root_node): Likewise.
26624 (func_fma_steering): Likewise.
26626 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26628 PR rtl-optimization/89865
26629 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26631 PR rtl-optimization/89865
26632 * config/i386/i386.md
26633 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26634 numbers not to clash with the additional operands[4].
26635 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26636 with extra register copy in the middle.
26638 2019-04-08 Martin Liska <mliska@suse.cz>
26640 PR gcov-profile/89961
26641 * doc/gcov.texi: Document data_file.
26642 * gcov.c (generate_results): Add data_info into JSON output.
26644 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26646 PR tree-optimization/89725
26647 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26648 loop's chrec as invariant symbol.
26649 * tree-chrec.h (chrec_contains_symbols): New parameter.
26650 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26651 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26652 function of loops not in DDR's loop_nest.
26653 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26655 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26658 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26661 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26664 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26665 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26667 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26669 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26670 targetm.fixed_condition_code_regs.
26672 2019-04-05 Richard Biener <rguenther@suse.de>
26676 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26677 debug bind stmts but reset them if they are not valid at the
26680 2019-04-05 Martin Liska <mliska@suse.cz>
26682 PR translation/89936
26683 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26684 order to wrap keywords or arguments.
26685 * collect2.c (main): Likewise.
26686 (scan_prog_file): Likewise.
26687 (scan_libraries): Likewise.
26688 * common/config/riscv/riscv-common.c
26689 (riscv_subset_list::parsing_subset_version): Likewise.
26690 (riscv_subset_list::parse_std_ext): Likewise.
26691 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26693 * config/arm/arm.c (arm_option_override): Likewise.
26694 * config/cris/cris.c (cris_print_operand): Likewise.
26695 * config/darwin-c.c (darwin_pragma_options): Likewise.
26696 (darwin_pragma_unused): Likewise.
26697 (darwin_pragma_ms_struct): Likewise.
26698 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26699 * config/i386/i386.c (print_reg): Likewise.
26700 (ix86_print_operand): Likewise.
26701 * config/i386/xm-djgpp.h: Likewise.
26702 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26703 * config/m32c/m32c.c (m32c_option_override): Likewise.
26704 * config/msp430/msp430.c (msp430_option_override): Likewise.
26705 * config/nds32/nds32.c (nds32_option_override): Likewise.
26706 * config/nvptx/mkoffload.c (main): Likewise.
26707 * config/rx/rx.c (rx_print_operand): Likewise.
26708 (valid_psw_flag): Likewise.
26709 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26710 (vms_pragma_nomember_alignment): Likewise.
26711 (vms_pragma_extern_model): Likewise.
26712 * lto-wrapper.c (compile_offload_image): Likewise.
26713 * omp-offload.c (oacc_parse_default_dims): Likewise.
26714 * symtab.c (symtab_node::verify_base): Likewise.
26715 * tlink.c (recompile_files): Likewise.
26716 (start_tweaking): Likewise.
26717 * tree-profile.c (parse_profile_filter): Likewise.
26719 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26721 PR tree-optimization/89956
26722 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26723 multiple negates of the same value.
26725 2019-04-04 Martin Sebor <msebor@redhat.com>
26727 PR middle-end/89957
26728 PR middle-end/89911
26729 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26730 have the same precision since the function crashes otherwise.
26731 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26732 has non-zero arguments.
26734 2019-04-04 Martin Sebor <msebor@redhat.com>
26736 PR middle-end/89934
26737 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26738 out if the number of arguments is less than expected.
26740 2019-04-04 Jeff Law <law@redhat.com>
26742 PR rtl-optimization/89399
26743 * ree.c (combine_set_extension): Use single_set rather than
26744 digging into PATTERN for items on the candidate list.
26745 (combine_reaching_defs): Likewise.
26747 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26749 PR rtl-optimization/46590
26750 * loop-invariant.c (find_defs): Move df_remove_problem and
26751 df_process_deferred_rescans to move_invariants.
26752 Move df_live_add_problem and df_live_set_all_dirty calls
26753 to move_invariants.
26754 (move_invariants): Likewise.
26755 (move_loop_invariants): Likewise, making the df_live calls
26756 conditional on -O. Remove the problem again if we added it
26759 2019-04-03 qing zhao <qing.zhao@oracle.com>
26761 PR tree-optimization/89730
26762 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26763 -flive-patching=inline-only-static.
26764 (can_inline_edge_by_limits_p): Add the checking for
26765 -flive-patching=inline-only-static and grant always_inline
26766 even when -flive-patching=inline-only-static is specified.
26768 2019-04-03 Jeff Law <law@redhat.com>
26770 PR rtl-optimization/81025
26771 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26773 2019-04-03 Richard Biener <rguenther@suse.de>
26775 PR tree-optimization/84101
26776 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26777 regs.h for hard_regno_nregs.
26778 (cfun_returns): New helper.
26779 (vect_model_store_cost): When vectorizing a store to a decl
26780 we return and the function ABI returns in a multi-reg location
26781 account for the possible spilling that will happen.
26783 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26785 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26786 displacement addresses for vector mode operands.
26788 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26790 * config/arc/arc.c (GMASK_LEN): Define.
26791 (arc_restore_callee_saves): Restore first blink when
26794 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26796 * doc/extend.texi: Add deprecated comment on sign-return-address
26797 function attribute and add mbranch-protection.
26798 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26800 2019-04-03 Richard Biener <rguenther@suse.de>
26803 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26804 the all target phony.
26806 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26810 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26811 Return false for variable DImode shifts.
26812 (dimode_scalar_chain::compute_convert_gain): Do not handle
26813 register count operand in variable DImode shifts.
26814 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26815 count argument of a variable shift instruction to a vector register.
26816 (dimode_scalar_chain::convert_reg): Remove support to convert
26817 count argument of a variable shift instruction.
26819 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26821 PR rtl-optimization/84206
26822 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26823 iterating over loop headers.
26825 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26827 PR rtl-optimization/85876
26828 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26829 beyond the original fence.
26831 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26833 * config.gcc: Mark spu* targets as deprecated/obsolete.
26835 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26837 * config/s390/s390-builtin-types.def: New builtin function type
26838 definitions. Remove unused types.
26839 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26840 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26841 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26842 overloaded builtins.
26843 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26844 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26845 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26846 (vec_double, vec_signed, vec_unsigned): Define to use the new
26847 overloaded builtins.
26848 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26851 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26853 * config/s390/s390-builtin-types.def: New builtin function type
26855 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26856 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26857 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26858 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26859 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26860 constant definitions.
26861 * config/s390/vecintrin.h (vec_search_string_cc)
26862 (vec_search_string_until_zero_cc): New builtin name definitions.
26863 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26865 ("vec_vstrs<mode>"): New insn definition.
26867 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26869 * config/s390/s390-builtin-types.def: Add new builtin function
26871 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26872 New overloaded builtins.
26873 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26875 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26876 (UNSPEC_VEC_SLDBYTE): ... this.
26877 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26878 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26880 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26881 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26882 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26884 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26886 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26887 New insn definition.
26888 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26889 * config/s390/vector.md (V_HW_HSD): ... here.
26891 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26893 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26894 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26895 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26896 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26897 New insn definitions.
26899 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26901 * config/s390/s390-builtin-types.def: Add new builtin function type.
26902 * config/s390/s390-builtins.def: Add overloaded builtin
26903 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26904 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26905 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26906 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26907 ("eltswap<mode>"): New expander.
26908 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26911 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26913 * config/s390/s390-builtin-types.def: Add new builtin function types.
26914 * config/s390/s390-builtins.def: Add overloaded builtin
26915 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26917 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26918 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26919 ("bswap<mode>"): New expander.
26920 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26922 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26924 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26925 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26926 vector builtin version number in __VEC__.
26928 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26930 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26932 (SFSI): New mode attribute.
26933 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26934 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26936 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26937 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26938 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26939 ("floatsi<mode>2"): Add wcefb instruction.
26941 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26943 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26944 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26946 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26947 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26948 support 32 bit fp-int conversions. Rename to ...
26949 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26950 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26951 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26952 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26955 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26957 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26958 if-then-else constructs if we can use the select instruction.
26959 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26961 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26963 * config/s390/s390.md ("*popcountdi_arch13_cc")
26964 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26966 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26967 Append _z196 to make it ...
26968 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26969 ("popcounthi2_z196"): ... this.
26970 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26971 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26973 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26975 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26976 certain compares for arch13 in order to make use of the condition
26977 code result produced by the new instructions.
26978 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26979 nxrk, and nxgrk instruction patterns.
26980 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26981 (inv_no): Add new code iterator together with some attributes.
26982 ("*andc_split_<mode>"): Disable splitter for arch13.
26983 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26984 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26985 ("*<ANDOR:bitops_name>c<GPR:mode>")
26986 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26987 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26988 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26989 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26991 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26993 * common/config/s390/s390-common.c (processor_flags_table): New
26995 * config.gcc: Support arch13 with the --with-arch= configure flag.
26996 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26997 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26998 * config/s390/s390.c (s390_get_sched_attrmask)
26999 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27000 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27001 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27002 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27003 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27005 * config/s390/s390.opt: Support arch13 as processor type in
27006 command line options.
27008 2019-04-02 Martin Liska <mliska@suse.cz>
27010 PR translation/89912
27011 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27012 Fix param description of graphite-max-arrays-per-scop.
27014 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27016 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27017 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27018 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27020 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27022 PR rtl-optimization/85412
27023 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27024 sel_sched_region_1, not after.
27026 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27028 PR rtl-optimization/86928
27029 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27030 compute_live if necessary.
27031 (sel_redirect_edge_and_branch): Likewise.
27033 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27035 PR rtl-optimization/89865
27036 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27037 register if it is a part of small class.
27039 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27041 PR rtl-optimization/87273
27042 * sel-sched-ir.c (merge_fences): Remove assert.
27044 2019-04-01 Richard Biener <rguenther@suse.de>
27046 PR tree-optimization/46590
27047 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27048 (dom_walker::m_reachability): Add in place of...
27049 (dom_walker::m_skip_unreachable_blocks): ...this.
27050 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27051 Move complex initialization ...
27052 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27053 lazily and initialize edge flags on each invocation.
27054 (dom_walker::bb_reachable): Use m_reachability.
27056 2019-04-01 Martin Liska <mliska@suse.cz>
27059 * opt-suggestions.c (option_proposer::build_option_suggestions):
27060 Add variant without any argument in order to provide better
27063 2019-04-01 Richard Biener <rguenther@suse.de>
27066 * gimple.c: Include langhooks.h.
27067 (gimple_get_alias_set): Treat enumeral types as the underlying
27070 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27071 Eric Botcazou <ebotcazou@adacore.com>
27073 PR rtl-optimization/89862
27074 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27075 that operates on the full registers for WORD_REGISTER_OPERATIONS
27078 2019-03-29 Jim Wilson <jimw@sifive.com>
27080 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27081 Clear MASK_RVC and then set if C subset supported.
27083 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27086 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27087 non-addressable complit into its initializer if it is volatile.
27089 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27091 * opts-common.c (integral_argument): Set errno properly in one case.
27093 2019-03-29 Martin Liska <mliska@suse.cz>
27095 * doc/invoke.texi: Remove -Wchkp from documentation.
27097 2019-03-29 Martin Liska <mliska@suse.cz>
27099 * dbgcnt.c (print_limit_reach): New function.
27102 2019-03-29 Martin Liska <mliska@suse.cz>
27104 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27105 (dbg_cnt_process_opt): Parse first tokens aas
27106 dbg_cnt_process_single_pair is also using strtok.
27108 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27110 PR rtl-optimization/87485
27111 * function.c (expand_function_end): Move stack_protect_epilogue
27112 before loading of return value into hard register(s).
27114 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27116 PR middle-end/89621
27117 * tree-inline.h (struct copy_body_data): Add
27118 dont_remap_vla_if_no_change flag.
27119 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27120 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27121 and remap_type_2 returns false.
27122 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27123 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27124 only from where it is copied to nested contexts.
27126 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27129 * config/i386/i386.md (RMW operation with LEA peephole):
27130 Use LEAMODE mode attribute instead of SWI mode iterator for
27133 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27136 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27137 Also process XEXP (src, 0) of a shift insn.
27139 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27141 PR middle-end/89725
27142 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27143 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27145 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27147 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27149 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27150 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27151 immediately after first one with df_analyze in between, but rather
27152 process all bbs, queueing ones that need second pass in a worklist,
27153 df_analyze, process queued debug insn changes and if second pass is
27154 needed, process bbs from worklist, df_analyze, process queued debug
27157 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27158 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27159 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27161 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27164 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27167 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27170 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27171 function for 32-bit MS_ABI.
27172 (function_value_ms_32): New function.
27174 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27176 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27177 (movdi): Call gen_movdi_symbol_save_scc.
27178 (gen_movdi_symbol_save_scc): New insn and split.
27180 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27182 PR rtl-optimization/89313
27183 * function.c (matching_constraint_num): New static function.
27184 (match_asm_constraints_1): Use it. Fixup white space and comment.
27185 Don't replace inputs with non-matching constraints which conflict
27186 with early clobber outputs.
27188 2019-03-27 Jeff Law <law@redhat.com>
27190 PR rtl-optimization/87761
27191 PR rtl-optimization/89826
27192 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27194 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27195 note problem to get REG_DEAD/REG_UNUSED notes updated.
27197 2019-03-27 Richard Biener <rguenther@suse.de>
27199 PR tree-optimization/89463
27200 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
27201 queue edges to remove.
27202 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
27203 dead stmts. Delay edge removal until PHIs are removed to
27204 make debug-stmt creation not confused by seemingly degenerate
27207 2019-03-27 Alan Modra <amodra@gmail.com>
27209 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
27211 * config/rs6000/darwin.h: Likewise.
27212 * config/rs6000/rs6000.c: Likewise.
27214 2019-03-27 Alan Modra <amodra@gmail.com>
27216 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
27217 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
27219 2019-03-26 Andrew Waterman <andrew@sifive.com>
27220 Jim Wilson <jimw@sifive.com>
27222 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
27223 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
27224 (generic_idivdi, generic_fmul_single, generic_fmul_double)
27225 (generic_fdiv, generic_fsqrt): Add check for generic tune.
27226 (generic_alu): Add auipc to type list.
27227 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
27228 (riscv_microarchitecture): Declare.
27229 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
27230 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
27232 (riscv_microarchitecture): New.
27233 (sifive_7_tune_info): New.
27234 (riscv_cpu_info_table): Add microarchitecture value for rocket and
27235 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
27237 (riscv_store_data_bypass_p): New.
27238 (riscv_option_override): Set riscv_microarchitecture from
27239 cpu->microarchitecture.
27240 * config/riscv/riscv.md: Include sifive-7.md.
27243 (auipc<mode>): Change type to auipc.
27244 (restore_stack_nonlocal): New.
27245 * config/riscv/sifive-7.md: New.
27246 * doc/invoke.texi (RISC-V Options): Update mtune docs.
27248 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
27251 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
27252 Also process XEXP (src, 0) of a shift insn.
27254 2019-03-26 Richard Biener <rguenther@suse.de>
27256 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
27257 (copy_debug_stmt): Likewise.
27258 (expand_call_inline): Likewise.
27259 (copy_bb): Avoid redundant lookup & set of gimple_block.
27260 * gimple-low.c (lower_gimple_return): Likewise.
27261 (lower_builtin_setjmp): Likewise.
27263 2019-03-26 Jakub Jelinek <jakub@redhat.com>
27265 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
27266 is constant 0, turn into static const data member initialized to false.
27267 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
27268 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
27270 2019-03-26 Jason Merrill <jason@redhat.com>
27271 Jakub Jelinek <jakub@redhat.com>
27273 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
27275 (mem_alloc_description::release_object_overhead): Fix comment typos.
27276 * hash-table.h (hash_table::~hash_table): Call
27277 release_instance_overhead only if m_entries is non-NULL, otherwise
27278 call unregister_descriptor.
27280 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
27282 PR tree-optimization/81740
27283 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27284 In case of outer loop vectorization, check for backward dependence
27285 at the inner loop if outer loop dependence is reversed.
27287 2019-03-26 Alan Modra <amodra@gmail.com>
27289 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
27290 rs6000_vector_mem init. Correct wI and wJ comment.
27292 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
27294 PR rtl-optimization/88347
27295 PR rtl-optimization/88423
27296 * sched-deps.c (sched_analyze_insn): Take into account that for
27297 tablejumps the barrier appears after a label and a jump_table_data.
27299 2019-03-25 Martin Sebor <msebor@redhat.com>
27302 * c-common.c (check_user_alignment): Rename local. Correct maximum
27303 alignment in diagnostic. Avoid assuming argument fits in SHWI,
27304 convert it to UHWI when it fits.
27306 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
27309 * dwarf2out.c (premark_used_variables): New function.
27310 (prune_unused_types_walk): Do not mark not premarked external
27312 (prune_unused_types): Call premark_used_variables.
27314 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
27316 PR rtl-optimization/89676
27317 * lra-constraints.c (curr_insn_transform): Do match reload for
27318 early clobbers when the match was successful only for different
27321 2019-03-25 Martin Sebor <msebor@redhat.com>
27323 * doc/extend.texi (Common Type Attributes): Document vector_size.
27324 (Common Variable Attributes): Mention size constraint. Correct
27326 (Vector Extensions): Use @dfn when defining bas type. Clarify
27327 base type and size constraints.
27329 2019-03-25 Richard Biener <rguenther@suse.de>
27331 PR tree-optimization/89789
27332 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
27333 changes from non-undefined back to undefined.
27335 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
27337 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
27338 heap string and a gc string, but since this variable is unknown to
27339 ggc the gc string might get reused and corrupted. Fixed by always
27340 using a heap string.
27342 2019-03-25 Richard Biener <rguenther@suse.de>
27344 PR tree-optimization/89779
27345 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
27346 to remove IV defs, delay actual removal.
27347 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
27348 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
27349 very end, properly also reset loop control IV information.
27351 2019-03-25 Richard Biener <rguenther@suse.de>
27353 PR tree-optimization/89802
27354 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
27355 move EH data to folded stmt.
27357 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27359 * config/s390/s390-builtin-types.def: Remove few unused types and
27360 fix sort order for others.
27362 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27364 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
27365 expected and found types with -mdebug during builtin matching.
27367 2019-03-25 Richard Biener <rguenther@suse.de>
27369 PR middle-end/89790
27370 * fold-const.c (operand_equal_p): Revert last change with
27373 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27375 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27376 notes for the result of the __tls_get_addr calls.
27377 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27379 2019-03-24 Jeff Law <law@redhat.com>
27381 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27383 PR rtl-optimization/87761
27384 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27385 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27387 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27388 rescans. Reprocess blocks as needed, calling df_analyze before
27389 reprocessing. Always call df_analyze before fixing up debug bind
27392 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27394 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27397 2019-03-22 Andrew Pinski <apinski@marvell.com>
27399 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27400 attrribute for uxtw.
27402 2019-03-26 Jeff Law <law@redhat.com>
27404 PR rtl-optimization/87761
27405 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27406 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27407 (mips_split_move): Accept new INSN argument. Try to forward SRC
27408 into the next instruction.
27409 (mips_split_move_insn): Pass INSN through to mips_split_move.
27411 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
27413 PR rtl-optimization/89676
27414 * lra-constraints.c (curr_insn_transform): Do match reload for
27415 early clobbers even if the match was successful.
27417 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27420 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
27422 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
27424 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
27426 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27428 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
27429 <avx512>_fmsub_<mode>_mask3<round_name>,
27430 <avx512>_fnmadd_<mode>_mask3<round_name>,
27431 <avx512>_fnmsub_<mode>_mask3<round_name>,
27432 avx512f_vmfmadd_<mode>_mask3<round_name>,
27433 avx512f_vmfmsub_<mode>_mask3<round_name>,
27434 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
27435 instead of register_operand and %v instead of v for match_operand 1.
27436 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
27437 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
27438 <round_nimm_predicate> instead of register_operand and %v instead of v
27439 for match_operand 1.
27441 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
27442 <avx512>_fmadd_<mode>_mask3<round_name>,
27443 <avx512>_fmsub_<mode>_mask<round_name>,
27444 <avx512>_fmsub_<mode>_mask3<round_name>,
27445 <avx512>_fnmadd_<mode>_mask<round_name>,
27446 <avx512>_fnmadd_<mode>_mask3<round_name>,
27447 <avx512>_fnmsub_<mode>_mask<round_name>,
27448 <avx512>_fnmsub_<mode>_mask3<round_name>,
27449 <avx512>_fmaddsub_<mode>_mask<round_name>,
27450 <avx512>_fmaddsub_<mode>_mask3<round_name>,
27451 <avx512>_fmsubadd_<mode>_mask<round_name>,
27452 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
27453 <round_nimm_predicate> instead of nonimmediate_operand.
27454 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
27455 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
27456 Use register_operand instead of <round_nimm_predicate> for the
27457 operand that needs to match output.
27458 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
27459 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
27460 Likewise. Formatting fixes.
27463 * config/i386/i386.c (enum ix86_builtins): Remove
27464 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
27465 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
27466 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
27467 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
27468 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
27469 __builtin_ia32_vfmsubss3_mask3): New builtins.
27470 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
27471 avx512f_vmfmadd_<mode>_mask3<round_name>,
27472 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
27473 *avx512f_vmfmsub_<mode>_mask<round_name>,
27474 avx512f_vmfmsub_<mode>_mask3<round_name>,
27475 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
27476 *avx512f_vmfnmadd_<mode>_mask<round_name>,
27477 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
27478 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
27479 *avx512f_vmfnmsub_<mode>_mask<round_name>,
27480 avx512f_vmfnmsub_<mode>_mask3<round_name>,
27481 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
27482 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
27483 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
27484 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
27485 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
27486 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
27487 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
27488 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
27489 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
27490 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
27491 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
27492 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
27493 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
27494 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
27495 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
27496 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
27497 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
27498 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
27499 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
27500 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
27501 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
27502 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
27504 2019-03-21 Martin Sebor <msebor@redhat.com>
27506 PR tree-optimization/89350
27507 * builtins.c (compute_objsize): Also ignore offsets whose upper
27509 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
27510 (builtin_memref::builtin_memref): Initialize new member.
27511 Allow EXPR to be null.
27512 (builtin_memref::extend_offset_range): Replace local with a member.
27513 Avoid assuming pointer offsets are unsigned.
27514 (builtin_memref::set_base_and_offset): Determine base object
27515 before computing offset range.
27516 (builtin_access::builtin_access): Handle memset.
27517 (builtin_access::generic_overlap): Replace local with a member.
27518 (builtin_access::strcat_overlap): Same.
27519 (builtin_access::overlap): Same.
27520 (maybe_diag_overlap): Same.
27521 (maybe_diag_access_bounds): Same.
27522 (wrestrict_dom_walker::check_call): Handle memset.
27523 (check_bounds_or_overlap): Same.
27525 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
27526 Jakub Jelinek <jakub@redhat.com>
27529 * tree.c (fld_type_variant, fld_incomplete_type_of,
27530 fld_process_array_type): Call fld->pset.add and don't call
27531 add_tree_to_fld_list if it returns true.
27532 (free_lang_data_in_type): Similarly with self-recursive call. Purge
27533 non-marked types from TYPE_NEXT_VARIANT list.
27534 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
27536 2019-03-21 Jakub Jelinek <jakub@redhat.com>
27538 * hash-table.h (hash_table): Add Lazy template parameter defaulted
27539 to false, if true, don't alloc_entries during construction, but defer
27540 it to the first method that needs m_entries allocated.
27541 (hash_table::hash_table, hash_table::~hash_table,
27542 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
27543 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
27544 hash_table::clear_slot, hash_table::traverse_noresize,
27545 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
27546 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
27548 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
27549 NO_INSERT instead of find_with_hash.
27550 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
27551 hash_set::m_table): Add Lazy to template params of hash_table.
27552 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27553 * attribs.c (test_attribute_exclusions): Likewise.
27554 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27555 hash_set. Add tests for hash_set with Lazy = true.
27557 2019-03-21 Richard Biener <rguenther@suse.de>
27559 PR tree-optimization/89779
27560 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27561 checks with respect to released SSA names now having error_mark_node
27563 * fold-const.c (operand_equal_p): Likewise.
27565 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27568 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27570 (s390_optimize_register_info): Use global_not_special_regno_p to
27571 check for global regs.
27573 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27576 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27577 update this_alternative nor this_alternative_set.
27579 2019-03-19 Jim Wilson <jimw@sifive.com>
27582 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27583 align, size, offset. Use them to handle a BLKmode reference. Update
27585 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27587 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27589 PR rtl-optimization/89768
27590 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27591 instead of GEN_INT.
27592 (unroll_loop_runtime_iterations): Likewise.
27594 2019-03-19 Martin Sebor <msebor@redhat.com>
27596 PR tree-optimization/89644
27597 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27598 rather than endptr as an indicator of nul-termination.
27600 PR tree-optimization/89644
27601 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27602 arrays in determining sequence sizes in strncpy and stpncpy.
27604 2019-03-19 Martin Liska <mliska@suse.cz>
27606 PR middle-end/89737
27607 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27608 unlikely_edges if there's an edge that belongs to both these sets.
27610 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27613 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27614 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27615 go via a stack temporary.
27617 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27620 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27621 instead of gen_rtx_SUBREG.
27622 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27624 2019-03-19 Richard Biener <rguenther@suse.de>
27627 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27629 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27633 * tree.c (free_lang_data_in_decl): Do not free context of C++
27636 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27639 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27640 subs for the first alternative except when operands[3] is 1.
27643 * gimplify.c (gimplify_asm_expr): For output argument with
27644 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27647 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27649 PR rtl-optimization/89753
27650 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27651 explicit unrolling factor even more robust.
27653 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27656 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27657 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27658 signed zeros, do another copysign after the compensation.
27660 2019-03-18 Martin Sebor <msebor@redhat.com>
27662 PR tree-optimization/89720
27663 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27664 more conservatively, the same as anti-range.
27666 2019-03-18 Richard Biener <rguenther@suse.de>
27668 PR middle-end/88945
27669 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27670 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27671 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27672 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27674 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27676 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27677 Extend queue to 1024 entries.
27678 Add "consumed" field.
27679 (gomp_print_output): Remove print_index parameter.
27680 Add final parameter.
27681 Change limit to unsigned.
27682 Use consumed field to implement circular buffer.
27683 Detect interrupted print in final pass.
27684 Flush output at the end.
27685 (run): Update gomp_print_output usage.
27686 (main): Initialize kernargs->output_data.consumed.
27688 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27690 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27691 calculation of the minimum number of scalar iterations for
27692 fully-predicated loops.
27694 2019-03-18 Martin Jambor <mjambor@suse.cz>
27696 PR tree-optimization/89546
27697 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27698 any propagation to its children took place.
27700 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27703 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27704 parameter, and make use of it.
27705 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27707 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27709 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27710 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27711 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27712 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27713 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27714 match what the ops is doing.
27715 (push_multi_fp_blink): Likewise.
27716 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27717 compiling for size and elf target.
27718 (arc_save_callee_enter): Adjust note to match what enter/leave
27721 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27723 * config/arc/arc.md (tst_movb): Fix constraint.
27725 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27727 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27729 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27731 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27732 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27733 reg_alloc_order references.
27734 (size_alloc_order): Define.
27735 (arc_adjust_reg_alloc_order): New function.
27736 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27738 (ADJUST_REG_ALLOC_ORDER): Define.
27739 (HONOR_REG_ALLOC_ORDER): Likewise.
27741 2019-03-18 Richard Biener <rguenther@suse.de>
27744 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27745 loads and stores a bit more.
27747 2019-03-18 Richard Biener <rguenther@suse.de>
27750 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27751 load pessimization to stores as well.
27753 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27755 PR middle-end/86979
27756 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27757 successor, use NULL as its av set.
27759 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27761 PR rtl-optimization/89721
27762 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27764 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27767 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27768 When handling vec_extract, use modular arithmetic to allow
27769 constant selectors greater than vector length.
27770 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27771 V1TImode vectors to have constant selector values greater than 0.
27772 Use modular arithmetic to compute vector index.
27773 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27774 index for in-memory vectors. Correct code generation for
27775 in-register vectors.
27776 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27779 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27783 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27786 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27789 * tree.c (inchash::add_expr): Strip any location wrappers.
27790 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27791 after hash verification.
27794 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27795 SIGN_EXTEND and ZERO_EXTEND.
27797 2019-03-14 Jason Merrill <jason@redhat.com>
27798 Jakub Jelinek <jakub@redhat.com>
27800 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27801 than if is_empty (*slot).
27802 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27803 existing elt and for elt removal.
27804 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27805 of already removed elt.
27807 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27810 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27811 REG_EH_REGION note.
27813 2019-03-14 Martin Liska <mliska@suse.cz>
27816 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27818 2019-03-14 Richard Biener <rguenther@suse.de>
27821 * config/i386/i386.c (make_resolver_func): Properly set
27822 DECL_CONTEXT on the RESULT_DECL.
27823 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27825 2019-03-14 Richard Biener <rguenther@suse.de>
27827 * gimple-pretty-print.c: Include cfgloop.h.
27828 (dump_gimple_phi): Adjust.
27829 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27830 (pp_cfg_jump): Adjust.
27831 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27832 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27833 (lower_phi_internal_fn): Remove.
27834 (verify_gimple_call): Remove IFN_PHI special-casing.
27835 (dump_function_to_file): Dump IL state.
27836 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27837 done to deal with PHI nodes being present in non-SSA state.
27839 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27842 * multiple_target.c (create_dispatcher_calls): Change
27843 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27844 In the node->iterate_referring loop, push *ref rather than ref, call
27845 ref->remove_reference () and always pass 0 to iterate_referring.
27847 PR rtl-optimization/89679
27848 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27849 would contain a paradoxical SUBREG.
27851 2019-03-14 Richard Biener <rguenther@suse.de>
27853 PR tree-optimization/89710
27854 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27857 2019-03-14 Martin Liska <mliska@suse.cz>
27859 * coverage.c (coverage_begin_function): Stream also
27861 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27862 documentation about function declaration location.
27863 * gcov-dump.c (tag_function): Print whole range
27864 of function declaration.
27865 * gcov.c (struct function_info): Add end_column field.
27866 (function_info::function_info): Initialize it.
27867 (output_json_intermediate_file): Output {start,end}_column
27869 (read_graph_file): Read end_column.
27871 2019-03-14 Richard Biener <rguenther@suse.de>
27873 PR middle-end/89698
27874 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27875 that the access types are similar.
27877 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27879 PR tree-optimization/89703
27880 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27881 aren't compatible also with builtin_decl_explicit. Check pure
27882 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27883 and BUILT_IN_STPNCPY{,_CHK}.
27885 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27888 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27889 addr32 prefix to VSIB address for X32.
27890 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27892 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27893 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27894 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27895 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27896 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27897 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27898 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27899 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27900 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27901 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27902 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27903 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27904 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27905 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27906 (*avx512f_scatterdi<mode>): Likewise.
27908 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27911 * lra-constraints.c (inherit_in_ebb): Update
27912 potential_reload_hard_regs along with live_hard_regs.
27914 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27917 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27919 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27921 2019-03-13 Martin Sebor <msebor@redhat.com>
27923 PR tree-optimization/89662
27924 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27927 2019-03-13 Richard Biener <rguenther@suse.de>
27929 PR middle-end/89677
27930 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27931 throw FP expressions at tree-affine.
27933 2019-03-14 Richard Biener <rguenther@suse.de>
27935 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27936 dump negative integer constants using _Literal (type) -num.
27938 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27940 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27941 nonlocal_value member.
27943 PR middle-end/88588
27944 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27945 (ipa_simd_modify_function_body): Handle PHIs.
27947 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27949 * config/s390/s390.c (s390_option_override_internal): Use more
27950 aggressive inlining parameters.
27952 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27954 * config/s390/3906.md: New file.
27955 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27956 (LONGRUNNING_THRESHOLD): Remove.
27957 (MAX_SCHED_MIX_SCORE): Decrease.
27958 (MAX_SCHED_MIX_DISTANCE): Decrease.
27959 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27960 (struct s390_sched_state): New struct to hold scheduling state.
27961 (S390_SCHED_STATE_NORMAL): Remove.
27962 (S390_SCHED_STATE_CRACKED): Remove.
27963 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27964 (s390_get_sched_attrmask): Use new attribute.
27965 (s390_get_unit_mask): Use new units.
27966 (s390_is_fpd): New function.
27967 (s390_is_fxd): New function.
27968 (s390_is_longrunning): New function.
27969 (s390_sched_score): Use new functions.
27970 (s390_sched_reorder): Likewise.
27971 (s390_sched_variable_issue): Rework and use new functions.
27972 (s390_sched_init): Use new functions.
27973 * config/s390/s390.h (s390_tune_attr): Add z14.
27974 * config/s390/s390.md: Add z14.
27976 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27978 * config/s390/2964.md: Update pipeline description.
27979 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27980 (LONGRUNNING_THRESHOLD): Remove.
27981 (LATENCY_FACTOR): Remove.
27982 (s390_get_unit_mask): Add unit.
27983 (s390_sched_score): Use fxd/fpd.
27984 (s390_sched_variable_issue): Use fxd/fpd.
27986 2019-03-12 Martin Liska <mliska@suse.cz>
27988 * config/i386/i386.c: Reword an error message.
27990 2019-03-12 Martin Jambor <mjambor@suse.cz>
27992 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27993 terminate with newline.
27995 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27998 * config/s390/s390.md (tabort): Use %wd instead of
27999 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28000 letters and periods.
28001 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28002 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28005 PR middle-end/89663
28006 * builtins.c (expand_builtin_int_roundingfn,
28007 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28008 gcc_unreachable if validate_arglist fails.
28010 2019-03-12 Richard Biener <rguenther@suse.de>
28012 PR tree-optimization/89664
28013 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28014 free the occurance tree after the early out.
28016 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28018 PR middle-end/89655
28020 * vr-values.c (vr_values::update_value_range): If
28021 old_vr->varying_p (), don't update it, make new_vr also VARYING
28024 2019-03-11 Martin Liska <mliska@suse.cz>
28026 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28027 Fix double string quoting.
28029 2019-03-11 Martin Liska <mliska@suse.cz>
28031 * collect-utils.c (collect_wait): Wrap apostrophes
28032 in gcc internal format with %'.
28033 * collect2.c (main): Likewise.
28034 (scan_prog_file): Likewise.
28035 (scan_libraries): Likewise.
28036 * config/i386/i386.c (ix86_expand_call): Likewise.
28037 (ix86_handle_interrupt_attribute): Likewise.
28038 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28039 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28040 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28041 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28042 * symtab.c (symtab_node::verify_base): Likewise.
28043 * tree-cfg.c (verify_gimple_label): Likewise.
28044 * tree.c (verify_type_variant): Likewise.
28046 2019-03-11 Martin Liska <mliska@suse.cz>
28048 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28049 in a string format message and fix GNU coding style.
28050 (expand_builtin_set_thread_pointer): Likewise.
28051 * common/config/aarch64/aarch64-common.c
28052 (aarch64_rewrite_selected_cpu): Likewise.
28053 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28054 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28055 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28056 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28057 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28058 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28059 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28060 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28061 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28062 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28064 * common/config/riscv/riscv-common.c
28065 (riscv_subset_list::parsing_subset_version): Likewise.
28066 (riscv_subset_list::parse_std_ext): Likewise.
28067 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28068 (riscv_subset_list::parse): Likewise.
28069 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28070 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28071 (aarch64_override_options_internal): Likewise.
28072 (aarch64_validate_mcpu): Likewise.
28073 (aarch64_validate_march): Likewise.
28074 (aarch64_validate_mtune): Likewise.
28075 (aarch64_override_options): Likewise.
28076 * config/alpha/alpha.c (alpha_option_override): Likewise.
28077 * config/arc/arc.c (arc_init): Likewise.
28078 (parse_mrgf_banked_regs_option): Likewise.
28079 (arc_override_options): Likewise.
28080 (arc_expand_builtin_aligned): Likewise.
28081 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28082 (arm_expand_builtin): Likewise.
28083 * config/arm/arm.c (arm_option_check_internal): Likewise.
28084 (arm_configure_build_target): Likewise.
28085 (arm_option_override): Likewise.
28086 (arm_options_perform_arch_sanity_checks): Likewise.
28087 (arm_handle_cmse_nonsecure_entry): Likewise.
28088 (arm_handle_cmse_nonsecure_call): Likewise.
28089 (arm_tls_referenced_p): Likewise.
28090 (thumb1_expand_prologue): Likewise.
28091 * config/avr/avr.c (avr_option_override): Likewise.
28092 * config/bfin/bfin.c (bfin_option_override): Likewise.
28093 * config/c6x/c6x.c (c6x_option_override): Likewise.
28094 * config/cr16/cr16.c (cr16_override_options): Likewise.
28095 * config/cris/cris.c (cris_option_override): Likewise.
28096 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28097 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28098 * config/darwin.c (darwin_override_options): Likewise.
28099 * config/frv/frv.c (frv_expand_builtin): Likewise.
28100 * config/h8300/h8300.c (h8300_option_override): Likewise.
28101 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28102 (ix86_option_override_internal): Likewise.
28103 (warn_once_call_ms2sysv_xlogues): Likewise.
28104 (ix86_expand_prologue): Likewise.
28105 (split_stack_prologue_scratch_regno): Likewise.
28106 (ix86_warn_parameter_passing_abi): Likewise.
28107 * config/ia64/ia64.c (fix_range): Likewise.
28108 * config/m68k/m68k.c (m68k_option_override): Likewise.
28109 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28110 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28111 (mips_set_compression_mode): Likewise.
28112 * config/mmix/mmix.c (mmix_option_override): Likewise.
28113 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28114 * config/msp430/msp430.c (msp430_option_override): Likewise.
28115 * config/nds32/nds32.c (nds32_option_override): Likewise.
28116 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28117 (nios2_option_override): Likewise.
28118 (nios2_expand_custom_builtin): Likewise.
28119 * config/nvptx/mkoffload.c (main): Likewise.
28120 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28121 * config/pa/pa.c (fix_range): Likewise.
28122 (pa_option_override): Likewise.
28123 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28124 (riscv_option_override): Likewise.
28125 * config/rl78/rl78.c (rl78_option_override): Likewise.
28126 * config/rs6000/aix61.h: Likewise.
28127 * config/rs6000/aix71.h: Likewise.
28128 * config/rs6000/aix72.h: Likewise.
28129 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28130 * config/rs6000/freebsd64.h: Likewise.
28131 * config/rs6000/linux64.h: Likewise.
28132 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28133 (rs6000_expand_zeroop_builtin): Likewise.
28134 (rs6000_expand_mtfsb_builtin): Likewise.
28135 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28136 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28137 (rs6000_invalid_builtin): Likewise.
28138 (rs6000_expand_split_stack_prologue): Likewise.
28139 * config/rs6000/rtems.h: Likewise.
28140 * config/rx/rx.c (valid_psw_flag): Likewise.
28141 (rx_expand_builtin): Likewise.
28142 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28143 * config/s390/s390.c (s390_expand_builtin): Likewise.
28144 (s390_function_profiler): Likewise.
28145 (s390_option_override_internal): Likewise.
28146 (s390_option_override): Likewise.
28147 * config/sh/sh.c (sh_option_override): Likewise.
28148 (sh_builtin_saveregs): Likewise.
28149 (sh_fix_range): Likewise.
28150 * config/sh/vxworks.h: Likewise.
28151 * config/sparc/sparc.c (sparc_option_override): Likewise.
28152 * config/spu/spu.c (spu_option_override): Likewise.
28153 (fix_range): Likewise.
28154 * config/visium/visium.c (visium_option_override): Likewise.
28155 (visium_handle_interrupt_attr): Likewise.
28156 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28157 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28158 (dbg_cnt_process_opt): Likewise.
28159 * dwarf2out.c (output_dwarf_version): Likewise.
28160 * except.c (expand_eh_return): Likewise.
28161 * gcc.c (defined): Likewise.
28162 (driver_handle_option): Likewise.
28163 (process_command): Likewise.
28164 (compare_files): Likewise.
28165 (driver::prepare_infiles): Likewise.
28166 (driver::do_spec_on_infiles): Likewise.
28167 (driver::maybe_run_linker): Likewise.
28168 * omp-offload.c (oacc_parse_default_dims): Likewise.
28169 * opts-global.c (handle_common_deferred_options): Likewise.
28170 * opts.c (parse_sanitizer_options): Likewise.
28171 (common_handle_option): Likewise.
28172 (enable_warning_as_error): Likewise.
28173 * passes.c (enable_disable_pass): Likewise.
28174 * plugin.c (parse_plugin_arg_opt): Likewise.
28175 (default_plugin_dir_name): Likewise.
28176 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28177 (default_pch_valid_p): Likewise.
28178 * toplev.c (init_asm_output): Likewise.
28179 (process_options): Likewise.
28180 (toplev::run_self_tests): Likewise.
28181 * tree-cfg.c (verify_gimple_call): Likewise.
28182 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28183 (tree_inlinable_function_p): Likewise.
28184 * var-tracking.c (vt_find_locations): Likewise.
28186 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28188 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28189 only on the else branch.
28191 2019-03-11 Martin Liska <mliska@suse.cz>
28193 * gcov.c (output_intermediate_json_line): Print function
28195 (output_json_intermediate_file): Add new argument.
28196 * doc/gcov.texi: Document the change.
28198 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
28200 PR rtl-optimization/89588
28201 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28202 explicit unrolling factor more robust.
28204 2019-03-11 Richard Biener <rguenther@suse.de>
28206 PR tree-optimization/89649
28207 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
28208 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
28209 on the prolog and epilog loops.
28210 (vect_loop_versioning): Return copy of loop.
28211 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
28212 on the non-vectorized version of the loop.
28214 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
28217 * config/i386/sse.md (*vec_extractv2di_0_sse):
28218 Add (=r,x) alternative and corresponding splitter.
28220 2019-03-10 Martin Jambor <mjambor@suse.cz>
28222 PR tree-optimization/85762
28223 PR tree-optimization/87008
28224 PR tree-optimization/85459
28225 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
28226 it points to if there is a type changing MEM_REF. Adjust all callers.
28227 (build_accesses_from_assign): Disable total scalarization if
28228 contains_vce_or_bfcref_p returns true through the new parameter, for
28231 2019-03-09 Jakub Jelinek <jakub@redhat.com>
28234 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
28235 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
28238 * common.opt (fdiagnostics-show-labels,
28239 fdiagnostics-show-line-numbers, fdiagnostics-format=,
28240 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
28241 gas-locview-support, ginline-points, ginternal-reset-location-views):
28242 Terminate description text with a dot.
28243 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
28244 * config/mcore/mcore.opt (m210, m340): Likewise.
28245 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
28246 mnops=): Start description text with a capital letter.
28247 * config/arc/arc.opt (msize-level=): Likewise.
28248 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
28249 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
28250 mnewlib): Likewise.
28251 * config/ft32/ft32.opt (msim): Likewise.
28252 (mft32b, mcompress): Likewise. Terminate description text with a dot.
28253 (mnodiv, mnopm): Terminate description text with a dot.
28254 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
28256 * config/i386/i386.opt (prefer_vector_width, instrument_return):
28258 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
28261 PR rtl-optimization/89634
28262 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
28263 are modified in BB_END (e->src) instruction.
28265 2019-03-08 David Malcolm <dmalcolm@redhat.com>
28268 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
28269 messages more amenable to translation, and improve wording.
28271 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
28273 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
28274 ud- and du-chains between phases.
28276 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
28279 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
28280 instead of POLY_INT_CST.
28282 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
28284 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
28287 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
28292 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
28293 (_mm_storeu_si64): Ditto.
28295 2019-03-08 Martin Liska <mliska@suse.cz>
28298 * config/i386/i386.c (ix86_option_override_internal): Disable
28299 jump tables when retpolines are used.
28301 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
28304 * ipa-split.c (execute_split_functions): Do not split
28305 'noinline' or 'section' function.
28307 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28310 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
28311 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
28312 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
28315 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28316 from diagnostics. Formatting fixes.
28319 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
28320 warn_odr diagnostics.
28323 * lra-constraints.c (process_alt_operands): Avoid one space before
28324 " at the end of line and another after " on another line in a string
28326 * attribs.c (handle_dll_attribute): Likewise.
28327 * config/avr/avr-devices.c (avr_texinfo): Likewise.
28329 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
28330 warning_at or inform messages in G_() if there is no ?:.
28332 PR tree-optimization/89550
28333 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
28334 returned true. Formatting fixes.
28335 (expand_builtin_strnlen): Formatting fixes.
28336 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
28337 if warning_at returned true.
28338 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
28340 2019-03-08 Richard Biener <rguenther@suse.de>
28342 PR middle-end/89578
28343 * cfgloop.h (struct loop): Add owned_clique field.
28344 * cfgloopmanip.c (copy_loop_info): Copy it.
28345 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
28347 * tree-inline.c (copy_loops): Remap owned_clique.
28348 * lto-streamer-in.c (input_cfg): Stream owned_clique.
28349 * lto-streamer-out.c (output_cfg): Likewise.
28351 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28354 * config/darwin.c: Include intl.h.
28355 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
28356 composing the message out of two separate parts.
28358 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28361 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
28362 doesn't start with a capital letter and doesn't end with a dot.
28363 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
28364 with a capital letter.
28365 (ix86_mangle_function_version_assembler_name): Likewise.
28366 (ix86_generate_version_dispatcher_body): Likewise.
28367 (fold_builtin_cpu): Likewise.
28368 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28369 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28370 translators, wrap full type name in %qs.
28372 PR translation/79999
28373 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28374 depend clause with source (or sink) modifier.
28375 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28378 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28379 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28380 (avx512f_load<mode>_mask): New define_expand.
28381 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28382 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28383 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28384 __builtin_ia32_movess_mask): New builtins.
28385 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28386 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28387 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28388 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28390 2019-03-07 Martin Jambor <mjambor@suse.cz>
28393 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28394 for extern inline functions.
28396 2019-03-07 Martin Jambor <mjambor@suse.cz>
28399 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28400 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28401 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28402 have multiple callees. At the end check if declarations match as
28403 opposed to cgraph_nodes.
28405 2019-03-07 Martin Liska <mliska@suse.cz>
28407 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28408 which is equivalent to searching for this in clones chain.
28409 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28410 names with a neighbour and special case first node in a chain.
28412 2019-01-25 Jason Merrill <jason@redhat.com>
28414 PR c++/80916 - spurious "static but not defined" warning.
28415 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
28416 for an internal symbol with DECL_EXTERNAL.
28418 2019-04-07 Richard Biener <rguenther@suse.de>
28420 PR middle-end/89618
28421 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
28422 * tree-inline.c (copy_loops): Simplify.
28424 2019-03-07 Martin Liska <mliska@suse.cz>
28426 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
28428 2019-03-07 Richard Biener <rguenther@suse.de>
28430 PR tree-optimization/89595
28431 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
28432 stmt iterator as reference, take boolean output parameter to
28433 indicate whether the stmt was removed and thus the iterator
28435 (dom_opt_dom_walker::before_dom_children): Re-iterate over
28436 stmts created by folding.
28438 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28441 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
28444 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
28446 PR rtl-optimization/88845
28447 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
28449 * lra.c (remove_scratches_1): New function.
28450 (remove_scratches): Use it.
28451 (lra_emit_move): Likewise.
28453 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
28455 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
28456 unaligned_access variable.
28457 * config/arc/arc.c (arc_override_options): Set unaligned access
28458 default on for HS CPUs.
28459 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
28461 2019-03-06 Martin Liska <mliska@suse.cz>
28463 PR gcov-profile/89577
28464 * doc/gcov.texi: Prefer to use --coverage.
28465 * doc/sourcebuild.texi: Likewise.
28467 2019-03-02 Jason Merrill <jason@redhat.com>
28469 PR c++/86485 - -Wmaybe-unused with empty class ?:
28470 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
28472 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28475 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
28478 PR middle-end/89590
28479 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
28480 exactly one argument.
28482 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28483 Richard Sandiford <richard.sandiford@arm.com>
28485 PR tree-optimization/89570
28486 * match.pd (vec_cond into cond_op simplification): Don't use
28487 get_conditional_internal_fn, use as_internal_fn (cond_op).
28489 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
28492 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
28493 to decide when to split off a non-zero offset from a symbol.
28494 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
28495 in function symbols.
28497 2019-03-05 Richard Biener <rguenther@suse.de>
28499 PR tree-optimization/89594
28500 * tree-if-conv.c (pass_if_conversion::execute): Handle
28501 case where .LOOP_VECTORIZED_FUNCTION was removed.
28503 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28506 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
28507 instead alloca it only when needed with the needed size.
28509 PR tree-optimization/89570
28510 * match.pd (vec_cond into cond_op simplification): Guard with
28511 vectorized_internal_fn_supported_p test and #if GIMPLE.
28513 PR tree-optimization/89566
28514 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
28515 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
28516 Punt if get_user_idx_format succeeds, but idx_format argument is
28517 not provided or doesn't have pointer type, or if idx_args is above
28518 number of provided arguments.
28520 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
28522 PR tree-optimization/89437
28523 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
28525 2019-03-04 Richard Biener <rguenther@suse.de>
28527 PR middle-end/89572
28528 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
28531 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
28533 PR tree-optimization/89487
28534 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
28535 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
28536 (distribute_loop): Don't do runtime alias check if there is non-
28537 addressable data reference.
28538 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
28539 is a register variable.
28541 2019-03-02 Jakub Jelinek <jakub@redhat.com>
28544 * config/arm/arm.md (cmpsi2_addneg): Use
28545 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
28546 If operands[2] is 0 or INT_MIN, force use of subs.
28547 (*compare_scc splitter): Use gen_int_mode.
28548 (*negscc): Likewise.
28549 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
28551 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28552 Monk Chiang <sh.chiang04@gmail.com>
28554 * common/config/riscv/riscv-common.c: Include sstream.
28555 (riscv_subset_list::to_string): New.
28556 (riscv_arch_str): Likewise.
28557 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28558 * config.in: Regen.
28559 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28560 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28561 (riscv_emit_attribute): New.
28562 (riscv_file_start): Emit attribute if needed.
28563 (riscv_option_override): Init riscv_emit_attribute_p.
28564 * config/riscv/riscv.opt (mriscv-attribute): New option.
28565 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28566 * configure: Regen.
28567 * doc/install.texi: Document --with-riscv-attribute.
28568 * doc/invoke.texi: Document -mriscv-attribute.
28570 * common/config/riscv/riscv-common.c:
28571 Include config/riscv/riscv-protos.h.
28572 (INCLUDE_STRING): Defined.
28573 (RISCV_DONT_CARE_VERSION): Defined.
28574 (riscv_subset_t): Declare.
28575 (riscv_subset_t::riscv_subset_t): New.
28576 (riscv_subset_list): Declare.
28577 (riscv_subset_list::riscv_subset_list): New.
28578 (riscv_subset_list::~riscv_subset_list): Likewise.
28579 (riscv_subset_list::parsing_subset_version): Likewise.
28580 (riscv_subset_list::parse_std_ext): Likewise.
28581 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28582 (riscv_subset_list::add): Likewise.
28583 (riscv_subset_list::lookup): Likewise.
28584 (riscv_subset_list::xlen): Likewise.
28585 (riscv_subset_list::parse): Likewise.
28586 (riscv_supported_std_ext): Likewise.
28587 (current_subset_list): Likewise.
28588 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28591 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28593 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28594 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28595 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28597 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28599 PR rtl-optimization/85899
28600 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28601 fallthru edges leading to the exit block.
28603 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28606 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28607 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28609 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28611 PR tree-optimization/89535
28612 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28613 for each operand. Calculate the fallback choice for mask operands
28614 and pass it to vect_get_vec_def_for_operand.
28616 2019-03-01 Richard Biener <rguenther@suse.de>
28618 PR middle-end/89541
28619 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28620 get virtual operands.
28621 (get_expr_operands): Handle CONST_DECL like other decls.
28623 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28625 PR middle-end/89503
28626 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28627 on DECL_P and EXPR_P.
28629 2019-03-01 Richard Biener <rguenther@suse.de>
28631 PR middle-end/89497
28632 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28633 argument, defaulted to zero.
28634 * passes.c (execute_function_todo): Pass down SSA update flags
28635 to cleanup_tree_cfg.
28636 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28637 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28639 (cleanup_tree_cfg): Get and pass down SSA update flags.
28641 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28644 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28645 early_lto_debug argument.
28647 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28649 PR tree-optimization/89536
28650 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28651 only whether bit #0 of the value is 0 instead of the entire value.
28653 2019-02-28 Marek Polacek <polacek@redhat.com>
28655 PR c++/87068 - missing diagnostic with fallthrough statement.
28656 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28657 at the end of a seq, save its location to walk_stmt_info.
28658 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28661 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28664 * tree.c (find_atomic_core_type): Move ahead in file.
28665 (check_base_type): Correctly compare alignments of atomic types.
28667 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28670 * config/i386/i386.c (get_builtin_code_for_version): Identify
28671 Westmere from PCLMUL, instead of AES.
28673 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28676 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28677 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28680 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28683 * config/aarch64/aarch64-option-extensions.def: Document it.
28684 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28687 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28690 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28691 builtins if they don't have a single scalar floating point argument.
28694 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28696 PR rtl-optimization/89490
28697 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28698 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28699 block section is not mergeable.
28701 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28704 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28705 old define_insn to ...
28706 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28707 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28708 Rename old define_insn to ...
28709 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28710 (thumb2_casesi_internal_pic): New define_expand. Rename old
28712 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28713 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28714 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28716 2019-02-27 Richard Biener <rguenther@suse.de>
28719 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28721 2019-02-27 Richard Biener <rguenther@suse.de>
28723 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28726 2019-02-27 Richard Biener <rguenther@suse.de>
28729 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28730 parameter, prefix section name with .gnu.debuglto_ if true.
28731 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28732 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28734 2019-02-27 Richard Biener <rguenther@suse.de>
28737 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28738 rather than on use_debug_types, doing what output_die does.
28739 (value_format): Likewise.
28741 2019-02-27 Martin Jambor <mjambor@suse.cz>
28742 Martin Sebor <msebor@redhat.com>
28744 * doc/invoke.texi (Warning Options): Reword description of
28745 -Wno-absolute-value.
28747 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28749 PR tree-optimization/89280
28750 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28751 builtin_setjmp_setup_bb): New functions.
28752 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28753 When visiting __builtin_setjmp_setup block, queue in special
28754 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28755 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28756 from visited after the loop if they don't have any visited successor
28759 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28761 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28763 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28765 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28768 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28769 with types other than sizetype/ssizetype.
28771 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28773 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28774 (enum sparc_processor_type): ...this.
28775 (enum sparc_code_model_type): New enumeration type.
28776 (enum sparc_memory_model_type): Tweak comments.
28777 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28779 (mcmodel): Use sparc_code_model enumeration and variable.
28780 (sparc_code_model): New enumeration.
28781 (mdebug): Add Undocumented marker.
28782 * config/sparc/sparc.h (enum cmodel): Delete.
28783 (sparc_cmodel): Likewise.
28784 (TARGET_CM_MEDLOW): Adjust to above renaming.
28785 (TARGET_CM_MEDMID): Likewise.
28786 (TARGET_CM_MEDANY): Likewise.
28787 (TARGET_CM_EMBMEDANY): Likewise.
28788 * config/sparc/sparc.c (sparc_cmodel): Delete.
28789 (sparc_option_override): Remove string/value mapping support for the
28790 code model. Move code and memory model support to after the handling
28791 of target flags. Do private machine setup last.
28792 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28793 (sparc_legitimize_reload_address): Likewise.
28794 (sparc_output_mi_thunk): Likewise.
28795 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28797 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28799 PR tree-optimization/89500
28800 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28801 (handle_builtin_strlen): Remove noncst_bound variable. Always
28802 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28803 cst if the first cst bytes starting at x are known to be non-zero,
28804 even if the string is not zero terminated. Don't try to modify
28805 *si for strnlen. Update strlen_to_stridx only for strlen or if
28806 we can prove strnlen returns the same value as strlen would.
28808 2019-02-26 Martin Liska <mliska@suse.cz>
28810 * alloc-pool.h (struct pool_usage): Remove extra
28812 * bitmap.h (struct bitmap_usage): Likewise.
28813 * ggc-common.c (struct ggc_usage): Likewise.
28814 * mem-stats.h (struct mem_usage): Likewise.
28815 (mem_alloc_description::dump): Print dash lines
28816 here and repeat header at the end of a table report.
28817 It's then more readable.
28818 * tree-phinodes.c (phinodes_print_statistics): Make
28819 horizontal alignment.
28820 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28821 * vec.c (struct vec_usage): Remove extra print_dash_line.
28822 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28824 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28826 * doc/extend.texi (__builtin_object_size):
28827 Use @pxref instead of @xref inside parenthesis.
28828 (__builtin_has_attribute): Add missing comma after @xref.
28829 (__builtin_object_size): Ditto.
28830 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28832 2019-02-26 Jeff Law <law@redhat.com>
28834 PR rtl-optimization/87761
28835 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28836 detect obviously dead insns and delete them.
28838 2019-02-26 Richard Biener <rguenther@suse.de>
28840 PR tree-optimization/89505
28841 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28842 to handle restrict pointed-to vars with multiple subvars
28845 2019-02-26 Richard Biener <rguenther@suse.de>
28847 PR tree-optimization/89489
28848 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28850 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28852 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28853 and move around comment.
28854 <BIT_AND_EXPR>: Likewise.
28855 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28857 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28860 * config/i386/i386.c (remove_partial_avx_dependency): Call
28861 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28862 after changing possibly many instructions to use that pseudo. Fix up
28863 insertion of v4sf_const0 setter at the start of bb.
28865 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28868 * doc/extend.texi (Variadic Pointer Args): New section.
28870 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28871 Martin Sebor <msebor@gmail.com>
28873 * common.opt (Wattribute-alias): Likewise.
28874 * doc/invoke.texi (Option Summary): List general form of
28875 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28876 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28877 Add cross-references.
28878 (-Wattribute-alias): Rewrite and correct default. Mention
28879 considered attributes (same as for -Wmissing-attributes).
28881 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28883 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28884 (_mm_cvtpd_ps): Likewise.
28885 (_mm_cvttpd_epi32): Likewise.
28888 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28889 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28892 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28894 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28897 * common/config/aarch64/aarch64-common.c
28898 (struct aarch64_option_extension): Add is_synthetic.
28899 (all_extensions): Use it.
28900 (TARGET_OPTION_INIT_STRUCT): Define hook.
28901 (struct gcc_targetm_common): Moved to end.
28902 (all_extensions_by_on): New.
28903 (opt_ext_cmp, typedef opt_ext): New.
28904 (aarch64_option_init_struct): New.
28905 (aarch64_contains_opt): New.
28906 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28907 * config/aarch64/aarch64-option-extensions.def
28908 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28909 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28910 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28911 Set is_synthetic to false.
28912 (crypto): Set is_synthetic to true.
28913 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28916 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28918 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28919 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28920 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28921 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28922 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28923 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28924 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28925 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28927 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28928 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28929 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28930 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28931 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28932 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28933 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28934 vfmlsl_laneq_high_f16): ... To this.
28935 * config/arm/neon.md: Update comments.
28937 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28939 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28940 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28941 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28942 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28943 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28944 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28945 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28946 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28948 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28949 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28950 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28951 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28952 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28953 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28954 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28955 vfmlslq_laneq_high_f16): ... To this.
28957 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28959 PR rtl-optimization/86096
28960 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28961 comparing mw_order values.
28963 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28966 * config/arm/arm.md (*subsi3_carryin_const): Use
28967 arm_neg_immediate_operand predicate instead of
28968 arm_not_immediate_operand, "L" constraint instead of "K" and
28969 print it using %n2 instead of %B2.
28970 (*subsi3_carryin_const0): New define_insn.
28971 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28972 instead of arm_not_operand and "I" constraint instead of "K" and
28973 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28974 another match_operand and in the condition check that it is negation
28976 (*subsi3_carryin_compare_const0): New define_ins.
28977 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28978 *subsi3_carryin_const.
28979 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28980 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28983 * config/arm.vfp.md (*negdf2_vfp): Use
28984 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28985 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28987 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28989 PR rtl-optimization/89445
28990 * simplify-rtx.c (simplify_ternary_operation): Don't use
28991 simplify_merge_mask on operands that may trap.
28992 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28993 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28994 second operand is CONST_VECTOR, check if any element could be zero.
28995 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28996 their operands can trap.
28998 2019-02-23 Martin Sebor <msebor@redhat.com>
29000 * gimple-ssa-sprintf.c (target_strtol): Rename...
29001 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29002 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29003 check for range error.
29005 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29008 * opts-common.c (prune_options): Also prune joined switches
29009 with Negative and RejectNegative.
29010 * config/i386/i386.opt (march=): Add Negative(march=).
29011 (mtune=): Add Negative(mtune=).
29012 * doc/options.texi: Document Negative used together with Joined
29013 and RejectNegative.
29015 2019-02-22 Martin Sebor <msebor@redhat.com>
29017 * doc/extend.texi (Other Builtins): Add
29018 __builtin_is_constant_evaluated.
29020 2019-02-22 Richard Biener <rguenther@suse.de>
29022 PR tree-optimization/87609
29023 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29025 2019-02-22 Jeff Law <law@redhat.com>
29027 PR rtl-optimization/87761
29028 * config/mips/mips.md: Add new combiner pattern to recognize
29029 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29031 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29034 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29035 destination register in peepholes generating patterns for ADDS/SUBS.
29036 (add<mode>3_compare0,
29037 *addsi3_compare0_uxtw, add<mode>3_compareC,
29038 add<mode>3_compareV_imm, add<mode>3_compareV,
29039 *adds_<optab><ALLX:mode>_<GPI:mode>,
29040 *subs_<optab><ALLX:mode>_<GPI:mode>,
29041 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29042 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29043 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29044 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29045 sub<mode>3_compare1): Allow stack pointer for source register.
29046 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29048 2019-02-22 Martin Sebor <msebor@redhat.com>
29050 PR tree-optimization/88993
29051 PR tree-optimization/88853
29052 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29054 (sprintf_dom_walker::call_info::is_string_func): New helper.
29055 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29056 for formatted string functions.
29057 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29059 2019-02-22 Martin Sebor <msebor@redhat.com>
29062 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29063 unreachable subexpressions.
29065 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29066 Hongtao Liu <hongtao.liu@intel.com>
29067 Sunil K Pandey <sunil.k.pandey@intel.com>
29070 * config/i386/i386-passes.def: Add
29071 pass_remove_partial_avx_dependency.
29072 * config/i386/i386-protos.h
29073 (make_pass_remove_partial_avx_dependency): New.
29074 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29076 (pass_data_remove_partial_avx_dependency): New.
29077 (pass_remove_partial_avx_dependency): Likewise.
29078 (make_pass_remove_partial_avx_dependency): Likewise.
29079 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29080 (*extendsfdf2): Add avx_partial_xmm_update.
29081 (truncdfsf2): Likewise.
29082 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29083 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29085 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29087 PR middle-end/85598
29088 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29091 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29094 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29095 (PTA_SKYLAKE): Add PTA_AES.
29096 (PTA_GOLDMONT): Likewise.
29098 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29100 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29101 instruction if enabled.
29102 (aarch64_override_options): Remove reference to return address key.
29104 2019-02-22 Richard Biener <rguenther@suse.de>
29106 PR tree-optimization/89440
29107 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29108 not necessary assert.
29110 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29113 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29114 (oacc_replace_fn_attrib_attr): ... this new function.
29115 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29116 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29118 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29120 * config/arm/arm-cpus.in (ares): Rename to...
29121 (neoverse-n1): ... This. Add ares as alias.
29122 * config/arm/arm-tables.opt: Regenerate.
29123 * config/arm/arm-tune.md: Likewise.
29124 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29126 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29128 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29129 * config/aarch64/aarch64-tune.md: Regenerate.
29130 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29132 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29134 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29135 (neoversen1_tunings): ... This.
29136 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29137 (neoverse-n1): New CPU.
29138 * config/aarch64/aarch64-tune.md: Regenerate.
29139 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29141 2019-02-22 Richard Biener <rguenther@suse.de>
29143 PR middle-end/87609
29144 * cfghooks.h (dependence_hash): New typedef.
29145 (struct copy_bb_data): New type.
29146 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29147 (duplicate_block): Likewise.
29148 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29149 (copy_bbs): Create and pass down copy_bb_data.
29150 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29151 (rtl_duplicate_bb): Likewise.
29152 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29153 remap dependence info.
29155 2019-02-22 Richard Biener <rguenther@suse.de>
29157 PR tree-optimization/87609
29158 * tree-core.h (tree_base): Document special clique values.
29159 * tree-inline.c (remap_dependence_clique): Do not use the
29160 special clique value of one.
29161 (maybe_set_dependence_info): Use clique one.
29162 (clear_dependence_clique): New callback.
29163 (compute_dependence_clique): Clear clique one from all refs
29164 before assigning it (again).
29166 2019-02-21 Martin Sebor <msebor@redhat.com>
29168 * doc/extend.texi (__clear_cache): Correct signature.
29170 2019-02-21 Ian Lance Taylor <iant@golang.org>
29173 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29174 than output_constant_def.
29175 (add_constant_to_table): New static function.
29176 (output_constant_def): Call add_constant_to_table.
29177 (tree_output_constant_def): Likewise.
29179 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29182 * builtins.c (fold_builtin_arith_overflow): If first two args are
29183 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29186 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29189 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29190 error for -mindirect-branch/-mfunction-return with incompatible
29193 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29196 * constraints.md (q): Remove.
29197 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
29200 2019-02-21 Martin Jambor <mjambor@suse.cz>
29203 * omp-general.c (omp_extract_for_data): Removed a duplicate call
29204 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
29205 (omp_adjust_for_condition): ...here. Added necessary parameters.
29206 * omp-general.h (omp_adjust_for_condition): Updated declaration.
29207 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
29208 proper values to new parameters of omp_adjust_for_condition.
29210 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29212 PR middle-end/89412
29213 * expr.c (expand_assignment): If result is a MEM, use change_address
29214 instead of simplify_gen_subreg.
29216 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29217 David Malcolm <dmalcolm@redhat.com>
29219 PR middle-end/89091
29220 * fold-const.c (decode_field_reference): Return NULL_TREE if
29221 lang_hooks.types.type_for_size returns NULL. Check it before
29222 overwriting *exp_. Use return NULL_TREE instead of return 0.
29224 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29226 PR middle-end/88074
29227 PR middle-end/89415
29228 * toplev.c (do_compile): Double the emin/emax exponents to workaround
29231 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
29234 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
29235 TARGET_SSE in addition to TARGET_SSE_MATH.
29237 (ix86_excess_precision): Ditto.
29238 (ix86_float_exceptions_rounding_supported_p): Ditto.
29239 (use_rsqrt_p): Ditto.
29240 * config/i386/sse.md (rsqrt<mode>2): Ditto.
29242 2019-02-20 David Malcolm <dmalcolm@redhat.com>
29245 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
29246 linenum_arith_t when determining if two adjacent line spans are
29247 close enough to merge.
29248 (diagnostic_show_locus): Use linenum_arith_t when iterating over
29249 lines within each line_span.
29251 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
29254 * lra-constraints.c(uses_hard_regs_p): Fix handling of
29255 paradoxical SUBREGS.
29257 2019-02-20 Li Jia He <helijia@linux.ibm.com>
29260 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
29261 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
29262 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
29265 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
29267 * config/gcn/gcn.c (print_operand): Fix typo.
29269 2019-02-19 Richard Biener <rguenther@suse.de>
29271 PR middle-end/88074
29272 * toplev.c (do_compile): Initialize mpfr's exponent range
29273 based on available float modes.
29275 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
29277 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
29278 as long as the epilogue isn't completed.
29280 2019-02-18 Martin Sebor <msebor@redhat.com>
29282 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
29283 __has_cpp_attribute, and __has_include.
29285 2019-02-18 Martin Sebor <msebor@redhat.com>
29287 * doc/invoke.texi (-Wreturn-type): Correct and expand.
29289 2019-02-18 Martin Sebor <msebor@redhat.com>
29291 PR middle-end/89294
29292 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
29294 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
29296 2019-02-18 Richard Biener <rguenther@suse.de>
29298 PR tree-optimization/89296
29299 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
29300 of no-warning flag to cases that might emit the bogus warning.
29302 2019-02-18 Jakub Jelinek <jakub@redhat.com>
29305 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
29307 * config/arm/vfp.md (*movdi_vfp): Likewise.
29308 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
29309 "q" constraint for operands[0].
29312 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
29313 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
29314 pattern in a temporary buffer.
29315 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
29316 than 64-operands[2].
29319 * config/s390/s390.c (s390_indirect_branch_attrvalue,
29320 s390_indirect_branch_settings): Define unconditionally.
29321 (s390_set_current_function): Likewise, but guard the whole body except
29322 the s390_indirect_branch_settings call with
29323 #if S390_USE_TARGET_ATTRIBUTE.
29324 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
29326 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
29327 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
29328 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
29329 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
29330 HOST_WIDE_INT_1U instead of 1ULL.
29331 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
29332 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
29333 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
29334 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
29336 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
29339 2019-02-18 Martin Jambor <mjambor@suse.cz>
29341 PR tree-optimization/89209
29342 * tree-sra.c (create_access_replacement): New optional parameter
29343 reg_tree. Use it as a type if non-NULL and access type is not of
29345 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
29346 to create_access_replacement.
29347 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
29348 Check lacc is non-NULL before attempting to re-create it on the RHS.
29350 2019-02-18 Martin Liska <mliska@suse.cz>
29353 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
29355 (symbol_table::free_edge): Recycle m_summary_id.
29356 * cgraph.h (get_summary_id): New.
29357 (symbol_table::release_symbol): Set m_summary_id to -1
29359 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
29360 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
29361 function_summary to fast_function_summary.
29362 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
29363 * ipa-pure-const.c (class funct_state_summary_t):
29364 Switch from function_summary to fast_function_summary.
29365 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29366 (class ipa_ref_opt_summary_t): Switch from function_summary
29367 to fast_function_summary.
29368 * symbol-summary.h (class function_summary_base): New class
29369 that is created from base of former function_summary.
29370 (function_summary_base::unregister_hooks): New.
29371 (class function_summary): Inherit from function_summary_base.
29372 (class call_summary_base): New class
29373 that is created from base of former call_summary.
29374 (class call_summary): Inherit from call_summary_base.
29375 (struct is_same): New.
29376 (class fast_function_summary): New summary class.
29377 (class fast_call_summary): New summary class.
29378 * vec.h (vec_safe_grow_cleared): New function.
29380 2019-02-18 Martin Liska <mliska@suse.cz>
29382 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29383 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29384 * doc/tm.texi: Document new target hook.
29385 * doc/tm.texi.in: Likewise.
29386 * target.def: Add new target macro.
29387 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29390 2019-02-17 Alan Modra <amodra@gmail.com>
29393 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29394 output reg on add insn.
29395 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29397 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29400 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29401 (PMULHRSW): Likewise.
29402 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29404 (ssse3_pmulhrswv4hi3): New expander.
29406 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29408 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29409 MMX. Add isa attribute.
29411 2019-02-16 Jakub Jelinek <jakub@redhat.com>
29413 PR rtl-optimization/66152
29414 * builtins.h (c_readstr): Declare.
29415 * builtins.c (c_readstr): Remove forward declaration. Add
29416 null_terminated_p argument, if false, read all bytes from the
29417 string instead of stopping after '\0'.
29418 * expr.c (string_cst_read_str): New function.
29419 (store_expr): Use string_cst_read_str instead of
29420 builtin_strncpy_read_str. Try to store by pieces the whole
29421 exp_len first, and only if that fails, split it up into
29422 store by pieces followed by clear_storage. Formatting fix.
29424 * config/i386/i386.md (*movqi_internal): Remove static from
29425 buf variable. Use output_asm_insn (buf, operands); return "";
29426 instead of return buf;.
29427 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
29428 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
29429 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
29431 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29433 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
29434 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
29435 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
29436 (CC1_SPEC): Likewise.
29437 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
29439 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29441 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
29442 the base address on 64-bit strict-alignment platforms.
29444 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
29446 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
29448 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29450 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
29452 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
29454 PR rtl-optimization/88308
29455 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
29456 on copied instruction.
29458 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29460 * final.c (insn_current_reference_address): Replace test on JUMP_P
29461 with test on jump_to_label_p.
29462 * config/visium/visium-passes.def: New file.
29463 * config/visium/t-visium (PASSES_EXTRA): Define.
29464 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
29465 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
29466 (TRAMPOLINE_ALIGNMENT): Define.
29467 * config/visium/visium.c (visium_option_override): Do not register
29468 the machine-specific reorg pass here.
29469 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
29471 (output_branch): Adjust threshold for long branch instruction.
29472 * config/visium/visium.md (cpu): Move around.
29473 (length): Adjust for the GR6.
29475 2019-02-15 Richard Biener <rguenther@suse.de>
29476 Jakub Jelinek <jakub@redhat.com>
29478 PR tree-optimization/89278
29479 * tree-loop-distribution.c: Include tree-eh.h.
29480 (generate_memset_builtin, generate_memcpy_builtin): Call
29481 rewrite_to_non_trapping_overflow on builtin->size before passing it
29482 to force_gimple_operand_gsi.
29484 2019-02-15 Jakub Jelinek <jakub@redhat.com>
29487 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
29489 * opth-gen.awk: Likewise.
29491 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29493 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
29494 Enable MMX, SSE and SSE2 by default.
29495 * config/i386/i386.c (ix86_option_override_internal): Do not
29496 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
29498 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29500 PR rtl-optimization/89354
29501 * combine.c (make_extraction): Punt if extraction_mode is narrower
29504 2019-02-14 Maya Rashish <coypu@sdf.org>
29506 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
29507 * config/netbsd-d.c: New file.
29508 * config/t-netbsd: Add netbsd-d.o
29510 2018-02-14 Steve Ellcey <sellcey@marvell.com>
29512 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
29513 affects_type_identity to true for aarch64_vector_pcs.
29514 (aarch64_comp_type_attributes): New function.
29515 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
29517 2019-02-14 Tamar Christina <tamar.christina@arm.com>
29520 * config/arm/iterators.md (ANY64): Add V4HF.
29522 2019-02-14 Martin Liska <mliska@suse.cz>
29524 PR rtl-optimization/89242
29525 * dce.c (delete_unmarked_insns): Call free_dominance_info we
29526 process a transformation.
29528 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29530 PR tree-optimization/89314
29531 * fold-const.c (fold_binary_loc): Cast strlen argument to
29532 const char * before dereferencing it. Formatting fixes.
29534 PR middle-end/89284
29535 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
29537 2019-02-13 Ian Lance Taylor <iant@golang.org>
29539 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
29540 and set current index for other optimizations.
29542 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
29544 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
29545 nonimmediate_operand as operand 2 predicate.
29546 (vec_set<VF2_512_256:mode>_0): Ditto.
29547 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
29548 (*vec_concatv2si): Remove alternative 2.
29549 (*vec_concatv4si_0): Use vm constraint for alternative 0.
29550 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
29551 (vec_concatv2di): Split alternatives 4,5,6 to ...
29552 (*vec_concatv2di_0) ... new pattern.
29554 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29557 * config/arm/arm.c (ldm_stm_operation_p) Set
29558 addr_reg_in_reglist correctly for first register.
29559 (load_multiple_sequence): Remove dead base check.
29560 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29562 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29565 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29566 Expose as @aarch64_pred_mov.
29567 * config/aarch64/aarch64.c (aarch64_classify_address):
29568 Use expand_insn which legitimizes operands.
29570 2019-02-13 Martin Liska <mliska@suse.cz>
29572 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29573 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29574 and pointer_offset fields.
29575 (initialize_argument_information): Remove usage of dead
29577 * cgraph.h (struct cgraph_thunk_info): Remove
29578 add_pointer_bounds_args.
29579 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29581 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29583 * config/i386/i386.c (ix86_function_arg_advance): Remove
29585 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29586 (def_builtin): Remove usage of dead fields.
29587 (ix86_add_new_builtins): Likewise.
29588 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29589 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29590 (sem_function::init): Likewise.
29591 (sem_variable::merge): Likewise.
29592 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29593 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29594 * lto-cgraph.c (lto_output_node): Likewise.
29595 (lto_output_varpool_node): Likewise.
29596 (input_node): Likewise.
29597 (input_varpool_node): Likewise.
29598 * lto-streamer-out.c (lto_output): Likewise.
29599 * tree-inline.c (expand_call_inline): Remove usage of
29601 * tree-inline.h (struct copy_body_data): Likewise.
29602 * varpool.c (varpool_node::dump): Likewise.
29604 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29606 PR middle-end/89303
29607 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29608 into pt->vars_contains_escaped_heap instead of setting
29609 pt->vars_contains_escaped_heap to it.
29611 PR middle-end/89281
29612 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29613 INTVAL (size), compare it to GET_MODE_MASK instead of
29614 1 << GET_MODE_BITSIZE.
29617 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29618 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29621 2019-02-13 Martin Liska <mliska@suse.cz>
29624 * cfgrtl.c (remove_barriers_from_footer): New function.
29625 (try_redirect_by_replacing_jump): Use it.
29626 (cfg_layout_redirect_edge_and_branch): Likewise.
29628 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29630 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29631 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29632 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29633 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29634 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29635 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29637 * config/rs6000/rs6000.c (builtin_function_type)
29638 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29639 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29640 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29641 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29642 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29644 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29646 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29647 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29649 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29652 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29653 268678 and revision 268657.
29654 (*movti_internal): Likewise.
29656 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29659 * config/s390/s390.c (s390_decompose_address): Update comment.
29660 (s390_check_qrst_address): Reject invalid address forms after
29663 2019-02-12 Martin Liska <mliska@suse.cz>
29666 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29667 we need default values of funct_state for a function that
29670 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29672 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29673 the object to pick the size of stores on strict-alignment platforms.
29675 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29676 (*movdi_insn_sp32): Likewise.
29677 (*movdi_insn_sp64): Likewise.
29679 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29682 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29683 types that needs constructiong.
29684 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29686 2019-02-12 Richard Biener <rguenther@suse.de>
29688 PR tree-optimization/89253
29689 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29690 duplicate the loop.
29692 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29695 * input.c (selftest::test_line_offset_overflow): New selftest.
29696 (selftest::input_c_tests): Call it.
29698 2019-02-11 Martin Sebor <msebor@redhat.com>
29700 PR tree-optimization/88771
29701 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29702 when -Wstringop-overflow is set.
29703 (builtin_memref::builtin_memref): Adjust excessive upper bound
29704 only when lower bound is not excessive.
29705 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29706 -Wstringop-ovefflow.
29707 (maybe_diag_offset_bounds): Rename...
29708 (maybe_diag_access_bounds): ...to this.
29709 (check_bounds_or_overlap): Adjust for name change above.
29711 2019-02-11 Martin Sebor <msebor@redhat.com>
29714 * builtins.c (max_object_size): Move from here...
29715 * builtins.h (max_object_size): ...and here...
29716 * tree.c (max_object_size): ...to here...
29717 * tree.h (max_object_size): ...and here.
29719 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29721 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29722 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29723 for correct semantics.
29725 2019-02-11 Alan Modra <amodra@gmail.com>
29727 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29728 -mlongcall and -mpltseq.
29729 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29730 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29731 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29732 * config/rs6000/sysv4.opt (mpltseq): New option.
29733 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29734 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29735 support is lacking. Don't allow -mpltseq with -mbss-plt.
29736 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29737 -mpltseq given for ELFv1.
29738 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29739 Only use UNSPEC_PLTSEQ for inline PLT calls.
29740 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29741 use UNSPEC_PLTSEQ for inline PLT calls.
29742 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29743 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29744 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29745 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29746 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29747 (pltseq_mtctr_<mode>): Likewise.
29749 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29751 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29753 * configure: Regenerate.
29755 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29758 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29761 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29763 * function.c (assign_parm_setup_block): Use the stored
29764 size, not the passed size, when allocating stack-space,
29765 also for a parameter with alignment larger than
29766 MAX_SUPPORTED_STACK_ALIGNMENT.
29768 2019-02-11 Martin Liska <mliska@suse.cz>
29771 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29772 * ipa-inline.c (inline_small_functions): Likewise.
29773 * ipa-pure-const.c (propagate_pure_const): Likewise.
29774 (propagate_nothrow): Likewise.
29775 * ipa-reference.c (propagate): Likewise.
29776 * ipa-utils.c (struct searchc_env): Remove unused field.
29777 (searchc): Always search across AVAIL_INTERPOSABLE.
29778 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29779 the only called IPA pure const can properly not propagate
29780 across interposable boundary.
29781 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29783 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29785 * config/nds32/nds32.md (call_internal, call_value_internal,
29786 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29788 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29790 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29793 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29795 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29798 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29800 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29802 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29804 PR tree-optimization/89268
29805 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29806 if preds is non-NULL.
29808 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29811 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29814 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29816 * config/nds32/nds32.md (trap): New pattern.
29818 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29820 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29823 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29825 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29828 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29830 * ipa-visibility.c (localize_node): Also do not localize
29831 LDPR_PREVAILING_DEF_IRONLY_EXP.
29833 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29836 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29837 instead of type_with_linkage.
29839 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29842 * params.def (uninlined-function-insns, uninlined-function-time,
29843 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29844 bound so we don't get overflows.
29846 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29848 * config/rs6000/rs6000-string.c (expand_compare_loop,
29849 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29852 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29854 PR middle-end/89246
29855 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29856 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29857 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29859 2019-02-09 Alan Modra <amodra@gmail.com>
29862 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29863 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29866 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29868 PR middle-end/88560
29869 * lra-constraints.c (process_alt_operands): Don't increase reject
29870 for memory when offset memory is required.
29872 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29874 * config/s390/vector.md: Implement vector copysign.
29876 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29878 * expr.c (expand_constructor): Correct indentations.
29880 2019-02-08 Richard Biener <rguenther@suse.de>
29882 PR tree-optimization/89247
29883 * tree-if-conv.c: Include tree-cfgcleanup.h.
29884 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29885 (tree_if_conversion): Pass through predicate vector.
29886 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29887 inline, see if any if-converted loops we refrece in
29888 LOOP_VECTORIZED calls vanished and fixup.
29889 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29891 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29893 * config/s390/constraints.md (jdd): New constraint.
29895 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29898 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29899 upper 16 vector registers without TARGET_AVX512VL.
29900 (*movti_internal): Likewise.
29902 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29904 PR rtl-optimization/89234
29905 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29906 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29907 (copy_reg_eh_region_note_backward): Likewise.
29909 2019-02-08 Richard Biener <rguenther@suse.de>
29911 PR middle-end/89223
29912 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29913 doesn't fit in HWI.
29914 (analyze_subscript_affine_affine): Handle failure from
29915 initialize_matrix_A.
29917 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29919 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29922 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29924 PR tree-optimization/86637
29925 PR tree-optimization/89235
29926 * tree-vect-loop.c (optimize_mask_stores): Add an
29927 auto_purge_vect_location sentinel to ensure that vect_location is
29929 * tree-vectorizer.c
29930 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29931 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29932 to ensure that vect_location is purged on exit.
29933 (pass_slp_vectorize::execute): Likewise, replacing the manual
29935 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29937 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29939 * config/aarch64/iterators.md (max_opp): New code_attr.
29940 (USMAX): New code iterator.
29941 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29942 (aarch64_smax): Likewise.
29943 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29944 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29947 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29950 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29951 for TARGET_AVX512VL.
29952 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29954 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29956 * config/s390/s390-builtin-types.def: Add new types.
29957 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29958 (s390_vec_xlw4): Make the memory operand into a const pointer.
29959 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29961 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29962 a new vector type with the alignment of the scalar memory operand.
29964 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29965 Jakub Jelinek <jakub@redhat.com>
29968 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29969 arm_count_ldrdstrd_insns): New declarations.
29970 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29972 (valid_operands_ldrd_strd): New function.
29973 (arm_count_ldrdstrd_insns): New function.
29974 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29975 sets instead of single DImode set and define new insns to match this.
29977 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29979 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29980 Make it a C initializer.
29982 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29985 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29987 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29989 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29990 Use neon_dot<q> for type.
29991 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29993 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29995 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29996 Use neon_dot<q> for type.
29997 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29998 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30000 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30002 PR rtl-optimization/89225
30003 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30006 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30008 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30009 after restoring registers saved to allocate the frame on Windows.
30011 2019-02-06 Richard Biener <rguenther@suse.de>
30013 PR tree-optimization/89182
30014 * graphite.h (cached_scalar_evolution_in_region): Declare.
30015 * graphite.c (struct seir_cache_key): New.
30016 (struct sese_scev_hash): Likewise.
30017 (seir_cache): New global.
30018 (cached_scalar_evolution_in_region): New function.
30019 (graphite_transform_loops): Allocate and release seir_cache.
30020 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30021 cached_scalar_evolution_in_region.
30022 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30024 (scop_detection::graphite_can_represent_expr: Use
30025 cached_scalar_evolution_in_region.
30026 (scop_detection::stmt_simple_for_scop_p): Likewise.
30027 (find_params_in_bb): Likewise.
30028 (gather_bbs::before_dom_children): Likewise.
30029 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30030 (add_loop_constraints): Likewise.
30032 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30034 PR middle-end/89210
30035 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30036 operand to new_unary_operation only if both element types are integral
30037 and it isn't a widening conversion. Return NULL_TREE if
30038 new_unary_operation failed.
30040 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30043 * config/s390/s390.md: Remove load and test FP splitter.
30045 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30048 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30049 expand_compare_loop, expand_block_compare_gpr,
30050 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30051 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30052 #include "profile-count.h" and "predict.h" for types and functions
30053 needed to work with REG_BR_PROB notes.
30055 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30058 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30059 for the long branch case.
30061 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30064 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30065 can throw, non-call exceptions are enabled and we can't delete
30066 dead exceptions or alter cfg. Set must_clean if
30067 delete_insn_and_edges returns true, don't set it blindly for calls.
30068 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30070 PR rtl-optimization/89195
30071 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30072 of the original MEM.
30074 2019-02-05 Martin Liska <mliska@suse.cz>
30076 PR gcov-profile/89000
30077 * gcov.c (function_summary): Remove argument.
30078 (file_summary): New function.
30079 (print_usage): Replace tabs with spaces.
30080 (generate_results): Use new function file_summary.
30082 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30085 * optabs.c (prepare_cmp_insn): Pass x and y to
30086 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30088 2019-02-05 Richard Biener <rguenther@suse.de>
30090 PR middle-end/89150
30091 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30092 (struct bitmap_element): Drop chain_prev so we properly recurse on
30093 the prev member, supporting tree views.
30094 (struct bitmap_head): GTY skip the obstack member.
30096 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30099 * doc/extend.texi (Vector Extensions): Add an example of using vector
30100 types together with x86 intrinsics.
30102 2019-02-04 Alan Modra <amodra@gmail.com>
30104 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30105 str[] size to 160, and comment.
30107 2019-02-04 Alan Modra <amodra@gmail.com>
30109 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30110 (rs6000_pltseq_template): Guard output of TLS markers with
30111 TARGET_TLS_MARKERS.
30112 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30113 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30114 to use inline PLT sequences.
30115 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30116 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30117 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30119 2019-02-04 Martin Liska <mliska@suse.cz>
30122 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30123 out when ipa_fn_summaries does not contain entry for callee.
30125 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30127 * config/sparc/sparc.h: Remove superfluous blank lines.
30128 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30129 (got_register_rtx): ...this.
30130 (sparc_got): Adjust to above renaming.
30131 (sparc_tls_got): Likewise.
30132 (sparc_delegitimize_address): Likewise.
30133 (sparc_output_mi_thunk): Likewise.
30134 (sparc_init_pic_reg): Likewise.
30135 (save_local_or_in_reg_p): Fix test on the GOT register.
30136 (USE_HIDDEN_LINKONCE): Move around.
30137 (get_pc_thunk_name): Likewise.
30138 (gen_load_pcrel_sym): Likewise.
30139 (load_got_register): Likewise.
30141 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30143 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30144 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30146 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30148 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30149 into consideration.
30151 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30153 * config.gcc (with_nds32_lib, glibc):
30154 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30155 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30156 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30158 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30161 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30162 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30163 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30164 (*rcpsf2_sse): Ditto.
30165 (*rsqrtsf2_sse): Ditto.
30166 (sse4_1_round<mode<2): Ditto.
30168 2019-02-03 Richard Biener <rguenther@suse.de>
30171 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30174 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30176 PR middle-end/87887
30177 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30178 Punt with warning on aggregate return or argument types. Ignore
30179 type/mode checking for uniform arguments.
30181 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30183 * combine.c (try_combine): Do not print "Can't combine" messages unless
30184 printing failed combination attempts.
30186 2019-02-01 Martin Jambor <mjambor@suse.cz>
30189 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30190 segment and global segment variables before making them static.
30192 2019-02-01 Martin Jambor <mjambor@suse.cz>
30194 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30195 missed optimization dump with dump_enabled_p.
30197 2019-02-01 Richard Biener <rguenther@suse.de>
30199 PR middle-end/88597
30200 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
30201 the instantiate cache.
30202 (instantiate_scev_binary): Elide second operand procesing
30203 if equal to the first.
30204 * tree-chrec.c (chrec_contains_symbols): Add visited set.
30205 (chrec_contains_undetermined): Likewise.
30206 (tree_contains_chrecs): Likewise.
30208 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
30210 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
30212 2019-02-01 Jakub Jelinek <jakub@redhat.com>
30214 PR tree-optimization/89143
30215 * wide-int-range.h (wide_int_range_absu): Declare.
30216 * wide-int-range.cc (wide_int_range_absu): New function.
30217 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
30219 PR tree-optimization/88107
30220 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
30221 instead of assertion that eh_region_outermost is non-NULL, if it
30222 is NULL, set *ALL to true and return NULL.
30223 (move_sese_region_to_fn): Adjust caller, if all is set, call
30224 duplicate_eh_regions with NULL region.
30226 2019-02-01 Richard Biener <rguenth@suse.de>
30228 PR rtl-optimization/88593
30229 * mode-switching.c (optimize_mode_switching): Free dominators before
30230 calling cleanup_cfg.
30232 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30234 PR tree-optimization/88932
30235 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
30237 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30239 PR middle-end/89137
30240 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
30241 bogus clang warning.
30243 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
30246 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
30247 alternative to avoid partial SSE register stall for TARGET_AVX.
30248 (truncdfsf2): Ditto.
30249 (sse4_1_round<mode>2): Ditto.
30251 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
30253 PR tree-optimization/89008
30254 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
30255 process anything of the form X * 0.
30257 2019-01-31 Richard Biener <rguenther@suse.de>
30259 PR tree-optimization/89135
30260 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
30261 with abnormal preds.
30263 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30266 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
30267 always_inline callees into no_sanitize_address callers.
30269 2019-01-31 Richard Biener <rguenther@suse.de>
30271 PR rtl-optimization/89115
30272 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
30274 2019-01-30 Martin Sebor <msebor@redhat.com>
30277 * doc/extend.texi (cast to a union): Correct and expand.
30279 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
30281 PR rtl-optimization/87246
30282 * lra-constraints.c (simplify_operand_subreg): Reload memory
30283 in subreg if the address became invalid.
30285 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
30288 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
30289 Disable for little-endian.
30291 2019-01-30 Richard Biener <rguenther@suse.de>
30293 PR rtl-optimization/89115
30294 * opts.c (default_options_optimization): Reduce
30295 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
30296 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
30299 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
30301 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
30302 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
30303 type of vector element when vec_extract is implemented by direct
30306 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
30308 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
30310 2019-01-30 Richard Biener <rguenther@suse.de>
30312 PR tree-optimization/89111
30313 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
30314 canonicalization to appropriately sized access types.
30316 2019-01-30 Jakub Jelinek <jakub@redhat.com>
30319 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
30320 for arguments to functions that are TU-local and shouldn't be
30321 referenced by assembly.
30323 2019-01-30 Ulrich Drepper <drepper@redhat.com>
30325 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
30328 2019-01-29 Martin Sebor <msebor@redhat.com>
30331 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
30333 2019-01-29 Jakub Jelinek <jakub@redhat.com>
30337 * omp-simd-clone.c (simd_clone_clauses_extract)
30338 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
30339 OMP_CLAUSE_ALIGNED_ALIGNMENT.
30341 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
30343 * config.gcc: Force .init_array for ARC.
30345 2019-01-29 Richard Biener <rguenther@suse.de>
30348 * dwarf2out.c (collect_skeleton_dies): New helper.
30349 (copy_decls_for_unworthy_types): Call it.
30350 (build_abbrev_table): Assert we do not try to replace
30351 DW_AT_signature refs with local refs.
30353 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30355 PR middle-end/89002
30356 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
30357 for lastprivate/linear IV, push gimplify context around gimplify_assign
30358 and, if it needed any temporaries, pop it into a gimple bind around the
30361 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
30363 * common.opt (-Wattribute-alias): Remove "no-" from name.
30364 Make -Wattribute-alias command line option and
30365 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30367 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30370 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30371 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30373 (bmi2): Add missing @opindex.
30374 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30375 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30376 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30377 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30378 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30379 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30380 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30381 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30382 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30383 xsavec, xsaveopt and xsaves options.
30385 2019-01-28 Richard Biener <rguenther@suse.de>
30388 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30391 2019-01-28 Richard Biener <rguenther@suse.de>
30393 PR tree-optimization/88739
30394 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30395 BIT_FIELD_REFs only are applied to mode-precision operands
30396 when they are integral.
30397 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30398 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30399 BIT_FIELD_REFs of non-mode-precision integral operands.
30401 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30404 * config/i386/sse.md
30405 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30406 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30407 first constants in pairs are multiples of 2. Formatting fixes.
30408 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30409 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30410 first constants in each quadruple are multiples of 4. Formatting fixes.
30412 2019-01-26 Martin Jambor <mjambor@suse.cz>
30415 * tree-inline.c: Include tree-cfgcleanup.h.
30416 (delete_unreachable_blocks_update_callgraph): Move...
30417 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30418 ...here, make externally visible, make second argument bool, adjust
30420 * tree-cfgcleanup.c: Include cgraph.h.
30421 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
30423 * ipa-prop.c: Include tree-cfgcleanup.h.
30424 (ipcp_transform_function): Call
30425 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
30427 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
30429 PR rtl-optimization/88846
30430 * ira.c (process_set_for_memref_referenced_p): New.
30431 (memref_referenced_p): Add new param. Use
30432 process_set_for_memref_referenced_p. Add new switch cases.
30433 (memref_used_between_p): Pass new arg to memref_referenced_p.
30435 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
30438 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
30439 argument ABI_BREAK. Set to true if the calculated alignment has
30440 changed in gcc-9. Check bit-fields for their base type alignment.
30441 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
30442 (aarch64_function_arg_boundary): Likewise.
30443 (aarch64_gimplify_va_arg_expr): Likewise.
30445 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30447 PR middle-end/89037
30448 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
30449 instead of accessing TREE_INT_CST_ELT directly.
30451 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
30453 * doc/sourcebuild.texi (Environment attributes): Add fenv and
30454 fenv_exceptions description.
30456 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
30458 PR rtl-optimization/87763
30459 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
30460 Allow SUBREG when matching CC_NZmode compare.
30462 2019-01-25 Richard Biener <rguenther@suse.de>
30464 PR tree-optimization/89049
30465 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
30466 Look at the pattern stmt to determine if the stmt is vectorized.
30468 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30470 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
30471 (pred_mov<mode>): Handle all-register forms using both a new
30472 alternative and a split.
30474 2019-01-25 Richard Biener <rguenther@suse.de>
30476 PR tree-optimization/86865
30477 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30478 Reject non-do-while loops.
30480 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
30482 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
30483 * config/rs6000/constraints.md (Q constraint): Use REG_P.
30484 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
30485 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30486 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
30487 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30488 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
30489 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
30490 vlogical_operand, gpc_reg_operand, int_reg_operand,
30491 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
30492 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
30493 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
30494 (save_world_operation, restore_world_operation, lmw_operation,
30495 stmw_operation): Use MEM_P and REG_P.
30496 (tie_operand): Use MEM_P.
30497 (vrsave_operation, crsave_operation): Use REG_P.
30498 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
30499 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
30500 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
30501 (call_operand): Use HARD_REGISTER_P.
30502 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
30504 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
30505 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
30506 quad_aligned_load_p, replace_swapped_aligned_store,
30507 recombine_lvx_pattern, replace_swapped_aligned_load,
30508 recombine_stvx_pattern): Use MEM_P.
30509 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
30510 Use MEM_P and SYMBOL_REF_P.
30511 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
30512 (insn_is_swappable_p): Use REG_P and MEM_P.
30513 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
30514 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
30516 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
30517 Use CONST_DOUBLE_P.
30518 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
30520 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
30521 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
30522 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
30523 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
30525 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30526 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
30527 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
30528 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
30529 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
30530 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
30531 rs6000_split_logical_di): Use CONST_INT_P.
30532 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
30533 REG_P and SYMBOL_REF_P.
30534 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
30535 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
30536 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
30537 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
30538 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
30539 (small_data_operand, print_operand_address): Use CONST_INT_P and
30541 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
30542 (rs6000_init_hard_regno_mode_ok, direct_move_p):
30543 Use HARD_REGISTER_NUM_P.
30544 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
30545 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
30546 SUBREG_P and SYMBOL_REF_P.
30547 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
30548 and HARD_REGISTER_NUM_P.
30549 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
30551 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30552 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30554 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30555 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30556 find_addr_reg): Use REG_P.
30557 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30558 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30559 (offsettable_ok_by_alignment, constant_pool_expr_p,
30560 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30561 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30562 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30563 rs6000_assemble_integer, create_TOC_reference,
30564 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30565 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30566 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30567 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30568 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30569 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30570 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30571 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30572 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30573 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30574 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30575 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30576 and cbranch<mode>4): Use CONST_INT_P.
30577 (multiple define_splits): Use REG_P and SUBREG_P.
30578 (define_expands call, call_value): Use MEM_P.
30579 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30580 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30581 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30582 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30583 and HARD_REGISTER_NUM_P.
30584 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30586 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30588 PR rtl-optimization/88948
30589 * rtl.h (prepare_copy_insn): New prototype.
30590 * gcse.c (prepare_copy_insn): New function, split out from
30591 process_insert_insn.
30592 (process_insert_insn): Use prepare_copy_insn.
30593 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30594 instead of gen_move_insn.
30596 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30599 * config/i386/i386.c (ix86_pic_register_p): Return true for
30600 UNSPEC_SET_GOT too.
30602 PR tree-optimization/88964
30603 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30604 punt if HONOR_SNANS (chrec).
30606 PR middle-end/89015
30607 * tree-nested.c (convert_nonlocal_reference_stmt,
30608 convert_local_reference_stmt, convert_tramp_reference_stmt,
30609 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30610 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30611 or GIMPLE_OMP_TASK.
30613 PR tree-optimization/89027
30614 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30615 for "omp simd array" variables.
30617 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30620 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30621 force the alignment of m_val.
30623 2019-01-24 Richard Biener <rguenther@suse.de>
30626 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30627 When in "legacy" debug mode make sure to reset self-origins.
30629 2019-01-24 Martin Liska <mliska@suse.cz>
30631 PR gcov-profile/88994
30632 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30633 result will be always smaller or equal to the original.
30634 * gcov.c (mangle_name): Fix else branch where we should
30635 also copy to PTR and shift the pointer.
30637 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30639 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30640 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30642 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30644 * common/config/i386/i386-common.c
30645 (OPTION_MASK_ISA_ENQCMD_SET,
30646 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30647 (ix86_handle_option): Handle -menqcmd.
30648 * config.gcc (enqcmdintrin.h): New header file.
30649 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30650 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30652 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30654 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30655 __builtin_ia32_enqcmds): New builtins.
30656 * config/i386/i386-c.c (__ENQCMD__): New macro.
30657 * config/i386/i386-option.c (ix86_target_string): Add
30659 (ix86_valid_target_attribute_inner_p): Likewise.
30660 * config/i386/i386-expand.c
30661 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30662 IX86_BUILTIN_ENQCMDS.
30663 * config/i386/i386.h (TARGET_ENQCMD): New.
30664 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30665 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30666 (movdir64b_<mode>): Parameterize to enable share expansion code
30667 with ENQCMD in function ix86_expand_builtin.
30668 * config/i386/i386.opt: Add -menqcmd.
30669 * config/i386/immintrin.h: Include enqcmdintrin.h.
30670 * config/i386/enqcmdintrin.h: New intrinsic file.
30671 * doc/invoke.texi: Add -menqcmd.
30673 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30674 Steve Ellcey <sellcey@marvell.com>
30677 * recog.c (address_operand): Return false on wrong mode for address.
30678 (constrain_operands): Check for mode with 'p' constraint.
30680 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30683 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30684 Disparage MMX alternative.
30685 (sse2_cvtpd2pi): Ditto.
30686 (sse2_cvttpd2pi): Ditto.
30688 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30691 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30692 use-after-free of the result of
30693 aarch64_get_extension_string_for_isa_flags.
30695 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30698 * doc/extend.texi: Document break and continue behavior in
30699 statement expressions.
30701 2019-01-23 Richard Biener <rguenther@suse.de>
30703 PR tree-optimization/89008
30704 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30705 not leave another stray operand.
30707 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30709 * BASE-VER: Bump to 9.0.1.
30711 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30713 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30714 thunk that returns by reference, use the type of the return object
30715 of the thunk instead of that of the alias to build the dereference.
30717 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30719 * config/arc/atomic.md: Add operand to DMB instruction.
30721 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30723 PR tree-optimization/88964
30724 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30725 build_zero_cst instead of build_int_cst. Return false for loop
30726 invariants which honor signed zeros.
30728 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30730 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30732 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30735 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30736 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30737 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30739 PR middle-end/88968
30740 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30741 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30744 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30745 Disable for little endian.
30747 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30750 * config/arm/arm.c (arm_needs_double_word_align): Check
30751 DECL_BIT_FIELD_TYPE.
30753 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30754 H.J. Lu <hongjiu.lu@intel.com>
30757 * config/i386/i386-builtin.def: Add mask2 to all builtin
30758 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30760 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30761 (BDESC_FIRST): Likewise.
30762 (define_builtin): Add an argument for mask2. Updated to handle
30763 both ix86_isa_flags and ix86_isa_flags2.
30764 (define_builtin_const): Likewise.
30765 (define_builtin_pure): Likewise.
30766 (define_builtin2): Deleted.
30767 (define_builtin_const2): Likewise.
30768 (builtin_description): Add a member, mask2.
30769 (bdesc_*): Add mask2 to builtin initializations.
30770 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30771 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30773 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30775 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30778 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30781 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30784 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30785 alignment is dominated by a bitfield with 64-bit aligned base type.
30786 (arm_function_arg): Emit a warning if the alignment has changed since
30787 earlier GCC releases.
30788 (arm_function_arg_boundary): Likewise.
30789 (arm_setup_incoming_varargs): Likewise.
30791 2019-01-22 Richard Biener <rguenther@suse.de>
30793 PR tree-optimization/88862
30794 * graphite-scop-detection.c
30795 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30797 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30799 * doc/extend.tex (AMD GCN Function Attributes): New section.
30800 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30801 * doc/invoke.texi (AMD GCN Options): New section.
30802 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30804 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30806 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30807 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30809 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30811 PR tree-optimization/88044
30812 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30813 is false in the first iteration, but !every_iteration, return false
30814 instead of true with niter->niter zero.
30816 PR rtl-optimization/88904
30817 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30818 any nonequal registers before processing BB_END (b).
30821 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30823 (expand_binop_directly, expand_doubleword_clz,
30824 expand_doubleword_popcount, expand_ctz, expand_ffs,
30825 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30827 PR rtl-optimization/49429
30829 PR rtl-optimization/86334
30831 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30832 addressable from here...
30833 (emit_block_op_via_libcall): ... to here.
30835 2019-01-22 Richard Biener <rguenther@suse.de>
30837 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30838 auto_vec for cost vector to fix memleak.
30839 (vectorize_fold_left_reduction): Properly gather SLP defs.
30840 (vectorizable_comparison): Do not swap operands to properly
30843 2019-01-22 Alan Modra <amodra@gmail.com>
30846 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30847 stays a reg. Allow a const_int.
30848 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30849 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30850 (IS_NOMARK_TLSGETADDR): Define.
30851 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30852 (rs6000_output_tlsargs): New function.
30853 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30854 __tls_get_addr call takes an arg.
30855 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30856 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30858 (call_value_nonlocal_sysv): ..or here, delete split.
30859 (tls_gdld_nomark): Delete.
30860 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30861 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30862 (call_value_nonlocal_sysv): Likewise.
30863 (call_value_nonlocal_sysv_secure): Likewise.
30864 (call_value_nonlocal_aix): Likewise.
30865 (call_value_indirect_aix): Likewise.
30866 (call_value_indirect_elfv2): Likewise.
30867 (call_value_local32, call_value_local64): Disable for no-mark tls.
30868 (call_value_local_aix): Likewise.
30870 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30873 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30874 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30876 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30878 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30879 string contents as hash_map keys.
30881 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30884 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30885 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30886 instead of TYPE_ALIGN.
30887 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30888 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30889 pointer from TYPE_STUB_DECL.
30891 2019-01-21 Richard Biener <rguenther@suse.de>
30893 PR tree-optimization/88934
30894 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30895 at the possibly non-constant operand.
30896 (vect_get_constant_vectors): Adjust.
30898 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30901 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30902 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30903 instead of _X86INTRIN_H_INCLUDED.
30904 * onfig/i386/clwbintrin.h: Likewise.
30905 * config/i386/pkuintrin.h: Likewise.
30906 * config/i386/prfchwintrin.h: Likewise.
30907 * config/i386/rdseedintrin.h: Likewise.
30908 * config/i386/wbnoinvdintrin.h: Likewise.
30909 * config/i386/xsavecintrin.h: Likewise.
30910 * config/i386/xsavesintrin.h: Likewise.
30911 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30912 * config/i386/xsaveintrin.h: Likewise.
30913 * config/i386/xsaveoptintrin.h: Likewise.
30914 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30915 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30916 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30917 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30918 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30919 * config/i386/immintrin.h: Here.
30921 2019-01-20 Martin Jambor <mjambor@suse.cz>
30924 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30925 with aa_walk_budget.
30926 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30927 aa_walk_budget_p parameter.
30928 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30929 walk. Updated all callers.
30930 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30931 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30933 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30934 parameter info. Extract info from fbi. Pass fbi to recursive calls
30935 and to unmodified_parm.
30936 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30937 info, updated call to will_be_nonconstant_expr_predicate.
30938 (param_change_prob): New parameter fbi, limit AA walking.
30939 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30940 calls to various above functions.
30941 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30942 parameter. Use it to limit AA walking.
30943 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30944 fbi, limit AA walk.
30945 (detect_type_change): New parameter fbi, pass it on to
30946 detect_type_change_from_memory_writes.
30947 (detect_type_change_ssa): Likewise.
30948 (aa_overwalked): Removed.
30949 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30950 accordingly, adjust to the neew AA limiting scheme.
30951 (parm_ref_data_preserved_p): Likewise.
30952 (ipa_compute_jump_functions_for_edge): Adjust call to
30954 (ipa_analyze_call_uses): Likewise.
30955 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30956 (ipa_analyze_node): Initialize aa_walk_budget.
30957 (ipcp_transform_function): Likewise.
30958 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30959 to get_dynamic_type.
30961 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30963 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30964 outside of #if CHECKING_P code.
30966 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30968 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30969 New function, split out from...
30970 (loop_versioning::analyze_stride): ...here.
30971 (loop_versioning::find_per_loop_multiplication): Use gassign.
30972 (loop_versioning::analyze_term_using_scevs): Return a success code.
30973 (loop_versioning::analyze_arbitrary_term): New function.
30974 (loop_versioning::analyze_address_fragment): Use
30975 analyze_arbitrary_term if all else fails.
30977 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30980 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30983 2019-01-18 Richard Biener <rguenther@suse.de>
30985 PR tree-optimization/88903
30986 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30987 scalar stmts a SLP shift amount is composed of when detecting
30990 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30993 * config/arm/arm-cpus.in (mp): New feature.
30994 (sec): New feature.
30995 (fgroup ARMv7ve): Add mp and sec features.
30996 (arch armv7-a): Add options to allow mp and sec extensions.
30997 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30998 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30999 extenstions to the base architecture.
31000 (cpu cortex-a8): Add sec extension to the base architecture.
31001 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31002 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31003 variants down to the base v7-a varaint.
31004 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31005 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31006 of permitted extensions for -march=armv7-a and for
31007 -mcpu=generic-armv7-a.
31009 2019-01-18 Martin Liska <mliska@suse.cz>
31011 * params.def: Fix comment.
31012 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31014 (gimple_gen_ic_func_profiler): Likewise.
31016 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31018 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31019 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31020 and put in error checks for stack protector guard options.
31021 (aarch64_stack_protect_guard): New.
31022 (TARGET_STACK_PROTECT_GUARD): Define.
31023 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31024 (reg_stack_protect_address<mode>): New.
31025 (stack_protect_set): Adjust for SSP_GLOBAL.
31026 (stack_protect_test): Likewise.
31027 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31028 (-mstack-protector-guard): Likewise.
31029 (-mstack-protector-guard-offset): Likewise.
31031 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31033 PR tree-optimization/86214
31034 * tree-inline.h (struct copy_body_data): Add
31035 add_clobbers_to_eh_landing_pads member.
31036 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31037 (copy_edges_for_bb): Call it if EH edge destination is <
31038 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31039 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31040 if flag_stack_reuse != SR_NONE and clear it afterwards.
31042 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31045 * doc/install.texi (with-multilib-list): Document for aarch64.
31047 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31050 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31051 (("..."))) with ("...").
31053 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31055 * doc/extend.texi (Built-in Functions for Memory Model Aware
31056 Atomic Operations): Document atomic fetch and nand.
31058 2019-01-18 Martin Liska <mliska@suse.cz>
31059 Richard Biener <rguenther@suse.de>
31061 PR middle-end/88587
31062 * cgraph.h (create_version_clone_with_body): Add new argument
31064 * cgraphclones.c (cgraph_node::create_version_clone): Add
31065 DECL_ATTRIBUTES to a newly created decl. And call
31066 valid_attribute_p so that proper cl_target_optimization_node
31067 is set for the newly created declaration.
31068 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31070 (expand_target_clones): Do not call valid_attribute_p, it must
31072 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31075 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31078 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31079 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31080 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31082 2019-01-17 Martin Sebor <msebor@redhat.com>
31084 PR middle-end/88273
31085 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31086 Handle anti-ranges the same as no range at all.
31088 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31090 * config/aarch64/aarch64.c (cgraph.h): New include.
31091 (intl.h): New include.
31092 (supported_simd_type): New function.
31093 (currently_supported_simd_type): Ditto.
31094 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31095 (aarch64_simd_clone_adjust): Ditto.
31096 (aarch64_simd_clone_usable): Ditto.
31097 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31098 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31099 (TARGET_SIMD_CLONE_USABLE): Ditto.
31100 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31101 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31104 2019-01-17 Martin Sebor <msebor@redhat.com>
31106 PR tree-optimization/88800
31107 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31108 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31109 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31110 redundant argument. Add new argument and issue diagnostics under
31111 its control. Detect out-of-bounds access even with warnings
31113 (check_bounds_or_overlap): Change return type. Add argument.
31114 (wrestrict_dom_walker::check_call): Adjust.
31115 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31116 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31117 check_bounds_or_overlap's return value.
31118 (handle_builtin_stxncpy): Same.
31119 (handle_builtin_strcat): Same.
31121 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31122 Kwok Cheung Yeung <kcy@codesourcery.com>
31123 Julian Brown <julian@codesourcery.com>
31124 Tom de Vries <tom@codesourcery.com>
31126 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31128 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31130 * doc/sourcebuild.texi: Document dg-require-effective-target
31131 llvm_binutils and offload_gcn.
31133 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31134 Kwok Cheung Yeung <kcy@codesourcery.com>
31135 Julian Brown <julian@codesourcery.com>
31136 Tom de Vries <tom@codesourcery.com>
31138 * doc/sourcebuild.texi: Document dg-required-effective-target
31141 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31142 Kwok Cheung Yeung <kcy@codesourcery.com>
31143 Julian Brown <julian@codesourcery.com>
31144 Tom de Vries <tom@codesourcery.com>
31145 Jan Hubicka <hubicka@ucw.cz>
31146 Martin Jambor <mjambor@suse.cz>
31148 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31149 * configure.ac: Check for dlopen.
31150 * configure: Regenerate.
31152 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31153 Kwok Cheung Yeung <kcy@codesourcery.com>
31154 Julian Brown <julian@codesourcery.com>
31155 Tom de Vries <tom@codesourcery.com>
31156 Jan Hubicka <hubicka@ucw.cz>
31157 Martin Jambor <mjambor@suse.cz>
31159 * common/config/gcn/gcn-common.c: New file.
31160 * config/gcn/driver-gcn.c: New file.
31161 * config/gcn/gcn-builtins.def: New file.
31162 * config/gcn/gcn-hsa.h: New file.
31163 * config/gcn/gcn-modes.def: New file.
31164 * config/gcn/gcn-opts.h: New file.
31165 * config/gcn/gcn-passes.def: New file.
31166 * config/gcn/gcn-protos.h: New file.
31167 * config/gcn/gcn-run.c: New file.
31168 * config/gcn/gcn-tree.c: New file.
31169 * config/gcn/gcn.c: New file.
31170 * config/gcn/gcn.h: New file.
31171 * config/gcn/gcn.opt: New file.
31172 * config/gcn/t-gcn-hsa: New file.
31174 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31175 Kwok Cheung Yeung <kcy@codesourcery.com>
31176 Julian Brown <julian@codesourcery.com>
31177 Tom de Vries <tom@codesourcery.com>
31178 Jan Hubicka <hubicka@ucw.cz>
31179 Martin Jambor <mjambor@suse.cz>
31181 * config/gcn/constraints.md: New file.
31182 * config/gcn/gcn-valu.md: New file.
31183 * config/gcn/gcn.md: New file.
31184 * config/gcn/predicates.md: New file.
31186 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31188 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31189 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31190 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31191 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31193 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31196 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
31197 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
31198 it and document registers.
31200 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31202 * config/aarch64/aarch64.c (ares_tunings): Define.
31203 * config/aarch64/aarch64-cores.def (ares): Use the above.
31205 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31209 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
31211 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
31212 (_mm512_fixupimm_round_pd): Update parameters and builtin.
31213 (_mm512_maskz_fixupimm_round_pd): Ditto.
31214 (_mm512_fixupimm_round_ps): Ditto.
31215 (_mm512_maskz_fixupimm_round_ps): Ditto.
31216 (_mm_fixupimm_round_sd): Ditto.
31217 (_mm_maskz_fixupimm_round_sd): Ditto.
31218 (_mm_fixupimm_round_ss): Ditto.
31219 (_mm_maskz_fixupimm_round_ss): Ditto.
31220 (_mm512_fixupimm_pd): Ditto.
31221 (_mm512_maskz_fixupimm_pd): Ditto.
31222 (_mm512_fixupimm_ps): Ditto.
31223 (_mm512_maskz_fixupimm_ps): Ditto.
31224 (_mm_fixupimm_sd): Ditto.
31225 (_mm_maskz_fixupimm_sd): Ditto.
31226 (_mm_fixupimm_ss): Ditto.
31227 (_mm_maskz_fixupimm_ss): Ditto.
31228 (_mm512_mask_fixupimm_round_pd): Update builtin.
31229 (_mm512_mask_fixupimm_round_ps): Ditto.
31230 (_mm_mask_fixupimm_round_sd): Ditto.
31231 (_mm_mask_fixupimm_round_ss): Ditto.
31232 (_mm512_mask_fixupimm_pd): Ditto.
31233 (_mm512_mask_fixupimm_ps): Ditto.
31234 (_mm_mask_fixupimm_sd): Ditto.
31235 (_mm_mask_fixupimm_ss): Ditto.
31236 * config/i386/avx512vlintrin.h:
31237 (_mm256_fixupimm_pd): Update parameters and builtin.
31238 (_mm256_maskz_fixupimm_pd): Ditto.
31239 (_mm256_fixupimm_ps): Ditto.
31240 (_mm256_maskz_fixupimm_ps): Ditto.
31241 (_mm_fixupimm_pd): Ditto.
31242 (_mm_maskz_fixupimm_pd): Ditto.
31243 (_mm_fixupimm_ps): Ditto.
31244 (_mm_maskz_fixupimm_ps): Ditto.
31245 (_mm256_mask_fixupimm_pd): Update builtin.
31246 (_mm256_mask_fixupimm_ps): Ditto.
31247 (_mm_mask_fixupimm_pd): Ditto.
31248 (_mm_mask_fixupimm_ps): Ditto.
31249 * config/i386/i386-builtin-types.def: Add new types and remove
31251 * config/i386/i386-builtin.def: Update builtin definitions.
31252 * config/i386/i386.c: Handle new builtin types and remove useless ones.
31253 * config/i386/sse.md: Update VFIXUPIMM* patterns.
31254 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31255 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31256 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
31257 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31258 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31259 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
31260 * config/i386/subst.md:
31261 (round_saeonly_sd_mask_operand4): Add new subst_attr.
31262 (round_saeonly_sd_mask_op4): Ditto.
31263 (round_saeonly_expand_operand5): Ditto.
31264 (round_saeonly_expand): Update.
31266 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31270 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
31272 * config/i386/sse.md: Combine VFIXUPIMM* patterns
31273 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31274 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31275 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
31276 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31277 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31278 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
31280 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31284 2018-12-15 Jakub Jelinek <jakub@redhat.com>
31287 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
31288 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
31289 instead of UNSPEC_FIXUPIMM.
31291 2019-01-17 Richard Biener <rguenther@suse.de>
31294 * dwarf2out.c (want_pubnames): Never generate pubnames sections
31295 and friends for the LTO part of debug info.
31297 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31299 PR tree-optimization/86214
31300 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
31303 PR rtl-optimization/88870
31304 * dce.c (deletable_insn_p): Never delete const/pure calls that can
31305 throw if we can't alter the cfg or delete dead exceptions.
31306 (mark_insn): Don't call find_call_stack_args for such calls.
31308 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
31310 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
31311 prototypes for vec_st.
31312 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
31313 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
31314 mainly on signed/unsigned long long and double.
31316 2019-01-16 David Malcolm <dmalcolm@redhat.com>
31319 * combine.c (delete_noop_moves): Convert to "bool" return,
31320 returning true if any edges are eliminated.
31321 (combine_instructions): Also return true if delete_noop_moves
31324 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31326 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
31327 correct max nunits for endian swap.
31328 (aarch64_expand_fcmla_builtin): Correct subreg code.
31329 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31330 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
31333 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
31335 * config/alpha/alpha.c (alpha_gimplify_va_arg):
31336 Handle split indirect COMPLEX_TYPE arguments.
31338 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
31341 * config/aarch64/aarch64-modes.def: Add comment about how the carry
31342 bit is set by add and compare.
31343 (CC_ADC): New CC_MODE.
31344 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
31345 to cache the code and mode of X. Adjust the shape of a CC_Cmode
31346 comparison. Add detection for CC_ADCmode.
31347 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
31349 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
31350 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
31351 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
31352 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
31353 to eliminate the need for zero-extending the operands.
31354 (add<mode>3_compareC_imm): Delete. Merge into ...
31355 (add<mode>3_compareC): ... this. Restructure the comparison to
31356 eliminate the need for zero-extending the operands.
31357 (add<mode>3_carryin): Use LTU for the overflow detection.
31358 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
31359 Reexpress comparison for overflow.
31360 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
31361 (add<mode>3_carryinC): Likewise.
31362 (add<mode>3_carryinV): Use LTU for carry between partials.
31363 * config/aarch64/predicates.md (aarch64_carry_operation): Update
31364 handling of CC_Cmode and add CC_ADCmode.
31365 (aarch64_borrow_operation): Likewise.
31367 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31369 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31370 Remove patternmode.
31371 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31372 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31373 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31374 Remove endianness conversion.
31376 2019-01-16 Martin Liska <mliska@suse.cz>
31378 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31380 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31382 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31383 (path_prefix_reset): Move up in the source file.
31384 (find_fortran_preinclude_file): Make complex search for the
31385 fortran header files.
31387 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31389 * godump.c (go_output_typedef): When outputting a typedef, refer
31390 to the underlying type by its name and not its structure.
31392 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31395 * tree.c (build_function_type): Assert that arg_types is not
31398 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31400 PR inline-asm/52813
31401 * doc/extend.texi: Document that listing the stack pointer in the
31402 clobber list of an asm is a deprecated feature.
31403 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31404 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31405 warning instead of an error for clobbers of the stack pointer.
31406 Add a note explaining why.
31408 2019-01-15 Richard Biener <rguenther@suse.de>
31411 * dwarf2out.c (gen_member_die): Do not generate inheritance
31414 2019-01-15 Richard Biener <rguenther@suse.de>
31416 PR tree-optimization/88855
31417 * tree-if-conv.c (combine_blocks): Collect
31418 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
31420 2019-01-15 Tom de Vries <tdevries@suse.de>
31423 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
31424 lhs == NULL_TREE for gang-level reduction.
31426 2019-01-15 Richard Biener <rguenther@suse.de>
31427 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31430 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
31431 return true if SSA_NAME is already marked in visited bitmap.
31432 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
31434 2019-01-15 Jakub Jelinek <jakub@redhat.com>
31436 PR tree-optimization/88775
31437 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
31438 equal == 0 equality pointer comparisons some more if compared in
31439 integral types and either one points to an automatic var and the
31440 other to a global, or we can prove at least one points to the middle
31441 or both point to start or both point to end.
31443 2019-01-14 Andi Kleen <ak@linux.intel.com>
31445 * Makefile.in: Lower autofdo sampling rate by 10x.
31446 * Makefile.tpl: Dito.
31448 2019-01-14 Tom Honermann <tom@honermann.net>
31450 * defaults.h: Define CHAR8_TYPE.
31452 2019-01-14 Martin Sebor <msebor@redhat.com>
31455 * doc/extend.texi (Darwin Format Checks): Clarify.
31457 2019-01-14 Richard Biener <rguenther@suse.de>
31459 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
31460 whether we are in (simplify ...) or (match ...) context.
31462 2019-01-14 Jakub Jelinek <jakub@redhat.com>
31464 PR rtl-optimization/88796
31465 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
31466 * cfgexpand.c (stack_protect_prologue): Initialize
31467 crtl->stack_protect_guard_decl.
31468 * function.c (stack_protect_epilogue): Use it instead of calling
31469 targetm.stack_protect_guard again.
31470 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
31471 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
31472 crtl->stack_protect_guard_decl.
31473 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
31474 on the returned MEM_EXPR.
31476 2019-01-12 Tom de Vries <tdevries@suse.de>
31478 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
31479 vector length using -fopenacc-dim.
31481 2019-01-12 Tom de Vries <tdevries@suse.de>
31483 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
31484 lengths into account.
31486 2019-01-12 Svante Signell <svante.signell@gmail.com>
31488 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
31489 (TARGET_CAN_SPLIT_STACK): Define.
31490 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
31492 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31494 * params.def (inline-unit-growth): Set to 40.
31496 2019-01-12 Jakub Jelinek <jakub@redhat.com>
31498 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
31500 2019-01-12 Tom de Vries <tdevries@suse.de>
31502 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
31503 region calling vector-partitionable routine, set default_vector_length
31506 2019-01-12 Tom de Vries <tdevries@suse.de>
31508 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
31509 variable default_vector_length.
31511 2019-01-12 Tom de Vries <tdevries@suse.de>
31513 PR middle-end/88703
31514 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
31515 from oacc_default_dims, as oacc_validate_dims would do it, and apply
31518 2019-01-12 Tom de Vries <tdevries@suse.de>
31520 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
31521 (nvptx_goacc_validate_dims): Add used parameter.
31522 * doc/tm.texi: Regenerate.
31523 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
31524 argument to call to targetm.goacc.validate_dims.
31525 (default_goacc_validate_dims): Add used
31527 * target.def (validate_dims): Add used parameter in DEFHOOK.
31528 * targhooks.h (default_goacc_validate_dims): Add used parameter.
31530 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31532 PR middle-end/85956
31534 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
31536 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
31537 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
31538 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
31539 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
31541 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
31543 PR rtl-optimization/87305
31545 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
31546 for little endian pseudos used as paradoxical subreg.
31548 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31550 PR tree-optimization/88693
31551 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31552 for STRING_CSTs that don't contain any NUL characters in the first
31553 TREE_STRING_LENGTH bytes.
31555 2019-01-11 Alan Modra <amodra@gmail.com>
31559 * genattrtab.c (min_fn): Don't translate values.
31560 (min_attr_value): Return INT_MAX when the value can't be calculated.
31561 Return minimum among any values that can be calculated.
31562 (max_attr_value): Adjust.
31564 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31566 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31568 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31570 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31571 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31572 (aarch64_return_call_with_max_clobbers): New function.
31573 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31574 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31576 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31577 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31578 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31579 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31580 * cselib.c (cselib_process_insn): Add argument to
31581 targetm.hard_regno_call_part_clobbered call.
31582 * ira-conflicts.c (ira_build_conflicts): Ditto.
31583 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31584 * lra-constraints.c (inherit_reload_reg): Ditto.
31585 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31586 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31587 argument. Call targetm.return_call_with_max_clobbers.
31588 Add argument to targetm.hard_regno_call_part_clobbered call.
31589 (calls_have_same_clobbers_p): New function.
31590 (process_bb_lives): Add call_insn and last_call_insn variables.
31591 Pass call_insn to check_pseudos_live_through_calls.
31592 Modify if stmt to check targetm.return_call_with_max_clobbers.
31593 Update setting of flush variable.
31594 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31596 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31597 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31598 targetm.hard_regno_call_part_clobbered call.
31599 * reginfo.c (choose_hard_reg_mode): Ditto.
31600 * regrename.c (check_new_reg_p): Ditto.
31601 * reload.c (find_equiv_reg): Ditto.
31602 * reload1.c (emit_reload_insns): Ditto.
31603 * sched-deps.c (deps_analyze_insn): Ditto.
31604 * sel-sched.c (init_regs_for_mode): Ditto.
31605 (mark_unavailable_hard_regs): Ditto.
31606 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31607 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31608 (return_call_with_max_clobbers): New target function.
31609 * doc/tm.texi: Regenerate.
31610 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31611 * hooks.c (hook_bool_uint_mode_false): Change to
31612 hook_bool_insn_uint_mode_false.
31613 * hooks.h (hook_bool_uint_mode_false): Ditto.
31615 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31617 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31618 (aarch64_remove_extra_call_preserved_regs): New function.
31619 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31620 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31621 * doc/tm.texi: Regenerate.
31622 * final.c (get_call_reg_set_usage): Call new hook.
31623 * target.def (remove_extra_call_preserved_regs): New hook.
31624 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31625 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31627 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31630 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31631 inside of pass_combine_1 dump rather than pass_profile_1.
31633 2019-01-11 Tom de Vries <tdevries@suse.de>
31635 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31636 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31637 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31638 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31641 2019-01-11 Tom de Vries <tdevries@suse.de>
31643 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31645 2019-01-11 Jan Beulich <jbeulich@suse.com>
31647 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31648 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31649 sse2_cvtsi2sd): Add {l}.
31650 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31653 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31656 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31658 (*float<floatunssuffix>v2div2sf2): New define_insn.
31659 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31660 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31661 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31662 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31663 match_operands with "const0_operand" "C".
31665 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31667 * config/aarch64/aarch64-builtins.c
31668 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31669 (aarch64_init_simd_builtins): ...Here
31671 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31673 PR rtl-optimization/87305
31675 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31676 allocation for big endian pseudos used as paradoxical subregs and
31677 spill them if it is wrong.
31678 * lra-constraints.c (lra_constraints): Add a comment.
31680 2019-01-10 Richard Biener <rguenther@suse.de>
31682 PR tree-optimization/88792
31683 * tree-ssa-pre.c (get_representative_for): Do not return a
31686 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31688 PR middle-end/84877
31690 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31691 (assign_parm_setup_block): Do the argument slot realignment here
31694 2019-01-10 Stefan Agner <stefan@agner.ch>
31697 * config/arm/arm.c (arm_option_override_internal): Force
31698 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31700 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31703 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31706 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31708 * config/arm/arm-builtins.c
31709 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31710 (MAC_LANE_PAIR_QUALIFIERS): New.
31711 (arm_expand_builtin_args): Use it.
31712 (arm_expand_builtin_1): Likewise.
31713 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31714 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31715 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31716 * config/arm/arm_neon.h:
31717 (vcadd_rot90_f16): New.
31718 (vcaddq_rot90_f16): New.
31719 (vcadd_rot270_f16): New.
31720 (vcaddq_rot270_f16): New.
31723 (vcmla_lane_f16): New.
31724 (vcmla_laneq_f16): New.
31725 (vcmlaq_lane_f16): New.
31726 (vcmlaq_laneq_f16): New.
31727 (vcmla_rot90_f16): New.
31728 (vcmlaq_rot90_f16): New.
31729 (vcmla_rot90_lane_f16): New.
31730 (vcmla_rot90_laneq_f16): New.
31731 (vcmlaq_rot90_lane_f16): New.
31732 (vcmlaq_rot90_laneq_f16): New.
31733 (vcmla_rot180_f16): New.
31734 (vcmlaq_rot180_f16): New.
31735 (vcmla_rot180_lane_f16): New.
31736 (vcmla_rot180_laneq_f16): New.
31737 (vcmlaq_rot180_lane_f16): New.
31738 (vcmlaq_rot180_laneq_f16): New.
31739 (vcmla_rot270_f16): New.
31740 (vcmlaq_rot270_f16): New.
31741 (vcmla_rot270_lane_f16): New.
31742 (vcmla_rot270_laneq_f16): New.
31743 (vcmlaq_rot270_lane_f16): New.
31744 (vcmlaq_rot270_laneq_f16): New.
31745 (vcadd_rot90_f32): New.
31746 (vcaddq_rot90_f32): New.
31747 (vcadd_rot270_f32): New.
31748 (vcaddq_rot270_f32): New.
31751 (vcmla_lane_f32): New.
31752 (vcmla_laneq_f32): New.
31753 (vcmlaq_lane_f32): New.
31754 (vcmlaq_laneq_f32): New.
31755 (vcmla_rot90_f32): New.
31756 (vcmlaq_rot90_f32): New.
31757 (vcmla_rot90_lane_f32): New.
31758 (vcmla_rot90_laneq_f32): New.
31759 (vcmlaq_rot90_lane_f32): New.
31760 (vcmlaq_rot90_laneq_f32): New.
31761 (vcmla_rot180_f32): New.
31762 (vcmlaq_rot180_f32): New.
31763 (vcmla_rot180_lane_f32): New.
31764 (vcmla_rot180_laneq_f32): New.
31765 (vcmlaq_rot180_lane_f32): New.
31766 (vcmlaq_rot180_laneq_f32): New.
31767 (vcmla_rot270_f32): New.
31768 (vcmlaq_rot270_f32): New.
31769 (vcmla_rot270_lane_f32): New.
31770 (vcmla_rot270_laneq_f32): New.
31771 (vcmlaq_rot270_lane_f32): New.
31772 (vcmlaq_rot270_laneq_f32): New.
31773 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31774 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31775 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31776 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31777 vcmlaq_lane270): New.
31778 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31779 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31780 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31781 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31782 (arm_option_reconfigure_globals): Use them.
31783 * config/arm/iterators.md (VDF, VQ_HSF): New.
31784 (VCADD, VCMLA): New.
31785 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31786 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31788 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31789 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31791 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31793 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31794 Add qualifier_lane_pair_index.
31795 (emit-rtl.h): Include.
31796 (TYPES_QUADOP_LANE_PAIR): New.
31797 (aarch64_simd_expand_args): Use it.
31798 (aarch64_simd_expand_builtin): Likewise.
31799 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31801 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31802 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31803 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31804 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31805 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31806 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31807 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31808 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31809 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31810 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31811 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31812 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31813 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31814 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31815 Add __ARM_FEATURE_COMPLEX.
31816 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31817 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31818 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31819 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31820 fcmlaq_lane270): New.
31821 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31822 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31823 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31824 * config/aarch64/arm_neon.h:
31825 (vcadd_rot90_f16): New.
31826 (vcaddq_rot90_f16): New.
31827 (vcadd_rot270_f16): New.
31828 (vcaddq_rot270_f16): New.
31831 (vcmla_lane_f16): New.
31832 (vcmla_laneq_f16): New.
31833 (vcmlaq_lane_f16): New.
31834 (vcmlaq_rot90_lane_f16): New.
31835 (vcmla_rot90_laneq_f16): New.
31836 (vcmla_rot90_lane_f16): New.
31837 (vcmlaq_rot90_f16): New.
31838 (vcmla_rot90_f16): New.
31839 (vcmlaq_laneq_f16): New.
31840 (vcmla_rot180_laneq_f16): New.
31841 (vcmla_rot180_lane_f16): New.
31842 (vcmlaq_rot180_f16): New.
31843 (vcmla_rot180_f16): New.
31844 (vcmlaq_rot90_laneq_f16): New.
31845 (vcmlaq_rot270_laneq_f16): New.
31846 (vcmlaq_rot270_lane_f16): New.
31847 (vcmla_rot270_laneq_f16): New.
31848 (vcmlaq_rot270_f16): New.
31849 (vcmla_rot270_f16): New.
31850 (vcmlaq_rot180_laneq_f16): New.
31851 (vcmlaq_rot180_lane_f16): New.
31852 (vcmla_rot270_lane_f16): New.
31853 (vcadd_rot90_f32): New.
31854 (vcaddq_rot90_f32): New.
31855 (vcaddq_rot90_f64): New.
31856 (vcadd_rot270_f32): New.
31857 (vcaddq_rot270_f32): New.
31858 (vcaddq_rot270_f64): New.
31862 (vcmla_lane_f32): New.
31863 (vcmla_laneq_f32): New.
31864 (vcmlaq_lane_f32): New.
31865 (vcmlaq_laneq_f32): New.
31866 (vcmla_rot90_f32): New.
31867 (vcmlaq_rot90_f32): New.
31868 (vcmlaq_rot90_f64): New.
31869 (vcmla_rot90_lane_f32): New.
31870 (vcmla_rot90_laneq_f32): New.
31871 (vcmlaq_rot90_lane_f32): New.
31872 (vcmlaq_rot90_laneq_f32): New.
31873 (vcmla_rot180_f32): New.
31874 (vcmlaq_rot180_f32): New.
31875 (vcmlaq_rot180_f64): New.
31876 (vcmla_rot180_lane_f32): New.
31877 (vcmla_rot180_laneq_f32): New.
31878 (vcmlaq_rot180_lane_f32): New.
31879 (vcmlaq_rot180_laneq_f32): New.
31880 (vcmla_rot270_f32): New.
31881 (vcmlaq_rot270_f32): New.
31882 (vcmlaq_rot270_f64): New.
31883 (vcmla_rot270_lane_f32): New.
31884 (vcmla_rot270_laneq_f32): New.
31885 (vcmlaq_rot270_lane_f32): New.
31886 (vcmlaq_rot270_laneq_f32): New.
31887 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31888 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31889 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31890 (FCADD, FCMLA): New.
31892 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31894 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31898 * config/pa/pa.c: Change "can not" to "cannot".
31899 * gimple-ssa-evrp-analyze.c: Likewise.
31900 * ipa-icf.c: Likewise.
31901 * ipa-polymorphic-call.c: Likewise.
31902 * ipa-pure-const.c: Likewise.
31903 * lra-constraints.c: Likewise.
31904 * lra-remat.c: Likewise.
31905 * reload1.c: Likewise.
31906 * reorg.c: Likewise.
31907 * tree-ssa-uninit.c: Likewise.
31909 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31913 * Makefile.in: Mechanically replace "can not" with "cannot".
31914 * alias.c: Likewise.
31915 * builtins.c: Likewise.
31916 * calls.c: Likewise.
31917 * cgraph.c: Likewise.
31918 * cgraph.h: Likewise.
31919 * cgraphclones.c: Likewise.
31920 * cgraphunit.c: Likewise.
31921 * combine-stack-adj.c: Likewise.
31922 * combine.c: Likewise.
31923 * common/config/i386/i386-common.c: Likewise.
31924 * config/aarch64/aarch64.c: Likewise.
31925 * config/alpha/sync.md: Likewise.
31926 * config/arc/arc.c: Likewise.
31927 * config/arc/predicates.md: Likewise.
31928 * config/arm/arm-c.c: Likewise.
31929 * config/arm/arm.c: Likewise.
31930 * config/arm/arm.h: Likewise.
31931 * config/arm/arm.md: Likewise.
31932 * config/arm/cortex-r4f.md: Likewise.
31933 * config/csky/csky.c: Likewise.
31934 * config/csky/csky.h: Likewise.
31935 * config/darwin-f.c: Likewise.
31936 * config/epiphany/epiphany.md: Likewise.
31937 * config/i386/i386.c: Likewise.
31938 * config/i386/sol2.h: Likewise.
31939 * config/m68k/m68k.c: Likewise.
31940 * config/mcore/mcore.h: Likewise.
31941 * config/microblaze/microblaze.md: Likewise.
31942 * config/mips/20kc.md: Likewise.
31943 * config/mips/sb1.md: Likewise.
31944 * config/nds32/nds32.c: Likewise.
31945 * config/nds32/predicates.md: Likewise.
31946 * config/pa/pa.c: Likewise.
31947 * config/rs6000/e300c2c3.md: Likewise.
31948 * config/rs6000/rs6000.c: Likewise.
31949 * config/s390/s390.h: Likewise.
31950 * config/sh/sh.c: Likewise.
31951 * config/sh/sh.md: Likewise.
31952 * config/spu/vmx2spu.h: Likewise.
31953 * cprop.c: Likewise.
31954 * dbxout.c: Likewise.
31955 * df-scan.c: Likewise.
31956 * doc/cfg.texi: Likewise.
31957 * doc/extend.texi: Likewise.
31958 * doc/fragments.texi: Likewise.
31959 * doc/gty.texi: Likewise.
31960 * doc/invoke.texi: Likewise.
31961 * doc/lto.texi: Likewise.
31962 * doc/md.texi: Likewise.
31963 * doc/objc.texi: Likewise.
31964 * doc/rtl.texi: Likewise.
31965 * doc/tm.texi: Likewise.
31967 * emit-rtl.c: Likewise.
31968 * emit-rtl.h: Likewise.
31969 * except.c: Likewise.
31970 * expmed.c: Likewise.
31971 * expr.c: Likewise.
31972 * fold-const.c: Likewise.
31973 * genautomata.c: Likewise.
31974 * gimple-fold.c: Likewise.
31975 * hard-reg-set.h: Likewise.
31976 * ifcvt.c: Likewise.
31977 * ipa-comdats.c: Likewise.
31978 * ipa-cp.c: Likewise.
31979 * ipa-devirt.c: Likewise.
31980 * ipa-fnsummary.c: Likewise.
31981 * ipa-icf.c: Likewise.
31982 * ipa-inline-transform.c: Likewise.
31983 * ipa-inline.c: Likewise.
31984 * ipa-polymorphic-call.c: Likewise.
31985 * ipa-profile.c: Likewise.
31986 * ipa-prop.c: Likewise.
31987 * ipa-pure-const.c: Likewise.
31988 * ipa-reference.c: Likewise.
31989 * ipa-split.c: Likewise.
31990 * ipa-visibility.c: Likewise.
31992 * ira-build.c: Likewise.
31993 * ira-color.c: Likewise.
31994 * ira-conflicts.c: Likewise.
31995 * ira-costs.c: Likewise.
31996 * ira-int.h: Likewise.
31997 * ira-lives.c: Likewise.
32000 * loop-invariant.c: Likewise.
32001 * loop-unroll.c: Likewise.
32002 * lower-subreg.c: Likewise.
32003 * lra-assigns.c: Likewise.
32004 * lra-constraints.c: Likewise.
32005 * lra-eliminations.c: Likewise.
32006 * lra-lives.c: Likewise.
32007 * lra-remat.c: Likewise.
32008 * lra-spills.c: Likewise.
32010 * lto-cgraph.c: Likewise.
32011 * lto-streamer-out.c: Likewise.
32012 * postreload-gcse.c: Likewise.
32013 * predict.c: Likewise.
32014 * profile-count.h: Likewise.
32015 * profile.c: Likewise.
32016 * recog.c: Likewise.
32018 * reload.c: Likewise.
32019 * reload1.c: Likewise.
32020 * reorg.c: Likewise.
32021 * resource.c: Likewise.
32022 * rtl.def: Likewise.
32024 * rtlanal.c: Likewise.
32025 * sched-deps.c: Likewise.
32026 * sched-ebb.c: Likewise.
32027 * sched-rgn.c: Likewise.
32028 * sel-sched-ir.c: Likewise.
32029 * sel-sched.c: Likewise.
32030 * shrink-wrap.c: Likewise.
32031 * simplify-rtx.c: Likewise.
32032 * symtab.c: Likewise.
32033 * target.def: Likewise.
32034 * toplev.c: Likewise.
32035 * tree-call-cdce.c: Likewise.
32036 * tree-cfg.c: Likewise.
32037 * tree-complex.c: Likewise.
32038 * tree-core.h: Likewise.
32039 * tree-eh.c: Likewise.
32040 * tree-inline.c: Likewise.
32041 * tree-loop-distribution.c: Likewise.
32042 * tree-nrv.c: Likewise.
32043 * tree-profile.c: Likewise.
32044 * tree-sra.c: Likewise.
32045 * tree-ssa-alias.c: Likewise.
32046 * tree-ssa-dce.c: Likewise.
32047 * tree-ssa-dom.c: Likewise.
32048 * tree-ssa-forwprop.c: Likewise.
32049 * tree-ssa-loop-im.c: Likewise.
32050 * tree-ssa-loop-ivcanon.c: Likewise.
32051 * tree-ssa-loop-ivopts.c: Likewise.
32052 * tree-ssa-loop-niter.c: Likewise.
32053 * tree-ssa-phionlycprop.c: Likewise.
32054 * tree-ssa-phiopt.c: Likewise.
32055 * tree-ssa-propagate.c: Likewise.
32056 * tree-ssa-threadedge.c: Likewise.
32057 * tree-ssa-threadupdate.c: Likewise.
32058 * tree-ssa-uninit.c: Likewise.
32059 * tree-ssanames.c: Likewise.
32060 * tree-streamer-out.c: Likewise.
32061 * tree.c: Likewise.
32062 * tree.h: Likewise.
32063 * vr-values.c: Likewise.
32065 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32067 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32068 (ix86_split_xorsign): Ditto.
32069 * config/i386/i386.c (ix86_expand_xorsign): New function.
32070 (ix86_split_xorsign): Ditto.
32071 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32072 (xorsign<mode>3): New expander.
32073 (xorsign<mode>3_1): New insn_and_split pattern.
32074 * config/i386/sse.md (xorsign<mode>3): New expander.
32076 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32078 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32079 (*tablejump_sp64): Likewise.
32080 (*tablejump<P:mode>): ...this.
32081 (*call_address_sp32): Merge into...
32082 (*call_address_sp64): Likewise.
32083 (*call_address<P:mode>): ...this.
32084 (*call_symbolic_sp32): Merge into...
32085 (*call_symbolic_sp64): Likewise.
32086 (*call_symbolic<P:mode>): ...this.
32087 (call_value): Remove constraint and add predicate.
32088 (*call_value_address_sp32): Merge into...
32089 (*call_value_address_sp64): Likewise.
32090 (*call_value_address<P:mode>): ...this.
32091 (*call_value_symbolic_sp32): Merge into...
32092 (*call_value_symbolic_sp64): Likewise.
32093 (*call_value_symbolic<P:mode>): ...this.
32094 (*sibcall_symbolic_sp32): Merge into...
32095 (*sibcall_symbolic_sp64): Likewise.
32096 (*sibcall_symbolic<P:mode>): ...this.
32097 (sibcall_value): Remove constraint and add predicate.
32098 (*sibcall_value_symbolic_sp32): Merge into...
32099 (*sibcall_value_symbolic_sp64): Likewise.
32100 (*sibcall_value_symbolic<P:mode>): ...this.
32101 (window_save): Minor tweak.
32102 (*branch_sp32): Merge into...
32103 (*branch_sp64): Likewise.
32104 (*branch<P:mode>): ...this.
32106 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32107 James Clarke <jrtc27@jrtc27.com>
32110 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32111 consistently in TLS address generation and adjust code to the renaming
32112 of patterns. Mark calls to __tls_get_addr as const.
32113 * config/sparc/sparc.md (tgd_hi22): Turn into...
32114 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32115 (tgd_lo10): Turn into...
32116 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32117 (tgd_add32): Merge into...
32118 (tgd_add64): Likewise.
32119 (tgd_add<P:mode>): ...this and use Pmode throughout.
32120 (tldm_hi22): Turn into...
32121 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32122 (tldm_lo10): Turn into...
32123 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32124 (tldm_add32): Merge into...
32125 (tldm_add64): Likewise.
32126 (tldm_add<P:mode>): ...this and use Pmode throughout.
32127 (tldm_call32): Merge into...
32128 (tldm_call64): Likewise.
32129 (tldm_call<P:mode>): ...this and use Pmode throughout.
32130 (tldo_hix22): Turn into...
32131 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32132 (tldo_lox10): Turn into...
32133 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32134 (tldo_add32): Merge into...
32135 (tldo_add64): Likewise.
32136 (tldo_add<P:mode>): ...this and use Pmode throughout.
32137 (tie_hi22): Turn into...
32138 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32139 (tie_lo10): Turn into...
32140 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32141 (tie_ld64): Use DImode throughout.
32142 (tie_add32): Merge into...
32143 (tie_add64): Likewise.
32144 (tie_add<P:mode>): ...this and use Pmode throughout.
32145 (tle_hix22_sp32): Merge into...
32146 (tle_hix22_sp64): Likewise.
32147 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32148 (tle_lox22_sp32): Merge into...
32149 (tle_lox22_sp64): Likewise.
32150 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32151 (*tldo_ldub_sp32): Merge into...
32152 (*tldo_ldub_sp64): Likewise.
32153 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32154 (*tldo_ldub1_sp32): Merge into...
32155 (*tldo_ldub1_sp64): Likewise.
32156 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32157 (*tldo_ldub2_sp32): Merge into...
32158 (*tldo_ldub2_sp64): Likewise.
32159 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32160 (*tldo_ldsb1_sp32): Merge into...
32161 (*tldo_ldsb1_sp64): Likewise.
32162 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32163 (*tldo_ldsb2_sp32): Merge into...
32164 (*tldo_ldsb2_sp64): Likewise.
32165 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32166 (*tldo_ldub3_sp64): Use DImode throughout.
32167 (*tldo_ldsb3_sp64): Likewise.
32168 (*tldo_lduh_sp32): Merge into...
32169 (*tldo_lduh_sp64): Likewise.
32170 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32171 (*tldo_lduh1_sp32): Merge into...
32172 (*tldo_lduh1_sp64): Likewise.
32173 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32174 (*tldo_ldsh1_sp32): Merge into...
32175 (*tldo_ldsh1_sp64): Likewise.
32176 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32177 (*tldo_lduh2_sp64): Use DImode throughout.
32178 (*tldo_ldsh2_sp64): Likewise.
32179 (*tldo_lduw_sp32): Merge into...
32180 (*tldo_lduw_sp64): Likewise.
32181 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32182 (*tldo_lduw1_sp64): Use DImode throughout.
32183 (*tldo_ldsw1_sp64): Likewise.
32184 (*tldo_ldx_sp64): Likewise.
32185 (*tldo_stb_sp32): Merge into...
32186 (*tldo_stb_sp64): Likewise.
32187 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32188 (*tldo_sth_sp32): Merge into...
32189 (*tldo_sth_sp64): Likewise.
32190 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32191 (*tldo_stw_sp32): Merge into...
32192 (*tldo_stw_sp64): Likewise.
32193 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32194 (*tldo_stx_sp64): Use DImode throughout.
32196 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32198 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
32199 check configure option to set BTI and Return Address Signing.
32200 * configure.ac: Add --enable-standard-branch-protection and
32201 --disable-standard-branch-protection.
32202 * configure: Regenerated.
32203 * doc/install.texi: Document the same.
32205 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32206 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32208 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
32209 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
32210 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
32212 * config/aarch64/aarch64-bti-insert.c: New file.
32213 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
32215 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
32217 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
32218 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
32219 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
32220 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
32222 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32224 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
32225 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
32226 Disable bti for -mbranch-protection=none.
32227 (aarch64_handle_standard_branch_protection): Enable bti for
32228 -mbranch-protection=standard.
32229 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
32230 -mbranch-protection.
32231 (aarch64_bti_enabled): Check if bti is enabled.
32232 * config/aarch64/aarch64.opt: Declare target variable.
32233 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
32235 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32237 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
32238 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
32239 (aarch64_expand_epilogue): Likewise.
32240 (aarch64_output_mi_thunk): Likewise.
32241 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
32242 TAILCALL_ADDR_REGS to x16 and x17.
32243 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
32245 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32247 * config/aarch64/aarch64-option-extensions.def: Define
32248 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
32249 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
32250 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
32251 (AARCH64_FL_PREDRES): New.
32252 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
32253 AARCH64_FL_PREDRES by default.
32254 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
32256 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32258 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
32260 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
32261 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
32262 * doc/invoke.texi: Document ARMv8.5-A.
32264 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
32266 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
32267 (xorsign<mode>3): Likewise.
32269 2019-01-09 Jelinek <jakub@redhat.com>
32271 PR middle-end/88758
32272 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
32273 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
32275 PR rtl-optimization/88331
32276 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
32277 not currently_expanding_to_rtl.
32279 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32281 * doc/invoke.texi (-Os): Remove trailing spaces.
32282 (-finline-functions): Remove reference to -O2.
32284 2019-01-08 Jakub Jelinek <jakub@redhat.com>
32286 PR rtl-optimization/79593
32287 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
32289 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
32290 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
32292 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
32295 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
32299 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
32300 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
32302 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
32305 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
32306 ix86_avx_u128_mode_entry.
32308 2019-01-08 Martin Liska <mliska@suse.cz>
32310 PR tree-optimization/88753
32311 * tree-switch-conversion.c (switch_conversion::build_one_array):
32312 Come up with local variable constructor. Convert first to
32313 type of constructor values.
32315 2019-01-08 Richard Biener <rguenther@suse.de>
32317 PR tree-optimization/86554
32318 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
32319 rpo_avail): Move earlier.
32320 (visit_nary_op): When value-numbering to expressions
32321 with different overflow behavior make sure there's an
32322 available expression on the path.
32324 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
32326 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
32327 aarch64_parse_branch_protection,
32328 struct aarch64_branch_protect_type,
32329 aarch64_handle_no_branch_protection,
32330 aarch64_handle_standard_branch_protection,
32331 aarch64_validate_mbranch_protection,
32332 aarch64_handle_pac_ret_protection,
32333 aarch64_handle_attr_branch_protection,
32334 accepted_branch_protection_string,
32335 aarch64_pac_ret_subtypes,
32336 aarch64_branch_protect_types,
32337 aarch64_handle_pac_ret_leaf): Define.
32338 (aarch64_override_options_after_change_1, aarch64_override_options):
32339 Add check for accepted_branch_protection_string.
32340 (aarch64_option_save): Save accepted_branch_protection_string.
32341 (aarch64_option_restore): Save accepted_branch_protection_string.
32342 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
32343 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
32344 msign-return-address.
32345 * doc/invoke.texi: Add mbranch-protection.
32347 2019-01-08 Alan Modra <amodra@gmail.com>
32350 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
32351 Delete "unknownp" parameter. Adjust callers. Handle
32352 CONST_INT, PLUS, MINUS, and MULT.
32353 (attr_value_aligned): Renamed from or_attr_value.
32354 (min_attr_value): Return INT_MIN for unhandled rtl case..
32355 (min_fn): ..and translate to INT_MAX here.
32356 (write_length_unit_log): Modify to cope without "unknown".
32357 (write_attr_value): Handle IF_THEN_ELSE.
32359 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32361 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
32362 optimization for masked stores.
32364 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32366 PR middle-end/88567
32367 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32368 output vector directly to duplicate_and_interleave instead of
32369 going through a temporary. Postpone insertion of ctor_seq to
32370 the end of the loop.
32372 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32375 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32376 unsigned_p. Handle signed and unsigned overflow correction as
32378 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32380 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32382 (add<mode>3_compareV_imm): Make this callable for expanding.
32383 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32384 aarch64_plus_operand for operand 2.
32385 (subv<GPI:mode>_insn): New insn pattern.
32386 (subv<GPI:mode>_imm): Likewise.
32387 (negv<GPI:mode>3): New expand pattern.
32388 (negv<GPI:mode>_insn): New insn pattern.
32389 (negv<GPI:mode>_cmp_only): Likewise.
32390 (cmpv<GPI:mode>_insn): Likewise.
32391 (subvti4): Use register_operand for operand 1. Update call to
32392 aarch64_expand_subvti.
32393 (usubvti4): Likewise.
32394 (negvti3): New expand pattern.
32395 (negdi_carryout): New insn pattern.
32396 (negvdi_carryinV): New insn pattern.
32397 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32398 version the named version.
32399 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32401 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32403 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32405 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32406 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32407 (sub<mode>3_carryinCV): Delete.
32408 (sub<GPI:mode>3_carryinV): New expand pattern.
32409 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32411 2019-01-07 Richard Biener <rguenther@suse.de>
32413 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
32414 of tree_operand_hash.
32416 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32418 PR tree-optimization/88598
32419 * tree.h (single_nonzero_element): Declare.
32420 * tree.c (single_nonzero_element): New function.
32421 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
32422 if I is the only nonzero element of CST.
32424 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32426 PR tree-optimization/88598
32427 * tree.h (initializer_each_zero_or_onep): Declare.
32428 * tree.c (initializer_each_zero_or_onep): New function.
32429 (signed_or_unsigned_type_for): Handle float types too.
32430 (unsigned_type_for, signed_type_for): Update comments accordingly.
32431 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
32432 x & { 0 or -1, 0 or -1, ... }.
32434 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
32436 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
32437 with x86_64-pc-linux-gnu.
32439 2019-01-07 Tom de Vries <tdevries@suse.de>
32442 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
32444 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
32447 2019-01-07 Jakub Jelinek <jakub@redhat.com>
32449 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
32450 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
32451 TARGET_AVX512F as condition.
32454 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
32455 const_not_ok_for_debug_p target hook.
32456 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
32457 on UNSPEC and subexpressions thereof if all subexpressions of the
32458 UNSPEC are CONSTANT_P.
32460 PR tree-optimization/88676
32461 * tree-ssa-phiopt.c (two_value_replacement): New function.
32462 (tree_ssa_phiopt_worker): Call it.
32465 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
32466 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
32469 * tree-vect-generic.c: Include insn-config.h and recog.h.
32470 (expand_vector_piecewise): Add defaulted ret_type argument,
32471 if non-NULL, use that in preference to type for the result type.
32472 (expand_vector_parallel): Formatting fix.
32473 (do_vec_conversion, do_vec_narrowing_conversion,
32474 expand_vector_conversion): New functions.
32475 (expand_vector_operations_1): Call expand_vector_conversion
32476 for VEC_CONVERT ifn calls.
32477 * internal-fn.def (VEC_CONVERT): New internal function.
32478 * internal-fn.c (expand_VEC_CONVERT): New function.
32479 * fold-const-call.c (fold_const_vec_convert): New function.
32480 (fold_const_call): Use it for CFN_VEC_CONVERT.
32481 * doc/extend.texi (__builtin_convertvector): Document.
32483 2019-01-07 Tom de Vries <tdevries@suse.de>
32485 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
32486 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
32487 vector_red_partition, vector_red_sym): New global variables.
32488 (nvptx_option_override): Initialize vector_red_sym.
32489 (nvptx_declare_function_name): Restore red_partition register.
32490 (nvptx_file_end): Emit code to declare the vector reduction variables.
32491 (nvptx_output_red_partition): New function.
32492 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
32493 large vector reductions.
32494 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
32495 (nvptx_init_builtins): Add VECTOR_ADDR.
32496 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
32497 Handle nvptx_expand_shared_addr.
32498 (nvptx_get_shared_red_addr): Add vector argument and handle large
32500 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
32502 (nvptx_goacc_reduction_init): Likewise.
32503 (nvptx_goacc_reduction_fini): Likewise.
32504 (nvptx_goacc_reduction_teardown): Likewise.
32505 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
32506 init,fini,teardown}.
32507 (nvptx_init_axis_predicate): Initialize vector_red_partition.
32508 (nvptx_set_current_function): Init vector_red_partition.
32509 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
32510 (nvptx_red_partition): New insn.
32511 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
32513 2019-01-07 Tom de Vries <tdevries@suse.de>
32516 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
32519 2019-01-07 Tom de Vries <tdevries@suse.de>
32521 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
32522 (nvptx_option_override): Init oacc_bcast_partition.
32523 (nvptx_init_oacc_workers): New function.
32524 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
32525 (nvptx_needs_shared_bcast): New function.
32526 (nvptx_find_par): Generalize to enable vectors to use shared-memory
32527 to propagate state.
32528 (nvptx_shared_propagate): Initialize vector bcast partition and
32529 synchronization state.
32530 (nvptx_single): Generalize to enable vectors to use shared-memory
32531 to propagate state.
32532 (nvptx_process_pars): Likewise.
32533 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
32534 * config/nvptx/nvptx.h (struct machine_function): Add
32535 bcast_partition and sync_bar members.
32537 2019-01-07 Tom de Vries <tdevries@suse.de>
32539 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
32540 (nvptx_apply_dim_limits): New function.
32541 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
32544 2019-01-07 Tom de Vries <tdevries@suse.de>
32546 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
32547 as late as possible.
32549 2019-01-07 Tom de Vries <tdevries@suse.de>
32551 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32552 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32553 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32554 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32555 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32557 2019-01-07 Tom de Vries <tdevries@suse.de>
32559 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32561 2019-01-07 Tom de Vries <tdevries@suse.de>
32563 * omp-offload.c (oacc_get_min_dim): New function.
32564 * omp-offload.h (oacc_get_min_dim): Declare.
32566 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32569 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32570 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32572 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32576 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32578 * ipa-inline.c (edge_badness): Use inlined_time instead of
32579 inline_summaries->get.
32581 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32583 * opts.c (enable_fdo_optimizations): Enable
32584 version-loops-for-strides, loop-interchange, unrol-and-jam
32585 and tree-loop-distribution.
32586 * invoke.texi: Document newly enabled options.
32588 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32590 * doc/invoke.texi (max-inline-insns-small): New parameters.
32591 * ipa-inline.c (want_early_inline_function_p): simplify.
32592 (want_inline_small_function_p): Fix pasto from previous patch;
32593 use max-inline-insns-small bound.
32594 * params.def (max-inline-insns-small): New param.
32595 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32596 variables correctly.
32598 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32600 * doc/invoke.texi: Document max-inline-insns-size,
32601 uninlined-function-insns, uninlined-function-time,
32602 uninlined-thunk-insns and uninlined-thunk-time.
32603 * params.def: Add max-inline-insns-size,
32604 uninlined-function-insns, uninlined-function-time,
32605 uninlined-thunk-insns and uninlined-thunk-time.
32606 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32608 * ipa-inline.c (can_inline_edge_by_limits_p,
32609 want_inline_small_function_p): Use new parameters.
32611 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32613 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32615 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32617 PR middle-end/82564
32619 * expr.c (expand_assignment): For calls returning VLA structures
32620 if to_rtx is not a MEM, force it into a stack temporary.
32623 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32624 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32625 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32626 subexpressions of both operands.
32627 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32628 subrtxes are CONSTANT_P.
32629 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32630 2018-11-09 changes.
32632 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32634 * params.def (hot-bb-count-ws-permille): Set to 990.
32636 2019-01-04 Martin Sebor <msebor@redhat.com>
32639 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32642 2019-01-04 Martin Sebor <msebor@redhat.com>
32645 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32647 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32649 * gdbinit.in: Turn off pagination for the skip commands, restore
32650 it to previous state afterwards.
32652 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32655 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32656 of GET_MODE (opN) as modes of the libcall arguments.
32658 2019-01-04 Jan Beulich <jbeulich@suse.com>
32660 * config/i386/sse.md
32661 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32662 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32663 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32664 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32665 avx512f_vmcmp<mode>3<round_saeonly_name>,
32666 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32667 avx512f_maskcmp<mode>3,
32668 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32669 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32670 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32671 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32672 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32673 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32674 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32675 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32676 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32677 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32678 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32679 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32680 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32681 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32682 avx512cd_maskb_vec_dup<mode>,
32683 avx512cd_maskw_vec_dup<mode>,
32684 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32685 avx512dq_vmfpclass<mode>,
32686 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32689 2019-01-03 Martin Sebor <msebor@redhat.com>
32691 PR tree-optimization/88659
32692 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32694 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32696 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32697 unaligned vsx and avoid lxvd2x/stxvd2x.
32698 (gen_lvx_v4si_move): New function.
32700 2019-01-03 Tom de Vries <tdevries@suse.de>
32702 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32703 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32705 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32707 2019-01-03 Tom de Vries <tdevries@suse.de>
32709 * config/nvptx/nvptx.c (struct offload_attrs): New.
32710 (populate_offload_attrs): New function. Factor mask extraction out of
32711 nvptx_reorg. Add extraction of dimensions.
32712 (nvptx_reorg): Use populate_offload_attrs.
32714 2019-01-03 Tom de Vries <tdevries@suse.de>
32716 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32717 cases for oacc_min_dims_p and routine_p. Add asserts for
32718 oacc_default_dims_p and offload_region_p.
32720 2019-01-03 Tom de Vries <tdevries@suse.de>
32722 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32723 factored out of ...
32724 (nvptx_goacc_validate_dims): ... here.
32726 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32728 PR tree-optimization/85574
32729 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32731 (struct ssa_equip_hash_traits): Declare.
32732 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32734 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32737 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32738 change it to qualified_type.
32740 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32742 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32743 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32745 2019-01-02 Martin Sebor <msebor@redhat.com>
32746 Jeff Law <law@redhat.com>
32748 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32749 (get_range_strlen_tree): Update appropriately.
32751 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32753 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32754 rather than set_range_info.
32755 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32756 maybe_set_strlen_range. Handle potentially boundary crossing
32757 cases more conservatively.
32758 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32759 Call set_strlen_range.
32760 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32762 PR middle-end/88663
32763 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32764 need the flexp argument.
32765 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32766 from calls to get_range_strlen. Update comments. Just update
32767 VAL for an unterminated const char array and let the reset of the
32768 code handle it normally. No longer try to set *flexp. Adjust
32770 (get_range_strlen): Update for the new get_range_strlen API.
32771 (get_maxval_strlen): Similarly.
32772 (gimple_fold_builtin_strlen): Handle update meaning of return value
32773 from get_range_strlen.
32774 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32775 get_range_strlen API.
32777 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32780 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32781 false at WPA time when body was removed.
32783 2019-01-02 Martin Liska <mliska@suse.cz>
32785 PR tree-optimization/88650
32786 * predict.c (set_even_probabilities): Calculate probability
32787 remainer only when really used.
32789 2019-01-02 Richard Biener <rguenther@suse.de>
32791 PR middle-end/88651
32792 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32793 widest_ints when mangling max_stmt_execution results.
32795 2019-01-02 Richard Biener <rguenther@suse.de>
32797 PR tree-optimization/88621
32798 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32799 bitfields when canoncalizing.
32801 2019-01-02 Richard Biener <rguenther@suse.de>
32804 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32805 cost of cheap SSE instruction.
32807 2019-01-02 Richard Biener <rguenther@suse.de>
32810 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32811 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32813 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32814 set after UIDs before splitting them.
32816 2019-01-01 Martin Sebor <msebor@redhat.com>
32817 Jeff Law <law@redhat.com>
32819 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32820 length is optimistic. If it is, then arrange to compute the
32821 conservative length as well.
32823 * gimple-fold.h (get_range_strlen): Update prototype.
32824 * builtins.c (check_access): Update call to get_range_strlen to use
32825 c_strlen_data pointer. Change various variable accesses to instead
32826 pull data from the c_strlen_data structure.
32827 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32828 * calls.c (maybe_warn_nonstring_arg): Likewise.
32829 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32830 minimum length if maximum lengh is unknown.
32831 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32832 that used c_strlen, it's no longer needed. Restructure slightly.
32833 (format_string): Set unlikely range appropriately.
32834 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32836 (get_range_strlen): Accept c_strlen_data pointer for external
32837 call sites as well. Pass through to call to internal get_range_strlen.
32838 Adjust minlen, maxlen and maxbound as needed.
32839 (get_maxval_strlen): Update comments.
32840 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32841 to use c_strlen_data pointer. Change variable accesses to instead
32842 use c_strlen_data data members.
32844 * gimple-fold.c (get_range_strlen): Update prototype.
32845 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32846 local variables. Use pdata to return information to caller.
32847 Update calls to get_range_strlen. Update pdata->maxbound.
32848 (get_range_strlen -- static version): Similarly.
32849 (get_range_strlen -- extern version): Update for internal
32850 get_range_strlen API change. Convert to external data format.
32851 (get_maxval_strlen): Similarly.
32853 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32855 * coverage.c (get_coverage_counts): Use current_function_decl.
32856 * profile.c (read_thunk_profile): New function.
32857 (branch_prob): Add THUNK parameter.
32858 * tree-profile.c (tree_profiling): Handle thunks.
32859 * value-prof.c (init_node_map): Handle thunks.
32860 * value-prof.h (branch_prob): Upate prototype.
32861 (read_thunk_profile): Declare.
32863 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32865 Update copyright years.
32867 * gcc.c (process_command): Update copyright notice dates.
32868 * gcov-dump.c (print_version): Ditto.
32869 * gcov.c (print_version): Ditto.
32870 * gcov-tool.c (print_version): Ditto.
32871 * gengtype.c (create_file): Ditto.
32872 * doc/cpp.texi: Bump @copying's copyright year.
32873 * doc/cppinternals.texi: Ditto.
32874 * doc/gcc.texi: Ditto.
32875 * doc/gccint.texi: Ditto.
32876 * doc/gcov.texi: Ditto.
32877 * doc/install.texi: Ditto.
32878 * doc/invoke.texi: Ditto.
32880 Copyright (C) 2019 Free Software Foundation, Inc.
32882 Copying and distribution of this file, with or without modification,
32883 are permitted in any medium without royalty provided the copyright
32884 notice and this notice are preserved.