1 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
5 2019-11-15 Nick Clifton <nickc@redhat.com>
6 Szabolcs Nagy <szabolcs.nagy@arm.com>
9 * config/microblaze/microblaze.c (print_operand): Print value as long.
11 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
13 * ipa-inline.c (edge_badness, inline_small_functions): Revert
16 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
18 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
19 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
21 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
23 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
24 (gcn_conditional_register_usage): Use constants in place of hard-coded
26 (gcn_hsa_declare_function_name): Set lower bound for number of
27 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
28 MAX_NORMAL_VGPR_COUNT.
30 2019-11-15 Martin Jambor <mjambor@suse.cz>
32 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
35 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
37 * config/gcn/gcn.c (default_requested_args): New.
38 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
39 set with default_requested_args.
40 (gcn_conditional_register_usage): Limit register usage of non-kernel
41 functions. Reassign fixed registers if a non-standard set of args is
43 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
45 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
48 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
49 aggregate jump function when inlined-to caller has no edge summary.
51 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
53 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
55 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
57 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
59 (print_operand_address): Use v1 for zero vector offset.
61 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
63 PR tree-optimization/92515
64 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
65 types when converting a vector/scalar shift into a vector/vector one,
66 using tree_nop_conversion_p instead of useless_type_conversion_p.
67 Move the conversion code to the transform block.
69 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
72 (function_reader::add_fixup_source_location): Take additional
73 parameter of a column.
74 (function_reader::maybe_read_location): Optionally parse column
75 information and pass to add_fixup_source_location.
77 2019-11-15 Richard Biener <rguenther@suse.de>
79 PR tree-optimization/92512
80 * tree-vect-loop.c (check_reduction_path): Fix operand index
81 computability check. Add check for second use in COND_EXPRs.
83 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
86 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
87 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
89 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
91 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
92 register class for VCC_LO and VCC_HI.
93 (gcn_spill_class): Use SGPR_REGS to spill registers in
96 2019-11-15 Richard Biener <rguenther@suse.de>
98 PR tree-optimization/92324
99 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
100 singedness of SLP reduction epilouge operations. Also reduce
101 the vector width for SLP reductions before doing elementwise
102 operations if possible.
104 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
106 * passes.c (skip_pass): Set epilogue_completed if skipping the
107 pro_and_epilogue pass.
109 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
111 * passes.c (should_skip_pass_p): Always run "dfinish".
113 2019-11-15 Richard Biener <rguenther@suse.de>
115 * ipa-inline.c (inline_small_functions): Move assignment
116 to next before call destroying edge.
118 2019-11-15 Richard Biener <rguenther@suse.de>
120 PR tree-optimization/92039
121 PR tree-optimization/91975
122 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
123 previous change, treat invariants consistently as non-constant.
124 (tree_estimate_loop_size): Ternary ops with just the first op
125 constant are not optimized away.
127 2019-11-15 Jakub Jelinek <jakub@redhat.com>
129 * gimplify.c (gimplify_call_expr): Don't call
130 omp_resolve_declare_variant after gimplification.
131 * omp-general.c (omp_context_selector_matches): For isa that might
132 match in some other function, defer if in declare simd function.
133 (omp_context_compute_score): Don't look for " score" in construct
134 trait set. Set *score to -1 if it can't ever match.
135 (omp_resolve_declare_variant): If any variants need to be deferred,
136 don't punt immediately, but compute scores of all variants and if
137 ther eis a score winner that doesn't need to be deferred, return that.
139 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
141 * ipa-comdats.c: Fix comments typo.
142 * ipa-profile.c: Fix comments typo.
143 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
144 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
145 (gimple_gen_ic_func_profiler): Likewise.
146 (pass_ipa_tree_profile::gate): Fix comments typo.
148 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
150 * ipa-inline.c (inline_small_functions): Update iterator of next.
152 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
154 * lra-spills.c (assign_spill_hard_regs): Check that the spill
155 register is suitable for the mode.
157 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
159 * range-op.h (range_operator::fold_range): Return a bool.
160 * range-op.cc (range_operator::wi_fold): Assert supported type.
161 (range_operator::fold_range): Assert supported type and return true.
162 (operator_equal::fold_range): Return true.
163 (operator_not_equal::fold_range): Same.
164 (operator_lt::fold_range): Same.
165 (operator_le::fold_range): Same.
166 (operator_gt::fold_range): Same.
167 (operator_ge::fold_range): Same.
168 (operator_plus::op1_range): Adjust call to fold_range.
169 (operator_plus::op2_range): Same.
170 (operator_minus::op1_range): Same.
171 (operator_minus::op2_range): Same.
172 (operator_exact_divide::op1_range): Same.
173 (operator_lshift::fold_range): Return true and adjust fold_range call.
174 (operator_rshift::fold_range): Same.
175 (operator_cast::fold_range): Return true.
176 (operator_logical_and::fold_range): Same.
177 (operator_logical_or::fold_range): Same.
178 (operator_logical_not::fold_range): Same.
179 (operator_bitwise_not::fold_range): Adjust call to fold_range.
180 (operator_bitwise_not::op1_range): Same.
181 (operator_cst::fold_range): Return true.
182 (operator_identity::fold_range): Return true.
183 (operator_negate::fold_range): Return true and adjust fold_range call.
184 (operator_addr_expr::fold_range): Return true.
185 (operator_addr_expr::op1_range): Adjust call to fold_range.
187 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
188 (range_fold_unary_symbolics_p): Same.
190 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
192 PR tree-optimization/92506
193 * range-op.cc (range_operator::fold_range): Start with range undefined.
194 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
197 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
199 * range-op.cc (*operator*::*range): Remove calls to
200 range_intersect, range_invert, and range_union in favor of calling
201 the in-place API methods.
203 * range.cc (range_intersect): Remove.
204 (range_union): Remove.
205 (range_invert): Remove.
206 * range.h (range_intersect): Remove.
207 (range_union): Remove.
208 (range_intersect): Remove.
210 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
212 PR rtl-optimization/92430
213 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
214 (pass_jump_after_combine::execute): Perform jump threading
217 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
218 Doug Rupp <rupp@adacore.com>
219 Olivier Hainque <hainque@adacore.com>
221 * config.gcc: Collapse the arm-vxworks entries into
222 a single arm-wrs-vxworks7* one, bpabi based. Update
223 the default cpu from arm8 to armv7-a
224 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
225 we always use ARM_UNWIND_INFO.
226 (DWARF2_UNWIND_INFO): Remove redefinition.
227 (ARM_TARGET2_DWARF_FORMAT): Likewise.
228 (VXWORKS_PERSONALITY): Define, to "llvm".
229 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
231 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
233 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
234 _VX_CPU instead of CPU and handle arm_arch8.
236 2019-11-14 Doug Rupp <rupp@adacore.com>
237 Olivier Hainque <hainque@adacore.com>
238 Jerome Lambourg <lambourg@adacore.com>
240 * config.gcc: Handle aarch64*-wrs-vxworks7*.
241 * config/aarch64/aarch64-vxworks.h: New file.
242 * config/aarch64/t-aarch64-vxworks: New file.
244 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
245 Olivier Hainque <hainque@adacore.com>
247 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
248 definition, pointless with a VxWorks specific version
250 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
251 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
252 New local macros, controlling the addition of vxworks specific
253 crtstuff objects depending on the EH mechanism and kind of
255 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
257 2019-11-06 Pat Bernardi <bernardi@adacore.com>
258 Jerome Lambourg <lambourg@adacore.com>
259 Olivier Hainque <hainque@adacore.com>
261 * config.gcc: Add comment to introduce the TARGET_VXWORKS
262 common macro definitions, conveying VXWORKS7 or 64bit general
263 variations. Add a block to set gcc_cv_initfini_array
264 unconditionally to "yes" for VxWorks7.
265 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
266 by default. Update some comments.
267 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
268 default, to be added the end of VXWORKS_LIBS_RTP.
269 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
270 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
272 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
273 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
274 to account for the now available TLS abilities.
275 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
276 (VXWORKS_HAVE_TLS): Likewise.
278 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
280 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
281 (vect_slp_convert_to_external): Likewise.
282 (vect_slp_analyze_node_operations): If analysis fails, try building
283 the node from scalars instead.
285 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
287 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
288 between vector types.
289 * tree-vect-stmts.c (vectorizable_conversion): Extend the
290 non-widening and non-narrowing path to handle standard
291 conversion codes, if the target supports them.
292 * expr.c (convert_move): Try using the extend and truncate optabs
294 * optabs-tree.c (supportable_convert_operation): Likewise.
295 * config/aarch64/iterators.md (Vnarroqw): New iterator.
296 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
297 (trunc<mode><Vnarrowq>2): New patterns.
299 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
301 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
302 require vectype and nunits_vectype to have the same size;
303 instead assert that nunits_vectype has at least as many
304 elements as vectype. Don't compute a separate nunits_vectype
305 if the scalar type is obviously the same as vectype's.
308 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
310 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
312 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
313 (TARGET_VECTORIZE_RELATED_MODE): Define.
315 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
317 * tree-vectorizer.h (vec_info::mode_set): New typedef.
318 (vec_info::used_vector_mode): New member variable.
319 (vect_chooses_same_modes_p): Declare.
320 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
321 chosen vector mode in vec_info::used_vector_mode.
322 (vect_chooses_same_modes_p): New function.
323 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
324 the same vector statements multiple times.
325 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
327 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
329 * machmode.h (opt_machine_mode::operator==): New function.
330 (opt_machine_mode::operator!=): Likewise.
331 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
332 (get_related_vectype_for_scalar_type): Delete.
333 (get_vectype_for_scalar_type_and_size): Declare.
334 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
335 whether analysis passed or failed, and with what vector modes.
336 Use related_vector_mode to check whether trying a particular
337 vector mode would be redundant with the autodetected mode,
338 and print a dump message if we decide to skip it.
339 * tree-vect-loop.c (vect_analyze_loop): Likewise.
340 (vect_create_epilog_for_reduction): Use
341 get_related_vectype_for_scalar_type instead of
342 get_vectype_for_scalar_type_and_size.
343 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
345 (get_related_vectype_for_scalar_type): ...this new function.
346 Take a starting/"prevailing" vector mode rather than a vector size.
347 Take an optional nunits argument, with the same meaning as for
348 related_vector_mode. Use related_vector_mode when not
349 auto-detecting a mode, falling back to mode_for_vector if no
351 (get_vectype_for_scalar_type): Update accordingly.
352 (get_same_sized_vectype): Likewise.
353 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
355 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
357 * tree-vect-stmts.c (vectorizable_call): Require the types
358 to have the same size.
360 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
362 * tree-vect-stmts.c (vectorizable_call): If an operand is
363 constant or external, use get_vectype_for_scalar_type
364 rather than get_same_sized_vectype to get its vector type.
365 (vectorizable_conversion, vectorizable_shift): Likewise.
366 (vectorizable_operation): Likewise.
368 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
370 * tree-vectorizer.h (vec_info::vector_size): Replace with...
371 (vec_info::vector_mode): ...this new field.
372 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
373 (vect_analyze_loop, vect_transform_loop): Likewise.
374 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
375 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
376 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
377 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
378 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
380 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
382 * target.h (vector_sizes, auto_vector_sizes): Delete.
383 (vector_modes, auto_vector_modes): New typedefs.
384 * target.def (autovectorize_vector_sizes): Replace with...
385 (autovectorize_vector_modes): ...this new hook.
386 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
388 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
389 * doc/tm.texi: Regenerate.
390 * targhooks.h (default_autovectorize_vector_sizes): Delete.
391 (default_autovectorize_vector_modes): New function.
392 * targhooks.c (default_autovectorize_vector_sizes): Delete.
393 (default_autovectorize_vector_modes): New function.
394 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
395 of autovectorize_vector_sizes. Use the number of units in the mode
396 to calculate the maximum VF.
397 * omp-low.c (omp_clause_aligned_alignment): Use
398 autovectorize_vector_modes instead of autovectorize_vector_sizes.
399 Use a loop based on related_mode to iterate through all supported
400 vector modes for a given scalar mode.
401 * optabs-query.c (can_vec_mask_load_store_p): Use
402 autovectorize_vector_modes instead of autovectorize_vector_sizes.
403 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
404 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
405 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
407 (aarch64_autovectorize_vector_modes): ...this new function.
408 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
409 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
410 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
411 (arc_autovectorize_vector_modes): ...this new function.
412 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
413 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
414 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
415 (arm_autovectorize_vector_modes): ...this new function.
416 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
417 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
418 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
419 (ix86_autovectorize_vector_modes): ...this new function.
420 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
421 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
422 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
423 (mips_autovectorize_vector_modes): ...this new function.
424 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
425 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
427 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
429 * tree-vect-stmts.c (vectorizable_shift): Check the number
430 of vector elements as well as the type mode when deciding
431 whether an op1_vectype is compatible. Reuse the result of
432 this check when generating vector statements.
434 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
436 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
437 targetm.vectorize.preferred_simd_mode returns an integer mode,
438 use mode_for_vector to decide what the vector type's mode
439 should actually be. Use build_vector_type_for_mode instead
440 of build_vector_type.
442 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
444 * target.def (get_mask_mode): Take a vector mode itself as argument,
445 instead of properties about the vector mode.
446 * doc/tm.texi: Regenerate.
447 * targhooks.h (default_get_mask_mode): Update to reflect new
448 get_mode_mask interface.
449 * targhooks.c (default_get_mask_mode): Likewise. Use
450 related_int_vector_mode.
451 * optabs-query.c (can_vec_mask_load_store_p): Update call
453 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
454 first that the original mode really is a vector.
455 * tree.c (build_truth_vector_type_for): Likewise.
456 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
457 get_mode_mask interface.
458 (aarch64_expand_sve_vcond): Update call accordingly.
459 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
460 get_mode_mask interface.
461 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
463 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
465 * tree.h (build_truth_vector_type): Delete.
466 (build_same_sized_truth_vector_type): Likewise.
467 * tree.c (build_truth_vector_type): Rename to...
468 (build_truth_vector_type_for): ...this. Make static and take
469 a vector type as argument.
470 (truth_type_for): Update accordingly.
471 (build_same_sized_truth_vector_type): Delete.
472 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
473 instead of build_same_sized_truth_vector_type.
474 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
475 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
476 * tree-vect-patterns.c (build_mask_conversion): Likeise.
477 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
478 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
479 (vect_build_gather_load_calls, vectorizable_call): Likewise.
480 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
481 (vectorizable_store, vectorizable_condition): Likewise.
482 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
483 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
484 build_truth_vector_type.
485 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
486 Use truth_type_for instead of build_same_sized_truth_vector_type.
487 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
489 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
491 * tree.h (build_truth_vector_type_for_mode): Declare.
492 * tree.c (build_truth_vector_type_for_mode): New function,
494 (build_truth_vector_type): ...here.
495 (build_opaque_vector_type): Fix head comment.
496 * tree-vectorizer.h (supportable_narrowing_operation): Remove
498 (vect_halve_mask_nunits): Replace vec_info parameter with the
499 mode of the new vector.
500 (vect_double_mask_nunits): Likewise.
501 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
502 (vect_double_mask_nunits): Likewise.
503 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
504 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
505 to vect_halve_mask_nunits, getting the required mode from the unpack
507 (vect_set_loop_condition_masked): Update call accordingly.
508 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
509 parameter and update call to vect_double_mask_nunits.
510 (vectorizable_conversion): Update call accordingly.
511 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
512 (vectorizable_call): Update call accordingly.
513 (supportable_widening_operation): Update call to
514 vect_halve_mask_nunits.
515 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
516 Use build_truth_vector_type_mode instead of build_truth_vector_type.
518 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
520 * machmode.h (mode_for_int_vector): Delete.
521 (related_int_vector_mode): Declare.
522 * stor-layout.c (mode_for_int_vector): Delete.
523 (related_int_vector_mode): New function.
524 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
525 instead of mode_for_int_vector.
526 (expand_vec_perm_const): Likewise.
527 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
528 (aarch64_evpc_sve_tbl): Likewise.
529 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
530 (s390_expand_vcond): Likewise.
532 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
534 * target.def (related_mode): New hook.
535 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
536 * doc/tm.texi: Regenerate.
537 * targhooks.h (default_vectorize_related_mode): Declare.
538 * targhooks.c (default_vectorize_related_mode): New function.
539 * machmode.h (related_vector_mode): Declare.
540 * stor-layout.c (related_vector_mode): New function.
541 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
542 * optabs-query.c (qimode_for_vec_perm): Likewise.
543 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
544 (vectorizable_store, vectorizable_load): Likewise
546 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
548 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
549 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
550 * config/arm/arm-c.c (arm_cpu_builtins): Define
551 __GCC_ASM_FLAG_OUTPUTS__.
552 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
553 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
554 Define __GCC_ASM_FLAG_OUTPUTS__.
555 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
556 * doc/extend.texi (FlagOutputOperands): Add documentation
559 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
560 * config/arm/predicates.md (nz_comparison_operator): Rename
561 from noov_comparison_operator.
562 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
563 (arm_gen_dicompare_reg): Likewise.
564 (maybe_get_arm_condition_code): Likewise.
565 (thumb1_final_prescan_insn): Likewise.
566 (arm_emit_coreregs_64bit_shift): Likewise.
567 * config/arm/arm.md (addsi3_compare0): Likewise.
568 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
569 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
570 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
571 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
572 (*mulsi3addsi_compare0_scratch): Likewise.
573 (*mulsi3addsi_compare0_scratch_v6): Likewise.
574 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
575 (*zeroextractsi_compare0_scratch): Likewise.
576 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
577 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
578 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
579 (andsi_not_shiftsi_si_scc): Likewise.
580 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
581 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
582 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
583 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
584 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
585 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
586 (return_addr_mask, *check_arch2): Likewise.
587 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
588 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
589 (compare_scc splitters): Likewise.
590 (movcond_addsi): Likewise.
591 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
592 (*thumb2_addsi3_compare0_scratch): Likewise.
593 (*thumb2_mulsi_short_compare0): Likewise.
594 (*thumb2_mulsi_short_compare0_scratch): Likewise.
595 (compare peephole2s): Likewise.
596 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
597 nz_comparison_operator names.
598 (cbranchsi4_insn): Likewise.
600 * config/arm/constraints.md (c): Use cc_register predicate.
602 * config/aarch64/constraints.md (c): New constraint.
604 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
606 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
607 ipa_merge_fn_summary_after_inlining): Micro optimize.
609 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
611 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
613 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
615 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
616 (ipa_value_range_from_jfunc): New function.
617 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
618 known_value_ranges parameter; use it to evalulate conditions.
619 (evaluate_properties_for_edge): Compute known value ranges.
620 (ipa_fn_summary_t::duplicate): Update use of
621 evaluate_conditions_for_known_args.
622 (estimate_ipcp_clone_size_and_time): Likewise.
623 (ipa_merge_fn_summary_after_inlining): Likewise.
624 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
626 2019-11-14 Martin Liska <mliska@suse.cz>
628 * ipa-inline.c (want_inline_small_function_p): Use
629 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
630 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
632 2019-11-14 Martin Liska <mliska@suse.cz>
634 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
635 of a callee to get value of the param.
636 * ipa-inline.c (inline_insns_auto): Use proper
638 * opts.c (maybe_default_option): Do not overwrite param
639 value if optimization level does not match. Note that
640 params usually have default value set via Init() keyword.
641 * params.opt: Remove -param=max-inline-insns-auto-O2.
642 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
643 * doc/invoke.texi: Remove documentation of
644 max-inline-insns-auto-O2.
646 2019-11-14 Martin Liska <mliska@suse.cz>
648 * tree-switch-conversion.c (switch_conversion::switch_conversion):
649 Do not initialize m_other_count.
650 (switch_conversion::collect): Do not count m_default_count and
651 m_other_count as we use frequencies for edges.
652 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
654 2019-11-14 Martin Liska <mliska@suse.cz>
657 * doc/invoke.texi: Document -fallocation-dce.
659 2019-11-14 Martin Liska <mliska@suse.cz>
662 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
663 PTA_ICELAKE_CLIENT which is later interited by
664 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
666 2019-11-14 Martin Liska <mliska@suse.cz>
668 * ipa-icf.c (sem_item_optimizer::execute): Save
670 (sem_item_optimizer::parse_nonsingleton_classes):
671 Return number of loaded symbols.
672 (sem_item_optimizer::merge_classes): Print
673 statistics about totally needed symbols.
674 * ipa-icf.h (parse_nonsingleton_classes): Change return
676 (merge_classes): Add one argument.
678 2019-11-14 Martin Liska <mliska@suse.cz>
680 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
681 func_checker::hash_operand by handling of FIELD_DECLs.
683 2019-11-14 Martin Liska <mliska@suse.cz>
685 * ipa-icf-gimple.h (func_checker::func_checker): Add
687 * ipa-icf.c (sem_function::init): Make operand_equal_p
688 and hash_operand public.
689 (sem_item::add_expr): Remove.
690 (sem_item::add_type): Remove.
691 (sem_function::hash_stmt): Use m_checker for hashing
692 of GIMPLE statements.
693 (sem_function::parse): Init with checker.
694 (sem_variable::parse): Pass NULL as checker.
695 (sem_item_optimizer::parse_funcs_and_vars):
696 Pass checker to ::parse function.
697 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
698 (sem_variable::parse): New function.
699 (sem_variable::get_hash): Only return computed hash value.
700 (sem_variable::init): Initialize hash of a variable.
701 * ipa-icf.h: Remove add_expr, add_type and add func_checker
702 to couple of functions as a new argument.
704 2019-11-14 Martin Liska <mliska@suse.cz>
706 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
708 (func_checker::compare_gimple_assign): Likewise.
710 2019-11-14 Jakub Jelinek <jakub@redhat.com>
712 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
713 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
714 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
716 * omp-general.c (omp_context_name_list_prop): New function.
717 (omp_context_selector_matches): Use it. Return 0 if it returns
719 (omp_context_selector_props_compare): Allow equivalency of an
720 identifier and a string literal containing no embedded zeros.
722 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
724 * range-op.cc (RANGE3): Remove.
725 (range_tests): Remove all selftest that check for multi-ranges.
726 Put tests in namespace selftest.
727 * selftest.h: Move range_tests into namespace selftest.
728 * value-range.h (class value_range): Unfriend range_tests.
730 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
732 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
733 normalize_symbolics and normalize_addresses working in place.
734 (range_fold_unary_symbolics_p): Same.
735 (range_fold_unary_symbolics_p): Same.
736 * value-range.cc (num_pairs): Same.
740 (normalize_addresses): Same.
741 (normalize_symbolics): Same.
742 * value-range.h (normalize_symbolics): Same.
743 (normalize_addresses): Same.
745 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
748 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
749 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
750 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
751 (ipa_agg_jump_function): Remove member function equal_to.
752 (ipa_agg_jump_function_p): Remove typedef.
753 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
754 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
755 information for aggregate jump function.
756 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
757 record last definition statement.
758 (load_from_unmodified_param_or_agg): New function.
759 (ipa_known_agg_contents_list): Add new field type and value, remove
761 (build_agg_jump_func_from_list): Rename parameter const_count to
762 value_count, build aggregate jump function from ipa_load_agg_data.
763 (analyze_agg_content_value): New function.
764 (extract_mem_content): Analyze memory store assignment to prepare
765 information for aggregate jump function generation.
766 (determine_known_aggregate_parts): Add new parameter fbi, remove
767 parameter aa_walk_budeget_p.
768 (update_jump_functions_after_inlining): Update aggregate jump function.
769 (ipa_find_agg_cst_for_param): Change type of parameter agg.
770 (try_make_edge_direct_simple_call): Add new parameter new_root.
771 (try_make_edge_direct_virtual_call): Add new parameter new_root and
773 (update_indirect_edges_after_inlining): Pass new argument to
774 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
775 (ipa_write_jump_function): Write aggregate jump function to file.
776 (ipa_read_jump_function): Read aggregate jump function from file.
777 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
778 * ipa-cp.c (ipa_get_jf_arith_result): New function.
779 (ipa_agg_value_from_node): Likewise.
780 (ipa_agg_value_set_from_jfunc): Likewise.
781 (propagate_vals_across_arith_jfunc): Likewise.
782 (propagate_aggregate_lattice): Likewise.
783 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
784 (propagate_vals_across_pass_through): Call
785 propagate_vals_across_arith_jfunc.
786 (get_clone_agg_value): Move forward.
787 (propagate_aggs_across_jump_function): Handle value propagation for
788 aggregate jump function.
789 (agg_jmp_p_vec_for_t_vec): Remove.
790 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
791 with vec<ipa_agg_value>.
792 (copy_plats_to_inter, intersect_with_plats): Likewise.
793 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
794 (intersect_aggregate_with_edge): Likewise.
795 (find_aggregate_values_for_callers_subset): Likewise.
796 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
797 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
798 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
799 (gather_context_independent_values): Likewise.
800 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
801 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
802 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
803 (evaluate_properties_for_edge): Likewise.
804 (estimate_edge_devirt_benefit): Likewise.
805 (estimate_edge_size_and_time): Likewise.
806 (estimate_calls_size_and_time): Likewise.
807 (ipa_call_context::ipa_call_context): Likewise.
808 (estimate_ipcp_clone_size_and_time): Likewise.
809 * ipa-fnsummary.h (ipa_call_context): Replace
810 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
811 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
812 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
813 (do_estimate_edge_size): Likewise.
814 (do_estimate_edge_hints): Likewise.
816 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
818 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
821 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
823 * ipa-profile.c (check_argument_count): Check properly that e_info
824 is non-NULL; do not check descriptors.
826 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
828 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
829 check for ipa profiles.
831 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
834 * ipa-prop.c (update_indirect_edges_after_inlining):
835 Mark parameter as used.
836 * ipa-inline.c (recursive_inlining): Reset node cache
838 (inline_small_functions): Remove checking ifdef.
839 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
842 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
845 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
847 (ipa_profile): Fix reversed test.
849 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
851 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
852 (propagate_constants_topo): Fix typo.
854 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
856 * Makefile.in (OBJS): Add value-range.o.
857 (GTFILES): Add value-range.h.
858 * gengtype.c (open_base_files): Add value-range.h to list of
860 * tree-vrp.c: Move the following value_range related functions:
861 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
862 constant_p, set_undefined, set_varying, may_contain_p,
863 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
864 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
865 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
866 value_inside_range, ranges_from_anti_range, union_ranges,
867 intersect_ranges, intersect_helper, union_helper, union_,
868 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
869 upper_bound, contains_p, invert, intersect...
870 * value-range.cc: ...to here.
871 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
872 associated inline methods from here...
873 * value-range.h: ...to here.
875 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
877 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
878 instead of asserting its value.
880 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
882 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
883 constructors and set methods so value_range_kind is the last
884 argument and defaults to VR_RANGE.
885 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
886 * ipa-cp.c (propagate_vr_across_jump_function): Same.
887 * ipa-prop.c (ipa_get_value_range): Same.
888 (ipa_compute_jump_functions_for_edge): Same.
889 * range-op.cc (value_range_from_overflowed_bounds): Same.
890 (operator_cast::op1_range): Same.
892 * range.cc (range_nonzero): Same.
893 * tree-ssanames.c (get_range_info): Same.
894 * tree-vrp.c (value_range_equiv::set): Same.
895 (value_range::value_range): Same.
896 (value_range_equiv::value_range_equiv): Same.
897 (value_range_equiv::update): Same.
898 (value_range_equiv::deep_copy): Same.
899 (value_range_equiv::move): Same.
900 (value_range_equiv::set_undefined): Same.
901 (value_range::set): Same.
902 (value_range::set_nonzero): Same.
903 (ranges_from_anti_range): Same.
904 (extract_range_from_plus_minus_expr): Same.
905 (value_range::intersect_helper): Same.
906 (value_range_equiv::intersect): Same.
907 (value_range::union_helper): Same.
908 (value_range_equiv::union_): Same.
909 (value_range::normalize_symbolics): Same.
910 (value_range::invert): Same.
911 (determine_value_range_1): Same.
912 * tree-vrp.h (class value_range): Same.
913 (class value_range_equiv): Same.
914 * vr-values.c (set_value_range_to_nonnegative): Same.
915 (set_value_range_to_truthvalue): Same.
916 (vr_values::update_value_range): Same.
917 (vr_values::extract_range_for_var_from_comparison_expr): Same.
918 (vr_values::extract_range_from_binary_expr): Same.
919 (vr_values::extract_range_from_comparison): Same.
920 (vr_values::extract_range_basic): Same.
921 (vr_values::adjust_range_with_scev): Same.
922 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
923 (vr_values::extract_range_from_phi_node): Same.
925 2019-11-13 Ulrich Drepper <drepper@redhat.com>
927 * tree-dump.c (dequeue_and_dump): Print first tree operand
928 for VIEW_CONVERT_EXPR.
930 2019-11-13 Joseph Myers <joseph@codesourcery.com>
932 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
933 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
934 * real.c (get_max_float): Add norm_max argument.
935 * real.h (get_max_float): Update prototype.
936 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
939 2019-11-13 Martin Liska <mliska@suse.cz>
941 * dbgcnt.c (test_sorted_dbg_counters): New.
942 (dbgcnt_c_tests): Likewise.
943 * selftest-run-tests.c (selftest::run_tests): Likewise.
944 * selftest.h (dbgcnt_c_tests): Likewise.
946 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
947 Martin Jambor <mjambor@suse.cz>
950 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
951 (identify_dead_nodes): Likewise.
953 2019-11-13 Martin Liska <mliska@suse.cz>
955 * ipa-icf.c (sem_function::equals_private): Do not overuse
956 push/pop_cfun functions.
958 2019-11-13 Martin Liska <mliska@suse.cz>
960 * common.opt: Document change of -fdbg-cnt option.
961 * dbgcnt.c (DEBUG_COUNTER): Remove.
962 (dbg_cnt_is_enabled): Remove.
963 (dbg_cnt): Work with new intervals.
964 (dbg_cnt_set_limit_by_index): Set to new
966 (dbg_cnt_set_limit_by_name): Likewise.
967 (dbg_cnt_process_single_pair): Process new format.
968 (dbg_cnt_process_opt): Likewise.
969 (dbg_cnt_list_all_counters): Likewise.
970 * doc/invoke.texi: Document change of -fdbg-cnt option.
973 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
975 * ipa-inline.c (ipa_inline): Check that function is defined before
978 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
979 Julian Brown <julian@codesourcery.com>
981 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
982 flag_worker_partitioning is not set.
983 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
984 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
986 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
988 * config/gcn/gcn-run.c (heap_region): New global variable.
989 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
990 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
991 (get_kernarg_region): Move contents to ....
992 (get_memory_region): .... here.
993 (get_heap_region): New function.
994 (init_device): Initialize the heap_region.
995 (device_malloc): Add region parameter.
996 (struct kernargs): Move heap ....
997 (heap): ... to global scope.
998 (main): Allocate heap separate to kernargs.
1000 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1002 * ipa-prop.c (ipa_print_node_jump_functions,
1003 ipa_print_node_params): Print info about missing summaries.
1005 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1007 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
1008 the cost of generating loop masks.
1010 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1012 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
1014 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
1015 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1016 (vect_transform_loop): Likewise.
1017 (vect_analyze_loop_costing): Don't take the cost of versioning
1018 into account for the static profitability threshold if it turns
1019 out that no versioning is needed.
1021 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1023 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
1024 and target_option_default_node to get -fprofile-generate ctors working
1027 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1029 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
1030 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
1031 (vectorizable_assignment): Don't add a cost for nop conversions.
1032 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1034 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
1036 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1038 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
1039 number of ncopies as an additional argument.
1040 (vectorizable_conversion): Update call accordingly. Use "modifier"
1041 to check whether a conversion is between vectors with the same
1044 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1046 * config/aarch64/aarch64-sve-builtins-functions.h
1047 (unary_count::expand): Use aarch64_sve_int_mode instead of
1048 mode_for_int_vector.
1050 2019-11-13 Martin Liska <mliska@suse.cz>
1052 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
1054 2019-11-13 Martin Liska <mliska@suse.cz>
1056 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1057 Remove call to finalize_options_struct.
1059 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1062 * config/avr/t-avr (avr-mcus): Do not depend on
1063 $(srcdir)/config/avr/t-multilib.
1065 2019-11-13 Richard Biener <rguenther@suse.de>
1067 PR tree-optimization/92473
1068 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1069 direct optab reduction in the correct type.
1071 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1073 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1074 hexadecimal literal.
1076 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1078 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1079 UNORDERED if !HONOR_NANS (DFmode).
1080 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1081 if !HONOR_NANS (<MODE>mode).
1083 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1085 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1086 (ipcp_verify_propagated_values): Likewise.
1087 (propagate_constants_across_call): Likewise.
1088 (propagate_constants_topo): Likewise.
1089 (ipcp_propagate_stage): Likewise.
1091 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1094 * ipa-profile.c (check_argument_count): Break out from ...;
1095 watch for missing summaries.
1096 (ipa_profile): Here.
1098 2019-11-12 Martin Sebor <msebor@redhat.com>
1100 PR tree-optimization/92412
1101 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1104 2019-11-12 Martin Sebor <msebor@redhat.com>
1107 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1108 (directive::argno): New member.
1109 (format_result::aliases, format_result::alias_count): New data members.
1110 (format_result::append_alias): New member function.
1111 (fmtresult::dst_offset): New data member.
1112 (pass_sprintf_length::call_info::dst_origin): New data member.
1113 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1114 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1115 (get_origin_and_offset): Same.
1116 (format_string): Call it.
1117 (format_directive): Call append_alias and set directive argument
1119 (maybe_warn_overlap): New function.
1120 (pass_sprintf_length::compute_format_length): Call it.
1121 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1122 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1124 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1126 PR rtl-optimization/92430
1127 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1128 dominance info at the beginning.
1130 2019-11-12 Richard Biener <rguenther@suse.de>
1132 PR tree-optimization/92460
1133 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1134 expression before gimplifying.
1136 2019-11-12 Richard Biener <rguenther@suse.de>
1138 PR tree-optimization/92461
1139 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1140 stmt after propagation.
1142 2019-11-12 Martin Liska <mliska@suse.cz>
1144 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1145 Use SET_OPTION_IF_UNSET.
1146 (ix86_option_override_internal): Likewise.
1147 * opts.c (default_options_optimization): Likewise.
1148 (finish_options): Likewise.
1149 (enable_fdo_optimizations): Likewise.
1150 (common_handle_option): Likewise.
1152 2019-11-12 Martin Liska <mliska@suse.cz>
1154 * common/common-target.def: Remove option_validate_param and
1155 option_default_params.
1156 * common/common-targhooks.c (default_option_validate_param):
1158 * common/common-targhooks.h (default_option_validate_param):
1160 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1161 Remove usage of this.
1162 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1163 (aarch64_option_validate_param): Likewise.
1164 (aarch64_option_default_params): Likewise
1165 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1166 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1167 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1168 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1169 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1170 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1171 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1172 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1173 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1174 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1175 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1177 * doc/tm.texi: Remove option_default_params and option_validate_param.
1178 * doc/tm.texi.in: Likewise.
1180 2019-11-12 Martin Liska <mliska@suse.cz>
1182 * common/common-target.def:
1183 Do not mention set_default_param_value
1184 and set_param_value.
1185 * doc/tm.texi: Likewise.
1187 2019-11-12 Martin Liska <mliska@suse.cz>
1189 * common.opt: Remove param_values.
1190 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1191 Remove finalize_options_struct.
1192 * gcc.c (driver::decode_argv): Do not call global_init_params
1194 (driver::finalize): Do not call params_c_finalize
1195 and finalize_options_struct.
1196 * opt-suggestions.c (option_proposer::get_completions): Remove
1197 special casing of params.
1198 (option_proposer::find_param_completions): Remove.
1199 (test_completion_partial_match): Update expected output.
1200 * opt-suggestions.h: Remove find_param_completions.
1201 * opts-common.c (add_misspelling_candidates): Add
1202 --param with a space.
1203 * opts.c (handle_param): Remove.
1204 (init_options_struct):. Remove init_options_struct and
1206 (finalize_options_struct): Remove.
1207 (common_handle_option): Use SET_OPTION_IF_UNSET.
1208 * opts.h (finalize_options_struct): Remove.
1209 * toplev.c (general_init): Do not call global_init_params.
1210 (toplev::finalize): Do not call params_c_finalize and
1211 finalize_options_struct.
1213 2019-11-12 Martin Liska <mliska@suse.cz>
1215 * Makefile.in: Remove PARAMS_H and params.list
1217 * params-enum.h: Remove.
1218 * params-list.h: Remove.
1219 * params-options.h: Remove.
1221 * params.def: Remove.
1223 * asan.c: Do not include params.h.
1224 * auto-profile.c: Likewise.
1225 * bb-reorder.c: Likewise.
1226 * builtins.c: Likewise.
1227 * cfgcleanup.c: Likewise.
1228 * cfgexpand.c: Likewise.
1229 * cfgloopanal.c: Likewise.
1230 * cgraph.c: Likewise.
1231 * combine.c: Likewise.
1232 * common/config/aarch64/aarch64-common.c: Likewise.
1233 * common/config/gcn/gcn-common.c: Likewise.
1234 * common/config/ia64/ia64-common.c: Likewise.
1235 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1236 * common/config/rs6000/rs6000-common.c: Likewise.
1237 * common/config/sh/sh-common.c: Likewise.
1238 * config/aarch64/aarch64.c: Likewise.
1239 * config/alpha/alpha.c: Likewise.
1240 * config/arm/arm.c: Likewise.
1241 * config/avr/avr.c: Likewise.
1242 * config/csky/csky.c: Likewise.
1243 * config/i386/i386-builtins.c: Likewise.
1244 * config/i386/i386-expand.c: Likewise.
1245 * config/i386/i386-features.c: Likewise.
1246 * config/i386/i386-options.c: Likewise.
1247 * config/i386/i386.c: Likewise.
1248 * config/ia64/ia64.c: Likewise.
1249 * config/rs6000/rs6000-logue.c: Likewise.
1250 * config/rs6000/rs6000.c: Likewise.
1251 * config/s390/s390.c: Likewise.
1252 * config/sparc/sparc.c: Likewise.
1253 * config/visium/visium.c: Likewise.
1254 * coverage.c: Likewise.
1255 * cprop.c: Likewise.
1257 * cselib.c: Likewise.
1259 * emit-rtl.c: Likewise.
1260 * explow.c: Likewise.
1261 * final.c: Likewise.
1262 * fold-const.c: Likewise.
1265 * ggc-common.c: Likewise.
1266 * ggc-page.c: Likewise.
1267 * gimple-loop-interchange.cc: Likewise.
1268 * gimple-loop-jam.c: Likewise.
1269 * gimple-loop-versioning.cc: Likewise.
1270 * gimple-ssa-split-paths.c: Likewise.
1271 * gimple-ssa-sprintf.c: Likewise.
1272 * gimple-ssa-store-merging.c: Likewise.
1273 * gimple-ssa-strength-reduction.c: Likewise.
1274 * gimple-ssa-warn-alloca.c: Likewise.
1275 * gimple-ssa-warn-restrict.c: Likewise.
1276 * graphite-isl-ast-to-gimple.c: Likewise.
1277 * graphite-optimize-isl.c: Likewise.
1278 * graphite-scop-detection.c: Likewise.
1279 * graphite-sese-to-poly.c: Likewise.
1280 * graphite.c: Likewise.
1281 * haifa-sched.c: Likewise.
1282 * hsa-gen.c: Likewise.
1283 * ifcvt.c: Likewise.
1284 * ipa-cp.c: Likewise.
1285 * ipa-fnsummary.c: Likewise.
1286 * ipa-inline-analysis.c: Likewise.
1287 * ipa-inline.c: Likewise.
1288 * ipa-polymorphic-call.c: Likewise.
1289 * ipa-profile.c: Likewise.
1290 * ipa-prop.c: Likewise.
1291 * ipa-split.c: Likewise.
1292 * ipa-sra.c: Likewise.
1293 * ira-build.c: Likewise.
1294 * ira-conflicts.c: Likewise.
1295 * loop-doloop.c: Likewise.
1296 * loop-invariant.c: Likewise.
1297 * loop-unroll.c: Likewise.
1298 * lra-assigns.c: Likewise.
1299 * lra-constraints.c: Likewise.
1300 * modulo-sched.c: Likewise.
1301 * opt-suggestions.c: Likewise.
1303 * postreload-gcse.c: Likewise.
1304 * predict.c: Likewise.
1305 * reload.c: Likewise.
1306 * reorg.c: Likewise.
1307 * resource.c: Likewise.
1308 * sanopt.c: Likewise.
1309 * sched-deps.c: Likewise.
1310 * sched-ebb.c: Likewise.
1311 * sched-rgn.c: Likewise.
1312 * sel-sched-ir.c: Likewise.
1313 * sel-sched.c: Likewise.
1314 * shrink-wrap.c: Likewise.
1316 * targhooks.c: Likewise.
1317 * toplev.c: Likewise.
1318 * tracer.c: Likewise.
1319 * trans-mem.c: Likewise.
1320 * tree-chrec.c: Likewise.
1321 * tree-data-ref.c: Likewise.
1322 * tree-if-conv.c: Likewise.
1323 * tree-inline.c: Likewise.
1324 * tree-loop-distribution.c: Likewise.
1325 * tree-parloops.c: Likewise.
1326 * tree-predcom.c: Likewise.
1327 * tree-profile.c: Likewise.
1328 * tree-scalar-evolution.c: Likewise.
1329 * tree-sra.c: Likewise.
1330 * tree-ssa-ccp.c: Likewise.
1331 * tree-ssa-dom.c: Likewise.
1332 * tree-ssa-dse.c: Likewise.
1333 * tree-ssa-ifcombine.c: Likewise.
1334 * tree-ssa-loop-ch.c: Likewise.
1335 * tree-ssa-loop-im.c: Likewise.
1336 * tree-ssa-loop-ivcanon.c: Likewise.
1337 * tree-ssa-loop-ivopts.c: Likewise.
1338 * tree-ssa-loop-manip.c: Likewise.
1339 * tree-ssa-loop-niter.c: Likewise.
1340 * tree-ssa-loop-prefetch.c: Likewise.
1341 * tree-ssa-loop-unswitch.c: Likewise.
1342 * tree-ssa-math-opts.c: Likewise.
1343 * tree-ssa-phiopt.c: Likewise.
1344 * tree-ssa-pre.c: Likewise.
1345 * tree-ssa-reassoc.c: Likewise.
1346 * tree-ssa-sccvn.c: Likewise.
1347 * tree-ssa-scopedtables.c: Likewise.
1348 * tree-ssa-sink.c: Likewise.
1349 * tree-ssa-strlen.c: Likewise.
1350 * tree-ssa-structalias.c: Likewise.
1351 * tree-ssa-tail-merge.c: Likewise.
1352 * tree-ssa-threadbackward.c: Likewise.
1353 * tree-ssa-threadedge.c: Likewise.
1354 * tree-ssa-uninit.c: Likewise.
1355 * tree-switch-conversion.c: Likewise.
1356 * tree-vect-data-refs.c: Likewise.
1357 * tree-vect-loop.c: Likewise.
1358 * tree-vect-slp.c: Likewise.
1359 * tree-vrp.c: Likewise.
1361 * value-prof.c: Likewise.
1362 * var-tracking.c: Likewise.
1364 2019-11-12 Martin Liska <mliska@suse.cz>
1366 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
1367 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
1369 (asan_sanitize_allocas_p): Likewise.
1370 (asan_emit_stack_protection): Likewise.
1371 (asan_protect_global): Likewise.
1372 (instrument_derefs): Likewise.
1373 (instrument_builtin_call): Likewise.
1374 (asan_expand_mark_ifn): Likewise.
1375 * auto-profile.c (auto_profile): Likewise.
1376 * bb-reorder.c (copy_bb_p): Likewise.
1377 (duplicate_computed_gotos): Likewise.
1378 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
1379 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
1380 (try_crossjump_bb): Likewise.
1381 * cfgexpand.c (defer_stack_allocation): Likewise.
1382 (stack_protect_classify_type): Likewise.
1383 (pass_expand::execute): Likewise.
1384 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1385 (estimate_reg_pressure_cost): Likewise.
1386 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
1387 * combine.c (combine_instructions): Likewise.
1388 (record_value_for_reg): Likewise.
1389 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
1390 (aarch64_option_default_params): Likewise.
1391 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1392 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1393 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1394 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1395 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
1396 (aarch64_allocate_and_probe_stack_space): Likewise.
1397 (aarch64_expand_epilogue): Likewise.
1398 (aarch64_override_options_internal): Likewise.
1399 * config/alpha/alpha.c (alpha_option_override): Likewise.
1400 * config/arm/arm.c (arm_option_override): Likewise.
1401 (arm_valid_target_attribute_p): Likewise.
1402 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1403 * config/i386/i386.c (get_probe_interval): Likewise.
1404 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
1405 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1406 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
1407 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
1408 (get_stack_clash_protection_guard_size): Likewise.
1409 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1410 * config/s390/s390.c (allocate_stack_space): Likewise.
1411 (s390_emit_prologue): Likewise.
1412 (s390_option_override_internal): Likewise.
1413 * config/sparc/sparc.c (sparc_option_override): Likewise.
1414 * config/visium/visium.c (visium_option_override): Likewise.
1415 * coverage.c (get_coverage_counts): Likewise.
1416 (coverage_compute_profile_id): Likewise.
1417 (coverage_begin_function): Likewise.
1418 (coverage_end_function): Likewise.
1419 * cse.c (cse_find_path): Likewise.
1420 (cse_extended_basic_block): Likewise.
1421 (cse_main): Likewise.
1422 * cselib.c (cselib_invalidate_mem): Likewise.
1423 * dse.c (dse_step1): Likewise.
1424 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
1425 (get_max_insn_count): Likewise.
1426 (make_debug_insn_raw): Likewise.
1427 (init_emit): Likewise.
1428 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1429 * final.c (compute_alignments): Likewise.
1430 * fold-const.c (fold_range_test): Likewise.
1431 (fold_truth_andor): Likewise.
1432 (tree_single_nonnegative_warnv_p): Likewise.
1433 (integer_valued_real_single_p): Likewise.
1434 * gcse.c (want_to_gcse_p): Likewise.
1435 (prune_insertions_deletions): Likewise.
1436 (hoist_code): Likewise.
1437 (gcse_or_cprop_is_too_expensive): Likewise.
1438 * ggc-common.c: Likewise.
1439 * ggc-page.c (ggc_collect): Likewise.
1440 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1441 (MAX_DATAREFS): Likewise.
1442 (OUTER_STRIDE_RATIO): Likewise.
1443 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1444 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1445 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1446 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1447 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1448 (imm_store_chain_info::output_merged_store): Likewise.
1449 (pass_store_merging::process_store): Likewise.
1450 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1451 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1452 (scop_to_isl_ast): Likewise.
1453 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1454 (optimize_isl): Likewise.
1455 * graphite-scop-detection.c (build_scops): Likewise.
1456 * haifa-sched.c (set_modulo_params): Likewise.
1457 (rank_for_schedule): Likewise.
1458 (model_add_to_worklist): Likewise.
1459 (model_promote_insn): Likewise.
1460 (model_choose_insn): Likewise.
1461 (queue_to_ready): Likewise.
1462 (autopref_multipass_dfa_lookahead_guard): Likewise.
1463 (schedule_block): Likewise.
1464 (sched_init): Likewise.
1465 * hsa-gen.c (init_prologue): Likewise.
1466 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1467 (cond_move_process_if_block): Likewise.
1468 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1469 (merge_agg_lats_step): Likewise.
1470 (devirtualization_time_bonus): Likewise.
1471 (hint_time_bonus): Likewise.
1472 (incorporate_penalties): Likewise.
1473 (good_cloning_opportunity_p): Likewise.
1474 (ipcp_propagate_stage): Likewise.
1475 * ipa-fnsummary.c (decompose_param_expr): Likewise.
1476 (set_switch_stmt_execution_predicate): Likewise.
1477 (analyze_function_body): Likewise.
1478 (compute_fn_summary): Likewise.
1479 * ipa-inline-analysis.c (estimate_growth): Likewise.
1480 * ipa-inline.c (caller_growth_limits): Likewise.
1481 (inline_insns_single): Likewise.
1482 (inline_insns_auto): Likewise.
1483 (can_inline_edge_by_limits_p): Likewise.
1484 (want_early_inline_function_p): Likewise.
1485 (big_speedup_p): Likewise.
1486 (want_inline_small_function_p): Likewise.
1487 (want_inline_self_recursive_call_p): Likewise.
1488 (edge_badness): Likewise.
1489 (recursive_inlining): Likewise.
1490 (compute_max_insns): Likewise.
1491 (early_inliner): Likewise.
1492 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
1493 * ipa-profile.c (ipa_profile): Likewise.
1494 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1495 (ipa_analyze_node): Likewise.
1496 (ipcp_transform_function): Likewise.
1497 * ipa-split.c (consider_split): Likewise.
1498 * ipa-sra.c (allocate_access): Likewise.
1499 (process_scan_results): Likewise.
1500 (ipa_sra_summarize_function): Likewise.
1501 (pull_accesses_from_callee): Likewise.
1502 * ira-build.c (loop_compare_func): Likewise.
1503 (mark_loops_for_removal): Likewise.
1504 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1505 * loop-doloop.c (doloop_optimize): Likewise.
1506 * loop-invariant.c (gain_for_invariant): Likewise.
1507 (move_loop_invariants): Likewise.
1508 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
1509 (decide_unroll_runtime_iterations): Likewise.
1510 (decide_unroll_stupid): Likewise.
1511 (expand_var_during_unrolling): Likewise.
1512 * lra-assigns.c (spill_for): Likewise.
1513 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
1514 * modulo-sched.c (sms_schedule): Likewise.
1515 (DFA_HISTORY): Likewise.
1516 * opts.c (default_options_optimization): Likewise.
1517 (finish_options): Likewise.
1518 (common_handle_option): Likewise.
1519 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1521 * predict.c (get_hot_bb_threshold): Likewise.
1522 (maybe_hot_count_p): Likewise.
1523 (probably_never_executed): Likewise.
1524 (predictable_edge_p): Likewise.
1525 (predict_loops): Likewise.
1526 (expr_expected_value_1): Likewise.
1527 (tree_predict_by_opcode): Likewise.
1528 (handle_missing_profiles): Likewise.
1529 * reload.c (find_equiv_reg): Likewise.
1530 * reorg.c (redundant_insn): Likewise.
1531 * resource.c (mark_target_live_regs): Likewise.
1532 (incr_ticks_for_insn): Likewise.
1533 * sanopt.c (pass_sanopt::execute): Likewise.
1534 * sched-deps.c (sched_analyze_1): Likewise.
1535 (sched_analyze_2): Likewise.
1536 (sched_analyze_insn): Likewise.
1537 (deps_analyze_insn): Likewise.
1538 * sched-ebb.c (schedule_ebbs): Likewise.
1539 * sched-rgn.c (find_single_block_region): Likewise.
1540 (too_large): Likewise.
1541 (haifa_find_rgns): Likewise.
1542 (extend_rgns): Likewise.
1543 (new_ready): Likewise.
1544 (schedule_region): Likewise.
1545 (sched_rgn_init): Likewise.
1546 * sel-sched-ir.c (make_region_from_loop): Likewise.
1547 * sel-sched-ir.h (MAX_WS): Likewise.
1548 * sel-sched.c (process_pipelined_exprs): Likewise.
1549 (sel_setup_region_sched_flags): Likewise.
1550 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1551 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1552 * toplev.c (print_version): Likewise.
1553 (process_options): Likewise.
1554 * tracer.c (tail_duplicate): Likewise.
1555 * trans-mem.c (tm_log_add): Likewise.
1556 * tree-chrec.c (chrec_fold_plus_1): Likewise.
1557 * tree-data-ref.c (split_constant_offset): Likewise.
1558 (compute_all_dependences): Likewise.
1559 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
1560 * tree-inline.c (remap_gimple_stmt): Likewise.
1561 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
1562 * tree-parloops.c (MIN_PER_THREAD): Likewise.
1563 (create_parallel_loop): Likewise.
1564 * tree-predcom.c (determine_unroll_factor): Likewise.
1565 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
1566 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1567 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1568 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
1569 (dse_optimize_redundant_stores): Likewise.
1570 (dse_classify_store): Likewise.
1571 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1572 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1573 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
1574 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1575 (try_peel_loop): Likewise.
1576 (tree_unroll_loops_completely): Likewise.
1577 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1578 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
1579 (MAX_CONSIDERED_GROUPS): Likewise.
1580 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
1581 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
1582 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
1583 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
1584 (L1_CACHE_SIZE_BYTES): Likewise.
1585 (L2_CACHE_SIZE_BYTES): Likewise.
1586 (should_issue_prefetch_p): Likewise.
1587 (schedule_prefetches): Likewise.
1588 (determine_unroll_factor): Likewise.
1589 (volume_of_references): Likewise.
1590 (add_subscript_strides): Likewise.
1591 (self_reuse_distance): Likewise.
1592 (mem_ref_count_reasonable_p): Likewise.
1593 (insn_to_prefetch_ratio_too_small_p): Likewise.
1594 (loop_prefetch_arrays): Likewise.
1595 (tree_ssa_prefetch_arrays): Likewise.
1596 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1597 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1598 (convert_mult_to_fma): Likewise.
1599 (math_opts_dom_walker::after_dom_children): Likewise.
1600 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1601 (hoist_adjacent_loads): Likewise.
1602 (gate_hoist_loads): Likewise.
1603 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1604 (compute_partial_antic_aux): Likewise.
1605 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
1606 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
1607 (vn_reference_lookup): Likewise.
1608 (do_rpo_vn): Likewise.
1609 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
1610 * tree-ssa-sink.c (select_best_block): Likewise.
1611 * tree-ssa-strlen.c (new_stridx): Likewise.
1612 (new_addr_stridx): Likewise.
1613 (get_range_strlen_dynamic): Likewise.
1614 (class ssa_name_limit_t): Likewise.
1615 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1616 (create_variable_info_for_1): Likewise.
1617 (init_alias_vars): Likewise.
1618 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1619 (tail_merge_optimize): Likewise.
1620 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1621 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1622 (thread_jumps::find_jump_threads_backwards): Likewise.
1623 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1624 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1625 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1626 (jump_table_cluster::can_be_handled): Likewise.
1627 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1628 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1629 (param_switch_conversion_branch_ratio): Likewise.
1630 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1631 (vect_enhance_data_refs_alignment): Likewise.
1632 (vect_prune_runtime_alias_test_list): Likewise.
1633 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1634 (vect_get_datarefs_in_loop): Likewise.
1635 (vect_analyze_loop): Likewise.
1636 * tree-vect-slp.c (vect_slp_bb): Likewise.
1637 * tree-vectorizer.h: Likewise.
1638 * tree-vrp.c (find_switch_asserts): Likewise.
1639 (vrp_prop::check_mem_ref): Likewise.
1640 * tree.c (wide_int_to_tree_1): Likewise.
1641 (cache_integer_cst): Likewise.
1642 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1643 (reverse_op): Likewise.
1644 (vt_find_locations): Likewise.
1646 2019-11-12 Martin Liska <mliska@suse.cz>
1648 * Makefile.in: Include params.opt.
1649 * flag-types.h (enum parloops_schedule_type): Add
1650 parloops_schedule_type used in params.opt.
1651 * params.opt: New file.
1653 2019-11-12 Martin Liska <mliska@suse.cz>
1655 * common.opt: Remove --param and --param= options.
1656 * opt-functions.awk: Mark CL_PARAMS for options
1657 that have Param keyword.
1658 * opts-common.c (decode_cmdline_options_to_array):
1659 Replace --param key=value with --param=key=value.
1660 * opts.c (print_filtered_help): Remove special
1662 (print_specific_help): Update title for params.
1663 (common_handle_option): Do not handle OPT__param.
1664 opts.h (SET_OPTION_IF_UNSET): New macro.
1665 * doc/options.texi: Document Param keyword.
1667 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1668 Frederik Harwath <frederik@codesourcery.com>
1669 Thomas Schwinge <thomas@codesourcery.com>
1672 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1673 enumeration constant.
1674 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1675 (is_gimple_omp_offloaded): Likewise.
1676 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1677 constant. Adjust the value of ORT_NONE accordingly.
1678 (is_gimple_stmt): Handle OACC_SERIAL.
1679 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1680 (gomp_needs_data_present): Likewise.
1681 (gimplify_adjust_omp_clauses): Likewise.
1682 (gimplify_omp_workshare): Handle OACC_SERIAL.
1683 (gimplify_expr): Likewise.
1684 * omp-expand.c (expand_omp_target):
1685 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1686 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1687 * omp-low.c (is_oacc_parallel): Rename function to...
1688 (is_oacc_parallel_or_serial): ... this.
1689 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1690 (scan_sharing_clauses): Adjust accordingly.
1691 (scan_omp_for): Likewise.
1692 (lower_oacc_head_mark): Likewise.
1693 (convert_from_firstprivate_int): Likewise.
1694 (lower_omp_target): Likewise.
1695 (check_omp_nesting_restrictions): Handle
1696 GF_OMP_TARGET_KIND_OACC_SERIAL.
1697 (lower_oacc_reductions): Likewise.
1698 (lower_omp_target): Likewise.
1699 * tree.def (OACC_SERIAL): New tree code.
1700 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1702 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1704 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1707 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1708 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1710 PR tree-optimization/92452
1711 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1712 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1715 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1717 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1720 2019-11-12 Alan Modra <amodra@gmail.com>
1722 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1723 element of unspec vec.
1724 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1726 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1727 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1728 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1729 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1731 2019-11-12 Alan Modra <amodra@gmail.com>
1733 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1734 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1735 (IS_NOMARK_TLSGETADDR): Likewise.
1736 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1737 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1738 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1739 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1740 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1741 (rs6000_indirect_call_template_1): Likewise.
1742 (rs6000_pltseq_template): Likewise.
1743 (rs6000_opt_vars): Remove "tls-markers" entry.
1744 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1746 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1747 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1748 (pltseq_plt_pcrel<mode>): Likewise.
1749 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1750 (call_value_local64): Likewise.
1751 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1752 output and length attribute sub-expression.
1753 (call_value_nonlocal_sysv<mode>),
1754 (call_value_nonlocal_sysv_secure<mode>),
1755 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1756 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1757 (call_value_indirect_pcrel<mode>): Likewise.
1758 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1759 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1760 * configure: Regenerate.
1761 * config.in: Regenerate.
1763 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1765 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1766 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1767 address being a prefixed load/store.
1768 (stack_protect_testdi): Deal with either address being a prefixed
1771 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1774 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1775 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1778 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1780 PR tree-optimization/92420
1781 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1783 (get_group_load_store_type): Use it for reversed SLP accesses.
1785 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1787 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1789 (ipcp_transformation_t::duplicate): Break out from ...
1790 (ipa_node_params_t::duplicate): ... here; add copying of agg
1792 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1793 (ipcp_transformation_t): Add duplicate.
1795 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1798 * doc/install.texi: Document that the minimum MPFR version is
1801 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1803 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1804 use new register constraint letters.
1806 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1808 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1809 as well, if interesting recover the symbol and re-legitimize the
1812 2019-11-11 Martin Liska <mliska@suse.cz>
1814 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1817 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1819 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1820 account when checking if there are enough iterations to vectorize
1823 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1824 Kwok Cheung Yeung <kcy@codesourcery.com>
1826 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1827 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1828 (LANG_HOOKS_DECLS): Rename also here.
1829 * langhooks.h (lang_hooks_for_decls): Rename
1830 omp_is_optional_argument to omp_check_optional_argument; take
1831 additional bool argument.
1832 * omp-general.h (omp_check_optional_argument): Likewise.
1833 * omp-general.h (omp_check_optional_argument): Likewise.
1834 * omp-low.c (lower_omp_target): Update calls; handle absent
1835 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1837 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1840 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1841 -fPIC and -shared the last to create offload image.
1843 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1845 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1848 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1849 (config.status): Use/depend on it.
1850 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1851 * configure: Regenerate.
1853 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1855 PR tree-optimization/88760
1856 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1857 * gcc/common/config/rs6000/rs6000-common.c
1858 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1859 Turn on -funroll-loops and -munroll-only-small-loops.
1860 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1861 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1862 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1863 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1864 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1865 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1867 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1869 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1870 Make scalar_load, vector_load, unaligned_load and
1871 vector_gather_load cost more to conform hardware latency and
1874 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1876 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1877 (MACHO_SYMBOL_LINKER_VIS_P): New.
1879 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1881 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1882 registers in eliminable_regset.
1884 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1886 * ipa-inline.c (compute_uninlined_call_time,
1887 compute_inlined_call_time): Take edge frequency as
1888 parameter rather than computing it by itself.
1889 (big_speedup_p, edge_badness): Manually CSE sreal
1890 frequency calculations.
1892 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1894 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1895 case where profiles are same.
1897 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1899 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1901 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1903 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1904 args summaries of inlined edge unless it holds info about
1905 described reference.
1907 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1909 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1910 (*movcc_internal1): Rename to...
1911 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1913 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1915 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1916 (cgraph_node::create_virtual_clone): Copy it.
1917 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1919 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1920 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1922 (propagate_constants_across_call): If callee is not analyzed, give up.
1923 (propagate_constants_topo): Lower to bottom latties of all callees of
1924 functions with ipa-cp disabled.
1925 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1926 (cgraph_edge_brings_value_p): Check for availability first.
1927 (create_specialized_node): Set ipcp_clone.
1928 (ipcp_store_bits_results): Check that info is present.
1929 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1931 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1932 conservative when callee summary is missing.
1933 (remap_edge_summaries): Lookup call summary only when needed.
1934 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1935 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1937 (ipa_analyze_node): Use get_create.
1938 (propagate_controlled_uses): Do not propagate when function is not
1940 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1941 (ipa_read_node_info): Use get_create.
1942 * ipa-prop.h (IPA_NODE_REF): Use get.
1943 (IPA_NODE_REF_GET_CREATE): New.
1945 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1947 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1950 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1952 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1953 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1954 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1955 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1957 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1959 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1960 capping the growth cumulated.
1961 (offline_size): Break out from ...
1962 (estimate_growth): ... here.
1963 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1965 (growth_likely_positive): Turn to ...
1966 (growth_positive_p): Re-implement.
1967 * ipa-inline.h (growth_likely_positive): Remove.
1968 (growth_positive_p): Declare.
1969 * ipa-inline.c (want_inline_small_function_p): Use
1971 (want_inline_function_to_all_callers_p): Likewise.
1973 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1975 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1976 calculation of min_size.
1977 (ipa_update_overall_fn_summary): Likewise.
1979 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1981 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1982 estimate_edge_devirt_benefit when not computing hints;
1983 do not compute time when not asked for.
1984 (estimate_calls_size_and_time): Pass NULL hints and time when
1985 these are not computed; do not evaluate hint predicates when these are
1987 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1990 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1992 PR tree-optimization/92401
1993 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1994 if res_op->code is an expression with code length 1.
1995 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1996 if res_op->code is an expression with code length 2.
1997 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1998 if res_op->code is an expression with code length 3.
2000 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
2002 * config/darwin.c (machopic_mcount_stub_name): Validate the
2003 symbol stub name when it is created.
2004 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
2007 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2009 * symtab.c: Fix comment typos.
2010 * cgraphunit.c: Likewise.
2011 * cgraph.h: Likewise.
2012 * cgraphclones.c: Likewise.
2013 * cgraph.c: Likewise.
2014 * varpool.c: Likewise.
2015 * tree-ssa-strlen.c: Likewise.
2016 * ipa-sra.c: Likewise.
2017 (scan_expr_access, check_all_callers_for_issues): Fix typo
2020 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
2022 * config/darwin-protos.h: Add include quard.
2024 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
2026 * range-op.h (range_operator::fold_range): Return result in a
2027 reference parameter instead of by value.
2028 (range_operator::wi_fold): Same.
2029 * range-op.cc (range_operator::wi_fold): Return result in a reference
2030 parameter instead of by value.
2031 (range_operator::fold_range): Same.
2032 (value_range_from_overflowed_bounds): Same.
2033 (value_range_with_overflow): Same
2034 (create_possibly_reversed_range): Same.
2035 (operator_equal::fold_range): Same.
2036 (operator_not_equal::fold_range): Same.
2037 (operator_lt::fold_range): Same.
2038 (operator_le::fold_range): Same.
2039 (operator_gt::fold_range): Same.
2040 (operator_ge::fold_range): Same.
2041 (operator_plus::wi_fold): Same.
2042 (operator_plus::op1_range): Change call to fold_range.
2043 (operator_plus::op2_range): Change call to fold_range.
2044 (operator_minus::wi_fold): Return result via reference parameter.
2045 (operator_minus::op1_range): Change call to fold_range.
2046 (operator_minus::op2_range): Change call to fold_range.
2047 (operator_min::wi_fold): Return result via reference parameter.
2048 (operator_max::wi_fold): Same.
2049 (cross_product_operator::wi_cross_product): Same.
2050 (operator_mult::wi_fold): Same.
2051 (operator_div::wi_fold): Same.
2052 (operator_div op_floor_div): Fix whitespace.
2053 (operator_exact_divide::op1_range): Change call to fold_range.
2054 (operator_lshift::fold_range): Return result via reference parameter.
2055 (operator_lshift::wi_fold): Same.
2056 (operator_rshift::fold_range): Same.
2057 (operator_rshift::wi_fold): Same.
2058 (operator_cast::fold_range): Same.
2059 (operator_cast::op1_range): Change calls to fold_range.
2060 (operator_logical_and::fold_range): Return result via reference.
2061 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2062 (operator_bitwise_and::wi_fold): Return result via reference.
2063 (operator_logical_or::fold_range): Same.
2064 (operator_bitwise_or::wi_fold): Same.
2065 (operator_bitwise_xor::wi_fold): Same.
2066 (operator_trunc_mod::wi_fold): Same.
2067 (operator_logical_not::fold_range): Same.
2068 (operator_bitwise_not::fold_range): Same.
2069 (operator_bitwise_not::op1_range): Change call to fold_range.
2070 (operator_cst::fold_range): Return result via reference.
2071 (operator_identity::fold_range): Same.
2072 (operator_abs::wi_fold): Same.
2073 (operator_absu::wi_fold): Same.
2074 (operator_negate::fold_range): Same.
2075 (operator_negate::op1_range): Change call to fold_range.
2076 (operator_addr_expr::fold_range): Return result via reference.
2077 (operator_addr_expr::op1_range): Change call to fold_range.
2078 (operator_pointer_plus::wi_fold): Return result via reference.
2079 (operator_pointer_min_max::wi_fold): Same.
2080 (operator_pointer_and::wi_fold): Same.
2081 (operator_pointer_or::wi_fold): Same.
2082 (range_op_handler): Change call to fold_range.
2084 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2086 (range_fold_unary_symbolics_p): Same.
2087 (range_fold_binary_expr): Same.
2088 (range_fold_unary_expr): Same.
2090 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2092 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2093 vector type as an argument rather than reading it from the
2095 (vect_create_epilog_for_reduction): Update accordingly.
2096 (vectorizable_reduction): Likewise.
2097 (vect_transform_cycle_phi): Likewise.
2099 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2101 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2102 the comparison codes that make sense for the mode used, and only the
2103 codes that can be done with a single branch instruction.
2105 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2107 PR tree-optimization/92351
2108 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2109 peeling the main loop for alignment, make sure to set the misalignment
2110 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2112 2019-11-08 Richard Biener <rguenther@suse.de>
2114 * dbgcnt.def (ivopts_loop): Add.
2115 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2116 ivopts_loop before optimizing a loop.
2118 2019-11-08 Richard Biener <rguenther@suse.de>
2121 * tree-inline.c (declare_return_variable): Properly handle
2122 type mismatches for the return slot.
2124 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2127 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2128 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2130 (got_helper_needed): New static variable.
2131 (output_load_pcrel_sym): New function.
2132 (get_pc_thunk_name): Remove after inlining...
2133 (load_got_register): ...here. Rework the initialization of the GOT
2134 register and of the GOT helper.
2135 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2136 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2137 helper must be emitted. Use output_asm_insn instead of fprintf.
2138 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2139 if optimization is enabled.
2140 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2141 by calling output_load_pcrel_sym.
2143 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2145 * tree-sra.c (create_access): Delay disqualifying the base
2146 for poly_int values until we know we have a base.
2148 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2150 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2151 for loops with SIMDUID set. Enable epilogue vectorization for loops
2152 with SIMDLEN set after finding a main loop with a VF that matches it.
2154 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2157 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2158 value only, return non-NULL if there is a single non-clobber
2159 constituent store even if there are constituent clobbers and return
2160 one of clobber constituent stores if all constituent stores are
2162 (split_group): Handle clobbers.
2163 (imm_store_chain_info::output_merged_store): When computing
2164 bzero_first, look after all clobbers at the start. Don't count
2165 clobber stmts in orig_num_stmts, except if the first orig store is
2166 a clobber covering the whole area and split_stores cover the whole
2167 area, consider equal number of stmts ok. Punt if split_stores
2168 contains only ->orig stores and their number plus number of original
2169 clobbers is equal to original number of stmts. For ->orig, look past
2170 clobbers in the constituent stores.
2171 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2173 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2175 (store_valid_for_store_merging_p): Allow clobber stmts.
2176 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2179 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2180 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2182 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2183 force creation of a unique data.stack_parm slot.
2185 2019-11-08 Richard Biener <rguenther@suse.de>
2187 * genmatch.c (expr::gen_transform): Use the resimplify
2188 member function instead of hard-coding the gimple_resimplifyN variant.
2189 (dt_simplify::gen_1): Likewise.
2191 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2193 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2196 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2198 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2199 instead of INTEGER_CST.
2201 2019-11-08 Richard Biener <rguenther@suse.de>
2203 PR tree-optimization/92324
2204 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2205 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2206 sign-conversions as necessary.
2207 (vectorizable_reduction): Reject conversions in the chain
2208 that are not sign-conversions, base analysis on a non-converting
2209 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2210 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2212 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2213 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2215 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2218 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2219 Fix a missing '-' when displaying these options in the
2222 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2224 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2226 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2228 * config/aarch64/aarch64-builtins.c
2229 (aarch64_builtin_vectorized_function): Remove bswap handling.
2231 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2233 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2234 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2235 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2236 Treat the vector types as indivisible.
2238 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2240 * optabs.def (gather_load_optab, mask_gather_load_optab)
2241 (scatter_store_optab, mask_scatter_store_optab): Turn into
2242 conversion optabs, with the offset mode given explicitly.
2243 * doc/md.texi: Update accordingly.
2244 * config/aarch64/aarch64-sve-builtins-base.cc
2245 (svld1_gather_impl::expand): Likewise.
2246 (svst1_scatter_impl::expand): Likewise.
2247 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2248 (expand_scatter_store_optab_fn): Likewise.
2249 (direct_gather_load_optab_supported_p): Likewise.
2250 (direct_scatter_store_optab_supported_p): Likewise.
2251 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2253 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2254 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2255 argument with the offset vector type. Require the two vector
2256 types to have the same number of elements but allow their element
2257 sizes to be different. Treat the optabs as conversion optabs.
2258 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
2259 prototype accordingly.
2260 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
2261 (supports_vec_convert_optab_p): ...this new function.
2262 (supports_vec_gather_load_p): Update accordingly.
2263 (supports_vec_scatter_store_p): Likewise.
2264 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
2265 Replace the offset sign and bits parameters with a scalar type tree.
2266 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
2267 Pass back the offset vector type instead of the scalar element type.
2268 Allow the offset to be wider than the memory elements. Search for
2269 an offset type that the target supports, stopping once we've
2270 reached the maximum of the element size and pointer size.
2271 Update call to internal_gather_scatter_fn_supported_p.
2272 (vect_check_gather_scatter): Update calls accordingly.
2273 When testing a new scale before knowing the final offset type,
2274 check whether the scale is supported for any signed or unsigned
2275 offset type. Check whether the target supports the source and
2276 target types of a conversion before deciding whether to look
2277 through the conversion. Record the chosen offset_vectype.
2278 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
2279 (vect_recog_gather_scatter_pattern): Get the scalar offset type
2280 directly from the gs_info's offset_vectype instead. Pass a zero
2281 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
2282 * tree-vect-stmts.c (check_load_store_masking): Update call to
2283 internal_gather_scatter_fn_supported_p, passing the offset vector
2284 type recorded in the gs_info.
2285 (vect_truncate_gather_scatter_offset): Update call to
2286 vect_check_gather_scatter, leaving it to search for a valid
2288 (vect_use_strided_gather_scatters_p): Convert the offset to the
2289 element type of the gs_info's offset_vectype.
2290 (vect_get_gather_scatter_ops): Get the offset vector type directly
2292 (vect_get_strided_load_store_ops): Likewise.
2293 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
2294 and IFN_MASK_GATHER_LOAD.
2295 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
2296 (gather_load<mode><v_int_equiv>): ...this.
2297 (mask_gather_load<mode>): Rename to...
2298 (mask_gather_load<mode><v_int_equiv>): ...this.
2299 (scatter_store<mode>): Rename to...
2300 (scatter_store<mode><v_int_equiv>): ...this.
2301 (mask_scatter_store<mode>): Rename to...
2302 (mask_scatter_store<mode><v_int_equiv>): ...this.
2304 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
2307 * config/rs6000/predicates.md
2308 (signed_or_equality_comparison_operator): New predicate.
2309 (unsigned_or_equality_comparison_operator): Likewise.
2310 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
2311 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
2312 * config/rs6000/vector.md
2313 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
2314 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
2315 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
2316 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
2317 vector modes and same-size integer vector modes.
2318 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
2319 (vector_lt<mode> for VEC_F): New expand.
2320 (vector_le<mode> for VEC_F): Likewise.
2321 (vector_ne<mode> for VEC_F): Likewise.
2322 (vector_unge<mode> for VEC_F): Likewise.
2323 (vector_ungt<mode> for VEC_F): Likewise.
2324 (vector_unle<mode> for VEC_F): Likewise.
2325 (vector_unlt<mode> for VEC_F): Likewise.
2326 (vector_uneq<mode>): Expose name.
2327 (vector_ltgt<mode>): Likewise.
2328 (vector_unordered<mode>): Likewise.
2329 (vector_ordered<mode>): Likewise.
2331 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
2334 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
2335 Enhance ix86_expand_vector_init_concat.
2337 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2339 * doc/invoke.texi (-Wold-style-definition): Document () not being
2340 considered an old-style definition for C2x.
2342 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
2344 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
2346 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
2347 insn patterns using ldcw instruction.
2348 (memory_barrier): Remove insn pattern using sync instruction.
2349 * config/pa/pa.opt (coherent-ldcw): New option.
2350 (ordered): New option.
2352 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2354 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
2357 2019-11-07 Jakub Jelinek <jakub@redhat.com>
2359 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
2360 typo - mistmatch -> mismatch.
2361 * ipa-profile.c (ipa_profile): Likewise.
2362 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
2363 - mistmatch -> mismatch.
2365 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2367 * simplify-rtx.c (comparison_to_mask): New function.
2368 (mask_to_comparison): New function.
2369 (simplify_logical_relational_operation): New function.
2370 (simplify_binary_operation_1): Call
2371 simplify_logical_relational_operation.
2373 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
2376 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
2377 modes for integer constants.
2379 2019-11-07 Jan Hubicka <jh@suse.cz>
2382 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
2385 2019-11-07 Jan Hubicka <jh@suse.cz>
2387 * optc-save-gen.awk: Generate cl_target_option_free
2388 and cl_optimization_option_free.
2389 * opth-en.awk: Declare cl_target_option_free
2390 and cl_optimization_option_free.
2391 * tree.c (free_node): Use it.
2393 2019-11-06 Jan Hubicka <jh@suse.cz>
2395 * lto-streamer-in.c: Include alloc-pool.h.
2396 (freeing_string_slot_hasher): Remove.
2397 (string_slot_allocator): New object allocator.
2398 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
2399 (file_name_obstack): New obstack.
2400 (canon_file_name): Allocate in obstack and allocator.
2401 (lto_reader_init): Initialize obstack and allocator.
2402 (lto_free_file_name_hash): New function.
2403 * lto-streamer.h (lto_free_file_name_hash): New.
2405 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
2407 PR tree-optimization/89134
2408 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
2409 * params.def: Add min-loop-cond-split-prob.
2410 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
2411 outside checks on loop into the function.
2412 (split_info): New class.
2413 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
2414 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
2415 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
2416 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
2417 (stmt_semi_invariant_p, branch_removable_p): Likewise.
2418 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
2419 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
2420 (split_loop_on_cond): Likewise.
2421 (tree_ssa_split_loops): Add loop split on conditional statement.
2423 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
2425 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2428 2019-11-07 Richard Biener <rguenther@suse.de>
2430 PR tree-optimization/92405
2431 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2432 restrict lane-reducing ops to single stmt chains.
2434 2019-11-07 Martin Jambor <mjambor@suse.cz>
2437 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2438 * cgraph.h (gimple_check_call_matching_types): Remove
2439 * cgraph.c (gimple_check_call_args): Likewise.
2440 (gimple_check_call_matching_types): Likewise.
2441 (symbol_table::create_edge): Do not call
2442 gimple_check_call_matching_types.
2443 (cgraph_edge::make_direct): Likewise.
2444 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2445 * value-prof.h (check_ic_target): Remove.
2446 * value-prof.c (check_ic_target): Remove.
2447 (gimple_ic_transform): Do nat call check_ic_target.
2448 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2449 (afdo_indirect_call): Likewise.
2450 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2451 gimple_check_call_matching_types.
2452 * ipa-inline.c (early_inliner): Likewise.
2454 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2456 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2457 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2458 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2459 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2460 * config/arm/iterators.md (USSAT16): New int_iterator.
2461 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2463 * config/arm/predicates.md (ssat16_imm): New predicate.
2464 (usat16_imm): Likewise.
2465 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2467 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2469 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2471 (arm_<simd32_op>): New define_expands.
2472 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
2473 __smuad, __smuadx): Define.
2474 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2475 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
2476 (SIMD32_BINOP_Q): Likewise.
2477 (simd32_op): Handle the above.
2478 * config/arm/unspecs.md: Define unspecs for the above.
2480 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2482 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
2483 * config/arm/arm.md (APSRGE_REGNUM): Define.
2484 (arm_<simd32_op>): New define_insn.
2485 (arm_sel): Likewise.
2486 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
2487 (CALL_USED_REGISTERS): Likewise.
2488 (REG_ALLOC_ORDER): Likewise.
2489 (FIRST_PSEUDO_REGISTER): Update value.
2490 (ARM_GE_BITS_READ): Define.
2491 * config/arm/arm.c (arm_conditional_register_usage): Clear
2492 APSRGE_REGNUM from operand_reg_set.
2493 (arm_ge_bits_access): Define.
2494 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
2496 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
2497 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
2498 FAIL if ARM_GE_BITS_READ.
2499 (*arm_add<mode>3): New define_insn.
2500 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
2501 (*arm_sub<mode>3): New define_insn.
2502 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
2503 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
2505 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2506 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
2507 (simd32_op): Handle the above.
2508 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
2509 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
2510 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
2511 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
2513 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2515 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
2516 (arm_smlabb): New define_expand.
2517 (*maddhisi4tb): Rename to...
2518 (maddhisi4tb): ... This.
2519 (*maddhisi4tt): Rename to...
2520 (maddhisi4tt): ... This.
2521 (arm_smlatb_setq): New define_insn.
2522 (arm_smlatb): New define_expand.
2523 (arm_smlatt_setq): New define_insn.
2524 (arm_smlatt): New define_expand.
2525 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
2526 (arm_<smlaw_op>): New define_expand.
2527 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
2528 __smlawb, __smlawt): Define.
2529 * config/arm_acle_builtins.def: Define builtins for the above.
2530 * config/arm/iterators.md (SMLAWBT): New int_iterator.
2531 (slaw_op): New int_attribute.
2532 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
2534 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2536 * config/arm/arm.md (arm_<ss_op>): New define_expand.
2537 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
2538 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
2539 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
2540 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
2541 (ss_op): New code_attr.
2543 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2545 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
2546 * config/arm/arm.md (APSRQ_REGNUM): Define.
2547 (add_setq): New define_subst.
2548 (add_clobber_q_name): New define_subst_attr.
2549 (add_clobber_q_pred): Likewise.
2550 (maddhisi4): Change to define_expand. Split into mult and add if
2552 (arm_maddhisi4): New define_insn.
2553 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
2554 (*maddhisi4tt): Likewise.
2555 (arm_ssat): New define_expand.
2556 (arm_usat): Likewise.
2557 (arm_get_apsr): New define_insn.
2558 (arm_set_apsr): Likewise.
2559 (arm_saturation_occurred): New define_expand.
2560 (arm_set_saturation): Likewise.
2561 (*satsi_<SAT:code>): Rename to...
2562 (satsi_<SAT:code><add_clobber_q_name>): ... This.
2563 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
2564 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
2565 (CALL_USED_REGISTERS): Mark apsrq.
2566 (FIRST_PSEUDO_REGISTER): Update value.
2567 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
2568 (machine_function): Add q_bit_access.
2569 (ARM_Q_BIT_READ): Define.
2570 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
2571 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
2573 (arm_q_bit_access): Define.
2574 * config/arm/arm-builtins.c: Include stringpool.h.
2575 (arm_sat_binop_imm_qualifiers,
2576 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
2577 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
2578 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
2579 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
2580 SET_SAT_QUALIFIERS): Likewise.
2581 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
2582 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
2583 Handle 0 argument expander.
2584 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
2585 (arm_check_builtin_call): Define.
2586 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
2587 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
2588 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
2589 (arm_q_bit_access): Likewise.
2590 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
2591 __saturation_occurred, __set_saturation_occurred): Define.
2592 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
2593 saturation_occurred, set_saturation_occurred.
2594 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
2595 (UNSPEC_APSR_READ): Likewise.
2596 (VUNSPEC_APSR_WRITE): Likewise.
2597 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
2598 (*arm_ssadd<mode>3): New define_insn.
2599 (sssub<mode>3): Convert to define_expand.
2600 (*arm_sssub<mode>3): New define_insn.
2601 (ssmulsa3): Convert to define_expand.
2602 (*arm_ssmulsa3): New define_insn.
2603 (usmulusa3): Convert to define_expand.
2604 (*arm_usmulusa3): New define_insn.
2605 (ssmulha3): FAIL if ARM_Q_BIT_READ.
2606 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
2607 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
2609 2019-11-07 Martin Liska <mliska@suse.cz>
2612 * cgraph.c (delete_function_version): Clear global
2613 variable version_info_node if equal to deleted
2616 2019-11-07 Martin Liska <mliska@suse.cz>
2618 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2619 of CONSTRUCTOR_NO_CLEARING.
2620 (operand_compare::hash_operand): Likewise.
2622 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2624 Support 64-bit double and 64-bit long double configurations.
2627 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2628 --with-long-double=.
2629 * config/avr/t-multilib: Remove.
2630 * config/avr/t-avr: Output of genmultilib.awk is now fully
2631 dynamically generated and no more part of the repo.
2632 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2633 Pass them down to...
2634 * config/avr/genmultilib.awk: ...here and handle them.
2635 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2636 (-mlong-double=, avr_long_double). New option and var.
2637 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2638 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2639 Set default as requested by --with-double=
2640 (TARGET_HANDLE_OPTION): Define to this...
2641 (avr_handle_option): ...new hook worker.
2642 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2643 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2644 (avr_double_lib): New proto for spec function.
2645 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2646 (DRIVER_SELF_SPECS): Call %:double-lib.
2647 * config/avr/avr.c (avr_option_override): Assert
2648 sizeof(long double) >= sizeof(double) for the target.
2649 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2650 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2651 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2652 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2653 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2654 New built-in define depending on --with-double=, --with-long-double=.
2655 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2656 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2657 * doc/install.texi (Cross-Compiler-Specific Options)
2658 <--with-double=, --with-long-double=>: Doc.
2660 2019-11-07 Richard Biener <rguenther@suse.de>
2662 * dbgcnt.def (gimple_unroll): New.
2663 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2664 gimple_unroll debug counter before applying transform.
2665 (try_peel_loop): Likewise.
2667 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2669 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2670 frame pointer in multiple registers.
2671 (ira_setup_eliminable_regset): Setup eliminable_regset,
2672 ira_no_alloc_regs and regs_ever_live for frame pointer in
2675 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2677 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2680 2019-11-06 Jan Hubicka <jh@suse.cz>
2682 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2684 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2685 Do not silently ignore summary corruptions.
2687 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2689 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2690 the epilogue if there are peeled iterations for it to handle.
2692 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2694 * config/arc/arc.c (arc_split_ior): Add asserts.
2695 (arc_split_mov_const): Likewise.
2696 (arc_check_ior_const): Do not match known short immediate values.
2697 * config/arc/arc.md (movsi): Don't split predicated instructions
2700 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2702 * config/arc/arc.opt (mea): Update help string.
2703 * doc/invoke.texi(ARC): Update mea option info.
2705 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2707 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2708 (zero_extendqisi2_ac): Likewise.
2709 (zero_extendhisi2_i): Likewise.
2710 (extendqihi2_i): Likewise.
2711 (extendqisi2_ac): Likewise.
2712 (extendhisi2_i): Likewise.
2714 2019-11-06 Richard Biener <rguenther@suse.de>
2716 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2717 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2718 Simplify single_defuse_cycle condition.
2720 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2722 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2723 epilogue loop, make sure that the VF is small enough or that
2724 the epilogue loop can be fully-masked.
2726 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2728 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2729 loop when we've finished, rather than returning directly from
2730 the loop. Use a local variable to track whether we're still
2731 searching for the preferred simdlen. Make vect_epilogues
2732 record whether the next iteration should try to treat the
2733 loop as an epilogue.
2735 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2737 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2738 __arc_hard_float__, __ARC_HARD_FLOAT__,
2739 __arc_soft_float__, __ARC_SOFT_FLOAT__
2741 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2743 PR tree-optimization/92317
2744 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2745 update phi's with constant phi arguments.
2747 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2748 Alexandre Oliva <oliva@adacore.com>
2750 * common.opt (-fcallgraph-info[=]): New option.
2751 * doc/invoke.texi (Developer options): Document it.
2752 * opts.c (common_handle_option): Handle it.
2753 * builtins.c (expand_builtin_alloca): Record allocation if
2754 -fcallgraph-info=da.
2755 * calls.c (expand_call): If -fcallgraph-info, record the call.
2756 (emit_library_call_value_1): Likewise.
2757 * flag-types.h (enum callgraph_info_type): New type.
2758 * explow.c: Include stringpool.h.
2759 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2760 * function.c (allocate_stack_usage_info): New.
2761 (allocate_struct_function): Call it for -fcallgraph-info.
2762 (prepare_function_start): Call it otherwise.
2763 (record_final_call, record_dynamic_alloc): New.
2764 * function.h (struct callinfo_callee): New.
2765 (CALLEE_FROM_CGRAPH_P): New.
2766 (struct callinfo_dalloc): New.
2767 (struct stack_usage): Add callees and dallocs.
2768 (record_final_call, record_dynamic_alloc): Declare.
2769 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2770 object if -fcallgraph-info=da.
2771 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2772 * print-tree.h (print_decl_identifier): Declare.
2773 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2774 * print-tree.c: Include print-tree.h.
2775 (print_decl_identifier): New function.
2776 * toplev.c: Include print-tree.h.
2777 (callgraph_info_file): New global variable.
2778 (callgraph_info_external_printed): Likewise.
2779 (output_stack_usage): Rename to...
2780 (output_stack_usage_1): ... this. Make it static, add cf
2781 parameter. If -fcallgraph-info=su, print stack usage to cf.
2782 If -fstack-usage, use print_decl_identifier for
2784 (INDIRECT_CALL_NAME): New.
2785 (dump_final_node_vcg_start): New.
2786 (dump_final_callee_vcg, dump_final_node_vcg): New.
2787 (output_stack_usage): New.
2788 (lang_dependent_init): Open and start file if
2789 -fcallgraph-info. Allocated callgraph_info_external_printed.
2790 (finalize): If callgraph_info_file is not null, finish it,
2791 close it, and release callgraph_info_external_printed.
2793 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2794 Frederik Harwath <frederik@codesourcery.com>
2795 Thomas Schwinge <thomas@codesourcery.com>
2797 * omp-low.c (struct omp_context): New fields
2798 local_reduction_clauses, outer_reduction_clauses.
2799 (new_omp_context): Initialize these.
2800 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2801 (scan_omp_for): Check reduction clauses for incorrect nesting.
2803 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2806 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2807 operands with non-memory constraints.
2809 2019-11-05 Martin Sebor <msebor@redhat.com>
2811 PR tree-optimization/92373
2812 * tree.c (component_ref_size): Only consider initializers of objects
2813 of matching struct types.
2814 Return null for instances of interior zero-length arrays.
2816 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2818 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2820 2019-11-05 Jason Merrill <jason@redhat.com>
2822 PR tree-optimization/91825
2823 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2825 2019-11-05 Jim Wilson <jimw@sifive.com>
2828 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2829 optimize_insn_for_speed_p is true.
2831 2019-11-05 Martin Sebor <msebor@redhat.com>
2835 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2837 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2838 name and location for a temporary variable.
2840 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2842 * tree-vrp.c (value_range::value_range): Fix whitespace.
2843 (defined_ranges_p): Same.
2844 (range_fold_binary_symbolics_p): Same.
2845 (value_range::intersect_helper): Same.
2846 (value_range::union_helper): Same.
2847 * tree-vrp.h (range_fold_binary_expr): Same.
2849 2019-11-04 Martin Sebor <msebor@redhat.com>
2853 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2854 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2855 of message printed in a warning for empty arrays.
2856 (vrp_prop::check_mem_ref): Also handle function parameters and
2859 2019-11-05 Richard Biener <rguenther@suse.de>
2861 PR tree-optimization/92371
2862 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2863 on the original stmt of live stmts in the chain.
2864 (vectorizable_live_operation): Look at the original stmt when
2865 checking STMT_VINFO_REDUC_DEF.
2867 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2869 * gimple-fold.c, gimple-loop-versioning.cc,
2870 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2871 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2872 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2873 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2874 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2875 value_range_equiv, and value_range_base to value_range.
2877 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2879 * expr.c (build_personality_function): Fix generated type to
2880 match actual personality functions.
2882 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2884 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2885 enough bytes for the NULL character.
2887 2019-11-05 Richard Biener <rguenther@suse.de>
2889 PR tree-optimization/92280
2890 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2891 had a single use do not create a new CTOR.
2892 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2893 BIT_FIELD_REF of a CTOR via GENERIC.
2895 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2897 * config/s390/s390.c (s390_vector_alignment): Check if the value
2898 fits into uhwi before using it.
2900 2019-11-05 Martin Liska <mliska@suse.cz>
2902 * symbol-summary.h: Use ggc_delete.
2904 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2906 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2907 Change vec_perm field to 10.
2909 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2911 * doc/install.texi: Further fix syntax for html generation.
2913 2019-11-05 Martin Liska <mliska@suse.cz>
2915 * symbol-summary.h: Rename allocator to m_allocator and
2918 2019-11-05 Richard Biener <rguenther@suse.de>
2920 PR tree-optimization/92324
2921 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2922 all signed or unsigned operations.
2924 2019-11-05 Jan Hubicka <jh@suse.cz>
2926 * hsa-brig.c: Include alloc-pool.h
2927 * hsa-dump.c: Likewise.
2928 * hsa-gen.c: Likewise.
2929 * hse-regalloc.c: Likewise.
2930 * ipa-hsa.c: Likewise.
2931 * ipa-predicate.c: Likewise.
2932 * ipa-reference.c: Likewise.
2933 * ipa-sra.c: Likewise.
2934 * omp-expand.c: Likewise.
2935 * omp-general.c: Likewise.
2936 * omp-low.c: Likewise.
2937 * sumbol-summary.h (function_summary_base): Add allocator.
2938 (function_summary<T *>::function_summary): Update construction.
2939 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2940 (call_summary_base): Add allcator.
2941 (call_summary<T *>::call_summary): Update construction.
2942 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2944 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2946 PR tree-optimization/91945
2947 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2948 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2951 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2953 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2954 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2955 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2956 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2957 (vrp_set_zero_nonzero_bits): Move to...
2958 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2959 (vr_values::simplify_bit_ops_using_ranges): Rename
2960 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2962 2019-11-05 Martin Liska <mliska@suse.cz>
2965 * fold-const.c (operand_compare::hash_operand): Remove
2966 FIELD_DECL handling.
2968 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2970 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2971 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2974 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2976 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2977 properly handle symbolics.
2978 (range_compatible_p): Remove.
2980 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2982 * common.opt (-fabi-version): Document =14.
2983 * doc/invoke.texi (C++ Dialect Options): Likewise.
2985 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2987 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2989 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2991 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2992 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2993 gcn_omp_device_kind_arch_isa.
2994 * config/gcn/t-omp-device: New file.
2995 * configure.ac: Support gcn for omp_device_property.
2996 * configure: Regenerate.
2998 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3000 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
3001 (vrp_val_max): Same.
3002 (vrp_val_is_min): Same.
3003 (vrp_val_is_max): Same.
3004 (value_range_base::nonzero_p): Remove last argument to
3006 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
3007 (vrp_val_max): Same.
3008 (vrp_val_is_min): Same.
3009 (vrp_val_is_max): Same.
3010 (value_range_base::set_varying): Remove last argument to vrp_val*.
3011 (value_range_base::dump): Same.
3012 (value_range_base::set): Same.
3013 (value_range_base::normalize_symbolics): Same.
3014 (value_range_base::num_pairs): Same.
3015 (value_range_base::lower_bound): Same.
3016 (value_range_base::upper_bound): Same.
3017 (ranges_from_anti_range): Remove handle_pointers argument.
3018 (value_range_base::singleton_p): Remove last argument to
3019 ranges_from_anti_range.
3021 2019-11-04 Jan Hubicka <jh@suse.cz>
3023 * ipa-reference.c (init_function_info): Initialize
3024 info->global.statics_read.
3026 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3028 * tree-vrp.c (value_range_base::invert): Use constructors to build
3031 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3033 * tree-vrp.c (range_int_cst_singleton_p): Remove.
3034 * tree-vrp.h (range_int_cst_singleton_p): Remove.
3036 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3038 * tree-vrp.c (value_range_base::normalize_addresses): Handle
3041 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3043 * tree-vrp.c (dump_assert_info): New.
3044 (dump_asserts_info): New.
3046 2019-11-04 Jan Hubicka <jh@suse.cz>
3048 * ipa-inline-transform.c: Include ipa-utils.h
3049 (inline_call): Set thunk_expansion flag.
3050 * ipa-utils.h (thunk_expansion): Declare.
3051 * ipa-devirt.c (thunk_expansion): New global var.
3052 (devirt_node_removal_hook): Do not invalidate cache while
3053 doing thunk expansion.
3055 2019-11-04 Tamar Christina <tamar.christina@arm.com>
3057 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
3059 2019-11-04 Martin Sebor <msebor@redhat.com>
3061 PR tree-optimization/92349
3062 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3063 memebers have constant sizes.
3065 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3067 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3069 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3070 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3073 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3075 * expr.c (store_constructor): Modify to handle single element vectors.
3076 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3078 (vect_slp_check_for_constructors): New function.
3079 (vect_slp_analyze_bb_1): Call new function to check for vector
3081 (vectorize_slp_instance_root_stmt): New function.
3082 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3084 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3086 2019-11-04 Richard Biener <rguenther@suse.de>
3088 PR tree-optimization/92345
3089 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3090 we produced a reduction chain.
3091 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3092 LOOP_VINFO_REDUCTIONS.
3094 2019-11-04 Jan Hubicka <jh@suse.cz>
3096 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3097 duplicate summaries.
3098 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3100 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3101 access call summaries.
3102 (dump_ipa_call_summary): Be ready for missing edge summaries.
3103 (analyze_function_body): Use get instead of get_create to access
3105 (estimate_calls_size_and_time): Do not access summaries of
3106 inlined edges; sanity check they are missing.
3107 (ipa_call_context::estimate_size_and_time): Use get instead
3108 of get_create to access node summary.
3109 (inline_update_callee_summaries): Do not update depth of
3111 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3113 (ipa_merge_fn_summary_after_inlining): Use get instead
3115 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3116 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3118 (initialize_growth_caches): Update.
3119 (do_estimate_edge_time): Remove redundant copy of context.
3120 (ipa_remove_from_growth_caches): New function.
3121 * ipa-inline.c (flatten_function): Update overall summary
3122 only when optimizing.
3123 (inline_to_all_callers): Update overall summary of function
3125 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3126 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3129 2019-11-04 Richard Biener <rguenther@suse.de>
3131 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3132 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3134 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3136 * ggc-common.c: Include system.h before malloc.h.
3138 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3140 * configure.ac: Pass --enable-obsolete=* and
3141 --enable-option-checking=* down to build configure, and fail
3142 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3143 * configure: Rebuild.
3144 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3145 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3147 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3149 * config.in: Regenerate.
3150 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3151 -mtiny-printf is used without GCC being configured with
3152 --enable-newlib-nano-formatted-io.
3153 * config/msp430/msp430.h (LINK_SPEC): Pass
3154 "--wrap puts --wrap printf" when -mtiny-printf is used.
3155 * config/msp430/msp430.opt: Document -mtiny-printf.
3156 * configure: Regenerate.
3157 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3158 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3159 --enable-newlib-nano-formatted-io is passed.
3160 * doc/invoke.texi: Document -mtiny-printf.
3162 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3164 * configure: Regenerate.
3166 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3168 * config/msp430/driver-msp430.c
3169 (msp430_get_linker_devices_include_path): New spec function.
3170 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3171 (extract_devices_dir_from_exec_prefix): New function.
3172 (extract_devices_dir_from_collect_gcc): New function.
3173 (msp430_check_env_var_for_devices): New function.
3174 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3175 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3176 devices.csv was not found using other methods.
3177 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3179 (msp430_dirname): Likewise.
3180 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3181 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3182 msp430_get_linker_devices_include_path.
3183 (TARGET_EXTRA_PRE_INCLUDES): Define.
3184 * doc/invoke.texi: Document new ways of searching for support files.
3186 2019-11-04 Richard Biener <rguenther@suse.de>
3188 PR tree-optimization/92301
3189 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3190 as required by epilogue generation
3192 2019-11-04 Martin Liska <mliska@suse.cz>
3195 * fold-const.c (operand_compare::hash_operand): Fix field
3196 hashing of CONSTRUCTOR.
3198 2019-11-04 Martin Liska <mliska@suse.cz>
3200 * ggc.h (ggc_delete): New function.
3201 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3202 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3203 (ipa_free_all_node_params): Likewise.
3204 * ipa-sra.c (ipa_sra_analysis): Likewise.
3206 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3208 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3209 set_switch_stmt_execution_predicate, compute_bb_predicates,
3210 will_be_nonconstant_expr_predicate,
3211 phi_result_unknown_predicate,
3212 analyze_function_body): Pass arround params summary.
3213 (ipa_call_context::duplicate_from): New comment;
3214 only duplicate useful values.
3215 (ipa_call_context::equal_to): Only compare useful values.
3216 (remap_edge_summaries): Pass params_summary.
3217 (remap_hint_predicate): Likewise.
3218 (ipa_merge_fn_summary_after_inlining): Likewise.
3219 (inline_read_section): Initialize params summary used flags.
3220 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3221 around param_summary.
3222 (add_condition): Initialized used params summary flags.
3223 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3224 (inline_param_summary::useless_p): New predicate.
3225 (remap_after_inlining, add_condition): Update prototype
3226 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3228 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3230 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3231 (ipa_analyze_virtual_call_uses): Likewise.
3232 (update_indirect_edges_after_inlining): Update param summaries.
3233 (ipa_print_node_params): Print used flags.
3234 (ipa_read_indirect_edge_info): Update param summareis.
3235 * ipa-prop.h (ipa_param_descriptor): Add
3236 used_by_ipa_predicates, used_by_indirect_call
3237 and used_by_polymorphic_call.
3238 (ipa_set_param_used_by_ipa_predicates,
3239 ipa_set_param_used_by_indirect_call,
3240 ipa_set_param_used_by_polymorphic_call,
3241 ipa_is_param_used_by_ipa_predicates,
3242 ipa_is_param_used_by_indirect_call,
3243 ipa_is_param_used_by_polymorphic_call): New inline functions.
3245 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3247 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3249 (ipa_call_context::release): Add ALL parameter.
3250 (ipa_call_context::equal_to): New member function.
3251 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3252 duplicate_form, release, equal_to and exists_p member functoins.
3253 * ipa-inline-analysis.c (node_context_cache_entry): New
3255 (node_context_summary): Likewise.
3256 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
3257 node_context_clear): New static vars.
3258 (initialize_growth_caches): New function.
3259 (free_growth_caches): Also delete node_context_cache; output stats.
3260 (do_estimate_edge_time): Cache contexts.
3261 (reset_node_cache): New function.
3262 * ipa-inline.c (reset_edge_caches): Reset also node cache.
3263 (inline_small_functions): Initialize growth caches.
3264 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
3266 * ipa-predicate.h (inline_param_summary::equal_to): New.
3267 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
3268 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
3269 (ipa_agg_jump_function): Implement equal_to member function.
3271 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3273 * ipa-fnsummary.c (inline_read_section): Set vector size
3276 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3278 * ipa-fnsummary.c (ipa_call_context): New constructor.
3279 (estimate_node_size_and_time): Turn to ...
3280 (ipa_call_context::estimate_size_and_time): ... this one.
3281 (ipa_call_context::release): New.
3282 * ipa-fnsummary.h (ipa_call_context): New class.
3283 (estimate_node_size_and_time): Remove.
3284 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
3285 do_estimate_edge_hints): Update.
3287 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3289 * config.in: Regenerate.
3290 * configure: Regenerate.
3291 * configure.ac: Check for mallinfo.
3292 * ggc-common.c: Include malloc.h if available;
3294 (report_heap_memory_use): New functoin.
3295 * ggc-page.c (ggc_grow): Do not print "start".
3296 * ggc.h (report_heap_memory_use): Declare.
3297 * pases.c (execute_one_pass): Report memory after IPA passes.
3298 (ipa_read_summaries_1): Likewise.
3299 (ipa_read_optimization_summaries_1): Likewise.
3301 2019-11-02 Jakub Jelinek <jakub@redhat.com>
3303 * gimplify.h (omp_construct_selector_matches): Change return
3304 type to int, add a new SCORES argument.
3305 * gimplify.c (omp_construct_selector_matches): Likewise. If
3306 SCORES is non-NULL, compute scores of each construct.
3307 * omp-general.h (omp_get_context_selector): Declare.
3308 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
3309 Adjust omp_construct_selector_matches callers.
3310 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
3311 (omp_context_compute_score): New function.
3312 (omp_resolve_declare_variant): Compute scores and decide based on
3316 * configure.ac: Don't look for omp-device-properties files from
3317 installed offloading compilers. Instead add tmake_file snippets
3318 for configured offloading targets and use files they generate.
3319 * Makefile.in (install): Don't depend on
3320 install-omp-device-properties.
3321 (install-omp-device-properties): Remove goal.
3322 * config/i386/t-omp-device: New file.
3323 * config/i386/t-intelmic (omp-device-properties): Remove goal.
3324 * config/nvptx/t-omp-device: New file.
3325 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
3326 * configure: Regenerated.
3328 * omp-general.h (omp_context_selector_set_compare): Declare.
3329 * omp-general.c (omp_construct_simd_compare,
3330 omp_context_selector_props_compare, omp_context_selector_set_compare,
3331 omp_context_selector_compare): New functions.
3332 (omp_resolve_declare_variant): Prune variants that are strict subset
3335 2019-11-01 Martin Sebor <msebor@redhat.com>
3341 * doc/invoke.texi (-Wzero-length-bounds): Document.
3342 * gimple-match-head.c (try_conditional_simplification): Use memcpy
3343 instead of a hand-rolled loop to avoid PR 92323.
3344 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
3346 (vrp_prop::check_mem_ref): Handle declared struct objects.
3347 * tree.c (last_field): New function.
3348 (array_at_struct_end_p): Handle MEM_REF.
3349 (get_initializer_for): New helper.
3350 (component_ref_size): Add argument. Rename locals. Call
3351 get_initializer_for instead of fold_ctor_reference. Correct handling
3352 of flexible array members.
3353 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
3355 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3357 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
3358 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
3359 UNSPEC_VSX_CVSPUXDS): Remove.
3360 (vsx_xvcvspdp): New define_expand, old define_insn split to...
3361 (vsx_xvcvspdp_be): ... this. New. And...
3362 (vsx_xvcvspdp_le): ... this. New.
3363 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
3364 (vsx_xvcv<su>xwdp_be): ... this. New. And...
3365 (vsx_xvcv<su>xwdp_le): ... this. New.
3366 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
3367 (vsx_xvcvsp<su>xds_be): ... this. New. And...
3368 (vsx_xvcvsp<su>xds_le): ... this. New.
3370 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3372 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
3373 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
3374 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
3375 UNSPEC_VSX_XVCVSPSXWS): Remove.
3376 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
3377 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
3379 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3381 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
3382 (UNSPEC_VSX_XVCDPSP): Remove.
3383 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
3384 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
3386 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
3388 * hooks.c (hook_tree_tree_bool_null): New.
3389 * hooks.h (hook_tree_tree_bool_null): Declare.
3390 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
3391 (LANG_HOOKS_DECLS): Add it.
3392 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
3393 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
3394 (lower_omp_target): Handle Fortran array with descriptor in
3395 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
3397 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
3399 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3400 Assert that the type we store in abi_vector_types is its own
3402 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
3404 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3406 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
3407 from a CONST_INT address when TARGET_THUMB2.
3409 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3411 * config/arm/arm.md (add_not_cin): New insn.
3412 (add_not_shift_cin): Likewise.
3414 2019-10-31 Martin Liska <mliska@suse.cz>
3416 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
3417 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
3418 and compare_memory_operand.
3420 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3422 * configure.ac: Compute and substitute omp_device_properties and
3423 omp_device_property_deps.
3424 * Makefile.in (generated_files): Add omp-device-properties.h.
3425 (omp-general.o): Depend on omp-device-properties.h.
3426 (omp_device_properties): New make variable.
3427 (omp-device-properties.h, s-omp-device-properties-h,
3428 install-omp-device-properties): New goals.
3429 (install): Depend on install-omp-device-properties for accelerators.
3430 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3431 * target.h (enum omp_device_kind_arch_isa): New enum.
3432 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3434 * omp-general.c: Include omp-device-properties.h.
3435 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3436 colon instead of comma.
3437 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3439 (omp_context_selector_matches): Implement device set arch/isa
3440 selectors, improve device set kind selector handling.
3441 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3442 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3443 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3444 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3445 ix86_omp_device_kind_arch_isa.
3446 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3447 definition from ix86_target_string to file scope.
3448 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3450 (ix86_omp_device_kind_arch_isa): New function.
3451 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3452 isa_opts definitions to file scope.
3453 * config/i386/t-intelmic (omp-device-properties): New goal.
3454 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3455 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3456 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3457 nvptx_omp_device_kind_arch_isa.
3458 * configure: Regenerate.
3459 * doc/tm.texi: Regenerate.
3462 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3463 DECL_BUILT_IN in comment. Remove redundant ()s around return
3465 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3466 before calling fndecl_built_in_p.
3467 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3468 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3469 fndecl_built_in_p on it.
3471 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3473 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
3475 2019-10-31 Martin Liska <mliska@suse.cz>
3477 * config/arm/arm.c (arm_get_pcs_model): Remove usage
3478 of cgraph_local_info and use local_info_node instead.
3479 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
3480 (bfin_function_ok_for_sibcall): Likewise.
3481 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
3482 (must_reload_pic_reg_p): Likewise.
3484 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3487 * tree.h (type_initializer_zero_p): Remove.
3488 * tree.c (type_initializer_zero_p): Remove.
3490 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3492 * doc/invoke.texi (-Wshadow, -Wshadow=global
3493 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
3495 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3497 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
3498 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
3499 and 'target exit data'.
3501 2019-10-30 Martin Jambor <mjambor@suse.cz>
3504 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
3505 availability comparison.
3507 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3509 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
3510 calls to __mspabi_mpy* functions.
3511 * config/msp430/msp430.md (mulhisi3): New define_expand.
3512 (umulhisi3): New define_expand.
3513 (*mulhisi3_inline): Use old mulhisi3 define_insn.
3514 (*umulhisi3_inline): Use old umulhisi3 define_insn.
3516 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3518 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
3519 (msp430_check_plus_not_high_mem): New.
3520 (msp430_op_not_in_high_mem): Use new functions to check if the operand
3521 might be in low memory.
3522 Indicate that a 16-bit absolute address is in lower memory.
3524 2019-10-30 Martin Jambor <mjambor@suse.cz>
3526 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
3527 ultimate_alias_target.
3529 2019-10-30 Richard Biener <rguenther@suse.de>
3531 PR tree-optimization/92275
3532 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
3533 Copy all loop-closed PHIs.
3535 2019-10-30 Martin Liska <mliska@suse.cz>
3537 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
3538 const_tree as function argument.
3539 (func_checker::compare_decl): Likewise.
3540 (func_checker::operand_equal_p): Likewise.
3541 (func_checker::compare_variable_decl): Likewise.
3542 (func_checker::parse_labels): Likewise.
3543 * ipa-icf-gimple.h: Likewise.
3545 2019-10-30 Martin Liska <mliska@suse.cz>
3547 * ipa-icf-gimple.c (func_checker::compatible_types_p):
3548 Do not compare alias sets. It's handled by operand_equal_p.
3550 2019-10-30 Martin Liska <mliska@suse.cz>
3552 * ipa-icf-gimple.c (func_checker::func_checker): Do not
3553 initialize m_compare_polymorphic.
3554 (func_checker::compare_decl): Do not compare polymorphic types.
3555 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
3556 * ipa-icf.c (sem_function::equals_private): Do not call
3557 compare_polymorphic_p.
3559 2019-10-30 Martin Liska <mliska@suse.cz>
3561 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
3563 (func_checker::compare_memory_operand): Remove.
3564 (func_checker::compare_cst_or_decl): Remove.
3565 (func_checker::operand_equal_valueize): Do not handle
3567 (func_checker::compare_gimple_call): Call compare_operand.
3568 (func_checker::compare_gimple_assign): Likewise.
3569 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
3570 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
3571 * ipa-icf.h (icf_handled_component_p): Remove.
3573 2019-10-30 Martin Liska <mliska@suse.cz>
3575 * ipa-icf-gimple.c (func_checker::hash_operand): New.
3576 (func_checker::compare_cst_or_decl): Remove handling
3578 (func_checker::compare_operand): Transform to ...
3579 (func_checker::operand_equal_p): ... this.
3580 * ipa-icf-gimple.h (class func_checker): Add
3581 operand_equal_p and hash_operand.
3582 * ipa-icf.c (sem_function::equals_private): Fix
3583 pushing and popping of cfun.
3585 2019-10-30 Martin Liska <mliska@suse.cz>
3587 * fold-const.c (operand_equal_p): Move to ...
3588 (operand_compare::operand_equal_p): ... here.
3589 (operand_compare::verify_hash_value): New.
3590 (add_expr): Move to ...
3591 (operand_compare::hash_operand): ... here.
3592 * fold-const.h (operand_equal_p): Move to the class.
3593 (class operand_compare): New.
3594 * tree.c (add_expr): Remove.
3596 2019-10-30 Martin Liska <mliska@suse.cz>
3598 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
3599 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
3601 2019-10-30 Martin Liska <mliska@suse.cz>
3605 * cgraph.c (cgraph_node::get_create): Overwrite node->order
3606 from a first_clone in order to get proper LTO section
3608 (cgraph_node::get_untransformed_body):
3609 Use lto_get_section_data where symtab_node::order
3611 * cgraphclones.c (cgraph_node::find_replacement):
3612 Update also symbol order.
3613 * ipa-fnsummary.c (ipa_fn_summary_read):
3614 Use new function lto_get_summary_section_data.
3615 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3616 * ipa-icf.c (sem_item_optimizer::read_summary):
3618 * ipa-prop.c (ipa_prop_read_jump_functions):
3620 (ipcp_read_transformation_summaries): Likewise.
3621 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3622 * lto-cgraph.c (input_node): Add also order_base.
3623 (input_varpool_node): Likewise.
3624 (input_cgraph_1): Assign the order_base.
3625 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3626 * lto-opts.c (lto_write_options): Pass new argument.
3627 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3628 (lto_get_summary_section_data): New.
3629 (lto_get_raw_section_data): Add order argument.
3630 (lto_create_simple_input_block): Likewise.
3631 * lto-section-out.c (lto_destroy_simple_output_block):
3633 * lto-streamer-in.c (lto_input_toplevel_asms):
3634 Use lto_get_summary_section_data.
3635 (lto_input_mode_table): Likewise.
3636 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3637 (lto_output_toplevel_asms): Pass new argument.
3638 (copy_function_or_variable): Likewise.
3639 (produce_lto_section):Likewise.
3640 (produce_symtab): Likewise.
3641 (lto_write_mode_table): Likewise.
3642 (produce_asm_for_decls): Likewise.
3643 * lto-streamer.c (lto_get_section_name): Concat symbol name
3645 * lto-streamer.h (lto_get_section_data): Add order argument.
3646 (lto_get_summary_section_data): New.
3647 (lto_get_raw_section_data): Add order argument.
3648 (lto_get_section_name): Likewise.
3649 * varpool.c (varpool_node::get_constructor): Pass order argument.
3651 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3653 PR tree-optimization/92262
3654 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3655 ubase or cbase here.
3656 (remove_unused_ivs): Unshare comp before using it.
3658 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3660 * ipa-prop.c (update_jump_functions_after_inlining):
3661 Watch for missing summaries.
3663 2019-10-30 Richard Biener <rguenther@suse.de>
3665 PR tree-optimization/65930
3666 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3667 chains also allow a leading and trailing conversion.
3668 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3669 intermediate reduction chains.
3670 (vect_analyze_slp_instance): Likewise. Build a SLP
3671 node for a trailing conversion manually.
3673 2019-10-30 Martin Liska <mliska@suse.cz>
3675 * cgraph.c (cgraph_node::local_info): Transform to ...
3676 (cgraph_node::local_info_node): ... this.
3677 (cgraph_node::dump): Remove cgraph_local_info and
3678 put its fields directly into cgraph_node.
3679 (cgraph_node::get_availability): Likewise.
3680 (cgraph_node::make_local): Likewise.
3681 (cgraph_node::verify_node): Likewise.
3682 * cgraph.h (struct GTY): Likewise.
3683 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3684 (duplicate_thunk_for_node): Likewise.
3685 (cgraph_node::create_clone): Likewise.
3686 (cgraph_node::create_virtual_clone): Likewise.
3687 (cgraph_node::create_version_clone): Likewise.
3688 * cgraphunit.c (cgraph_node::reset): Likewise.
3689 (cgraph_node::finalize_function): Likewise.
3690 (cgraph_node::add_new_function): Likewise.
3691 (analyze_functions): Likewise.
3692 * combine.c (setup_incoming_promotions): Likewise.
3693 * config/i386/i386.c (ix86_function_regparm): Likewise.
3694 (ix86_function_sseregparm): Likewise.
3695 (init_cumulative_args): Likewise.
3696 * ipa-cp.c (determine_versionability): Likewise.
3697 (count_callers): Likewise.
3698 (set_single_call_flag): Likewise.
3699 (initialize_node_lattices): Likewise.
3700 (estimate_local_effects): Likewise.
3701 (create_specialized_node): Likewise.
3702 (identify_dead_nodes): Likewise.
3703 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3704 (ipa_fn_summary_generate): Likewise.
3705 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3706 (process_hsa_functions): Likewise.
3707 * ipa-icf.c (set_local): Likewise.
3708 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3709 * ipa-inline.c (speculation_useful_p): Likewise.
3710 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3711 (ipa_profile): Likewise.
3712 * ipa-split.c (split_function): Likewise.
3713 (execute_split_functions): Likewise.
3714 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3715 (ipa_sra_ipa_function_checks): Likewise.
3716 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3717 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3718 * lto-cgraph.c (lto_output_node): Likewise.
3719 (input_overwrite_node): Likewise.
3720 * multiple_target.c (expand_target_clones): Likewise.
3721 * omp-simd-clone.c (simd_clone_create): Likewise.
3722 * trans-mem.c (expand_call_tm): Likewise.
3723 (ipa_tm_mayenterirr_function): Likewise.
3724 (ipa_tm_diagnose_tm_safe): Likewise.
3725 (ipa_tm_diagnose_transaction): Likewise.
3726 (ipa_tm_create_version): Likewise.
3727 (ipa_tm_transform_calls_redirect): Likewise.
3728 (ipa_tm_execute): Likewise.
3729 * tree-inline.c (expand_call_inline): Likewise.
3731 2019-10-29 Martin Liska <mliska@suse.cz>
3733 * symbol-summary.h (function_summary): Pass memory location
3734 to underlaying hash_map (or vec).
3735 (V>::fast_function_summary): Likewise.
3737 2019-10-29 Martin Liska <mliska@suse.cz>
3739 * ggc.h (ggc_alloc_no_dtor): New function.
3740 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3741 destructor and ggc_free.
3742 (ipa_free_size_summary): Call delete instead
3744 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3745 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3746 (ipa_free_all_edge_args): Call destructor and ggc_free.
3747 (ipa_free_all_node_params): Likewise.
3748 (ipcp_free_transformation_sum): Likewise.
3749 * ipa-prop.h (ipa_check_create_node_params):
3750 Call new ggc_alloc_no_dtor.
3751 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3752 (ipa_sra_analysis): Call destructor and ggc_free.
3753 Replace release with delete operator.
3754 * symbol-summary.h (release): Remove ..
3755 (V>::~fast_function_summary): and move logic here.
3756 Likewise for other classes.
3758 2019-10-29 Richard Biener <rguenther@suse.de>
3760 PR tree-optimization/92260
3761 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3764 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3766 PR tree-optimization/88915
3767 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3768 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3769 and make the valueize function pointer also take a void pointer.
3770 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3771 around vn_valueize, to call it without a context.
3772 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3773 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3774 (~_loop_vec_info): Release epilogue_vinfos.
3775 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3776 number of iterations of epilogue.
3777 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3778 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3779 versioning threshold needed for main loop.
3780 (vect_analyze_loop): Likewise.
3781 (find_in_mapping): New helper function.
3782 (update_epilogue_loop_vinfo): New function.
3783 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3784 on main loop and call update_epilogue_loop_vinfo to update it.
3785 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3786 stmts on loop preheader edge.
3787 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3788 we decided to vectorize epilogues. Update epilogues NITERS and
3789 construct ADVANCE to update epilogues data references where needed.
3790 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3791 (vect_do_peeling, vect_update_inits_of_drs,
3792 determine_peel_for_niter, vect_analyze_loop): Add or update
3794 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3795 created loop_vec_info's for epilogues when available. Otherwise analyse
3796 epilogue separately.
3798 2019-10-29 Richard Biener <rguenther@suse.de>
3800 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3803 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3805 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3806 index for the COND_EXPR from stmt_info rather than reduc_info.
3808 2019-10-29 Richard Biener <rguenther@suse.de>
3810 PR tree-optimization/65930
3811 * tree-vect-loop.c (check_reduction_path): Relax single-use
3812 check allowing out-of-loop uses.
3813 (vect_is_simple_reduction): SLP reduction chains cannot have
3814 intermediate stmts used outside of the loop.
3815 (vect_create_epilog_for_reduction): The adjustment might need
3817 (vectorizable_reduction): Annotate live stmts of the reduction
3818 chain with STMT_VINFO_REDUC_DEF.
3819 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3821 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3823 * calls.c (pass_by_reference): Leave the target to decide whether
3824 POLY_INT_CST-sized arguments should be passed by value or reference,
3825 rather than forcing them to be passed by reference.
3826 (must_pass_in_stack_var_size): Likewise.
3827 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3828 V31_REGNUM to P15_REGNUM.
3829 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3830 Take an extra "silent_p" parameter, defaulting to false.
3831 (aarch64_sve::svbool_type_p): Declare.
3832 (aarch64_sve::nvectors_if_data_type): Likewise.
3833 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3834 (aarch64_frame::reg_offset): Turn into poly_int64s.
3835 (aarch64_frame::save_regs_size): Likewise.
3836 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3837 (aarch64_frame::sve_callee_adjust): Likewise.
3838 (aarch64_frame::spare_reg_reg): Likewise.
3839 (ARM_PCS_SVE): New arm_pcs value.
3840 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3841 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3842 (CUMULATIVE_ARGS::silent_p): Likewise.
3843 (BITS_PER_SVE_PRED): New macro.
3844 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3845 function. Reject aarch64_vector_pcs attributes on SVE functions.
3846 (aarch64_attribute_table): Use the above handler.
3847 (aarch64_sve_abi): New function.
3848 (aarch64_sve_argument_p): Likewise.
3849 (aarch64_returns_value_in_sve_regs_p): Likewise.
3850 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3851 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3852 descriptor for them.
3853 (aarch64_simd_decl_p): Delete.
3854 (aarch64_emit_cfi_for_reg_p): New function.
3855 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3856 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3857 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3858 as partly clobbered for the SVE PCS.
3859 (aarch64_function_ok_for_sibcall): Check whether the two functions
3860 use the same ABI, rather than checking specifically for whether
3861 they're aarch64_vector_pcs functions.
3862 (aarch64_pass_by_reference): Raise an error for attempts to pass
3863 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3864 if there are not enough free registers left, or if the argument is
3866 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3867 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3869 (aarch64_layout_arg): Take a function_arg_info rather than
3870 individual properties. Handle SVE predicates, vectors and tuples.
3871 Raise an error if they are passed to unprototyped functions.
3872 (aarch64_function_arg): If the silent_p flag is set, suppress the
3873 usual error about using float registers without TARGET_FLOAT.
3874 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3875 it in the cumulative_args structure. Initialize aapcs_nprn and
3876 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3877 error about using float registers without TARGET_FLOAT.
3878 If the silent_p flag is not set, also raise an error about
3879 using SVE functions when SVE is disabled.
3880 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3881 and call it for SVE functions too. Update aapcs_nprn similarly
3882 to the other register counts.
3883 (aarch64_layout_frame): If a big-endian function needs to save
3884 and restore Z8-Z15, search for a spare predicate that it can use.
3885 Store SVE predicates at the bottom of the register save area,
3886 followed by SVE vectors, then followed by the normal slots.
3887 Keep pointing the hard frame pointer at the base of the normal slots,
3888 above the SVE vectors. Update the various frame creation and
3889 tear-down strategies for the new layout, initializing the new
3890 sve_callee_adjust field. Add an additional layout for frames
3891 whose saved registers are all SVE registers.
3892 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3893 (aarch64_return_address_signing_enabled): Likewise.
3894 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3895 aarch64_reg_save_mode.
3896 (aarch64_adjust_sve_callee_save_base): New function.
3897 (aarch64_add_cfa_expression): Move earlier in file. Take the
3898 saved register as an rtx rather than a register number and use
3899 its mode for the MEM slot.
3900 (aarch64_save_callee_saves): Remove the mode argument and instead
3901 use aarch64_reg_save_mode to get the mode of each save slot.
3902 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3903 offsets. Allow GP offsets to be saved at a VL-based offset from
3904 the stack, handling this case using the frame pointer if available
3905 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3906 big-endian SVE functions; use normal moves for other SVE saves.
3907 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3908 returns true. Add explicit CFA notes when not storing via the
3909 stack pointer. Do not try to pair SVE saves.
3910 (aarch64_restore_callee_saves): Cope with poly_int64 register
3911 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3912 use normal moves for other SVE restores. Only add CFA restore notes
3913 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3915 (aarch64_get_separate_components): Always keep the first SVE save
3916 in the prologue if we need to use it as a stack probe. Don't allow
3917 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3918 Likewise the spare predicate register that they need. Update the
3919 offset calculation to account for the SVE save area. Use the
3920 appropriate range check for SVE LDR and STR instructions.
3921 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3922 (aarch64_process_components): Likewise. Update the offset
3923 calculation to account for the SVE save area. Only mark the
3924 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3925 Do not try to pair SVE saves.
3926 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3927 reg_offsets. When handling the final allocation, expect the
3928 first SVE register save to be part of the initial allocation
3929 and for it to act as a probe at SP. Account for the SVE callee
3930 save area in the dump information.
3931 (aarch64_expand_prologue): Update the frame diagram. Fold the
3932 SVE callee allocation into the initial allocation if stack clash
3933 protection is enabled. Use new variables to track the offset
3934 of the frame chain (and hard frame pointer) from the current
3935 stack pointer, and likewise the offset of the bottom of the
3936 register save area. Update calls to aarch64_save_callee_saves
3937 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3938 saving the FP&SIMD registers. Save the predicate registers.
3939 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3940 into account when setting the stack pointer from the frame pointer,
3941 and when deciding whether we can inherit the initial adjustment
3942 amount from the prologue. Restore the predicate registers after
3943 the vector registers, then apply sve_callee_adjust, then restore
3944 the general registers.
3945 (aarch64_secondary_reload): Don't use secondary SVE reloads
3947 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3948 (aarch64_short_vector_p): Return false for SVE types.
3949 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3950 at the start of the function. Return false for SVE types.
3951 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3953 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3954 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3955 to big-endian targets for bytewise moves.
3956 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3958 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3959 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3960 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3962 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3963 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3964 aarch64-sve-builtins-base.o to extra_objs. Add
3965 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3966 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3967 (aarch64-sve-builtins-shapes.o): Likewise.
3968 (aarch64-sve-builtins-base.o): New rules.
3969 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3970 (aarch64_resolve_overloaded_builtin): Likewise.
3971 (aarch64_check_builtin_call): Likewise.
3972 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3973 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3975 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3976 (aarch64_svprfop): New enum.
3977 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3978 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3979 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3980 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3981 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3982 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3983 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3984 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3985 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3986 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3987 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3988 (aarch64_sve::mangle_builtin_type): Likewise.
3989 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3990 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3991 (aarch64_sve::expand_builtin): Likewise.
3992 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3993 (aarch64_sve_int_mode): Likewise.
3994 (aarch64_ptrue_all_mode): New function.
3995 (aarch64_convert_sve_data_to_pred): Make public.
3996 (svprfop_token): New function.
3997 (aarch64_output_sve_prefetch): Likewise.
3998 (aarch64_fold_sve_cnt_pat): Likewise.
3999 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4000 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
4001 instead of gen_while_ult.
4002 (aarch64_replace_reg_mode): Make public.
4003 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
4004 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
4005 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
4006 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
4007 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
4008 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
4009 (aarch64_sve_ptrue_svpattern_p): Likewise.
4010 (aarch64_sve_pred_valid_immediate): Check
4011 aarch64_sve_ptrue_svpattern_p.
4012 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
4013 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
4015 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
4016 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
4017 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
4018 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
4019 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
4020 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
4022 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
4023 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
4024 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
4025 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
4026 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
4027 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
4028 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
4029 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
4030 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
4031 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
4032 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
4033 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
4034 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
4035 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
4036 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
4037 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
4038 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
4039 (Vesize): Handle partial vector modes.
4040 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
4042 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
4044 (s, paired_extend, inc_dec): New code attributes.
4045 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
4046 (SVE_INT_UNARY): Add UNSPEC_RBIT.
4047 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
4048 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
4049 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
4050 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4052 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
4053 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
4054 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4055 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
4056 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
4057 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
4058 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
4059 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4060 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4061 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4062 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4063 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4064 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4065 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4066 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4067 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4069 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4070 (binqops_op, binqops_op_rev, last_op): New int attributes.
4071 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4072 (fn, ab): New int attributes.
4073 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4074 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4075 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4076 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4078 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4079 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4080 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4081 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4082 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4084 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4085 (brk_reg_con, brk_reg_opno): New int attributes.
4086 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4087 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4088 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4090 (max_elem_bits): New int attribute.
4091 (min_elem_bits): Handle UNSPEC_RBIT.
4092 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4093 TRUNCATE as well as SUBREG.
4094 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4095 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4096 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4097 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4098 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4099 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4100 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4101 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4102 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4103 (aarch64_gather_scale_operand_h): New predicates.
4104 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4105 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4106 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4107 (*aarch64_sve_reinterpret<mode>): Allow any source register
4108 instead of requiring an exact match.
4109 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4110 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4111 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4112 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4113 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4114 (aarch64_update_ffrt): New patterns.
4115 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4116 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4117 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4118 (@aarch64_ld<fn>f1<mode>): New patterns.
4119 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4120 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4121 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4122 (@aarch64_ldnt1<mode>): New patterns.
4123 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4124 the scalar part of the address.
4125 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4126 scalar part of the addresse and add an alternative for handling
4128 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4129 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4130 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4131 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4132 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4133 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4134 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4135 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4136 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4137 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4138 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4139 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4140 (@aarch64_sve_prefetch<mode>): New patterns.
4141 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4142 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4143 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4144 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4145 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4146 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4147 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4148 (@aarch64_stnt1<mode>): New patterns.
4149 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4150 the scalar part of the address.
4151 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4152 the scalar part of the addresse and add an alternative for handling
4154 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4155 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4156 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4157 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4158 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4159 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4161 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4162 (extract_last_<mode>): Generalize to...
4163 (@extract_<LAST:last_op>_<mode>): ...this.
4164 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4165 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4166 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4167 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4168 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4169 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4170 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4171 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4172 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4173 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4174 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4175 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4176 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4177 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4178 (*aarch64_adr_uxtw_unspec): Likewise.
4179 (*aarch64_adr_uxtw): Rename to...
4180 (*aarch64_adr_uxtw_and): ...this.
4181 (@aarch64_adr<mode>_shift): New expander.
4182 (*aarch64_adr_shift_sxtw): New pattern.
4183 (aarch64_<su>abd<mode>_3): Rename to...
4184 (@aarch64_pred_<su>abd<mode>): ...this.
4185 (<su>abd<mode>_3): Update accordingly.
4186 (@aarch64_cond_<su>abd<mode>): New expander.
4187 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4188 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4189 (*<su>mul<mode>3_highpart): Rename to...
4190 (@aarch64_pred_<optab><mode>): ...this.
4191 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4192 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4193 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4194 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4195 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4196 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4197 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4198 (*v<ASHIFT:optab><mode>3): Rename to...
4199 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4200 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4201 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4202 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4203 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4204 (@cond_asrd<mode>): New expander.
4205 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4206 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4207 (*sdiv_pow2<mode>3): Delete.
4208 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4209 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4210 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4211 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4212 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4213 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4214 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4215 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4216 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4217 (*add<SVE_F:mode>3): Rename to...
4218 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4220 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4221 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4222 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4223 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4224 (*sub<SVE_F:mode>3): Rename to...
4225 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4227 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4228 (*fabd<SVE_F:mode>3): Rename to...
4229 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4230 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4231 (*mul<SVE_F:mode>3): Rename to...
4232 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4234 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4235 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4237 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4238 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4239 (*<nlogical><PRED_ALL:mode>3): Rename to...
4240 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4241 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4242 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4243 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4244 (aarch64_pred_<logical_nn><mode>_z): ...this.
4245 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4246 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4247 (*fma<SVE_I:mode>4): Rename to...
4248 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4249 (*fnma<SVE_I:mode>4): Rename to...
4250 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4251 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4252 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4253 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4254 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4255 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4256 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
4257 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
4258 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
4259 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
4260 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
4261 (@aarch64_sve_tmad<mode>): Likewise.
4262 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
4263 (*aarch64_sel_dup<mode>): Rename to...
4264 (@aarch64_sel_dup<mode>): ...this.
4265 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
4266 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
4267 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
4268 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
4269 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
4270 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
4271 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
4272 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
4273 (*fcm<cmp_op><mode>): Rename to...
4274 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
4275 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4276 (*fcmuo<mode>): Rename to...
4277 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
4278 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4279 (@aarch64_pred_fac<cmp_op><mode>): New expander.
4280 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
4281 (fold_extract_last_<mode>): Generalize to...
4282 (@fold_extract_<last_op>_<mode>): ...this.
4283 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
4284 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
4285 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
4286 DImode result explicit.
4287 (reduc_plus_scal_<mode>): Update accordingly.
4288 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
4289 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
4290 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
4291 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
4292 (*aarch64_sve_tbl<mode>): Rename to...
4293 (@aarch64_sve_tbl<mode>): ...this.
4294 (@aarch64_sve_compact<mode>): New pattern.
4295 (*aarch64_sve_dup_lane<mode>): Rename to...
4296 (@aarch64_sve_dup_lane<mode>): ...this.
4297 (@aarch64_sve_dupq_lane<mode>): New pattern.
4298 (@aarch64_sve_splice<mode>): Likewise.
4299 (aarch64_sve_<perm_insn><mode>): Rename to...
4300 (@aarch64_sve_<perm_insn><mode>): ...this.
4301 (*aarch64_sve_ext<mode>): Rename to...
4302 (@aarch64_sve_ext<mode>): ...this.
4303 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
4304 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
4306 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
4307 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4309 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4311 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
4312 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
4313 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
4314 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
4316 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
4317 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
4319 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
4320 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
4321 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
4323 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
4324 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
4325 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
4326 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
4327 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
4329 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
4330 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
4331 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
4332 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
4333 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
4334 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
4335 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
4336 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
4337 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
4338 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
4339 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
4340 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
4341 (aarch64_sve_cnt_pat): Likewise.
4342 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4343 (*aarch64_sve_incsi_pat): Likewise.
4344 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4345 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4346 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4347 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4348 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4349 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4350 (*aarch64_sve_decsi_pat): Likewise.
4351 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4352 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4353 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4354 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4355 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4356 (@aarch64_pred_cntp<mode>): Likewise.
4357 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4359 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4360 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4361 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4363 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4365 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
4366 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4367 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
4368 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4369 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
4370 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4371 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4373 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4374 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4375 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4377 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4379 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
4381 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4382 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
4384 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4385 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
4387 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4388 * config/aarch64/arm_sve.h: New file.
4389 * config/aarch64/aarch64-sve-builtins.h: Likewise.
4390 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
4391 * config/aarch64/aarch64-sve-builtins.def: Likewise.
4392 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
4393 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
4394 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
4395 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
4396 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
4397 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
4399 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4401 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
4403 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
4406 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4408 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
4409 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
4411 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
4412 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
4413 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
4414 (aarch64_hard_regno_nregs): Handle the new register classes.
4415 (aarch64_hard_regno_mode_ok): Likewise.
4416 (aarch64_regno_regclass): Likewise.
4417 (aarch64_class_max_nregs): Likewise.
4418 (aarch64_register_move_cost): Likewise.
4419 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
4420 as general register_operands.
4422 2019-10-29 Martin Liska <mliska@suse.cz>
4424 * ggc-common.c: One can't subtract unsigned types
4425 in compare function.
4427 2019-10-29 Martin Liska <mliska@suse.cz>
4429 * cgraphunit.c (symbol_table::compile): Pass
4430 title as dump_memory_report argument.
4431 * toplev.c (dump_memory_report): New argument.
4432 (finalize): Pass new argument.
4433 * toplev.h (dump_memory_report): Add argument.
4435 2019-10-29 Martin Liska <mliska@suse.cz>
4437 * ggc-common.c: Move Leak to the first column.
4439 2019-10-29 Martin Liska <mliska@suse.cz>
4441 * cgraphunit.c (symbol_table::compile): Remove argument
4442 for dump_memory_report.
4443 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4444 (compare_final): Remove in order to make report
4446 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4447 * mem-stats.h (mem_alloc_description::get_list):
4449 (mem_alloc_description::dump): Likewise here.
4450 * toplev.c (dump_memory_report): Remove final
4452 (finalize): Likewise.
4453 * toplev.h (dump_memory_report): Remove argument.
4455 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4457 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4458 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4459 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4460 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4463 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4465 * coretypes.h (string_int_pair): New typedef.
4466 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4467 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4468 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4470 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4472 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
4473 (simulate_builtin_function_decl): Declare.
4474 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
4475 (LANG_HOOKS_INITIALIZER): Include it.
4476 * langhooks.c (add_builtin_function_common): Rename to...
4477 (build_builtin_function): ...this. Add a location parameter and use
4478 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
4480 (add_builtin_function): Update accordingly, passing the returned
4481 decl to the lang hook.
4482 (add_builtin_function_ext_scope): Likewise
4483 (simulate_builtin_function_decl): New function.
4485 2019-10-29 Jakub Jelinek <jakub@redhat.com>
4487 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
4488 example, use actual names of supported offload targets.
4491 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
4493 2019-10-28 Martin Sebor <msebor@redhat.com>
4495 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
4496 (handle_store): Pass argument to get_addr_stridx.
4498 2019-10-28 Martin Sebor <msebor@redhat.com>
4500 PR tree-optimization/92226
4501 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
4502 the offset is in the open range outlined by SI's length.
4504 2019-10-28 Martin Sebor <msebor@redhat.com>
4507 * doc/cpp.texi (__has_builtin): Document.
4508 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
4510 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4513 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
4514 doubleword and low doubleword result of multiplication on
4517 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
4518 pure qualifier to the built-in.
4519 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
4521 (struct mips_builtin_description): Add is_pure flag.
4522 (mips_init_builtins): Mark built-in as pure if the flag in the
4523 corresponding mips_builtin_description struct is set.
4525 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
4526 alternative which covers the floating-point input value. Also
4527 forbid the split of insert.d pattern for floating-point values.
4529 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
4531 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
4532 * config/riscv/riscv-sr.c: New file.
4533 * config/riscv/riscv.c (riscv_reorg): New function.
4534 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4535 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
4536 (riscv_remove_unneeded_save_restore_calls): Declare.
4537 * config/riscv/t-riscv (riscv-sr.o): New build rule.
4539 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4541 PR tree-optimization/92163
4542 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
4543 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
4544 before calling bitmap_set_bit.
4545 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
4546 delete_dead_or_redundant_assignment.
4547 (dse_dom_walker::dse_optimize_stmt): Likewise.
4548 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
4550 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4553 * tree-vect-stmts.c (vectorizable_condition): Support
4554 EXTRACT_LAST_REDUCTION with fully-masked loops.
4556 2019-10-28 Richard Biener <rguenther@suse.de>
4558 PR tree-optimization/92252
4559 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
4560 STMT_VINFO_REDUC_IDX when swapping operands.
4562 2019-10-28 Richard Biener <rguenther@suse.de>
4564 PR tree-optimization/92241
4565 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
4566 we failed to update the reduction index do not use the pattern
4567 stmts for the reduction chain.
4568 (vectorizable_reduction): When the reduction chain is corrupt,
4570 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
4571 fail to update the reduction chain.
4573 2019-10-28 Richard Biener <rguenther@suse.de>
4575 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4576 STMT_VINFO_REDUC_IDX from the actual stmt.
4577 (vect_transform_reduction): Likewise.
4578 (vectorizable_reduction): Compute the reduction chain length,
4579 do not recompute the reduction operand index. Remove no longer
4580 necessary restriction for condition reduction chains.
4582 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4585 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
4586 condition for V2DImode.
4588 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4590 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
4591 Remove %k operand modifier.
4592 (*vec_extractv2df_1_sse): Remove %q operand modifier.
4594 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
4596 PR rtl-optimization/92007
4597 * cfgcleanup.c (thread_jump): Add an assertion that we don't
4598 call it after reload if hot/cold partitioning has been done.
4599 (class pass_postreload_jump): Rename to
4600 pass_jump_after_combine.
4601 (make_pass_postreload_jump): Rename to
4602 make_pass_jump_after_combine.
4603 * passes.def(pass_postreload_jump): Move before reload, rename
4604 to pass_jump_after_combine.
4605 * tree-pass.h (make_pass_postreload_jump): Rename to
4606 make_pass_jump_after_combine.
4608 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
4611 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4612 for missing EDGE_REF
4613 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4615 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4617 PR tree-optimization/88760
4618 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4619 Enable -funroll-loops for -O2 and above.
4620 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4621 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4622 do not turn on web and rngreg implicitly, if the unroller is not
4625 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4627 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4630 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4632 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4633 * cgraph.h (cgraph_node::rtl_info): Likewise.
4635 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4637 * ipa-cp.c (propagate_constants_across_call): If args are not available
4638 just drop everything to varying.
4639 (find_aggregate_values_for_callers_subset): Watch for missing
4641 (find_more_scalar_values_for_callers_subs): Likewise.
4642 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4643 update_jump_functions_after_inlining, propagate_controlled_uses):
4644 Watch for missing summaries.
4645 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4647 (ipa_write_node_info): Watch for missing summaries.
4648 (ipa_read_edge_info): Create new ref.
4649 (ipa_edge_args_sum_t): Add remove.
4650 (IPA_EDGE_REF_GET_CREATE): New macro.
4651 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4653 (remap_edge_change_prob): Likewise.
4655 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4657 * ipa-inline-transform.c (inline_call): update function summaries
4658 after expanidng thunk.
4660 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4662 * ipa-icf.c (sem_function::merge): Update function summaries.
4663 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4665 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4667 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4668 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4669 operand already has scalar mode.
4670 (iptr): Remove SF/DF.
4672 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4675 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4676 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4679 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4681 * config/i386/sse.md
4682 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4683 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4684 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4685 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4686 <sse>_vmmaskcmp<mode>3):
4687 Change predicates from vector_operand to nonimmediate_operand,
4688 constraints xBm to xm, since scalar operations don't need
4689 memory address alignment.
4690 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4691 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4692 round_saeonly_nimm_predicate with
4693 round_saeonly_nimm_scalar_predicate.
4694 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4695 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4696 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4697 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4698 avx512f_vmfmadd_<mode>_mask3<round_name>,
4699 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4700 *avx512f_vmfmsub_<mode>_mask<round_name>,
4701 avx512f_vmfmsub_<mode>_mask3<round_name>,
4702 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4703 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4704 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4705 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4706 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4707 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4708 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4709 cvtusi2<ssescalarmodesuffix>32<round_name>,
4710 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4711 round_nimm_predicate with round_nimm_scalr_predicate.
4712 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4713 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4714 avx512er_vmrcp28<mode><round_saeonly_name>,
4715 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4716 ): Replace round_saeonly_nimm_predicate with
4717 round_saeonly_nimm_scalar_predicate.
4718 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4719 vector_operand with nonimmediate_operand.
4720 * config/i386/subst.md (round_scalar_nimm_predicate,
4721 round_saeonly_scalar_nimm_predicate): Replace
4722 vector_operand with nonimmediate_operand.
4724 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4727 * config/i386/i386.md (*rcpsf2_sse): Add
4728 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4729 (*rsqrtsf2_sse): Ditto.
4730 (*sqrt<mode>2_sse): Ditto.
4731 (sse4_1_round<mode>2): separate constraint vm, add
4732 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4733 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4735 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4737 (*sse_vmrsqrtv4sf2): Ditto.
4738 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4739 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4740 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4741 <iptr> pointer size modifier since vround support memory operand.
4743 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4746 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4749 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4750 Tobias Burnus <tobias@codesourcery.com>
4752 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4753 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4756 2019-10-25 Richard Biener <rguenther@suse.de>
4758 PR tree-optimization/92222
4759 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4760 (_slp_oprnd_info::second_pattern): Likewise.
4761 (_slp_oprnd_info::any_pattern): New.
4762 (vect_create_oprnd_info): Adjust.
4763 (vect_get_and_check_slp_defs): Compute whether any stmt is
4765 (vect_build_slp_tree_2): Avoid building up a node from scalars
4766 if any of the operand defs, not just the first, is in a pattern.
4768 2019-10-25 Richard Biener <rguenther@suse.de>
4770 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4771 swapping if we actually have to modify the IL on a shared stmt.
4772 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4773 because we no longer modify the IL.
4775 2019-10-25 Martin Liska <mliska@suse.cz>
4777 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4779 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4781 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4782 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4783 handled by vect_transform_reduction. Allow fully-masked loops
4784 to be used with reduction chains.
4785 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4786 operations in fully-masked loops.
4787 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4788 operations in fully-masked loops.
4790 2019-10-25 Richard Biener <rguenther@suse.de>
4792 * tree-vect-loop.c (vectorizable_reduction): Verify
4793 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4795 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4796 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4799 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4801 * gimplify.h (omp_construct_selector_matches): Declare.
4802 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4803 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4804 called function if needed for flag_openmp.
4805 (gimplify_scan_omp_clauses): Set ctx->code.
4806 (omp_construct_selector_matches): New function.
4807 * omp-general.h (omp_constructor_traits_to_codes,
4808 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4809 * omp-general.c (omp_constructor_traits_to_codes,
4810 omp_context_selector_matches, omp_resolve_declare_variant): New
4813 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4815 * config/rx/rx.c (rx_print_operand): Likewise.
4816 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4817 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4818 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4820 * genemit.c (emit_c_code): Likewise.
4821 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4823 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4825 * symbols-summary.h (fast_function_summary<T *, V>::release,
4826 fast_call_summary<T *, V>::release): Free m_vector.
4828 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4830 * cgraphunit.c (symbol_table::process_new_functions): Call
4831 ipa_free_size_summary.
4832 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4833 (devirtualization_time_bonus): Update.
4834 (ipcp_propagate_stage): Update.
4835 * ipa-fnsummary.c (ipa_size_summaries): New.
4836 (ipa_fn_summary_alloc): Alloc size summary.
4837 (dump_ipa_call_summary): Update.
4838 (ipa_dump_fn_summary): Update.
4839 (analyze_function_body): Update.
4840 (compute_fn_summary): Likewise.
4841 (ipa_get_stack_frame_offset): New function.
4842 (inline_update_callee_summaries): Do not update frame offsets.
4843 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4844 remove call and function summary.
4845 (ipa_update_overall_fn_summary): Update.
4846 (inline_read_section): Update.
4847 (ipa_fn_summary_write): Update.
4848 (ipa_free_fn_summary): Do not remove summaries.
4849 (ipa_free_size_summary): New.
4850 (release summary pass): Also run at WPA.
4851 * ipa-fnsummary.h (ipa_size_summary): Declare.
4852 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4853 estimated_self_stack_size.
4854 (ipa_size_summary_t): New type.
4855 (ipa_size_summaries): Declare.
4856 (ipa_free_size_summary): Declare.
4857 (ipa_get_stack_frame_offset): Declare.
4858 * ipa-icf.c (sem_function::merge): Update.
4859 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4860 (estimate_growth): Update.
4861 (growth_likely_positive): Update.
4862 (clone_inlined_nodes): Update.
4863 (inline_call): Update.
4864 * ipa-inline.c (caller_growth_limits): Update.
4865 (edge_badness): Update.
4866 (recursive_inlining): Update.
4867 (inline_small_functions): Update.
4868 (inline_to_all_callers_1): Update.
4869 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4871 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4873 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4874 (uavg<mode>3_ceil): ... This.
4875 (altivec_vavgs<VI_char>): Rename to...
4876 (avg<mode>3_ceil): ... This.
4877 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4878 VAVGUW, VAVGSW): Adjust.
4880 2019-10-24 Nathan Sidwell <nathan@acm.org>
4882 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4884 2019-10-24 Martin Liska <mliska@suse.cz>
4886 * symbol-summary.h (gt_pch_nx): Mark all functions
4887 with gcc_unreachable as we do not expect to be called.
4889 2019-10-24 Richard Biener <rguenther@suse.de>
4891 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4892 chains try harder with operand swapping and instead of
4893 putting a shifted chain into the reduction operands put
4894 a repetition of the final reduction op there as if we'd
4895 reassociate the expression.
4897 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4899 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4900 statics_not_read and statics_not_written to statics_read and
4901 statics_written respectively.
4902 (no_module_statics): New static var.
4903 (ipa_reference_get_not_read_global): Rename to ...
4904 (ipa_reference_get_read_global): ... this.
4905 (ipa_reference_get_not_written_global): Rename to ...
4906 (ipa_reference_get_written_global): ... this.
4907 (dump_static_vars_set_to_file): Dump no_module_statics.
4908 (copy_static_var_set): Add for propagation parameter.
4909 (ipa_init): Initialize no_module_statics.
4910 (ipa_ref_opt_summary_t::duplicate): Update.
4911 (ipa_ref_opt_summary_t::remove): Update.
4912 (propagate): Update.
4913 (write_node_summary_p): Look correctly for bitmap differences.
4914 (ipa_reference_write_optimization_summary): Update.
4915 (ipa_reference_read_optimization_summary): Update.
4917 (ipa_reference_get_not_read_global): Rename to ...
4918 (ipa_reference_get_read_global): ... this.
4919 (ipa_reference_get_not_written_global): Rename to ...
4920 (ipa_reference_get_written_global): ... this.
4921 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4922 (call_may_clobber_ref_p_1): Update.
4924 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4926 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4928 (msp430_hard_regno_nregs_with_padding): Remove.
4930 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4932 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4933 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4934 shift amount is between 1 and 4.
4935 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4938 2019-10-24 Richard Biener <rguenther@suse.de>
4940 PR tree-optimization/92205
4941 * tree-vect-loop.c (vectorizable_reduction): Restrict
4942 search for alternate vectype_in to lane-reducing patterns
4945 2019-10-24 Richard Biener <rguenther@suse.de>
4947 PR tree-optimization/92203
4948 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4949 Skip eliminating conversion stmts inserted by insertion.
4951 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4953 * config/s390/s390.c (s390_get_thread_pointer): Use
4954 gen_get_thread_pointer.
4955 (s390_expand_split_stack_prologue): Likewise.
4956 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4957 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4958 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4959 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4962 2019-10-24 Richard Biener <rguenther@suse.de>
4964 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4965 SLP discovery fails try to handle the reduction as part
4966 of SLP reduction discovery.
4968 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4970 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4972 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4973 attribute if it exists, rather than the insn size. If we use the
4974 insn size, adjust the size to remove the extra size that prefixed
4976 (rs6000_adjust_insn_length): New function.
4977 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4978 update the instruction sized if prefixed instructions are used.
4979 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4980 (non_prefixed_length attribute): Delete.
4981 (num_insns attribute): New insn attribute to return the number of
4983 (max_prefixed_insns attribute): New insn attribute to return the
4984 maximum number of prefixed instructions in an insn.
4985 (length attribute): Do not adjust for prefix instructions here,
4986 punt to ADJUST_INSN_LENGTH.
4987 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4988 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4989 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4990 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4991 max_prefixed_insns and num_insns.
4993 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4994 (movtd_64bit_nodm): Reformat.
4995 (mov<mode>_32bit): Reformat.
4996 (mov<mode>_softfloat): Reformat.
4997 (FMOVE128_GPR splitter): Reformat.
4998 (DIFD splitter): Reformat.
4999 (TI2 splitter): Reformat.
5000 * config/rs6000/predicates.md (lwa_operand): If the bottom two
5001 bits of the offset for the memory address are non-zero, use PLWA
5002 if prefixed instructions are available.
5004 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5006 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
5008 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5010 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
5013 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5015 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
5016 (cmp_symbol_files): New.
5017 (lto_output): Copy sections in file order.
5018 * lto-streamer.h (lto_file_decl_data): Add field order.
5020 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5022 * ipa-reference.h (ipa_reference_var_uid): Move offline.
5023 * ipa-reference.c (reference_vars_map_t): new type.
5024 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
5025 (ipa_reference_var_uid): Implement.
5026 (varpool_node_hooks): New static var.
5027 (varpool_removal_hook): New function.
5028 (is_improper): Do not check bitmap for id==-1
5029 (get_static_name): Update.
5030 (ipa_init): Initialize new datastructures.
5031 (analyze_function): Do not recompute ids.
5032 (propagate): Free reference_vars_to_consider.
5033 (stream_out_bitmap): Update.
5034 (ipa_reference_read_optimization_summary): Update.
5036 2019-10-23 qing zhao <qing.zhao@oracle.com>
5038 PR gcov-profile/91971
5039 * coverage.c (coverage_init): Mangle the full path of filename when
5040 filename is a absolute path.
5042 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5044 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
5045 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
5046 (msp430_has_hwmult): New.
5047 (msp430_output_labelref):
5048 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
5049 * config/msp430/msp430.md (mulhisi3): Likewise.
5050 (umulhisi3): Likewise.
5051 (mulsidi3): Likewise.
5052 (umulsidi3): Likewise.
5054 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5057 * params.def (inline-heuristics-hint-percent): Set to 600.
5059 2019-10-23 Richard Biener <rguenther@suse.de>
5061 PR tree-optimization/65930
5062 * tree-vect-loop.c (check_reduction_path): Allow conversions
5063 that only change the sign.
5064 (vectorizable_reduction): Relax latch def stmts we handle further.
5066 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5069 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5070 (remove_unused_ivs): Use it instead of get_computation_at. When
5071 choosing best candidate, only consider candidates where
5072 get_debug_computation_at actually returns non-NULL.
5074 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5076 PR tree-optimization/92131
5077 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5078 range would be symbolic, drop to varying for any explicit overflow
5079 in the constant part or if neither range is a singleton.
5081 2019-10-23 Martin Liska <mliska@suse.cz>
5084 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5087 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5089 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5090 int_mode_for_mode rather than mode_for_int_vector for scalars.
5092 2019-10-23 Richard Biener <rguenther@suse.de>
5094 PR tree-optimization/92179
5095 * tree-vect-stmts.c (vectorizable_shift): For shift args
5096 that are all the same remove type restriction in the SLP case.
5097 Adjust SLP code to handle converting of the shift arg to
5098 only apply in case the modes are different.
5100 2019-10-23 Martin Liska <mliska@suse.cz>
5103 * ipa-inline.c (recursive_inlining): Do not print
5104 when curr->count is not initialized.
5106 2019-10-23 Richard Biener <rguenther@suse.de>
5108 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5109 op from scalars in case there's a constant operand in its
5112 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5114 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5115 against out of range max skip or log values.
5117 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5119 * cgraph.c (dump_graphviz): Change name to dump_name
5121 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5123 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5124 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5125 subtraction from a carry operation.
5127 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5129 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5131 2019-10-22 Richard Biener <rguenther@suse.de>
5133 PR tree-optimization/92173
5134 * tree-vect-loop.c (vectorizable_reduction): If
5135 vect_transform_reduction cannot handle code-generation try without
5136 the single-def-use-cycle optimization. Pass optab_vector to
5137 optab_for_tree_code to get vector shifts as that's what we'd
5140 2019-10-22 Michael Matz <matz@suse.de>
5143 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5144 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5145 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5147 2019-10-22 Richard Biener <rguenther@suse.de>
5149 PR tree-optimization/92173
5150 * tree-vect-loop.c (vectorizable_reduction): If
5151 vect_transform_reduction cannot handle code-generation try without
5152 the single-def-use-cycle optimization. Pass optab_vector to
5153 optab_for_tree_code to get vector shifts as that's what we'd
5156 2019-10-22 Martin Liska <mliska@suse.cz>
5158 * diagnostic-format-json.cc (json_from_expanded_location):
5159 Use json::integer_number.
5160 * gcov.c (output_intermediate_json_line): Use new
5161 json::integer_number.
5162 (output_json_intermediate_file): Likewise.
5163 * json.cc (number::print): Move to ...
5164 (float_number::print): ... this.
5165 (integer_number::print): New.
5166 (test_writing_numbers): Move to ...
5167 (test_writing_float_numbers): ... this.
5168 (test_writing_integer_numbers): New.
5169 (json_cc_tests): Register test_writing_integer_numbers.
5170 * json.h (class value): Add forward declaration
5171 for float_number and integer_number.
5172 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5173 (class number): Move to ...
5174 (class float_number): ... this.
5175 (class integer_number): New.
5176 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5177 Use json::integer_number.
5178 (optrecord_json_writer::location_to_json): Likewise.
5179 (optrecord_json_writer::profile_count_to_json): Likewise.
5180 (optrecord_json_writer::pass_to_json): Likewise.
5182 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5184 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5185 autodetected_vector_size rather than vector_size is zero.
5186 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5187 Set autodetected_vector_size immediately after calling
5188 vect_analyze_loop_2. Check for a fatal error before advancing
5191 2019-10-21 Jason Merrill <jason@redhat.com>
5193 * lock-and-run.sh: Check for process existence rather than timeout.
5195 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5197 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5198 widening multiplication.
5200 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5202 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5203 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5205 (subsi3_carryin_shift): Separate into register and constant controlled
5206 alternatives. Use shift_amount_operand for operand 4. Set shift
5207 attribute and simplify type attribute.
5208 (subsi3_carryin_shift_alt): Likewise.
5209 (rsbsi3_carryin_shift): Likewise.
5210 (rsbsi3_carryin_shift_alt): Likewise.
5211 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5212 and register controlled shifts into distinct alternatives.
5213 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5214 (andsi_not_shiftsi_si_scc): Likewise.
5215 (arm_cmpsi_negshiftsi_si): Likewise.
5216 (not_shiftsi): Remove redundant M constraint from alternative 1.
5217 (not_shiftsi_compare0): Likewise.
5218 (arm_cmpsi_insn): Remove redundant alternative 2.
5219 (cmpsi_shift_swp): Likewise.
5220 (sub_shiftsi): Likewise.
5221 (sub_shiftsi_compare0_scratch): Likewise.
5222 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5223 (thumb2_cmpsi_neg_shiftsi): Likewise.
5225 2019-10-21 Richard Biener <rguenther@suse.de>
5227 PR tree-optimization/92162
5228 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5229 STMT_VINFO_REDUC_IDX in reduc_info.
5230 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5232 2019-10-21 Richard Biener <rguenther@suse.de>
5234 * tree-vectorizer.h (_slp_tree::ops): New member.
5235 (SLP_TREE_SCALAR_OPS): New.
5236 (vect_get_slp_defs): Adjust prototype.
5237 * tree-vect-slp.c (vect_free_slp_tree): Release
5238 SLP_TREE_SCALAR_OPS.
5239 (vect_create_new_slp_node): Initialize it. New overload for
5240 initializing by an operands array.
5241 (_slp_oprnd_info::ops): New member.
5242 (vect_create_oprnd_info): Initialize it.
5243 (vect_free_oprnd_info): Release it.
5244 (vect_get_and_check_slp_defs): Populate the operands array.
5245 Do not swap operands in the IL when not necessary.
5246 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5247 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5248 swap operands in the operands array. Do not swap operands in
5250 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5251 (vect_gather_slp_loads): Fix.
5252 (vect_detect_hybrid_slp_stmts): Likewise.
5253 (vect_slp_analyze_node_operations_1): Search for a internal
5254 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5255 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5256 the def-type push/pop dance.
5257 (vect_get_constant_vectors): Compute number_of_vectors here.
5258 Use SLP_TREE_SCALAR_OPS and simplify greatly.
5259 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
5260 (vect_get_slp_defs): Simplify greatly.
5261 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
5262 (vect_transform_reduction): Likewise.
5263 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
5264 (vectorizable_call): Likewise.
5265 (vectorizable_operation): Likewise.
5266 (vectorizable_load): Likewise.
5267 (vectorizable_condition): Likewise.
5268 (vectorizable_comparison): Likewise.
5270 2019-10-21 Richard Biener <rguenther@suse.de>
5272 PR tree-optimization/92161
5273 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
5276 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5278 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
5279 (aarch64_rndr): New define_insn.
5280 (aarch64_rndrrs): Likewise.
5281 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
5282 (TARGET_RNG): Likewise.
5283 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
5285 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
5286 Add fourth argument in prototype.
5287 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
5288 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
5289 (aarch64_init_rng_builtins): Define.
5290 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
5291 (aarch64_expand_rng_builtin): Define.
5292 (aarch64_general_expand_builtin): Use IGNORE argument, handle
5294 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5295 __ARM_FEATURE_RNG when TARGET_RNG.
5296 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
5298 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
5300 * tree-vect-stmts (ensure_base_align): Only change alignment if new
5301 alignment is more restrictive.
5303 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5305 * tree-vectorizer.h (vec_info::vector_size): New member variable.
5306 (vect_update_max_nunits): Update comment.
5307 (current_vector_size): Delete.
5308 * tree-vect-stmts.c (current_vector_size): Likewise.
5309 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
5310 of current_vector_size.
5311 (get_mask_type_for_scalar_type): Likewise.
5312 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
5313 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
5314 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
5315 (vect_double_mask_nunits, vect_transform_loop): Likewise.
5316 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5317 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
5319 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5321 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
5322 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
5323 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
5326 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5328 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
5329 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
5330 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
5332 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5334 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5336 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
5338 (vect_set_loop_condition_masked): Update call accordingly.
5340 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5342 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
5343 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5344 (simple_integer_narrowing): Update call accordingly.
5345 (vectorizable_conversion): Likewise.
5347 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5349 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
5350 (vectorizable_call): Update call accordingly.
5352 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5354 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
5355 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5356 (duplicate_and_interleave): Update call accordingly.
5357 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5359 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5361 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
5362 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
5363 (vect_get_constant_vectors): Update call accordingly.
5364 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
5366 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5368 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
5369 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
5370 (vect_prologue_cost_for_slp_op): Update call accordingly.
5371 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
5372 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
5373 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
5374 (get_mask_type_for_scalar_type): Likewise.
5375 (vect_get_vector_types_for_stmt): Likewise.
5376 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5377 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5378 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
5379 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
5380 (vect_split_statement, vect_convert_input): Likewise.
5381 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
5382 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
5383 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
5384 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
5385 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
5386 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
5387 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
5388 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
5389 (vect_recog_mask_conversion_pattern): Likewise.
5390 (vect_add_conversion_to_pattern): Likewise.
5391 (vect_recog_gather_scatter_pattern): Likewise.
5392 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
5393 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
5395 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5397 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
5398 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
5399 (vect_check_load_store_mask): Update call accordingly.
5400 (vect_get_mask_type_for_stmt): Likewise.
5401 * tree-vect-patterns.c (check_bool_pattern): Likewise.
5402 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
5403 (vect_convert_mask_for_vectype): Likewise.
5405 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5407 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
5409 (vect_recog_dot_prod_pattern): Update call accordingly.
5410 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
5411 (vect_recog_widen_sum_pattern): Likewise.
5413 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5415 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
5416 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
5417 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
5420 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5422 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
5423 get_vectype_for_scalar_type_and_size instead of
5424 get_vectype_for_scalar_type.
5426 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5428 * common.opt (-fcommon): Fix description.
5430 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5432 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5433 * config/i386/i386.c (ix86_pre_reload_split): New function.
5434 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5435 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5436 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5437 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5438 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5439 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5440 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5441 *<shift_insn><dwi>3_doubleword_mask,
5442 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5443 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5444 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5445 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5446 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5447 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5448 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5449 *avx2_<code>v8qiv8si2<mask_name>_2,
5450 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5451 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5452 *avx512f_<code>v8qiv8di2<mask_name>_2,
5453 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5454 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5455 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5456 sse4_2_pcmpistr): Likewise.
5458 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5460 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5461 now defaults to https.
5463 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5465 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5466 skip non-zero array accesses.
5468 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5470 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5471 and return a boolean success value. Move the allocation and
5472 initialization of the bb_vec_info to...
5473 (vect_slp_bb_region): ...here. Update call accordingly.
5474 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
5475 than in vect_slp_analyze_bb_1.
5477 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5479 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
5480 when processing the given datarefs for the first time and
5481 check_datarefs subsequently.
5482 (vect_slp_bb_region): New function, split out of...
5483 (vect_slp_bb): ...here. Don't recompute the region bounds and
5484 dataref sets when retrying with a different vector size.
5486 2019-10-19 Jakub Jelinek <jakub@redhat.com>
5487 Uroš Bizjak <ubizjak@gmail.com>
5490 * config/i386/predicates.md (int_nonimmediate_operand): New special
5492 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
5493 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
5494 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
5495 define_insn_and_split patterns.
5497 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
5499 * config/rs6000/rs6000.md: Delete out--of-date comment about
5500 special-casing integer loads.
5502 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
5504 * escaped_string.h (escaped_string): New header.
5505 * tree.c (escaped_string): Remove escaped_string class.
5507 2019-10-18 Martin Sebor <msebor@redhat.com>
5509 PR tree-optimization/92157
5510 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5511 compute_string_length to return a negative result.
5513 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5515 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
5516 (negvsi3, negvdi3): Delete.
5517 (negdi2_compare): Delete.
5519 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5521 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
5523 (subdi3_compare1): Delete pattern.
5524 (subvsi3_borrow): New insn pattern.
5525 (subvsi3_borrow_imm): Likewise.
5527 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5529 * config/arm/arm.md (subv<mode>4): Delete.
5530 (subvdi4): New expander pattern.
5531 (subvsi4): Likewise. Handle some immediate values.
5532 (subvsi3_intmin): New insn pattern.
5533 (subvsi3): Likewise.
5534 (subvsi3_imm1): Likewise.
5535 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
5538 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5540 * config/arm/arm.md (usubvdi4): Allow registers or integers for
5541 incoming operands. Early split the calculation into SImode
5543 (usubvsi3_borrow): New insn pattern.
5544 (usubvsi3_borrow_imm): Likewise.
5546 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5548 * config/arm/arm.md (usubv<mode>4): Delete expansion.
5549 (usubvsi4): New pattern. Allow some immediate values for inputs.
5550 (usubvdi4): New pattern.
5552 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5554 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
5555 or second operand of the PLUS inside a DImode equality test to be
5556 sign-extend when selecting CC_Vmode.
5557 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
5559 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
5561 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
5562 (addsi3_cin_vout_0): Likewise.
5563 (adddi3_compareV): Delete.
5565 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5567 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
5568 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
5569 to transform this back into the summation version when that leads
5572 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5574 * config/arm/arm.md (addv<mode>4): Delete.
5575 (addvsi4): New pattern. Handle immediate values that the architecture
5577 (addvdi4): New pattern.
5578 (addsi3_compareV): Rename to ...
5579 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
5580 and use COMPARE rather than NE.
5581 (addsi3_compareV_imm): New pattern.
5582 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
5583 a signed-overflow check.
5585 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5587 * config/arm/arm-modes.def (CC_ADC): New CC mode.
5588 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
5590 (maybe_get_arm_condition_code): Handle CC_ADCmode.
5591 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
5593 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
5595 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
5596 (addsi3_cin_cout_imm_insn): Likewise.
5597 (adddi3_compareC): Delete insn.
5598 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
5600 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5602 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
5603 * (uaddv<mode>4): Delete expansion pattern.
5604 (uaddvsi4): New pattern.
5605 (uaddvdi4): Likewise.
5606 (addsi3_compareC): Delete pattern, change callers to use
5608 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
5609 reduce the number of alternatives and re-work type attribute handling.
5610 (addsi3_compare_op2): Clean up constraints to reduce the number of
5611 alternatives and re-work type attribute handling.
5612 (compare_addsi2_op0): Likewise.
5613 (compare_addsi2_op1): Likewise.
5615 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5617 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5618 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5619 for DImode operands.
5620 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5621 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5623 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5624 (arm_cmpdi_unsigned): Delete.
5626 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5628 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5629 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5630 unchanged only if that will be cheaper.
5631 (arm_select_cc_mode): Recognize a swapped comparison that will
5632 be regenerated using RSBS or RSCS. Relax restriction on selecting
5634 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5636 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5638 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5640 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5641 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5643 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5645 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5646 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5648 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5649 of EQ, NE, LT, GE, LTU and GEU.
5650 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5651 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5652 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5653 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5654 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5656 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5658 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5660 (cstoredi4): Similarly, but for operand 3.
5661 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5662 canonicalization of unsigned compares with a constant on Arm.
5663 Prefer using const+1 and adjusting the comparison over swapping the
5664 operands whenever the original constant was not valid.
5665 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5667 (arm_validize_comparison): Do not force invalid DImode operands to
5670 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5672 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5673 return CC_Zmode if comparing against a constant where one word is
5675 (arm_gen_compare_reg): Split DImode handling to ...
5676 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5677 against simple constants.
5678 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5680 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5682 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5683 (rsbsi3_carryin_shift_alt): Likewise.
5685 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5687 * config/arm/arm.md (negscc_borrow): New pattern.
5688 (mov_negscc): Don't split if the insn would match negscc_borrow.
5689 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5690 (thumb2_mov_negscc_strict_it): Likewise.
5692 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5694 * config/arm/arm.c (arm_insn_cost): New function.
5695 (TARGET_INSN_COST): Override default definition.
5697 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5699 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5702 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5704 * config/arm/arm.c (strip_carry_operation): New function.
5705 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5708 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5710 * config/arm/predicates.md (arm_carry_operation): New special
5712 * config/arm/iterators.md (LTUGEU): Delete iterator.
5713 (cnb): Delete code attribute.
5714 (optab): Delete ltu and geu elements.
5715 * config/arm/arm.md (addsi3_carryin): Renamed from
5716 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5717 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5718 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5719 (addsi3_carryin_clobercc): Similarly.
5720 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5723 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5725 * config/arm/arm.md (arm_subdi3): Delete insn.
5726 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5728 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5730 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5731 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5732 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5734 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5735 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5737 (subdi3): Rewrite to early-expand the sub-operations.
5738 (rsb_im_compare): New pattern.
5740 (negdi2_insn): Delete.
5741 (arm_negsi2): Correct type attribute to alu_imm.
5742 (negsi2_0compare): New insn pattern.
5743 (negsi2_carryin): New insn pattern.
5745 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5747 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5750 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5752 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5753 to match canonical form.
5755 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5757 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5758 (extend<mode>di2): Likewise.
5760 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5762 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5763 * config/arm/arm.c (arm_decompose_di_binop): New function.
5764 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5765 If not generating Thumb-1 code, decompose the operation into 32-bit
5767 * add0si_carryin_<optab>: New pattern.
5769 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5771 * arm.md (adddi3): Only accept register operands.
5772 (arm_adddi3): Convert to simple insn with no split. Do not accept
5774 (adddi_sesidi_di): Delete patern.
5775 (adddi_zesidi_di): Likewise.
5776 (uaddv<mode>4): Use LTU as condition for branch.
5777 (adddi3_compareV): Convert to simple insn with no split.
5778 (addsi3_compareV_upper): Delete pattern.
5779 (adddi3_compareC): Convert to simple insn with no split. Correct
5780 flags setting expression.
5781 (addsi3_compareC_upper): Delete pattern.
5782 (addsi3_compareC): Correct flags setting expression.
5783 (subdi3_compare1): Convert to simple insn with no split.
5784 (subsi3_carryin_compare): Delete pattern.
5785 (arm_subdi3): Convert to simple insn with no split.
5786 (subdi_zesidi): Delete pattern.
5787 (subdi_di_sesidi): Delete pattern.
5788 (subdi_zesidi_di): Delete pattern.
5789 (subdi_sesidi_di): Delete pattern.
5790 (subdi_zesidi_zesidi): Delete pattern.
5791 (negvdi3): Use s_register_operand.
5792 (negdi2_compare): Convert to simple insn with no split.
5793 (negdi2_insn): Likewise.
5794 (negsi2_carryin_compare): Delete pattern.
5795 (negdi_zero_extendsidi): Delete pattern.
5796 (arm_cmpdi_insn): Convert to simple insn with no split.
5797 (negdi2): Don't call gen_negdi2_neon.
5798 * config/arm/neon.md (adddi3_neon): Delete pattern.
5799 (subdi3_neon): Delete pattern.
5800 (negdi2_neon): Delete pattern.
5801 (splits for negdi2_neon): Delete splits.
5803 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5806 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5809 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5811 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5812 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5813 new multilib variants and new mappings.
5815 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5818 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5820 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5821 Richard Sandiford <richard.sandiford@arm.com>
5824 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5825 and define hashmap traits for it.
5826 (loop_vec_info::scalar_cond_masked_set): New member.
5827 (vect_record_loop_mask): Adjust prototype.
5828 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5830 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5831 vect_record_loop_mask.
5832 (vectorizable_live_operation): Likewise.
5833 (vect_record_loop_mask): New param scalar_mask. Add entry
5834 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5835 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5836 Pass it as last arg to vect_record_loop_mask.
5837 (vectorizable_call): Pass scalar_mask as last arg to
5838 vect_record_loop_mask.
5839 (vectorizable_store): Likewise.
5840 (vectorizable_load): Likewise.
5841 (vectorizable_condition): Check if another part of vectorized code
5842 applies loop_mask to condition or to it's inverse, and if yes,
5843 apply loop_mask to result of vector comparison.
5845 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5847 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5849 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5851 PR tree-optimization/92056
5852 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5853 before calling compute_builtin_object_size.
5855 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5858 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5859 (movdi_low_st): Delete.
5860 * config/rs6000/rs6000.c
5861 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5862 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5863 * config/rs6000/rs6000.md (movsi_low): Delete.
5865 2019-10-17 Jason Merrill <jason@redhat.com>
5867 * gimplify.h (get_initialized_tmp_var): Add default argument to
5869 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5870 NULL post_p argument.
5871 * targhooks (std_gimplify_va_arg_expr): Likewise.
5873 2019-10-17 Richard Biener <rguenther@suse.de>
5875 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5876 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5877 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5878 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5879 * tree-vect-loop.c (vect_is_simple_reduction): Set
5880 STMT_VINFO_REDUC_CODE.
5881 (vectorizable_reduction): Remove dead and redundant code, use
5882 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5884 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5886 Fix breakage introduced by r276985.
5888 * config/avr/avr.c (avr_option_override): Remove set of
5889 PARAM_ALLOW_STORE_DATA_RACES.
5890 * common/config/avr/avr-common.c (avr_option_optimization_table)
5891 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5893 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5895 * config/i386/i386.h (processor_costs): Add clear_ratio.
5896 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5897 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5898 of 6 and move_ratio in all cost models.
5900 2019-10-17 Richard Biener <rguenther@suse.de>
5902 * tree-vect-loop.c (check_reduction_path): Compute reduction
5904 (vect_is_simple_reduction): Remove special-case of single-stmt
5905 reduction path detection.
5907 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5909 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5911 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5913 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5914 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5915 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5916 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5917 New combine patterns.
5918 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5920 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5922 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5924 * tree-vrp.c (value_range_base::dump): Display +INF for both
5925 pointers and integers when appropriate.
5927 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5929 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5930 when to use versioning threshold.
5932 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5934 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5935 outlined code from ...
5936 (vect_analyze_loop_2): ... here.
5938 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5940 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5941 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5942 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5944 2019-10-17 Richard Biener <rguenther@suse.de>
5946 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5947 (vect_is_simple_reduction): Move all validity checks ...
5948 (vectorizable_reduction): ... here. Compute whether we
5949 need a fold-left reduction here.
5950 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5951 both overloads, check needs_fold_left_reduction_p directly.
5952 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5954 2019-10-17 Richard Biener <rguenther@suse.de>
5956 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5957 TARGET_MEM_REF creation.
5959 2019-10-17 Richard Biener <rguenther@suse.de>
5961 PR tree-optimization/92129
5962 * tree-vect-loop.c (vectorizable_reduction): Also fail
5963 on GIMPLE_SINGLE_RHS.
5965 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5967 PR tree-optimization/92056
5968 * tree-object-size.c (cond_expr_object_size): Return early if then_
5969 processing resulted in unknown size.
5971 PR tree-optimization/92115
5972 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5973 temporary if it could trap.
5975 2019-10-17 Richard Biener <rguenther@suse.de>
5978 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5979 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5981 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5983 * tree-ssa-strlen.c (maybe_invalidate): Use
5984 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5986 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5987 Jim Wilson <jimw@sifive.com>
5989 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5990 regs to SIBCALL_REGS.
5991 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5992 passing regs to SIBCALL_REGS.
5994 2019-10-16 Martin Sebor <msebor@redhat.com>
5996 PR tree-optimization/83821
5997 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5998 the length of a string when available.
5999 (handle_builtin_memset) Add argument.
6000 (handle_store, strlen_check_and_optimize_call): Same.
6001 (check_and_optimize_stmt): Same. Pass it to callees.
6003 2019-10-16 Martin Sebor <msebor@redhat.com>
6005 PR tree-optimization/91996
6006 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
6008 (compare_nonzero_chars): Add an overload.
6009 (count_nonzero_bytes): Add an argument. Call overload above.
6010 Handle non-constant lengths in some range.
6011 (handle_store): Add an argument.
6012 (check_and_optimize_stmt): Pass an argument to handle_store.
6014 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
6016 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
6018 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6020 * config/mips/mips.c (mips_expand_builtin_insn): Force the
6021 operands which correspond to the same input-output register to
6022 have the same pseudo assigned to them.
6024 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
6026 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
6028 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
6030 * config/aarch64/aarch64.c (aarch64_classify_symbol):
6031 Apply reasonable limit to symbol offsets.
6033 2019-10-16 Richard Biener <rguenther@suse.de>
6035 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
6036 (vect_is_simple_reduction): Delay checking to
6037 vectorizable_reduction and relax the checking.
6038 (vectorizable_reduction): Check we have a simple use. Check
6039 for bogus condition reductions.
6040 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
6041 are looking at the last stmt in a pattern sequence when
6042 filling in backedge PHI values.
6044 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
6045 Jiufu Guo <guojiufu@linux.ibm.com>
6048 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6049 the callee explicitly disables some isa_flags the caller is using.
6051 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6053 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
6055 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6057 * genmodes.c (mode_data::order): New field.
6058 (blank_mode): Update accordingly.
6059 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6060 (make_vector_modes): Likewise.
6061 (VECTOR_MODES): Update use accordingly.
6062 (cmp_modes): Sort by the new order field ahead of sorting by size.
6063 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6064 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6065 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6066 (aarch64_classify_vector_mode): Handle the new partial modes.
6067 (aarch64_vl_bytes): New function.
6068 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6069 when counting the number of registers in an SVE mode.
6070 (aarch64_class_max_nregs): Likewise.
6071 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6073 (aarch64_classify_address): Treat partial vectors analogously
6075 (aarch64_print_address_internal): Consolidate the printing of
6076 MUL VL addresses, using aarch64_vl_bytes as the number of
6077 bytes represented by "VL".
6078 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6080 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6082 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6083 rather than known_lt when choosing frame layouts.
6085 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6087 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6088 that all the adjustments add up to the full frame size.
6089 Use crtl->outgoing_args_size directly as the final adjustment
6092 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6094 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6095 "frame" reference instead of always referring directly to
6096 "cfun->machine->frame".
6098 2019-10-16 Richard Biener <rguenther@suse.de>
6100 PR tree-optimization/92119
6101 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6102 against missing bswap lhs.
6104 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6107 * poly-int.h (constant_lower_bound_with_limit): New function.
6108 (constant_upper_bound_with_limit): Likewise.
6109 * doc/poly-int.texi: Document them.
6110 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6111 into the worst-case INTEGER_CST bounds.
6113 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6116 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6117 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6118 * ipa-predicat.h (struct expr_eval_op): New struct.
6119 (expr_eval_ops): New typedef.
6120 (struct condition): Add type and param_ops fields, remove size field.
6121 (add_condition): Replace size parameter with type parameter, add
6122 param_ops parameter.
6123 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6124 (predicate::add_clause): Add comparisons on type and param_ops.
6125 (dump_condition): Add debug dump for param_ops.
6126 (remap_after_inlining): Adjust call arguments to add_condition.
6127 (add_condition): Replace size parameter with type parameter, add
6128 param_ops parameter. Unshare constant value used in conditions.
6129 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6130 parameter expressions using param_ops.
6131 (decompose_param_expr): New function.
6132 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6133 to replace call to unmodified_parm_or_parm_agg_item.
6134 (set_switch_stmt_execution_predicate): Likewise.
6135 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6137 (inline_read_section): Read param_ops from summary stream.
6138 (ipa_fn_summary_write): Write param_ops to summary stream.
6140 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6142 PR rtl-optimization/92107
6143 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6146 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6148 * config/darwin.c: Update description of fix and continue.
6150 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6152 * config/darwin.c (darwin_binds_local_p): Update to call
6153 default_binds_local_p_3 () directly. amend comments.
6155 2019-10-15 Richard Biener <rguenther@suse.de>
6157 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6158 (tree_is_indexable): Use it.
6159 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6160 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6161 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6163 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6165 * config/msp430/msp430.md (zero_extendqipsi2): New.
6166 (zero_extendqisi2): Optimize case where src register and base dst
6167 register are the same.
6168 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6169 (zero_extendpsisi2): Optimize r->m case.
6170 Add unnamed insn patterns to catch insns combine searches for when
6171 optimizing pointer manipulation.
6173 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6175 * config/msp430/msp430.md: Group zero_extend* insns together.
6177 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6179 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6181 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6183 (msp430_subreg): Likewise.
6184 (msp430_split_addsi): Likewise.
6185 (msp430_print_operand_addr): Likewise.
6186 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6187 (USE_STORE_POST_INCREMENT): Define.
6188 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6189 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6190 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6191 (msp430_general_dst_operand): New.
6192 (msp430_general_dst_nonv_operand): New.
6193 (msp430_nonsubreg_operand): Remove.
6194 (msp430_nonsubreg_dst_operand): New.
6195 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6196 of defunct msp430_nonsubreg_operand.
6197 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6199 2019-10-15 Richard Biener <rguenther@suse.de>
6201 PR tree-optimization/91929
6202 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6203 (get_or_alloc_expr_for_name): Initialize it.
6204 (get_or_alloc_expr_for_constant): Likewise.
6205 (phi_translate_1): Copy it.
6206 (create_expression_by_pieces): Use the original location
6207 of the expression for the inserted stmt.
6208 (compute_avail): Record the location of the stmt for the
6209 expressions created.
6211 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6213 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6214 before using tree_to_uhwi.
6216 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6218 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6220 2019-10-15 Richard Biener <rguenther@suse.de>
6222 PR tree-optimization/92094
6223 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6224 do not adjust the reduction definition def type.
6225 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6226 defines the latch argument of the PHI.
6228 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6231 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6232 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6233 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6234 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6235 _mm_maskz_roundscale_round_sd): New intrinsics.
6236 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6237 __builtin_ia32_rndscales?_mask_round builtins instead of
6238 __builtin_ia32_rndscales?_round.
6239 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6240 __builtin_ia32_rndscalesd_round): Remove.
6241 (__builtin_ia32_rndscaless_mask_round,
6242 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6243 * config/i386/sse.md
6244 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6245 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6246 ... this, adjust and add subst atrributes to make it maskable.
6248 2019-10-15 Richard Biener <rguenther@suse.de>
6251 * common.opt (fallow-store-data-races): New.
6252 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6253 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6254 * doc/invoke.texi (fallow-store-data-races): Document.
6255 (--param allow-store-data-races): Remove docs.
6256 * opts.c (default_options_table): Enable -fallow-store-data-races
6258 (default_options_optimization): Do not enable --param
6259 allow-store-data-races at -Ofast.
6260 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
6261 instead of PARAM_ALLOW_STORE_DATA_RACES.
6262 * tree-ssa-loop-im.c (execute_sm): Likewise.
6264 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6266 PR tree-optimization/92085
6267 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
6268 instead of calling it unconditionally after
6269 delete_dead_or_redundant_assignment and fix indentation.
6271 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6273 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
6275 (*fmsub<SDF:mode>4): Likewise.
6276 *fnmsub<SDF:mode>4): Likewise.
6277 (*fnmadd<SDF:mode>4): Likewise.
6279 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
6281 * doc/tree-ssa.texi: Update renamed macro name.
6283 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6285 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
6288 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
6290 * config/darwin.c: Use unsigned ints for the picbase label
6291 counters, initialise the vars explicitly.
6292 (update_pic_label_number_if_needed): Move a variable declaration
6293 to where it's needed.
6294 (machopic_output_function_base_name): Use a more strict checking
6295 assert, and and unsigned int for the picbase label counter.
6296 (machopic_get_function_picbase): Likewise.
6298 2019-10-14 Richard Biener <rguenther@suse.de>
6301 * dse.c (scan_insn): Use param max_active_local_stores.
6302 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6303 based on optimization level.
6304 * loop-invariant.c (move_loop_invariants): Adjust
6305 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
6306 * opts.c (default_options_optimization): Do not adjust
6307 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
6308 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
6310 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6312 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
6314 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6316 * config/arm/arm.c (arm_option_override): Don't override sched
6319 2019-10-14 Richard Biener <rguenther@suse.de>
6321 PR tree-optimization/92069
6322 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
6323 cycles do not set vect_nested_cycle on the latch definition.
6325 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
6327 * function-abi.h (expr_callee_abi): Declare.
6328 * function-abi.cc (expr_callee_abi): New function.
6330 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
6332 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
6334 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
6335 non-zero being represented as [1,MAX].
6337 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6339 * tree-sra.c (dump_access): Add missing braces.
6341 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6343 * config/darwin.c (machopic_indirection_name): Rework the
6344 function to emit linker-visible symbols only for indirections
6345 in the data section. Clean up the code and update comments.
6347 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6349 * config/darwin.c (machopic_indirect_data_reference): Remove
6352 2019-10-13 Nathan Sidwell <nathan@acm.org>
6354 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
6356 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6358 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
6361 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
6363 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
6364 so non-virutal are before virutals.
6365 (output_function): Avoid body modifications.
6367 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6369 * config/pa/pa.c (pa_output_call): Load descriptor address to register
6370 %r22. Load function address before global pointer.
6371 (pa_attr_length_indirect_call): Adjust length of inline versions of
6373 (pa_output_indirect_call): Remove fast inline version of $$dyncall
6374 before normal cases. Update inline $$dyncall sequences to preserve
6375 function descriptor address in register %r22.
6376 (TRAMPOLINE_CODE_SIZE): Adjust.
6377 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
6378 register %r22 contains trampoline address.
6379 (pa_trampoline_init): Adjust offsets.
6380 (pa_trampoline_adjust_address): Likewise.
6381 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
6383 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6386 * config/darwin.c (machopic_indirection): New field to flag
6387 non-lazy-symbol-pointers in the data section.
6388 (machopic_indirection_name): Compute if an indirection should
6389 appear in the data section.
6390 (machopic_output_data_section_indirection): New callback split
6391 from machopic_output_indirection.
6392 (machopic_output_stub_indirection): Likewise.
6393 (machopic_output_indirection): Retain the code for non-lazy
6394 symbol pointers in their regular section.
6395 (machopic_finish): Use the new callbacks to order the indirection
6398 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6400 * config/darwin-protos.h (machopic_finish): Delete.
6401 * config/darwin.c (machopic_finish): Make static.
6403 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6405 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
6406 sections when building kernel extension code.
6408 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
6410 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
6413 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6415 * config/pa/pa.c (pa_option_override): Remove trailing comma
6418 2019-10-12 Jakub Jelinek <jakub@redhat.com>
6421 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
6422 <case VEC_COND_EXPR>: Return false with *handled = false.
6423 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
6424 recursing on the first operand.
6425 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6426 instead of tree_could_trap_p.
6427 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6429 2019-10-11 Jim Wilson <jimw@sifive.com>
6431 PR rtl-optimization/91860
6432 * combine.c (subst): If new_rtx is a constant, also check for
6433 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6435 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6437 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6438 INTVAL when calling store_bit_field.
6440 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6442 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6445 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6447 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6448 vectorizable_live_operation.
6449 (vectorizable_live_operation): Adjust parameters.
6450 * tree-vect-stmts.c (vect_init_vector,
6451 vect_gen_widened_results_half): Fix typo in function comment.
6452 (can_vectorize_live_stmts): Adjust function comment.
6453 Adjust parameters. Adjust call to vectorizable_live_operation.
6454 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6455 (vect_transform_stmt): Adjust function comment. Adjust call to
6456 can_vectorize_live_stmts.
6457 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6459 2019-10-11 Richard Biener <rguenther@suse.de>
6461 PR tree-optimization/90883
6462 PR tree-optimization/91091
6463 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6464 alias-sets both for recording VN table entries and continuing
6465 walking after translating through copies. Handle same-sized
6466 reads from SSA names by returning the plain SSA name.
6467 (eliminate_dom_walker::eliminate_stmt): Properly handle
6468 non-size precision stores in redundant store elimination.
6470 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6472 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
6473 (ggc_collect): Dump later to not interfere with release_page dump.
6474 (ggc_trim): New function.
6475 * ggc-none.c (ggc_trim): New.
6476 * ggc.h (ggc_trim): Declare.
6478 2019-10-11 Richard Biener <rguenther@suse.de>
6480 PR tree-optimization/92066
6481 PR tree-optimization/92046
6482 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6483 Fix bogus cost model check.
6485 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6487 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
6488 (LANG_HOOKS_DECLS): Add it.
6489 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
6490 update comment for omp_is_optional_argument.
6491 * omp-general.c (omp_is_allocatable_or_ptr): New.
6492 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
6493 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
6494 Fortran's optional arguments and allocatable/pointer scalars
6495 with use_device_addr.
6497 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
6500 * config/s390/2827.md: Add new opcodes.
6501 * config/s390/2964.md: Likewise.
6502 * config/s390/3906.md: Likewise.
6503 * config/s390/8561.md: Likewise.
6504 * config/s390/s390-builtins.def (s390_vfchesb): Use
6505 the new vec_cmpgev4sf_quiet_nocc.
6506 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
6507 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
6508 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
6509 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
6510 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
6511 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
6512 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
6513 * config/s390/s390-modes.def (CCSFPS): New mode.
6514 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
6515 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
6516 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
6517 (s390_expand_vec_compare): Use non-signaling patterns where
6519 (s390_reverse_condition): Support CCSFPS.
6520 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
6521 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
6522 (asm_fcmp_op): Likewise.
6523 (*smaxv2df3_vx): Use pattern for quiet comparison.
6524 (*sminv2df3_vx): Likewise.
6525 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
6526 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
6527 (vec_cmpgt<mode>_quiet_nocc): Likewise.
6528 (vec_cmplt<mode>_quiet_nocc): New expander.
6529 (vec_cmpge<mode>_quiet_nocc): New pattern.
6530 (vec_cmple<mode>_quiet_nocc): New expander.
6531 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
6532 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
6533 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
6534 (*vec_cmpge<mode>_signaling_nocc): Likewise.
6535 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
6536 (vec_cmpungt<mode>): New expander.
6537 (vec_cmpunge<mode>): Likewise.
6538 (vec_cmpuneq<mode>): Use quiet patterns.
6539 (vec_cmpltgt<mode>): Allow only on z14+.
6540 (vec_cmpordered<mode>): Use quiet patterns.
6541 (vec_cmpunordered<mode>): Likewise.
6542 (VEC_CMP_EXPAND): Add ungt and unge.
6544 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6546 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
6548 * lto-streamer-out.c: Include tree-dfa.h.
6549 (output_cfg): Do not use cfun.
6550 (lto_prepare_function_for_streaming): New.
6551 (output_function): Do not push cfun; do not initialize loop optimizer.
6552 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
6553 * passes.c (ipa_write_summaries): Use it.
6554 (ipa_write_optimization_summaries): Do not modify bodies.
6555 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
6556 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
6557 * tree-ssa-dse.c (pass_dse::execute): Update use of
6558 renumber_gimple_stmt_uids.
6559 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
6561 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
6563 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6564 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
6566 2019-10-10 Joseph Myers <joseph@codesourcery.com>
6568 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
6570 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
6571 Also define DFP macros for these conditions.
6572 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
6573 DEC128_SUBNORMAL_MIN): Do not define.
6574 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
6575 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
6577 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
6578 Sandra Loosemore <sandra@codesourcery.com>
6581 * doc/lto.texi (IPA): Reference to the IPA passes.
6582 * doc/passes.texi (Pass manager): Add node IPA passes and
6583 description for each IPA pass.
6585 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6587 * ipa-reference.c: Do not include splay-tree.h
6588 (reference_vars_to_consider): Turn to hash map.
6589 (get_static_name, ipa_init, analyze_function, propagate,
6590 stream_out_bitmap, ipa_reference_write_optimization_summary,
6591 ipa_reference_write_optimization_summary): Update.
6593 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6595 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
6597 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
6599 * config/darwin.c: Lookup Objective C metadata and force indirection
6602 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
6604 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
6606 (mem_operand_gpr): Add check for prefixed addresses.
6607 (mem_operand_ds_form): Add check for prefixed addresses.
6608 (rs6000_legitimate_offset_address_p): If we support prefixed
6609 addresses, check for a 34-bit offset instead of 16-bit.
6610 (rs6000_legitimate_address_p): Add check for prefixed addresses.
6611 Do not allow load/store with update if the address is prefixed.
6612 (rs6000_mode_dependent_address): If we support prefixed
6613 addresses, check for a 34-bit offset instead of 16-bit.
6615 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6618 * config/s390/vector.md (vcond_comparison_operator): New
6620 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6622 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6625 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6627 * configure.ac (--with-documentation-root-url): New option.
6628 * configure: Regenerate.
6629 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6630 option URL, add it as a new string field of the diagnostic option.
6631 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6632 (print_option_information): If get_option_url is non-NULL, call
6633 it, and if the result is non-NULL, potentially emit an escape
6634 sequence to markup the option text with the resulting URL.
6635 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6636 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6637 example of JSON output.
6638 * opts-diagnostic.h (get_option_url): New decl.
6639 * opts.c (get_option_url): New function.
6640 * toplev.c (general_init): Initialize the get_option_url callback.
6642 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6645 * common.opt (fdiagnostics-urls=): New option.
6646 (diagnostic-url.h): Add SourceInclude.
6647 (diagnostic_url_rule): New enum.
6648 * diagnostic-color.c: Include "diagnostic-url.h".
6649 (diagnostic_urls_enabled_p): New function.
6650 * diagnostic-url.h: New file.
6651 * diagnostic.c: Include "diagnostic-url.h".
6652 (diagnostic_urls_init): New function.
6653 * diagnostic.h (diagnostic_urls_init): New decl.
6654 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6655 -fdiagnostics-urls to the list.
6656 (-fdiagnostics-urls): New option.
6657 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6658 (driver::global_initializations): Call diagnostic_urls_init.
6659 * opts-global.c (init_options_once): Likewise.
6660 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6661 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6663 (pp_begin_url): New function.
6664 (pp_end_url): New function.
6665 (selftest::test_urls): New selftest.
6666 (selftest::pretty_print_c_tests): Call it.
6667 * pretty-print.h (pretty_printer::show_urls): New field.
6668 (pp_begin_url): New decl.
6669 (pp_end_url): New decl.
6671 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6674 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6676 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6679 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6680 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6681 also for TARGET_FPU_SH4_300.
6682 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6684 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6685 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6686 (*negsf2_i): Split into ...
6687 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6688 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6689 (**abssf2_i): Split into ...
6690 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6691 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6692 (*negdf2_i): Split into ...
6693 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6694 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6695 (**abssf2_i): Split into ...
6696 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6698 2019-10-10 Richard Biener <rguenther@suse.de>
6701 * opts.c (finish_options): Do not influence global --params
6702 from options that are adjustable per function.
6703 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6704 Apply --param adjustment based on active cost-model.
6705 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6706 further store-sinking when vectorization or if-conversion
6709 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6712 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6713 rather than ggc_alloc_cleared to alloc symbol table.
6714 * toplev.c (general_init): Likewise.
6715 * cgraph.h (symbol_table): Explicitly construct every field.
6717 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6719 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6721 * config.gcc: Add z15 as option for --with-arch and --with-tune
6723 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6724 error reporting for unsupported builtins.
6725 * config/s390/s390-opts.h (enum processor_type): Rename
6726 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6727 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6728 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6730 * config/s390/s390-builtins.def: Likewise.
6731 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6732 (s390_expand_builtin): Add missing check for unsupported builtins.
6733 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6734 (s390_rtx_costs): Likewise.
6735 (s390_get_sched_attrmask): Rename arch13 to z15.
6736 (s390_get_unit_mask): Likewise.
6737 (s390_is_fpd): Likewise.
6738 (s390_is_fxd): Likewise.
6739 * config/s390/s390.h (enum processor_flags): Likewise.
6740 * config/s390/s390.md: Likewise.
6741 * config/s390/vector.md: Likewise.
6742 * config/s390/vx-builtins.md: Likewise.
6743 * config/s390/s390.opt: Add z15 to processor_type value.
6745 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6748 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6750 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6751 ("split_stack_data", "split_stack_call")
6752 ("split_stack_call_<mode>", "split_stack_cond_call")
6753 ("split_stack_cond_call_<mode>"): Remove.
6754 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6756 * config/s390/s390.c (s390_output_split_stack_data): New function.
6757 (s390_expand_split_stack_prologue): Use the merged expander.
6759 2019-10-09 Martin Sebor <msebor@redhat.com>
6761 PR tree-optimization/90879
6762 * builtins.c (check_access): Avoid using maxbound when null.
6763 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6764 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6765 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6767 (get_range_strlen): Overwrite initial maxbound when non-null.
6768 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6770 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6771 (used_only_for_zero_equality): New function.
6772 (handle_builtin_memcmp): Call it.
6773 (determine_min_objsize): Return an integer instead of tree.
6774 (get_len_or_size, strxcmp_eqz_result): New functions.
6775 (maybe_warn_pointless_strcmp): New function.
6776 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6777 between a longer string and a smaller array.
6778 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6780 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6782 * config/darwin.c (darwin_override_options): Make the check for
6783 Objective-C ABI version more specific for 64bit code.
6785 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6787 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6788 indicate that the new symbol is an indirection.
6789 (machopic_indirect_call_target): Likewise.
6790 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6791 (MACHO_SYMBOL_INDIRECTION_P): New.
6792 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6794 2019-10-08 Jason Merrill <jason@redhat.com>
6796 * doc/invoke.texi: Document -fconcepts-ts.
6798 2019-10-09 Richard Biener <rguenther@suse.de>
6800 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6801 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6803 2019-10-08 Richard Biener <rguenther@suse.de>
6805 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6806 (_stmt_vec_info::force_single_cycle): Likewise.
6807 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6808 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6809 * tree-vect-loop.c (vectorizable_reduction): Set
6810 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6811 (vect_transform_reduction): Use them to remove redundant code.
6812 (vect_transform_cycle_phi): Likewise.
6814 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6816 PR tree-optimization/90836
6817 * match.pd (popcount): New pattern.
6819 2019-10-08 Martin Sebor <msebor@redhat.com>
6823 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6824 again once nbytes has been set. Set the access size when not yet set.
6826 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6828 * config/darwin.c (machopic_select_section): Remove dead code for
6829 old Objective-C section selection method, replace with unreachable.
6831 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6833 * config/darwin.c (machopic_indirect_data_reference): Check for
6834 required indirections before making direct access to defined
6836 (machopic_output_indirection): Place the indirected pointes for
6837 required indirections into the non-lazy symbol pointers section.
6838 (darwin_encode_section_info):
6839 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6840 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6842 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6845 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6846 instead of ALL_SSE_REG to check if function call preserves some
6847 256-bit SSE registers.
6849 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6851 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6852 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6853 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6855 2019-10-08 Richard Biener <rguenther@suse.de>
6857 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6858 (_stmt_vec_info::is_reduc_info): Add.
6859 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6860 (vectorizable_condition): Remove.
6861 (vectorizable_shift): Likewise.
6862 (vectorizable_reduction): Adjust.
6863 (info_for_reduction): New.
6864 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6865 (vect_analyze_scalar_cycles_1): ... here.
6866 (vect_analyze_loop_operations): Adjust.
6867 (needs_fold_left_reduction_p): Simplify for single caller.
6868 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6869 for nested cycles not part of double reductions.
6870 (vect_model_reduction_cost): Pass in the reduction type.
6871 (info_for_reduction): New function.
6872 (vect_create_epilog_for_reduction): Use it, access reduction
6873 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6874 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6875 (vectorize_fold_left_reduction): Remove pointless assert.
6876 (vectorizable_reduction): Analyze the full reduction when
6877 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6878 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6879 stmt code-generation to vectorizable_* in most cases. Verify
6880 code-generation only for cases handled by
6881 vect_transform_reductuon.
6882 (vect_transform_reduction): Use info_for_reduction to get at
6883 reduction meta. Simplify.
6884 (vect_transform_cycle_phi): Likewise.
6885 (vectorizable_live_operation): Likewise.
6886 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6887 at the PHI node for STMT_VINFO_REDUC_TYPE.
6888 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6889 longer necessary code.
6890 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6891 (vectorizable_condition): Likewise. Get at reduction related
6892 info via info_for_reduction.
6893 (vect_analyze_stmt): Adjust.
6894 (vect_transform_stmt): Likewise.
6895 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6896 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6898 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6900 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6901 -fno-fp-int-builtin-inexact default for C2X.
6903 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6904 Richard Biener <rguenther@suse.de>
6906 PR tree-optimization/91532
6907 * tree-if-conv.c: Include tree-ssa-dse.h.
6908 (ifcvt_local_dce): Change param from bb to loop,
6909 and call dse_classify_store.
6910 (tree_if_conversion): Pass loop instead of loop->header as arg
6912 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6913 (delete_dead_or_redundant_assignment): Remove static qualifier from
6914 declaration, and add prototype in tree-ssa-dse.h.
6915 (dse_store_status): Move to tree-ssa-dse.h.
6916 (dse_classify_store): Remove static qualifier and add new tree param
6917 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6918 * tree-ssa-dse.h: New header.
6920 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6922 * config/darwin.c (machopic_output_indirection): Don't put
6923 hidden symbol indirections into the .data section, use the
6924 non-lazy symbol pointers section as normal.
6925 (darwin_encode_section_info): Record if a symbol is hidden.
6926 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6927 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6929 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6931 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6932 predicates instead of accessing bits directly.
6933 (machopic_indirect_call_target): Likewise.
6934 (machopic_output_indirection): Likewise.
6935 (darwin_encode_section_info): Improve description. Use renamed
6936 symbol flags. Use predicate macros for variables and functions.
6938 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6939 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6940 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6941 (MACHO_SYMBOL_VARIABLE_P): New.
6942 (MACHO_SYMBOL_DEFINED_P):New.
6943 (MACHO_SYMBOL_STATIC_P): New.
6944 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6945 (SYMBOL_FLAG_SUBT_DEP): New.
6946 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6948 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6950 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6951 (msp430_expand_epilogue): Likewise.
6952 * config/msp430/predicates.md: Likewise.
6953 * config/msp430/msp430.md: Likewise.
6954 Replace blocks of 8 spaces with tabs.
6956 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6958 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6959 * config/msp430/msp430.c (msp430_split_addsi): New.
6960 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6961 a block of C code for splitting addsi.
6963 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6965 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6966 ix86_expand_rounddf_32): Reorder functions.
6967 * config/i386/i386-protos.h: Update.
6969 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6971 * config.in: Regenerate.
6972 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6973 Add new "Yx" constraint.
6974 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6976 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6978 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6979 code/data region to be selected in the small memory model.
6980 (msp430_section_attr): Don't warn if the "section" and "lower"
6981 attributes are used together.
6982 (msp430_handle_generic_attribute): Likewise.
6983 (msp430_var_in_low_mem): New function.
6984 (TARGET_ENCODE_SECTION_INFO): Define.
6985 (msp430_encode_section_info): New function.
6986 (gen_prefix): Return early in the small memory model.
6987 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6988 ".lower" prefix if -m{code,data}-region=lower have been passed.
6989 (msp430_output_aligned_decl_common): Emit common symbols when
6990 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6992 (TARGET_ASM_FILE_END): Define.
6993 (msp430_file_end): New function.
6994 (msp430_do_not_relax_short_jumps): Allow relaxation when
6995 function will be in the lower region.
6996 (msp430_op_not_in_high_mem): New function.
6997 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6998 the 'X' operand selector.
6999 Clarify comment for 'x' operand selector.
7000 * config/msp430/msp430.h (LINK_SPEC): Propagate
7001 -m{code,data}-region to the linker via spec function
7002 msp430_propagate_region_opt.
7003 (msp430_propagate_region_opt): New prototype.
7004 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
7005 (SYMBOL_FLAG_LOW_MEM): Define.
7006 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
7008 (zero_extendqihi2): Fix operand number used by "%X" selector.
7009 (zero_extendqisi2): Likewise.
7010 (zero_extendhisi2): Likewise.
7011 (movqi): Use "Yx" constraint in place of "%X" operand selector.
7016 (addhi3_cy): Likewise.
7017 (addchi4_cy): Likewise.
7021 (bic<mode>3): Likewise.
7022 (and<mode>3): Likewise.
7023 (ior<mode>3): Likewise.
7024 (xor<mode>3): Likewise.
7025 (slli_1): Add missing "%X" operand selector.
7033 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
7035 (cbranchhi4_real): Likewise.
7036 (cbranchqi4_reversed): Likewise.
7037 (cbranchhi4_reversed): Likewise.
7038 (*bitbranch<mode>4): Likewise.
7039 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
7040 * config/msp430/msp430.opt (mcode-region=): Set default to
7041 MSP430_REGION_LOWER. Improve docstring.
7042 (mdata-region=): Likewise.
7043 (muse-lower-region-prefix): New option.
7044 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
7045 mdata-region=none multilib.
7046 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
7047 mdata-region=none multilib.
7048 MULTILIB_EXCEPTIONS: Remove.
7049 MULTILIB_REQUIRED: Define.
7050 * configure: Regenerate.
7051 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
7052 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
7053 * doc/extend.texi: Clarify comment for {upper,lower,either}
7054 function attributes.
7055 Add separate description for "lower" variable attribute.
7057 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7060 * optabs-tree.c (vcond_icode_p): New function.
7061 (vcond_eq_icode_p): Likewise.
7062 (expand_vec_cond_expr_p): Use vcond_icode_p and
7064 * optabs.c (can_vcond_compare_p): New function.
7065 * optabs.h (can_vcond_compare_p): Likewise.
7067 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7070 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7071 caller passes a non-trapping condition.
7072 (is_gimple_condexpr): Allow trapping conditions.
7073 (is_gimple_condexpr_1): New helper function.
7074 (is_gimple_condexpr_for_cond): New function, acts like old
7076 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7077 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7078 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7079 * gimplify.c (gimplify_cond_expr): Use
7080 is_gimple_condexpr_for_cond.
7081 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7082 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7084 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7085 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7086 is_gimple_condexpr_for_cond, remove pointless tmp check
7087 (forward_propagate_into_cond): Remove pointless tmp check.
7089 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7091 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7092 match that of other gsi_next_* functions. Adjust the comment.
7093 (gsi_start_nonvirtual_phis): New function.
7094 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7095 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7097 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7099 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7100 setjmp situation here. Fix a verb's ending: "the exact variables or
7101 elements for which there are warnings depends" -> "... depend".
7103 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7105 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7107 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7109 * ipa-prop.c (ipa_vr::nonzero_p): New.
7110 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7112 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7113 * tree-vrp.c (range_has_numeric_bounds_p): New.
7114 (range_int_cst_p): Use range_has_numeric_bounds_p.
7115 (get_range_op_handler): New.
7116 (supported_types_p): New.
7117 (defined_ranges_p): New.
7118 (drop_undefines_to_varying): New.
7119 (range_fold_binary_symbolics_p): New.
7120 (range_fold_unary_symbolics_p): New.
7121 (range_fold_unary_expr): Extract out into above functions.
7122 (range_fold_binary_expr): Same.
7123 (value_range_base::normalize_addresses): New.
7124 (value_range_base::normalize_symbolics): Normalize addresses.
7125 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7127 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7129 * tree-vrp.c (value_range_base::singleton_p): Use
7130 value_range_base::num_pairs instead of vrp_val_is* to check
7131 if a range has one sub-range.
7133 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7135 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7136 DEF is not a true earlyclobber but is tied to a specific input
7137 operand, and so is effectively earlyclobber wrt inputs that have
7139 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7141 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7143 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7144 (pod_mode): Mark operators likewise.
7145 (scalar_int_mode): Mark non-default constructors and
7146 operators with CONSTEXPR.
7147 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7148 (fixed_size_mode): Likewise.
7150 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7153 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7154 and wrap the unspec_volatile in a parallel.
7155 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7156 the unspec_volatile.
7157 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7158 unspec_volatile to be wrapped in a parallel.
7159 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7160 (ix86_add_reg_usage_to_vzerouppers): New functions.
7161 (rest_of_handle_insert_vzeroupper): Use them to add register
7162 usage information to the vzeroupper instructions.
7164 2019-10-07 Richard Biener <rguenther@suse.de>
7166 PR tree-optimization/91975
7167 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7170 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7172 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7173 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7175 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7177 * config/darwin.c (darwin_override_options): Adjust objective-c
7178 ABI version error messages to avoid punctuation and contracted
7181 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7183 * ipa-inline.c: Fix type; compute size rather than self_size
7184 for size of caller function.
7186 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7189 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7190 choose const_data section for constants with relocations.
7191 (machopic_select_section): Pass relocation flag to
7192 darwin_rodata_section ().
7194 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7196 PR tree-optimization/91734
7197 * generic-match-head.c: Include fold-const-call.h.
7198 * match.pd (sqrt(x) cmp c): Check the boundary value and
7199 in case inexact computation of c*c affects comparison of the boundary,
7200 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7201 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7202 for -frounding-math. For c2, try the next smaller or larger floating
7203 point constant depending on comparison code and if it has the same
7204 sqrt as c2, use it instead of c2.
7206 2019-10-04 Martin Sebor <msebor@redhat.com>
7209 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7210 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7211 uninitialized objects.
7213 2019-10-04 Martin Sebor <msebor@redhat.com>
7215 * builtins.c (compute_objsize): Add an argument.
7216 * tree-object-size.c (addr_object_size): Same.
7217 (compute_builtin_object_size): Same.
7218 * tree-object-size.h (compute_builtin_object): Same.
7220 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7222 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7224 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7226 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7228 2019-10-04 Martin Jambor <mjambor@suse.cz>
7230 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7231 fntype when switching to calling memcpy instead of memset.
7233 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7235 * hash-table.h (hash_table::empty_slow): Don't assign
7236 size_t values to int variables.
7238 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7240 * expr.c (convert_mode_scalar): Remove shadowing local var.
7241 (emit_block_move): Rename local vars.
7242 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7243 (emit_push_insn): Rename local vars.
7244 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7245 shadowing local vars.
7246 (store_constructor): Remove shadowing local vars. Rename local var.
7247 (store_field, expand_cond_expr_using_cmove,
7248 expand_expr_real_2): Remove shadowing local vars.
7249 (expand_expr_real_1,
7250 do_store_flag): Remove shadowing local vars. Rename local vars.
7252 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7254 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7256 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7258 * genmatch.c (commutate): Rename local var.
7259 (lower_cond): Reuse local var.
7260 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
7261 dt_operand::gen, dt_operand::gen_gimple_expr,
7262 dt_simplify::gen): Add a param. Rename generated vars.
7263 (decision_tree::insert_operand,
7264 (capture_info::walk_match, capture_info::walk_result,
7265 capture_info::walk_c_expr): Rename local vars.
7266 (expr::gen_transform): Rename generated vars.
7267 Use snprintf. Rename local vars.
7268 (capture::gen_transform, dt_operand::get_name,
7269 dt_operand::gen_opname): Rename generated vars.
7270 (write_predicate): Adjust call to gen_kids.
7271 (parser::get_internal_capture_id): Rename generated vars.
7272 (parser::parse_expr): Rename local vars.
7273 (parser::parse_if): Remove local var.
7274 (parser::parse_pattern, add_operator): Rename local vars.
7276 2019-10-04 Joseph Myers <joseph@codesourcery.com>
7278 * builtins.def (DEF_C2X_BUILTIN): New macro.
7279 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
7280 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
7281 (strndup): Use DEF_C2X_BUILTIN.
7282 * coretypes.h (enum function_class): Add function_c2x_misc.
7284 2019-10-04 Maya Rashish <coypu@sdf.org>
7286 * ira-color.c (update_costs_from_allocno): Call
7287 ira_init_register_move_cost_if_necessary.
7289 2019-10-04 Jeff Law <law@redhat.com>
7291 * config/h8300/h8300.md (cpymemsi): Disable.
7292 (movmd, movmd_internal_<mode>, movstr, movsd):
7293 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
7294 (movmd splitter, movsd splitter): Likewise.
7296 * range-op.cc (range_tests): Avoid two tests when ints and
7297 shorts are the same size.
7299 2019-10-04 Richard Biener <rguenther@suse.de>
7302 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
7305 2019-10-04 Richard Biener <rguenther@suse.de>
7307 PR tree-optimization/91982
7308 * tree-vect-loop.c (vectorizable_live_operation): Also guard
7309 against EXTRACT_LAST_REDUCTION.
7310 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
7312 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
7314 * range-op.o (value_range_from_overflowed_bounds): Rename from
7315 adjust_overflow_bound.
7316 (value_range_with_overflow): Rename from
7317 create_range_with_overflow.
7318 (create_possibly_reversed_range): Adjusted for above renames.
7319 (operator_*::wi_fold): Same.
7320 (cross_product_operator::wi_cross_productor): Same.
7322 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7324 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
7325 -Wshadow=compatible-local): Fix description.
7326 Add an example where -Wshadow=compatible-local does not
7329 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
7331 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
7333 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
7334 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
7336 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
7338 * expr.c (emit_block_move_hints): Slightly cleaner fix to
7339 can_move_by_pieces issue.
7341 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
7344 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
7345 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
7346 is available and the user has not set one on the command line.
7348 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7351 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
7352 instead of REGNO equality check on addr.reg.
7354 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
7356 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
7357 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
7358 * doc/invoke.texi (inline-heuristics-hint-percent,
7359 inline-heuristics-hint-percent-O2): Document.
7360 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
7362 (can_inline_edge_by_limits_p): Use it.
7364 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
7366 * config/arm/arm.c (arm_print_value): Use real_to_decimal
7367 to print CONST_DOUBLEs.
7369 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
7371 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
7372 * ipa-prop.c (ipcp_free_transformation_sum): New function.
7373 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
7375 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
7377 * Makefile.in (OBJS): Add range.o and range-op.o.
7378 Remove wide-int-range.o.
7379 * function-tests.c (test_ranges): New.
7380 (function_tests_c_tests): Call test_ranges.
7381 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
7382 range_fold_unary_expr instead of extract_range_from_unary_expr.
7383 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7384 * range-op.cc: New file.
7385 * range-op.h: New file.
7386 * range.cc: New file.
7387 * range.h: New file.
7388 * selftest.h (range_tests): New prototype.
7389 * ssa.h: Include range.h.
7390 * tree-vrp.c (value_range_base::value_range_base): New
7392 (value_range_base::singleton_p): Do not call
7393 ranges_from_anti_range until sure we will need to.
7394 (value_range_base::type): Rename gcc_assert to
7395 gcc_checking_assert.
7396 (vrp_val_is_max): New argument.
7397 (vrp_val_is_min): Same.
7398 (wide_int_range_set_zero_nonzero_bits): Move from
7400 (extract_range_into_wide_ints): Remove.
7401 (extract_range_from_multiplicative_op): Remove.
7402 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
7403 from extract_range_from_binary_expr.
7404 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
7405 from extract_range_from_binary_expr.
7406 (extract_range_from_binary_expr): Remove.
7407 (normalize_for_range_ops): New.
7408 (range_fold_binary_expr): New.
7409 (range_fold_unary_expr): New.
7410 (value_range_base::num_pairs): New.
7411 (value_range_base::lower_bound): New.
7412 (value_range_base::upper_bound): New.
7413 (value_range_base::upper_bound): New.
7414 (value_range_base::contains_p): New.
7415 (value_range_base::invert): New.
7416 (value_range_base::union_): New.
7417 (value_range_base::intersect): New.
7418 (range_compatible_p): New.
7419 (value_range_base::operator==): New.
7420 (determine_value_range_1): Call range_fold_*expr instead of
7421 extract_range_from_*expr.
7422 * tree-vrp.h (class value_range_base): Add new constructors.
7423 Add methods for union_, intersect, operator==, contains_p,
7424 num_pairs, lower_bound, upper_bound, invert.
7425 (vrp_val_is_min): Add handle_pointers argument.
7426 (vrp_val_is_max): Same.
7427 (extract_range_from_unary_expr): Remove.
7428 (extract_range_from_binary_expr): Remove.
7429 (range_fold_unary_expr): New.
7430 (range_fold_binary_expr): New.
7431 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7432 range_fold_binary_expr instead of extract_range_from_binary_expr.
7433 (vr_values::extract_range_basic): Same.
7434 (vr_values::extract_range_from_unary_expr): Call
7435 range_fold_unary_expr instead of extract_range_from_unary_expr.
7436 * wide-int-range.cc: Remove.
7437 * wide-int-range.h: Remove.
7439 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7441 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7442 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7443 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7444 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7447 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7449 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7450 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7451 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7452 * glimits.h: Likewise.
7454 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7456 PR rtl-optimization/91976
7457 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7458 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7459 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7461 2019-10-02 Martin Sebor <msebor@redhat.com>
7463 PR tree-optimization/80936
7464 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7466 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7468 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7469 instead of reg_class_contents[ALL_REGS].
7471 2019-09-30 Jason Merrill <jason@redhat.com>
7473 Add some hash_map_safe_* functions like vec_safe_*.
7474 * hash-map.h (default_hash_map_size): New variable.
7475 (create_ggc): Use it as default argument.
7476 (hash_map_maybe_create, hash_map_safe_get)
7477 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
7479 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
7481 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
7482 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
7483 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
7484 (can_inline_edge_by_limits_p): Use it.
7485 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
7486 (want_inline_small_function_p): Use O2 bounds.
7487 (edge_badness): LIkewise.
7488 * opts.c (default_options): Add OPT_finline_functions.
7489 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
7490 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
7492 * doc/invoke.texi (-finline-functions): Update documentation.
7493 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
7494 inline-min-speedup-O2): Document.
7495 (early-inlining-insns-O2): Simplify docs.
7497 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
7499 PR rtl-optimization/87047
7500 * ifcvt.c (average_cost): New static function. Use it...
7501 (noce_process_if_block): ... here.
7503 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7505 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
7506 * config/rs6000/rs6000-string.c (expand_block_move): Add
7508 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
7509 (cpymemsi): Add might_overlap parm to expand_block_move() call.
7511 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7513 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
7514 (expand_builtin_memcpy): Use might_overlap parm.
7515 (expand_builtin_mempcpy_args): Use might_overlap parm.
7516 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
7517 (expand_builtin_memory_copy_args): Add might_overlap parm.
7518 * expr.c (emit_block_move_via_cpymem): Rename to
7519 emit_block_move_via_pattern, add might_overlap parm, use cpymem
7520 or movmem optab as appropriate.
7521 (emit_block_move_hints): Add might_overlap parm, do the right
7522 thing for might_overlap==true.
7523 * expr.h (emit_block_move_hints): Update prototype.
7525 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
7527 * tree-eh.h (unsplit_eh_edges): Declare.
7528 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
7529 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
7530 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
7531 (struct store_immediate_info): Add lp_nr field.
7532 (store_immediate_info::store_immediate_info): Add NR2 parameter and
7533 initialize lp_nr with it.
7534 (struct merged_store_group): Add lp_nr and only_constants fields.
7535 (merged_store_group::merged_store_group): Initialize them.
7536 (merged_store_group::can_be_merged_into): Deal with them.
7537 (pass_store_merging): Rename terminate_and_release_chain into
7538 terminate_and_process_chain.
7539 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
7540 renaming and remove useless assertions.
7541 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
7542 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
7543 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
7544 instead of always recomputing it and compare lp_nr.
7545 (imm_store_chain_info::output_merged_store): If the group is in an
7546 active EH region, register new stores if they can throw. Moreover,
7547 if the insertion has created new basic blocks, adjust the PHI nodes
7548 of the post landing pad.
7549 (imm_store_chain_info::output_merged_stores): If the original stores
7550 are in an active EH region, deregister them.
7551 (lhs_valid_for_store_merging_p): Prettify.
7552 (adjust_bit_pos): New function extracted from...
7553 (mem_valid_for_store_merging): ...here. Use it for the base address
7554 and also for the offset if it is the addition of a constant.
7555 (lp_nr_for_store): New function.
7556 (pass_store_merging::process_store): Change return type to bool.
7557 Call lp_nr_for_store to initialize the store info. Propagate the
7558 return status of various called functions to the return value.
7559 (store_valid_for_store_merging_p): New predicate.
7560 (enum basic_block_status): New enumeration.
7561 (get_status_for_store_merging): New function.
7562 (pass_store_merging::execute): If the function can throw and catch
7563 non-call exceptions, unsplit the EH edges on entry and clean up the
7564 CFG on exit if something changed. Call get_status_for_store_merging
7565 for every basic block and keep the chains open across basic blocks
7566 when possible. Terminate and process open chains at the end, if any.
7568 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7570 * reginfo.c (globalize_reg): Fix shadowed variable in
7573 2019-10-02 Martin Jambor <mjambor@suse.cz>
7575 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
7576 do not compute some stuff when set.
7577 (cgraph_node::create_edge): Likewise.
7578 (cgraph_node::create_indirect_edge): Renamed last parameter to
7579 coning_p and flipped its meaning, don't even calculate
7580 inline_failed when set.
7581 * cgraph.h (cgraph_node::create_edge): Add new parameter.
7582 (symbol_table::::create_edge): Likewise.
7583 (cgraph_node::create_indirect_edge): Rename last parameter, flip
7585 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
7586 call graph edge creating functions.
7588 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7591 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
7594 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
7596 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
7598 2019-10-02 Richard Biener <rguenther@suse.de>
7600 * tree-vectorizer.h (vect_transform_reduction): Declare.
7601 * tree-vect-stmts.c (vect_transform_stmt): Use it.
7602 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
7603 stmt transform to ...
7604 (vect_transform_reduction): ... this.
7606 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
7608 * omp-low.c (lower_omp_target): Dereference optional argument
7609 to work with the right pointer.
7611 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7613 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7615 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7616 * langhooks.h (omp_is_optional_argument): New hook.
7617 * omp-general.c (omp_is_optional_argument): New.
7618 * omp-general.h (omp_is_optional_argument): New declaration.
7619 * omp-low.c (lower_omp_target): Create temporary for received value
7620 and take the address for new_var if the original variable was a
7621 DECL_BY_REFERENCE. Use size of referenced object when a
7622 pass-by-reference optional argument used as argument to firstprivate.
7624 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7626 PR tree-optimization/91940
7627 * tree-vect-patterns.c: Include tree-vector-builder.h and
7629 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7630 unpromoting the argument back to uint16_t, or by converting into a
7631 rotate, or into shifts plus ior.
7633 2019-10-02 Richard Biener <rguenther@suse.de>
7635 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7637 (vect_transform_cycle_phi): Declare.
7638 * tree-vect-stmts.c (vect_transform_stmt): Call
7639 vect_transform_cycle_phi.
7640 * tree-vect-loop.c (vectorizable_reduction): Split out
7641 PHI transformation stage to ...
7642 (vect_transform_cycle_phi): ... here.
7644 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7647 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7648 eliminable registers.
7649 (make_hard_regno_live): Likewise, and don't make them live.
7651 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7653 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7654 Call pp_emit_prefix.
7655 (layout::print_source_line): Likewise.
7656 (layout::start_annotation_line): Likewise.
7657 (diagnostic_show_locus): Remove call to temporarily clear the
7659 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7660 interaction of pp_set_prefix with rulers and fix-it hints.
7661 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7662 prefix when calling diagnostic_show_locus, rather than destroying
7664 (print_parseable_fixits): Temporarily clear prefix.
7665 * pretty-print.c (pp_format): Save and restore line_length, rather
7666 than assuming it is zero.
7667 (pp_output_formatted_text): Remove assertion that line_length is
7670 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7672 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7674 (nonoverlapping_refs_since_match_p): ... this; handle also
7676 (alias_stats): Update stats.
7677 (dump_alias_stats): Likewise.
7678 (cheap_array_ref_low_bound): New function.
7679 (aliasing_matching_component_refs_p): Add partial_overlap
7681 pass it to nonoverlapping_refs_since_match_p.
7682 (aliasing_component_refs_walk): Update call of
7683 aliasing_matching_component_refs_p
7684 (nonoverlapping_array_refs_p): New function.
7685 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7686 indirect_refs_may_alias_p): Update calls of
7687 nonoverlapping_refs_since_match_p.
7689 2019-10-01 Maya Rashish <coypu@sdf.org>
7692 * ira-color.c (allocno_copy_cost_saving): Call
7693 ira_init_register_move_cost_if_necessary.
7695 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7697 * Makefile.in (gnat_install_lib): New variable.
7698 * configure.ac: Substitute it.
7699 * configure: Regenerate.
7701 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7704 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7705 is matched with non-C++ type
7707 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7709 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7712 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7714 * doc/invoke.texi (early-inlining-insns-O2): Document.
7715 (early-inlining-insns): Update.
7716 * params.def (early-inlining-insns-O2): New bound.
7717 (early-inlining-insns): Update docs.
7718 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7720 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7723 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7724 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7725 a memory access insn.
7727 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7729 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7732 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7735 * config/s390/s390.c (s390_expand_vec_compare): Use
7736 gen_vec_cmpordered and gen_vec_cmpunordered.
7737 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7738 vec_unordered): Delete.
7739 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7740 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7741 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7742 (vec_cmp<code>): Generic dispatcher.
7744 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7747 * config/s390/vector.md (V_HW): Add V1TI in order to make
7748 vcond$a$b generate vcondv1tiv1tf.
7750 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7752 PR rtl-optimization/91948
7753 * ira-build.c (ira_create_allocno): Initialize
7754 ALLOCNO_CROSSED_CALLS_ABIS.
7755 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7756 than regno to ira_need_caller_save_p.
7758 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7760 * config/i386/i386-options.c
7761 (ix86_recompute_optlev_based_flags): New, moved out of...
7762 (ix86_option_override_internal): ... this. Call it.
7763 (ix86_override_options_after_change): Call it here too.
7766 * dwarf2out.c (override_type_for_decl_p): New.
7767 (gen_variable_die): Use it.
7769 2019-10-01 Richard Biener <rguenther@suse.de>
7771 * tree-vect-loop.c (vectorizable_reduction): Move variables
7772 to where they are used.
7774 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7776 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7777 (build_def_use): Use PC instead of CC0 in a comment.
7779 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7781 * rtl.def (CLOBBER_HIGH): Delete.
7782 * doc/rtl.texi (clobber_high): Remove documentation.
7783 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7784 (reg_is_clobbered_by_clobber_high): Delete.
7785 (gen_hard_reg_clobber_high): Likewise.
7786 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7787 * cfgexpand.c (expand_gimple_stmt): Likewise.
7788 * combine-stack-adj.c (single_set_for_csa): Likewise.
7789 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7790 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7791 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7792 * cse.c (invalidate_reg): Remove clobber_high parameter.
7793 (invalidate): Update call accordingly.
7794 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7795 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7796 (count_reg_usage, insn_live_p): Likewise.
7797 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7798 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7799 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7800 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7801 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7802 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7803 (mark_nonreg_stores_2): Likewise.
7804 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7805 (df_get_call_refs): Likewise.
7806 * dwarf2out.c (mem_loc_descriptor): Likewise.
7807 * emit-rtl.c (verify_rtx_sharing): Likewise.
7808 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7809 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7810 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7811 * genemit.c (gen_exp, gen_insn): Likewise.
7812 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7813 * haifa-sched.c (haifa_classify_rtx): Likewise.
7814 * ira-build.c (create_insn_allocnos): Likewise.
7815 * ira-costs.c (scan_one_insn): Likewise.
7816 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7817 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7818 * jump.c (mark_jump_label_1): Likewise.
7819 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7820 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7822 (mark_not_eliminable): Likewise.
7823 * lra-lives.c (process_bb_lives): Likewise.
7824 * lra.c (new_insn_reg): Remove clobber_high parameter.
7825 (collect_non_operand_hard_regs): Likewise. Update call to new
7826 insn_reg. Remove CLOBBER_HIGH handling.
7827 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7828 to collect_non_operand_hard_regs.
7829 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7830 Update call to new_insn_reg.
7831 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7832 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7833 (move2add_note_store): Likewise.
7834 * print-rtl.c (print_pattern): Likewise.
7835 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7836 (if_test_bypass_p): Likewise.
7837 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7838 * reginfo.c (reg_scan_mark_refs): Likewise.
7839 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7840 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7841 (forget_old_reloads_1): Likewise.
7842 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7843 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7844 (dbr_schedule): Likewise.
7845 * resource.c (update_live_status, mark_referenced_resources)
7846 (mark_set_resources): Likewise.
7847 * rtl.c (copy_rtx): Likewise.
7848 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7849 (note_pattern_stores): Likewise.
7850 (reg_is_clobbered_by_clobber_high): Delete.
7851 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7852 CLOBBER_HIGH handling.
7854 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7857 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7858 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7859 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7860 Handle ARM_PCS_TLSDESC.
7861 (aarch64_tlsdesc_abi_id): New function.
7862 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7863 rtx instead of a list of clobbers and clobber_highs.
7864 (tlsdesc_small_<mode>): Update accordingly.
7866 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7868 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7869 extra callee_abi argument.
7870 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7871 Insert a CALLEE_ABI unspec into the call pattern as the second
7872 element in the PARALLEL.
7873 (aarch64_simd_call_p): Delete.
7874 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7875 the new CALLEE_ABI element of the PARALLEL.
7876 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7877 from the function type, if given.
7878 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7879 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7880 when passed the function_arg_info end marker.
7881 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7882 final argument of gen_sibcall.
7883 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7884 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7885 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7887 (call_value): Likewise operand 3.
7888 (sibcall): Likewise operand 2. Place the unspec before rather than
7890 (sibcall_value): Likewise operand 3.
7891 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7892 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7893 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7895 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7897 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7899 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7900 choose_hard_reg_mode.
7901 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7903 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7905 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7906 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7907 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7909 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7911 * diagnostic-show-locus.c (line_label::line_label): Initialize
7913 (line_label::comparator): Reverse the sort order by m_state_idx,
7914 so that when the list is walked backwards the labels appear in
7915 order of insertion into the rich_location.
7916 (line_label::m_has_vbar): New field.
7917 (layout::print_any_labels): When dealing with multiple labels at
7918 the same line and column, only print vertical bars for the one
7919 with the highest label_line.
7920 (selftest::test_one_liner_labels): Update test for multiple labels
7921 to expect the labels to be in the order of insertion into the
7922 rich_location. Add a test for many such labels, where the column
7923 numbers are out-of-order relative to the insertion order.
7925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7927 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7928 (ix86_frame::expensive_count): Likewise.
7929 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7930 of use_fast_prologue_epilogue robust against incidental changes
7933 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7936 * config/s390/vector.md (vec_unordered<mode>): Call
7937 gen_vec_ordered<mode>.
7939 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7941 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7942 New pattern for ASRD.
7943 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7944 * internal-fn.def (IFN_DIV_POW2): New internal function.
7945 * optabs.def (sdiv_pow2_optab): New optab.
7946 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7947 Modify pattern to support new operation.
7948 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7949 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7950 Document new target selector.
7952 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7954 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7955 to test whether we're compiling a vector PCS function and to test
7956 whether the function needs to save a particular register.
7957 Remove the vector PCS handling of df_set_regs_ever_live.
7958 (aarch64_components_for_bb): Use crtl->abi to test whether
7959 the function needs to save a particular register.
7960 (aarch64_process_components): Use crtl->abi to test whether
7961 we're compiling a vector PCS function.
7962 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7963 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7967 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7969 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7970 whether the block calls a function that clobbers more registers
7971 than the current function is allowed to.
7972 (aarch64_use_simple_return_insn_p): Delete.
7973 * config/aarch64/aarch64.md (simple_return): Remove condition.
7975 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7977 * function-abi.h (function_abi_aggregator): New class.
7978 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7980 * ira.c (update_equiv_regs_prescan): New function. Call
7981 set_paradoxical_subreg here rather than...
7982 (update_equiv_regs): ...here.
7983 (ira): Call update_equiv_regs_prescan.
7985 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7987 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7989 (call_used_or_fixed_regs): Likewise.
7990 (call_used_or_fixed_reg_p): Likewise.
7991 * reginfo.c (regs_invalidated_by_call): New macro.
7993 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7995 * shrink-wrap.c: Include function-abi.h.
7996 (requires_stack_frame_p): Use crtl->abi to test whether the
7997 current function can use a register without saving it first.
7999 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8001 * sel-sched-ir.h (_def::crosses_call): Replace with...
8002 (_def::crossed_call_abis): ..this new field.
8003 (def_list_add): Take a mask of ABIs instead of a crosses_call
8005 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
8006 of _def accordingly.
8007 * sel-sched.c: Include function-abi.h.
8008 (hard_regs_data::regs_for_call_clobbered): Delete.
8009 (reg_rename::crosses_call): Replace with...
8010 (reg_rename::crossed_call_abis): ...this new field.
8011 (fur_static_params::crosses_call): Replace with...
8012 (fur_static_params::crossed_call_abis): ...this new field.
8013 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
8014 (init_hard_regs_data): Use crtl->abi to test which registers the
8015 current function would need to save before it uses them.
8016 (mark_unavailable_hard_regs): Update handling of call-clobbered
8017 registers, using call_clobbers_in_region to find out which registers
8018 might be call-clobbered (but without taking -fipa-ra into account
8019 for now). Remove separate handling of partially call-clobbered
8021 (verify_target_availability): Use crossed_call_abis instead of
8023 (get_spec_check_type_for_insn, find_used_regs): Likewise.
8024 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
8026 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8028 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
8029 function to test whether a register is fully or partly clobbered.
8031 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8033 * rtlanal.c: Include function-abi.h.
8034 (reg_set_p): Use insn_callee_abi to get the ABI of the called
8035 function and clobbers_reg_p to test whether the register
8037 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
8038 to get the ABI of the called function and full_reg_clobbers to
8039 get the set of fully call-clobbered registers. Warn about the
8040 pitfalls of using this mode.
8042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8044 * reload.c: Include function-abi.h.
8045 (find_equiv_reg): Use clobbers_reg_p to test whether either
8046 of the equivalent registers is clobbered by a call.
8047 * reload1.c: Include function-abi.h.
8048 (reg_reloaded_call_part_clobbered): Delete.
8049 (reload): Use crtl->abi to test which registers would need
8050 saving in the prologue before use.
8051 (find_reg): Likewise.
8052 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
8053 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
8054 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
8056 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8058 * regrename.h (du_head::call_clobber_mask): New field.
8059 (du_head::need_caller_save_reg): Replace with...
8060 (du_head::call_abis): ...this new field.
8061 * regrename.c: Include function-abi.h.
8062 (call_clobbered_in_chain_p): New function.
8063 (check_new_reg_p): Use crtl->abi when deciding whether a register
8064 is free for use after RA. Use call_clobbered_in_chain_p to test
8065 whether a candidate register would be clobbered by a call.
8066 (find_rename_reg): Don't add call-clobber conflicts here.
8067 (rename_chains): Check call_abis instead of need_caller_save_reg.
8068 (merge_chains): Update for changes to du_head.
8069 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8070 target. Record the ABI identifier in call_abis and the set of
8071 fully or partially clobbered registers in call_clobber_mask.
8072 Add fully-clobbered registers to hard_conflicts here rather
8073 than in find_rename_reg.
8074 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8075 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8076 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8078 * config/c6x/c6x.c: Likewise.
8080 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8082 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8083 mode of the register when deciding whether it is no longer
8084 available after a call.
8086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8088 * recog.c: Include function-abi.h.
8089 (peep2_find_free_register): Use crtl->abi when deciding whether
8090 a register is free for use after RA.
8092 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8094 * postreload-gcse.c: Include regs.h and function-abi.h.
8095 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8096 call insn target. Conservatively assume that partially-clobbered
8097 registers are altered.
8099 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8101 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8102 when deciding whether a register is free for use after RA.
8103 (reload_combine): Remove unnecessary use of fixed_reg_set.
8104 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8105 call insn target. Use reg_mode when testing whether a register
8106 is no longer available.
8108 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8110 * target.def (return_call_with_max_clobbers): Delete.
8111 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8112 * doc/tm.texi: Regenerate.
8113 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8114 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8115 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8116 (lra_reg::call_insn): Delete.
8117 * lra.c: Include function-abi.h.
8118 (initialize_lra_reg_info_element): Don't initialize the fields above.
8119 (lra): Use crtl->abi to test whether the current function needs to
8120 save a register in the prologue. Remove special pre-inheritance
8121 lra_create_live_ranges pass for flag_ipa_ra.
8122 * lra-assigns.c: Include function-abi.h
8123 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8124 function needs to save a register in the prologue.
8125 (lra_assign): Assert that registers aren't allocated to a
8126 conflicting register, rather than checking only for overlaps
8127 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8128 and for registers that are not live across a call.
8129 * lra-constraints.c (last_call_for_abi): New variable.
8130 (full_and_partial_call_clobbers): Likewise.
8131 (setup_next_usage_insn): Remove the register from
8132 full_and_partial_call_clobbers.
8133 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8134 whether the register needs a caller save.
8135 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8136 of call_used_or_fixed_regs.
8137 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8138 full_and_partial_call_clobbers.
8139 * lra-lives.c (check_pseudos_live_through_calls): Replace
8140 last_call_used_reg_set and call_insn arguments with an abi argument.
8141 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8142 as the set of conflicting registers.
8143 (calls_have_same_clobbers_p): Delete.
8144 (process_bb_lives): Track the ABI of the last call instead of an
8145 insn/HARD_REG_SET pair. Update calls to
8146 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8147 the set of registers that could be clobbered by an EH edge.
8148 Include partially-clobbered as well as fully-clobbered registers.
8149 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8150 * lra-remat.c: Include function-abi.h.
8151 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8152 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8153 registers and bitmap_view to combine them into dead_regs.
8154 (call_used_input_regno_present_p): Take a function_abi argument
8155 and use it to test whether a register is call-clobbered.
8156 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8157 call insn target. Update tje call to call_used_input_regno_present_p.
8158 (do_remat): Likewise.
8159 (lra_remat): Remove the initialization of call_used_regs_arr_len
8160 and call_used_regs_arr.
8162 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8164 * loop-iv.c: Include regs.h and function-abi.h.
8165 (simplify_using_initial_values): Use insn_callee_abi to get the
8166 ABI of the call insn target. Conservatively assume that
8167 partially-clobbered registers are altered.
8169 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8171 * function-abi.h (call_clobbers_in_region): Declare.
8172 (call_clobbered_in_region_p): New function.
8173 * function-abi.cc (call_clobbers_in_region): Likewise.
8174 * ira-int.h: Include function-abi.h.
8175 (ira_allocno::crossed_calls_abis): New field.
8176 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8177 (ira_need_caller_save_regs): New function.
8178 (ira_need_caller_save_p): Likewise.
8179 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8180 of call_used_or_fixed_regs.
8181 (do_reload): Use crtl->abi to test whether the current function
8182 needs to save a register in the prologue. Count registers that
8183 need to be saved rather than registers that don't.
8184 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8185 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8186 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8187 (propagate_some_info_from_allocno): Likewise.
8188 (copy_info_to_removed_store_destinations): Likewise.
8189 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8190 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8191 (ira_build): Use ira_need_caller_save_regs instead of
8192 call_used_or_fixed_regs.
8193 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8194 whether the current function would need to save a register
8196 (calculate_spill_cost): Likewise.
8197 (allocno_reload_assign): Use ira_need_caller_save_regs and
8198 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8199 * ira-conflicts.c (ira_build_conflicts): Use
8200 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8201 as the set of call-clobbered registers. Remove the
8202 call_used_or_fixed_regs mask from the calculation of
8203 temp_hard_reg_set and mask its use instead. Remove special
8204 handling of partially-clobbered registers.
8205 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8206 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8207 calculate the set of conflicting registers for calls that
8208 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8209 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8210 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8211 Use eh_edge_abi to calculate the set of registers that could
8212 be clobbered by an EH edge. Include partially-clobbered as
8213 well as fully-clobbered registers.
8215 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8217 * haifa-sched.c: Include function-abi.h.
8218 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8219 the function would need to save a register before using it.
8221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8223 * gcse.c: Include function-abi.h.
8224 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8225 the call insn target. Invalidate partially call-clobbered
8226 registers as well as fully call-clobbered ones.
8228 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8230 * function.c (aggregate_value_p): Work out which ABI the
8231 function is using before testing which registers are at least
8232 partly preserved by a call.
8234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8236 * early-remat.c: Include regs.h and function-abi.h.
8237 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8239 (early_remat::restrict_remat_for_unavail_regs): New function.
8240 (early_remat::restrict_remat_for_call): Likewise.
8241 (early_remat::process_block): Before calling emit_remat_insns
8242 for a previous call in the block, invalidate any candidates
8243 that would clobber call-preserved registers.
8244 (early_remat::emit_remat_insns_for_block): Likewise for the
8245 final call in a block. Do the same thing for live-in registers
8246 when calling emit_remat_insns at the head of a block.
8248 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8250 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8251 whether the current function needs to save at least part of a
8252 register before using it.
8253 (df_get_exit_block_use_set): Likewise for epilogue restores.
8255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8257 * df-problems.c: Include regs.h and function-abi.h.
8258 (df_rd_problem_data): Rename sparse_invalidated_by_call to
8259 sparse_invalidated_by_eh and dense_invalidated_by_call to
8260 dense_invalidated_by_eh.
8261 (df_print_bb_index): Update accordingly.
8262 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
8263 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
8264 that are clobbered by an EH edge. Clobber partially-clobbered
8265 registers as well as fully-clobbered ones.
8266 (df_md_confluence_n): Likewise.
8267 (df_rd_local_compute): Likewise. Update for changes to
8269 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
8270 of registers that are clobbered by an EH edge. Includde partially-
8271 clobbered registers as well as fully-clobbered ones.
8273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8275 * cselib.c (cselib_process_insn): If we know what mode a
8276 register was set in, check whether it is clobbered in that
8277 mode by a call. Only fall back to reg_raw_mode if that fails.
8279 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8281 * cse.c: Include regs.h and function-abi.h.
8282 (invalidate_for_call): Take the call insn as an argument.
8283 Use insn_callee_abi to get the ABI of the call and invalidate
8284 partially clobbered registers as well as fully clobbered ones.
8285 (cse_insn): Update call accordingly.
8287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8289 * combine.c: Include function-abi.h.
8290 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
8291 of the target of call insns. Invalidate partially-clobbered
8292 registers as well as fully-clobbered ones.
8294 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8296 * cfgloopanal.c: Include regs.h and function-abi.h.
8297 (init_set_costs): Use default_function_abi to test whether
8298 a general register is call-clobbered.
8300 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8302 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
8303 instead of the call-clobbered sets.
8305 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8307 * caller-save.c (setup_save_areas): Remove redundant |s of
8309 (save_call_clobbered_regs): Likewise. Use the call ABI rather
8310 than call_used_or_fixed_regs to decide whether a REG_RETURNED
8313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8315 * rtl.h (predefined_function_abi): Declare.
8316 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8317 instead of a boolean call_save flag.
8318 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
8320 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8321 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8322 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
8323 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8324 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8325 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
8326 * reginfo.c (init_reg_modes_target): Likewise.
8327 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8328 instead of a boolean call_save flag.
8329 * targhooks.c: Include function-abi.h.
8330 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
8331 using eh_edge_abi to choose the mode.
8333 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8335 * target.def (hard_regno_call_part_clobbered): Take an ABI
8336 identifier instead of an rtx_insn.
8337 * doc/tm.texi: Regenerate.
8338 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
8339 (hook_bool_uint_uint_mode_false): New function.
8340 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
8341 (hook_bool_uint_uint_mode_false): New function.
8342 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8343 Take an ABI identifier instead of an rtx_insn.
8344 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
8345 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
8346 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
8347 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
8348 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
8350 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
8351 * cselib.c: Include function-abi.h.
8352 (cselib_process_insn): Update call to
8353 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8354 to get the appropriate ABI identifier.
8355 * function-abi.cc (predefined_function_abi::initialize): Update call
8356 to targetm.hard_regno_call_part_clobbered.
8357 * ira-conflicts.c (ira_build_conflicts): Likewise.
8358 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8359 * lra-constraints.c: Include function-abi.h.
8360 (need_for_call_save_p): Update call to
8361 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8362 to get the appropriate ABI identifier.
8363 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8364 * regcprop.c (copyprop_hardreg_forward_1): Update call
8365 to targetm.hard_regno_call_part_clobbered.
8366 * reginfo.c (choose_hard_reg_mode): Likewise.
8367 * regrename.c (check_new_reg_p): Likewise.
8368 * reload.c (find_equiv_reg): Likewise.
8369 * reload1.c (emit_reload_insns): Likewise.
8370 * sched-deps.c: Include function-abi.h.
8371 (deps_analyze_insn): Update call to
8372 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8373 to get the appropriate ABI identifier.
8374 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
8375 call to targetm.hard_regno_call_part_clobbered.
8376 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
8378 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8380 * config/i386/i386.c: Include function-abi.h.
8381 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
8382 if they preserve some 256-bit or 512-bit SSE registers.
8384 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8386 * target.def (insn_callee_abi): New hook.
8387 (remove_extra_call_preserved_regs): Delete.
8388 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
8389 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8390 * doc/tm.texi: Regenerate.
8391 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
8392 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
8393 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
8395 (aarch64_remove_extra_call_preserved_regs): Delete.
8396 (aarch64_insn_callee_abi): New function.
8397 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8398 (TARGET_INSN_CALLEE_ABI): New macro.
8399 * rtl.h (get_call_fndecl): Declare.
8400 (cgraph_rtl_info): Fix formatting. Tweak comment for
8401 function_used_regs. Remove function_used_regs_valid.
8402 * rtlanal.c (get_call_fndecl): Moved from final.c
8403 * function-abi.h (insn_callee_abi): Declare.
8404 (target_function_abi_info): Mention insn_callee_abi.
8405 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
8406 way to get_call_reg_set_usage did.
8407 (insn_callee_abi): New function.
8408 * regs.h (get_call_reg_set_usage): Delete.
8409 * final.c: Include function-abi.h.
8410 (collect_fn_hard_reg_usage): Add fixed and stack registers to
8411 function_used_regs before the main loop rather than afterwards.
8412 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
8413 if function_used_regs ends up not being useful.
8414 (get_call_fndecl): Move to rtlanal.c
8415 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
8416 * caller-save.c: Include function-abi.h.
8417 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
8418 instead of get_call_reg_set_usage.
8419 * cfgcleanup.c: Include function-abi.h.
8420 (old_insns_match_p): Use insn_callee_abi instead of
8421 get_call_reg_set_usage.
8422 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
8424 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
8426 * df-scan.c: Include function-abi.h.
8427 (df_get_call_refs): Use insn_callee_abi instead of
8428 get_call_reg_set_usage.
8429 * ira-lives.c: Include function-abi.h.
8430 (process_bb_node_lives): Use insn_callee_abi instead of
8431 get_call_reg_set_usage.
8432 * lra-lives.c: Include function-abi.h.
8433 (process_bb_lives): Use insn_callee_abi instead of
8434 get_call_reg_set_usage.
8435 * postreload.c: Include function-abi.h.
8436 (reload_combine): Use insn_callee_abi instead of
8437 get_call_reg_set_usage.
8438 * regcprop.c: Include function-abi.h.
8439 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8440 get_call_reg_set_usage.
8441 * resource.c: Include function-abi.h.
8442 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8443 instead of get_call_reg_set_usage.
8444 * var-tracking.c: Include function-abi.h.
8445 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8446 get_call_reg_set_usage.
8448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8450 * target.def (fntype_abi): New target hook.
8451 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8452 * doc/tm.texi: Regenerate.
8453 * target.h (predefined_function_abi): Declare.
8454 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8456 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8457 * config/aarch64/aarch64.c: Include function-abi.h.
8458 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8459 (TARGET_FNTYPE_ABI): Define.
8461 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8463 * Makefile.in (OBJS): Add function-abi.o.
8464 (GTFILES): Add function-abi.h.
8465 * function-abi.cc: New file.
8466 * function-abi.h: Likewise.
8467 * emit-rtl.h (rtl_data::abi): New field.
8468 * function.c: Include function-abi.h.
8469 (prepare_function_start): Initialize crtl->abi.
8470 * read-rtl-function.c: Include regs.h and function-abi.h.
8471 (read_rtl_function_body): Initialize crtl->abi.
8472 (read_rtl_function_body_from_file_range): Likewise.
8473 * reginfo.c: Include function-abi.h.
8474 (init_reg_sets_1): Initialize default_function_abi.
8475 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
8476 when making a register global.
8477 * target-globals.h (this_target_function_abi_info): Declare.
8478 (target_globals::function_abi_info): New field.
8479 (restore_target_globals): Copy it.
8480 * target-globals.c: Include function-abi.h.
8481 (default_target_globals): Initialize the function_abi_info field.
8482 (target_globals): Allocate it.
8483 (save_target_globals): Free it.
8485 2019-09-30 Nick Clifton <nickc@redhat.com>
8488 * config/frv/frv.c (frv_register_move_cost): Add break statements
8489 to avoid falling through to the wrong cases. Tidy code.
8491 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8493 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8494 For multi-registers modes, test how big each register part is.
8496 2019-09-30 Nick Clifton <nickc@redhat.com>
8499 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
8500 (TARGET_ASM_SELECT_SECTION): Remove definition.
8501 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
8503 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8505 * emit-rtl.c (init_raw_REG): New function.
8506 (gen_raw_REG): Use init_raw_REG.
8507 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
8509 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
8510 * rtl.h (rtx_init): New function.
8511 (rtx_alloca): New function.
8512 (init_raw_REG): New function.
8513 (alloca_raw_REG): New macro.
8515 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
8517 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
8518 (pcrel_local_address): Replace pcrel_address predicate, use the
8519 new function address_to_insn_form.
8520 (pcrel_external_address): Replace with new implementation using
8521 address_to_insn_form..
8522 (prefixed_mem_operand): Delete predicate which is now unused.
8523 (pcrel_external_mem_operand): Delete predicate which is now
8525 * config/rs6000/rs6000-protos.h (enum insn_form): New
8527 (enum non_prefixed_form): New enumeration.
8528 (address_to_insn_form): New declaration.
8529 (prefixed_load_p): New declaration.
8530 (prefixed_store_p): New declaration.
8531 (prefixed_paddi_p): New declaration.
8532 (rs6000_asm_output_opcode): New declaration.
8533 (rs6000_final_prescan_insn): Move declaration and update calling
8535 (address_is_prefixed): New helper inline function.
8536 * config/rs6000/rs6000.c(print_operand_address): Check for either
8537 PC-relative local symbols or PC-relative external symbols.
8538 (rs6000_emit_move): Support loading PC-relative addresses.
8539 (mode_supports_prefixed_address_p): Delete, no longer used.
8540 (rs6000_prefixed_address_mode_p): Delete, no longer used.
8541 (address_to_insn_form): New function to decode an address format.
8542 (reg_to_non_prefixed): New function to identify what the
8543 non-prefixed memory instruction format is for a register.
8544 (prefixed_load_p): New function to identify prefixed loads.
8545 (prefixed_store_p): New function to identify prefixed stores.
8546 (prefixed_paddi_p): New function to identify prefixed load
8548 (next_insn_prefixed_p): New static state variable.
8549 (rs6000_final_prescan_insn): New function to determine if an insn
8550 uses a prefixed instruction.
8551 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
8552 prefixed instruction.
8553 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
8554 (ASM_OUTPUT_OPCODE): New target hook.
8555 * config/rs6000/rs6000.md (prefixed): New insn attribute for
8556 prefixed instructions.
8557 (prefixed_length): New insn attribute for the size of prefixed
8559 (non_prefixed_length): New insn attribute for the size of
8560 non-prefixed instructions.
8561 (pcrel_local_addr): New insn to load up a local PC-relative
8563 (pcrel_extern_addr): New insn to load up an external PC-relative
8565 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
8566 GPR and loading a 128-bit floating point type to a GPR.
8568 2019-09-30 Richard Biener <rguenther@suse.de>
8570 * gimple.c (gimple_get_lhs): For PHIs return the result.
8571 * tree-vectorizer.h (vectorizable_live_operation): Also get the
8572 SLP instance as argument.
8573 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
8574 double-reduction PHIs with vectorizable_lc_phi.
8575 (vect_analyze_loop_operations): Adjust.
8576 (vect_create_epilog_for_reduction): Remove all code not dealing
8577 with reduction LC PHI or epilogue generation.
8578 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
8579 for live stmts of reductions.
8580 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
8581 do not handle defs that are not vect_internal_def.
8582 (can_vectorize_live_stmts): Adjust.
8583 (vect_analyze_stmt): When the vectorized stmt defined a value
8584 used on backedges adjust the backedge uses of vectorized PHIs.
8586 2019-09-30 Martin Jambor <mjambor@suse.cz>
8589 * tree-inline.c (force_value_to_type): New function.
8590 (setup_one_parameter): Use force_value_to_type to convert type.
8591 * tree-inline.c (force_value_to_type): Declare.
8592 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
8593 with register type mismatches.
8595 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
8597 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
8599 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
8600 * config/rs6000/t-freebsd64: Make use of the above define and build
8601 the 32-bit libraries with secure-plt.
8603 2019-09-30 Jakub Jelinek <jakub@redhat.com>
8606 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
8607 gen_int_mode instead of GEN_INT.
8609 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
8611 * config/darwin.c (gen_macho_low): Amend to include the mode
8613 (machopic_indirect_data_reference): Amend gen_macho_low call
8614 to include mode argument
8615 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8616 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8617 the macho_high expander and two define_insn entries.
8619 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8622 * optc-save-gen.awk: Fix up printing string option differences.
8624 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8626 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8627 vec_perm cost to 1 for non-Power7 VSX architectures.
8629 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8631 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8632 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8633 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8635 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8637 * config/darwin.c (gen_macho_high): Amend to include the mode
8639 (machopic_indirect_data_reference): Amend gen_macho_high call
8640 to include mode argument.
8641 (machopic_legitimize_pic_address): Likewise.
8642 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8643 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8644 the macho_high expander and two define_insn entries.
8646 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8649 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8651 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8654 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8655 std::string::compare instead of std::string::find.
8657 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8659 * configure: Regenerate.
8661 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8664 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8665 variables as shared.
8667 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8669 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8670 replaces the expander and two define_insn entries.
8671 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8673 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8675 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8677 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8678 (fibonacci_heap::nodes): Likewise.
8679 (fibonacci_heap::min_key): Likewise.
8680 (fibonacci_heap::min): Likewise.
8682 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8684 * cgraph.c (cgraph_node::get_fun): Make const.
8685 * cgraph.h (cgraph_node::get_fun): Likewise.
8687 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8690 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8693 2019-09-27 Richard Biener <rguenther@suse.de>
8695 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8696 (STMT_VINFO_REDUC_FN): Likewise.
8697 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8698 STMT_VINFO_REDUC_FN.
8699 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8700 for condition reductions.
8701 (vect_create_epilog_for_reduction): Compute all required state
8702 from the stmt to be vectorized.
8703 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8704 invocation and remove then dead code. For single def-use chains
8705 record only a single vector stmt.
8707 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8709 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8710 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8711 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8712 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8713 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8714 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8715 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8716 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8717 (aarch64_general_builtin_rsqrt): Declare.
8718 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8720 (aarch64_mangle_builtin_type): Rename to...
8721 (aarch64_general_mangle_builtin_type): ...this.
8722 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8723 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8724 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8725 aarch64_general_add_builtin instead of add_builtin_function.
8726 (aarch64_init_builtins): Rename to...
8727 (aarch64_general_init_builtins): ...this. Use
8728 aarch64_general_add_builtin instead of add_builtin_function.
8729 (aarch64_builtin_decl): Rename to...
8730 (aarch64_general_builtin_decl): ...this and remove the unused
8732 (aarch64_expand_builtin): Rename to...
8733 (aarch64_general_expand_builtin): ...this and remove the unused
8735 (aarch64_builtin_rsqrt): Rename to...
8736 (aarch64_general_builtin_rsqrt): ...this.
8737 (aarch64_fold_builtin): Rename to...
8738 (aarch64_general_fold_builtin): ...this. Take the function subcode
8739 and return type as arguments. Remove the "ignored" argument.
8740 (aarch64_gimple_fold_builtin): Rename to...
8741 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8742 subcode and gcall as arguments, and return the new function call.
8743 * config/aarch64/aarch64.c (aarch64_init_builtins)
8744 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8745 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8746 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8747 instead of aarch64_builtin_rsqrt.
8748 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8749 instead of aarch64_mangle_builtin_type.
8751 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8753 * target.def (check_builtin_call): New target hook.
8754 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8755 * doc/tm.texi: Regenerate.
8757 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8759 PR tree-optimization/91909
8760 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8761 reduc_index parameter. When handling COND_REDUCTION, make sure
8762 that the reduction phi operand is in the correct arm of the
8764 (vectorizable_reduction): Pass reduc_index to the above.
8766 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8768 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8769 New combine pattern.
8771 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8773 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8774 loop instruction into new basic block before the loop when basic
8775 block that precedes the loop is empty.
8777 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8779 * function.c (gimplify_parameters): Use build_clobber function.
8780 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8781 * tree-inline.c (expand_call_inline): Likewise.
8782 * tree-sra.c (clobber_subtree): Likewise.
8783 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8784 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8785 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8786 lower_omp_target): Likewise.
8787 * omp-expand.c (expand_omp_for_generic): Likewise.
8788 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8790 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8792 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8793 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8794 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8795 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8796 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8797 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8798 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8799 LD_ELEMREV_V16QI): Use the PURE attribute.
8801 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8803 * config/rs6000/darwin.md: Replace the expanders for
8804 load_macho_picbase and reload_macho_picbase with use of '@'
8805 and <mode> in their respective define_insns.
8806 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8807 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8808 Pmode to gen_load_macho_picbase.
8809 * config/rs6000/rs6000.md: Likewise.
8811 2019-09-25 Richard Biener <rguenther@suse.de>
8813 PR tree-optimization/91896
8814 * tree-vect-loop.c (vectorizable_reduction): The single
8815 def-use cycle optimization cannot apply when there's more
8816 than one pattern stmt involved.
8818 2019-09-26 Richard Biener <rguenther@suse.de>
8820 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8821 loop-closed PHIs that are vect_internal_def.
8822 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8824 (vectorizable_lc_phi): New.
8825 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8826 (vect_transform_stmt): Likewise.
8827 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8828 (vectorizable_lc_phi): Declare.
8830 2019-09-26 Richard Biener <rguenther@suse.de>
8832 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8833 vectorizable_reduction for vect_double_reduction_def.
8834 (vect_transform_loop): Likewise.
8835 (vect_create_epilog_for_reduction): Move double-reduction
8836 PHI creation and preheader argument setting of PHIs ...
8837 (vectorizable_reduction): ... here. Also process
8838 vect_double_reduction_def PHIs, creating the vectorized
8839 PHI nodes, remembering the scalar adjustment computed for
8840 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8841 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8842 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8843 Initialize STMT_VINFO_REDUC_CODE.
8844 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8845 (_stmt_vec_info::reduc_code): Likewise.
8846 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8847 (STMT_VINFO_REDUC_CODE): Likewise.
8849 2019-09-26 Matt Turner <mattst88@gmail.com>
8852 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8853 (mtune=): Add Negative(mtune=).
8854 (mcpu=): Add Negative(mcpu=).
8855 * config/arm/arm.opt: Likewise.
8857 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8859 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8860 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8862 * config/arm/arm_acle.h: Define builtins for the above.
8863 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8864 (simd32_op): Handle the above.
8865 * config/arm/unspecs.md: Define unspecs for the above.
8867 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8869 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8870 (arm_<sup>xtb16): Likewise.
8871 (arm_usada8): Likewise.
8872 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8873 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8874 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8875 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8876 __sxtb16, __uxtab16, __uxtb16): Define.
8877 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8878 * config/arm/unspecs.md: Define unspecs for the above.
8879 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8880 (USXTB16): Likewise.
8881 (simd32_op): New int_attribute.
8882 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8883 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8885 2019-09-26 Martin Jambor <mjambor@suse.cz>
8887 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8890 2019-09-26 Martin Jambor <mjambor@suse.cz>
8892 * ipa-sra.c (process_scan_results): Fix continue condition.
8894 2019-09-26 Martin Liska <mliska@suse.cz>
8896 PR tree-optimization/91885
8897 * tree-vectorizer.c (try_vectorize_loop_1): Add
8898 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8900 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8902 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8903 aarch64_plus_immediate rather than aarch64_uimm12_shift
8904 to test for valid PLUS immediates.
8906 2019-09-25 Martin Jambor <mjambor@suse.cz>
8908 * tree-sra.c (no_accesses_p): Remove.
8909 (no_accesses_representant): Likewise.
8911 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8913 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8915 (vaba_s16): Likewise.
8916 (vaba_s32): Likewise.
8917 (vaba_u8): Likewise.
8918 (vaba_u16): Likewise.
8919 (vaba_u32): Likewise.
8920 (vabal_high_s8): Likewise.
8921 (vabal_high_s16): Likewise.
8922 (vabal_high_s32): Likewise.
8923 (vabal_high_u8): Likewise.
8924 (vabal_high_u16): Likewise.
8925 (vabal_high_u32): Likewise.
8926 (vabal_s8): Likewise.
8927 (vabal_s16): Likewise.
8928 (vabal_s32): Likewise.
8929 (vabal_u8): Likewise.
8930 (vabal_u16): Likewise.
8931 (vabal_u32): Likewise.
8932 (vabaq_s8): Likewise.
8933 (vabaq_s16): Likewise.
8934 (vabaq_s32): Likewise.
8935 (vabaq_u8): Likewise.
8936 (vabaq_u16): Likewise.
8937 (vabaq_u32): Likewise.
8938 (vabd_s8): Likewise.
8939 (vabd_s16): Likewise.
8940 (vabd_s32): Likewise.
8941 (vabd_u8): Likewise.
8942 (vabd_u16): Likewise.
8943 (vabd_u32): Likewise.
8944 (vabdl_high_s8): Likewise.
8945 (vabdl_high_s16): Likewise.
8946 (vabdl_high_s32): Likewise.
8947 (vabdl_high_u8): Likewise.
8948 (vabdl_high_u16): Likewise.
8949 (vabdl_high_u32): Likewise.
8950 (vabdl_s8): Likewise.
8951 (vabdl_s16): Likewise.
8952 (vabdl_s32): Likewise.
8953 (vabdl_u8): Likewise.
8954 (vabdl_u16): Likewise.
8955 (vabdl_u32): Likewise.
8956 (vabdq_s8): Likewise.
8957 (vabdq_s16): Likewise.
8958 (vabdq_s32): Likewise.
8959 (vabdq_u8): Likewise.
8960 (vabdq_u16): Likewise.
8961 (vabdq_u32): Likewise.
8962 (vaddlv_s8): Likewise.
8963 (vaddlv_s16): Likewise.
8964 (vaddlv_u8): Likewise.
8965 (vaddlv_u16): Likewise.
8966 (vaddlvq_s8): Likewise.
8967 (vaddlvq_s16): Likewise.
8968 (vaddlvq_s32): Likewise.
8969 (vaddlvq_u8): Likewise.
8970 (vaddlvq_u16): Likewise.
8971 (vaddlvq_u32): Likewise.
8972 (vcvtx_f32_f64): Likewise.
8973 (vcvtx_high_f32_f64): Likewise.
8974 (vcvtxd_f32_f64): Likewise.
8975 (vmla_n_f32): Likewise.
8976 (vmla_n_s16): Likewise.
8977 (vmla_n_s32): Likewise.
8978 (vmla_n_u16): Likewise.
8979 (vmla_n_u32): Likewise.
8980 (vmla_s8): Likewise.
8981 (vmla_s16): Likewise.
8982 (vmla_s32): Likewise.
8983 (vmla_u8): Likewise.
8984 (vmla_u16): Likewise.
8985 (vmla_u32): Likewise.
8986 (vmlal_high_n_s16): Likewise.
8987 (vmlal_high_n_s32): Likewise.
8988 (vmlal_high_n_u16): Likewise.
8989 (vmlal_high_n_u32): Likewise.
8990 (vmlal_high_s8): Likewise.
8991 (vmlal_high_s16): Likewise.
8992 (vmlal_high_s32): Likewise.
8993 (vmlal_high_u8): Likewise.
8994 (vmlal_high_u16): Likewise.
8995 (vmlal_high_u32): Likewise.
8996 (vmlal_n_s16): Likewise.
8997 (vmlal_n_s32): Likewise.
8998 (vmlal_n_u16): Likewise.
8999 (vmlal_n_u32): Likewise.
9000 (vmlal_s8): Likewise.
9001 (vmlal_s16): Likewise.
9002 (vmlal_s32): Likewise.
9003 (vmlal_u8): Likewise.
9004 (vmlal_u16): Likewise.
9005 (vmlal_u32): Likewise.
9006 (vmlaq_n_f32): Likewise.
9007 (vmlaq_n_s16): Likewise.
9008 (vmlaq_n_s32): Likewise.
9009 (vmlaq_n_u16): Likewise.
9010 (vmlaq_n_u32): Likewise.
9011 (vmlaq_s8): Likewise.
9012 (vmlaq_s16): Likewise.
9013 (vmlaq_s32): Likewise.
9014 (vmlaq_u8): Likewise.
9015 (vmlaq_u16): Likewise.
9016 (vmlaq_u32): Likewise.
9017 (vmls_n_f32): Likewise.
9018 (vmls_n_s16): Likewise.
9019 (vmls_n_s32): Likewise.
9020 (vmls_n_u16): Likewise.
9021 (vmls_n_u32): Likewise.
9022 (vmls_s8): Likewise.
9023 (vmls_s16): Likewise.
9024 (vmls_s32): Likewise.
9025 (vmls_u8): Likewise.
9026 (vmls_u16): Likewise.
9027 (vmls_u32): Likewise.
9028 (vmlsl_high_n_s16): Likewise.
9029 (vmlsl_high_n_s32): Likewise.
9030 (vmlsl_high_n_u16): Likewise.
9031 (vmlsl_high_n_u32): Likewise.
9032 (vmlsl_high_s8): Likewise.
9033 (vmlsl_high_s16): Likewise.
9034 (vmlsl_high_s32): Likewise.
9035 (vmlsl_high_u8): Likewise.
9036 (vmlsl_high_u16): Likewise.
9037 (vmlsl_high_u32): Likewise.
9038 (vmlsl_n_s16): Likewise.
9039 (vmlsl_n_s32): Likewise.
9040 (vmlsl_n_u16): Likewise.
9041 (vmlsl_n_u32): Likewise.
9042 (vmlsl_s8): Likewise.
9043 (vmlsl_s16): Likewise.
9044 (vmlsl_s32): Likewise.
9045 (vmlsl_u8): Likewise.
9046 (vmlsl_u16): Likewise.
9047 (vmlsl_u32): Likewise.
9048 (vmlsq_n_f32): Likewise.
9049 (vmlsq_n_s16): Likewise.
9050 (vmlsq_n_s32): Likewise.
9051 (vmlsq_n_u16): Likewise.
9052 (vmlsq_n_u32): Likewise.
9053 (vmlsq_s8): Likewise.
9054 (vmlsq_s16): Likewise.
9055 (vmlsq_s32): Likewise.
9056 (vmlsq_u8): Likewise.
9057 (vmlsq_u16): Likewise.
9058 (vmlsq_u32): Likewise.
9059 (vmovl_high_s8): Likewise.
9060 (vmovl_high_s16): Likewise.
9061 (vmovl_high_s32): Likewise.
9062 (vmovl_high_u8): Likewise.
9063 (vmovl_high_u16): Likewise.
9064 (vmovl_high_u32): Likewise.
9065 (vmovl_s8): Likewise.
9066 (vmovl_s16): Likewise.
9067 (vmovl_s32): Likewise.
9068 (vmovl_u8): Likewise.
9069 (vmovl_u16): Likewise.
9070 (vmovl_u32): Likewise.
9071 (vmovn_high_s16): Likewise.
9072 (vmovn_high_s32): Likewise.
9073 (vmovn_high_s64): Likewise.
9074 (vmovn_high_u16): Likewise.
9075 (vmovn_high_u32): Likewise.
9076 (vmovn_high_u64): Likewise.
9077 (vmovn_s16): Likewise.
9078 (vmovn_s32): Likewise.
9079 (vmovn_s64): Likewise.
9080 (vmovn_u16): Likewise.
9081 (vmovn_u32): Likewise.
9082 (vmovn_u64): Likewise.
9083 (vmull_high_n_s16): Likewise.
9084 (vmull_high_n_s32): Likewise.
9085 (vmull_high_n_u16): Likewise.
9086 (vmull_high_n_u32): Likewise.
9087 (vmull_high_p8): Likewise.
9088 (vmull_high_s8): Likewise.
9089 (vmull_high_s16): Likewise.
9090 (vmull_high_s32): Likewise.
9091 (vmull_high_u8): Likewise.
9092 (vmull_high_u16): Likewise.
9093 (vmull_high_u32): Likewise.
9094 (vmull_n_s16): Likewise.
9095 (vmull_n_s32): Likewise.
9096 (vmull_n_u16): Likewise.
9097 (vmull_n_u32): Likewise.
9098 (vmull_p8): Likewise.
9099 (vmull_s8): Likewise.
9100 (vmull_s16): Likewise.
9101 (vmull_s32): Likewise.
9102 (vmull_u8): Likewise.
9103 (vmull_u16): Likewise.
9104 (vmull_u32): Likewise.
9105 (vpadal_s8): Likewise.
9106 (vpadal_s16): Likewise.
9107 (vpadal_s32): Likewise.
9108 (vpadal_u8): Likewise.
9109 (vpadal_u16): Likewise.
9110 (vpadal_u32): Likewise.
9111 (vpadalq_s8): Likewise.
9112 (vpadalq_s16): Likewise.
9113 (vpadalq_s32): Likewise.
9114 (vpadalq_u8): Likewise.
9115 (vpadalq_u16): Likewise.
9116 (vpadalq_u32): Likewise.
9117 (vpaddl_s8): Likewise.
9118 (vpaddl_s16): Likewise.
9119 (vpaddl_s32): Likewise.
9120 (vpaddl_u8): Likewise.
9121 (vpaddl_u16): Likewise.
9122 (vpaddl_u32): Likewise.
9123 (vpaddlq_s8): Likewise.
9124 (vpaddlq_s16): Likewise.
9125 (vpaddlq_s32): Likewise.
9126 (vpaddlq_u8): Likewise.
9127 (vpaddlq_u16): Likewise.
9128 (vpaddlq_u32): Likewise.
9129 (vpaddq_s8): Likewise.
9130 (vpaddq_s16): Likewise.
9131 (vpaddq_s32): Likewise.
9132 (vpaddq_s64): Likewise.
9133 (vpaddq_u8): Likewise.
9134 (vpaddq_u16): Likewise.
9135 (vpaddq_u32): Likewise.
9136 (vpaddq_u64): Likewise.
9137 (vqdmulh_n_s16): Likewise.
9138 (vqdmulh_n_s32): Likewise.
9139 (vqdmulhq_n_s16): Likewise.
9140 (vqdmulhq_n_s32): Likewise.
9141 (vqmovn_high_s16): Likewise.
9142 (vqmovn_high_s32): Likewise.
9143 (vqmovn_high_s64): Likewise.
9144 (vqmovn_high_u16): Likewise.
9145 (vqmovn_high_u32): Likewise.
9146 (vqmovn_high_u64): Likewise.
9147 (vqmovun_high_s16): Likewise.
9148 (vqmovun_high_s32): Likewise.
9149 (vqmovun_high_s64): Likewise.
9150 (vqrdmulh_n_s16): Likewise.
9151 (vqrdmulh_n_s32): Likewise.
9152 (vqrdmulhq_n_s16): Likewise.
9153 (vqrdmulhq_n_s32): Likewise.
9154 (vrsqrte_u32): Likewise.
9155 (vrsqrteq_u32): Likewise.
9156 (vtst_p8): Likewise.
9157 (vtst_p16): Likewise.
9158 (vtst_p64): Likewise.
9159 (vtstq_p8): Likewise.
9160 (vtstq_p16): Likewise.
9161 (vtstq_p64): Likewise.
9162 (vaddlv_s32): Likewise.
9163 (vaddlv_u32): Likewise.
9164 (vqtbl1_p8): Likewise.
9165 (vqtbl1_s8): Likewise.
9166 (vqtbl1_u8): Likewise.
9167 (vqtbl1q_p8): Likewise.
9168 (vqtbl1q_s8): Likewise.
9169 (vqtbl1q_u8): Likewise.
9170 (vqtbx1_s8): Likewise.
9171 (vqtbx1_u8): Likewise.
9172 (vqtbx1_p8): Likewise.
9173 (vqtbx1q_s8): Likewise.
9174 (vqtbx1q_u8): Likewise.
9175 (vqtbx1q_p8): Likewise.
9176 (vtbl1_s8): Likewise.
9177 (vtbl1_u8): Likewise.
9178 (vtbl1_p8): Likewise.
9179 (vtbl2_s8): Likewise.
9180 (vtbl2_u8): Likewise.
9181 (vtbl2_p8): Likewise.
9182 (vtbl3_s8): Likewise.
9183 (vtbl3_u8): Likewise.
9184 (vtbl3_p8): Likewise.
9185 (vtbl4_s8): Likewise.
9186 (vtbl4_u8): Likewise.
9187 (vtbl4_p8): Likewise.
9188 (vtbx2_s8): Likewise.
9189 (vtbx2_u8): Likewise.
9190 (vtbx2_p8): Likewise.
9191 (vld1_f32): Likewise.
9192 (vld1_f64): Likewise.
9193 (vld1_p8): Likewise.
9194 (vld1_p16): Likewise.
9195 (vld1_p64): Likewise.
9196 (vld1_s8): Likewise.
9197 (vld1_s16): Likewise.
9198 (vld1_s32): Likewise.
9199 (vld1_s64): Likewise.
9200 (vld1_u8): Likewise.
9201 (vld1_u16): Likewise.
9202 (vld1_u32): Likewise.
9203 (vld1_u64): Likewise.
9204 (vld1q_f32): Likewise.
9205 (vld1q_f64): Likewise.
9206 (vld1q_p8): Likewise.
9207 (vld1q_p16): Likewise.
9208 (vld1q_p64): Likewise.
9209 (vld1q_s8): Likewise.
9210 (vld1q_s16): Likewise.
9211 (vld1q_s32): Likewise.
9212 (vld1q_s64): Likewise.
9213 (vld1q_u8): Likewise.
9214 (vld1q_u16): Likewise.
9215 (vld1q_u32): Likewise.
9216 (vld1q_u64): Likewise.
9217 (vpmax_s8): Likewise.
9218 (vpmax_s16): Likewise.
9219 (vpmax_s32): Likewise.
9220 (vpmax_u8): Likewise.
9221 (vpmax_u16): Likewise.
9222 (vpmax_u32): Likewise.
9223 (vpmaxq_s8): Likewise.
9224 (vpmaxq_s16): Likewise.
9225 (vpmaxq_s32): Likewise.
9226 (vpmaxq_u8): Likewise.
9227 (vpmaxq_u16): Likewise.
9228 (vpmaxq_u32): Likewise.
9229 (vpmax_f32): Likewise.
9230 (vpmaxq_f32): Likewise.
9231 (vpmaxq_f64): Likewise.
9232 (vpmaxqd_f64): Likewise.
9233 (vpmaxs_f32): Likewise.
9234 (vpmaxnm_f32): Likewise.
9235 (vpmaxnmq_f32): Likewise.
9236 (vpmaxnmq_f64): Likewise.
9237 (vpmaxnmqd_f64): Likewise.
9238 (vpmaxnms_f32): Likewise.
9239 (vpmin_s8): Likewise.
9240 (vpmin_s16): Likewise.
9241 (vpmin_s32): Likewise.
9242 (vpmin_u8): Likewise.
9243 (vpmin_u16): Likewise.
9244 (vpmin_u32): Likewise.
9245 (vpminq_s8): Likewise.
9246 (vpminq_s16): Likewise.
9247 (vpminq_s32): Likewise.
9248 (vpminq_u8): Likewise.
9249 (vpminq_u16): Likewise.
9250 (vpminq_u32): Likewise.
9251 (vpmin_f32): Likewise.
9252 (vpminq_f32): Likewise.
9253 (vpminq_f64): Likewise.
9254 (vpminqd_f64): Likewise.
9255 (vpmins_f32): Likewise.
9256 (vpminnm_f32): Likewise.
9257 (vpminnmq_f32): Likewise.
9258 (vpminnmq_f64): Likewise.
9259 (vpminnmqd_f64): Likewise.
9260 (vpminnms_f32): Likewise.
9261 (vmla_f32): Likewise.
9262 (vmlaq_f32): Likewise.
9263 (vmlaq_f64): Likewise.
9264 (vmls_f32): Likewise.
9265 (vmlsq_f32): Likewise.
9266 (vmlsq_f64): Likewise.
9267 (vqtbl2_s8): Likewise.
9268 (vqtbl2_u8): Likewise.
9269 (vqtbl2_p8): Likewise.
9270 (vqtbl2q_s8): Likewise.
9271 (vqtbl2q_u8): Likewise.
9272 (vqtbl2q_p8): Likewise.
9273 (vqtbl3_s8): Likewise.
9274 (vqtbl3_u8): Likewise.
9275 (vqtbl3_p8): Likewise.
9276 (vqtbl3q_s8): Likewise.
9277 (vqtbl3q_u8): Likewise.
9278 (vqtbl3q_p8): Likewise.
9279 (vqtbl4_s8): Likewise.
9280 (vqtbl4_u8): Likewise.
9281 (vqtbl4_p8): Likewise.
9282 (vqtbl4q_s8): Likewise.
9283 (vqtbl4q_u8): Likewise.
9284 (vqtbl4q_p8): Likewise.
9285 (vqtbx2_s8): Likewise.
9286 (vqtbx2_u8): Likewise.
9287 (vqtbx2_p8): Likewise.
9288 (vqtbx2q_s8): Likewise.
9289 (vqtbx2q_u8): Likewise.
9290 (vqtbx2q_p8): Likewise.
9291 (vqtbx3_s8): Likewise.
9292 (vqtbx3_u8): Likewise.
9293 (vqtbx3_p8): Likewise.
9294 (vqtbx3q_s8): Likewise.
9295 (vqtbx3q_u8): Likewise.
9296 (vqtbx3q_p8): Likewise.
9297 (vqtbx4_s8): Likewise.
9298 (vqtbx4_u8): Likewise.
9299 (vqtbx4_p8): Likewise.
9300 (vqtbx4q_s8): Likewise.
9301 (vqtbx4q_u8): Likewise.
9302 (vqtbx4q_p8): Likewise.
9303 (vrev16_p8): Likewise.
9304 (vrev16_s8): Likewise.
9305 (vrev16_u8): Likewise.
9306 (vrev16q_p8): Likewise.
9307 (vrev16q_s8): Likewise.
9308 (vrev16q_u8): Likewise.
9309 (vrev32_p8): Likewise.
9310 (vrev32_p16): Likewise.
9311 (vrev32_s8): Likewise.
9312 (vrev32_s16): Likewise.
9313 (vrev32_u8): Likewise.
9314 (vrev32_u16): Likewise.
9315 (vrev32q_p8): Likewise.
9316 (vrev32q_p16): Likewise.
9317 (vrev32q_s8): Likewise.
9318 (vrev32q_s16): Likewise.
9319 (vrev32q_u8): Likewise.
9320 (vrev32q_u16): Likewise.
9321 (vrev64_f32): Likewise.
9322 (vrev64_p8): Likewise.
9323 (vrev64_p16): Likewise.
9324 (vrev64_s8): Likewise.
9325 (vrev64_s16): Likewise.
9326 (vrev64_s32): Likewise.
9327 (vrev64_u8): Likewise.
9328 (vrev64_u16): Likewise.
9329 (vrev64_u32): Likewise.
9330 (vrev64q_f32): Likewise.
9331 (vrev64q_p8): Likewise.
9332 (vrev64q_p16): Likewise.
9333 (vrev64q_s8): Likewise.
9334 (vrev64q_s16): Likewise.
9335 (vrev64q_s32): Likewise.
9336 (vrev64q_u8): Likewise.
9337 (vrev64q_u16): Likewise.
9338 (vrev64q_u32): Likewise.
9339 (vsha1cq_u32): Likewise.
9340 (vsha1mq_u32): Likewise.
9341 (vsha1pq_u32): Likewise.
9342 (vsha1h_u32): Likewise.
9343 (vsha1su0q_u32): Likewise.
9344 (vsha1su1q_u32): Likewise.
9345 (vsha256hq_u32): Likewise.
9346 (vsha256h2q_u32): Likewise.
9347 (vsha256su0q_u32): Likewise.
9348 (vsha256su1q_u32): Likewise.
9349 (vmull_p64): Likewise.
9350 (vmull_high_p64): Likewise.
9351 (vsqrt_f32): Likewise.
9352 (vsqrtq_f32): Likewise.
9353 (vsqrt_f64): Likewise.
9354 (vsqrtq_f64): Likewise.
9355 (vst1_f32): Likewise.
9356 (vst1_f64): Likewise.
9357 (vst1_p8): Likewise.
9358 (vst1_p16): Likewise.
9359 (vst1_p64): Likewise.
9360 (vst1_s8): Likewise.
9361 (vst1_s16): Likewise.
9362 (vst1_s32): Likewise.
9363 (vst1_s64): Likewise.
9364 (vst1_u8): Likewise.
9365 (vst1_u16): Likewise.
9366 (vst1_u32): Likewise.
9367 (vst1_u64): Likewise.
9368 (vst1q_f32): Likewise.
9369 (vst1q_f64): Likewise.
9370 (vst1q_p8): Likewise.
9371 (vst1q_p16): Likewise.
9372 (vst1q_p64): Likewise.
9373 (vst1q_s8): Likewise.
9374 (vst1q_s16): Likewise.
9375 (vst1q_s32): Likewise.
9376 (vst1q_s64): Likewise.
9377 (vst1q_u8): Likewise.
9378 (vst1q_u16): Likewise.
9379 (vst1q_u32): Likewise.
9380 (vst1q_u64): Likewise.
9381 (vst1_s64_x2): Likewise.
9382 (vst1_u64_x2): Likewise.
9383 (vst1_f64_x2): Likewise.
9384 (vst1_s8_x2): Likewise.
9385 (vst1_p8_x2): Likewise.
9386 (vst1_s16_x2): Likewise.
9387 (vst1_p16_x2): Likewise.
9388 (vst1_s32_x2): Likewise.
9389 (vst1_u8_x2): Likewise.
9390 (vst1_u16_x2): Likewise.
9391 (vst1_u32_x2): Likewise.
9392 (vst1_f16_x2): Likewise.
9393 (vst1_f32_x2): Likewise.
9394 (vst1_p64_x2): Likewise.
9395 (vst1q_s8_x2): Likewise.
9396 (vst1q_p8_x2): Likewise.
9397 (vst1q_s16_x2): Likewise.
9398 (vst1q_p16_x2): Likewise.
9399 (vst1q_s32_x2): Likewise.
9400 (vst1q_s64_x2): Likewise.
9401 (vst1q_u8_x2): Likewise.
9402 (vst1q_u16_x2): Likewise.
9403 (vst1q_u32_x2): Likewise.
9404 (vst1q_u64_x2): Likewise.
9405 (vst1q_f16_x2): Likewise.
9406 (vst1q_f32_x2): Likewise.
9407 (vst1q_f64_x2): Likewise.
9408 (vst1q_p64_x2): Likewise.
9409 (vst1_s64_x3): Likewise.
9410 (vst1_u64_x3): Likewise.
9411 (vst1_f64_x3): Likewise.
9412 (vst1_s8_x3): Likewise.
9413 (vst1_p8_x3): Likewise.
9414 (vst1_s16_x3): Likewise.
9415 (vst1_p16_x3): Likewise.
9416 (vst1_s32_x3): Likewise.
9417 (vst1_u8_x3): Likewise.
9418 (vst1_u16_x3): Likewise.
9419 (vst1_u32_x3): Likewise.
9420 (vst1_f16_x3): Likewise.
9421 (vst1_f32_x3): Likewise.
9422 (vst1_p64_x3): Likewise.
9423 (vst1q_s8_x3): Likewise.
9424 (vst1q_p8_x3): Likewise.
9425 (vst1q_s16_x3): Likewise.
9426 (vst1q_p16_x3): Likewise.
9427 (vst1q_s32_x3): Likewise.
9428 (vst1q_s64_x3): Likewise.
9429 (vst1q_u8_x3): Likewise.
9430 (vst1q_u16_x3): Likewise.
9431 (vst1q_u32_x3): Likewise.
9432 (vst1q_u64_x3): Likewise.
9433 (vst1q_f16_x3): Likewise.
9434 (vst1q_f32_x3): Likewise.
9435 (vst1q_f64_x3): Likewise.
9436 (vst1q_p64_x3): Likewise.
9437 (vst2_s64): Likewise.
9438 (vst2_u64): Likewise.
9439 (vst2_f64): Likewise.
9440 (vst2_s8): Likewise.
9441 (vst2_p8): Likewise.
9442 (vst2_s16): Likewise.
9443 (vst2_p16): Likewise.
9444 (vst2_s32): Likewise.
9445 (vst2_u8): Likewise.
9446 (vst2_u16): Likewise.
9447 (vst2_u32): Likewise.
9448 (vst2_f16): Likewise.
9449 (vst2_f32): Likewise.
9450 (vst2_p64): Likewise.
9451 (vst2q_s8): Likewise.
9452 (vst2q_p8): Likewise.
9453 (vst2q_s16): Likewise.
9454 (vst2q_p16): Likewise.
9455 (vst2q_s32): Likewise.
9456 (vst2q_s64): Likewise.
9457 (vst2q_u8): Likewise.
9458 (vst2q_u16): Likewise.
9459 (vst2q_u32): Likewise.
9460 (vst2q_u64): Likewise.
9461 (vst2q_f16): Likewise.
9462 (vst2q_f32): Likewise.
9463 (vst2q_f64): Likewise.
9464 (vst2q_p64): Likewise.
9465 (vst3_s64): Likewise.
9466 (vst3_u64): Likewise.
9467 (vst3_f64): Likewise.
9468 (vst3_s8): Likewise.
9469 (vst3_p8): Likewise.
9470 (vst3_s16): Likewise.
9471 (vst3_p16): Likewise.
9472 (vst3_s32): Likewise.
9473 (vst3_u8): Likewise.
9474 (vst3_u16): Likewise.
9475 (vst3_u32): Likewise.
9476 (vst3_f16): Likewise.
9477 (vst3_f32): Likewise.
9478 (vst3_p64): Likewise.
9479 (vst3q_s8): Likewise.
9480 (vst3q_p8): Likewise.
9481 (vst3q_s16): Likewise.
9482 (vst3q_p16): Likewise.
9483 (vst3q_s32): Likewise.
9484 (vst3q_s64): Likewise.
9485 (vst3q_u8): Likewise.
9486 (vst3q_u16): Likewise.
9487 (vst3q_u32): Likewise.
9488 (vst3q_u64): Likewise.
9489 (vst3q_f16): Likewise.
9490 (vst3q_f32): Likewise.
9491 (vst3q_f64): Likewise.
9492 (vst3q_p64): Likewise.
9493 (vst4_s64): Likewise.
9494 (vst4_u64): Likewise.
9495 (vst4_f64): Likewise.
9496 (vst4_s8): Likewise.
9497 (vst4_p8): Likewise.
9498 (vst4_s16): Likewise.
9499 (vst4_p16): Likewise.
9500 (vst4_s32): Likewise.
9501 (vst4_u8): Likewise.
9502 (vst4_u16): Likewise.
9503 (vst4_u32): Likewise.
9504 (vst4_f16): Likewise.
9505 (vst4_f32): Likewise.
9506 (vst4_p64): Likewise.
9507 (vst4q_s8): Likewise.
9508 (vst4q_p8): Likewise.
9509 (vst4q_s16): Likewise.
9510 (vst4q_p16): Likewise.
9511 (vst4q_s32): Likewise.
9512 (vst4q_s64): Likewise.
9513 (vst4q_u8): Likewise.
9514 (vst4q_u16): Likewise.
9515 (vst4q_u32): Likewise.
9516 (vst4q_u64): Likewise.
9517 (vst4q_f16): Likewise.
9518 (vst4q_f32): Likewise.
9519 (vst4q_f64): Likewise.
9520 (vst4q_p64): Likewise.
9521 (vtbx4_s8): Likewise.
9522 (vtbx4_u8): Likewise.
9523 (vtbx4_p8): Likewise.
9524 (vtrn_f32): Likewise.
9525 (vtrn_p8): Likewise.
9526 (vtrn_p16): Likewise.
9527 (vtrn_s8): Likewise.
9528 (vtrn_s16): Likewise.
9529 (vtrn_s32): Likewise.
9530 (vtrn_u8): Likewise.
9531 (vtrn_u16): Likewise.
9532 (vtrn_u32): Likewise.
9533 (vtrnq_f32): Likewise.
9534 (vtrnq_p8): Likewise.
9535 (vtrnq_p16): Likewise.
9536 (vtrnq_s8): Likewise.
9537 (vtrnq_s16): Likewise.
9538 (vtrnq_s32): Likewise.
9539 (vtrnq_u8): Likewise.
9540 (vtrnq_u16): Likewise.
9541 (vtrnq_u32): Likewise.
9542 (vrsqrte_f16): Likewise.
9543 (vrsqrteq_f16): Likewise.
9544 (vsqrt_f16): Likewise.
9545 (vsqrtq_f16): Likewise.
9546 (vabd_f16): Likewise.
9547 (vabdq_f16): Likewise.
9548 (vpadd_f16): Likewise.
9549 (vpaddq_f16): Likewise.
9550 (vpmax_f16): Likewise.
9551 (vpmaxq_f16): Likewise.
9552 (vpmaxnm_f16): Likewise.
9553 (vpmaxnmq_f16): Likewise.
9554 (vpmin_f16): Likewise.
9555 (vpminq_f16): Likewise.
9556 (vpminnm_f16): Likewise.
9557 (vpminnmq_f16): Likewise.
9558 (vrsqrts_f16): Likewise.
9559 (vrsqrtsq_f16): Likewise.
9561 2019-09-25 Richard Biener <rguenther@suse.de>
9563 PR tree-optimization/91896
9564 * tree-vect-loop.c (vectorizable_reduction): The single
9565 def-use cycle optimization cannot apply when there's more
9566 than one pattern stmt involved.
9568 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9570 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
9571 the 'P' mode iterator, replacing the (removed) SI and DI variants.
9572 (reload_macho_picbase_<mode>): Likewise.
9574 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9576 * config/rs6000/rs6000.md: Move darwin.md include until
9577 after the definition of the mode iterators.
9579 2019-09-23 Martin Sebor <msebor@redhat.com>
9581 PR tree-optimization/91570
9582 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
9583 non-constant minlen, maxlen and maxbound.
9585 2019-09-24 Richard Biener <rguenther@suse.de>
9587 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
9589 (_stmt_vec_info::cond_reduc_code): ... this.
9590 (_stmt_vec_info::induc_cond_initial_val): Add.
9591 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
9592 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
9593 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
9594 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
9595 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
9597 (vect_create_epilog_for_reduction): Drop special
9598 induction condition reduction params, pass in reduction code
9600 (vectorizable_reduction): Perform condition reduction kind
9601 selection only at analysis time. Adjust passing on state.
9603 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9605 * config/aarch64/aarch64.md (mov<mode>): Don't call
9606 aarch64_split_dimode_const_store on volatile MEM.
9608 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
9610 * config/aarch64/aarch64-option-extensions.def (fp16fml):
9611 Update hwcap string for fp16fml.
9613 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9616 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9617 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9619 2019-09-24 Martin Liska <mliska@suse.cz>
9621 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9622 instead of if-elseif-elseif-...
9623 * gimple-expr.c (extract_ops_from_tree): Likewise.
9624 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9625 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9627 2019-09-24 Martin Jambor <mjambor@suse.cz>
9630 * ipa-param-manipulation.c (carry_over_param): Make a method of
9631 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9632 in case of a context mismatch.
9633 (ipa_param_body_adjustments::common_initialization): Adjust call to
9635 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9636 private method carry_over_param.
9638 2019-09-24 Martin Jambor <mjambor@suse.cz>
9641 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9643 2019-09-24 Richard Biener <rguenther@suse.de>
9645 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9648 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9650 * config/arm/t-arm (arm-builtins.o): Add dependency on
9651 arm_acle_builtins.def.
9653 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9656 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9657 canonical CONST_INTs. Use gen_rtvec.
9659 2019-09-23 Richard Biener <rguenther@suse.de>
9661 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9662 avoid adjusting by + 0 or * 1.
9663 (vect_create_epilog_for_reduction): Get reduction code only
9664 when necessary. Deal with adjustment_def only when necessary.
9666 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9668 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9671 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9674 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9677 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9679 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9680 code. Merge code blocks with common conditionals. Use declared
9681 macro instead of a magic number for PIC level.
9683 2019-09-21 Martin Sebor <msebor@redhat.com>
9686 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9687 Simplify computation of the offset of the referenced subobject.
9689 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9691 * config/darwin.c (machopic_legitimize_pic_address): Check
9694 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9696 * ira-conflicts.c (can_use_same_reg_p): New function.
9697 (process_reg_shuffles): Take an insn parameter. Ignore cases
9698 in which input operand op_num could seemingly never be allocated
9699 to the same register as the destination.
9700 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9702 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9704 * simplify-rtx.c (neg_const_int): Replace with...
9705 (neg_poly_int_rtx): ...this new function.
9706 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9707 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9708 (simplify_plus_minus): Likewise for constant terms here.
9710 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9712 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9713 HOST_WIDE_PRINT_UNSIGNED.
9715 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9717 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9720 2019-09-20 Maya Rashish <coypu@sdf.org>
9723 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9724 Define to speculation_safe_value_not_needed.
9726 2019-09-20 Richard Biener <rguenther@suse.de>
9727 Uros Bizjak <ubizjak@gmail.com>
9730 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9732 (general_scalar_chain::convert_op): Force not suitable memory
9733 operands to a register.
9735 2019-09-20 Richard Biener <rguenther@suse.de>
9737 PR tree-optimization/91821
9738 * tree-vect-loop.c (check_reduction_path): Check we can compute
9740 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9741 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9742 operands in canonical order.
9743 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9744 STMT_VINFO_REDUC_IDX.
9745 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9746 (STMT_VINFO_REDUC_IDX): Likewise.
9748 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9751 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9753 2019-09-20 Richard Biener <rguenther@suse.de>
9755 PR tree-optimization/91822
9756 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9758 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9759 for reduc_index in nested cycles, adjust vectorizable_condition
9761 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9763 (vect_analyze_stmt): Adjust.
9764 (vect_transform_stmt): Likewise.
9766 2019-09-20 Richard Biener <rguenther@suse.de>
9769 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9770 Ensure there's a sequence point between allocating the new register
9771 and passing a reference to a reg via regno_reg_rtx.
9773 2019-09-20 Martin Jambor <mjambor@suse.cz>
9775 * coretypes.h (cgraph_edge): Declare.
9776 * ipa-param-manipulation.c: Rewrite.
9777 * ipa-param-manipulation.h: Likewise.
9778 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9779 (OBJS): Added ipa-sra.o.
9780 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9781 and ref_p, added fields param_adjustments and performed_splits.
9782 (struct cgraph_clone_info): Remove ags_to_skip and
9783 combined_args_to_skip, new field param_adjustments.
9784 (cgraph_node::create_clone): Changed parameters to use
9785 ipa_param_adjustments.
9786 (cgraph_node::create_virtual_clone): Likewise.
9787 (cgraph_node::create_virtual_clone_with_body): Likewise.
9788 (tree_function_versioning): Likewise.
9789 (cgraph_build_function_type_skip_args): Removed.
9790 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9791 using ipa_param_adjustments.
9792 (clone_of_p): Likewise.
9793 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9794 (build_function_decl_skip_args): Likewise.
9795 (duplicate_thunk_for_node): Adjust parameters using
9796 ipa_param_body_adjustments, copy param_adjustments instead of
9798 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9799 (cgraph_node::create_virtual_clone): Likewise.
9800 (cgraph_node::create_version_clone_with_body): Likewise.
9801 (cgraph_materialize_clone): Likewise.
9802 (symbol_table::materialize_all_clones): Likewise.
9803 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9804 ipa_replace_map check.
9805 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9806 (initialize_node_lattices): Make aware that some parameters might have
9807 already been removed.
9808 (want_remove_some_param_p): New function.
9809 (create_specialized_node): Convert to using ipa_param_adjustments and
9810 deal with possibly pre-existing adjustments.
9811 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9812 (output_node_opt_summary): Do not stream removed fields. Stream
9813 parameter adjustments instead of argumetns to skip.
9814 (input_node_opt_summary): Likewise.
9815 (input_node_opt_summary): Likewise.
9816 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9817 * lto-streamer.h (lto_section_type): Likewise.
9818 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9820 (copy_decl_to_var): Declare.
9821 * tree-inline.c (update_clone_info): Do not remap old_tree.
9822 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9823 statements, walk all extra generated statements and remap their
9825 (redirect_all_calls): Add killed SSA names to a hash set.
9826 (remap_ssa_name): Do not remap killed SSA names.
9827 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9828 half of functionality moved to ipa_param_body_adjustments.
9829 (copy_decl_to_var): Make exported.
9830 (copy_body): Destroy killed_new_ssa_names hash set.
9831 (expand_call_inline): Remap performed splits.
9832 (update_clone_info): Likewise.
9833 (tree_function_versioning): Simplify tree_map processing. Updated to
9834 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9835 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9836 for the new interface.
9837 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9838 (simd_clone_compute_base_data_type): Likewise.
9839 (simd_clone_init_simd_arrays): Adjust for the new interface.
9840 (simd_clone_adjust_argument_types): Likewise.
9841 (struct modify_stmt_info): Likewise.
9842 (ipa_simd_modify_stmt_ops): Likewise.
9843 (ipa_simd_modify_function_body): Likewise.
9844 (simd_clone_adjust): Likewise.
9845 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9846 (type_internals_preclude_sra_p): Make public.
9847 * tree-sra.h: New file.
9848 * ipa-inline-transform.c (save_inline_function_body): Update to
9849 refelct new tree_function_versioning signature.
9850 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9851 ipa_param_adjustments to get current parameter indices.
9852 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9853 (ipcp_update_bits): Likewise.
9854 (ipcp_update_vr): Likewise.
9855 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9856 * ipa-sra.c: New file.
9857 * multiple_target.c (create_target_clone): Update to reflet new type
9858 of create_version_clone_with_body.
9859 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9860 tree_function_versioning.
9861 (modify_function): Update to reflect new type of
9862 tree_function_versioning.
9863 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9864 * passes.def: Remove old IPA-SRA and add new one.
9865 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9866 (make_pass_ipa_sra): Declare.
9867 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9869 * doc/invoke.texi (ipa-sra-max-replacements): New.
9871 2019-09-19 Martin Sebor <msebor@redhat.com>
9874 * builtins.c (component_size): Correct trailing array computation,
9875 rename to component_ref_size and move...
9876 (compute_objsize): Adjust.
9877 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9878 (builtin_access::strict): Do not consider memmove.
9879 (builtin_access::write_off): New function.
9880 (builtin_memref::builtin_memref): Initialize refsize.
9881 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9883 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9885 (builtin_access::builtin_access): Initialize dstoff to destination
9886 refeence offset here instead of in maybe_diag_overlap. Adjust
9887 referencess even to unrelated objects. Adjust sizrange of bounded
9888 string functions to reflect bound. For strcat, adjust destination
9889 sizrange by that of source.
9890 (builtin_access::strcat_overlap): Adjust offsets and sizes
9891 to reflect the increase in destination sizrange above.
9892 (builtin_access::overlap): Do not set dstoff here but instead
9893 in builtin_access::builtin_access.
9894 (check_bounds_or_overlap): Use builtin_access::write_off.
9895 (maybe_diag_access_bounds): Add argument. Add informational notes.
9896 (dump_builtin_memref, dump_builtin_access): New functions.
9897 * tree.c (component_ref_size): ...to here.
9898 * tree.h (component_ref_size): Declare.
9899 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9900 nul in the size of the source string.
9902 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9905 * doc/cpp.texi: Document support for extended characters in
9907 * doc/cppopts.texi: Likewise.
9909 2019-09-19 Richard Biener <rguenther@suse.de>
9911 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9912 (check_reduction_path): New overload having the path as result.
9913 (vect_is_simple_reduction): From the detected reduction
9914 path build a SLP reduction chain if possible.
9916 2019-09-19 Richard Biener <rguenther@suse.de>
9919 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9920 Force operand to a register if it isn't nonimmediate_operand.
9922 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9924 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9925 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9926 (logical_op): Remove code attribute.
9927 (logical_OP): Likewise.
9929 2019-09-19 Martin Liska <mliska@suse.cz>
9931 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9934 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9936 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9939 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9940 for NE comparison of TImode values.
9941 (aarch64_emit_load_exclusive): Add support for TImode.
9942 (aarch64_emit_store_exclusive): Likewise.
9943 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9944 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9945 Change iterator from ALLI to ALLI_TI.
9946 (@atomic_compare_and_swap<JUST_TI>): New.
9947 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9948 (aarch64_load_exclusive_pair): New.
9949 (aarch64_store_exclusive_pair): New.
9950 * config/aarch64/iterators.md (JUST_TI): New.
9952 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9953 strong_zero_p for aarch64_track_speculation; unify some code paths;
9954 use aarch64_gen_compare_reg instead of open-coding.
9956 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9957 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9958 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9959 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9960 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9961 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9962 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9963 (atomic_<atomic_op><ALLI>): Likewise.
9964 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9965 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9966 * doc/invoke.texi: Document -moutline-atomics.
9968 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9970 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9971 trivial predicate for condition branch.
9972 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9974 (compute_bb_predicates): Update predicate based on post-dominating
9976 (analyze_function_body): Calculate post-dominating information.
9978 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9980 * tree-vectorizer.h (vectorizable_condition): Take an int
9981 reduction index instead of a boolean flag.
9982 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9983 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9984 reductions if the reduction accumulator is the "then" rather
9985 than the "else" value.
9986 (vect_analyze_stmt): Update call accordingly.
9987 (vect_transform_stmt): Likewise.
9988 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9989 asserting that the index is > 0.
9991 2019-09-19 Martin Liska <mliska@suse.cz>
9993 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9994 (sort_congruence_classes_by_decl_uid): Likewise.
9995 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9997 (sem_item_optimizer::merge_classes): Likewise.
9999 2019-09-19 Richard Biener <rguenther@suse.de>
10001 PR tree-optimization/91812
10002 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
10005 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10007 * defaults.h (TARGET_UNIT): New macro.
10008 (target_unit): New type.
10009 * rtl.h (native_encode_rtx, native_decode_rtx)
10010 (native_decode_vector_rtx, subreg_size_lsb): Declare.
10011 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
10012 * rtlanal.c (subreg_lsb_1): Delete.
10013 (subreg_size_lsb): New function.
10014 * simplify-rtx.c: Include rtx-vector-builder.h
10015 (simplify_immed_subreg): Delete.
10016 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
10017 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
10019 (simplify_subreg): Use them.
10020 (test_vector_subregs_modes, test_vector_subregs_repeating)
10021 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
10022 (test_vector_subregs): New functions.
10023 (test_vector_ops): Call test_vector_subregs for integer vector
10024 modes with at least 2 elements.
10026 2019-09-19 Richard Biener <rguenther@suse.de>
10028 * tree-parloops.c (parloops_is_slp_reduction): Do not set
10029 LOOP_VINFO_OPERANDS_SWAPPED.
10030 (parloops_is_simple_reduction): Likewise.
10031 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
10032 initialize operands_swapped.
10033 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
10034 (vect_is_slp_reduction): Do not swap operands.
10035 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
10036 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
10038 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
10041 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
10042 Add avx_partial_xmm_update.
10044 2019-09-18 Jim Wilson <jimw@sifive.com>
10047 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
10048 (riscv_move_integer): Likewise.
10049 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
10050 riscv_move_integer arg.
10051 (riscv_legitimize_move): Likewise.
10052 (riscv_force_temporary): New parameter in_splitter. Don't call
10054 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
10056 (riscv_add_offset): Likewise.
10057 (riscv_split_symbol): New parameter in_splitter. Pass to
10058 riscv_force_temporary.
10059 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10061 (riscv_move_integer): New parameter in_splitter. New local
10062 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10064 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10065 riscv_split_symbol, and riscv_force_temporary args.
10066 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10067 riscv_move_integer arg.
10068 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10070 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10073 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10074 hard register store cost to 6.
10076 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10079 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10080 pseudo register store cost from 3 to 6 to make it the same as
10083 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10086 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10087 (one_cmpldi2): Likewise.
10088 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10089 of the constant parts is simple.
10090 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10091 (logical_op): Add new code attribute.
10092 (logical_OP): Likewise.
10093 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10094 (arm_iordi_operand): Add predicate.
10095 (arm_xordi_operand): Add predicate.
10097 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10099 * config/arm/arm.md (maddsidi4): Remove expander.
10100 (mulsidi3adddi): Remove pattern.
10101 (mulsidi3adddi_v6): Likewise.
10102 (mulsidi3_nov6): Likewise.
10103 (mulsidi3_v6): Likewise.
10104 (umulsidi3): Remove expander.
10105 (umulsidi3_nov6): Remove pattern.
10106 (umulsidi3_v6): Likewise.
10107 (umulsidi3adddi): Likewise.
10108 (umulsidi3adddi_v6): Likewise.
10109 (<Us>mulsidi3): Add combined expander.
10110 (<Us>maddsidi4): Likewise.
10111 (<US>mull): Add combined umull and smull pattern.
10112 (<US>mlal): Likewise.
10113 * config/arm/iterators.md (Us): Add new iterator.
10115 2019-09-18 Richard Biener <rguenther@suse.de>
10117 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10119 (vectorize_fold_left_reduction): Remove assert.
10120 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10121 operand in position 2. Remove assert.
10123 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10125 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10126 (smulsi3_highpart_nov6): Remove pattern.
10127 (smulsi3_highpart_v6): Likewise.
10128 (umulsi3_highpart): Likewise.
10129 (umulsi3_highpart_nov6): Likewise.
10130 (umulsi3_highpart_v6): Likewise.
10131 (<US>mull_high): Add new combined multiply pattern.
10133 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10135 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10136 (arm_mulsi3_v6): Likewise.
10137 (mulsi3addsi_v6): Likewise.
10138 (mulsi3subsi): Likewise.
10139 (mul): Add new multiply pattern.
10143 2019-09-18 Richard Biener <rguenther@suse.de>
10145 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10146 (parloops_valid_reduction_input_p): Copy from
10147 valid_reduction_input_p.
10148 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10149 (parloops_needs_fold_left_reduction_p): Copy from
10150 needs_fold_left_reduction_p.
10151 (parloops_is_simple_reduction): Copy from
10152 vect_is_simple_reduction.
10153 (parloops_force_simple_reduction): Copy from
10154 vect_force_simple_reduction.
10155 (gather_scalar_reductions): Adjust.
10156 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10157 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10159 2019-09-18 Richard Biener <rguenther@suse.de>
10161 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10162 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10164 (vect_create_epilog_for_reduction): Remove dead code.
10166 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10168 * varasm.c (assemble_real): Generate canonical const_ints.
10170 2019-09-18 Richard Biener <rguenther@suse.de>
10173 * lto-streamer-in.c (input_eh_regions): Move EH init to
10174 lto_materialize_function.
10175 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10178 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10180 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10183 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10185 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10186 of checking specifically for INTEGER_CST.
10188 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10190 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10191 sizes instead of uhwi sizes.
10193 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10195 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10196 (add_const_value_attribute): Handle CONST_POLY_INT.
10198 2019-09-18 Martin Liska <mliska@suse.cz>
10200 * dbgcnt.def (store_merging): New counter.
10201 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10202 Use it in store merging.
10204 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10206 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10208 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10209 * config/arm/arm.c (arm_sched_variable_issue): New function.
10210 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10212 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10214 * config/arm/types.md (no_reservation): New reservation.
10215 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10217 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10218 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10219 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10220 * config/arm/arm1020e.md (1020alu_op): Likewise.
10221 * config/arm/arm1026ejs.md (alu_op): Likewise.
10222 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10223 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10224 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10225 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10226 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10227 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10228 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10229 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10230 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10231 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10232 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10233 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10234 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10235 * config/arm/fa526.md (526_alu_op): Likewise.
10236 * config/arm/fa606te.md (606te_alu_op): Likewise.
10237 * config/arm/fa626te.md (626te_alu_op): Likewise.
10238 * config/arm/fa726te.md (726te_alu_op): Likewise.
10239 * config/arm/xgene1.md (xgene1_nop): Likewise.
10241 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10243 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10244 "no_insn" to "branch".
10246 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10248 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10250 2019-09-17 Richard Biener <rguenther@suse.de>
10253 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10254 was missing generate locations only once.
10256 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
10259 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
10261 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
10262 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
10263 for switch default case using range analysis information.
10265 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
10268 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
10269 mode attributed is supported by FDPIC.
10271 2019-09-17 Richard Biener <rguenther@suse.de>
10273 PR tree-optimization/91790
10274 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
10275 use the correct DR for setting up realignment.
10277 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10280 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
10281 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
10282 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
10283 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
10285 2019-09-16 Jason Merrill <jason@redhat.com>
10287 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
10289 2019-09-16 Martin Liska <mliska@suse.cz>
10291 * gimple-fold.c (or_comparisons_1): Remove rules moved
10293 * match.pd: ... here.
10295 2019-09-16 Martin Liska <mliska@suse.cz>
10297 * gimple-fold.c (or_comparisons_1): Remove rules
10299 * match.pd: ... here.
10301 2019-09-16 Martin Liska <mliska@suse.cz>
10303 * genmatch.c (dt_node::append_simplify): Do not print
10304 warning when we have duplicate patterns belonging
10305 to a same simplify rule.
10306 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
10307 (maybe_fold_comparisons_from_match_pd): Handle
10308 tcc_comparison as a results.
10309 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
10311 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10312 Qi Feng <ffengqi@linux.ibm.com>
10314 PR middle-end/88784
10315 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
10316 (x > y && x == XXX_MIN): Optimize into 'false'.
10317 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
10318 (x < y && x != XXX_MAX): Optimize into 'x < y'.
10319 (x < y && x == XXX_MAX): Optimize into 'false'.
10320 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
10321 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
10322 (x <= y || x != XXX_MIN): Optimize into 'true'.
10323 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
10324 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
10325 (x >= y || x != XXX_MAX): Optimize into 'true'.
10326 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
10328 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10329 Martin Liska <mliska@suse.cz>
10331 * gimple-fold.c (and_comparisons_1): Add type as first
10333 (and_var_with_comparison): Likewise.
10334 (and_var_with_comparison_1): Likewise.
10335 (or_comparisons_1): Likewise.
10336 (or_var_with_comparison): Likewise.
10337 (or_var_with_comparison_1): Likewise.
10338 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
10339 (maybe_fold_or_comparisons): Likewise.
10340 (maybe_fold_comparisons_from_match_pd): New.
10341 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
10342 (maybe_fold_or_comparisons): Likewise.
10343 * gimple.c (gimple_size): Make it public and add num_ops argument.
10344 (gimple_init): New function.
10345 (gimple_alloc): Call gimple_init.
10346 * gimple.h (gimple_size): New.
10347 (gimple_init): Likewise.
10348 * tree-if-conv.c (fold_or_predicates): Pass type.
10349 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10350 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
10351 (optimize_vec_cond_expr): Likewise.
10352 (ovce_extract_ops): Return type of conditional expression.
10353 * tree-ssanames.c (init_ssa_name_imm_use): New.
10354 (make_ssa_name_fn): Use init_ssa_name_imm_use.
10355 * tree-ssanames.h (init_ssa_name_imm_use): New.
10357 2019-09-16 Richard Biener <rguenther@suse.de>
10359 PR tree-optimization/91756
10360 PR tree-optimization/87132
10361 * tree-ssa-alias.h (enum translate_flags): New.
10362 (get_continuation_for_phi): Use it instead of simple bool flag.
10363 (walk_non_aliased_vuses): Likewise.
10364 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10365 (get_continuation_for_phi): When looking across backedges only
10366 disallow valueization.
10367 (walk_non_aliased_vuses): Adjust.
10368 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
10371 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
10373 PR middle-end/80791
10374 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
10375 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10376 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10377 * target.def (have_count_reg_decr_p): New hook.
10378 (doloop_cost_for_generic): Likewise.
10379 (doloop_cost_for_address): Likewise.
10380 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
10381 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10382 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10383 * doc/tm.texi: Regenerate.
10384 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
10386 (record_group): Init doloop_p.
10387 (add_candidate_1): Add optional argument doloop, change the handlings
10389 (add_candidate): Likewise.
10390 (generic_predict_doloop_p): Update attribute.
10391 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
10392 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
10393 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
10395 (get_computation_cost): Update for doloop IV cand extra cost.
10396 (determine_group_iv_cost_cond): Update for doloop IV cand.
10397 (determine_iv_cost): Likewise.
10398 (ivopts_estimate_reg_pressure): Likewise.
10399 (may_eliminate_iv): Update handlings for doloop IV cand.
10400 (add_iv_candidate_for_doloop): New function.
10401 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
10402 (iv_ca_set_no_cp): Update for doloop IV cand.
10403 (iv_ca_set_cp): Likewise.
10404 (iv_ca_dump): Dump register cost.
10405 (find_doloop_use): New function.
10406 (analyze_and_mark_doloop_use): Likewise.
10407 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
10409 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10411 PR middle-end/91708
10412 * cse.c (cse_insn): Do not replace anything with a
10415 2019-09-13 Ian Lance Taylor <iant@golang.org>
10417 * doc/invoke.texi (Optimize Options): Fix typo.
10419 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
10421 PR tree-optimization/89386
10422 * config/i386/sse.md (smulhrs<mode>3): New expander.
10423 (smulhrsv4hi3): Ditto.
10425 2019-09-12 Richard Biener <rguenther@suse.de>
10427 PR tree-optimization/91750
10428 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10429 in the type of the evolution.
10431 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10433 PR tree-optimization/89386
10434 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10435 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10436 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10437 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10438 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10439 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10440 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10441 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10442 (su, r): Handle the unspecs above.
10443 (bt): New int attribute.
10444 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10445 * internal-fn.c (first_commutative_argument): Commutativity info for
10447 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10448 (umulhrs_optab): New optabs.
10449 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10450 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10451 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10453 (vect_vect_recog_func_ptrs): Add it.
10455 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10457 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10460 2019-09-11 Nathan Sidwell <nathan@acm.org>
10462 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10463 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10465 2019-09-11 Richard Biener <rguenther@suse.de>
10467 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10468 * lto-wrapper.c (merge_and_complain): Pick up -g.
10469 (append_compiler_options): Likewise.
10470 (run_gcc): Re-instantiate handling -g0 at link-time.
10471 * doc/invoke.texi (flto): Document debug info generation.
10473 2019-09-11 Richard Biener <rguenther@suse.de>
10475 PR tree-optimization/90387
10476 * vr-values.c (vr_values::extract_range_basic): After inlining
10477 simplify non-constant __builtin_constant_p to false.
10479 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
10481 PR rtl-optimization/89795
10482 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
10483 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
10485 2019-09-11 Jakub Jelinek <jakub@redhat.com>
10487 PR tree-optimization/91723
10488 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
10489 instead of pointer equality when checking if argument vectypes are
10492 PR middle-end/91725
10493 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
10494 of get_nonzero_bits, only call it for integral types.
10496 2019-09-11 Richard Biener <rguenther@suse.de>
10499 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10501 * match.pd: Add flag_unsafe_math_optimizations check
10502 before deciding on the widest type in a binary math operation.
10504 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10506 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
10507 and CALL_REALLY_USED_REGISTERS must be defined, and that
10508 CALL_REALLY_USED_REGISTERS is preferred.
10509 * doc/tm.texi: Regenerate.
10510 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
10511 (call_really_used_regs): Likewise.
10512 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
10513 CALL_REALLY_USED_REGISTERS are defined.
10514 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
10515 initial value if defined.
10516 (initial_call_really_used_regs): Delete.
10517 (saved_call_really_used_regs): Likewise.
10518 (CALL_REALLY_USED_REGNO_P): Likewise.
10519 (init_reg_sets): Remove handling of call_really_used_regs.
10520 (save_register_info, restore_register_info, globalize_reg): Likewise.
10521 (init_reg_sets_1): Likewise. Use call_used_regs instead of
10522 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
10523 outside operand_reg_set.
10524 (fix_register): Don't change call_used_regs if
10525 CALL_REALLY_USED_REGISTERS is defined.
10526 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
10527 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
10528 instead of call_really_used_regs.
10529 (csky_conditional_register_usage): Remove the old handling of
10530 call_used_regs and change the handling of call_really_used_regs
10531 to use call_used_regs instead.
10532 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
10533 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
10534 making a register fixed.
10535 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
10536 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
10537 instead of call_really_used_regs.
10538 (m32r_conditional_register_usage): Don't set call_used_regs when
10539 making a register fixed.
10540 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
10541 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
10542 instead of call_really_used_regs.
10543 (mips_interrupt_extra_call_saved_reg_p): Likewise.
10544 (mips_cfun_call_saved_reg_p): Likewise.
10545 (mips_swap_registers): Remove the old handling of call_used_regs
10546 and change the handling of call_really_used_regs to use call_used_regs
10548 (mips_conditional_register_usage): Likewise.
10549 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
10550 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
10551 instead of call_really_used_regs.
10552 (mn10300_get_live_callee_saved_regs): Likewise.
10553 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
10554 (mn10300_conditional_register_usage): Don't set call_used_regs when
10555 making a register fixed.
10556 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
10557 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10558 Remove the old handling of call_used_regs and change the handling
10559 of call_really_used_regs to use call_used_regs instead.
10560 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
10561 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
10562 instead of call_really_used_regs.
10563 (s390_register_info_gprtofpr, s390_register_info): Likewise.
10564 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
10565 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
10566 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
10567 (s390_conditional_register_usage): Remove the old handling of
10568 call_used_regs and change the handling of call_really_used_regs
10569 to use call_used_regs instead.
10570 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
10571 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
10572 (sh_fix_range, reg_unused_after): Likewise.
10573 (sh_conditional_register_usage): Remove the old handling of
10574 call_used_regs and change the handling of call_really_used_regs
10575 to use call_used_regs instead.
10576 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
10577 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
10578 call_used_regs when making a register fixed.
10579 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
10580 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
10581 call_used_regs when making a register fixed.
10582 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
10583 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
10584 set call_used_regs when making a register fixed.
10585 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
10586 * config/visium/visium.c (visium_conditional_register_usage): Remove
10587 the old handling of call_used_regs and change the handling of
10588 call_really_used_regs to use call_used_regs instead.
10590 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10592 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
10593 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
10594 * reginfo.c (call_used_regs): New macro.
10596 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10598 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
10600 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10601 (bpf_expand_epilogue): Likewise.
10602 * config/c6x/c6x.c (c6x_save_reg): Likewise.
10603 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10604 (ft32_expand_epilogue): Likewise.
10605 * config/i386/i386.c (ix86_save_reg): Likewise.
10606 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
10607 (moxie_expand_epilogue): Likewise.
10608 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10609 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10610 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10612 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10614 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10615 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10616 instead of testing call_used_regs directly.
10617 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10618 (aarch64_components_for_bb): Likewise.
10619 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10620 * config/arc/arc.c (arc_must_save_register): Likewise.
10621 (arc_epilogue_uses): Likewise.
10622 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10623 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10624 (arm_compute_save_reg0_reg12_mask): Likewise.
10625 (arm_compute_save_core_reg_mask): Likewise.
10626 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10627 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10628 (cmse_nonsecure_entry_clear_before_return): Likewise.
10629 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10630 (arm_expand_epilogue): Likewise.
10631 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10632 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10633 (_reg_unused_after): Likewise.
10634 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10635 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10636 (add_to_reg, hwloop_optimize): Likewise.
10637 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10638 (bpf_expand_epilogue): Likewise.
10639 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10640 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10641 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10642 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10643 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10644 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10645 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10646 * config/frv/frv.c (frv_stack_info): Likewise.
10647 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10648 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10649 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10650 (move_callee_saved_registers): Likewise.
10651 * config/h8300/h8300.c (byte_reg): Likewise.
10652 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10653 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10654 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10655 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10656 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10657 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10658 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10659 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10660 * config/m32c/m32c.c (need_to_save): Likewise.
10661 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10662 * config/mcore/mcore.c (calc_live_regs): Likewise.
10663 * config/microblaze/microblaze.c (microblaze_must_save_register):
10665 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10666 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10667 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10668 (mmix_expand_epilogue): Likewise.
10669 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10670 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10671 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10672 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10673 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10674 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10675 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10676 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10677 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10678 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10679 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10680 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10681 * config/rl78/rl78.c (need_to_save): Likewise.
10682 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10683 (rs6000_stack_info, generate_set_vrsave): Likewise.
10684 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10685 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10686 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10687 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10688 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10689 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10690 (save_local_or_in_reg_p): Likewise.
10691 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10692 (xstormy16_epilogue_uses): Likewise.
10693 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10694 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10695 * config/v850/v850.c (compute_register_save_size): Likewise.
10696 * config/vax/vax.c (vax_expand_prologue): Likewise.
10697 * config/visium/visium.c (visium_save_reg_p): Likewise.
10698 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10699 * cselib.c (cselib_process_insn): Likewise.
10700 * df-scan.c (df_get_entry_block_def_set): Likewise.
10701 * function.c (aggregate_value_p): Likewise.
10702 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10703 * ira-lives.c (process_bb_node_lives): Likewise.
10704 * ira.c (do_reload): Likewise.
10705 * lra-lives.c (process_bb_lives): Likewise.
10706 * lra-remat.c (lra_remat): Likewise.
10707 * lra.c (lra): Likewise.
10708 * postreload.c (reload_combine_recognize_pattern): Likewise.
10709 (reload_cse_move2add): Likewise.
10710 * recog.c (peep2_find_free_register): Likewise.
10711 * regrename.c (check_new_reg_p): Likewise.
10712 * reload.c (find_equiv_reg): Likewise.
10713 * reload1.c (reload, find_reg): Likewise.
10714 * sel-sched.c (init_hard_regs_data): Likewise.
10716 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10718 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10719 regs_invalidated_by_call & ~fixed_reg_set instead of
10720 call_used_or_fixed_regs & ~fixed_reg_set.
10721 * config/sh/sh.c (output_stack_adjust): Likewise.
10723 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10725 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10726 (call_used_reg_set): Delete.
10727 (call_used_or_fixed_regs): New macro.
10728 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10729 of call_used_reg_set.
10730 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10731 instead of call_used_regs.
10732 (save_call_clobbered_regs): Likewise.
10733 * cfgcleanup.c (old_insns_match_p): Likewise.
10734 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10735 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10737 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10738 * config/sh/sh.c (output_stack_adjust): Likewise.
10739 * final.c (collect_fn_hard_reg_usage): Likewise.
10740 * ira-build.c (ira_build): Likewise.
10741 * ira-color.c (calculate_saved_nregs): Likewise.
10742 (allocno_reload_assign, calculate_spill_cost): Likewise.
10743 * ira-conflicts.c (ira_build_conflicts): Likewise.
10744 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10745 * ira-lives.c (process_bb_node_lives): Likewise.
10746 * ira.c (setup_reg_renumber): Likewise.
10747 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10748 * lra-constraints.c (need_for_call_save_p): Likewise.
10749 (need_for_split_p, inherit_in_ebb): Likewise.
10750 * lra-lives.c (process_bb_lives): Likewise.
10751 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10752 * postreload.c (reload_combine): Likewise.
10753 * regrename.c (find_rename_reg): Likewise.
10754 * reload1.c (reload_as_needed): Likewise.
10755 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10756 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10757 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10759 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10761 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10762 (no_caller_save_reg_set): Delete.
10763 * caller-save.c (init_caller_save): Don't initialize it.
10764 * ira-conflicts.c (ira_build_conflicts): Calculate
10765 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10767 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10769 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10770 (target_hard_regs::x_savable_regs): New field.
10771 (call_fixed_reg_set): Delete.
10772 (savable_regs): New macro,
10773 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10774 (init_reg_sets_1): Likewise. Initialize savable_regs.
10775 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10776 for all registers. Set savable_regs instead of call_fixed_reg_set.
10777 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10778 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10779 * config/sh/sh.c (output_stack_adjust): Likewise.
10781 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10783 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10784 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10785 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10787 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10789 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10790 * rtlanal.c (get_call_rtx_from): Likewise.
10791 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10792 than the pattern to get_call_rtx_from.
10793 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10794 an rtx_insn * instead of an rtx.
10795 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10797 2019-09-10 Martin Liska <mliska@suse.cz>
10799 * common.opt: Use newly added WarnRemoved.
10800 * config/aarch64/aarch64.opt: Likewise.
10801 * config/arm/arm.opt: Likewise.
10802 * config/i386/i386.opt: Likewise.
10803 * config/ia64/ia64.opt: Likewise.
10804 * config/rs6000/rs6000.opt: Likewise.
10805 * doc/options.texi: Document WarnRemoved properly.
10806 * dwarf2out.c (gen_producer_string): Handle renamed
10807 OPT_SPECIAL_warn_removed.
10808 * lto-opts.c (lto_write_options): Likewise.
10809 * lto-wrapper.c (merge_and_complain): Likewise.
10810 * opts-common.c (decode_cmdline_option): Likewise.
10811 (prune_options): Likewise.
10812 (read_cmdline_option): Likewise.
10813 (control_warning_option): Likewise.
10814 * opts.c (print_filtered_help): Likewise.
10815 * optc-gen.awk: Parse for WarnRemoved and make usage
10816 of Deprecated an error.
10817 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10819 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10821 * doc/install.texi: Fix syntax for html generation.
10823 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10825 PR middle-end/91680
10826 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10827 the shift type to type.
10829 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10831 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10833 (stack_protect_combined_test_insn): Likewise.
10835 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10836 Mickaël Guêné <mickael.guene@st.com>
10838 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10839 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10840 (load_tp_soft_fdpic): New pattern.
10841 (load_tp_soft): Disable in FDPIC mode.
10843 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10844 Mickaël Guêné <mickael.guene@st.com>
10846 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10847 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10848 (arm_call_tls_get_addr): Add FDPIC support.
10849 (legitimize_tls_address): Likewise.
10850 (arm_emit_tls_decoration): Likewise.
10852 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10853 Mickaël Guêné <mickael.guene@st.com>
10855 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10857 (arm_trampoline_init): Likewise.
10858 (arm_trampoline_adjust_address): Likewise.
10859 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10861 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10862 Mickaël Guêné <mickael.guene@st.com>
10864 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10865 (legitimize_pic_address): Enforce binding rules on function
10866 pointers in FDPIC mode.
10867 (arm_assemble_integer): Likewise.
10869 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10870 Mickaël Guêné <mickael.guene@st.com>
10872 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10873 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10876 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10877 Mickaël Guêné <mickael.guene@st.com>
10879 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10882 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10883 Mickaël Guêné <mickael.guene@st.com>
10885 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10887 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10889 * config/arm/arm.c (arm_option_override): Define pic register to
10891 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10892 have no decl or go through PLT.
10893 (calculate_pic_address_constant): New function.
10894 (legitimize_pic_address): Call calculate_pic_address_constant.
10895 (arm_load_pic_register): Handle TARGET_FDPIC.
10896 (arm_is_segment_info_known): New function.
10897 (arm_pic_static_addr): Add support for FDPIC.
10898 (arm_load_function_descriptor): New function.
10899 (arm_emit_call_insn): Add support for FDPIC.
10900 (arm_assemble_integer): Add support for FDPIC.
10901 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10902 Define. (FDPIC_REGNUM): New define.
10903 * config/arm/arm.md (call): Add support for FDPIC.
10904 (call_value): Likewise.
10905 (restore_pic_register_after_call): New pattern.
10906 (untyped_call): Disable if FDPIC.
10907 (untyped_return): Likewise.
10908 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10910 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10911 Mickaël Guêné <mickael.guene@st.com>
10913 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10914 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10915 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10916 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10917 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10918 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10919 * config/arm/uclinuxfdpiceabi.h: New file.
10921 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10923 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10925 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10926 Mickaël Guêné <mickael.guene@st.com>
10928 * config/arm/arm.opt: Add -mfdpic option.
10929 * doc/invoke.texi: Add documentation for -mfdpic.
10931 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10933 * expmed.c (extract_bit_field): Update function comment
10935 * expr.c (expand_expr_real): Update function comment
10937 (expand_misaligned_mem_ref): New helper function.
10938 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10939 Remove duplicate assignment to "base" at case MEM_REF.
10940 Remove a shadowed variable "unsignedp" at case VCE.
10942 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10944 * regset.h (regs_invalidated_by_call_regset): Delete.
10945 (fixed_reg_set_regset): Likewise.
10946 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10947 (fixed_reg_set_regset, persistent_obstack): Likewise.
10948 (init_reg_sets_1, globalize_reg): Update accordingly.
10949 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10950 instead of a bitmap.
10951 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10952 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10953 instead of regs_invalidated_by_call_regset.
10954 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10955 * df-scan.c (df_scan_start_dump): Likewise.
10956 * dse.c (copy_fixed_regs): Likewise.
10957 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10959 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10961 * array-traits.h: New file.
10962 * coretypes.h (array_traits, bitmap_view): New types.
10963 * bitmap.h: Include "array-traits.h"
10964 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10965 (base_bitmap_view, bitmap_view): New classes.
10966 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10967 * hard-reg-set.h: Include array-traits.h.
10968 (array_traits<HARD_REG_SET>): New struct.
10969 * regset.h (IOR_REG_SET_HRS): New macro.
10970 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10971 rather than iterating over each hard register.
10972 * sched-deps.c (sched_analyze_insn): Likewise.
10973 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10975 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10977 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10978 instead of a HARD_REG_SET *.
10979 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10980 (ira_build): Update call accordingly.
10981 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10983 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10985 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10986 (HARD_REG_SET::operator!=): Likewise.
10987 (hard_reg_set_equal_p): Delete.
10988 * cfgcleanup.c (old_insns_match_p): Use == instead of
10989 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10990 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10991 (add_allocno_hard_regs_to_forest): Likewise.
10992 (setup_allocno_available_regs_num): Likewise.
10993 * ira.c (setup_pressure_classes): Likewise.
10994 (setup_allocno_and_important_classes): Likewise.
10995 (setup_reg_class_relations): Likewise.
10996 * lra-lives.c (process_bb_lives): Likewise.
10997 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10999 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11001 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
11002 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11003 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
11004 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
11006 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
11007 * ira.c (setup_reg_renumber): Likewise.
11008 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11009 * regrename.c (regrename_find_superclass): Likewise.
11010 * reload1.c (find_reg): Likewise.
11012 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11014 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
11015 * caller-save.c (setup_save_areas): Use "&~" instead of
11016 AND_COMPL_HARD_REG_SET.
11017 (save_call_clobbered_regs): Likewise.
11018 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11020 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11021 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11022 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
11023 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11024 (mips_conditional_register_usage): Likewise.
11025 * config/sh/sh.c (output_stack_adjust): Likewise.
11026 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
11027 (setup_profitable_hard_regs): Likewise.
11028 (get_conflict_and_start_profitable_regs): Likewise.
11029 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11030 (ira_build_conflicts): Likewise.
11031 * ira-costs.c (restrict_cost_classes): Likewise.
11032 (setup_regno_cost_classes_by_aclass): Likewise.
11033 * ira-lives.c (process_bb_node_lives): Likewise.
11034 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
11035 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
11036 (setup_allocno_and_important_classes, setup_class_translate_array)
11037 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
11039 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11040 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11041 (process_alt_operands, inherit_in_ebb): Likewise.
11042 * lra-eliminations.c (update_reg_eliminate): Likewise.
11043 * lra-lives.c (process_bb_lives): Likewise.
11044 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
11045 * resource.c (find_dead_or_set_registers): Likewise.
11046 (mark_target_live_regs): Likewise.
11047 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
11048 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11049 (implicit_clobber_conflict_p): Likewise.
11050 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11051 (try_shrink_wrapping): Likewise.
11053 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11055 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
11056 (HARD_REG_SET::operator|=): Likewise.
11057 (IOR_HARD_REG_SET): Delete.
11058 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11060 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11061 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11062 * final.c (collect_fn_hard_reg_usage): Likewise.
11063 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11064 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11065 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11066 (propagate_some_info_from_allocno): Likewise.
11067 (copy_info_to_removed_store_destinations): Likewise.
11068 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11069 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11070 (fast_allocation): Likewise.
11071 * ira-conflicts.c (ira_build_conflicts): Likewise.
11072 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11073 (process_bb_node_lives): Likewise.
11074 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11075 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11076 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11077 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11078 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11079 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11080 (process_bb_lives): Likewise.
11081 * lra-spills.c (assign_spill_hard_regs): Likewise.
11082 * postreload.c (reload_combine): Likewise.
11083 * reginfo.c (init_reg_sets_1): Likewise.
11084 * regrename.c (merge_overlapping_regs, find_rename_reg)
11085 (merge_chains): Likewise.
11086 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11087 (find_reload_regs, finish_spills, choose_reload_regs_init)
11088 (emit_reload_insns): Likewise.
11089 * reorg.c (redundant_insn): Likewise.
11090 * resource.c (find_dead_or_set_registers, mark_set_resources)
11091 (mark_target_live_regs): Likewise.
11092 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11093 * sched-deps.c (sched_analyze_insn): Likewise.
11094 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11095 (find_best_reg_for_expr): Likewise.
11096 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11098 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11100 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11101 (HARD_REG_SET::operator&): Likewise.
11102 (AND_HARD_REG_SET): Delete.
11103 * caller-save.c (setup_save_areas): Use "&" instead of
11105 (save_call_clobbered_regs): Likewise.
11106 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11107 * config/m32c/m32c.c (reduce_class): Likewise.
11108 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11109 * final.c (get_call_reg_set_usage): Likewise.
11110 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11111 (setup_left_conflict_sizes_p): Likewise.
11112 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11113 (ira_build_conflicts): Likewise.
11114 * ira-costs.c (restrict_cost_classes): Likewise.
11115 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11116 (setup_reg_class_relations): Likewise.
11117 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11118 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11119 * resource.c (find_dead_or_set_registers): Likewise.
11120 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11122 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11124 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11125 (COMPL_HARD_REG_SET): Delete.
11126 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11127 of COMPL_HARD_REG_SET.
11128 (try_rename_operands): Likewise.
11129 * config/sh/sh.c (push_regs): Likewise.
11130 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11131 * lra-constraints.c (contains_reg_p): Likewise.
11132 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11134 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11136 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11137 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11138 of COPY_HARD_REG_SET.
11139 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11140 (epiphany_conditional_register_usage): Likewise.
11141 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11142 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11143 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11144 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11145 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11146 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11147 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11148 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11149 * config/sh/sh.c (output_stack_adjust): Likewise.
11150 * final.c (collect_fn_hard_reg_usage): Likewise.
11151 (get_call_reg_set_usage): Likewise.
11152 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11153 (ira_flattening): Likewise.
11154 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11155 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11156 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11157 (ira_reassign_pseudos): Likewise.
11158 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11159 (ira_build_conflicts): Likewise.
11160 * ira-costs.c (restrict_cost_classes): Likewise.
11161 (setup_regno_cost_classes_by_aclass): Likewise.
11162 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11163 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11164 (setup_stack_reg_pressure_class, setup_pressure_classes)
11165 (setup_allocno_and_important_classes, setup_class_translate_array)
11166 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11167 (ira_setup_eliminable_regset): Likewise.
11168 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11169 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11170 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11171 (process_alt_operands, inherit_in_ebb): Likewise.
11172 * lra-lives.c (process_bb_lives): Likewise.
11173 * lra-spills.c (assign_spill_hard_regs): Likewise.
11174 * lra.c (lra): Likewise.
11175 * mode-switching.c (new_seginfo): Likewise.
11176 * postreload.c (reload_combine): Likewise.
11177 * reg-stack.c (straighten_stack): Likewise.
11178 * reginfo.c (save_register_info, restore_register_info): Likewise.
11179 (init_reg_sets_1, record_subregs_of_mode): Likewise
11180 * regrename.c (create_new_chain, rename_chains): Likewise.
11181 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11182 (find_reload_regs): Likewise.
11183 * resource.c (find_dead_or_set_registers): Likewise.
11184 (mark_target_live_regs): Likewise.
11185 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11187 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11189 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11190 (note_pattern_stores): Declare.
11191 (note_stores): Take an rtx_insn *.
11192 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11193 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11194 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11195 (note_stores): Take an rtx_insn * as argument and process
11196 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11197 (note_pattern_stores): ...this.
11198 (find_first_parameter_load): Pass the insn rather than
11199 its pattern to note_stores.
11200 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11201 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11202 (insert_one_insn): Likewise.
11203 * combine.c (combine_instructions): Likewise.
11204 (likely_spilled_retval_p): Likewise.
11205 (try_combine): Use note_pattern_stores instead of note_stores.
11206 (record_dead_and_set_regs): Pass the insn rather than its pattern
11208 (reg_dead_at_p): Likewise.
11209 * config/bfin/bfin.c (workaround_speculation): Likewise.
11210 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11211 rather than an rtx.
11212 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11213 instead of note_stores.
11214 (frv_optimize_membar_local): Pass the insn rather than its pattern
11216 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11217 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11218 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11219 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11220 (mips_reorg_process_insns): Likewise.
11221 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11222 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11224 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11225 its pattern to note_stores.
11226 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11228 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11229 the insn to note_stores.
11230 (prescan_insns_for_dce): Update call accordingly.
11231 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11233 * df-problems.c (can_move_insns_across): Likewise.
11234 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11235 * function.c (assign_parm_setup_reg): Likewise.
11236 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11237 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11238 (single_set_gcse): Likewise.
11239 * ira.c (validate_equiv_mem): Likewise.
11240 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11242 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11243 pattern to note_stores.
11244 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11245 * loop-iv.c (simplify_using_initial_values): Likewise.
11246 * mode-switching.c (optimize_mode_switching): Likewise.
11247 * optabs.c (emit_libcall_block_1): Likewise.
11248 (expand_atomic_compare_and_swap): Likewise.
11249 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11250 (record_opr_changes): Likewise. Remove explicit handling of
11251 CALL_INSN_FUNCTION_USAGE.
11252 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11253 * regcprop.c (kill_clobbered_values): Likewise.
11254 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11256 * regrename.c (build_def_use): Likewise.
11257 * reload1.c (reload): Use note_pattern_stores instead of note_stores
11258 for mark_not_eliminable.
11259 (reload_as_needed): Pass the insn rather than its pattern
11261 (emit_output_reload_insns): Likewise.
11262 * resource.c (mark_target_live_regs): Likewise.
11263 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11264 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
11265 instead of note_stores.
11266 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
11267 its pattern to note_stores.
11268 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
11269 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
11271 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11273 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
11274 than a #define. Use a structure rather than an array as the
11275 fallback definition. Remove special cases for low array sizes.
11276 (const_hard_reg_set): New typedef.
11277 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
11278 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
11279 (hard_reg_set_empty_p): Likewise.
11280 (SET_HARD_REG_BIT): Use a function rather than a macro to
11281 handle the case in which HARD_REG_SET is a structure.
11282 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
11283 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
11284 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
11285 (IOR_COMPL_HARD_REG_SET): Likewise.
11286 (hard_reg_set_iterator::pset): Constify the pointer target.
11287 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
11288 of a "const HARD_REG_SET". Update the handling of non-integer
11290 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
11291 * reload.h: Likewise.
11292 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
11293 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
11294 of a "const HARD_REG_SET".
11295 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
11296 (range_in_hard_reg_set_p): Likewise.
11297 * ira-costs.c (restrict_cost_classes): Likewise.
11298 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
11299 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11300 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
11301 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
11302 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
11303 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
11304 take an unsigned int and open-code the HARD_REG_SET operations.
11306 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11308 * Makefile.in (OBJS): Remove bt-load.o.
11309 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
11310 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11311 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
11312 document that the option no longer does anything.
11313 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11314 * target.def (branch_target_register_class): Delete.
11315 (branch_target_register_callee_saved): Likewise.
11316 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11317 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
11318 * doc/tm.texi: Regenerate.
11319 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
11320 (make_pass_branch_target_load_optimize2): Likewise.
11321 * passes.def (pass_branch_target_load_optimize1): Likewise.
11322 (pass_branch_target_load_optimize2): Likewise.
11323 * targhooks.h (default_branch_target_register_class): Likewise.
11324 * targhooks.c (default_branch_target_register_class): Likewise.
11325 * opt-suggestions.c (test_completion_valid_options): Remove
11326 -fbtr-bb-exclusive from the list of test options.
11327 * bt-load.c: Remove.
11329 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11331 * match.pd: Add flag_unsafe_math_optimizations check
11332 before deciding on the widest type in a binary math operation.
11334 2019-09-09 Martin Liska <mliska@suse.cz>
11336 * config/i386/i386.opt: Update comment of removed
11337 options that are preserved only for backward
11340 2019-09-09 Jakub Jelinek <jakub@redhat.com>
11343 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
11344 instead of __v16qs.
11347 * config/i386/avxintrin.h (__v32qs): New typedef.
11348 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
11349 instead of __v32qi.
11351 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11353 * doc/invoke.texi (Option Summary): Cover eBPF.
11354 (eBPF Options): New section.
11355 * doc/extend.texi (BPF Built-in Functions): Likewise.
11356 (BPF Kernel Helpers): Likewise.
11358 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11360 * config.gcc: Support for bpf-*-* targets.
11361 * common/config/bpf/bpf-common.c: New file.
11362 * config/bpf/t-bpf: Likewise.
11363 * config/bpf/predicates.md: Likewise.
11364 * config/bpf/constraints.md: Likewise.
11365 * config/bpf/bpf.opt: Likewise.
11366 * config/bpf/bpf.md: Likewise.
11367 * config/bpf/bpf.h: Likewise.
11368 * config/bpf/bpf.c: Likewise.
11369 * config/bpf/bpf-protos.h: Likewise.
11370 * config/bpf/bpf-opts.h: Likewise.
11371 * config/bpf/bpf-helpers.h: Likewise.
11372 * config/bpf/bpf-helpers.def: Likewise.
11374 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11376 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11379 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11381 * opt-functions.awk (integer_range_info): Make sure values are in
11382 numeric context before operating with them.
11384 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
11386 * genemit.c (gen_split): Print the filename and line number where the
11387 splitter (or peephole2) was defined, to the dump file.
11389 2019-09-07 Jakub Jelinek <jakub@redhat.com>
11391 PR tree-optimization/91665
11392 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
11393 incompatible with the type of PHI result.
11395 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11398 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
11399 gen_unaligned_storedi for 4-byte aligned addresses.
11401 2019-09-06 Jim Wilson <jimw@sifive.com>
11403 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
11406 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11408 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
11410 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11412 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
11413 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
11415 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
11418 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
11419 cost of SSE->integer and integer->SSE moves from 2 to 6.
11420 (core_cost): Ditto.
11422 2019-09-06 Jakub Jelinek <jakub@redhat.com>
11424 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
11425 before testing TYPE_TRANSPARENT_AGGR.
11426 * calls.c (initialize_argument_information, load_register_parameters):
11429 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11431 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11433 (cmp_ior): Likewise.
11435 2019-09-06 Martin Liska <mliska@suse.cz>
11437 * doc/match-and-simplify.texi: Separate tuples with ;.
11439 2019-09-06 Martin Liska <mliska@suse.cz>
11442 * Makefile.in: Remove tlink.o.
11443 * collect2.c (do_link): New function isolated
11446 * collect2.h (do_tlink): Remove declaration of do_tlink.
11447 * doc/extend.texi: Remove documentation of -frepo.
11448 * doc/invoke.texi: Likewise.
11449 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11452 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11453 Jim Wilson <jimw@sifive.com>
11456 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11457 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11458 paradoxical_subreg_p (operands[0]).
11459 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11460 use as intermediate value.
11462 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11464 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11465 (sync_compare_and_swap<mode>_insn): Likewise.
11467 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11469 PR middle-end/91615
11470 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11471 without movmisalign optab.
11473 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11475 PR middle-end/91001
11476 PR middle-end/91105
11477 PR middle-end/91106
11478 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
11479 types, use type of their first field instead of type of
11480 args[i].tree_value.
11482 2019-09-05 Richard Biener <rguenther@suse.de>
11484 PR rtl-optimization/91656
11485 * postreload-gcse.c (record_last_mem_set_info): Revert addition
11488 2019-09-05 Richard Biener <rguenther@suse.de>
11490 PR middle-end/90501
11491 * tree-inline.c (declare_return_variable): Mark the return
11492 slot as addressable after building an address of it.
11494 2019-09-05 Arnaud Charlet <charlet@adacore.com>
11496 * doc/install.texi: Update and clarify requirements to build GNAT.
11498 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
11500 PR middle-end/91577
11501 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
11502 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
11503 call to be in memory.
11504 (pass_expand::execute): Call discover_nonconstant_array_refs before
11505 setting currently_expanding_to_rtl.
11507 2019-09-04 Caroline Tice <cmtice@google.com>
11509 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
11510 specified together.
11512 2019-09-04 Marek Polacek <polacek@redhat.com>
11514 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
11516 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
11519 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11520 for QI and HImode moves between SSE and general registers.
11522 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11525 * doc/invoke.texi: Document -Wenum-conversion.
11527 2019-09-04 Richard Biener <rguenther@suse.de>
11529 PR rtl-optimization/36262
11530 * postreload-gcse.c: Include intl.h and gcse.h.
11531 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
11532 to avoid linear list walk.
11533 (record_last_mem_set_info): Gate off if not computing transparentness.
11534 (get_bb_avail_insn): If transparentness isn't computed give up
11536 (gcse_after_reload_main): Skip compute_transp and extended PRE
11537 if gcse_or_cprop_is_too_expensive says so.
11539 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11541 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
11543 (msp430_select_section): Handle decls with the "noinit" attribute with
11544 default_elf_select_section.
11545 Handle SECCAT_RODATA_MERGE_* section types with
11546 default_elf_select_section.
11547 Add comments about handling of unsupported section types.
11548 (msp430_section_type_flags): Remove handling of the noinit section.
11550 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11552 * config/msp430/msp430.c (msp430_attr): Remove warnings about
11553 conflicting msp430-specific attributes.
11554 (msp430_section_attr): Likewise.
11555 Add warnings about conflicts with generic "noinit" and "section"
11557 Fix grammar in -mlarge error message.
11558 (msp430_data_attr): Rename to msp430_persist_attr.
11559 Add warnings about conflicts with generic "noinit" and "section"
11561 Add warning for when variable is not initialized.
11562 Chain conditionals which prevent the attribute being added.
11563 (ATTR_EXCL): New helper.
11564 (attr_reent_exclusions): New exclusion table.
11565 (attr_naked_exclusions): Likewise.
11566 (attr_crit_exclusions): Likewise.
11567 (attr_lower_exclusions): Likewise.
11568 (attr_upper_exclusions): Likewise.
11569 (attr_either_exclusions): Likewise.
11570 (attr_persist_exclusions): Likewise.
11571 (msp430_attribute_table): Update with exclusion rules.
11572 (msp430_output_aligned_decl_common): Don't output common symbol if decl
11575 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11577 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
11578 (msp430_handle_generic_attribute): New function.
11579 * doc/tm.texi: Regenerate.
11580 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
11581 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11582 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11583 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
11585 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
11587 PR tree-optimization/91504
11588 * match.pd: Add ((~a & b) ^a) --> (a | b).
11590 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11593 * config/i386/i386-expand.c (split_double_mode): If there is more than
11594 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
11595 already split matching MEM operand instead of calling adjust_address
11598 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
11600 * config.gcc: Obsolete spu target. Remove references to spu.
11601 * configure.ac: Remove references to spu.
11602 * configure: Regenerate.
11603 * config/spu/: Remove directory.
11604 * common/config/spu/: Remove directory.
11606 * doc/extend.texi: Remove references to spu.
11607 * doc/invoke.texi: Likewise.
11608 * doc/md.texi: Likewise.
11609 * doc/sourcebuild.texi: Likewise.
11611 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11613 PR middle-end/91603
11614 PR middle-end/91612
11615 PR middle-end/91613
11616 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11617 and SSA_NAME referring to CONSTANT_P correctly.
11619 2019-09-03 Richard Biener <rguenther@suse.de>
11621 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11622 (vn_nary_op_insert): Likewise.
11623 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11624 (vn_nary_op_lookup): Likewise.
11625 (vn_nary_op_insert): Likewise.
11627 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11629 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11630 (*op0, 1) instead of XEXP (*op1, 0).
11632 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11634 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11635 (aarch64_fjcvtzs): New define_insn.
11636 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11637 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11639 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11640 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11641 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11642 __ARM_FEATURE_JCVT where appropriate.
11643 * config/aarch64/arm_acle.h (__jcvt): Define.
11645 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11647 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11648 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11649 (aarch64_<frintnzs_op><mode>): New define_insn.
11650 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11651 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11652 __ARM_FEATURE_FRINT when appropriate.
11653 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11654 frint32x, frint64z, frint64x.
11655 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11656 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11657 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11658 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11659 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11660 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11661 * config/aarch64/iterators.md (VSFDF): Define.
11662 (FRINTNZX): Likewise.
11663 (frintnzs_op): Likewise.
11665 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11667 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11668 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11670 * config/aarch64/aarch64-tune.md: Regenerated.
11671 * doc/invoke.texi: Document the new processors.
11673 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11675 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11679 (sve2-sm4): Likewise.
11680 (sveaes): Likewise.
11681 (svesha3): Likewise.
11682 (svebitperm): Likewise.
11684 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11685 Richard Biener <rguenther@suse.de>
11687 PR tree-optimization/91597
11688 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11689 BIT_AND_EXPR optimization for pointers, even if both operand
11690 ranges don't include NULL, the result can be NULL.
11692 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11694 PR middle-end/91605
11695 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11696 (non_mem_decl_p): ...this.
11697 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11698 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11699 unconditionally as before.
11701 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11704 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11705 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11706 * tree.def (LTGT_EXPR): Likewise.
11707 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11709 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11712 * fold-const.c (range_check_type): For enumeral and boolean
11713 type, pass 1 to type_for_size langhook instead of
11714 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11715 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11716 (build_range_check): Don't call unsigned_type_for for pointer types.
11717 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11718 range_check_type result.
11720 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11722 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11723 (replace_ref): Do not replace a chain of only two candidates which are
11724 valid memory references.
11726 2019-09-02 Martin Liska <mliska@suse.cz>
11728 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11729 Bail out when we'll end up with the same number of clusters as
11731 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11732 (jump_table_cluster::can_be_handled): Remove the guard
11733 as it's already handled in ::is_enabled. Allocate output
11734 after early bail out.
11736 2019-09-02 Martin Liska <mliska@suse.cz>
11738 PR gcov-profile/91601
11739 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11740 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11741 also negative edges.
11742 (circuit): Handle also negative edges as they can happen
11743 in some situations.
11745 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11748 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11749 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11750 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11752 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11754 PR middle-end/91623
11755 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11756 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11757 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11761 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11762 GIMPLE_ASM TREE_LIST operands.
11764 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11766 * doc/generic.texi (Unary and Binary Expressions): Mark up
11767 an instance of TYPE_MIN.
11769 2019-08-31 Stafford Horne <shorne@gmail.com>
11771 * config/or1k/constraints.md (t): New constraint.
11772 * config/or1k/or1k.h (GOT_REGS): New register class.
11773 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11775 2019-08-30 Jim Wilson <jimw@sifive.com>
11777 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11778 and -fpic and -mplt then disable -msave-restore and warn.
11780 2019-08-30 Martin Sebor <msebor@redhat.com>
11782 PR middle-end/91599
11783 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11784 the statement doesn't have one.
11785 * gimple-pretty-print.c (percent_G_format): Same.
11787 PR middle-end/91584
11788 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11789 before using them to validate MEM_REF offset.
11791 2019-08-30 Marek Polacek <polacek@redhat.com>
11793 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11795 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11797 * config/arm/arm.md (unaligned_loaddi,
11798 unaligned_storedi): New unspec insn patterns.
11799 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11800 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11801 and unaligned_storedi for 4-byte aligned memory.
11802 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11803 4-byte aligned memory.
11805 2019-08-30 Martin Jambor <mjambor@suse.cz>
11807 tree-optimization/91579
11808 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11809 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11811 (arg_needs_copy_p): Removed.
11812 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11814 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11816 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11818 * config/i386/i386-features.c
11819 (general_scalar_chain::compute_convert_gain):
11820 Correct cost for double-word shifts.
11821 (general_scalar_to_vector_candidate_p): Reject count operands
11822 greater or equal to mode bitsize.
11824 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11826 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11827 for moves between SSE and non-general registers and between
11828 mask and non-general registers.
11829 (ix86_register_move_cost): Remove stalled comment.
11831 2019-08-29 Richard Biener <rguenther@suse.de>
11833 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11834 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11836 2019-08-29 Richard Biener <rguenther@suse.de>
11839 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11840 Do not emit scalar copies for debug-insns, instead replace
11841 their uses with the reg copy used in the chain or reset them
11842 if there is a reaching definition outside of the chain as well.
11844 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11847 * config/i386/i386-expand.c (expand_vec_perm_movs,
11848 expand_vec_perm_blend, expand_vec_perm_vpermil,
11849 expand_vec_perm_pshufb, expand_vec_perm_1,
11850 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11851 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11852 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11853 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11854 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11855 comments - replace ix86_expand_vec_perm_builtin_1 with
11856 ix86_expand_vec_perm_const_1.
11857 (expand_vec_perm2_vperm2f128_vblend): New function.
11858 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11859 expand_vec_perm2_vperm2f128_vblend as last resort.
11860 (canonicalize_perm): Formatting fix.
11862 PR tree-optimization/91351
11863 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11865 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11866 range_check_type returns NULL.
11867 * tree-switch-conversion.c (switch_conversion::build_one_array):
11868 Use range_check_type instead of unsigned_type_for, don't perform
11869 linear opt if it returns NULL.
11870 (bit_test_cluster::find_bit_tests): Formatting fix.
11871 (bit_test_cluster::emit): Use range_check_type instead of
11873 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11876 2019-08-29 Richard Biener <rguenther@suse.de>
11878 PR tree-optimization/91568
11879 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11880 (vect_update_max_nunits): Add overload for poly_uint64.
11881 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11882 (vect_build_slp_tree): Record max_nunits into the subtree
11883 and merge it upwards.
11884 (vect_print_slp_tree): Print max_nunits.
11886 2019-08-28 Marek Polacek <polacek@redhat.com>
11888 Implement P1152R4: Deprecating some uses of volatile.
11890 * doc/invoke.texi: Document -Wvolatile.
11892 2019-08-28 Marek Polacek <polacek@redhat.com>
11894 PR c++/91360 - Implement C++20 P1143R2: constinit.
11895 * doc/invoke.texi: Document -Wc++20-compat.
11897 2019-08-28 Martin Sebor <msebor@redhat.com>
11899 PR tree-optimization/91457
11900 * builtins.c (component_size): New function.
11901 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11902 * builtins.h (compute_objsize): Add argument.
11903 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11904 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11905 (vrp_prop::check_mem_ref): Same.
11906 (vrp_prop::search_for_addr_array): Set no-warning bit.
11907 (check_array_bounds): Same.
11909 2019-08-28 Martin Sebor <msebor@redhat.com>
11912 * opts-common.c (option_enabled): Correct checking for language
11915 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11917 * config/i386/i386.c (ix86_register_move_cost): Do not
11918 limit the cost of moves to/from XMM register to minimum 8.
11920 2019-08-28 Martin Jambor <mjambor@suse.cz>
11923 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11924 checking assert a normal assert to test it really is redundant.
11925 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11927 (update_jump_functions_after_inlining): Removed combining unary
11928 arithmetic operations with an ancestor jump function.
11929 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11932 2019-08-28 Richard Biener <rguenther@suse.de>
11934 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11935 add the MD problem.
11937 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11938 Richard Biener <rguenther@suse.de>
11940 * expr.c (expand_assignment): Handle misaligned DECLs.
11941 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11942 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11944 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11945 * varasm.c (build_constant_desc): Align constants of misaligned types.
11946 * config/arm/predicates.md (aligned_operand): New predicate.
11947 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11948 aligned_operand to check restrictions on memory addresses.
11949 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11950 * config/arm/vec-common.md (mov<VALL>): Likewise.
11952 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11955 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11956 V_128 iterator instead of VI_128.
11958 2019-08-28 Martin Liska <mliska@suse.cz>
11960 PR tree-optimization/90970
11961 * builtins.c (check_access): Remove assignment to maxread
11962 as it hasn't been used since when it was introduced in r255755.
11964 2019-08-27 Martin Sebor <msebor@redhat.com>
11966 PR tree-optimization/91567
11967 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11968 of unknown strings.
11969 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11970 to PTRDIFF_MAX - 2.
11972 2019-08-27 Jeff Law <law@redhat.com>
11974 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11975 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11977 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11980 * config/i386/i386-features.c (convert_scalars_to_vector):
11981 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11982 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11983 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11984 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11986 2019-08-27 Richard Biener <rguenther@suse.de>
11988 * config/i386/i386-features.h
11989 (general_scalar_chain::~general_scalar_chain): Add.
11990 (general_scalar_chain::insns_conv): New bitmap.
11991 (general_scalar_chain::n_sse_to_integer): New.
11992 (general_scalar_chain::n_integer_to_sse): Likewise.
11993 (general_scalar_chain::make_vector_copies): Adjust signature.
11994 * config/i386/i386-features.c
11995 (general_scalar_chain::general_scalar_chain): Outline,
11996 initialize new members.
11997 (general_scalar_chain::~general_scalar_chain): New.
11998 (general_scalar_chain::mark_dual_mode_def): Record insns
11999 we need to insert conversions at and count them.
12000 (general_scalar_chain::compute_convert_gain): Account
12001 for conversion instructions at chain boundary.
12002 (general_scalar_chain::make_vector_copies): Generate a single
12003 copy for a def by a specific insn.
12004 (general_scalar_chain::convert_registers): First populate
12005 defs_map, then make copies at out-of chain insns.
12007 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
12009 * config/arm/arm.md (stack_protect_set_insn): Add security-related
12011 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
12013 2019-08-27 Martin Liska <mliska@suse.cz>
12015 * cgraph.c (cgraph_node::remove): Remove dead assignment before
12017 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
12018 Enclose in anonymous namespace.
12019 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
12020 hard_register initialization in braces.
12021 * tree-vrp.h (value_range_base::supports_type_p): Return false
12022 for function with boolean return type.
12024 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
12026 * config/i386/i386.c (emit_i387_cw_initialization)
12027 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
12029 2019-08-26 Martin Sebor <msebor@redhat.com>
12032 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
12033 (sprintf_dom_walker): Remove class.
12034 (get_int_range): Make argument const.
12035 (directive::fmtfunc, directive::set_precision): Same.
12036 (format_none): Same.
12037 (build_intmax_type_nodes): Same.
12038 (adjust_range_for_overflow): Same.
12039 (format_floating): Same.
12040 (format_character): Same.
12041 (format_string): Same.
12042 (format_plain): Same.
12043 (get_int_range): Cast away constness.
12044 (format_integer): Same.
12045 (get_string_length): Call get_range_strlen_dynamic. Handle
12046 null lendata.maxbound.
12047 (should_warn_p): Adjust argument scope qualifier.
12048 (maybe_warn): Same.
12049 (format_directive): Same.
12050 (parse_directive): Same.
12051 (is_call_safe): Same.
12052 (try_substitute_return_value): Same.
12053 (sprintf_dom_walker::handle_printf_call): Rename...
12054 (handle_printf_call): ...to this. Initialize target to host charmap
12055 here instead of in pass_sprintf_length::execute.
12056 (struct call_info): Make global.
12057 (sprintf_dom_walker::compute_format_length): Make global.
12058 (sprintf_dom_walker::handle_gimple_call): Same.
12059 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12060 * print-rtl.c (print_pattern): Reduce the number of spaces to
12061 avoid -Wformat-truncation.
12062 * tree-pass.h (make_pass_warn_printf): New function.
12063 * tree-ssa-strlen.c (strlen_optimize): New variable.
12064 (get_string_length): Add comments.
12065 (get_range_strlen_dynamic): New function.
12066 (check_and_optimize_call): New function.
12067 (handle_integral_assign): New function.
12068 (strlen_check_and_optimize_stmt): Factor code out into
12069 strlen_check_and_optimize_call and handle_integral_assign.
12070 (strlen_dom_walker::evrp): New member.
12071 (strlen_dom_walker::before_dom_children): Use evrp member.
12072 (strlen_dom_walker::after_dom_children): Use evrp member.
12073 (printf_strlen_execute): New function.
12074 (pass_strlen::gate): Update to handle printf calls.
12075 (dump_strlen_info): New function.
12076 (pass_data_warn_printf): New variable.
12077 (pass_warn_printf): New class.
12078 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12079 (handle_printf_call): Same.
12080 * tree-vrp.c (value_range_base::type): Adjust assertion.
12081 * vr-values.c (vr_values::update_value_range): Use type of the first
12082 argument rather than the second.
12084 2019-08-26 Richard Biener <rguenther@suse.de>
12086 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12088 (convert_scalars_to_vector): Do not call it.
12090 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12091 Uros Bizjak <ubizjak@gmail.com>
12093 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12094 CASE_MATHFN_FLOATN for roundeven.
12095 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12097 (ix86_mode_needed): Likewise.
12098 (ix86_mode_after): Likewise.
12099 (ix86_mode_entry): Likewise.
12100 (ix86_mode_exit): Likewise.
12101 (ix86_emit_mode_set): Likewise.
12102 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12103 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12104 (ix86_entity): Add I387_ROUNDEVEN.
12105 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12106 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12107 (define_int_iterator): Likewise.
12108 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12109 (define_constant): Define ROUND_ROUNDEVEN mode.
12110 (define_attr): Add roundeven mode for i387_cw.
12111 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12112 * internal-fn.def (ROUNDEVEN): New builtin function.
12113 * optabs.def (roundeven_optab): New optab.
12115 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12117 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12119 * builtins.def: Added function definitions for roundeven function
12121 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12122 function call. Adjust condition for floor, ceil, trunc and round.
12123 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12124 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12125 (integer_valued_real_call_p): Added case for roundeven function.
12126 * real.c (is_even): New function. Returns true if real number is even,
12127 otherwise returns false.
12128 (is_halfway_below): New function. Returns true if real number is
12129 halfway between two integers, else return false.
12130 (real_roundeven): New function. Round real number to nearest integer,
12131 rounding halfway cases towards even.
12132 * real.h (real_value): Added descriptive comments. Added function
12133 declaration for roundeven function.
12134 * doc/extend.texi (Other Builtins): List roundeven variants among
12135 functions which can be handled as builtins.
12137 2019-08-26 Richard Biener <rguenther@suse.de>
12141 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12143 (general_scalar_chain::replace_with_subreg): Remove.
12144 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12145 (general_scalar_chain::convert_reg): Adjust signature.
12146 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12147 iterate over all defs of a reg.
12148 (general_scalar_chain::replace_with_subreg): Remove.
12149 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12150 (general_scalar_chain::make_vector_copies): Populate defs_map,
12151 place copy only after defs that are used as vectors in the chain.
12152 (general_scalar_chain::convert_reg): Emit a copy for a specific
12153 def in a specific instruction.
12154 (general_scalar_chain::convert_op): All reg uses are converted here.
12155 (general_scalar_chain::convert_insn): Emit copies for scalar
12156 uses of defs here. Replace uses with the copies we created.
12157 Replace and convert the def. Adjust REG_DEAD notes, remove
12158 REG_EQUIV/EQUAL notes.
12159 (general_scalar_chain::convert_registers): Only handle copies
12160 into the chain here.
12162 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12164 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12166 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12168 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12169 Add nop_convert case.
12170 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12171 Fold all statements if requested.
12172 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12173 Allow to fold all statements.
12174 * tree-vrp.c (class vrp_folder):
12175 Let substitute_and_fold_engine fold all statements.
12177 2019-08-26 Richard Biener <rguenther@suse.de>
12179 PR tree-optimization/91526
12180 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12181 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12182 TODO_update_address_taken.
12184 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12186 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12189 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12191 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12192 machine mode for unspec_volatile operand.
12194 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12196 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12197 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12198 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12199 (prefer_neon_for_64bits): Remove.
12200 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12201 (tune_params): Remove PREF_NEON_64_FALSE uses.
12202 (arm_option_override): Remove prefer_neon selection code.
12203 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12204 * config/arm/arm-protos.h (tune_params): Remove
12205 prefer_neon_for_64bits.
12206 (prefer_neon_for_64bits): Remove.
12208 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12211 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12212 and issue any diagnostics needed before collecting the pre-PCH
12215 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12217 PR middle-end/91283
12218 * common.opt (fexcess-precision=): Add Optimization flag. Use
12219 flag_excess_precision variable instead of
12220 flag_excess_precision_cmdline.
12221 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12223 (flag_excess_precision): Don't define.
12224 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12225 flag_excess_precision_cmdline. Remove comment.
12226 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12227 and x_flag_excess_precision instead of
12228 frontend_set_flag_excess_precision_cmdline and
12229 x_flag_excess_precision_cmdline.
12230 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12231 x_flag_excess_precision_cmdline.
12232 * toplev.c (init_excess_precision): Remove.
12233 (lang_dependent_init_target): Don't call it.
12235 2019-08-23 Martin Liska <mliska@suse.cz>
12237 * lto-wrapper.c (run_gcc): When setting jobserver
12238 set also parallel to 1. This was done so before r273908.
12240 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12242 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12243 (cortex-a76ae): Likewise.
12244 (cortex-a77): Likewise
12245 * config/arm/arm-tables.opt: Regenerate.
12246 * config/arm/arm-tune.md: Likewise.
12247 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12248 cortex-a77 CPU options.
12250 2019-08-23 Martin Liska <mliska@suse.cz>
12252 * profile.c (instrument_values): Do not set
12253 0 as last argument.
12254 * tree-profile.c (gimple_gen_interval_profiler): Remove
12256 (gimple_gen_pow2_profiler): Likewise.
12257 (gimple_gen_topn_values_profiler): Likewise.
12258 (gimple_gen_ic_profiler): Likewise.
12259 (gimple_gen_time_profiler): Likewise.
12260 (gimple_gen_average_profiler): Likewise.
12261 (gimple_gen_ior_profiler): Likewise.
12262 * value-prof.c (dump_histogram_value): Use default
12263 in switch statement instead of HIST_TYPE_MAX.
12264 (stream_in_histogram_value): Likewise.
12265 (gimple_duplicate_stmt_histograms): Do not
12266 use NULL for implicitly set arguments.
12267 (gimple_divmod_values_to_profile): Do not use
12268 reserve+quick_push.
12269 (gimple_indirect_call_to_profile): Likewise.
12270 (gimple_find_values_to_profile): Use implicit
12271 function call arguments.
12272 * value-prof.h (gimple_alloc_histogram_value):
12273 Set default values.
12274 (gimple_gen_interval_profiler): Remove last argument.
12275 (gimple_gen_pow2_profiler): Likewise.
12276 (gimple_gen_topn_values_profiler): Likewise.
12277 (gimple_gen_ic_profiler): Likewise.
12278 (gimple_gen_time_profiler): Likewise.
12279 (gimple_gen_average_profiler): Likewise.
12280 (gimple_gen_ior_profiler): Likewise.
12282 2019-08-22 Martin Sebor <msebor@redhat.com>
12284 PR middle-end/91490
12285 * builtins.c (c_strlen): Rename argument and introduce new local.
12286 Set no-warning bit on original argument.
12287 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
12288 Fold empty and zero constructors into empty strings.
12289 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
12290 for missing initializers.
12291 * tree.c (build_string_literal): Handle optional argument.
12292 * tree.h (build_string_literal): Add defaulted argument.
12293 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
12294 no-warning bit on original expression.
12296 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12299 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12300 and UNSPEC_DARN_RAW.
12301 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
12303 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
12304 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
12305 (darn): Use an unspec_volatile, and UNSPECV_DARN.
12307 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12309 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12310 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
12311 * config/rs6000/rs6000.md (unspec): ... here.
12312 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
12313 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12314 cmpeqb, *cmpeqb_internal): Delete, move to...
12315 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
12316 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12317 cmpeqb, *cmpeqb_internal): ... here.
12319 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12321 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
12322 intrinsics if __ARM_FP.
12323 Use __ARM_FEATURE_CRC32 ifdef guard.
12325 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12327 * config/arm/arm.md (neon_for_64bits): Remove.
12328 (avoid_neon_for_64bits): Remove.
12329 (arm_adddi3): Always split early.
12330 (arm_subdi3): Always split early.
12331 (negdi2): Remove Neon expansion.
12332 (split zero_extend): Split before reload.
12333 (split sign_extend): Split before reload.
12335 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12337 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
12338 (qhs_extenddi_cstr): Likewise.
12339 * config/arm/arm.md (ashldi3): Always expand early.
12340 (ashlsi3): Likewise.
12341 (ashrsi3): Likewise.
12342 (zero_extend<mode>di2): Remove Neon variants.
12343 (extend<mode>di2): Likewise.
12344 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
12345 (signed_shift_di3_neon): Likewise.
12346 (unsigned_shift_di3_neon): Likewise.
12347 (ashrdi3_neon_imm_noclobber): Likewise.
12348 (lshrdi3_neon_imm_noclobber): Likewise.
12349 (<shift>di3_neon): Likewise.
12350 (split extend): Remove DI extend split patterns.
12352 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12354 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
12355 (split not): Add DImode not splitter.
12356 (anddi3): Remove pattern.
12357 (anddi3_insn): Likewise.
12358 (anddi_zesidi_di): Likewise.
12359 (anddi_sesdi_di): Likewise.
12360 (anddi_notdi_di): Likewise.
12361 (anddi_notzesidi_di): Likewise.
12362 (anddi_notsesidi_di): Likewise.
12363 (iordi3): Likewise.
12364 (iordi3_insn): Likewise.
12365 (iordi_zesidi_di): Likewise.
12366 (iordi_sesidi_di): Likewise.
12367 (xordi3): Likewise.
12368 (xordi3_insn): Likewise.
12369 (xordi_sesidi_di): Likewise.
12370 (xordi_zesidi_di): Likewise.
12371 (one_cmpldi2): Likewise.
12372 (one_cmpldi2_insn): Likewise.
12373 * config/arm/constraints.md: Remove De, Df, Dg constraints.
12374 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
12376 (iwmmxt_xordi3): Likewise.
12377 (iwmmxt_anddi3): Likewise.
12378 * config/arm/neon.md (orndi3_neon): Remove pattern.
12379 (anddi_notdi_di): Likewise.
12380 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
12381 (arm_iordi_operand_neon): Likewise.
12382 (arm_xordi_operand_neon): Likewise.
12383 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
12384 (iordi_notzesidi_di): Likewise.
12385 (iordi_notdi_zesidi): Likewise.
12386 (iordi_notsesidi_di): Likewise.
12388 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
12390 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
12392 (iorsi3_compare0_scratch): Likewise.
12394 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
12396 * config/aarch64/aarch64-simd-builtins.def:
12399 * config/aarch64/aarch64-simd.md:
12400 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
12401 (aarch64_st1x4<VALLDIF:mode>): Likewise.
12402 (aarch64_ld1_x4_<mode>): Likewise.
12403 (aarch64_st1_x4_<mode>): Likewise.
12404 * config/aarch64/arm_neon.h:
12405 (vld1_s8_x4): New function.
12406 (vld1q_s8_x4): Likewise.
12407 (vld1_s16_x4): Likewise.
12408 (vld1q_s16_x4): Likewise.
12409 (vld1_s32_x4): Likewise.
12410 (vld1q_s32_x4): Likewise.
12411 (vld1_u8_x4): Likewise.
12412 (vld1q_u8_x4): Likewise.
12413 (vld1_u16_x4): Likewise.
12414 (vld1q_u16_x4): Likewise.
12415 (vld1_u32_x4): Likewise.
12416 (vld1q_u32_x4): Likewise.
12417 (vld1_f16_x4): Likewise.
12418 (vld1q_f16_x4): Likewise.
12419 (vld1_f32_x4): Likewise.
12420 (vld1q_f32_x4): Likewise.
12421 (vld1_p8_x4): Likewise.
12422 (vld1q_p8_x4): Likewise.
12423 (vld1_p16_x4): Likewise.
12424 (vld1q_p16_x4): Likewise.
12425 (vld1_s64_x4): Likewise.
12426 (vld1_u64_x4): Likewise.
12427 (vld1_p64_x4): Likewise.
12428 (vld1q_s64_x4): Likewise.
12429 (vld1q_u64_x4): Likewise.
12430 (vld1q_p64_x4): Likewise.
12431 (vld1_f64_x4): Likewise.
12432 (vld1q_f64_x4): Likewise.
12433 (vst1_s8_x4): Likewise.
12434 (vst1q_s8_x4): Likewise.
12435 (vst1_s16_x4): Likewise.
12436 (vst1q_s16_x4): Likewise.
12437 (vst1_s32_x4): Likewise.
12438 (vst1q_s32_x4): Likewise.
12439 (vst1_u8_x4): Likewise.
12440 (vst1q_u8_x4): Likewise.
12441 (vst1_u16_x4): Likewise.
12442 (vst1q_u16_x4): Likewise.
12443 (vst1_u32_x4): Likewise.
12444 (vst1q_u32_x4): Likewise.
12445 (vst1_f16_x4): Likewise.
12446 (vst1q_f16_x4): Likewise.
12447 (vst1_f32_x4): Likewise.
12448 (vst1q_f32_x4): Likewise.
12449 (vst1_p8_x4): Likewise.
12450 (vst1q_p8_x4): Likewise.
12451 (vst1_p16_x4): Likewise.
12452 (vst1q_p16_x4): Likewise.
12453 (vst1_s64_x4): Likewise.
12454 (vst1_u64_x4): Likewise.
12455 (vst1_p64_x4): Likewise.
12456 (vst1q_s64_x4): Likewise.
12457 (vst1q_u64_x4): Likewise.
12458 (vst1q_p64_x4): Likewise.
12459 (vst1_f64_x4): Likewise.
12460 (vst1q_f64_x4): Likewise.
12462 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12464 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12466 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12467 Richard Sandiford <richard.sandiford@arm.com>
12470 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12471 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
12473 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12476 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
12477 in reg if it fails aarch64_plus_operand predicate.
12479 2019-08-21 Richard Biener <rguenther@suse.de>
12481 PR tree-optimization/91482
12482 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
12483 BUILT_IN_ASSUME_ALIGNED calls.
12485 2019-08-21 Richard Biener <rguenther@suse.de>
12489 * config/i386/i386-features.c
12490 (general_scalar_chain::make_vector_copies): Copy stack temporary
12491 rtx when using it multiple times.
12492 (general_scalar_chain::convert_reg): Likewise.
12494 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12496 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
12498 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
12500 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
12501 catch more redundant zero initialization cases.
12502 (dse_dom_walker::dse_optimize_stmt): Likewise.
12504 2019-08-20 Richard Biener <rguenther@suse.de>
12507 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
12508 by collect2 when targetm.have_ctors_dtors which avoids dragging
12509 in temporary filenames from LTO input objects.
12511 2019-08-20 Richard Biener <rguenther@suse.de>
12513 PR tree-optimization/37242
12514 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
12515 to (T)a + (T)b if we know that a + b does not overflow.
12517 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
12519 PR rtl-optimization/91347
12520 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
12521 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
12523 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12525 * calls.h (function_arg_info): Add a pass_by_reference field,
12526 defaulting to false.
12527 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12528 when applying pass-by-reference semantics.
12529 (initialize_argument_information): Likewise.
12530 (emit_library_call_value_1): Likewise.
12531 * function.c (assign_parm_data_one): Remove passed_pointer field.
12532 (assign_parm_find_data_types): Don't set it.
12533 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
12534 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
12535 arg.pass_by_reference instead of passed_pointer.
12537 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12539 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
12540 into a single function_arg_info, updating its fields when we
12541 apply pass-by-reference and promotion semantics. Use the
12542 function_arg_info to track the mode rather than keeping it in
12543 a separate local variable.
12544 (initialize_argument_information): Likewise. Base the final
12545 arg_to_skip on this new function_arg_info rather than creating
12546 a new one from scratch.
12548 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12550 * function.c (assign_parm_data_one): Replace passed_type,
12551 promoted_mode and named_arg with a function_arg_info field.
12552 (assign_parm_find_data_types): Remove local variables and
12553 assign directly to "data". Make data->passed_mode shadow
12554 data->arg.mode until promotion, then assign the promoted
12555 mode to data->arg.mode.
12556 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
12557 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
12558 (assign_parm_remove_parallels, assign_parm_setup_block_p)
12559 (assign_parm_setup_block, assign_parm_setup_reg)
12560 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
12561 arg.mode instead of promoted_mode, arg.type instead of passed_type
12562 and arg.named instead of named_arg. Use data->arg for
12563 function_arg_info structures that had the field values passed_type,
12564 promoted_mode and named_arg. Base other function_arg_infos on
12565 data->arg, changing the necessary properties.
12567 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12569 * calls.h (apply_pass_by_reference_rules): Declare.
12570 * calls.c (apply_pass_by_reference_rules): New function.
12571 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
12572 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
12573 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12574 * function.c (assign_parm_find_data_types): Likewise.
12575 * var-tracking.c (prepare_call_arguments): Likewise.
12577 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12579 * target.def (must_pass_in_stack): Take a function_arg_info instead
12580 of a mode and a type.
12581 * doc/tm.texi: Regenerate.
12582 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
12583 instead of a mode and a type.
12584 (must_pass_in_stack_var_size_or_pad): Likewise.
12585 * calls.c (must_pass_in_stack_var_size): Likewise.
12586 (must_pass_in_stack_var_size_or_pad): Likewise.
12587 (initialize_argument_information): Update call to
12588 targetm.calls.must_pass_in_stack.
12589 (must_pass_va_arg_on_stack): Likewise.
12590 * function.c (assign_parm_find_entry_rtl): Likewise.
12591 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
12592 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12593 (alpha_function_arg_advance): Likewise.
12594 * config/cr16/cr16.c (cr16_function_arg): Likewise.
12595 (cr16_function_arg_advance): Likewise.
12596 * config/cris/cris.c (cris_pass_by_reference): Likewise.
12597 (cris_arg_partial_bytes): Likewise.
12598 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12599 * config/lm32/lm32.c (lm32_function_arg): Likewise.
12600 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
12601 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
12602 * config/mips/mips.c (mips_pass_by_reference): Likewise.
12603 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
12604 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
12605 * config/sh/sh.c (sh_pass_by_reference): Likewise.
12606 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12607 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12608 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
12609 instead of a mode and a type.
12610 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
12611 (fr30_num_arg_regs): Likewise.
12612 (fr30_setup_incoming_varargs): Update calls accordingly.
12613 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12614 (fr30_function_arg_advance): Likewise.
12615 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12616 instead of a mode and a type.
12617 * config/gcn/gcn.c (num_arg_regs): Likewise.
12618 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12619 num_arg_regs and targetm.calls.must_pass_in_stack.
12620 (gcn_arg_partial_bytes): Likewise.
12621 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12622 function_arg_info instead of a mode and a type.
12623 (classify_argument): Update call accordingly.
12624 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12625 function_arg_info instead of a mode and a type.
12626 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12628 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12629 (rs6000_parm_needs_stack): Update call accordingly.
12630 (setup_incoming_varargs): Likewise.
12632 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12634 * target.def (callee_copies): Take a function_arg_info instead
12635 of a mode, type and named flag.
12636 * doc/tm.texi: Regenerate.
12637 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12638 instead of a mode, type and named flag.
12639 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12640 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12641 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12642 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12643 instead of a mode, type and named flag.
12644 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12645 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12646 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12647 * calls.h (reference_callee_copied): Take a function_arg_info
12648 instead of a mode, type and named flag.
12649 * calls.c (reference_callee_copied): Likewise.
12650 (initialize_argument_information): Update call accordingly.
12651 (emit_library_call_value_1): Likewise.
12652 * function.c (gimplify_parameters): Likewise.
12653 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12654 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12655 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12656 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12657 (TARGET_CALLEE_COPIES): Define to
12658 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12659 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12660 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12661 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12662 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12663 instead of a mode, type and named flag.
12664 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12665 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12666 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12667 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12668 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12669 (TARGET_CALLEE_COPIES): Define to
12670 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12671 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12672 instead of a mode, type and named flag.
12673 * config/sh/sh.c (sh_callee_copies): Likewise.
12674 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12675 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12676 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12678 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12680 * target.def (function_arg_advance): Take a function_arg_info instead
12681 of a mode, type and named flag.
12682 * doc/tm.texi: Regenerate.
12683 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12684 instead of a mode, type and named flag.
12685 * targhooks.c (default_function_arg_advance): Likewise.
12686 * calls.c (initialize_argument_information): Update call to
12687 targetm.calls.function_arg_advance.
12688 (emit_library_call_value_1): Likewise.
12689 * dse.c (get_call_args): Likewise.
12690 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12691 * function.c (assign_parms, gimplify_parameters): Likewise.
12692 * var-tracking.c (prepare_call_arguments): Likewise.
12693 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12694 function_arg_info instead of a mode, type and named flag.
12695 (aarch64_setup_incoming_varargs): Update call accordingly.
12696 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12697 function_arg_info instead of a mode, type and named flag.
12698 (alpha_setup_incoming_varargs): Update call accordingly.
12699 * config/arc/arc.c (arc_function_arg_advance): Take a
12700 function_arg_info instead of a mode, type and named flag.
12701 (arc_setup_incoming_varargs): Update call accordingly.
12702 * config/arm/arm.c (arm_function_arg_advance): Take a
12703 function_arg_info instead of a mode, type and named flag.
12704 (cmse_func_args_or_return_in_stack): Update call accordingly.
12705 (arm_function_ok_for_sibcall): Likewise.
12706 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12707 * config/avr/avr.c (avr_function_arg_advance): Take a
12708 function_arg_info instead of a mode, type and named flag.
12709 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12710 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12711 (c6x_call_saved_register_used): Update call accordingly.
12712 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12713 function_arg_info instead of a mode, type and named flag.
12714 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12715 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12716 (csky_setup_incoming_varargs): Update call accordingly.
12717 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12718 function_arg_info instead of a mode, type and named flag.
12719 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12720 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12721 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12722 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12723 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12724 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12725 (ix86_setup_incoming_varargs): Update call accordingly.
12726 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12727 function_arg_info instead of a mode, type and named flag.
12728 (ia64_setup_incoming_varargs): Update call accordingly.
12729 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12730 function_arg_info instead of a mode, type and named flag.
12731 (iq2000_expand_prologue): Update call accordingly.
12732 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12733 function_arg_info instead of a mode, type and named flag.
12734 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12735 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12736 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12737 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12738 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12740 (microblaze_expand_prologue): Update call accordingly.
12741 * config/mips/mips.c (mips_function_arg_advance): Take a
12742 function_arg_info instead of a mode, type and named flag.
12743 (mips_setup_incoming_varargs): Update call accordingly.
12744 (mips_output_args_xfer): Likewise.
12745 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12746 function_arg_info instead of a mode, type and named flag.
12747 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12748 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12749 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12750 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12751 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12752 (nios2_setup_incoming_varargs): Update call accordingly.
12753 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12754 function_arg_info instead of a mode, type and named flag.
12755 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12756 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12757 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12758 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12759 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12760 (riscv_setup_incoming_varargs): Update call accordingly.
12761 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12762 function_arg_info instead of a mode, type and named flag.
12763 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12765 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12766 (rs6000_parm_needs_stack): Update call accordingly.
12767 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12768 instead of a mode, type and named flag.
12769 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12770 (s390_call_saved_register_used): Update call accordingly.
12771 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12772 instead of a mode, type and named flag.
12773 (sh_output_mi_thunk): Update call accordingly.
12774 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12775 function_arg_info instead of a mode, type and named flag.
12776 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12777 (spu_setup_incoming_varargs): Update call accordingly.
12778 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12779 function_arg_info instead of a mode, type and named flag.
12780 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12781 (tilegx_setup_incoming_varargs): Update call accordingly.
12782 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12783 function_arg_info instead of a mode, type and named flag.
12784 (tilegx_setup_incoming_varargs): Update call accordingly.
12785 * config/v850/v850.c (v850_function_arg_advance): Take a
12786 function_arg_info instead of a mode, type and named flag.
12787 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12788 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12789 (visium_setup_incoming_varargs): Update call accordingly.
12790 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12791 function_arg_info instead of a mode, type and named flag.
12793 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12795 * target.def (function_arg, function_incoming_arg): Take a
12796 function_arg_info instead of a mode, tree and named flag.
12797 * doc/tm.texi: Regenerate.
12798 * targhooks.h (default_function_arg): Take a function_arg_info
12799 instead of a mode, tree and named flag.
12800 (default_function_incoming_arg): Likewise.
12801 * targhooks.c (default_function_arg): Likewise.
12802 (default_function_incoming_arg): Likewise.
12803 * calls.h (function_arg_info::end_marker_p): New function.
12804 (function_arg_info::end_marker): Likewise.
12805 * calls.c (prepare_call_address, initialize_argument_information)
12806 (expand_call, emit_library_call_value_1): Update calls to
12807 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12808 * dse.c: Include calls.h.
12809 (get_call_args): Update call to targetm.calls.function_arg.
12810 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12811 * var-tracking.c (prepare_call_arguments): Likewise.
12812 * function.c (assign_parm_find_entry_rtl): Update call to
12813 targetm.calls.function_incoming_arg.
12814 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12815 function_arg_info instead of a mode, tree and named flag.
12816 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12817 * config/arc/arc.c (arc_function_arg): Likewise.
12818 * config/arm/arm.c (arm_function_arg): Likewise.
12819 (cmse_func_args_or_return_in_stack): Update call accordingly.
12820 (arm_function_ok_for_sibcall): Likewise.
12821 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12822 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12823 instead of a mode, tree and named flag.
12824 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12825 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12826 (c6x_call_saved_register_used): Update call accordingly.
12827 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12828 instead of a mode, tree and named flag.
12829 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12830 (cris_function_arg_1): Likewise.
12831 * config/csky/csky.c (csky_function_arg): Likewise.
12832 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12833 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12834 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12835 (frv_function_arg_1): Likewise.
12836 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12837 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12838 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12839 * config/i386/i386.c (ix86_function_arg): Likewise.
12840 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12841 (ia64_function_arg_1): Likewise.
12842 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12843 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12845 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12846 instead of a mode, tree and named flag.
12847 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12848 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12849 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12850 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12851 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12852 (microblaze_expand_prologue): Update call accordingly.
12853 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12854 instead of a mode, tree and named flag.
12855 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12856 (mmix_function_arg_1): Likewise.
12857 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12858 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12859 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12860 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12861 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12862 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12863 (nvptx_function_incoming_arg): Likewise.
12864 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12865 * config/pa/pa.c (pa_function_arg): Likewise.
12866 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12867 * config/pru/pru.c (pru_function_arg): Likewise.
12868 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12869 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12870 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12871 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12872 (rs6000_parm_needs_stack): Update call accordingly.
12873 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12874 instead of a mode, tree and named flag.
12875 * config/s390/s390.c (s390_function_arg): Likewise.
12876 (s390_call_saved_register_used): Update call accordingly.
12877 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12878 instead of a mode, tree and named flag.
12879 (sh_output_mi_thunk): Update call accordingly.
12880 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12881 (sparc_function_incoming_arg): Take a function_arg_info instead of
12882 a mode, tree and named flag.
12883 * config/spu/spu.c (spu_function_arg): Likewise.
12884 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12885 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12886 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12887 * config/v850/v850.c (v850_function_arg): Likewise.
12888 * config/vax/vax.c (vax_function_arg): Likewise.
12889 * config/visium/visium.c (visium_function_arg): Likewise.
12890 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12891 (xtensa_function_incoming_arg): Likewise.
12893 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12895 * target.def (setup_incoming_varargs): Take a function_arg_info
12896 instead of a mode and tree.
12897 * doc/tm.texi: Regenerate.
12898 * targhooks.h (default_setup_incoming_varargs): Take a
12899 function_arg_info instead of a mode and tree.
12900 * targhooks.c (default_setup_incoming_varargs): Likewise.
12901 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12902 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12903 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12904 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12905 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12906 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12907 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12908 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12910 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12911 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12912 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12913 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12914 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12915 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12916 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12917 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12918 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12919 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12920 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12921 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12922 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12923 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12924 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12925 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12926 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12927 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12928 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12929 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12930 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12931 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12932 * function.c (assign_parms_setup_varargs): Update call to
12933 targetm.calls.setup_incoming_varargs.
12935 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12937 * target.def (pass_by_reference): Take a function_arg_info instead
12938 of a mode, type and named flag.
12939 * doc/tm.texi: Regenerate.
12940 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12942 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12943 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12944 function_arg_info instead of a mode, type and named flag.
12945 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12946 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12947 mode, type and named flag.
12948 * calls.c (pass_by_reference): Likewise.
12949 (pass_va_arg_by_reference): Update call accordingly.
12950 (initialize_argument_information): Likewise.
12951 (emit_library_call_value_1): Likewise.
12952 * function.c (assign_parm_find_data_types): Likewise.
12953 * var-tracking.c (prepare_call_arguments): Likewise.
12954 * stor-layout.c: Include calls.h.
12955 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12956 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12957 function_arg_info instead of a mode, type and named flag.
12958 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12959 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12960 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12961 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12962 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12963 (c6x_call_saved_register_used): Update call to pass_by_reference.
12964 * config/cris/cris.c (cris_pass_by_reference): Take a
12965 function_arg_info instead of a mode, type and named flag.
12966 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12967 function_arg_info instead of a mode, type and named flag.
12968 (epiphany_arg_partial_bytes): Update call accordingly.
12969 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12970 function_arg_info instead of a mode, type and named flag.
12971 (ft32_arg_partial_bytes): Update call accordingly.
12972 * config/i386/i386.c (ix86_pass_by_reference): Take a
12973 function_arg_info instead of a mode, type and named flag.
12974 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12975 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12976 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12977 (m32r_return_in_memory): Update call accordingly.
12978 * config/mips/mips.c (mips_pass_by_reference): Take a
12979 function_arg_info instead of a mode, type and named flag.
12980 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12981 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12982 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12983 (moxie_arg_partial_bytes): Update call accordingly.
12984 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12985 function_arg_info instead of a mode, type and named flag.
12986 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12987 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12988 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12989 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12990 (riscv_return_in_memory): Update call accordingly.
12991 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12992 function_arg_info instead of a mode, type and named flag.
12993 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12994 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12995 * config/s390/s390.c (s390_pass_by_reference): Take a
12996 function_arg_info instead of a mode, type and named flag.
12997 (s390_call_saved_register_used): Update call accordingly.
12998 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12999 instead of a mode, type and named flag.
13000 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
13001 * config/spu/spu.c (spu_pass_by_reference): Likewise.
13002 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
13003 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
13004 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13005 * config/visium/visium.c (visium_pass_by_reference): Likewise.
13007 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13009 * target.def (arg_partial_bytes): Take a function_arg_info instead
13010 of a mode, type and named flag.
13011 * doc/tm.texi: Regenerate.
13012 * target.h (function_arg_info): Declare.
13013 * calls.h (function_arg_info): New class.
13014 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13015 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
13016 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13017 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
13018 * calls.c (initialize_argument_information): Update call to
13019 targetm.calls.partial_bytes.
13020 (emit_library_call_value_1): Likewise.
13021 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13022 * function.c (assign_parm_find_entry_rtl): Likewise.
13023 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
13024 function_arg_info instead of a mode, type and named flag.
13025 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
13026 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
13027 (cmse_func_args_or_return_in_stack): Update accordingly.
13028 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
13029 function_arg_info instead of a mode, type and named flag.
13030 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
13031 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
13032 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
13033 * config/fr30/fr30.c: Include calls.h.
13034 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
13035 type and named flag.
13036 * config/frv/frv.c: Include calls.h.
13037 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
13038 type and named flag.
13039 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
13040 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
13041 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
13042 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
13043 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
13044 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
13045 * config/microblaze/microblaze.c (function_arg_partial_bytes):
13047 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
13048 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
13049 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
13050 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
13051 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
13052 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
13053 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
13054 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
13055 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
13056 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
13057 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
13058 (rs6000_parm_needs_stack): Update call accordingly.
13059 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13060 function_arg_info instead of a mode, type and named flag.
13061 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13062 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13064 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13066 * calls.h (must_pass_va_arg_in_stack): Declare.
13067 * calls.c (must_pass_va_arg_in_stack): New function.
13068 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13069 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13070 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13072 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13074 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13076 * calls.h (pass_va_arg_by_reference): Declare.
13077 * calls.c (pass_va_arg_by_reference): New function.
13078 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13079 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13080 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13081 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13082 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13083 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13084 (mips_gimplify_va_arg_expr): Likewise.
13085 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13086 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13087 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13088 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13089 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13090 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13091 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13092 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13093 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13094 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13095 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13097 2019-08-20 Richard Biener <rguenther@suse.de>
13100 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13101 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13102 (convert_scalars_to_vector): Add timode_p parameter and use it
13103 to guard TImode-only operation.
13104 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13105 (pass_stv::execute): Pass down timode_p.
13107 2019-08-20 Lili Cui <lili.cui@intel.com>
13109 * common/config/i386/i386-common.c
13110 (processor_names): Add tigerlake and cooperlake.
13111 (processor_alias_table): Add tigerlake and cooperlake.
13112 * config.gcc: Add -march=tigerlake and cooperlake.
13113 * config/i386/driver-i386.c
13114 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13115 Add "has_avx" to classify processor.
13116 * config/i386/i386-builtins.c (processor_model) :
13117 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13118 (arch_names_table): Add tigerlake and cooperlake.
13119 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13120 and PROCESSOR_COOPERLAKE.
13121 * config/i386/i386-c.c
13122 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13123 * config/i386/i386-options.c
13124 (m_TIGERLAKE): Define.
13125 (m_COOPERLAKE): Ditto.
13126 (m_CORE_AVX512): Ditto.
13127 (processor_cost_table): Add cascadelake.
13128 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13129 * config/i386/i386.h
13130 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13131 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13132 (PTA_MOVDIRI): Ditto.
13133 (PTA_MOVDIR64B): Ditto.
13134 (PTA_COOPERLAKE): Ditto.
13135 (PTA_TIGERLAKE): Ditto.
13136 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13137 * doc/extend.texi: Add tigerlake and cooperlake.
13138 * doc/invoke.texi: Add tigerlake and cooperlake.
13140 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13142 * doc/install.texi (Specific, alpha): Remove note to use
13143 binutils 2.11.2 or later.
13145 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13147 PR middle-end/89544
13148 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13151 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13153 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13154 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13155 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13156 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13157 * config/aarch64/constraints.md (Dt): New constraint
13158 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13160 2019-08-19 Richard Biener <rguenther@suse.de>
13162 PR tree-optimization/91403
13163 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13164 cases we can handle with tail-recursion...
13165 (follow_ssa_edge_expr): ... here. Do so.
13167 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13170 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13171 implemented for -fsanitize=kernel-address, and merge check logic
13172 with -fsanitize=address.
13174 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13176 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13177 for cpu and machine. Factor 64/32b builtins.
13179 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13181 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13182 gone, point to sourceforge.net.
13184 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13186 * doc/ux.texi (User Experience Guidelines): Update reference.
13188 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13190 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13193 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13195 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13196 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13198 2019-08-16 Martin Sebor <msebor@redhat.com>
13200 * tree.def (TYPE_SIZE): Clarify.
13201 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13203 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13205 PR tree-optimization/91109
13206 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13207 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13208 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13210 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13212 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13213 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13214 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13215 (uavg<mode>3_ceil): New expander.
13216 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13217 mode iterator when creating CONST1_RTX.
13218 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13219 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13220 mode iterator for const1_operand predicate.
13222 2019-08-16 Richard Biener <rguenther@suse.de>
13224 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13225 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13227 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13228 (analyze_evolution_in_loop): Likewise.
13229 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13230 (follow_ssa_edge_expr): ... here. Refactor code.
13232 2019-08-16 Richard Biener <rguenther@suse.de>
13235 * config/i386/i386-features.c
13236 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13238 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13241 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13242 only if subst_name matches curr_attr string.
13244 2019-08-16 Richard Biener <rguenther@suse.de>
13246 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13247 stmt at gsi_p, instead replace it with a NOP removed later.
13248 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13249 that became dead because of that.
13251 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13253 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13254 for which we can't represent a range.
13255 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
13257 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13258 Set VR_UNDEFINED if type is not supported.
13259 * tree-ssanames.c (get_range_info): Pass type to set_varying.
13260 * tree-vrp.c (value_range_base::check): Assert that a varying has
13262 (value_range_base::equal_p): Early bail for undefines.
13263 (value_range_base::set_varying): Accept a type.
13264 (value_range::set_varying): Same.
13265 (value_range_base::type): VARYING can have a type, while UNDEFINE
13267 (value_range_base::dump): Print type for VARYING nodes.
13268 (value_range_base::set): Add type to VARYING.
13269 (extract_range_from_multiplicative_op): Pass type to set_varying.
13270 (extract_range_from_binary_expr): Same.
13271 (value_range_base::intersect_helper): Same.
13272 (value_range_base::union_helper): Same.
13273 (value_range_base::normalize_symbolics): Same.
13274 (determine_value_range_1): Same.
13275 * tree-vrp.h (class value_range_base): Add type to set_varying.
13276 Add prototype for dump(void).
13277 Add prototype for supports_type_p.
13278 (class value_range): Add type to set_varying.
13279 Add prototype for dump(void).
13280 * vr-values.c (set_value_range_to_truthvalue): Pass type to
13282 (vr_values::get_lattice_entry): Set varying even if propagation
13284 Pass type to set_varying.
13285 (vr_values::get_value_range): Remove vr_const_varying.
13286 Reallocate the lattice if needed.
13287 (vr_values::update_value_range): Pass type to set_varying.
13288 (vr_values::extract_range_for_var_from_comparison_expr): Same.
13289 (vr_values::extract_range_from_binary_expr): Same.
13290 (vr_values::extract_range_from_unary_expr): Same.
13291 (vr_values::extract_range_from_cond_expr): Same.
13292 (vr_values::check_for_binary_op_overflow): Same.
13293 (vr_values::extract_range_basic): Same.
13294 (vr_values::extract_range_from_assignment): Same.
13295 (vr_values::vr_values): Increase size of num_vr_values.
13296 (vr_values::extract_range_from_phi_node): Pass type to
13299 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
13302 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
13303 for costs of hard register moves.
13304 (ix86_register_move_cost): Likewise.
13305 * config/i386/i386.h (processor_costs): Move costs of hard
13306 register moves to hard_register. Add int_load, int_store,
13307 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13308 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
13309 for costs of RTL expressions.
13310 * config/i386/x86-tune-costs.h: Move costs of hard register
13311 moves to hard_register. Duplicate int_load, int_store,
13312 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13313 sse_load, sse_store for costs of RTL expressions.
13315 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13317 * target.def (setup_incoming_vararg_bounds): Remove.
13318 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
13319 * doc/tm.texi: Regenerate.
13320 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
13321 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
13322 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13323 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
13325 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13327 MSP430: Fix lines over 80 characters long in
13328 config/msp430/*.{c,h} files
13330 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
13331 specifier in string.
13332 (msp430_select_hwmult_lib): Split line more than 80 characters long.
13333 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
13334 redundant old comment.
13335 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13336 Split line more than 80 characters long.
13337 * config/msp430/msp430.c (msp430_option_override): Likewise.
13338 (msp430_return_in_memory): Likewise.
13339 (msp430_gimplify_va_arg_expr): Likewise.
13340 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
13341 (msp430_legitimate_constant): Likewise.
13342 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
13343 (msp430_attr): Likewise.
13344 (msp430_data_attr): Likewise.
13345 (msp430_start_function): Likewise.
13346 (gen_prefix): Likewise.
13347 (msp430_init_sections): Likewise.
13348 (msp430_select_section): Likewise.
13349 (msp430_function_section): Likewise.
13350 (msp430_unique_section): Likewise.
13351 (msp430_output_aligned_decl_common): Likewise.
13352 (msp430_do_not_relax_short_jumps): Likewise.
13353 (msp430_init_builtins): Likewise.
13354 (msp430_expand_delay_cycles): Likewise.
13355 (msp430_expand_prologue): Likewise.
13356 (msp430_expand_epilogue): Likewise.
13357 (msp430_expand_helper): Likewise.
13358 (msp430_split_movsi): Likewise.
13359 (msp430_print_operand): Likewise.
13360 (msp430_return_addr_rtx): Likewise.
13361 (msp430x_extendhisi): Likewise.
13362 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
13363 (ASM_SPEC): Likewise.
13364 Remove very obvious comments.
13365 (LIB_SPEC): Split line more than 80 characters long.
13366 (EH_RETURN_HANDLER_RTX): Likewise.
13367 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13369 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13371 MSP430: Fix whitespace errors and incorrect indentation in
13372 config/msp430/*.{c,h} files
13374 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
13375 (msp430_select_hwmult_lib): Likewise.
13376 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
13377 (msp430_extract_mcu_data): Likewise.
13378 (struct t_msp430_mcu_data): Likewise.
13379 * config/msp430/msp430.c (struct machine_function): Remove whitespace
13380 before left square bracket.
13381 (msp430_option_override): Fix indentation.
13382 (msp430_hard_regno_nregs_with_padding): Likewise.
13383 (msp430_initial_elimination_offset): Likewise.
13384 (msp430_special_register_convention_p): Remove whitespace before left
13385 square bracket and after exclamation mark.
13386 (msp430_evaluate_arg): Likewise.
13387 (msp430_callee_copies): Fix indentation.
13388 (msp430_gimplify_va_arg_expr): Likewise.
13389 (msp430_function_arg_advance): Remove whitespace before left square
13391 (reg_ok_for_addr): Likewise.
13392 (msp430_preserve_reg_p): Likewise.
13393 (msp430_compute_frame_info): Likewise.
13394 (msp430_asm_output_addr_const_extra): Add space between function name
13395 and open parenthesis.
13396 (has_section_name): Fix indentation.
13397 (msp430_attr): Remove trailing whitespace.
13398 (msp430_section_attr): Likewise.
13399 (msp430_data_attr): Likewise.
13400 (struct msp430_attribute_table): Fix comment and whitespace.
13401 (msp430_start_function): Remove whitespace before left square bracket.
13402 Add space between function name and open parenthesis.
13403 (msp430_select_section): Remove trailing whitespace.
13404 (msp430_section_type_flags): Remove trailing whitespace.
13405 (msp430_unique_section): Remove space before closing parenthesis.
13406 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
13407 (msp430_builtins): Remove whitespace before left square bracket.
13408 (msp430_init_builtins): Fix indentation.
13409 (msp430_expand_prologue): Remove whitespace before left square bracket.
13410 Remove space before closing parenthesis.
13411 (msp430_expand_epilogue): Remove whitespace before left square bracket.
13412 (msp430_split_movsi): Remove space before closing parenthesis.
13413 (helper_function_name_mappings): Fix indentation.
13414 (msp430_use_f5_series_hwmult): Fix whitespace.
13415 (use_32bit_hwmult): Likewise.
13416 (msp430_no_hwmult): Likewise.
13417 (msp430_output_labelref): Remove whitespace before left square bracket.
13418 (msp430_print_operand_raw): Likewise.
13419 (msp430_print_operand_addr): Likewise.
13420 (msp430_print_operand): Add two spaces after '.' in comment.
13421 Fix trailing whitespace.
13422 (msp430x_extendhisi): Fix indentation.
13423 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
13425 (PC_REGNUM): Likewise.
13426 (STACK_POINTER_REGNUM): Likewise.
13427 (CC_REGNUM): Likewise.
13429 2019-08-15 Richard Biener <rguenther@suse.de>
13432 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13434 (general_scalar_chain::make_vector_copies): Use it.
13436 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13438 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13440 2019-08-15 Martin Liska <mliska@suse.cz>
13442 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13443 operators with no arguments.
13444 (eliminate_unnecessary_stmts): Likewise here.
13446 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13448 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13449 <case COMPARE>: Revert 2019-08-14 change.
13450 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13451 for (TARGET_64BIT || mode != DImode).
13453 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13455 * tree-vrp.c (value_range_base::set): Merge in code from
13456 value_range_base::set_and_canonicalize.
13457 Enforce canonicalization at set time.
13458 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13459 (value_range_base::set_undefined): Inline call to set().
13460 (value_range_base::set_varying): Same.
13461 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13462 (vrp_val_max): New argument handle_pointers.
13463 (vrp_val_min): Same.
13464 (ranges_from_anti_range): Same.
13465 (extract_range_into_wide_ints): Use tree argument instead of sign
13467 (extract_range_from_multiplicative_op): Take in tree type instead
13468 of precision and sign. Adapt function for canonicalized ranges.
13469 (extract_range_from_binary_expr): Pass type to
13470 extract_range_from_multiplicative_op.
13471 Adapt for canonicalized ranges.
13472 (extract_range_from_unary_expr): Same.
13473 (value_range_base::intersect_helper): Adjust for canonicalized
13475 (value_range_base::union_helper): Same.
13476 (value_range_base::normalize_symbolics): New.
13477 * tree-vrp.h (class value_range_base): Remove
13478 set_and_canonicalize.
13479 New prototype for normalize_symbolics.
13480 (class value_range): Remove set_and_canonicalize.
13481 (vrp_val_min): Adjust prototype.
13482 (vrp_val_max): Same.
13484 (vr_values::extract_range_for_var_from_comparison_expr): Call set
13485 instead of set_and_canonicalize.
13487 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13489 PR middle-end/91444
13490 * tree-vect-stmts.c (vectorizable_call): Check that the function
13491 is a BUILT_IN_MD function before passing it to
13492 targetm.vectorize.builtin_md_vectorized_function.
13494 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13496 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
13497 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
13498 (aarch64_select_early_remat_modes): Use it.
13500 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13502 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
13503 16 for SVE predicates even if they are fixed-length.
13505 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13507 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
13508 operand order match the MOV /Z alias.
13510 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13512 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
13513 the vector pattern as an aarch64_svpattern argument. Update the
13514 overloaded caller accordingly.
13515 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
13516 (aarch64_output_sve_vector_inc_dec): Likewise.
13518 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13520 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
13521 multiplication case, try to compute VG * (lowest set bit) directly
13522 rather than always basing the multiplication on VG. Use
13523 expand_mult for the multiplication if we can.
13525 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13527 * config/aarch64/aarch64-protos.h
13528 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
13529 (aarch64_sve_inc_dec_immediate_p): Rename to...
13530 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13531 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
13532 (aarch64_output_sve_scalar_inc_dec): Declare.
13533 (aarch64_output_sve_inc_dec_immediate): Rename to...
13534 (aarch64_output_sve_vector_inc_dec): ...this.
13535 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
13536 (aarch64_output_sve_scalar_inc_dec): New functions.
13537 (aarch64_output_sve_addvl_addpl): Remove the base and offset
13538 arguments. Only handle true ADDVL and ADDPL instructions;
13539 don't emit an INC or DEC.
13540 (aarch64_sve_inc_dec_immediate_p): Rename to...
13541 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13542 (aarch64_output_sve_inc_dec_immediate): Rename to...
13543 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
13544 aarch64_sve_vector_inc_dec_immediate_p.
13545 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
13546 (aarch64_sve_plus_immediate): New predicates.
13547 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
13548 rather than aarch64_sve_addvl_addpl_immediate.
13549 (aarch64_sve_inc_dec_immediate): Rename to...
13550 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
13551 aarch64_sve_vector_inc_dec_immediate_p.
13552 (aarch64_sve_add_operand): Update accordingly.
13553 * config/aarch64/constraints.md (Uai): New constraint.
13554 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
13555 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
13556 operand into a register if it satisfies aarch64_sve_plus_immediate.
13557 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
13558 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
13559 * config/aarch64/aarch64-sve.md (add<mode>3): Call
13560 aarch64_output_sve_vector_inc_dec instead of
13561 aarch64_output_sve_inc_dec_immediate.
13563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13565 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
13566 (UNSPEC_REVW): New constants.
13567 (elem_bits): New mode attribute.
13568 (SVE_INT_UNARY): New int iterator.
13569 (optab): Handle UNSPEC_REV[BHW].
13570 (sve_int_op): New int attribute.
13571 (min_elem_bits): Handle VNx16QI and the predicate modes.
13572 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
13573 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
13574 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
13575 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
13576 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
13577 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
13578 unspecs based on the total width of the reversed data.
13579 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
13580 reinterpret followed by a subreg on big-endian targets.
13582 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13583 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13585 * config/aarch64/aarch64-sve.md
13586 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
13587 alternatives in which one of the inputs is in the same register
13590 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13592 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
13593 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
13595 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13597 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
13598 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
13600 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13601 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13603 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
13604 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
13605 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
13607 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13608 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13610 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
13611 Add an alternative that uses reversed shifts.
13613 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13615 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13620 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13621 a commutativity marker.
13623 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13624 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13626 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13627 (aarch64_prepare_sve_cond_int_fma): Declare.
13628 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13629 (aarch64_prepare_sve_int_fma): New functions.
13630 (aarch64_prepare_sve_cond_int_fma): Likewise.
13631 * config/aarch64/aarch64-sve.md
13632 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13633 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13634 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13635 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13636 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13637 (*madd<mode>): Rename to...
13638 (*fma<mode>4): ...this.
13639 (*msub<mode>): Rename to...
13640 (*fnma<mode>4): ...this.
13642 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13643 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13645 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13646 Print 2.0 naturally.
13647 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13648 * config/aarch64/predicates.md
13649 (aarch64_sve_float_negated_arith_immediate): New predicate,
13650 renamed from aarch64_sve_float_arith_with_sub_immediate.
13651 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13652 positive and negative constants.
13653 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13654 or an aarch64_sve_float_arith_with_sub_immediate.
13655 * config/aarch64/constraints.md (vsN): Use
13656 aarch64_sve_float_negated_arith_immediate.
13657 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13659 (sve_pred_fp_rhs2_immediate): New int attribute.
13660 * config/aarch64/aarch64-sve.md
13661 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13662 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13663 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13664 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13665 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13666 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13668 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13669 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13671 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13672 (*aarch64_cond_abd<SVE_F:mode>_3)
13673 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13675 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13676 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13678 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13679 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13681 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13682 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13684 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13685 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13686 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13687 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13689 * optabs.h (create_convert_operand_from): Expand comment.
13690 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13691 when mapping scalar rtxes to vector operands.
13692 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13693 ashiftrt and lshiftrt.
13694 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13695 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13696 (*cond_<optab><mode>_any_const): New patterns.
13698 2019-08-15 Martin Liska <mliska@suse.cz>
13701 * cgraph.c (cgraph_node::remove): When setting
13702 n->origin = NULL for all nested functions, reset
13705 2019-08-15 Martin Liska <mliska@suse.cz>
13707 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13710 2019-08-15 Martin Liska <mliska@suse.cz>
13713 * passes.c (order): Remove.
13714 (uid_hash_t): Likewise).
13715 (remove_cgraph_node_from_order): Remove from set
13716 of pointers (cgraph_node *).
13717 (insert_cgraph_node_to_order): New.
13718 (duplicate_cgraph_node_to_order): New.
13719 (do_per_function_toporder): Register all 3 cgraph hooks.
13720 Skip removed_nodes now as we know about all of them.
13722 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13724 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13725 <case E_V8QImode>: Use vector_set path for
13726 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13727 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13728 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13730 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13732 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13734 2019-08-14 Martin Sebor <msebor@redhat.com>
13736 PR tree-optimization/91294
13737 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13738 source length as exact.
13740 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13742 * doc/extend.texi: Add "noinit" attribute documentation.
13743 * doc/sourcebuild.texi: Add noinit effective target documentation.
13744 * varasm.c (default_section_type_flags): Add support for "noinit"
13746 (default_elf_select_section): Add support for "noinit" attribute.
13747 * config/msp430/msp430.c (msp430_attribute_table): Remove
13750 2019-08-14 Richard Biener <rguenther@suse.de>
13751 Uroš Bizjak <ubizjak@gmail.com>
13754 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13756 (scalar_chain::smode): New member.
13757 (scalar_chain::vmode): Likewise.
13758 (dimode_scalar_chain): Rename to...
13759 (general_scalar_chain): ... this.
13760 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13761 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13762 base with TImode and V1TImode.
13763 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13764 (general_scalar_chain::vector_const_cost): Adjust for SImode
13766 (general_scalar_chain::compute_convert_gain): Likewise. Add
13767 {S,U}{MIN,MAX} support.
13768 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13769 (general_scalar_chain::make_vector_copies): Likewise. Handle
13770 non-DImode chains appropriately.
13771 (general_scalar_chain::convert_reg): Likewise.
13772 (general_scalar_chain::convert_op): Likewise.
13773 (general_scalar_chain::convert_insn): Likewise. Add
13774 fatal_insn_not_found if the result is not recognized.
13775 (convertible_comparison_p): Pass in the scalar mode and use that.
13776 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13777 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13778 (scalar_to_vector_candidate_p): Remove by inlining into single
13780 (general_remove_non_convertible_regs): Rename from
13781 dimode_remove_non_convertible_regs.
13782 (remove_non_convertible_regs): Remove by inlining into single caller.
13783 (convert_scalars_to_vector): Handle SImode and DImode chains
13784 in addition to TImode chains.
13785 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13786 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13787 (*<maxmin>di3_doubleword): Likewise.
13789 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13790 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13792 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13793 (*cond_bic<mode>_any): New patterns.
13795 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13797 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13798 take the equivalent mask, as well as a bit count.
13799 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13800 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13801 (aarch64_sve_pred_and_operand): New predicates.
13802 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13804 * config/aarch64/aarch64-sve.md
13805 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13806 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13808 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13810 * config/aarch64/aarch64-sve.md
13811 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13812 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13816 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13818 * config/aarch64/aarch64-sve.md
13819 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13820 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13822 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13823 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13825 * config/aarch64/aarch64-sve.md
13826 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13827 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13829 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13831 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13832 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13835 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13836 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13838 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13840 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13841 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13843 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13844 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13845 (aarch64_print_operand): Add support for %I.
13846 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13847 Bitcast floating-point constants to the corresponding integer constant.
13848 (aarch64_float_const_representable_p): Handle vectors as well
13850 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13851 for the new vcond_mask_<mode><vpred> expander.
13852 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13853 test aarch64_float_const_representable_p.
13854 (aarch64_sve_reg_or_dup_imm): New predicate.
13855 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13856 gen_vcond_mask_<mode><vpred> instead of
13857 gen_aarch64_sve_dup<mode>_const.
13858 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13859 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13860 for operands 1 and 2 respectively. Force operand 2 into a
13861 register if operand 1 is a register. Fold old define_insn...
13862 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13863 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13864 floating-point constants that can be moved as integers. Add
13865 alternatives for MOV /M and FMOV /M.
13866 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13867 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13868 1 and 2 respectively.
13869 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13871 (vss): New constraint.
13873 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13875 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13876 (aarch64_sve_float_maxmin_operand): New predicates.
13877 * config/aarch64/constraints.md (vsB): New constraint.
13879 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13880 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13881 UNSPEC_COND_FMINNM.
13882 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13883 Use aarch64_sve_float_maxmin_operand for operand 2.
13884 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13885 Add alternatives for the constant forms.
13887 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13889 * config/aarch64/constraints.md (vsb): New constraint.
13890 (vsm): Generalize description.
13891 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13893 (sve_imm_con): Handle smax, smin, umax and umin.
13894 (sve_imm_prefix): New code attribute.
13895 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13896 (aarch64_sve_vsb_operand): New predicates.
13897 (aarch64_sve_mul_immediate): Rename to...
13898 (aarch64_sve_vsm_immediate): ...this.
13899 (aarch64_sve_mul_operand): Rename to...
13900 (aarch64_sve_vsm_operand): ...this.
13901 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13902 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13903 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13904 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13905 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13906 add movprfx support for the immediate alternatives.
13907 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13909 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13912 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13914 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13915 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13916 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13918 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13920 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13921 (optab, sve_int_op): Handle them.
13922 * config/aarch64/aarch64-sve.md: Expand comment.
13924 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13926 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13927 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13928 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13930 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13932 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13933 (aarch64_expand_sve_const_pred_trn): New functions.
13934 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13935 use the above functions when the parameter is true.
13936 (aarch64_expand_sve_const_pred): Update call accordingly.
13937 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13939 (@aarch64_sve_<perm_insn><mode>): ...this.
13941 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13943 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13945 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13946 (aarch64_sve_emit_int_cmp): New functions.
13947 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13948 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13949 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13950 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13951 (UNSPEC_PRED_Z): New unspec.
13952 (set_clobber_cc_nzc): Delete.
13953 * config/aarch64/aarch64-sve.md: Add a block comment about
13955 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13956 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13957 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13958 UNSPEC_MERGE_PTRUE.
13959 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13960 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13961 check for compatible predicates.
13962 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13963 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13964 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13967 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13969 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13970 * config/aarch64/aarch64-sve.md: Add a section describing it.
13971 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13972 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13973 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13974 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13975 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13976 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13977 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13978 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13979 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13980 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13981 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13982 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13983 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13984 (aarch64_evpc_rev_local): Update accordingly.
13986 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13988 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13990 (SVE_BHSI, SVE_SDI): Tweak comment.
13991 (SVE_HSDI): Likewise. Fix definition.
13992 (SVE_SDF): New mode iterator.
13993 (elem_bits): New mode attribute.
13994 (SVE_COND_FCVT): New int iterator.
13995 * config/aarch64/aarch64-sve.md
13996 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13997 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13998 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13999 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14000 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
14001 ...these new patterns.
14002 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
14003 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
14004 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
14006 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
14007 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
14008 ...these new patterns.
14009 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
14010 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
14011 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
14012 ...this new pattern.
14013 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
14014 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
14015 ...this new pattern.
14016 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
14018 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14020 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
14021 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
14022 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
14024 (optab, su): Handle them.
14025 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
14026 * config/aarch64/aarch64-sve.md
14027 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
14028 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
14029 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
14030 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
14031 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
14032 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
14033 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
14034 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
14035 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
14037 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
14038 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
14039 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
14040 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
14041 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
14042 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
14043 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
14044 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
14045 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
14046 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
14047 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
14048 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
14049 of UNSPEC_FLOAT_CONVERT.
14050 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
14051 aarch64_sve_extend<mode><Vwide>2.
14053 2019-08-14 Richard Biener <rguenther@suse.de>
14056 * config/i386/i386-features.c
14057 (dimode_scalar_chain::compute_convert_gain): Compute and dump
14058 individual instruction gain. Fix reg-reg copy GRP cost. Use
14059 ix86_cost->sse_op for vector instruction costs.
14061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14063 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14064 (cmp_op): Handle it.
14065 (SVE_COND_FP_CMP): Rename to...
14066 (SVE_COND_FP_CMP_I0): ...this.
14067 (SVE_FP_CMP): Remove.
14068 * config/aarch64/aarch64-sve.md
14069 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14070 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14071 using unspecs to represent the comparison.
14072 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14073 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14075 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14076 (aarch64_unspec_cond_code): Move after integer code. Handle
14078 (aarch64_emit_sve_predicated_cond): Replace with...
14079 (aarch64_emit_sve_fp_cond): ...this new function.
14080 (aarch64_emit_sve_or_conds): Replace with...
14081 (aarch64_emit_sve_or_fp_conds): ...this new function.
14082 (aarch64_emit_sve_inverted_cond): Replace with...
14083 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14084 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14086 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14088 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14089 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14090 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14091 SVE_HSD instead of SVE_SD.
14093 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14094 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14096 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14098 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14100 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14101 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14102 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14103 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14104 (*div<SVE_F:mode>3): Generalize to...
14105 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14107 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14108 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14110 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14112 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14114 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14116 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14118 * config/aarch64/aarch64-sve.md: Add a block comment about the
14119 handling of predicated FP operations.
14120 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14121 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14122 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14123 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14124 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14126 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14127 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14129 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14130 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14131 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14132 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14133 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14134 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14135 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14136 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14137 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14138 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14139 strictness operands. Use aarch64_sve_pred_dominates_p to check
14140 whether the predicate on the conditional operation is suitable
14141 for merging. Split patterns into the canonical equal-predicate form.
14142 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14143 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14145 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14148 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14149 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14150 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14152 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14153 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14157 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14159 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14160 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14161 actually has, rather than relying on REG_EQUAL notes.
14162 Make the insn operand order match the SVE operand order.
14163 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14164 the SVE operand order.
14166 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14168 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14169 (aarch64_emit_set_immediate): Likewise.
14170 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14171 (aarch64_pfalse_reg): Likewise.
14172 (aarch64_convert_sve_data_to_pred): New function.
14173 (aarch64_sve_move_pred_via_while): Take an optional target register
14174 and the required register mode.
14175 (aarch64_expand_sve_const_pred_1): New function.
14176 (aarch64_expand_sve_const_pred): Likewise.
14177 (aarch64_expand_mov_immediate): Build an all-true predicate
14178 if the significant bits of the immediate are all true. Use
14179 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14180 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14181 before register allocation.
14182 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14183 a VNx16BI PTRUE when splitting the memory alternative.
14184 (vec_duplicate<mode>): Update accordingly.
14185 (*pred_cmp<cmp_op><mode>): Rename to...
14186 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14190 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14191 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14192 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14193 (UNSPEC_PTEST): New unspec.
14194 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14195 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14196 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14197 * config/aarch64/aarch64-sve.md: Add a new section describing the
14198 handling of UNSPEC_PTEST.
14199 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14200 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14201 (ptest_ptrue<mode>): Replace with...
14202 (aarch64_ptest<mode>): ...this new pattern.
14203 (cbranch<mode>4): Update after above changes.
14204 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14205 UNSPEC_PTEST_PTRUE.
14206 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14207 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14208 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14210 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14213 * builtins.c (builtin_with_linkage_p): New function.
14214 * builtins.h (builtin_with_linkage_p): New function.
14215 * symtab.c (write_symbol): Remove redundant assert.
14216 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14217 Remove FIXME and use builtin_with_linkage_p.
14219 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14221 PR middle-end/91421
14222 * tree-core.h (function_decl::function_code): Change type to
14224 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14225 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14226 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14227 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14228 is BUILT_IN_NORMAL.
14229 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14230 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14231 (fndecl_built_in_p): Change the type of the "name" argument to
14233 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14234 after check for DECL_BUILT_IN_CLASS.
14235 * cgraphclones.c (build_function_decl_skip_args): Use
14236 set_decl_built_in_function.
14237 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14238 * ipa-split.c (split_function): Likewise.
14239 * langhooks.c (add_builtin_function_common): Likewise.
14240 * omp-simd-clone.c (simd_clone_create): Likewise.
14241 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14242 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14243 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14244 DECL_FUNCTION_CODE.
14245 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14246 instead of DECL_FUNCTION_CODE.
14247 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14248 instead of DECL_FUNCTION_CODE.
14249 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14250 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14251 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14252 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14253 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14254 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14255 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14256 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
14257 (alpha_gimple_fold_builtin): Likewise.
14258 * config/arc/arc.c (arc_expand_builtin): Likewise.
14259 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
14260 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
14261 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
14262 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
14263 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
14264 * config/frv/frv.c (frv_expand_builtin): Likewise.
14265 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
14266 (gcn_expand_builtin): Likewise.
14267 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
14268 (fold_builtin_cpu): Likewise.
14269 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
14270 * config/i386/i386.c (ix86_fold_builtin): Likewise.
14271 (ix86_gimple_fold_builtin): Likewise.
14272 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
14273 (ia64_expand_builtin): Likewise.
14274 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
14275 * config/mips/mips.c (mips_expand_builtin): Likewise.
14276 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
14277 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14278 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
14279 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
14280 * config/pa/pa.c (pa_expand_builtin): Likewise.
14281 * config/pru/pru.c (pru_expand_builtin): Likewise.
14282 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
14283 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14285 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
14286 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
14287 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
14288 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
14289 (rs6000_builtin_reciprocal): Likewise.
14290 * config/rx/rx.c (rx_expand_builtin): Likewise.
14291 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14292 * config/s390/s390.c (s390_expand_builtin): Likewise.
14293 * config/sh/sh.c (sh_expand_builtin): Likewise.
14294 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
14295 (sparc_fold_builtin): Likewise.
14296 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14297 * config/spu/spu.c (spu_expand_builtin): Likewise.
14298 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
14299 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
14300 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
14301 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14302 (xtensa_expand_builtin): Likewise.
14304 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14306 PR middle-end/91421
14307 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
14308 before the DECL_FUNCTION_CODE.
14309 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
14310 to check for a BUILT_IN_ALLOCA call.
14311 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
14312 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
14313 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
14314 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14315 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
14316 for BUILT_IN_NORMAL functions.
14317 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
14318 test for BUILT_IN_TM_ABORT.
14319 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
14320 to check for a BUILT_IN_STACK_RESTORE call.
14321 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
14322 * tree-ssa-threadedge.c
14323 (record_temporary_equivalences_from_stmts_at_dest): Check for a
14324 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
14325 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
14326 test for a BUILT_IN_NORMAL call instead of a negative test for
14327 an internal function call.
14329 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14331 * tree.h (build_vector_a_then_b): Declare.
14332 * tree.c (build_vector_a_then_b): New function.
14333 * fold-const-call.c (fold_while_ult): Likewise.
14334 (fold_const_call): Use it to handle IFN_WHILE_ULT.
14335 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
14336 (aarch64_svpattern): New enum.
14337 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
14338 constants through aarch64_expand_mov_immediate.
14339 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
14340 than general_operand as the predicate for operand 1.
14341 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
14342 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
14344 (simd_immediate_info::simd_immediate_info): New overload that
14345 takes a scalar_int_mode and an svpattern.
14346 (simd_immediate_info::u): Add a "pattern" field.
14347 (svpattern_token): New function.
14348 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
14349 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
14350 (aarch64_sve_move_pred_via_while): New functions.
14351 (aarch64_expand_mov_immediate): Try using
14352 aarch64_sve_move_pred_via_while for predicates that contain N ones
14353 followed by M zeros but that do not correspond to a VLnnn pattern.
14354 (aarch64_sve_pred_valid_immediate): New function.
14355 (aarch64_simd_valid_immediate): Use it instead of dealing directly
14356 with PTRUE and PFALSE.
14357 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
14360 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
14362 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
14364 (darwin_override_options): Likewise.
14365 * config/darwin.h: Likewise.
14366 * config/darwin.opt: Likewise.
14367 * config/i386/i386.c (output_pic_addr_const): Likewise.
14368 * config/rs6000/darwin.h: Likewise.
14369 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
14370 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
14371 ... this TARGET_MACHO_SYMBOL_STUBS.
14372 (FUNCTION_PROFILER):Likewise.
14373 * config/i386/i386.h: Likewise.
14375 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14377 * config/i386/i386-expand.c (ix86_expand_vector_extract)
14378 <case E_V2SImode>: Use vec_extr path for
14379 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14380 <case E_V8QImode>: Ditto.
14381 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
14382 Use SWI48 mode iterator. Use %k to output operand 0.
14383 (*mmx_pextrw): New insn pattern.
14384 (*mmx_pextrb): Ditto.
14385 (*mmx_pextrb_zext): Ditto.
14387 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
14389 * target.def (libc_has_function, libc_has_fast_function): Improve
14390 documentation strings.
14391 * doc/tm.texi: Regenerate.
14393 2019-08-13 Caroline Tice <cmtice@google.com>
14396 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
14397 vtv_end.o or vtv_end_preinit.o files if !static.
14399 2019-08-13 Olivier Hainque <hainque@adacore.com>
14401 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
14403 2019-08-13 Olivier Hainque <hainque@adacore.com>
14405 * rtlanal.c (tablejump_casesi_pattern): New function, to
14406 determine if a tablejump insn is a casesi dispatcher. Extracted
14407 from patch_jump_insn.
14408 * rtl.h (tablejump_casesi_pattern): Declare.
14409 * cfgrtl.c (patch_jump_insn): Use it.
14410 * dwarf2cfi.c (create_trace_edges): Use it.
14412 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14415 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
14416 operand is larger than a long int.
14418 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14420 * machmode.h (opt_mode::else_mode): New function.
14421 (opt_mode::else_blk): Use it.
14422 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
14423 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
14424 (aarch64_gen_stepped_int_parallel): Likewise.
14425 (aarch64_stepped_int_parallel_p): Likewise.
14426 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14428 * config/aarch64/aarch64.c
14429 (aarch64_expand_sve_widened_duplicate): Delete.
14430 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14431 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14432 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14433 argument. Use early returns in the !CONST_INT_P handling.
14434 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14435 than handling some inline.
14436 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14438 (aarch64_simd_container_mode): ...here.
14439 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14440 (aarch64_sve_ld1rq_operand_p): New functions.
14441 * config/aarch64/predicates.md (descending_int_parallel)
14442 (aarch64_sve_ld1rq_operand): New predicates.
14443 * config/aarch64/constraints.md (UtQ): New constraint.
14444 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14445 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14446 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14447 (@aarch64_sve_reinterpret<mode>): New expander.
14448 (*aarch64_sve_reinterpret<mode>): New pattern.
14449 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14450 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14451 (*sve_ld1rq<Vesize>): Replace with...
14452 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14454 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14456 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14459 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14461 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14462 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14463 (msp430_check_path_for_devices): New.
14464 (parse_devices_csv_1): New.
14465 (parse_devices_csv): New.
14466 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14467 MCU data in devices.csv before using the hard-coded data.
14468 Warn if devices.csv isn't found and the MCU wasn't found in the
14469 hard-coded data either.
14470 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14471 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
14472 Search for devices.csv on -I and -L paths.
14473 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
14474 msp430_set_driver_var.
14475 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
14476 -mdevices-csv-loc=.
14477 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
14478 searched for devices.csv.
14479 (mwarn-devices-csv): Document option.
14481 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14483 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
14484 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
14485 Use a single Dn alternative instead of separate Dz and Dm
14486 alternatives. Use aarch64_output_sve_move_immediate.
14487 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
14489 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
14490 for predicates too.
14491 (aarch64_output_sve_mov_immediate): Handle predicate modes.
14492 (aarch64_output_ptrue): Delete.
14494 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14496 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
14498 (simd_immediate_info::value, simd_immediate_info::step)
14499 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
14501 (simd_immediate_info::u): ...this new union.
14502 (simd_immediate_info::simd_immediate_info): Update accordingly.
14503 (aarch64_output_simd_mov_immediate): Likewise.
14504 (aarch64_output_sve_mov_immediate): Likewise.
14506 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14508 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
14510 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
14511 (msp430_select_cpu): New spec function.
14512 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
14514 * config/msp430/msp430-devices.c: New file.
14515 * config/msp430/msp430-devices.h: New file.
14516 * config/msp430/msp430.c: Remove msp430_mcu_data.
14517 (msp430_option_override): Use msp430_extract_mcu_data to extract
14519 (msp430_use_f5_series_hwmult): Likewise.
14520 (use_32bit_hwmult): Likewise.
14521 (msp430_no_hwmult): Likewise.
14522 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
14524 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
14526 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
14527 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
14528 Remove hard-coded MCU multilib data.
14530 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14532 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
14533 based on the mode instead of testing properties of it.
14535 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14537 * doc/md.texi: Document the x and y constraints for AArch64.
14538 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
14539 (FP_LO8_REGS): New reg_class.
14540 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
14541 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
14542 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
14543 * config/aarch64/predicates.md (aarch64_simd_register): Use
14544 FP_REGNUM_P instead of checking the classes manually.
14545 * config/aarch64/constraints.md (y): New constraint.
14547 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14549 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
14550 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
14551 * config/aarch64/aarch64-simd.md
14552 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
14553 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
14554 from the asm template.
14555 * config/aarch64/aarch64-sve.md
14556 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
14557 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
14558 from the asm template.
14559 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
14560 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
14561 from the asm template.
14562 * config/aarch64/aarch64-simd-builtins.def: Update comment.
14564 2019-08-13 Martin Liska <mliska@suse.cz>
14566 * value-prof.c (gimple_ic_transform): Add new line.
14567 Print details with MSG_NOTE.
14569 2019-08-13 Martin Liska <mliska@suse.cz>
14571 * doc/invoke.texi: Document automatic detection of jobserver.
14572 * lto-wrapper.c (run_gcc): Detect jobserver always.
14574 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14576 * config/i386/i386-expand.c (ix86_expand_vector_set)
14577 <case E_V2SImode>: Use vec_merge path for
14578 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14579 <case E_V8QImode>: Ditto.
14580 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
14581 (*mmx_pinsrb): Ditto.
14583 2019-08-12 Jakub Jelinek <jakub@redhat.com>
14587 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
14588 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
14589 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
14590 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
14591 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
14593 2019-08-12 Richard Biener <rguenther@suse.de>
14596 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
14599 2019-08-12 Richard Biener <rguenther@suse.de>
14602 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
14603 lang_mask option, always use CL_DRIVER.
14604 (get_options_from_collect_gcc_options): Adjust.
14605 (find_and_merge_options): Likewise.
14606 (run_gcc): Likewise.
14608 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14610 * ipa-predicate.c (add_condition): Restore inverted test.
14612 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14614 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14615 (enum omp_clause_device_type_kind): New enum.
14616 (struct tree_omp_clause): Add subcode.device_type_kind.
14617 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14618 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14619 for device_type clause.
14620 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14621 * tree-pretty-print.c (dump_omp_clause): Likewise.
14624 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14627 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14629 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14630 handling spilled pseudos.
14632 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14635 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14636 to preserve the contents of the original insns.
14638 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14640 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14641 (addsi3_compare_op2): Likewise.
14643 2019-08-09 Martin Liska <mliska@suse.cz>
14645 * alias.c (alias_ptr_types_compatible_p): Strengten
14646 type comparison in LTO mode.
14648 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14650 PR middle-end/90313
14651 * tree-tailcall.c (find_tail_calls): Reject calls that might
14652 read from an escaped RESULT_DECL.
14654 2019-08-09 Martin Liska <mliska@suse.cz>
14656 * doc/invoke.texi: Document the option value.
14657 * lto-wrapper.c (run_gcc): Set auto_parallel
14658 only with -flto=auto.
14660 2019-08-09 Martin Liska <mliska@suse.cz>
14662 * opts.c (common_handle_option): Error for an invalid argument
14665 2019-08-09 Martin Liska <mliska@suse.cz>
14667 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14668 use dump_printf to report optimization.
14669 (sem_variable::merge): Likwise.
14670 (sem_item_optimizer::merge_classes): Use dump_printf to report
14673 2019-08-09 Martin Liska <mliska@suse.cz>
14675 * value-prof.c (gimple_divmod_fixed_value_transform):
14676 Use dump_printf_loc.
14677 (gimple_mod_pow2_value_transform): Likewise.
14678 (gimple_mod_subtract_transform): Likewise.
14679 (init_node_map): Likewise.
14680 (gimple_ic_transform): Likewise.
14681 (gimple_stringops_transform): Likewise.
14683 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14685 * doc/extend.texi: Add const qualifier to ld intrinsics.
14687 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14689 * config/rs6000/dfp.md (D64_D128): Rename to ...
14690 (DDTD): ... this, throughout.
14691 (dfp_suffix): Rename to ...
14692 (q): ... this, throughout.
14694 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14696 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14697 (dfp_suffix): Ditto.
14698 (adddd3, addtd3): Merge to ...
14699 (add<mode>3 for D64_D128): ... this.
14700 (subdd3, subtd3): Merge to ...
14701 (sub<mode>3 for D64_D128): ... this.
14702 (muldd3, multd3): Merge to ...
14703 (mul<mode>3 for D64_D128): ... this.
14704 (divdd3, divtd3): Merge to ...
14705 (div<mode>3 for D64_D128): ... this.
14706 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14707 (*cmp<mode>_internal1 for D64_D128): ... this.
14708 (ftruncdd2, ftrunctd2): Merge to ...
14709 (ftrunc<mode>2 for D64_D128): ... this.
14710 (fixdddi2, fixtddi2): Merge to ...
14711 (fix<mode>di2 for D64_D128): ... this.
14713 2019-08-08 Jim Wilson <jimw@sifive.com>
14716 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14717 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14718 Pass into recursive call.
14719 (riscv_flatten_aggregate_argument): New arg. Pass to
14720 riscv_flatten_aggregate_field.
14721 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14722 riscv_flatten_aggregate_argument twice, with false and true as last
14723 arg. Process result twice. Compare results and warn if different.
14724 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14726 2019-08-08 Martin Liska <mliska@suse.cz>
14729 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14730 * lto-wrapper.c (jobserver_active_p): Likewise.
14732 2019-08-08 Martin Liska <mliska@suse.cz>
14734 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14735 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14736 (create_version_clone_with_body): Likewise.
14738 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14740 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14741 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14742 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14743 GOVD_EXPLICIT flags.
14744 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14745 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14746 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14747 call install_var_field with mask 11 instead of 3.
14748 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14749 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14751 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14753 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14754 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14756 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14758 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14759 MOVPRFX alternatives. Make the GPR alternatives more expensive
14762 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14764 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14765 Disparage the GPR alternative relative to the FPR one.
14766 Fix handling of 8-bit and 16-bit FPR values.
14768 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14770 * config/aarch64/iterators.md (BITWISEV): Delete.
14771 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14772 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14773 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14774 UNSPEC_FMINNMV, UNSPEC_FMINV.
14775 (bit_reduc_op): Delete.
14776 (sve_int_op): New int attribute.
14777 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14778 UNSPEC_FMINNMV, UNSPEC_FMINV.
14779 * config/aarch64/aarch64-sve.md
14780 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14781 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14782 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14783 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14784 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14785 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14787 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14788 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14789 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14790 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14791 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14794 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14796 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14797 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14798 (fms<mode>4, *fms<mode>4): Replace with...
14799 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14800 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14801 Use unspecs instead of rtx codes.
14802 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14803 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14805 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14807 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14809 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14810 * config/aarch64/aarch64-sve.md
14811 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14812 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14813 use a single unspec for the rhs.
14814 (*<su><maxmin><mode>3): Delete.
14815 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14817 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14819 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14820 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14821 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14822 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14823 (optab, sve_fp_op): Handle them.
14824 (SVE_FP_UNARY): Delete.
14825 (optab): Remove sqrt entry.
14826 (sve_fp_op): Remove neg, abs and sqrt entries.
14827 (SVE_COND_FP_UNARY): New int iterator.
14828 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14829 (*<frint_pattern><mode>2): Delete.
14830 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14831 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14832 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14833 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14835 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14837 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14839 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14841 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14842 (UNSPEC_COND_FADD): ...this.
14843 (UNSPEC_COND_SUB): Rename to...
14844 (UNSPEC_COND_FSUB): ...this.
14845 (UNSPEC_COND_MUL): Rename to...
14846 (UNSPEC_COND_FMUL): ...this.
14847 (UNSPEC_COND_DIV): Rename to...
14848 (UNSPEC_COND_FDIV): ...this.
14849 (UNSPEC_COND_MAX): Rename to...
14850 (UNSPEC_COND_FMAXNM): ...this.
14851 (UNSPEC_COND_MIN): Rename to...
14852 (UNSPEC_COND_FMINNM): ...this.
14853 (UNSPEC_COND_LT): Rename to...
14854 (UNSPEC_COND_FCMLT): ...this.
14855 (UNSPEC_COND_LE): Rename to...
14856 (UNSPEC_COND_FCMLE): ...this.
14857 (UNSPEC_COND_EQ): Rename to...
14858 (UNSPEC_COND_FCMEQ): ...this.
14859 (UNSPEC_COND_NE): Rename to...
14860 (UNSPEC_COND_FCMNE): ...this.
14861 (UNSPEC_COND_GE): Rename to...
14862 (UNSPEC_COND_FCMGE): ...this.
14863 (UNSPEC_COND_GT): Rename to...
14864 (UNSPEC_COND_FCMGT): ...this.
14865 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14866 (sve_fp_op_rev): Update accordingly.
14867 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14869 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14871 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14873 * config/aarch64/check-sve-md.awk: New file.
14874 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14875 (insn-conditions.md): Depend on it.
14877 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14880 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14881 (*negsi2_cmpz_zext): Ditto.
14883 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14885 * config/aarch64/iterators.md (commutative): Remove.
14887 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14890 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14891 processing COLLECT_GCC_OPTIONS.
14892 (run_gcc): Likewise.
14894 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14896 PR tree-optimization/91109
14897 * lra-remat.c (update_scratch_ops): Remove assignment of the
14900 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14902 * data-streamer.h (streamer_write_poly_uint64): Declare.
14903 (streamer_read_poly_uint64): Likewise.
14904 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14905 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14906 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14907 (add_condition): Take a poly_int64 size.
14908 * ipa-predicate.c (add_condition): Likewise.
14909 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14910 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14911 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14912 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14913 condition::size as a poly_int64.
14914 (unmodified_parm_1): Take a poly_int64 size pointer.
14915 (unmodified_parm): Likewise.
14916 (unmodified_parm_or_parm_agg_item): Likewise.
14917 (set_cond_stmt_execution_predicate): Update accordingly.
14918 (set_switch_stmt_execution_predicate): Likewise.
14919 (will_be_nonconstant_expr_predicate): Likewise.
14920 (will_be_nonconstant_predicate): Likewise.
14921 (inline_read_section): Stream condition::size as a poly_int.
14922 (ipa_fn_summary_write): Likewise.
14924 2019-08-07 Martin Liska <mliska@suse.cz>
14926 * fold-const.c (twoval_comparison_p): Replace int
14927 with bool as a return type.
14928 (simple_operand_p): Likewise.
14929 (operand_equal_p): Replace int with bool as a return type.
14930 * fold-const.h (operand_equal_p): Likewise.
14932 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14934 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14935 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14936 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14937 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14938 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14939 * tree-pretty-print.c (dump_omp_clause): Likewise.
14940 * tree-nested.c (convert_nonlocal_omp_clauses,
14941 convert_local_omp_clauses): Likewise.
14942 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14944 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14945 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14946 clause with array or reference to array types, no matter what type
14947 except for reference it has.
14949 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14951 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14953 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14955 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14956 (arch_canonicalize): Support rv32g and rv64g and fix error
14959 2019-08-06 Martin Liska <mliska@suse.cz>
14961 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14962 and DECL_IS_OPERATOR_DELETE_P.
14964 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14966 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14967 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14968 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14969 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14970 (gimplify_omp_for): Don't do C++ random access iterator clause
14971 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14972 don't predetermine the artificial iterator in case of C++ random
14973 access iterators as lastprivate, but private. For OMP_LOOP, force
14974 bind expr around simd body and force for_pre_body before the
14975 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14976 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14977 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14978 diff var of C++ random access iterators. Handle
14979 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14980 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14981 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14982 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14983 * omp-low.c (lower_rec_input_clauses): For
14984 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14985 variables instead of default constructing them.
14986 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14987 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14988 is_taskloop_ctx check from the assert to the guarding condition.
14990 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14992 * config/riscv/multilib-generator: (canonical_order): New.
14993 (arch_canonicalize): Dito.
14994 Apply arch_canonicalize for alts.
14996 2019-08-05 Martin Sebor <msebor@redhat.com>
14998 * doc/extend.texi (Common Variable Attributes): Document alias
15001 2019-08-05 Marek Polacek <polacek@redhat.com>
15003 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
15004 * doc/invoke.texi: Document -Wcomma-subscript.
15006 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15008 * tree-core.h (tree_function_decl): Make function_code an
15009 independent field. Group the remaining bitfields into bytes
15010 and move decl_type so that it contines to be at a byte boundary.
15011 Leave 12 bits for future expansion.
15013 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15015 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
15016 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
15017 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
15020 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15022 * gimple.h (gimple_move_vops): Declare.
15023 * gimple.c (gimple_move_vops): New function
15024 * gimple-fold.c (replace_call_with_call_and_fold)
15025 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
15026 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
15027 (gimple_fold_call): Use it.
15028 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
15029 * tree-call-cdce.c (use_internal_fn): Likewise.
15030 * tree-if-conv.c (predicate_load_or_store): Likewise.
15031 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
15032 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15033 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
15034 (update_call_from_tree): Likewise.
15035 * tree-vect-stmts.c (vectorizable_load): Likewise.
15036 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
15038 2019-08-05 Martin Liska <mliska@suse.cz>
15041 * tree-ssa-dce.c (propagate_necessity): Handle new operators
15042 with not arguments.
15043 (eliminate_unnecessary_stmts): Likewise.
15045 2019-08-05 Richard Biener <rguenther@suse.de>
15047 PR middle-end/91169
15048 * fold-const.c (get_array_ctor_element_at_index): Create
15049 offset_ints according to the sign of the index type and treat
15050 that as signed if it is obviously so.
15052 2019-08-05 Jakub Jelinek <jakub@redhat.com>
15055 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
15056 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
15057 _mm256_storeu2_m128i): New function.
15059 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15061 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15062 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15064 2019-08-05 Alan Modra <amodra@gmail.com>
15067 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15068 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15070 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15072 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15073 bug that was fixed in Tcl 8.6.1.
15075 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15077 * config/rs6000/future.md: New file.
15078 * config/rs6000/rs6000.md: Include future.md.
15079 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15081 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15083 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15084 check to use targetm.slow_unaligned_access instead.
15086 * function.c (assign_param_data_one): Remove unused data members.
15088 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15090 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15091 build_distinct_type_copy.
15092 (simd_clone_adjust_argument_types): Ditto.
15093 (simd_clone_adjust): Call build_distinct_type_copy here.
15094 (expand_simd_clones): Ditto.
15096 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15099 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15101 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15103 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15104 from 'const void *'.
15105 (sort_locs_in_loop_postorder_cmp): Likewise.
15107 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15109 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15110 (hot-bb-count-ws-permille): Likewise.
15111 (hot-bb-frequency-fraction): Likewise.
15112 (unlikely-bb-count-fraction): Likewise.
15113 * params.def (hot-bb-count-fraction): Rework description.
15114 (hot-bb-count-ws-permille): Likewise.
15115 (hot-bb-frequency-fraction): Likewise.
15116 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15117 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15119 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15122 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15125 2019-08-02 Richard Biener <rguenther@suse.de>
15127 * vec.h (vec::sort): Add gcc_qsort_r support.
15128 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15129 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15130 to gcc_qsort_r style callback.
15131 (sort_locs_in_loop_postorder_cmp): Likewise.
15132 (analyze_memory_references): Use gcc_sort_r interfaces.
15133 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15135 2019-08-02 Martin Liska <mliska@suse.cz>
15138 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15139 to detect working job server.
15140 (driver::detect_jobserver): Test whether jobserver
15141 is active from GCC driver. That will prevent situation where
15142 GCC is invoked from a LD plugin and the linker already uses
15143 file descriptors suggested by make. That leads to a wrong
15145 * gcc.h (driver): Add detect_jobserver.
15146 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15147 not scanning for --jobserver-auth prefix.
15149 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15151 PR tree-optimization/91201
15152 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15153 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15156 2019-08-01 Martin Sebor <msebor@redhat.com>
15159 * tree.c (type_initializer_zero_p): Define.
15160 * tree.h (type_initializer_zero_p): New function.
15162 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15164 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15166 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15168 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15169 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15170 * predict.c (maybe_hot_count_p): Likewise.
15171 (maybe_hot_bb_p): Tweak comment.
15172 (maybe_hot_edge_p): Likewise.
15173 (probably_never_executed): Likewise. Minor tweak.
15174 (probably_never_executed_bb_p): Likewise.
15175 (unlikely_executed_edge_p): Likewise.
15176 (probably_never_executed_edge_p): Likewise.
15177 (optimize_function_for_size_p): Likewise.
15178 (optimize_function_for_speed_p): Likewise.
15179 (function_optimization_type): Likewise.
15180 (optimize_bb_for_size_p): Likewise.
15181 (optimize_bb_for_speed_p): Likewise.
15182 (bb_optimization_type): Likewise.
15183 (optimize_edge_for_size_p): Likewise.
15184 (optimize_edge_for_speed_p): Likewise.
15185 (optimize_insn_for_size_p): Likewise.
15186 (optimize_insn_for_speed_p): Likewise.
15187 (optimize_loop_for_size_p): Likewise.
15188 (optimize_loop_for_speed_p): Likewise.
15189 (optimize_loop_nest_for_speed_p): Likewise.
15190 (optimize_loop_nest_for_size_p): Likewise.
15191 (predictable_edge_p): Likewise.
15192 (handle_missing_profiles): Minor tweak.
15194 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15196 * config/rs6000/predicates.md (pcrel_external_address): Update
15199 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15202 * config/i386/mmx.md (usadv8qi): New expander.
15204 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15207 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15208 with reserved names that are in a system header.
15210 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15212 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15213 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15214 (*vec_extractv2si_0_zext): Ditto.
15215 (*vec_extractv2si_1): Add (rm,x) alternative.
15216 (*vec_extractv2si_1_zext): New insn pattern.
15217 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15220 2019-08-01 Richard Biener <rguenther@suse.de>
15222 * domwalk.c (bb_postorder): Remove static variable.
15223 (cmp_bb_postorder): Adjust.
15224 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15225 (dom_walker::walk): Adjust.
15227 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15229 * sort.cc (sort_r_ctx): New struct.
15230 (reorder23): Make templated on context type.
15231 (reorder45): Ditto.
15232 (cmp1): Ditto. Adjust signature.
15234 (mergesort): Ditto.
15235 [CHECKING_P] (cmp2to3): New static function. Use it...
15236 (gcc_qsort) [CHECKING_P]: ...here.
15237 (gcc_sort_r): New function.
15238 * system.h (sort_r_cmp_fn): New function typedef.
15239 (qsort_chk): Adjust signature.
15240 (gcc_sort_r): Declare.
15241 * vec.c (qsort_chk_error): Adjust.
15242 (qsort_chk): Adjust.
15244 2019-08-01 Richard Biener <rguenther@suse.de>
15246 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15247 (compute_antic): Localize it here.
15249 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15251 * common/config/riscv/riscv-common.c: Check -march string ends
15254 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15256 * ipa-devirt.c (type_warning_cmp): Make static.
15257 (decl_warning_cmp): Ditto.
15259 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
15262 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
15263 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
15264 use of deleted rs6000_dejagnu_cpu_index variable.
15265 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
15266 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15267 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
15268 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
15269 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
15270 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15272 2019-07-31 Richard Biener <rguenther@suse.de>
15274 PR tree-optimization/91280
15275 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15276 Decompose MEM_REF manually for offset handling.
15278 2019-07-31 Richard Biener <rguenther@suse.de>
15280 PR tree-optimization/91293
15281 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
15282 of reduction stmts.
15284 2019-07-31 Matt Thomas <matt@3am-software.com>
15285 Nick Hudson <nick@nthcliff.demon.co.uk>
15286 Matthew Green <mrg@eterna.com.au>
15287 Maya Rashish <coypu@sdf.org>
15289 * config.gcc (hppa*-*-netbsd*): New target.
15290 * config/pa/pa-netbsd.h: New file.
15291 * config/pa/pa32-netbsd.h: New file.
15293 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15295 PR tree-optimization/91201
15296 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
15298 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
15300 * config/gcn/gcn-valu.md
15301 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
15302 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
15303 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
15304 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
15305 struct ilist. Add nops for delayeduse insns.
15306 * config/gcn/gcn.md (delayeduse): New attribute.
15307 (*movbi): Remove s_waitcnt from stores.
15308 (*mov<mode>_insn): Likewise.
15309 (*movti_insn): Likewise. Add delayeduse attribute.
15310 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
15311 (atomic_store<mode>): Remove or adjust s_waitcnt.
15313 2019-07-31 Richard Biener <rguenther@suse.de>
15315 * vr-values.h (vr_values::swap_vr_value): New.
15316 (vr_values::free_value_range): likewise.
15317 * vr-values.c (vr_values::swap_vr_value): Implement.
15318 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
15319 Do not return a range or take a var.
15320 (evrp_range_analyzer::stack): Change back to recording a non-const
15322 * gimple-ssa-evrp-analyze.c
15323 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
15325 (evrp_range_analyzer::pop_to_marker): Adjust.
15326 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
15327 (evrp_range_analyzer::pop_value_range): Likewise. Free the
15328 no longer needed value-range.
15330 2019-07-31 Martin Liska <mliska@suse.cz>
15332 * tree-ssa-dce.c (propagate_necessity): Delete operator can
15333 have size and (or) alignment as 2nd and later arguments.
15334 Mark all of them as necessary.
15336 2019-07-31 Richard Biener <rguenther@suse.de>
15338 PR tree-optimization/91178
15339 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15340 Use tail-recursion.
15342 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15344 PR tree-optimization/91201
15345 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
15346 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
15348 (reduc_plus_scal_<mode>): Improve formatting by introducing
15351 2019-07-31 Sudakshina Das <sudi.das@arm.com>
15353 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
15354 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
15355 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
15356 (aarch64_init_tme_builtins): New.
15357 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
15358 (aarch64_expand_builtin_tme): New.
15359 (aarch64_expand_builtin): Handle TME builtins.
15360 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15361 __ARM_FEATURE_TME when enabled.
15362 * config/aarch64/aarch64-option-extensions.def: Add "tme".
15363 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
15365 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
15366 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
15368 (tstart, ttest, tcommit, tcancel): New instructions.
15369 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
15370 (__tcancel, __ttest): New.
15371 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
15372 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
15373 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
15374 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
15375 * config/arm/types.md: Add new tme type attr.
15376 * doc/invoke.texi: Document "tme".
15378 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
15380 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
15381 warn_unused_result attribute.
15382 (cmse_check_address_range): Add warn_unused_result attribute.
15384 2019-07-31 Richard Biener <rguenther@suse.de>
15386 PR tree-optimization/91257
15387 * tree-vrp.c (union_ranges): Unify equality and less tests
15388 by using compare_values. Re-order cheap tests first.
15390 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15392 PR middle-end/91301
15393 * gimplify.c (gimplify_omp_for): If for class iterator on
15394 distribute parallel for there is no data sharing clause
15395 on inner_for_stmt, look for private clause on combined
15396 parallel too and if found, move it to inner_for_stmt.
15398 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
15400 * lra-int.h (lra_operand_data): Remove early_clobber field.
15401 (lra_insn_reg): Likewise.
15402 * lra.c (debug_operand_data): Update accordingly.
15403 (setup_operand_alternative): Likewise.
15404 (new_insn_reg): Likewise. Remove early_clobber parameter.
15405 (collect_non_operand_hard_regs): Update call accordingly.
15406 Don't assign to lra_insn_reg::early_clobber.
15407 (add_regs_to_insn_regno_info): Remove early_clobber parameter
15408 and update calls to new_insn_reg.
15409 (lra_update_insn_regno_info): Update calls accordingly.
15410 * lra-constraints.c (update_and_check_small_class_inputs): Take the
15411 alternative number as a parameter and test whether the operand
15412 is earlyclobbered in that particular alternative.
15413 (process_alt_operands): Update call accordingly. Use per-alternative
15414 checks for earyclobber here too.
15415 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
15416 against zero for IRA_UNKNOWN_ALT.
15418 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15420 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
15422 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
15424 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
15425 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15427 2019-07-30 Martin Liska <mliska@suse.cz>
15430 * cgraph.c (cgraph_edge::make_direct): Use
15431 edge->indirect_unknown_callee as edge->resolve_speculation can
15432 deallocate edge which is this pointer.
15434 2019-07-30 Richard Biener <rguenther@suse.de>
15436 PR tree-optimization/91257
15437 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15439 2019-07-30 Martin Liska <mliska@suse.cz>
15441 * doc/invoke.texi: Document new behavior.
15442 * lto-wrapper.c (cpuset_popcount): New function
15443 is a copy of libgomp/config/linux/proc.c.
15444 (init_num_threads): Likewise.
15445 (run_gcc): Automatically detect core count for -flto.
15446 (jobserver_active_p): New function.
15448 2019-07-30 Richard Biener <rguenther@suse.de>
15450 PR tree-optimization/91257
15451 * bitmap.h (bitmap_ior_into_and_free): Declare.
15452 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15453 whether to add the unliked element to the freelist.
15454 (bitmap_list_insert_element_after): Add defaulted param for
15455 an already allocated element.
15456 (bitmap_ior_into_and_free): New function.
15457 * tree-ssa-structalias.c (condense_visit): Reduce the
15458 ponts-to and edge bitmaps of the SCC members in a
15459 logarithmic fashion rather than all to one.
15461 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15463 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15464 parameter. When nonnull, make sure that the addition or subtraction
15465 has the same condition.
15466 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15467 for CFN_COND_MUL too.
15469 2019-07-30 Richard Biener <rguenther@suse.de>
15471 PR tree-optimization/91291
15472 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
15475 2019-07-30 Jakub Jelinek <jakub@redhat.com>
15477 PR middle-end/91216
15478 * omp-low.c (global_nonaddressable_vars): New variable.
15479 (use_pointer_for_field): For global decls, if they are non-addressable,
15480 remember it in the global_nonaddressable_vars bitmap, if they are
15481 addressable and in the global_nonaddressable_vars bitmap, ignore their
15482 TREE_ADDRESSABLE bit.
15483 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
15484 vars in global_nonaddressable_vars bitmap.
15485 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
15488 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
15489 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
15490 comparison to unsigned HOST_WIDE_INT before shifting it left.
15492 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15494 * config/i386/i386.md (movstrict<mode>): Use register_operand
15495 predicate for operand 0. Add expander condition. Assert that
15496 operand 0 is a SUBREG RTX.
15497 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
15498 Update operand constraints and insn condition.
15499 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
15500 (zero_extendqihi2_and): Do not call gen_movstrictqi.
15501 (*setcc_qi_slp): Use register_operand predicate for operand 0.
15502 Update operand 0 constraints.
15503 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
15505 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15507 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
15508 when -m{code,data}-region are used without -mlarge.
15509 * config/msp430/msp430.c (msp430_option_override): Error when a
15510 non-default code or data region is used without -mlarge.
15511 (msp430_section_attr): Emit a warning and do not add upper/lower/either
15512 attributes when they are used without -mlarge.
15514 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15517 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
15519 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15521 PR middle-end/91242
15522 * wide-int.h (generic_wide_int::sext_elt): New function.
15523 * inchash.h (hash::add_wide_int): Use it instead of elt.
15525 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15527 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
15529 * config/arm/arm.md (<crc_variant>): Rename to...
15530 (arm_<crc_variant>): ... This.
15531 (<cdp>): Rename to...
15532 (arm_<cdp>): ... This.
15533 (<ldc>): Rename to...
15534 (arm_<ldc>): ... This.
15535 (<stc>): Rename to...
15536 (arm_<stc>): ... This.
15537 (<mcr>): Rename to...
15538 (arm_<mcr>): ... This.
15539 (<mrc>): Rename to...
15540 (arm_<mrc>): ... This.
15541 (<mcrr>): Rename to...
15542 (arm_<mcrr>): ... This.
15543 (<mrrc>): Rename to...
15544 (arm_<mrrc>): ... This.
15546 2019-07-29 Richard Biener <rguenther@suse.de>
15548 PR tree-optimization/91257
15549 * tree-ssa-sccvn.h (struct vn_avail): New.
15550 (struct vn_ssa_aux): Add avail member.
15551 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
15552 member, add m_avail_freelist one.
15553 (rpo_elim::~rpo_elim): Remove.
15554 (rpo_elim::eliminate_avail): Adjust to new avail tracking
15556 (rpo_elim::eliminate_push_avail): Likewise.
15557 (do_unwind): Likewise.
15558 (do_rpo_vn): Likewise.
15560 2019-07-29 Richard Biener <rguenther@suse.de>
15562 PR tree-optimization/91257
15563 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
15564 most cases, instead call compare_values which handles the
15565 symbolic ranges we handle specially.
15566 (compare_values_warnv): Do not call operand_less_p but open-code
15567 the effective fold calls. Avoid converting so much.
15569 2019-07-29 Martin Liska <mliska@suse.cz>
15571 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
15572 remove LHS of operator new call. It's handled latter.
15574 2019-07-29 Richard Biener <rguenther@suse.de>
15576 PR tree-optimization/91267
15577 * vr-values.c (vr_values::update_value_range): Add early return
15578 for effectively VARYING lattice entry.
15580 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15583 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
15584 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
15585 necessary if keep_all_vdefs_p is true.
15586 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
15587 that keep_all_vdefs_p is false.
15588 (mark_all_reaching_defs_necessary): Likewise.
15589 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
15591 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15593 * common.opt (Og): Change the initial value of flag_dse to 0.
15594 * opts.c (default_options_table): Move OPT_ftree_dse from
15595 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
15596 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
15597 entry before the OPT_ftree_sra entry.
15598 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
15599 of flags disabled by Og.
15601 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15603 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
15606 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15608 * doc/sourcebuild.texi (check-function-bodies): Document.
15610 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15612 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15613 VEC_DUPLICATE of a fixed-length vector even if the result
15614 is variable-length. Likewise fold a duplicate of a
15615 variable-length vector if the variable-length vector is
15616 itself a duplicate of a fixed-length sequence.
15617 (test_vector_ops_duplicate): Test more cases.
15619 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15621 * vector-builder.h (vector_builder): Add a shape template parameter.
15622 (vector_builder::new_unary_operation): New function, generalizing
15623 the old tree_vector_builder function.
15624 (vector_builder::new_binary_operation): Likewise.
15625 (vector_builder::binary_encoded_nelts): Likewise.
15626 * int-vector-builder.h (int_vector_builder): Update template
15627 parameters to vector_builder.
15628 (int_vector_builder::shape_nelts): New function.
15629 * rtx-vector-builder.h (rtx_vector_builder): Update template
15630 parameters to vector_builder.
15631 (rtx_vector_builder::shape_nelts): New function.
15632 (rtx_vector_builder::nelts_of): Likewise.
15633 (rtx_vector_builder::npatterns_of): Likewise.
15634 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15635 * tree-vector-builder.h (tree_vector_builder): Update template
15636 parameters to vector_builder.
15637 (tree_vector_builder::shape_nelts): New function.
15638 (tree_vector_builder::nelts_of): Likewise.
15639 (tree_vector_builder::npatterns_of): Likewise.
15640 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15641 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15642 (tree_vector_builder::new_binary_operation): Delete.
15643 (tree_vector_builder::binary_encoded_nelts): Likewise.
15644 * simplify-rtx.c: Include rtx-vector-builder.h.
15645 (distributes_over_addition_p): New function.
15646 (simplify_const_unary_operation)
15647 (simplify_const_binary_operation): Generalize handling of vector
15648 constants to include variable-length vectors.
15649 (test_vector_ops_series): Add more tests.
15651 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15654 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15655 than INDENTIFIER_POINTER.
15657 2019-07-28 Martin Liska <mliska@suse.cz>
15660 * cgraph.c (symbol_table::create_edge): Always allocate
15662 (symbol_table::free_edge): Store summary_id to
15663 edge_released_summary_ids if != -1;
15664 * cgraph.h (NEXT_FREE_NODE): Remove.
15665 (SET_NEXT_FREE_NODE): Likewise.
15666 (NEXT_FREE_EDGE): Likewise.
15667 (symbol_table::release_symbol): Store summary_id to
15668 cgraph_released_summary_ids if != -1;
15669 (symbol_table::allocate_cgraph_symbol): Always allocate
15672 2019-07-28 Alan Modra <amodra@gmail.com>
15674 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15677 2019-07-28 Alan Modra <amodra@gmail.com>
15680 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15682 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15683 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15684 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15686 2019-07-28 Alan Modra <amodra@gmail.com>
15689 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15690 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15691 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15692 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15693 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15694 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15695 in asm_default spec.
15696 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15697 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15699 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15701 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15703 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15706 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15707 * config/aarch64/aarch64-option-extensions.def: Add new comments
15708 and restore easier to read options.
15710 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15712 * convert.c (convert_to_real_1): Move part of conversion code...
15713 * match.pd: ...To here.
15715 2019-07-26 Martin Jambor <mjambor@suse.cz>
15718 * ipa-inline-transform.c (check_speculations_1): New function.
15719 (push_all_edges_in_set_to_vec): Likewise.
15720 (check_speculations): Use check_speculations_1, new parameter
15722 (inline_call): Pass new_edges to check_speculations.
15723 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15725 (speculation_useful_p): Early return true if edge is inlined, remove
15726 later checks for inline_failed.
15728 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15730 PR rtl-optimization/91223
15731 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15732 matching with INOUT operand.
15734 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15736 * stmt.c (expand_case): Try to narrow the index type if it's larger
15737 than a word. Tidy up.
15739 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15741 * cif-code.def (NEVER_CALL): New code.
15742 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15743 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15745 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15747 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15748 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15750 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15752 * ipa-devirt.c (add_type_duplicate): Fix return value.
15754 2019-07-25 Richard Biener <rguenther@suse.de>
15756 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15757 type parameter and use it instead of guessing expression
15758 type from the first operand.
15759 (extract_range_from_binary_expr): Pass expr_type down.
15761 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15763 * config/arm/arm.md (SATrev): Change to code attribute.
15764 (*satsi_<SAT:code>): Adjust for the above.
15765 (*satsi_<SAT:code>_shift): Likewise.
15767 2019-07-25 Richard Biener <rguenther@suse.de>
15769 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15770 Make value_range * temporary const.
15771 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15773 (evrp_range_analyzer::record_ranges_from_): Likewise.
15774 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15775 deal with having recorded a const one.
15776 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15777 Return a const value_range *.
15778 (evrp_range_analyzer::pop_value_range): Likewise.
15779 (evrp_range_analyzer::stack): Record const value_range *s.
15780 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15782 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15783 (format_integer): Likewise.
15784 (sprintf_dom_walker::handle_gimple_call): Likewise.
15785 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15786 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15787 (vrp_prop::get_value_range): Adjust.
15788 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15789 modifying the lattice in-place.
15790 (vrp_prop::visit_stmt): Likewise.
15791 * vr-values.c (vr_values::get_lattice_entry): New private method.
15792 (vr_values::get_value_range): Wrap it and return a const
15794 (vr_values::set_def_to_varying): New.
15795 (vr_values::set_defs_to_varying): Use it.
15796 (vr_values::update_value_range): Likewise.
15797 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15798 (values::op_with_constant_singleton_va): Likewise.
15799 (vr_values::extract_range_for_var_from_co): Likewise.
15800 (vr_values::extract_range_from_ssa_name): Likewise.
15801 (vr_values::extract_range_from_cond_expr): Likewise.
15802 (vr_values::extract_range_basic): Likewise.
15803 (compare_ranges): Take const value_range *, adjust.
15804 (compare_range_with_value): Likewise.
15805 (vrp_valueize): Adjust.
15806 (vrp_valueize_1): Likewise.
15807 (vr_values::get_vr_for_comparison): Return a const value_range *.
15808 (vr_values::compare_name_with_value): Adjust.
15809 (vr_values::compare_names): Likewise.
15810 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15812 (vr_values::vrp_evaluate_conditional): Likewise.
15813 (find_case_label_ranges): Take a const value_range *.
15814 (vr_values::vrp_visit_switch_stmt): Adjust.
15815 (vr_values::extract_range_from_phi_node): Likewise.
15816 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15817 (vr_values::simplify_abs_using_ranges): Likewise.
15818 (test_for_singularity): Take a const value_range *.
15819 (range_fits_type_p): Likewise.
15820 (vr_values::simplify_cond_using_ranges_1): Adjust.
15821 (vr_values::simplify_cond_using_ranges_2): Likewise.
15822 (vr_values::simplify_switch_using_ranges): Likewise.
15823 (vr_values::simplify_float_conversion_usi): Likewise.
15824 (vr_values::two_valued_val_range_p): Likewise.
15825 * vr-values.h (vr_values::get_value_range): Return a const
15827 (vr_values::set_def_to_varying): New.
15828 (vr_values::get_lattice_entry): New private method.
15829 (vr_values::get_vr_for_comparison): Return a const value_range *.
15831 2019-07-25 Martin Liska <mliska@suse.cz>
15832 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15835 * common.opt: Add -fallocation-dce
15836 * gimple.c (gimple_call_operator_delete_p): New.
15837 * gimple.h (gimple_call_operator_delete_p): Likewise.
15838 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15839 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15840 DECL_IS_OPERATOR_DELETE_P.
15841 (mark_all_reaching_defs_necessary_1): Likewise.
15842 (propagate_necessity): Likewise.
15843 (eliminate_unnecessary_stmts): Handle
15844 gimple_call_operator_delete_p.
15845 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15846 Add packing of OPERATOR_DELETE.
15847 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15849 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15850 (DECL_SET_IS_OPERATOR_DELETE): New.
15851 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15853 2019-07-25 Martin Liska <mliska@suse.cz>
15855 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15856 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15857 * coverage.c (coverage_begin_function): Likewise.
15858 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15859 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15860 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15861 (sem_item::hash_referenced_symbol_properties): Likewise.
15862 * lto-streamer-out.c (hash_tree): Likewise.
15863 * predict.c (expr_expected_value_1): Likewise.
15864 * tree-inline.c (expand_call_inline): Likewise.
15865 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15866 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15867 * tree-core.h (enum function_decl_type): New enum.
15868 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15869 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15870 (set_function_decl_type): Likewise.
15871 (DECL_IS_OPERATOR_NEW_P): New.
15872 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15873 (DECL_LAMBDA_FUNCTION): Likewise.
15874 (DECL_LAMBDA_FUNCTION_P): Likewise.
15875 (DECL_IS_OPERATOR_NEW): Remove.
15876 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15878 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15880 * ipa-profile.c (get_most_common_single_value): Use
15881 get_nth_most_common_value.
15882 * profile.c (sort_hist_value): New function.
15883 (compute_value_histograms): Call sort_hist_value to sort the
15884 values after loading from disk.
15885 * value-prof.c (get_most_common_single_value): Rename to ...
15886 get_nth_most_common_value. Add input params n, return
15887 the n_th value and count.
15888 (gimple_divmod_fixed_value_transform): Use
15889 get_nth_most_common_value.
15890 (gimple_ic_transform): Likewise.
15891 (gimple_stringops_transform): Likewise.
15892 * value-prof.h (get_most_common_single_value): Add input params
15895 2019-07-25 Richard Biener <rguenther@suse.de>
15897 PR tree-optimization/91236
15898 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15899 size of CONSTRUCTOR write. Fix buffer size we pass to
15900 native_encode_expr.
15902 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15904 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15905 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15908 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15910 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15911 explicitly disabled with --disable-initfini-array.
15913 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15915 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15918 2019-07-24 Martin Sebor <msebor@redhat.com>
15920 PR tree-optimization/91183
15921 PR tree-optimization/86688
15922 * builtins.c (compute_objsize): Handle MEM_REF.
15923 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15924 (get_min_string_length): Remove.
15925 (count_nonzero_bytes): New function.
15926 (handle_char_store): Rename...
15927 (handle_store): to this. Handle multibyte stores via integer types.
15928 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15931 2019-07-24 Martin Sebor <msebor@redhat.com>
15934 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15935 (diagnostic_report_diagnostic): Same.
15936 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15937 (diagnostic_context::lang_mask): New data member.
15938 * ipa-pure-const.c (suggest_attribute): Use
15939 lang_hooks.option_lang_mask ().
15940 * opts-common.c (option_enabled): Handle new argument.
15941 (get_option_state): Pass an additional argument.
15942 * opts.c (print_filtered_help): Print supported languages for
15943 unsupported options. Adjust printing of current state.
15944 * opts.h (option_enabled): Add argument.
15945 * toplev.c (print_switch_values): Use lang_mask.
15946 (general_init): Set global_dc->lang_mask.
15948 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15951 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15953 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15955 * cgraphunit.c (symbol_table::compile): Start and stop
15956 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15957 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15959 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15961 * gimplify.c (flag_instrument_functions_exclude_p): Include
15962 namespace/class information in the printable name.
15963 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15964 to tokens entered into the vector.
15966 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15968 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15969 (get_static_chain): Call it instead of build_simple_mem_ref.
15970 (get_frame_field): Likewise.
15971 (get_nonlocal_debug_decl): Likewise.
15972 (convert_nonlocal_reference_op): Likewise.
15974 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15976 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15978 (arc_compute_frame_size): Millicode is disabled when compiling
15980 (arc_return_address_register): Likewise.
15981 (arc_compute_function_type): Likewise.
15982 (arc_compute_frame_size): Likewise.
15983 (secondary_reload_info): Likewise.
15984 (arc_get_unalign): Likewise.
15985 (arc_can_use_return_insn): Declare.
15986 * config/arc/arc.c (AUX_LP_START): Define
15987 (AUX_LP_END): Likewise.
15988 (arc_frame_info): Update gmask member to 64-bit datum.
15989 (GMASK_LEN): Update.
15990 (arc_compute_function_type): Make it static, move it forward.
15991 (arc_must_save_register): Update, consider the extra regs.
15992 (arc_compute_millicode_save_restore_regs): Update to use the 64
15994 (arc_compute_frame_size): Likewise.
15995 (arc_enter_leave_p): Likewise.
15996 (arc_save_callee_saves): Likewise.
15997 (arc_restore_callee_saves): Likewise.
15998 (arc_save_callee_enter): Likewise.
15999 (arc_restore_callee_leave): Likewise.
16000 (arc_save_callee_milli): Likewise.
16001 (arc_restore_callee_milli): Likewise.
16002 (arc_expand_prologue): Add new interrupt handling.
16003 (arc_return_address_register): Make it static, move it forward.
16004 (arc_expand_epilogue): Add new interrupt handling.
16005 (arc_get_unalign): Delete.
16006 (arc_epilogue_uses): Make sure we do not remove the extra
16007 saved/restored registers when interrupt.
16008 (arc_can_use_return_insn): New function.
16009 (push_reg): Likewise.
16010 (pop_reg): Likewise.
16011 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
16013 (arc_restore_callee_saves): Likewise, but restoring.
16014 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
16015 (R33_REG): Likewise.
16016 (R34_REG): Likewise.
16017 (R35_REG): Likewise.
16018 (R36_REG): Likewise.
16019 (R37_REG): Likewise.
16020 (R38_REG): Likewise.
16021 (R39_REG): Likewise.
16022 (R45_REG): Likewise.
16023 (R46_REG): Likewise.
16024 (R47_REG): Likewise.
16025 (R48_REG): Likewise.
16026 (R49_REG): Likewise.
16027 (R50_REG): Likewise.
16028 (R51_REG): Likewise.
16029 (R52_REG): Likewise.
16030 (R53_REG): Likewise.
16031 (R54_REG): Likewise.
16032 (R55_REG): Likewise.
16033 (R56_REG): Likewise.
16034 (R58_REG): Likewise.
16035 (type): Add rtie attribute.
16036 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
16037 (movsi_insn): Accept moves to lp_count.
16038 (rtie): Update pattern.
16039 (simple_return): Simplify it, don't use this pattern as a return
16041 (arc600_rtie): New pattern.
16042 (p_return_i): Clean up.
16043 (return): Likewise.
16044 * config/arc/builtins.def (rtie): Only available for non ARC6xx
16046 * config/arc/predicates.md (move_src_operand): Consider lp_count
16049 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
16051 * config/s390/predicates.md (addv_const_operand): New predicate.
16052 * config/s390/s390-modes.def (CCO): New condition code mode.
16053 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
16054 (s390_branch_condition_mask): Likewise.
16055 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
16056 ("mulv<mode>4"): New expanders.
16057 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
16058 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
16059 pattern definitions.
16061 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16063 PR middle-end/91166
16064 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16065 (define_predicates): Add entry for uniform_vector_p.
16066 (vec_same_elem_p): New match pattern.
16068 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16071 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16072 * config/i386/darwin32-biarch.h .. to here.
16073 * config/i386/darwin64-biarch.h: Adjust comments.
16074 * config/rs6000/darwin32-biarch.h: Likewise.
16075 * config/rs6000/darwin64-biarch.h: Likewise.
16076 * config.gcc: Missed commit from r273746
16077 (*-*-darwin*): Don't include CPU t-darwin here.
16078 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16079 an error message if i686-darwin configuration is attempted for
16082 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16085 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16086 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16087 an error message if i686-darwin configuration is attempted for
16089 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16090 (powerpc-*-darwin*): Use biarch files where needed.
16091 (powerpc64-*-darwin*): Likewise.
16092 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16093 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16095 * config/i386/darwin32-biarch.h: New.
16096 * config/i386/darwin64.h: Rename.
16097 * config/i386/darwin64-biarch.h: To this.
16098 * config/i386/t-darwin: Rename.
16099 * config/i386/t-darwin32-biarch: To this.
16100 * config/i386/t-darwin64: Rename.
16101 * config/i386/t-darwin64-biarch: To this.
16102 * config/rs6000/darwin32-biarch.h: New.
16103 * config/rs6000/darwin64.h: Rename.
16104 * config/rs6000/darwin64-biarch.h: To this.
16105 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16107 * config/rs6000/t-darwin8: Rename.
16108 * config/rs6000/t-darwin32-biarch: To this.
16109 * config/rs6000/t-darwin64 Rename.
16110 * config/rs6000/t-darwin64-biarch: To this.
16112 2019-07-23 Martin Sebor <msebor@redhat.com>
16114 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16116 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16118 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16119 (rh): New alias for it.
16121 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16123 * gdbhooks.py: Pass replace=True to
16124 gdb.printing.register_pretty_printer.
16126 2019-07-23 Richard Biener <rguenther@suse.de>
16129 * lto-streamer-in.c (input_function): Drop inline-entry markers
16130 that ended up with an unknown location block.
16132 2019-07-23 Richard Biener <rguenther@suse.de>
16134 PR tree-optimization/83518
16135 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16136 init from a constant even when partial defs are already recorded.
16138 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16140 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16141 * config/i386/znver1.md: Enable patterns for znver2 and add store
16142 variants which use extra AGU unit.
16144 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16146 * config/i386/i386-options.c (ix86_option_override_internal): Default
16147 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16148 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16151 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16153 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16154 (znver2_costs): Update 256 bit SSE costs and multiplication.
16156 2019-07-23 Jan Beulich <jbeulich@suse.com>
16158 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16159 Require only AVX512F.
16160 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16161 alternative expanding to vpternlog.
16163 2019-07-23 Martin Liska <mliska@suse.cz>
16165 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16166 to -flto in dwarf producer string.
16168 2019-07-23 Richard Biener <rguenther@suse.de>
16170 * tree-cfg.c (label_for_bb): Remove global var.
16171 (main_block_label): Take label_for_bb as argument.
16172 (cleanup_dead_labels_eh): Likewise, adjust.
16173 (cleanup_dead_labels): Adjust.
16175 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16177 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16178 Configurations): Add documentation for __builtin_mtfsf.
16180 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16182 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16183 * config/riscv/riscv.c (riscv_constant_alignment): Use
16184 riscv_align_data_type.
16185 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16186 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16187 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16188 * config/riscv/riscv.opt (malign-data): New.
16189 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16191 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16193 * cgraph.c (dump_graphviz): New function.
16194 * cgraph.h (dump_graphviz): New function.
16195 * symtab.c (dump_graphviz): New function.
16197 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16199 * config/aarch64/aarch64-simd.md
16200 (*aarch64_simd_sra<mode>): New.
16201 * config/aarch64/iterators.md
16202 (SHIFTRT): New iterator.
16203 (sra_op): New attribute.
16205 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16207 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16208 callee-saved regs R4->R10 in an interrupt function that calls another
16211 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16213 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16214 (_mm_blendv_epi8): New.
16216 2019-07-22 Richard Biener <rguenther@suse.de>
16218 PR tree-optimization/91221
16219 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16220 restrict partial-def handling of empty constructors and
16221 memset to refs with known offset.
16223 2019-07-22 Jan Beulich <jbeulich@suse.com>
16225 * config/i386/sse.md (ternlogsuffix): New.
16226 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16228 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16230 2019-07-22 Martin Liska <mliska@suse.cz>
16232 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16234 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16236 2019-07-22 Martin Liska <mliska@suse.cz>
16238 * lto-section-in.c (lto_get_section_data):
16239 Use new function get_compression.
16240 * lto-streamer-out.c (produce_lto_section): Use
16241 set_compression to encode compression algorithm.
16242 * lto-streamer.h (struct lto_section): Do not
16243 use bitfields in the format.
16245 2019-07-22 Martin Liska <mliska@suse.cz>
16248 * opts-common.c (decode_cmdline_option): Decode
16249 argument of -Werror and check it for a wrong language.
16250 * opts-global.c (complain_wrong_lang): Remove such case.
16252 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16254 * config/arc/arc.c (prepare_move_operands): Always use an
16255 intermediate register when storing a TLS symbols.
16257 2019-07-22 Stafford Horne <shorne@gmail.com>
16259 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
16262 2019-07-22 Stafford Horne <shorne@gmail.com>
16264 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
16265 and munordered-float validations.
16266 * config/or1k/constraints.md (d): New register constraint.
16267 * config/or1k/predicates.md (fp_comparison_operator): New.
16268 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
16270 (or1k_expand_compare): Normalize unordered comparisons.
16271 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
16272 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
16273 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
16274 * config/or1k/or1k.md (type): Add fpu.
16275 (fpu): New instruction reservation.
16276 (F, f, fr, fi, FI, FOP, fop): New.
16277 (<fop><F:mode>3): New ALU instruction definition.
16278 (float<fi><F:mode>2): New conversion instruction definition.
16279 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
16280 (fpcmpcc): New code iterator.
16281 (*sf_fp_insn): New instruction definition.
16282 (cstore<F:mode>4): New expand definition.
16283 (cbranch<F:mode>4): New expand definition.
16284 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
16285 munordered-float): New options.
16286 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
16289 2019-07-22 Stafford Horne <shorne@gmail.com>
16291 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
16292 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
16293 documenation to be more clear.
16294 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
16296 * config/or1k/or1k.opt (mrori): New option.
16297 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
16298 msfimm, mshftimm): Rewrite documentation to be more clear.
16299 * config/or1k/or1k.md (insn_support): Add ror and rori.
16300 (enabled): Add conditions for ror and rori.
16301 (rotrsi3): Replace condition for shftimm with ror and rori.
16303 2019-07-22 Stafford Horne <shorne@gmail.com>
16306 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
16307 (extend<mode>si2): Update predicate.
16308 * config/or1k/predicates.md (volatile_mem_operand): New.
16309 (reg_or_mem_operand): New.
16311 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
16313 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
16314 * config/rs6000/rs6000-call.c: ... to here.
16316 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16318 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
16321 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16323 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
16325 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16327 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
16329 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16331 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
16332 (any_memory_operand): New predicate.
16333 (reg_or_mem_operand): Use it.
16335 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16338 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
16340 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
16342 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
16343 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
16345 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16347 * tree.def (OMP_LOOP): New tree code.
16348 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
16349 (enum omp_clause_bind_kind): New enum.
16350 (struct tree_omp_clause): Add subcode.bind_kind.
16351 * tree.h (OMP_LOOP_CHECK): Rename to ...
16352 (OMP_LOOPING_CHECK): ... this.
16353 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
16354 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
16355 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
16356 (OMP_CLAUSE_BIND_KIND): Define.
16357 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16358 bind clause entries.
16359 (walk_tree_1): Handle OMP_CLAUSE_BIND.
16360 * tree-pretty-print.c (dump_omp_clause): Likewise.
16361 (dump_generic_node): Handle OMP_LOOP.
16362 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
16363 (in_omp_construct): New variable.
16364 (is_gimple_stmt): Handle OMP_LOOP.
16365 (gimplify_scan_omp_clauses): For lastprivate don't set
16366 check_non_private if code == OMP_LOOP. For reduction clause
16367 on OMP_LOOP combined with parallel or teams propagate as shared
16368 on the combined construct. Handle OMP_CLAUSE_BIND.
16369 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
16370 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
16371 for constructs from a loop construct to gimplify_scan_omp_clauses.
16372 Don't predetermine iterator linear on OMP_SIMD from loop construct.
16373 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
16374 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
16375 to match the implicit ORT_TARGET construct around whole body.
16376 Temporarily clear in_omp_construct when processing body.
16377 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
16378 etc. temporarily set in_omp_construct when processing body.
16379 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
16380 * omp-low.c (struct omp_context): Add loop_p.
16381 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
16382 in that the original var might be private.
16383 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
16384 (check_omp_nesting_restrictions): Adjust nesting restrictions for
16385 addition of loop construct.
16386 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
16388 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
16389 lastprivate non-addressable iterator of a collapse(1) simd.
16391 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
16393 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
16396 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
16398 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
16399 refer to default conditions. Warn for the 'y' spec which is ignored
16400 by current linkers.
16402 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
16404 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
16405 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16406 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16407 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16408 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16409 init_cumulative_args, rs6000_promote_function_mode,
16410 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16411 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16412 rs6000_function_arg_boundary, rs6000_parm_offset,
16413 rs6000_parm_start, rs6000_arg_size,
16414 rs6000_darwin64_record_arg_advance_flush,
16415 rs6000_darwin64_record_arg_advance_recurse,
16416 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16417 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16418 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16419 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16420 rs6000_finish_function_arg, rs6000_function_arg,
16421 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16422 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16423 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16424 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16425 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16426 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16427 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16428 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16429 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16430 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16431 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16432 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16433 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16434 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16435 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16436 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16437 get_element_number, altivec_expand_vec_set_builtin,
16438 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16439 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16440 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16441 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16442 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16443 rs6000_expand_builtin, rs6000_vector_type,
16444 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16445 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16446 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16448 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16449 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16450 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16451 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16452 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16453 init_cumulative_args, rs6000_promote_function_mode,
16454 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16455 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16456 rs6000_function_arg_boundary, rs6000_parm_offset,
16457 rs6000_parm_start, rs6000_arg_size,
16458 rs6000_darwin64_record_arg_advance_flush,
16459 rs6000_darwin64_record_arg_advance_recurse,
16460 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16461 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16462 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16463 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16464 rs6000_finish_function_arg, rs6000_function_arg,
16465 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16466 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16467 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16468 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16469 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16470 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16471 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16472 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16473 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16474 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16475 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16476 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16477 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16478 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16479 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16480 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16481 get_element_number, altivec_expand_vec_set_builtin,
16482 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16483 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16484 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16485 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16486 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16487 rs6000_expand_builtin, rs6000_vector_type,
16488 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16489 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16490 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
16491 to here from rs6000.c.
16492 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
16493 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
16494 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
16495 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
16496 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
16497 rs6000_return_in_memory, rs6000_return_in_msb,
16498 rs6000_pass_by_reference, setup_incoming_varargs,
16499 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
16500 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
16501 rs6000_function_arg_padding, rs6000_function_arg,
16502 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
16503 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
16504 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
16505 rs6000_passes_long_double, rs6000_passes_vector,
16506 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
16507 altivec_builtin_mask_for_load) Add declarations.
16508 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
16509 * config/config.gcc: Add new source file rs6000-call.c to garbage
16510 collector and extra_objs.
16512 2019-07-19 Jeff Law <law@redhat.com>
16514 PR tree-optimization/86061
16515 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16516 strncpy. Drop some trivial dead code.
16517 (maybe_trim_memstar_call): Handle strncpy.
16519 2019-07-19 Richard Biener <rguenther@suse.de>
16521 PR tree-optimization/91211
16522 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16523 memset encoding size.
16525 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
16528 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
16530 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
16533 * ipa-inline.c (recursive_inlining): Fix limits check.
16535 2019-07-19 Richard Biener <rguenther@suse.de>
16537 PR tree-optimization/91200
16538 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
16539 no PHI nodes in middle-bb.
16541 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
16543 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
16545 * config/aarch64/aarch64-option-extensions.def: Likewise.
16547 2019-07-19 Jakub Jelinek <jakub@redhat.com>
16549 PR middle-end/91190
16550 * function.c (insert_temp_slot_address): Store into the hash table
16551 a copy of address to avoid RTL sharing issues.
16553 2019-07-19 Richard Biener <rguenther@suse.de>
16555 PR tree-optimization/91207
16557 2019-07-17 Richard Biener <rguenther@suse.de>
16559 PR tree-optimization/91178
16560 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16561 loads with a gap larger than the vector size always use
16563 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16564 avoid loading vectors that are only contained in the gap
16565 and thus are not needed.
16567 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16569 * config/i386/i386.md (*addqi_2_slp): Remove.
16570 (*<code>qi_2_slp): Ditto.
16572 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
16574 * config/rs6000/predicates.md (prefixed_mem_operand): Call
16575 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
16576 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
16577 Rename function from rs6000_prefixed_address.
16578 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16580 (TARGET_TOC): Likewise.
16581 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16583 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16585 (TARGET_TOC): Likewise.
16586 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16588 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16590 (TARGET_TOC): Likewise.
16591 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16592 check to require -mcmodel=medium for pc-relative addressing.
16593 (create_TOC_reference): Add assertion for TARGET_TOC.
16594 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
16596 (rs6000_emit_move): Likewise.
16597 (TOC_alias_set): Rename TOC alias set static variable from 'set'
16598 to 'TOC_alias_set'.
16599 (get_TOC_alias_set): Likewise.
16600 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
16602 (rs6000_can_eliminate): Likewise.
16603 (rs6000_prefixed_address_mode_p): Rename function from
16604 rs6000_prefixed_address.
16605 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
16606 TARGET_HAS_TOC and not pc-relative.
16607 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
16608 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16610 (TARGET_TOC): Likewise.
16611 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16614 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16617 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16618 for operand 0. Do not use (match_dup) to match operand 1 with
16619 operand 0. Add check in insn constraint that either input operand
16620 matches operand 0. Use SWI12 mode iterator to also handle
16622 (*and<mode>_1_slp): Ditto.
16623 (*<code>qi_1_slp): Ditto.
16624 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16625 Do not use (match_dup) to match operand 1 with operand 0. Add
16626 check in insn constraint that operand 1 matches operand 0.
16627 Use SWI12 mode iterator to also handle HImode operands.
16628 (*ashl<mode>3_1_slp): Ditto.
16629 (*<shift_insn><mode>3_1_slp): Ditto.
16630 (*<rotate_insn><mode>3_1_slp): Ditto.
16632 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16634 * config/arm/arm-builtins.c
16635 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16636 (arm_expand_unop_builtin): Likewise.
16637 * config/arm/crypto.md
16638 (crypto_sha1h): Convert from define_insn to define_expand.
16639 (crypto_<crypto_pattern>): Likewise.
16640 (crypto_sha1h_lb): New define_insn.
16641 (crypto_<crypto_pattern>_lb): Likewise.
16643 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16646 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16647 (vsha1cq_u32): Likewise.
16648 (vsha1pq_u32): Likewise.
16649 (vsha1mq_u32): Likewise.
16650 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16652 (crypto_sha1c): Correct vec select.
16653 (crypto_sha1m): Likewise.
16654 (crypto_sha1p): Likewise.
16656 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16658 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16659 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16660 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16661 (subdi_zesidi_zesidi): Likewise.
16662 (negdi2_compare, negdi2_insn): Likewise.
16663 (negdi_extensidi): Likewise.
16664 (negdi_zero_extendsidi): Likewise.
16665 (arm_cmpdi_insn): Likewise.
16666 (subsi3_carryin): Use arm_borrow_operation.
16667 (subsi3_carryin_const): Likewise.
16668 (subsi3_carryin_const0): Likewise.
16669 (subsi3_carryin_compare): Likewise.
16670 (subsi3_carryin_compare_const): Likewise.
16671 (subsi3_carryin_compare_const0): Likewise.
16672 (subsi3_carryin_shift): Likewise.
16673 (rsbsi3_carryin_shift): Likewise.
16674 (negsi2_carryin_compare): Likewise.
16676 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16678 PR tree-optimization/91137
16679 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16680 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16681 Init, use and fini the above new field.
16682 (determine_base_object_1): New function.
16683 (determine_base_object): Reimplement using walk_tree.
16685 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16687 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16688 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16689 CLEANUP_FORCE_FAST_DCE is set.
16690 * ifcvt.c (rest_of_handle_if_conversion): Pass
16691 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16692 if-conversion succeeded.
16694 2019-07-18 Richard Biener <rguenther@suse.de>
16696 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16697 branches to make code less indented.
16699 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16701 PR middle-end/81824
16702 * attribs.c (decls_mismatched_attributes): Simplify the logic
16703 that avoids duplicates and false positives.
16705 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16707 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16708 data into data section when generating PIC code.
16709 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16710 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16711 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16712 return 2 for SOM and 0 for other targets.
16714 2019-07-17 Jeff Law <law@redhat.com>
16716 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16717 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16718 avoid unexpected switch statement fallthru.
16720 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16722 * config/i386/i386.md (*add<dwi>3_doubleword):
16723 Remove redundant constraints.
16724 (*add<mode>_1): Ditto.
16727 (*addqi_1_slp): Ditto.
16728 (*add<mode>_2): Ditto.
16729 (*addv<mode>4): Ditto.
16730 (*sub<dwi>3_doubleword): Ditto.
16731 (*sub<mode>_1): Ditto.
16732 (*subqi_1_slp): Ditto.
16733 (*sub<mode>_2): Ditto.
16734 (*subv<mode>4): Ditto.
16735 (*sub<mode>_3): Ditto.
16736 (@add<mode>3_carry): Ditto.
16737 (@sub<mode>3_carry): Ditto.
16738 (*add<mode>3_cc_overflow_1): Ditto.
16739 (*add<mode>3_zext_cc_overflow_2): Ditto.
16741 (*and<mode>_1): Ditto.
16743 (*andqi_1_slp): Ditto.
16745 (*andqi_2_maybe_si): Ditto.
16746 (*and<mode>_2): Ditto.
16747 (*andqi_2_slp): Ditto.
16748 (*<code><mode>_1): Ditto.
16749 (*<code>qi_1): Ditto.
16750 (*<code>qi_1_slp): Ditto.
16751 (*<code><mode>_2): Ditto.
16752 (*<code>qi_2_slp): Ditto.
16754 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16756 * alias.c (record_component_aliases): Do not simplify pointed-to
16757 types of ODR types.
16759 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16761 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16762 partial reg stall on alternative 2.
16764 2019-07-17 Richard Biener <rguenther@suse.de>
16766 PR tree-optimization/91178
16767 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16768 lower SSA names to avoid quadratic behavior in the common case.
16769 * tree-data-ref.c (split_constant_offset): Add limit argument
16770 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16771 (split_constant_offset_1): Add limit argument and use it to
16772 limit SSA def walking. Optimize the common plus/minus case.
16774 2019-07-17 Richard Biener <rguenther@suse.de>
16776 PR tree-optimization/91178
16777 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16778 loads with a gap larger than the vector size always use
16780 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16781 avoid loading vectors that are only contained in the gap
16782 and thus are not needed.
16784 2019-07-17 Richard Biener <rguenther@suse.de>
16786 PR tree-optimization/91180
16787 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16788 computation for memset partial defs.
16790 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16792 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16793 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16794 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16795 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16796 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16797 * omp-grid.c (grid_process_grid_body,
16798 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16799 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16800 == GF_OMP_FOR_KIND_SIMD.
16801 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16802 check_omp_nesting_restrictions, scan_omp_1_stmt,
16803 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16804 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16805 omp_find_scan): Likewise.
16806 * omp-expand.c (expand_omp_for): Likewise.
16807 * omp-general.c (omp_extract_for_data): Likewise.
16809 PR tree-optimization/91157
16810 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16811 a vector boolean with scalar mode.
16812 (expand_vector_condition): Handle first operand being a vector boolean
16814 (expand_vector_operations_1): For comparisons, don't bail out early
16815 if the return type is vector boolean with scalar mode, but comparison
16816 operand type is not.
16818 2019-07-17 Richard Biener <rguenther@suse.de>
16820 PR tree-optimization/91181
16821 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16822 IFN_LOADs as calls.
16824 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16826 * config/i386/i386.md (*testdi_1): Match CCZmode for
16827 constants that might have the SImode sign bit set.
16828 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16829 Use correct constraints for pentium pairing.
16830 (*test<mode>_1): Ditto.
16832 2019-07-16 Jeff Law <law@redhat.com>
16834 PR rtl-optimization/91173
16835 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16836 SSA_NAME with a constant value, fold its value into the offset
16837 and clear the base before calling gen_addr_rtx.
16839 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16841 PR rtl-optimization/91164
16842 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16843 invalidate dominance info.
16845 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16847 * read-md.h (md_reader::record_potential_iterator_use): Add a
16848 file_location parameter.
16849 * read-rtl.c (attribute_use::loc): New field.
16850 (map_attr_string): Take a file_location parameter. Report cases
16851 in which attributes map to multiple distinct values.
16852 (apply_attribute_uses): Update call accordingly.
16853 (md_reader::handle_overloaded_name): Likewise.
16854 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16856 (record_attribute_use): Take a file_location parameter.
16857 Initialize attribute_use::loc.
16858 (md_reader::record_potential_iterator_use): Take a file_location
16859 parameter. Update call to record_attribute_use.
16860 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16861 (rtx_reader::read_rtx_code): Likewise.
16862 (rtx_reader::read_rtx_operand): Likewise. Record a location
16863 for implicitly-expanded empty strings.
16865 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16867 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16868 Use file_location instead of separate fields.
16869 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16870 separate filename and line number.
16871 * read-md.c (ptr_loc): As above.
16872 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16873 (md_reader::fprint_md_ptr_loc): Likewise.
16874 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16875 instead of a separate filename and line number.
16876 (md_reader::read_string): Update call accordingly.
16878 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16880 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16881 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16882 leaving the choice between SFDF and P implicit.
16883 (*mov<mode>_update2): Likewise.
16884 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16885 rather than leaving the choice betweem IBM128 and GPR implicit.
16886 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16887 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16889 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16890 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16891 * config/rs6000/vsx.md
16892 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16893 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16894 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16895 and VSX_EXTRACT_I implicit.
16897 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16899 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16900 Explicitly use <MOVEP1:MODE> for the mode attribute.
16902 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16905 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16907 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16910 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16911 .machine directive.
16913 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16915 * config/i386/i386.md (@test<mode>_ccno_1):
16916 Rename from test<mode>_ccno_1.
16917 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16918 (*testqi_1_maybe_si): Remove modrm attribute.
16919 (*test<mode>_1): Ditto.
16920 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16921 gen_test_ccno_1 and gen_extend_insn.
16923 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16925 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16928 2019-07-15 Richard Biener <rguenther@suse.de>
16930 PR middle-end/91162
16931 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16932 node make sure to replace all uses with something valid.
16934 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16936 PR tree-optimization/88497
16937 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16938 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16939 function undistribute_bitref_for_vector.
16940 (undistribute_bitref_for_vector): New function.
16941 (cleanup_vinfo_map): Likewise.
16942 (sort_by_mach_mode): Likewise.
16944 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16946 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16947 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16948 and testdi_ccno_1 using SWI48 mode attribute.
16949 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16950 x86_64_szext_general_operand.
16951 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16952 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16953 instead of genera_operand mode attribute.
16955 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16957 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16958 fopen and fclose to their respective types.
16959 (DotFn.invoke): Ditto.
16961 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16963 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16964 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16965 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16966 (array_index_predicate): Remove.
16967 (analyze_function_body): Account cost for variable ofsetted array
16969 (estimate_node_size_and_time): Do not compute array index hint.
16970 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16971 (inline_read_section): Do not read array index hint.
16972 (ipa_fn_summary_write): Do not write array index hint.
16973 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16974 * ipa-cp.c (hint_time_bonus): Remove.
16975 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16976 (ipa_fnsummary): Remove array_index.
16977 * ipa-inline.c (want_inline_small_function_p): Do not use
16979 (edge_badness): Likewise.
16980 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16982 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16985 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16986 superfluous "builtin function" phrasing.
16988 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16990 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16992 (aliasing_component_refs_walk): Break out from ...
16993 (aliasing_component_refs_p): ... here.
16995 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16998 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16999 "builtin function" phrasing.
17001 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17004 * recog.h (temporary_volatile_ok): New class.
17005 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
17006 volatile_ok temporarily to true using temporary_volatile_ok.
17007 * expr.c (emit_block_move_via_cpymem): Likewise.
17008 * optabs.c (maybe_legitimize_operand): Likewise.
17010 2019-07-13 Jakub Jelinek <jakub@redhat.com>
17012 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
17013 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
17014 uses inside of order(concurrent) constructs.
17015 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
17016 OMP_CLAUSE_ORDER is seen.
17017 * omp-low.c (struct omp_context): Add order_concurrent member.
17018 (scan_sharing_clauses): Set ctx->order_concurrent if
17019 OMP_CLAUSE_ORDER is seen.
17020 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
17021 of simd order(concurrent). Diagnose constructs not allowed inside of
17022 for order(concurrent).
17023 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
17024 complaining about static double setjmp (double); or class static
17025 methods or non-global namespace setjmps.
17026 (omp_runtime_api_call): New function.
17027 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
17028 order(concurrent) loops.
17030 2019-07-12 Martin Sebor <msebor@redhat.com>
17032 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
17033 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
17034 * tree-vrp.c (vrp_prop::check_mem_ref): Use
17035 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17037 2019-07-12 Jan Hubicka <jh@suse.cz>
17039 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
17040 (indirect_refs_may_alias_p): ... here.
17041 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
17042 mem refs in the access paths.
17044 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
17046 PR tree-optimization/89430
17047 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
17048 store elimination for local variable without address escape.
17050 2019-07-12 Jeff Law <law@redhat.com>
17052 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
17053 for the ".far" section.
17055 2019-07-12 Richard Biener <rguenther@suse.de>
17057 PR tree-optimization/91145
17058 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17061 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17063 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17064 rather than this_state as the lowering context for the ELSE
17065 seq in a GIMPLE_EH_ELSE.
17067 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17069 * vector-builder.h (vector_builder::elt): Allow already-supplied
17070 elements to be read back before building is complete.
17072 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17074 PR rtl-optimization/91136
17075 * df-core.c (ACCESSING REFS): Fix typos in comment.
17076 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17077 the beginning of the block to the initial set of live registers.
17079 2019-07-12 Richard Biener <rguenther@suse.de>
17081 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17082 * fold-const.c (get_array_ctor_element_at_index): Add
17083 ctor_idx output parameter informing the caller where in
17084 the constructor the element was (not) found. Add early exit
17085 for when the ctor is sorted.
17086 * gimple-fold.c (fold_array_ctor_reference): Support constant
17087 folding across multiple array elements.
17089 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17091 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17092 doesn't have location, set the current location to the function's end.
17094 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17096 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17097 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17098 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17099 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17100 * config/aarch64/aarch64-simd.md
17101 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17102 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17103 * config/aarch64/aarch64-sve.md
17104 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17105 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17107 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17109 * doc/md.texi: Document that @ patterns can have different
17110 numbers of operands.
17111 * genemit.c (handle_overloaded_gen): Handle this case.
17112 * genopinit.c (handle_overloaded_gen): Likewise.
17113 * gensupport.c (replace_operands_with_dups): Iterate over
17114 the new rtx's format rather than the old one's.
17116 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17118 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17119 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17120 order clause entries.
17121 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17122 * tree-pretty-print.c (dump_omp_clause): Likewise.
17123 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17125 * omp-low.c (scan_sharing_clauses): Likewise.
17126 * tree-nested.c (convert_nonlocal_omp_clauses,
17127 convert_local_omp_clauses): Likewise.
17129 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17131 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17132 fallthrough target of current basic block isn't the placed
17135 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17138 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17139 (_mm512_storeu_epi64): Likewise.
17140 (_mm512_loadu_epi32): Likewise.
17141 (_mm512_storeu_epi32): Likewise.
17142 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17143 (_mm_storeu_epi64): Likewise.
17144 (_mm256_storeu_epi32): Likewise.
17145 (_mm_storeu_epi32): Likewise.
17147 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17149 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17151 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17153 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17156 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17159 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17160 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17161 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17162 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17163 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17164 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17166 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17167 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17168 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17170 (sse2_cvttpd2dq<mask_name>): Change into ...
17171 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17172 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17173 (*sse2_cvtpd2dq<mask_name>): Change into ...
17174 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17175 Add "C" constraint to const0_operand.
17176 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17177 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17181 * config/i386/i386-builtin-types.def
17182 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17183 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17184 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17185 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17186 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17187 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17188 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17189 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17190 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17191 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17192 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17193 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17194 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17195 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17196 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17197 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17198 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17199 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17200 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17201 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17202 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17203 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17204 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17205 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17206 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17207 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17208 __builtin_ia32_vpdpbusd_v4si_maskz,
17209 __builtin_ia32_vpdpbusds_v16si_mask,
17210 __builtin_ia32_vpdpbusds_v16si_maskz,
17211 __builtin_ia32_vpdpbusds_v8si_mask,
17212 __builtin_ia32_vpdpbusds_v8si_maskz,
17213 __builtin_ia32_vpdpbusds_v4si_mask,
17214 __builtin_ia32_vpdpbusds_v4si_maskz,
17215 __builtin_ia32_vpdpwssd_v16si_mask,
17216 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17217 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17218 __builtin_ia32_vpdpwssd_v4si_maskz,
17219 __builtin_ia32_vpdpwssds_v16si_mask,
17220 __builtin_ia32_vpdpwssds_v16si_maskz,
17221 __builtin_ia32_vpdpwssds_v8si_mask,
17222 __builtin_ia32_vpdpwssds_v8si_maskz,
17223 __builtin_ia32_vpdpwssds_v4si_mask,
17224 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17225 suffixed types rather than *_INT.
17226 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17227 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17228 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17229 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17230 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17231 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17233 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17235 * tree-vrp.c (intersect_ranges): If we know the intersection is
17236 empty, there is no need to conservatively add anything else to
17239 2019-07-11 Richard Biener <rguenther@suse.de>
17241 PR middle-end/91131
17242 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17243 when the object is volatile and we have not cleared it even though
17244 there are no nonzero elements.
17246 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17248 * config/rs6000/predicates.md (cint34_operand): Update
17249 SIGNED_34BIT_OFFSET_P call.
17250 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17251 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17252 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17253 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17254 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17256 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
17257 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
17258 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
17259 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
17260 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
17262 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
17264 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
17265 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
17266 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
17267 (DEF_MIN_OSX_VERSION): New.
17269 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17271 * fold-const.c (fold_relational_const): Fix folding of
17272 vector-to-scalar NE_EXPRs.
17273 (test_vector_folding): Add more tests.
17275 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17278 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
17279 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
17280 (vec_setv2di_internal): Reexpress as...
17281 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
17282 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
17283 rather than gen_neon_vset_lane<mode>.
17285 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
17288 * lra-constraints.c (process_alt_operands): Don't match user
17289 defined regs only if they are early clobbers.
17291 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
17293 * wide-int.h (wi::lshift): Reject negative values for the fast path.
17295 2019-07-10 Richard Biener <rguenther@suse.de>
17297 PR tree-optimization/91126
17298 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
17299 native encoding offset for BYTES_BIG_ENDIAN.
17300 (vn_reference_lookup_3): Likewise.
17302 2019-07-10 Richard Biener <rguenther@suse.de>
17304 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
17305 LHS whenever possible.
17307 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
17309 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
17310 from ...; work also on duplicated types.
17311 (nonoverlapping_component_refs_since_match): ... here
17312 (ncr_type_uid): Break out from ...
17313 (ncr_compar): ... here; look for TYPE_UID of canonical type if
17315 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
17316 the types and nonoverlapping_component_refs_p_1 to disambiguate.
17318 2019-07-09 Martin Sebor <msebor@redhat.com>
17320 PR tree-optimization/90989
17321 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
17322 optimization to just single character stores.
17324 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
17326 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
17327 Swap operands only once.
17329 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17331 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
17332 for both call instructions.
17334 2019-07-09 John Darrington <john@darrington.wattle.id.au>
17336 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
17337 rather than GET_MODE_BITSIZE to better handle partial integer modes.
17339 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
17341 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
17342 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
17343 function from rs6000-logue.c back to rs6000.c.
17344 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
17346 2019-07-09 Martin Sebor <msebor@redhat.com>
17349 * auto-profile.c: Change class-key of PODs to struct and others
17351 * basic-block.h: Same.
17352 * bitmap.c (bitmap_alloc): Same.
17354 * builtins.c (expand_builtin_prefetch): Same.
17355 (expand_builtin_interclass_mathfn): Same.
17356 (expand_builtin_strlen): Same.
17357 (expand_builtin_mempcpy_args): Same.
17358 (expand_cmpstr): Same.
17359 (expand_builtin___clear_cache): Same.
17360 (expand_ifn_atomic_bit_test_and): Same.
17361 (expand_builtin_thread_pointer): Same.
17362 (expand_builtin_set_thread_pointer): Same.
17363 * caller-save.c (setup_save_areas): Same.
17364 (replace_reg_with_saved_mem): Same.
17365 (insert_restore): Same.
17366 (insert_save): Same.
17367 (add_used_regs): Same.
17368 * cfg.c (get_bb_copy): Same.
17369 (set_loop_copy): Same.
17372 * cfgexpand.c (alloc_stack_frame_space): Same.
17373 (add_stack_var): Same.
17374 (add_stack_var_conflict): Same.
17375 (add_scope_conflicts_1): Same.
17376 (update_alias_info_with_stack_vars): Same.
17377 (expand_used_vars): Same.
17378 * cfghooks.c (redirect_edge_and_branch_force): Same.
17379 (delete_basic_block): Same.
17380 (split_edge): Same.
17381 (make_forwarder_block): Same.
17382 (force_nonfallthru): Same.
17383 (duplicate_block): Same.
17384 (lv_flush_pending_stmts): Same.
17385 * cfghooks.h: Same.
17386 * cfgloop.c (flow_loops_cfg_dump): Same.
17387 (flow_loop_nested_p): Same.
17388 (superloop_at_depth): Same.
17389 (get_loop_latch_edges): Same.
17390 (flow_loop_dump): Same.
17391 (flow_loops_dump): Same.
17392 (flow_loops_free): Same.
17393 (flow_loop_nodes_find): Same.
17394 (establish_preds): Same.
17395 (flow_loop_tree_node_add): Same.
17396 (flow_loop_tree_node_remove): Same.
17397 (flow_loops_find): Same.
17398 (find_subloop_latch_edge_by_profile): Same.
17399 (find_subloop_latch_edge_by_ivs): Same.
17400 (mfb_redirect_edges_in_set): Same.
17401 (form_subloop): Same.
17402 (merge_latch_edges): Same.
17403 (disambiguate_multiple_latches): Same.
17404 (disambiguate_loops_with_multiple_latches): Same.
17405 (flow_bb_inside_loop_p): Same.
17406 (glb_enum_p): Same.
17407 (get_loop_body_with_size): Same.
17408 (get_loop_body): Same.
17409 (fill_sons_in_loop): Same.
17410 (get_loop_body_in_dom_order): Same.
17411 (get_loop_body_in_custom_order): Same.
17412 (release_recorded_exits): Same.
17413 (get_loop_exit_edges): Same.
17414 (num_loop_branches): Same.
17415 (remove_bb_from_loops): Same.
17416 (find_common_loop): Same.
17417 (delete_loop): Same.
17418 (cancel_loop): Same.
17419 (verify_loop_structure): Same.
17420 (loop_preheader_edge): Same.
17421 (loop_exit_edge_p): Same.
17422 (single_exit): Same.
17423 (loop_exits_to_bb_p): Same.
17424 (loop_exits_from_bb_p): Same.
17425 (get_loop_location): Same.
17426 (record_niter_bound): Same.
17427 (get_estimated_loop_iterations_int): Same.
17428 (max_stmt_executions_int): Same.
17429 (likely_max_stmt_executions_int): Same.
17430 (get_estimated_loop_iterations): Same.
17431 (get_max_loop_iterations): Same.
17432 (get_max_loop_iterations_int): Same.
17433 (get_likely_max_loop_iterations): Same.
17434 * cfgloop.h (simple_loop_desc): Same.
17436 (loop_depth): Same.
17437 (loop_outer): Same.
17438 (loop_iterator::next): Same.
17439 (loop_outermost): Same.
17440 * cfgloopanal.c (mark_irreducible_loops): Same.
17441 (num_loop_insns): Same.
17442 (average_num_loop_insns): Same.
17443 (expected_loop_iterations_unbounded): Same.
17444 (expected_loop_iterations): Same.
17445 (mark_loop_exit_edges): Same.
17446 (single_likely_exit): Same.
17447 * cfgloopmanip.c (fix_bb_placement): Same.
17448 (fix_bb_placements): Same.
17449 (remove_path): Same.
17450 (place_new_loop): Same.
17452 (scale_loop_frequencies): Same.
17453 (scale_loop_profile): Same.
17454 (create_empty_if_region_on_edge): Same.
17455 (create_empty_loop_on_edge): Same.
17458 (fix_loop_placements): Same.
17459 (copy_loop_info): Same.
17460 (duplicate_loop): Same.
17461 (duplicate_subloops): Same.
17462 (loop_redirect_edge): Same.
17463 (can_duplicate_loop_p): Same.
17464 (duplicate_loop_to_header_edge): Same.
17465 (mfb_keep_just): Same.
17466 (has_preds_from_loop): Same.
17467 (create_preheader): Same.
17468 (create_preheaders): Same.
17469 (lv_adjust_loop_entry_edge): Same.
17470 (loop_version): Same.
17471 * cfgloopmanip.h: Same.
17473 * cgraphbuild.c: Same.
17474 * combine.c (make_extraction): Same.
17475 * config/i386/i386-features.c: Same.
17476 * config/i386/i386-features.h: Same.
17477 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
17478 (ix86_emit_outlined_ms2sysv_restore): Same.
17479 (ix86_noce_conversion_profitable_p): Same.
17480 (ix86_init_cost): Same.
17481 (ix86_simd_clone_usable): Same.
17482 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
17484 * coretypes.h: Same.
17485 * data-streamer-in.c (string_for_index): Change class-key of PODs
17486 to struct and others to class.
17487 (streamer_read_indexed_string): Same.
17488 (streamer_read_string): Same.
17489 (bp_unpack_indexed_string): Same.
17490 (bp_unpack_string): Same.
17491 (streamer_read_uhwi): Same.
17492 (streamer_read_hwi): Same.
17493 (streamer_read_gcov_count): Same.
17494 (streamer_read_wide_int): Same.
17495 * data-streamer.h (streamer_write_bitpack): Same.
17496 (bp_unpack_value): Same.
17497 (streamer_write_char_stream): Same.
17498 (streamer_write_hwi_in_range): Same.
17499 (streamer_write_record_start): Same.
17500 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
17501 (add_cross_iteration_register_deps): Same.
17502 (build_intra_loop_deps): Same.
17503 * df-core.c (df_analyze): Same.
17504 (loop_post_order_compute): Same.
17505 (loop_inverted_post_order_compute): Same.
17506 * df-problems.c (df_rd_alloc): Same.
17507 (df_rd_simulate_one_insn): Same.
17508 (df_rd_local_compute): Same.
17509 (df_rd_init_solution): Same.
17510 (df_rd_confluence_n): Same.
17511 (df_rd_transfer_function): Same.
17512 (df_rd_free): Same.
17513 (df_rd_dump_defs_set): Same.
17514 (df_rd_top_dump): Same.
17515 (df_lr_alloc): Same.
17516 (df_lr_reset): Same.
17517 (df_lr_local_compute): Same.
17518 (df_lr_init): Same.
17519 (df_lr_confluence_n): Same.
17520 (df_lr_free): Same.
17521 (df_lr_top_dump): Same.
17522 (df_lr_verify_transfer_functions): Same.
17523 (df_live_alloc): Same.
17524 (df_live_reset): Same.
17525 (df_live_init): Same.
17526 (df_live_confluence_n): Same.
17527 (df_live_finalize): Same.
17528 (df_live_free): Same.
17529 (df_live_top_dump): Same.
17530 (df_live_verify_transfer_functions): Same.
17531 (df_mir_alloc): Same.
17532 (df_mir_reset): Same.
17533 (df_mir_init): Same.
17534 (df_mir_confluence_n): Same.
17535 (df_mir_free): Same.
17536 (df_mir_top_dump): Same.
17537 (df_word_lr_alloc): Same.
17538 (df_word_lr_reset): Same.
17539 (df_word_lr_init): Same.
17540 (df_word_lr_confluence_n): Same.
17541 (df_word_lr_free): Same.
17542 (df_word_lr_top_dump): Same.
17543 (df_md_alloc): Same.
17544 (df_md_simulate_one_insn): Same.
17545 (df_md_reset): Same.
17546 (df_md_init): Same.
17547 (df_md_free): Same.
17548 (df_md_top_dump): Same.
17549 * df-scan.c (df_insn_delete): Same.
17550 (df_insn_rescan): Same.
17551 (df_notes_rescan): Same.
17552 (df_sort_and_compress_mws): Same.
17553 (df_install_mws): Same.
17554 (df_refs_add_to_chains): Same.
17555 (df_ref_create_structure): Same.
17556 (df_ref_record): Same.
17557 (df_def_record_1): Same.
17558 (df_find_hard_reg_defs): Same.
17559 (df_uses_record): Same.
17560 (df_get_conditional_uses): Same.
17561 (df_get_call_refs): Same.
17562 (df_recompute_luids): Same.
17563 (df_get_entry_block_def_set): Same.
17564 (df_entry_block_defs_collect): Same.
17565 (df_get_exit_block_use_set): Same.
17566 (df_exit_block_uses_collect): Same.
17567 (df_mws_verify): Same.
17568 (df_bb_verify): Same.
17569 * df.h (df_scan_get_bb_info): Same.
17570 * doc/tm.texi: Same.
17571 * dse.c (record_store): Same.
17572 * dumpfile.h: Same.
17573 * emit-rtl.c (const_fixed_hasher::equal): Same.
17574 (set_mem_attributes_minus_bitpos): Same.
17575 (change_address): Same.
17576 (adjust_address_1): Same.
17577 (offset_address): Same.
17578 * emit-rtl.h: Same.
17579 * except.c (dw2_build_landing_pads): Same.
17580 (sjlj_emit_dispatch_table): Same.
17581 * explow.c (allocate_dynamic_stack_space): Same.
17582 (emit_stack_probe): Same.
17583 (probe_stack_range): Same.
17584 * expmed.c (store_bit_field_using_insv): Same.
17585 (store_bit_field_1): Same.
17586 (store_integral_bit_field): Same.
17587 (extract_bit_field_using_extv): Same.
17588 (extract_bit_field_1): Same.
17589 (emit_cstore): Same.
17590 * expr.c (emit_block_move_via_cpymem): Same.
17591 (expand_cmpstrn_or_cmpmem): Same.
17592 (set_storage_via_setmem): Same.
17593 (emit_single_push_insn_1): Same.
17594 (expand_assignment): Same.
17595 (store_constructor): Same.
17596 (expand_expr_real_2): Same.
17597 (expand_expr_real_1): Same.
17598 (try_casesi): Same.
17600 * function.c (try_fit_stack_local): Same.
17601 (assign_stack_local_1): Same.
17602 (assign_stack_local): Same.
17603 (cut_slot_from_list): Same.
17604 (insert_slot_to_list): Same.
17605 (max_slot_level): Same.
17606 (move_slot_to_level): Same.
17607 (temp_address_hasher::equal): Same.
17608 (remove_unused_temp_slot_addresses): Same.
17609 (assign_temp): Same.
17610 (combine_temp_slots): Same.
17611 (update_temp_slot_address): Same.
17612 (preserve_temp_slots): Same.
17613 * function.h: Same.
17615 * gcc-rich-location.h: Same.
17617 * genattrtab.c (check_attr_test): Same.
17618 (check_attr_value): Same.
17619 (convert_set_attr_alternative): Same.
17620 (convert_set_attr): Same.
17621 (check_defs): Same.
17622 (copy_boolean): Same.
17623 (get_attr_value): Same.
17624 (expand_delays): Same.
17625 (make_length_attrs): Same.
17627 (make_alternative_compare): Same.
17628 (simplify_test_exp): Same.
17629 (tests_attr_p): Same.
17630 (get_attr_order): Same.
17631 (clear_struct_flag): Same.
17633 (compares_alternatives_p): Same.
17636 (find_attrs_to_cache): Same.
17637 (write_test_expr): Same.
17638 (walk_attr_value): Same.
17639 (write_attr_get): Same.
17640 (eliminate_known_true): Same.
17641 (write_insn_cases): Same.
17642 (write_attr_case): Same.
17643 (write_attr_valueq): Same.
17644 (write_attr_value): Same.
17645 (write_dummy_eligible_delay): Same.
17646 (next_comma_elt): Same.
17648 (make_internal_attr): Same.
17649 (copy_rtx_unchanging): Same.
17650 (gen_insn_reserv): Same.
17651 (check_tune_attr): Same.
17652 (make_automaton_attrs): Same.
17653 (handle_arg): Same.
17654 * genextract.c (gen_insn): Same.
17655 (VEC_char_to_string): Same.
17656 * genmatch.c (print_operand): Same.
17658 (parser::parse_operation): Same.
17659 (parser::parse_capture): Same.
17660 (parser::parse_c_expr): Same.
17661 (parser::parse_simplify): Same.
17663 * genoutput.c (output_operand_data): Same.
17664 (output_get_insn_name): Same.
17665 (compare_operands): Same.
17666 (place_operands): Same.
17667 (process_template): Same.
17668 (validate_insn_alternatives): Same.
17669 (validate_insn_operands): Same.
17670 (gen_expand): Same.
17671 (note_constraint): Same.
17672 * genpreds.c (write_one_predicate_function): Same.
17673 (add_constraint): Same.
17674 (process_define_register_constraint): Same.
17675 (write_lookup_constraint_1): Same.
17676 (write_lookup_constraint_array): Same.
17677 (write_insn_constraint_len): Same.
17678 (write_reg_class_for_constraint_1): Same.
17679 (write_constraint_satisfied_p_array): Same.
17680 * genrecog.c (optimize_subroutine_group): Same.
17681 * gensupport.c (process_define_predicate): Same.
17682 (queue_pattern): Same.
17683 (remove_from_queue): Same.
17684 (process_rtx): Same.
17685 (is_predicable): Same.
17686 (change_subst_attribute): Same.
17687 (subst_pattern_match): Same.
17688 (alter_constraints): Same.
17689 (alter_attrs_for_insn): Same.
17690 (shift_output_template): Same.
17691 (alter_output_for_subst_insn): Same.
17692 (process_one_cond_exec): Same.
17694 (process_define_cond_exec): Same.
17695 (mnemonic_htab_callback): Same.
17696 (gen_mnemonic_attr): Same.
17697 (read_md_rtx): Same.
17698 * ggc-page.c: Same.
17699 * gimple-loop-interchange.cc (dump_reduction): Same.
17700 (dump_induction): Same.
17701 (loop_cand::~loop_cand): Same.
17702 (free_data_refs_with_aux): Same.
17703 (tree_loop_interchange::interchange_loops): Same.
17704 (tree_loop_interchange::map_inductions_to_loop): Same.
17705 (tree_loop_interchange::move_code_to_inner_loop): Same.
17706 (compute_access_stride): Same.
17707 (compute_access_strides): Same.
17708 (proper_loop_form_for_interchange): Same.
17709 (tree_loop_interchange_compute_ddrs): Same.
17710 (prune_datarefs_not_in_loop): Same.
17711 (prepare_data_references): Same.
17712 (pass_linterchange::execute): Same.
17713 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17714 (unroll_jam_possible_p): Same.
17715 (fuse_loops): Same.
17716 (adjust_unroll_factor): Same.
17717 (tree_loop_unroll_and_jam): Same.
17718 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17719 (loop_versioning::expensive_stmt_p): Same.
17720 (loop_versioning::version_for_unity): Same.
17721 (loop_versioning::dump_inner_likelihood): Same.
17722 (loop_versioning::find_per_loop_multiplication): Same.
17723 (loop_versioning::analyze_term_using_scevs): Same.
17724 (loop_versioning::record_address_fragment): Same.
17725 (loop_versioning::analyze_expr): Same.
17726 (loop_versioning::analyze_blocks): Same.
17727 (loop_versioning::prune_conditions): Same.
17728 (loop_versioning::merge_loop_info): Same.
17729 (loop_versioning::add_loop_to_queue): Same.
17730 (loop_versioning::decide_whether_loop_is_versionable): Same.
17731 (loop_versioning::make_versioning_decisions): Same.
17732 (loop_versioning::implement_versioning_decisions): Same.
17733 * gimple-ssa-evrp-analyze.c
17734 (evrp_range_analyzer::record_ranges_from_phis): Same.
17735 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17736 (count_multiple_uses): Same.
17737 (split_group): Same.
17738 (imm_store_chain_info::output_merged_store): Same.
17739 (pass_store_merging::process_store): Same.
17740 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17741 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17743 (alloca_call_type): Same.
17744 (pass_walloca::execute): Same.
17745 * gimple-streamer-in.c (input_phi): Same.
17746 (input_gimple_stmt): Same.
17747 * gimple-streamer.h: Same.
17748 * godump.c (go_force_record_alignment): Same.
17749 (go_format_type): Same.
17750 (go_output_type): Same.
17751 (go_output_fndecl): Same.
17752 (go_output_typedef): Same.
17753 (keyword_hash_init): Same.
17754 (find_dummy_types): Same.
17755 * graph.c (draw_cfg_nodes_no_loops): Same.
17756 (draw_cfg_nodes_for_loop): Same.
17757 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17758 * hsa-brig.c: Same.
17759 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17760 * hsa-dump.c (dump_hsa_cfun): Same.
17761 * hsa-gen.c (gen_function_def_parameters): Same.
17762 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17763 * input.c (dump_line_table_statistics): Same.
17764 (test_lexer): Same.
17766 * internal-fn.c (get_multi_vector_move): Same.
17767 (expand_load_lanes_optab_fn): Same.
17768 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17769 (expand_GOMP_SIMT_EXIT): Same.
17770 (expand_GOMP_SIMT_LAST_LANE): Same.
17771 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17772 (expand_GOMP_SIMT_VOTE_ANY): Same.
17773 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17774 (expand_GOMP_SIMT_XCHG_IDX): Same.
17775 (expand_addsub_overflow): Same.
17776 (expand_neg_overflow): Same.
17777 (expand_mul_overflow): Same.
17778 (expand_call_mem_ref): Same.
17779 (expand_mask_load_optab_fn): Same.
17780 (expand_scatter_store_optab_fn): Same.
17781 (expand_gather_load_optab_fn): Same.
17782 * ipa-cp.c (ipa_get_parm_lattices): Same.
17783 (print_all_lattices): Same.
17784 (ignore_edge_p): Same.
17785 (build_toporder_info): Same.
17786 (free_toporder_info): Same.
17787 (push_node_to_stack): Same.
17788 (ipcp_lattice<valtype>::set_contains_variable): Same.
17789 (set_agg_lats_to_bottom): Same.
17790 (ipcp_bits_lattice::meet_with): Same.
17791 (set_single_call_flag): Same.
17792 (initialize_node_lattices): Same.
17793 (ipa_get_jf_ancestor_result): Same.
17794 (ipcp_verify_propagated_values): Same.
17795 (propagate_scalar_across_jump_function): Same.
17796 (propagate_context_across_jump_function): Same.
17797 (propagate_bits_across_jump_function): Same.
17798 (ipa_vr_operation_and_type_effects): Same.
17799 (propagate_vr_across_jump_function): Same.
17800 (set_check_aggs_by_ref): Same.
17801 (set_chain_of_aglats_contains_variable): Same.
17802 (merge_aggregate_lattices): Same.
17803 (agg_pass_through_permissible_p): Same.
17804 (propagate_aggs_across_jump_function): Same.
17805 (call_passes_through_thunk_p): Same.
17806 (propagate_constants_across_call): Same.
17807 (devirtualization_time_bonus): Same.
17808 (good_cloning_opportunity_p): Same.
17809 (context_independent_aggregate_values): Same.
17810 (gather_context_independent_values): Same.
17811 (perform_estimation_of_a_value): Same.
17812 (estimate_local_effects): Same.
17813 (value_topo_info<valtype>::add_val): Same.
17814 (add_all_node_vals_to_toposort): Same.
17815 (value_topo_info<valtype>::propagate_effects): Same.
17816 (ipcp_propagate_stage): Same.
17817 (ipcp_discover_new_direct_edges): Same.
17818 (same_node_or_its_all_contexts_clone_p): Same.
17819 (cgraph_edge_brings_value_p): Same.
17820 (gather_edges_for_value): Same.
17821 (create_specialized_node): Same.
17822 (find_more_scalar_values_for_callers_subset): Same.
17823 (find_more_contexts_for_caller_subset): Same.
17824 (copy_plats_to_inter): Same.
17825 (intersect_aggregates_with_edge): Same.
17826 (find_aggregate_values_for_callers_subset): Same.
17827 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17828 (decide_about_value): Same.
17829 (decide_whether_version_node): Same.
17830 (spread_undeadness): Same.
17831 (identify_dead_nodes): Same.
17832 (ipcp_store_vr_results): Same.
17833 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17834 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17835 (redirect_to_unreachable): Same.
17836 (edge_set_predicate): Same.
17837 (evaluate_conditions_for_known_args): Same.
17838 (evaluate_properties_for_edge): Same.
17839 (ipa_fn_summary_t::duplicate): Same.
17840 (ipa_call_summary_t::duplicate): Same.
17841 (dump_ipa_call_summary): Same.
17842 (ipa_dump_fn_summary): Same.
17843 (eliminated_by_inlining_prob): Same.
17844 (set_cond_stmt_execution_predicate): Same.
17845 (set_switch_stmt_execution_predicate): Same.
17846 (compute_bb_predicates): Same.
17847 (will_be_nonconstant_expr_predicate): Same.
17848 (phi_result_unknown_predicate): Same.
17849 (analyze_function_body): Same.
17850 (compute_fn_summary): Same.
17851 (estimate_edge_devirt_benefit): Same.
17852 (estimate_edge_size_and_time): Same.
17853 (estimate_calls_size_and_time): Same.
17854 (estimate_node_size_and_time): Same.
17855 (remap_edge_change_prob): Same.
17856 (remap_edge_summaries): Same.
17857 (ipa_merge_fn_summary_after_inlining): Same.
17858 (ipa_fn_summary_generate): Same.
17859 (inline_read_section): Same.
17860 (ipa_fn_summary_read): Same.
17861 (ipa_fn_summary_write): Same.
17862 * ipa-fnsummary.h: Same.
17863 * ipa-hsa.c (ipa_hsa_read_section): Same.
17864 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17865 * ipa-icf.c (sem_function::param_used_p): Same.
17866 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17867 * ipa-inline.c (edge_badness): Same.
17868 (inline_small_functions): Same.
17869 * ipa-polymorphic-call.c
17870 (ipa_polymorphic_call_context::stream_out): Same.
17871 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17872 (predicate::remap_after_inlining): Same.
17873 (predicate::stream_out): Same.
17874 * ipa-predicate.h: Same.
17875 * ipa-profile.c (ipa_profile_read_summary): Same.
17876 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17877 (count_formal_params): Same.
17878 (ipa_dump_param): Same.
17879 (ipa_alloc_node_params): Same.
17880 (ipa_print_node_jump_functions_for_edge): Same.
17881 (ipa_print_node_jump_functions): Same.
17882 (ipa_load_from_parm_agg): Same.
17883 (get_ancestor_addr_info): Same.
17884 (ipa_compute_jump_functions_for_edge): Same.
17885 (ipa_analyze_virtual_call_uses): Same.
17886 (ipa_analyze_stmt_uses): Same.
17887 (ipa_analyze_params_uses_in_bb): Same.
17888 (update_jump_functions_after_inlining): Same.
17889 (try_decrement_rdesc_refcount): Same.
17890 (ipa_impossible_devirt_target): Same.
17891 (update_indirect_edges_after_inlining): Same.
17892 (combine_controlled_uses_counters): Same.
17893 (ipa_edge_args_sum_t::duplicate): Same.
17894 (ipa_write_jump_function): Same.
17895 (ipa_write_indirect_edge_info): Same.
17896 (ipa_write_node_info): Same.
17897 (ipa_read_edge_info): Same.
17898 (ipa_prop_read_section): Same.
17899 (read_replacements_section): Same.
17900 * ipa-prop.h (ipa_get_param_count): Same.
17901 (ipa_get_param): Same.
17902 (ipa_get_type): Same.
17903 (ipa_get_param_move_cost): Same.
17904 (ipa_set_param_used): Same.
17905 (ipa_get_controlled_uses): Same.
17906 (ipa_set_controlled_uses): Same.
17907 (ipa_get_cs_argument_count): Same.
17908 * ipa-pure-const.c (analyze_function): Same.
17909 (pure_const_read_summary): Same.
17911 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17912 * ipa-split.c (test_nonssa_use): Same.
17913 (dump_split_point): Same.
17914 (dominated_by_forbidden): Same.
17915 (split_part_set_ssa_name_p): Same.
17916 (find_split_points): Same.
17917 * ira-build.c (finish_loop_tree_nodes): Same.
17918 (low_pressure_loop_node_p): Same.
17919 * ira-color.c (ira_reuse_stack_slot): Same.
17921 * ira.c (setup_reg_equiv): Same.
17922 (print_insn_chain): Same.
17924 * loop-doloop.c (doloop_condition_get): Same.
17926 (record_reg_sets): Same.
17927 (doloop_optimize): Same.
17928 * loop-init.c (loop_optimizer_init): Same.
17929 (fix_loop_structure): Same.
17930 * loop-invariant.c (merge_identical_invariants): Same.
17931 (compute_always_reached): Same.
17932 (find_exits): Same.
17933 (may_assign_reg_p): Same.
17934 (find_invariants_bb): Same.
17935 (find_invariants_body): Same.
17936 (replace_uses): Same.
17937 (can_move_invariant_reg): Same.
17938 (free_inv_motion_data): Same.
17939 (move_single_loop_invariants): Same.
17940 (change_pressure): Same.
17941 (mark_ref_regs): Same.
17942 (calculate_loop_reg_pressure): Same.
17943 * loop-iv.c (biv_entry_hasher::equal): Same.
17944 (iv_extend_to_rtx_code): Same.
17945 (check_iv_ref_table_size): Same.
17946 (clear_iv_info): Same.
17947 (latch_dominating_def): Same.
17948 (iv_get_reaching_def): Same.
17949 (iv_constant): Same.
17955 (get_biv_step): Same.
17957 (analyzed_for_bivness_p): Same.
17958 (record_biv): Same.
17959 (iv_analyze_biv): Same.
17960 (iv_analyze_expr): Same.
17961 (iv_analyze_def): Same.
17962 (iv_analyze_op): Same.
17963 (iv_analyze): Same.
17964 (iv_analyze_result): Same.
17966 (eliminate_implied_conditions): Same.
17967 (simplify_using_initial_values): Same.
17968 (shorten_into_mode): Same.
17969 (canonicalize_iv_subregs): Same.
17970 (determine_max_iter): Same.
17971 (check_simple_exit): Same.
17972 (find_simple_exit): Same.
17973 (get_simple_loop_desc): Same.
17974 * loop-unroll.c (report_unroll): Same.
17975 (decide_unrolling): Same.
17976 (unroll_loops): Same.
17977 (loop_exit_at_end_p): Same.
17978 (decide_unroll_constant_iterations): Same.
17979 (unroll_loop_constant_iterations): Same.
17980 (compare_and_jump_seq): Same.
17981 (unroll_loop_runtime_iterations): Same.
17982 (decide_unroll_stupid): Same.
17983 (unroll_loop_stupid): Same.
17984 (referenced_in_one_insn_in_loop_p): Same.
17985 (reset_debug_uses_in_loop): Same.
17986 (analyze_iv_to_split_insn): Same.
17987 * lra-eliminations.c (lra_debug_elim_table): Same.
17988 (setup_can_eliminate): Same.
17990 (lra_get_elimination_hard_regno): Same.
17991 (lra_eliminate_regs_1): Same.
17992 (eliminate_regs_in_insn): Same.
17993 (update_reg_eliminate): Same.
17994 (init_elimination): Same.
17995 (lra_eliminate): Same.
17997 * lra-lives.c (initiate_live_solver): Same.
17998 * lra-remat.c (create_remat_bb_data): Same.
17999 * lra-spills.c (lra_spill): Same.
18000 * lra.c (lra_set_insn_recog_data): Same.
18001 (lra_set_used_insn_alternative_by_uid): Same.
18002 (init_reg_info): Same.
18003 (expand_reg_info): Same.
18004 * lto-cgraph.c (output_symtab): Same.
18005 (read_identifier): Same.
18006 (get_alias_symbol): Same.
18007 (input_node): Same.
18008 (input_varpool_node): Same.
18010 (input_edge): Same.
18011 (input_cgraph_1): Same.
18012 (input_refs): Same.
18013 (input_symtab): Same.
18014 (input_offload_tables): Same.
18015 (output_cgraph_opt_summary): Same.
18016 (input_edge_opt_summary): Same.
18017 (input_cgraph_opt_section): Same.
18018 * lto-section-in.c (lto_free_raw_section_data): Same.
18019 (lto_create_simple_input_block): Same.
18020 (lto_free_function_in_decl_state_for_node): Same.
18021 * lto-streamer-in.c (lto_tag_check_set): Same.
18022 (lto_location_cache::revert_location_cache): Same.
18023 (lto_location_cache::input_location): Same.
18024 (lto_input_location): Same.
18025 (stream_input_location_now): Same.
18026 (lto_input_tree_ref): Same.
18027 (lto_input_eh_catch_list): Same.
18028 (input_eh_region): Same.
18029 (lto_init_eh): Same.
18030 (make_new_block): Same.
18032 (fixup_call_stmt_edges): Same.
18033 (input_struct_function_base): Same.
18034 (input_function): Same.
18035 (lto_read_body_or_constructor): Same.
18036 (lto_read_tree_1): Same.
18037 (lto_read_tree): Same.
18038 (lto_input_scc): Same.
18039 (lto_input_tree_1): Same.
18040 (lto_input_toplevel_asms): Same.
18041 (lto_input_mode_table): Same.
18042 (lto_reader_init): Same.
18043 (lto_data_in_create): Same.
18044 * lto-streamer-out.c (output_cfg): Same.
18045 * lto-streamer.h: Same.
18046 * modulo-sched.c (duplicate_insns_of_cycles): Same.
18047 (generate_prolog_epilog): Same.
18048 (mark_loop_unsched): Same.
18049 (dump_insn_location): Same.
18050 (loop_canon_p): Same.
18051 (sms_schedule): Same.
18052 * omp-expand.c (expand_omp_for_ordered_loops): Same.
18053 (expand_omp_for_generic): Same.
18054 (expand_omp_for_static_nochunk): Same.
18055 (expand_omp_for_static_chunk): Same.
18056 (expand_omp_simd): Same.
18057 (expand_omp_taskloop_for_inner): Same.
18058 (expand_oacc_for): Same.
18059 (expand_omp_atomic_pipeline): Same.
18060 (mark_loops_in_oacc_kernels_region): Same.
18061 * omp-offload.c (oacc_xform_loop): Same.
18062 * omp-simd-clone.c (simd_clone_adjust): Same.
18063 * optabs-query.c (get_traditional_extraction_insn): Same.
18064 * optabs.c (expand_vector_broadcast): Same.
18065 (expand_binop_directly): Same.
18066 (expand_twoval_unop): Same.
18067 (expand_twoval_binop): Same.
18068 (expand_unop_direct): Same.
18069 (emit_indirect_jump): Same.
18070 (emit_conditional_move): Same.
18071 (emit_conditional_neg_or_complement): Same.
18072 (emit_conditional_add): Same.
18073 (vector_compare_rtx): Same.
18074 (expand_vec_perm_1): Same.
18075 (expand_vec_perm_const): Same.
18076 (expand_vec_cond_expr): Same.
18077 (expand_vec_series_expr): Same.
18078 (maybe_emit_atomic_exchange): Same.
18079 (maybe_emit_sync_lock_test_and_set): Same.
18080 (expand_atomic_compare_and_swap): Same.
18081 (expand_atomic_load): Same.
18082 (expand_atomic_store): Same.
18083 (maybe_emit_op): Same.
18084 (valid_multiword_target_p): Same.
18085 (create_integer_operand): Same.
18086 (maybe_legitimize_operand_same_code): Same.
18087 (maybe_legitimize_operand): Same.
18088 (create_convert_operand_from_type): Same.
18089 (can_reuse_operands_p): Same.
18090 (maybe_legitimize_operands): Same.
18091 (maybe_gen_insn): Same.
18092 (maybe_expand_insn): Same.
18093 (maybe_expand_jump_insn): Same.
18094 (expand_insn): Same.
18095 * optabs.h (create_expand_operand): Same.
18096 (create_fixed_operand): Same.
18097 (create_output_operand): Same.
18098 (create_input_operand): Same.
18099 (create_convert_operand_to): Same.
18100 (create_convert_operand_from): Same.
18102 * poly-int.h: Same.
18103 * predict.c (optimize_insn_for_speed_p): Same.
18104 (optimize_loop_for_size_p): Same.
18105 (optimize_loop_for_speed_p): Same.
18106 (optimize_loop_nest_for_speed_p): Same.
18107 (get_base_value): Same.
18108 (predicted_by_loop_heuristics_p): Same.
18109 (predict_extra_loop_exits): Same.
18110 (predict_loops): Same.
18111 (predict_paths_for_bb): Same.
18112 (predict_paths_leading_to): Same.
18113 (propagate_freq): Same.
18114 (pass_profile::execute): Same.
18116 * profile-count.c (profile_count::differs_from_p): Same.
18117 (profile_probability::differs_lot_from_p): Same.
18118 * profile-count.h: Same.
18119 * profile.c (branch_prob): Same.
18120 * regrename.c (free_chain_data): Same.
18121 (mark_conflict): Same.
18122 (create_new_chain): Same.
18123 (merge_overlapping_regs): Same.
18124 (init_rename_info): Same.
18125 (merge_chains): Same.
18126 (regrename_analyze): Same.
18127 (regrename_do_replace): Same.
18128 (scan_rtx_reg): Same.
18129 (record_out_operands): Same.
18130 (build_def_use): Same.
18131 * regrename.h: Same.
18133 * reload1.c (init_reload): Same.
18134 (maybe_fix_stack_asms): Same.
18135 (copy_reloads): Same.
18136 (count_pseudo): Same.
18137 (count_spilled_pseudo): Same.
18139 (find_reload_regs): Same.
18140 (select_reload_regs): Same.
18141 (spill_hard_reg): Same.
18142 (fixup_eh_region_note): Same.
18143 (set_reload_reg): Same.
18144 (allocate_reload_reg): Same.
18145 (compute_reload_subreg_offset): Same.
18146 (reload_adjust_reg_for_icode): Same.
18147 (emit_input_reload_insns): Same.
18148 (emit_output_reload_insns): Same.
18149 (do_input_reload): Same.
18150 (inherit_piecemeal_p): Same.
18152 * sanopt.c (maybe_get_dominating_check): Same.
18153 (maybe_optimize_ubsan_ptr_ifn): Same.
18154 (can_remove_asan_check): Same.
18155 (maybe_optimize_asan_check_ifn): Same.
18156 (sanopt_optimize_walker): Same.
18157 * sched-deps.c (add_dependence_list): Same.
18158 (chain_to_prev_insn): Same.
18159 (add_insn_mem_dependence): Same.
18160 (create_insn_reg_set): Same.
18161 (maybe_extend_reg_info_p): Same.
18162 (sched_analyze_reg): Same.
18163 (sched_analyze_1): Same.
18164 (get_implicit_reg_pending_clobbers): Same.
18165 (chain_to_prev_insn_p): Same.
18166 (deps_analyze_insn): Same.
18167 (deps_start_bb): Same.
18168 (sched_free_deps): Same.
18170 (init_deps_reg_last): Same.
18172 * sched-ebb.c: Same.
18173 * sched-int.h: Same.
18174 * sched-rgn.c (add_branch_dependences): Same.
18175 (concat_insn_mem_list): Same.
18177 (sched_rgn_compute_dependencies): Same.
18178 * sel-sched-ir.c (reset_target_context): Same.
18179 (copy_deps_context): Same.
18180 (init_id_from_df): Same.
18181 (has_dependence_p): Same.
18182 (change_loops_latches): Same.
18183 (bb_top_order_comparator): Same.
18184 (make_region_from_loop_preheader): Same.
18185 (sel_init_pipelining): Same.
18186 (get_loop_nest_for_rgn): Same.
18187 (make_regions_from_the_rest): Same.
18188 (sel_is_loop_preheader_p): Same.
18189 * sel-sched-ir.h (inner_loop_header_p): Same.
18190 (get_all_loop_exits): Same.
18191 * selftest.h: Same.
18192 * sese.c (sese_build_liveouts): Same.
18193 (sese_insert_phis_for_liveouts): Same.
18194 * sese.h (defined_in_sese_p): Same.
18195 * sreal.c (sreal::stream_out): Same.
18197 * streamer-hooks.h: Same.
18198 * target-globals.c (save_target_globals): Same.
18199 * target-globals.h: Same.
18200 * target.def: Same.
18202 * targhooks.c (default_has_ifunc_p): Same.
18203 (default_empty_mask_is_expensive): Same.
18204 (default_init_cost): Same.
18205 * targhooks.h: Same.
18207 * tree-affine.c (aff_combination_mult): Same.
18208 (aff_combination_expand): Same.
18209 (aff_combination_constant_multiple_p): Same.
18210 * tree-affine.h: Same.
18211 * tree-cfg.c (build_gimple_cfg): Same.
18212 (replace_loop_annotate_in_block): Same.
18213 (replace_uses_by): Same.
18215 (dump_cfg_stats): Same.
18216 (gimple_duplicate_sese_region): Same.
18217 (gimple_duplicate_sese_tail): Same.
18218 (move_block_to_fn): Same.
18219 (replace_block_vars_by_duplicates): Same.
18220 (move_sese_region_to_fn): Same.
18221 (print_loops_bb): Same.
18222 (print_loop): Same.
18223 (print_loops): Same.
18225 (debug_loops): Same.
18226 * tree-cfg.h: Same.
18227 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18228 (chrec_fold_multiply_poly_poly): Same.
18229 (chrec_evaluate): Same.
18230 (chrec_component_in_loop_num): Same.
18231 (reset_evolution_in_loop): Same.
18232 (is_multivariate_chrec): Same.
18233 (chrec_contains_symbols): Same.
18234 (nb_vars_in_chrec): Same.
18235 (chrec_convert_1): Same.
18236 (chrec_convert_aggressive): Same.
18237 * tree-chrec.h: Same.
18238 * tree-core.h: Same.
18239 * tree-data-ref.c (dump_data_dependence_relation): Same.
18240 (canonicalize_base_object_address): Same.
18241 (data_ref_compare_tree): Same.
18242 (prune_runtime_alias_test_list): Same.
18243 (get_segment_min_max): Same.
18244 (create_intersect_range_checks): Same.
18245 (conflict_fn_no_dependence): Same.
18246 (object_address_invariant_in_loop_p): Same.
18247 (analyze_ziv_subscript): Same.
18248 (analyze_siv_subscript_cst_affine): Same.
18249 (analyze_miv_subscript): Same.
18250 (analyze_overlapping_iterations): Same.
18251 (build_classic_dist_vector_1): Same.
18252 (add_other_self_distances): Same.
18253 (same_access_functions): Same.
18254 (build_classic_dir_vector): Same.
18255 (subscript_dependence_tester_1): Same.
18256 (subscript_dependence_tester): Same.
18257 (access_functions_are_affine_or_constant_p): Same.
18258 (get_references_in_stmt): Same.
18259 (loop_nest_has_data_refs): Same.
18260 (graphite_find_data_references_in_stmt): Same.
18261 (find_data_references_in_bb): Same.
18262 (get_base_for_alignment): Same.
18263 (find_loop_nest_1): Same.
18264 (find_loop_nest): Same.
18265 * tree-data-ref.h (dr_alignment): Same.
18266 (ddr_dependence_level): Same.
18267 * tree-if-conv.c (fold_build_cond_expr): Same.
18268 (add_to_predicate_list): Same.
18269 (add_to_dst_predicate_list): Same.
18270 (phi_convertible_by_degenerating_args): Same.
18271 (idx_within_array_bound): Same.
18272 (all_preds_critical_p): Same.
18273 (pred_blocks_visited_p): Same.
18274 (predicate_bbs): Same.
18275 (build_region): Same.
18276 (if_convertible_loop_p_1): Same.
18277 (is_cond_scalar_reduction): Same.
18278 (predicate_scalar_phi): Same.
18279 (remove_conditions_and_labels): Same.
18280 (combine_blocks): Same.
18281 (version_loop_for_if_conversion): Same.
18282 (versionable_outer_loop_p): Same.
18283 (ifcvt_local_dce): Same.
18284 (tree_if_conversion): Same.
18285 (pass_if_conversion::gate): Same.
18286 * tree-if-conv.h: Same.
18287 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
18288 * tree-loop-distribution.c (bb_top_order_cmp): Same.
18290 (stmt_has_scalar_dependences_outside_loop): Same.
18291 (copy_loop_before): Same.
18292 (create_bb_after_loop): Same.
18293 (const_with_all_bytes_same): Same.
18294 (generate_memset_builtin): Same.
18295 (generate_memcpy_builtin): Same.
18296 (destroy_loop): Same.
18297 (build_rdg_partition_for_vertex): Same.
18298 (compute_access_range): Same.
18299 (data_ref_segment_size): Same.
18300 (latch_dominated_by_data_ref): Same.
18301 (compute_alias_check_pairs): Same.
18302 (fuse_memset_builtins): Same.
18303 (finalize_partitions): Same.
18304 (find_seed_stmts_for_distribution): Same.
18305 (prepare_perfect_loop_nest): Same.
18306 * tree-parloops.c (lambda_transform_legal_p): Same.
18307 (loop_parallel_p): Same.
18308 (reduc_stmt_res): Same.
18309 (add_field_for_name): Same.
18310 (create_call_for_reduction_1): Same.
18311 (replace_uses_in_bb_by): Same.
18312 (transform_to_exit_first_loop_alt): Same.
18313 (try_transform_to_exit_first_loop_alt): Same.
18314 (transform_to_exit_first_loop): Same.
18316 (gen_parallel_loop): Same.
18317 (gather_scalar_reductions): Same.
18318 (get_omp_data_i_param): Same.
18319 (try_create_reduction_list): Same.
18320 (oacc_entry_exit_single_gang): Same.
18321 (parallelize_loops): Same.
18322 * tree-pass.h: Same.
18323 * tree-predcom.c (determine_offset): Same.
18324 (last_always_executed_block): Same.
18325 (split_data_refs_to_components): Same.
18326 (suitable_component_p): Same.
18327 (valid_initializer_p): Same.
18328 (find_looparound_phi): Same.
18329 (insert_looparound_copy): Same.
18330 (add_looparound_copies): Same.
18331 (determine_roots_comp): Same.
18332 (predcom_tmp_var): Same.
18333 (initialize_root_vars): Same.
18334 (initialize_root_vars_store_elim_1): Same.
18335 (initialize_root_vars_store_elim_2): Same.
18336 (finalize_eliminated_stores): Same.
18337 (initialize_root_vars_lm): Same.
18338 (remove_stmt): Same.
18339 (determine_unroll_factor): Same.
18340 (execute_pred_commoning_cbck): Same.
18341 (base_names_in_chain_on): Same.
18342 (combine_chains): Same.
18343 (pcom_stmt_dominates_stmt_p): Same.
18344 (try_combine_chains): Same.
18345 (prepare_initializers_chain_store_elim): Same.
18346 (prepare_initializers_chain): Same.
18347 (prepare_initializers): Same.
18348 (prepare_finalizers_chain): Same.
18349 (prepare_finalizers): Same.
18350 (insert_init_seqs): Same.
18351 * tree-scalar-evolution.c (loop_phi_node_p): Same.
18352 (compute_overall_effect_of_inner_loop): Same.
18353 (add_to_evolution_1): Same.
18354 (add_to_evolution): Same.
18355 (follow_ssa_edge_binary): Same.
18356 (follow_ssa_edge_expr): Same.
18357 (backedge_phi_arg_p): Same.
18358 (follow_ssa_edge_in_condition_phi_branch): Same.
18359 (follow_ssa_edge_in_condition_phi): Same.
18360 (follow_ssa_edge_inner_loop_phi): Same.
18361 (follow_ssa_edge): Same.
18362 (analyze_evolution_in_loop): Same.
18363 (analyze_initial_condition): Same.
18364 (interpret_loop_phi): Same.
18365 (interpret_condition_phi): Same.
18366 (interpret_rhs_expr): Same.
18367 (interpret_expr): Same.
18368 (interpret_gimple_assign): Same.
18369 (analyze_scalar_evolution_1): Same.
18370 (analyze_scalar_evolution): Same.
18371 (analyze_scalar_evolution_for_address_of): Same.
18372 (get_instantiated_value_entry): Same.
18373 (loop_closed_phi_def): Same.
18374 (instantiate_scev_name): Same.
18375 (instantiate_scev_poly): Same.
18376 (instantiate_scev_binary): Same.
18377 (instantiate_scev_convert): Same.
18378 (instantiate_scev_not): Same.
18379 (instantiate_scev_r): Same.
18380 (instantiate_scev): Same.
18381 (resolve_mixers): Same.
18382 (initialize_scalar_evolutions_analyzer): Same.
18383 (scev_reset_htab): Same.
18384 (scev_reset): Same.
18385 (derive_simple_iv_with_niters): Same.
18386 (simple_iv_with_niters): Same.
18387 (expression_expensive_p): Same.
18388 (final_value_replacement_loop): Same.
18389 * tree-scalar-evolution.h (block_before_loop): Same.
18390 * tree-ssa-address.h: Same.
18391 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
18392 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
18393 (record_edge_info): Same.
18394 * tree-ssa-live.c (var_map_base_fini): Same.
18395 (remove_unused_locals): Same.
18396 * tree-ssa-live.h: Same.
18397 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
18398 (pass_ch_vect::execute): Same.
18399 (pass_ch::process_loop_p): Same.
18400 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
18401 (movement_possibility): Same.
18402 (outermost_invariant_loop): Same.
18404 (determine_max_movement): Same.
18405 (invariantness_dom_walker::before_dom_children): Same.
18406 (move_computations): Same.
18407 (may_move_till): Same.
18408 (force_move_till_op): Same.
18409 (force_move_till): Same.
18410 (memref_free): Same.
18411 (record_mem_ref_loc): Same.
18412 (set_ref_stored_in_loop): Same.
18413 (mark_ref_stored): Same.
18414 (sort_bbs_in_loop_postorder_cmp): Same.
18415 (sort_locs_in_loop_postorder_cmp): Same.
18416 (analyze_memory_references): Same.
18417 (mem_refs_may_alias_p): Same.
18418 (find_ref_loc_in_loop_cmp): Same.
18419 (rewrite_mem_ref_loc::operator): Same.
18420 (first_mem_ref_loc_1::operator): Same.
18421 (sm_set_flag_if_changed::operator): Same.
18422 (execute_sm_if_changed_flag_set): Same.
18423 (execute_sm): Same.
18424 (hoist_memory_references): Same.
18425 (ref_always_accessed::operator): Same.
18426 (refs_independent_p): Same.
18427 (record_dep_loop): Same.
18428 (ref_indep_loop_p_1): Same.
18429 (ref_indep_loop_p): Same.
18430 (can_sm_ref_p): Same.
18431 (find_refs_for_sm): Same.
18432 (loop_suitable_for_sm): Same.
18433 (store_motion_loop): Same.
18434 (store_motion): Same.
18435 (fill_always_executed_in): Same.
18436 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18437 (estimated_unrolled_size): Same.
18438 (loop_edge_to_cancel): Same.
18439 (remove_exits_and_undefined_stmts): Same.
18440 (remove_redundant_iv_tests): Same.
18441 (unloop_loops): Same.
18442 (estimated_peeled_sequence_size): Same.
18443 (try_peel_loop): Same.
18444 (canonicalize_loop_induction_variables): Same.
18445 (canonicalize_induction_variables): Same.
18446 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18448 (stmt_after_inc_pos): Same.
18449 (contains_abnormal_ssa_name_p): Same.
18450 (niter_for_exit): Same.
18453 (find_givs_in_bb): Same.
18454 (find_induction_variables): Same.
18455 (find_interesting_uses_cond): Same.
18456 (outermost_invariant_loop_for_expr): Same.
18457 (idx_find_step): Same.
18458 (add_candidate_1): Same.
18459 (add_iv_candidate_derived_from_uses): Same.
18460 (alloc_use_cost_map): Same.
18461 (prepare_decl_rtl): Same.
18462 (generic_predict_doloop_p): Same.
18463 (computation_cost): Same.
18464 (determine_common_wider_type): Same.
18465 (get_computation_aff_1): Same.
18466 (get_use_type): Same.
18467 (determine_group_iv_cost_address): Same.
18469 (difference_cannot_overflow_p): Same.
18470 (may_eliminate_iv): Same.
18471 (determine_set_costs): Same.
18472 (cheaper_cost_pair): Same.
18473 (compare_cost_pair): Same.
18474 (iv_ca_cand_for_group): Same.
18475 (iv_ca_recount_cost): Same.
18476 (iv_ca_set_remove_invs): Same.
18477 (iv_ca_set_no_cp): Same.
18478 (iv_ca_set_add_invs): Same.
18479 (iv_ca_set_cp): Same.
18480 (iv_ca_add_group): Same.
18481 (iv_ca_cost): Same.
18482 (iv_ca_compare_deps): Same.
18483 (iv_ca_delta_reverse): Same.
18484 (iv_ca_delta_commit): Same.
18485 (iv_ca_cand_used_p): Same.
18486 (iv_ca_delta_free): Same.
18488 (iv_ca_free): Same.
18489 (iv_ca_dump): Same.
18490 (iv_ca_extend): Same.
18491 (iv_ca_narrow): Same.
18492 (iv_ca_prune): Same.
18493 (cheaper_cost_with_cand): Same.
18494 (iv_ca_replace): Same.
18495 (try_add_cand_for): Same.
18496 (get_initial_solution): Same.
18497 (try_improve_iv_set): Same.
18498 (find_optimal_iv_set_1): Same.
18499 (create_new_iv): Same.
18500 (rewrite_use_compare): Same.
18501 (remove_unused_ivs): Same.
18502 (determine_scaling_factor): Same.
18503 * tree-ssa-loop-ivopts.h: Same.
18504 * tree-ssa-loop-manip.c (create_iv): Same.
18505 (compute_live_loop_exits): Same.
18506 (add_exit_phi): Same.
18507 (add_exit_phis): Same.
18508 (find_uses_to_rename_use): Same.
18509 (find_uses_to_rename_def): Same.
18510 (find_uses_to_rename_in_loop): Same.
18511 (rewrite_into_loop_closed_ssa): Same.
18512 (check_loop_closed_ssa_bb): Same.
18513 (split_loop_exit_edge): Same.
18514 (ip_end_pos): Same.
18515 (ip_normal_pos): Same.
18516 (copy_phi_node_args): Same.
18517 (gimple_duplicate_loop_to_header_edge): Same.
18518 (can_unroll_loop_p): Same.
18519 (determine_exit_conditions): Same.
18520 (scale_dominated_blocks_in_loop): Same.
18521 (niter_for_unrolled_loop): Same.
18522 (tree_transform_and_unroll_loop): Same.
18523 (rewrite_all_phi_nodes_with_iv): Same.
18524 * tree-ssa-loop-manip.h: Same.
18525 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
18526 (number_of_iterations_ne): Same.
18527 (assert_no_overflow_lt): Same.
18528 (assert_loop_rolls_lt): Same.
18529 (number_of_iterations_lt): Same.
18530 (adjust_cond_for_loop_until_wrap): Same.
18531 (tree_simplify_using_condition): Same.
18532 (simplify_using_initial_conditions): Same.
18533 (simplify_using_outer_evolutions): Same.
18534 (loop_only_exit_p): Same.
18535 (ssa_defined_by_minus_one_stmt_p): Same.
18536 (number_of_iterations_popcount): Same.
18537 (number_of_iterations_exit): Same.
18538 (find_loop_niter): Same.
18539 (finite_loop_p): Same.
18540 (chain_of_csts_start): Same.
18541 (get_val_for): Same.
18542 (loop_niter_by_eval): Same.
18543 (derive_constant_upper_bound_ops): Same.
18544 (do_warn_aggressive_loop_optimizations): Same.
18545 (record_estimate): Same.
18546 (get_cst_init_from_scev): Same.
18547 (record_nonwrapping_iv): Same.
18548 (idx_infer_loop_bounds): Same.
18549 (infer_loop_bounds_from_ref): Same.
18550 (infer_loop_bounds_from_array): Same.
18551 (infer_loop_bounds_from_pointer_arith): Same.
18552 (infer_loop_bounds_from_signedness): Same.
18553 (bound_index): Same.
18554 (discover_iteration_bound_by_body_walk): Same.
18555 (maybe_lower_iteration_bound): Same.
18556 (estimate_numbers_of_iterations): Same.
18557 (estimated_loop_iterations): Same.
18558 (estimated_loop_iterations_int): Same.
18559 (max_loop_iterations): Same.
18560 (max_loop_iterations_int): Same.
18561 (likely_max_loop_iterations): Same.
18562 (likely_max_loop_iterations_int): Same.
18563 (estimated_stmt_executions_int): Same.
18564 (max_stmt_executions): Same.
18565 (likely_max_stmt_executions): Same.
18566 (estimated_stmt_executions): Same.
18567 (stmt_dominates_stmt_p): Same.
18568 (nowrap_type_p): Same.
18569 (loop_exits_before_overflow): Same.
18570 (scev_var_range_cant_overflow): Same.
18571 (scev_probably_wraps_p): Same.
18572 (free_numbers_of_iterations_estimates): Same.
18573 * tree-ssa-loop-niter.h: Same.
18574 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
18575 (idx_analyze_ref): Same.
18576 (analyze_ref): Same.
18577 (gather_memory_references_ref): Same.
18578 (mark_nontemporal_store): Same.
18579 (emit_mfence_after_loop): Same.
18580 (may_use_storent_in_loop_p): Same.
18581 (mark_nontemporal_stores): Same.
18582 (should_unroll_loop_p): Same.
18583 (volume_of_dist_vector): Same.
18584 (add_subscript_strides): Same.
18585 (self_reuse_distance): Same.
18586 (insn_to_prefetch_ratio_too_small_p): Same.
18587 * tree-ssa-loop-split.c (split_at_bb_p): Same.
18588 (patch_loop_exit): Same.
18589 (find_or_create_guard_phi): Same.
18590 (easy_exit_values): Same.
18591 (connect_loop_phis): Same.
18592 (connect_loops): Same.
18593 (compute_new_first_bound): Same.
18594 (split_loop): Same.
18595 (tree_ssa_split_loops): Same.
18596 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
18597 (is_maybe_undefined): Same.
18598 (tree_may_unswitch_on): Same.
18599 (simplify_using_entry_checks): Same.
18600 (tree_unswitch_single_loop): Same.
18601 (tree_unswitch_loop): Same.
18602 (tree_unswitch_outer_loop): Same.
18603 (empty_bb_without_guard_p): Same.
18604 (used_outside_loop_p): Same.
18605 (get_vop_from_header): Same.
18606 (hoist_guard): Same.
18607 * tree-ssa-loop.c (gate_oacc_kernels): Same.
18608 (get_lsm_tmp_name): Same.
18609 * tree-ssa-loop.h: Same.
18610 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
18611 (build_and_add_sum): Same.
18612 (no_side_effect_bb): Same.
18614 (linearize_expr): Same.
18615 (should_break_up_subtract): Same.
18616 (linearize_expr_tree): Same.
18617 * tree-ssa-scopedtables.c: Same.
18618 * tree-ssa-scopedtables.h: Same.
18619 * tree-ssa-structalias.c (condense_visit): Same.
18620 (label_visit): Same.
18621 (dump_pred_graph): Same.
18622 (perform_var_substitution): Same.
18623 (move_complex_constraints): Same.
18624 (remove_preds_and_fake_succs): Same.
18625 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18626 (determine_bb_domination_status): Same.
18627 (duplicate_thread_path): Same.
18628 (thread_through_all_blocks): Same.
18629 * tree-ssa-threadupdate.h: Same.
18630 * tree-streamer-in.c (streamer_read_string_cst): Same.
18631 (input_identifier): Same.
18632 (unpack_ts_type_common_value_fields): Same.
18633 (unpack_ts_block_value_fields): Same.
18634 (unpack_ts_translation_unit_decl_value_fields): Same.
18635 (unpack_ts_omp_clause_value_fields): Same.
18636 (streamer_read_tree_bitfields): Same.
18637 (streamer_alloc_tree): Same.
18638 (lto_input_ts_common_tree_pointers): Same.
18639 (lto_input_ts_vector_tree_pointers): Same.
18640 (lto_input_ts_poly_tree_pointers): Same.
18641 (lto_input_ts_complex_tree_pointers): Same.
18642 (lto_input_ts_decl_minimal_tree_pointers): Same.
18643 (lto_input_ts_decl_common_tree_pointers): Same.
18644 (lto_input_ts_decl_non_common_tree_pointers): Same.
18645 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18646 (lto_input_ts_field_decl_tree_pointers): Same.
18647 (lto_input_ts_function_decl_tree_pointers): Same.
18648 (lto_input_ts_type_common_tree_pointers): Same.
18649 (lto_input_ts_type_non_common_tree_pointers): Same.
18650 (lto_input_ts_list_tree_pointers): Same.
18651 (lto_input_ts_vec_tree_pointers): Same.
18652 (lto_input_ts_exp_tree_pointers): Same.
18653 (lto_input_ts_block_tree_pointers): Same.
18654 (lto_input_ts_binfo_tree_pointers): Same.
18655 (lto_input_ts_constructor_tree_pointers): Same.
18656 (lto_input_ts_omp_clause_tree_pointers): Same.
18657 (streamer_read_tree_body): Same.
18658 * tree-streamer.h: Same.
18659 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18660 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18661 (vect_analyze_possibly_independent_ddr): Same.
18662 (vect_analyze_data_ref_dependence): Same.
18663 (vect_compute_data_ref_alignment): Same.
18664 (vect_enhance_data_refs_alignment): Same.
18665 (vect_analyze_data_ref_access): Same.
18666 (vect_check_gather_scatter): Same.
18667 (vect_find_stmt_data_reference): Same.
18668 (vect_create_addr_base_for_vector_ref): Same.
18669 (vect_setup_realignment): Same.
18670 (vect_supportable_dr_alignment): Same.
18671 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18672 (adjust_phi_and_debug_stmts): Same.
18673 (vect_set_loop_mask): Same.
18674 (add_preheader_seq): Same.
18675 (vect_maybe_permute_loop_masks): Same.
18676 (vect_set_loop_masks_directly): Same.
18677 (vect_set_loop_condition_masked): Same.
18678 (vect_set_loop_condition_unmasked): Same.
18679 (slpeel_duplicate_current_defs_from_edges): Same.
18680 (slpeel_add_loop_guard): Same.
18681 (slpeel_can_duplicate_loop_p): Same.
18682 (create_lcssa_for_virtual_phi): Same.
18684 (vect_update_ivs_after_vectorizer): Same.
18685 (vect_gen_vector_loop_niters_mult_vf): Same.
18686 (slpeel_update_phi_nodes_for_loops): Same.
18687 (slpeel_update_phi_nodes_for_guard1): Same.
18688 (find_guard_arg): Same.
18689 (slpeel_update_phi_nodes_for_guard2): Same.
18690 (slpeel_update_phi_nodes_for_lcssa): Same.
18691 (vect_do_peeling): Same.
18692 (vect_create_cond_for_alias_checks): Same.
18693 (vect_loop_versioning): Same.
18694 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18695 (vect_inner_phi_in_double_reduction_p): Same.
18696 (vect_analyze_scalar_cycles_1): Same.
18697 (vect_fixup_scalar_cycles_with_patterns): Same.
18698 (vect_get_loop_niters): Same.
18699 (bb_in_loop_p): Same.
18700 (vect_get_max_nscalars_per_iter): Same.
18701 (vect_verify_full_masking): Same.
18702 (vect_compute_single_scalar_iteration_cost): Same.
18703 (vect_analyze_loop_form_1): Same.
18704 (vect_analyze_loop_form): Same.
18705 (vect_active_double_reduction_p): Same.
18706 (vect_analyze_loop_operations): Same.
18707 (neutral_op_for_slp_reduction): Same.
18708 (vect_is_simple_reduction): Same.
18709 (vect_model_reduction_cost): Same.
18710 (get_initial_def_for_reduction): Same.
18711 (get_initial_defs_for_reduction): Same.
18712 (vect_create_epilog_for_reduction): Same.
18713 (vectorize_fold_left_reduction): Same.
18714 (vectorizable_reduction): Same.
18715 (vectorizable_induction): Same.
18716 (vectorizable_live_operation): Same.
18717 (loop_niters_no_overflow): Same.
18718 (vect_get_loop_mask): Same.
18719 (vect_transform_loop_stmt): Same.
18720 (vect_transform_loop): Same.
18721 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18722 (vect_determine_precisions): Same.
18723 (vect_pattern_recog_1): Same.
18724 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18725 * tree-vect-stmts.c (stmt_vectype): Same.
18726 (process_use): Same.
18727 (vect_init_vector_1): Same.
18728 (vect_truncate_gather_scatter_offset): Same.
18729 (get_group_load_store_type): Same.
18730 (vect_build_gather_load_calls): Same.
18731 (vect_get_strided_load_store_ops): Same.
18732 (vectorizable_simd_clone_call): Same.
18733 (vectorizable_store): Same.
18734 (permute_vec_elements): Same.
18735 (vectorizable_load): Same.
18736 (vect_transform_stmt): Same.
18737 (supportable_widening_operation): Same.
18738 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18739 (vec_info::free_stmt_vec_info): Same.
18740 (vect_free_loop_info_assumptions): Same.
18741 (vect_loop_vectorized_call): Same.
18742 (set_uid_loop_bbs): Same.
18743 (vectorize_loops): Same.
18744 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18745 * tree.c (add_tree_to_fld_list): Same.
18746 (fld_type_variant_equal_p): Same.
18747 (fld_decl_context): Same.
18748 (fld_incomplete_type_of): Same.
18749 (free_lang_data_in_binfo): Same.
18750 (need_assembler_name_p): Same.
18751 (find_decls_types_r): Same.
18752 (get_eh_types_for_runtime): Same.
18753 (find_decls_types_in_eh_region): Same.
18754 (find_decls_types_in_node): Same.
18755 (assign_assembler_name_if_needed): Same.
18756 * value-prof.c (stream_out_histogram_value): Same.
18757 * value-prof.h: Same.
18758 * var-tracking.c (use_narrower_mode): Same.
18759 (prepare_call_arguments): Same.
18760 (vt_expand_loc_callback): Same.
18761 (resolve_expansions_pending_recursion): Same.
18762 (vt_expand_loc): Same.
18763 * varasm.c (const_hash_1): Same.
18764 (compare_constant): Same.
18765 (tree_output_constant_def): Same.
18766 (simplify_subtraction): Same.
18767 (get_pool_constant): Same.
18768 (output_constant_pool_2): Same.
18769 (output_constant_pool_1): Same.
18770 (mark_constants_in_pattern): Same.
18771 (mark_constant_pool): Same.
18772 (get_section_anchor): Same.
18773 * vr-values.c (compare_range_with_value): Same.
18774 (vr_values::extract_range_from_phi_node): Same.
18775 * vr-values.h: Same.
18776 * web.c (unionfind_union): Same.
18777 * wide-int.h: Same.
18779 2019-07-09 Martin Sebor <msebor@redhat.com>
18782 * align.h: Change class-key from class to struct and vice versa
18783 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18784 * alloc-pool.h: Same.
18785 * asan.c (shadow_mem_size): Same.
18786 * auto-profile.c: Same.
18787 * basic-block.h: Same.
18789 * cfgexpand.c (set_rtl): Same.
18790 (expand_one_stack_var_at): Same.
18791 * cfghooks.h: Same.
18794 * config/i386/i386.h: Same.
18795 * df-problems.c (df_print_bb_index): Same.
18797 * df.h (df_single_use): Same.
18798 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18799 (layout::annotation_line_showed_range_p): Same.
18800 (get_printed_columns): Same.
18801 (correction::ensure_terminated): Same.
18802 (line_corrections::~line_corrections): Same.
18805 * dump-context.h: Same.
18806 * dumpfile.h: Same.
18807 * dwarf2out.c: Same.
18808 * edit-context.c: Same.
18809 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18811 * function.c (assign_stack_local): Same.
18812 * function.h: Same.
18814 * gcov.c (block_info::block_info): Same.
18815 * genattrtab.c: Same.
18816 * genextract.c: Same.
18817 * genmatch.c (comparison_code_p): Same.
18818 (id_base::id_base): Same.
18819 (decision_tree::print): Same.
18820 * genoutput.c: Same.
18821 * genpreds.c (write_one_predicate_function): Same.
18822 * genrecog.c (validate_pattern): Same.
18823 (find_operand_positions): Same.
18824 (optimize_subroutine_group): Same.
18825 (merge_pattern_transition::merge_pattern_transition): Same.
18826 (merge_pattern_info::merge_pattern_info): Same.
18827 (merge_state_result::merge_state_result): Same.
18828 (merge_into_state): Same.
18829 * gensupport.c: Same.
18830 * gensupport.h: Same.
18831 * ggc-common.c (init_ggc_heuristics): Same.
18832 * ggc-tests.c (test_union): Same.
18833 * gimple-loop-interchange.cc (dump_induction): Same.
18834 * gimple-loop-versioning.cc: Same.
18835 * gimple-match.h (gimple_match_cond::any_else): Same.
18836 * gimple-ssa-backprop.c: Same.
18837 * gimple-ssa-sprintf.c: Same.
18838 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18840 (store_immediate_info::store_immediate_info): Same.
18841 (merged_store_group::apply_stores): Same.
18842 (get_location_for_stmts): Same.
18843 * gimple-ssa-strength-reduction.c: Same.
18844 * gimple-ssa-warn-alloca.c: Same.
18845 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18846 * godump.c (go_type_decl): Same.
18847 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18848 * hash-map.h: Same.
18849 * hash-set-tests.c (test_set_of_strings): Same.
18850 * hsa-brig.c: Same.
18851 * hsa-common.h: Same.
18852 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18853 * input.c (assert_loceq): Same.
18856 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18857 * ipa-fnsummary.h: Same.
18858 * ipa-inline.h: Same.
18859 * ipa-prop.h: Same.
18860 * ipa-split.c (visit_bb): Same.
18861 * ira-int.h (minmax_set_iter_next): Same.
18862 * loop-invariant.c: Same.
18864 * lra-eliminations.c: Same.
18866 * lra-lives.c (mark_regno_dead): Same.
18867 * lra-remat.c: Same.
18868 * lra-spills.c: Same.
18869 * lto-streamer.h: Same.
18870 * mem-stats.h: Same.
18871 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18872 * omp-low.c (omp_clause_aligned_alignment): Same.
18873 * optabs-query.h (get_vcond_eq_icode): Same.
18875 * opts.c (wrap_help): Same.
18876 * poly-int.h: Same.
18877 * predict.c (predict_paths_leading_to_edge): Same.
18878 * pretty-print.h: Same.
18879 * profile-count.h: Same.
18881 * read-rtl-function.c: Same.
18884 * regrename.c: Same.
18885 * regrename.h: Same.
18887 * rtl-iter.h: Same.
18888 * rtl.h (costs_add_n_insns): Same.
18890 * sched-int.h: Same.
18891 * sel-sched-ir.h: Same.
18892 * selftest.h: Same.
18893 * sese.h (vec_find): Same.
18895 * target-globals.h: Same.
18896 * tree-affine.c (aff_combination_find_elt): Same.
18897 * tree-affine.h: Same.
18898 * tree-data-ref.h: Same.
18899 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18900 * tree-predcom.c: Same.
18901 * tree-scalar-evolution.c (find_var_scev_info): Same.
18902 * tree-ssa-alias.h: Same.
18903 * tree-ssa-ccp.c: Same.
18904 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18905 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18906 (rewrite_mem_refs): Same.
18907 (execute_sm_if_changed): Same.
18908 (hoist_memory_references): Same.
18909 * tree-ssa-loop-ivopts.c (operator<=): Same.
18910 * tree-ssa-loop.h: Same.
18911 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18912 * tree-ssa-structalias.c: Same.
18913 * tree-switch-conversion.h (cluster::cluster): Same.
18914 (simple_cluster::simple_cluster): Same.
18915 * tree-vect-patterns.c (type_conversion_p): Same.
18916 * tree-vectorizer.c (dump_stmt_cost): Same.
18917 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18918 * tree.c (protected_set_expr_location): Same.
18919 * tree.h (desired_pro_or_demotion_p): Same.
18920 (fndecl_built_in_p): Same.
18921 * unique-ptr-tests.cc: Same.
18922 * var-tracking.c (delete_variable_part): Same.
18923 * varasm.c (assemble_real): Same.
18924 (tree_output_constant_def): Same.
18926 * wide-int-bitmask.h: Same.
18927 * wide-int.h (decompose): Same.
18929 2019-07-09 Richard Biener <rguenther@suse.de>
18931 PR tree-optimization/91114
18932 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18933 find a vector type isn't fatal.
18935 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18937 * config/aarch64/aarch64-simd.md
18938 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18939 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18940 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18941 (*aarch64_crypto_aese_fused,
18942 *aarch64_crypto_aesd_fused): Update to new definition.
18943 * config/aarch64/aarch64.c
18944 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18946 2019-07-09 Richard Biener <rguenther@suse.de>
18948 * gimple-match.h (gimple_match_op::resimplify): New.
18949 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18950 gimple_resimplify4, gimple_resimplify5): Remove.
18951 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18952 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18954 (gimple_match_op::resimplify): New.
18955 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18956 according to availability. Use gimple_match_op::resimplify.
18958 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18960 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18962 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18964 * config/arm/crypto.md:
18965 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18966 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18967 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18968 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18970 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18971 * config/arm/aarch-common-protos.h
18972 (aarch_crypto_can_dual_issue): Remove.
18973 * config/arm/aarch-common.c
18974 (aarch_crypto_can_dual_issue): Likewise.
18975 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18976 * config/arm/cortex-a53.md: Likewise.
18977 * config/arm/cortex-a57.md: Likewise.
18978 * config/arm/iterators.md:
18979 (CRYPTO_BINARY): Redefine.
18980 (CRYPTO_UNARY): Removed.
18981 (CRYPTO_AES, CRYPTO_AESMC): New.
18983 2019-07-09 Richard Biener <rguenther@suse.de>
18985 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18986 (vn_reference_lookup_3): If the main ref has no access path recorded
18987 but orig_ref has use it to do access-path based disambiguation.
18988 (vn_reference_lookup_pieces): Adjust.
18989 (vn_reference_lookup): Pass down original ref if we valueized.
18991 2019-07-09 Martin Liska <mliska@suse.cz>
18993 * doc/extend.texi: Document influence on loop
18996 2019-07-09 Martin Liska <mliska@suse.cz>
18998 * lto-compress.c (lto_normalized_zstd_level): Do not use
18999 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
19000 of libzstd. One can use 0 as a default compression level.
19002 2019-07-09 Martin Liska <mliska@suse.cz>
19004 * doc/invoke.texi: Add link from -fprofile-dir option.
19005 Use better wording for 'gcno filename'.
19007 2019-07-08 Martin Sebor <msebor@redhat.com>
19009 PR middle-end/71924
19010 PR middle-end/90549
19011 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
19013 (args_loc_t): New type.
19014 (args_loc_t, locmap_t): same.
19015 (diag_returned_locals): New function.
19016 (is_addr_local): Same.
19017 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
19018 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
19019 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
19021 2019-07-08 Jakub Jelinek <jakub@redhat.com>
19023 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
19024 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
19025 and casts in offset when different, both through gimple stmts
19026 and through trees. Rewritten using loops to minimize code duplication
19029 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
19031 * emit-rtl.c (set_insn_locations): New function moved from...
19032 * function.c (set_insn_locations): ...here.
19033 * ira-emit.c (emit_moves): Propagate location of the first instruction
19034 to the inserted move instructions.
19035 * reg-stack.c (compensate_edge): Set the location if the sequence is
19036 inserted on the edge.
19037 * rtl.h (set_insn_locations): Declare.
19039 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19041 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
19042 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
19045 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19047 PR rtl-optimization/88233
19048 * common.opt (fsplit-wide-types-early): New option.
19049 * common/config/rs6000/rs6000-common.c
19050 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
19052 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
19053 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
19054 flag_split_wide_types_early.
19055 (pass_data_lower_subreg3): New.
19056 (pass_lower_subreg3): New.
19057 (make_pass_lower_subreg3): New.
19058 * passes.def (pass_lower_subreg2): Move after the loop passes.
19059 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19060 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19061 the pass pipeline; its previous place is taken by ...
19062 (make_pass_lower_subreg3): ... this.
19064 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19066 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19067 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19069 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19071 * config/s390/constraints.md: Add new jsc constraint.
19072 * config/s390/predicates.md: New predicates.
19073 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19074 * config/s390/s390.c (s390_valid_shift_count): New function.
19075 (print_shift_count_operand): Use s390_valid_shift_count.
19076 (print_operand): Likewise.
19077 * config/s390/s390.md: Use new predicate.
19078 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19079 * config/s390/vector.md: Use new predicate.
19081 2019-07-08 Andrew Waterman <andrew@sifive.com>
19082 Jim Wilson <jimw@sifive.com>
19084 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19085 bitsize instead of BITS_PER_WORD.
19087 2019-07-08 Martin Liska <mliska@suse.cz>
19089 * collect2.c (defined): Revert to before r254460.
19090 (scan_prog_file): Revert to before r254460.
19092 2019-07-08 Richard Biener <rguenther@suse.de>
19094 PR tree-optimization/83518
19095 * tree-ssa-sccvn.c: Include splay-tree.h.
19096 (struct pd_range, struct pd_data): New.
19097 (struct vn_walk_cb_data): Add data to track partial definitions.
19098 (vn_walk_cb_data::~vn_walk_cb_data): New.
19099 (vn_walk_cb_data::push_partial_def): New.
19100 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19101 (vn_reference_lookup_2): When partial defs are registered give up.
19102 (vn_reference_lookup_3): Track partial defs for memset and
19103 constructor zeroing and for defs from constants.
19105 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19107 * doc/install.texi (bootstrap-Og): Document.
19109 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19111 * config/riscv/pic.md (*local_pic_load_s<mode>)
19112 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19113 referenced by <mode>, giving...
19114 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19115 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19116 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19117 use <X:MODE> for the mode attribute.
19119 2019-07-07 Jeff Law <law@redhat.com>
19121 PR tree-optimization/91090
19122 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19123 in handling of ranges to simplify switch statements.
19125 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19127 * config/darwin.c (darwin_override_options): Make a final check on PIC
19130 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19132 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19133 on for kernel code.
19135 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19138 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19139 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19140 instead of matching them to "l" output operands.
19142 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19144 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19145 and check whether addr.reg is nonnull before using it.
19147 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19149 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19150 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19151 variable(s). For conditional lastprivate look through outer
19152 GIMPLE_OMP_SCAN context.
19153 (lower_omp_1): For conditional lastprivate look through outer
19154 GIMPLE_OMP_SCAN context.
19156 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19157 member to combined_into_simd_safelen1.
19158 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19159 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19160 clauses if ctx->combined_into_simd_safelen1 put statements after the
19161 predicate conditionalized block rather than into it.
19163 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19165 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19167 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19168 Make the choice of <mode> explicit, giving...
19169 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19171 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19173 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19174 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19176 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19177 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19178 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19179 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19180 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19181 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19182 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19183 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19184 (*avx512f_scatterdi<mode>): Likewise.
19185 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19187 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19189 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19190 specify the mode iterator referenced by <mode>, giving...
19191 (*push1_h8300hs_<QHI:mode>): ...this.
19193 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19195 * config/gcn/gcn-valu.md
19196 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19197 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19198 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19199 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19200 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19201 but using the _exec comparison patterns.
19202 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19203 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19204 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19205 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19206 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19207 but using the _exec comparison patterns.
19209 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19211 * config/arm/sync.md
19212 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19213 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19214 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19215 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19216 <SIDI:cas_cmp_str>.
19218 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19220 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19221 (maybe_lookup_ctx): Add forward declaration.
19222 (omp_find_scan): Likewise. Walk into body of simd if composited
19223 with worksharing loop.
19224 (scan_omp_simd_scan): New function.
19225 (scan_omp_1_stmt): Call it.
19226 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19227 ctx->for_simd_scan_phase.
19228 (lower_rec_input_clauses): Do much less work for inscan reductions
19229 in ctx->for_simd_scan_phase is_simd regions.
19230 (lower_omp_scan): Set is_simd also on simd constructs composited
19231 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19232 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19233 emit their body after in simd constructs composited with worksharing
19235 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19237 * omp-low.c (omp_find_scan): Make static.
19238 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19239 the second loop, var2 represents the first partial sum and so needs
19240 to go before rprivb[ivar].
19242 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19244 * config/rs6000/rs6000-logue.c: Remove unused code.
19246 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19248 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19250 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19253 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19254 check with a frame laid out check.
19256 2019-07-05 Richard Biener <rguenther@suse.de>
19258 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
19259 when comparing against a store with possibly the same value.
19261 2019-07-05 Richard Biener <rguenther@suse.de>
19263 PR tree-optimization/91091
19264 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
19265 (walk_non_aliased_vuses): Likewise.
19266 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
19267 (get_continuation_for_phi): New tbaa_p parameter and pass
19269 (walk_non_aliased_vuses): Likewise.
19270 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
19271 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
19272 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
19274 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
19275 (adjust_offsets_for_equal_base_address): New function.
19276 (vn_reference_lookup_3): Use it to catch more base equivalences.
19277 Handle and pass down tbaa_p flag.
19278 (vn_reference_lookup_pieces): Adjust.
19279 (vn_reference_lookup): Remove alias-set altering, instead pass
19280 down false as tbaa_p.
19282 2019-07-05 Richard Biener <rguenther@suse.de>
19284 PR tree-optimization/91091
19285 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
19286 accesses can happen with -fno-strict-aliasing.
19288 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
19290 * tree-ssa-alias.c (alias_stats): Add
19291 nonoverlapping_component_refs_since_match_p_must_overlap.
19292 (dump_alias_stats): Print it.
19293 (nonoverlapping_component_refs_since_match_p): Add early exit.
19294 (nonoverlapping_component_refs_p): Do not account early exit.
19296 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19298 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
19299 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
19300 (emit_eh_dispatch): Delete.
19301 (lower_catch): Emit the eh_dispatch manually and set the location of
19302 the first catch statement onto it.
19303 (lower_eh_filter): Emit the eh_dispatch manually and set location.
19304 (lower_eh_dispatch): Propagate location.
19305 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
19306 (eliminate_build): Likewise.
19308 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19310 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
19311 phi nodes if possible.
19312 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
19313 location info on the newly created statement.
19314 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
19315 newly created increment if needed.
19317 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19319 PR middle-end/78884
19320 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
19321 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
19322 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
19323 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
19324 ctx->add_safelen1 is set.
19326 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
19327 GOMP_loop_start at the start of second worksharing loop in a scan.
19328 For nowait, don't emit GOMP_loop_end_nowait at the end of first
19329 worksharing loop in a scan even if there are conditional lastprivates,
19330 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
19332 2019-07-04 Jan Hubicka <jh@suse.cz>
19334 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
19335 Fix check for match in the ref walk.
19337 2019-07-04 Martin Liska <mliska@suse.cz>
19339 * tree-ssa-loop-niter.c
19340 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
19341 (estimate_numbers_of_iterations):
19342 Support __builtin_expect_with_probability for analysis
19343 of # of loop iterations.
19345 2019-07-04 Alexandre Oliva <oliva@adacore.com>
19347 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
19348 * except.c: Likewise.
19349 * expr.c (expand_expr_real_1): Reject it.
19350 * gimplify.c (gimplify_expr): Gimplify it, within
19352 * tree-dump.c (dequeue_and_dump): Dump it.
19353 * tree-pretty-print.c (dump_generic_node): Likewise.
19354 * tree.c (block_may_fallthru): Handle it.
19355 * tree.def (EH_ELSE_EXPR): Introduce it.
19356 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
19357 with GIMPLE_EH_ELSE as try/finally/else.
19359 2019-07-04 Richard Biener <rguenther@suse.de>
19362 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19363 parameter whether to disable GC collection.
19364 * passes.c (execute_one_ipa_transform_pass): Likewise, and
19366 (execute_all_ipa_transforms): Likewise and pass it down.
19367 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
19368 collection from applying IPA transforms.
19369 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
19370 from applying IPA transforms.
19372 2019-07-04 Richard Biener <rguenther@suse.de>
19374 PR tree-optimization/90911
19375 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
19376 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
19377 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19378 scalar_loop_scaling.
19379 (vect_transform_loop): Scale scalar loop profile if needed.
19380 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
19381 the loop copy from if-conversion adjust edge probabilities
19382 and scale the vectorized loop body profile, queue the scalar
19383 profile for updating after peeling.
19385 2019-07-04 Jan Hubicka <jh@suse.cz>
19387 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
19388 parameters; return early for must-alias.
19389 (indirect_ref_may_alias_decl_p): Likewise; when establishing
19390 outer types match, try nonoverlapping_component_refs
19391 if must-alias is not obvious.
19392 (indirect_refs_may_alias_p): Likewise.
19393 (refs_may_alias_p_2): Likewise.
19395 2019-07-04 Richard Biener <rguenther@suse.de>
19397 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
19399 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
19401 (struct vn_walk_cb_data): New callback data struct.
19402 (vn_reference_lookup_2): Adjust.
19403 (vn_reference_lookup_3): Likewise.
19404 (vn_reference_lookup_pieces): Likewise.
19405 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
19406 (visit_reference_op_load): Adjust.
19408 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19410 PR tree-optimization/91063
19411 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
19412 stmt from stmts sequence before calling vect_init_vector_1.
19415 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19418 * fwprop.c (reg_single_def_p): New function.
19419 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
19420 (forward_propagate_into): New parameter reg_prop_only
19421 with default value false.
19422 Propagate def's src into loop only if SET_SRC and SET_DEST
19423 of def_set have single definitions.
19424 Likewise if reg_prop_only is set to true.
19425 (fwprop): New param fwprop_addr_p.
19426 Integrate fwprop_addr into fwprop.
19427 (fwprop_addr): Remove.
19428 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19430 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19431 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19432 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19434 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19436 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19437 in worksharing loop scans.
19439 PR tree-optimization/91074
19440 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19443 PR rtl-optimization/90756
19444 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19447 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19449 * config/aarch64/aarch64.md: Remove redundant constraints from
19450 define_expand but keep some patterns untouched if they are
19451 specially selected by TARGET_SECONDARY_RELOAD hook.
19452 * config/aarch64/aarch64-sve.md: Likewise.
19453 * config/aarch64/atomics.md: Remove redundant constraints from
19455 * config/aarch64/aarch64-simd.md: Likewise.
19457 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19459 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19460 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19461 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19463 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19466 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19468 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19469 (STARTFILE_SPEC): Split crt3 into a separate spec.
19470 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19471 (DARWIN_CRT2_SPEC): New.
19472 (DARWIN_CRT3_SPEC): New.
19473 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
19474 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
19475 (DARWIN_CRT3_SPEC): New.
19477 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
19479 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
19480 Change the RTL attribute "length" from "4" to "*" to allow the
19481 length attribute to be adjusted automatically for prefixed load,
19482 store, and add immediate instructions.
19483 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
19485 (extendsi<mode>2, EXTSI iterator): Likewise.
19486 (movsi_internal1): Likewise.
19487 (movsi_from_sf): Likewise.
19488 (movdi_from_sf_zero_ext): Likewise.
19489 (mov<mode>_internal): Likewise.
19490 (movcc_internal1, QHI iterator): Likewise.
19491 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
19492 (movsf_from_si): Likewise.
19493 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
19494 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19495 (mov<mode>, FMOVE128 iterator): Likewise.
19496 (movdi_internal64): Likewise.
19497 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
19499 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
19500 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
19501 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
19502 (vsx_splat_v4sf): Likewise.
19504 2019-07-03 Mark Wielaard <mark@klomp.org>
19507 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
19508 DW_AT_addr_base if there is actually a .debug_addr section with
19510 (output_addr_table): Add DWARF5 table header generation here after
19511 checking there are actually any addresses from...
19512 (dwarf2out_finish): ...here.
19514 2019-07-03 Richard Biener <rguenther@suse.de>
19516 PR middle-end/91069
19517 * match.pd (vec_perm -> bit_insert): Fix element read from
19520 2019-07-03 Martin Liska <mliska@suse.cz>
19522 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
19523 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
19525 * generic-match-head.c: Include dbgcnt.h.
19526 * gimple-match-head.c: Likewise.
19528 2019-07-03 Martin Liska <mliska@suse.cz>
19530 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
19531 (GCOV_COUNTER_V_TOPN): New.
19532 (GCOV_COUNTER_V_INDIR): Use _topn.
19533 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
19534 (GCOV_TOPN_VALUES): New.
19535 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
19536 (GCOV_TOPN_VALUES_COUNTERS): New.
19537 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
19539 (gimple_init_gcov_profiler): Rename variables from one_value
19541 (gimple_gen_one_value_profiler): Remove.
19542 (gimple_gen_topn_values_profiler): New function.
19543 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
19544 names instead of SINGLE_VALUE.
19545 (stream_out_histogram_value): Likewise.
19546 (stream_in_histogram_value): Likewise.
19547 (get_most_common_single_value): Likewise.
19548 (gimple_divmod_fixed_value_transform): Likewise.
19549 (gimple_stringops_transform): Likewise.
19550 (gimple_divmod_values_to_profile): Likewise.
19551 (gimple_stringops_values_to_profile): Likewise.
19552 (gimple_find_values_to_profile): Likewise.
19553 * value-prof.h (enum hist_type): Rename to TOPN.
19554 (gimple_gen_one_value_profiler): Remove.
19555 (gimple_gen_topn_values_profiler): New.
19557 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
19559 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
19560 if it has the DW_AT_data_member_location attribute.
19562 2019-07-03 Richard Biener <rguenther@suse.de>
19564 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
19567 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
19569 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
19570 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
19571 (tlsdesc_small_sve_<mode>): Likewise.
19573 2019-07-03 Martin Liska <mliska@suse.cz>
19575 * Makefile.in: Define ZSTD_LIB.
19576 * common.opt: Adjust compression level
19577 to support also zstd levels.
19578 * config.in: Regenerate.
19579 * configure: Likewise.
19580 * configure.ac: Add --with-zstd and --with-zstd-include options
19582 * doc/install.texi: Mention zstd dependency.
19583 * gcc.c: Print supported LTO compression algorithms.
19584 * lto-compress.c (lto_normalized_zstd_level): Likewise.
19585 (lto_compression_zstd): Likewise.
19586 (lto_uncompression_zstd): Likewise.
19587 (lto_end_compression): Dispatch in between zlib and zstd.
19588 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
19589 (lto_uncompression_zlib): Make it static.
19590 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
19591 * lto-section-in.c (lto_get_section_data): Pass info
19592 about used compression.
19593 * lto-streamer-out.c: By default use zstd when possible.
19594 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
19595 (TV_IPA_LTO_COMPRESS): Likewise for compression.
19597 2019-07-03 Martin Liska <mliska@suse.cz>
19599 * lto-section-in.c (lto_get_section_data): Add "lto" section.
19600 * lto-section-out.c (lto_destroy_simple_output_block): Never
19601 compress LTO_section_lto section.
19602 * lto-streamer-out.c (produce_asm): Do not set major_version
19604 (lto_output_toplevel_asms): Likewise.
19605 (produce_lto_section): New function.
19606 (lto_output): Call produce_lto_section.
19607 (lto_write_mode_table): Do not set major_version and
19609 (produce_asm_for_decls): Likewise.
19610 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19612 (struct lto_header): Remove.
19613 (struct lto_section): New struct.
19614 (struct lto_simple_header): Do not inherit from lto_header.
19615 (struct lto_file_decl_data): Add lto_section_header field.
19617 2019-07-03 Martin Liska <mliska@suse.cz>
19619 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19621 * reg-stack.c (check_asm_stack_operands): Likewise.
19622 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19623 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19624 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19625 force_expand_binop.
19627 2019-07-03 Martin Liska <mliska@suse.cz>
19629 PR tree-optimization/90892
19630 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19631 in string constants.
19633 2019-07-03 Martin Liska <mliska@suse.cz>
19635 PR middle-end/90899
19636 * multiple_target.c (create_dispatcher_calls): Add to comdat
19637 group only if set for ifunc.
19639 2019-07-03 Martin Liska <mliska@suse.cz>
19642 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19643 Define local_object_name in outer scope in order to handle
19644 use-after-scope issue.
19646 2019-07-03 Martin Liska <mliska@suse.cz>
19648 * common.opt: Add fprofile-note.
19649 * coverage.c (coverage_init): Append the option
19651 * doc/invoke.texi: Document -fprofile-note.
19653 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19655 PR tree-optimization/91033
19656 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19657 vect_analyze_data_refs): Add bool * arguments.
19658 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19659 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19660 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19661 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19662 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19663 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19664 vect_analyze_data_refs caller.
19666 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19668 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19669 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19670 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19671 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19672 OMP_CLAUSE__SCANTEMP_ entry.
19673 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19674 * tree-pretty-print.c (dump_omp_clause): Likewise.
19675 * tree-nested.c (convert_nonlocal_omp_clauses,
19676 convert_local_omp_clauses): Likewise.
19677 * omp-general.h (struct omp_for_data): Add have_scantemp and
19678 have_nonctrl_scantemp members.
19679 * omp-general.c (omp_extract_for_data): Initialize them.
19680 * omp-low.c (struct omp_context): Add scan_exclusive member.
19681 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19682 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19683 ctx->scan_exclusive.
19684 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19685 of !ctx->scan_inclusive.
19686 (lower_rec_input_clauses): Simplify gimplification of dtors using
19687 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19688 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19689 loops. Don't add barrier for reduction_omp_orig_ref if
19690 ctx->scan_??xclusive.
19691 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19692 (lower_omp_scan): Use ctx->scan_exclusive instead
19693 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19694 reductions. Use new_vard != new_var instead of repeated
19695 omp_is_reference calls.
19696 (omp_find_scan, lower_omp_for_scan): New functions.
19697 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19699 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19700 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19701 and fd->have_scantemp.
19703 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19704 on worksharing loop propagate it as shared clause to containing
19707 * omp-expand.c (expand_omp_for_static_nochunk,
19708 expand_omp_for_static_chunk): For nowait worksharing loop with
19709 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19712 2019-07-02 qing zhao <qing.zhao@oracle.com>
19714 PR preprocessor/90581
19715 * doc/cppopts.texi: Add document for -fmax-include-depth.
19716 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19718 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19720 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19721 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19722 (mmx_packssdw): Ditto.
19723 (mmx_punpckhbw): Ditto.
19724 (mmx_punpcklbw): Ditto.
19725 (mmx_punpckhwd): Ditto.
19726 (mmx_punpcklwd): Ditto.
19727 (mmx_punpckhdq): Ditto.
19728 (mmx_punpckldq): Ditto.
19729 (*vec_dupv4hi): Ditto.
19730 (*vec_dupv2si): Ditto.
19731 (mmx_pmovmskb): Ditto.
19732 * config/i386/sse.md (sse_cvtpi2ps): Use
19733 TARGET_SSE2 && SSE_REG_P in split condition.
19734 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19735 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19736 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19737 (ssse3_pshufbv8qi3): Ditto.
19738 (ssse3_palignrdi): Ditto.
19740 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19742 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19743 with inlined save and restore.
19745 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19747 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19748 to be inserted on single successor edge of the entry block. Then call
19749 commit_edge_insertions instead of inserting the instructions manually.
19750 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19751 RTL expansion and rebuild jump labels chain.
19753 2019-07-02 Richard Biener <rguenther@suse.de>
19755 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19757 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19759 * tree.c (build_common_tree_nodes): Initialize them.
19760 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19761 Make declarations comments.
19762 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19763 chrec_known): Remove definitions.
19764 (initialize_scalar_evolutions_analyzer): Remove.
19765 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19766 * tree-streamer.c (preload_common_nodes): Do not preload
19767 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19769 2019-07-02 Jan Hubicka <jh@suse.cz>
19771 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19774 2019-07-02 Jan Hubicka <jh@suse.cz>
19776 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19778 (nonoverlapping_component_refs_since_match_p): ... this one;
19779 handle also non-decl bases; return -1 if search gave up.
19780 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19781 nonoverlapping_component_refs_of_decl_p_no_alias to
19782 nonoverlapping_component_refs_since_match_p_may_alias,
19783 nonoverlapping_component_refs_since_match_p_no_alias.
19784 (dump_alias_stats): Update dumping.
19785 (aliasing_matching_component_refs_p): Break out from ...;
19786 dispatch to nonoverlapping_component_refs_for_decl_p
19787 and nonoverlapping_component_refs_since_match_p.
19788 (aliasing_component_refs_p): ... here; call
19789 nonoverlapping_component_refs_p in scenarios where we can not
19790 precisely determine base match.
19791 (decl_refs_may_alias_p): Use
19792 nonoverlapping_component_refs_since_match_p.
19793 (indirect_ref_may_alias_decl_p): Do not call
19794 nonoverlapping_component_refs_p.
19795 (indirect_refs_may_alias_p): Likewise.
19797 2019-07-02 Jan Hubicka <jh@suse.cz>
19799 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19800 to clobber of return value.
19802 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19804 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19805 for is_neon_type instructions that have not already been categorized.
19807 2019-07-02 Richard Biener <rguenther@suse.de>
19809 PR tree-optimization/58483
19810 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19811 for MEM_REF base hashing.
19812 (equal_mem_array_ref_p): Likewise for base comparison.
19814 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19816 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19817 parameterized name.
19818 (signbit<mode>2): Use that name. Simplify.
19820 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19822 PR middle-end/66726
19823 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19824 Tune heuristic from PR71016 to allow MIN / MAX.
19826 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19828 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19829 parameterized name.
19830 (abs<mode>2): Use that name. Simplify.
19832 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19834 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19835 parameterized name.
19836 (neg<mode>2): Use that name. Simplify.
19838 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19840 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19842 (abs<mode>2): Use that name. Simplify.
19844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19846 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19848 (neg<mode>2): Use that name. Simplify.
19850 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19852 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19853 ("enabled" attribute): Handle sse_noavx isa attribute.
19854 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19855 Use TARGET_SSE && SSE_REGNO_P in split condition.
19856 (*vec_dupv2sf): Ditto.
19858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19860 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19862 (floatsi<mode>2): Use that name. Simplify.
19864 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19866 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19867 parameterized name.
19868 (extenddf<mode>2_vsx): Make this a parameterized name.
19869 (extenddf<mode>2): Use those names. Simplify.
19871 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19873 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19875 (eh_return): Use that name. Simplify.
19877 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19879 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19880 (doloop_end): Use that name. Simplify.
19882 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19884 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19885 parameterized name.
19886 (indirect_jump): Use that name. Simplify.
19888 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19890 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19891 parameterized name.
19892 (abs<mode>2): Use that name. Simplify.
19894 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19896 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19897 parameterized name.
19898 (fix_trunc<mode>si2): Use that name. Simplify.
19900 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19902 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19903 (allocate_stack): Use that name. Simplify.
19905 2019-07-01 Martin Sebor <msebor@redhat.com>
19907 PR middle-end/90923
19908 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19909 (hash_map::get_or_insert): Same. Reformat comment.
19910 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19911 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19912 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19913 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19914 (hash_table::hash_table (const hash_table&)): Use copy ctor
19915 instead of assignment to copy elements.
19917 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19918 John David Anglin <danglin@gcc.gnu.org>
19921 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19922 using saved frame pointer.
19924 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19926 PR middle-end/64242
19927 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19928 Add frame clobber and schedule blockage.
19930 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19932 * doc/invoke.texi (Link Options): Further editorial changes to
19933 -flinker-output docs.
19935 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19937 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19938 Load both operands of a PLUS into registers separately.
19940 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19942 * config/s390/vector.md: Fix shift count operand printing.
19944 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19946 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19948 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19950 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19951 Use recog_data to test for an output operand.
19953 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19955 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19956 exclude any others that are disparaged or that are bound to need
19958 (ira_get_dup_out_num): Expand comment.
19960 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19962 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19963 constraint string for each operand/alternative combo. Only handle
19964 '%' at the start of constraint strings, and look for it outside
19967 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19969 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19970 alternative_mask instead of HARD_REG_SET to represent a
19971 bitmask of alternatives.
19972 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19973 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19975 2019-07-01 Martin Liska <mliska@suse.cz>
19977 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19978 use () for a constructor call.
19979 (test_applying_fixits_line_out_of_range): Likewise.
19980 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19982 (free_page): Likewise.
19984 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19986 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19987 parameter names to match usage (no functional change).
19988 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19990 2019-07-01 Richard Biener <rguenther@suse.de>
19992 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19994 (pass_fre::execute): Honor it.
19995 * passes.def: Adjust pass_fre invocations to allow iterating,
19996 add non-iterating pass_fre before late threading/dom.
19998 2019-07-01 Richard Biener <rguenther@suse.de>
20000 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
20001 TARGET_MEM_REF handling to also handle address-taken ones.
20003 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
20005 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20006 hardware attributes): Document avx512vp2intersect.
20008 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20010 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
20011 (abs<mode>2): New expander.
20012 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
20013 Use CODE_FOR_ssse3_absv8qi2.
20014 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
20015 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
20017 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20019 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
20020 to sse, sse_noavx and avx. Update all uses.
20022 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20024 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
20025 (*mmx_<plusminus_insn><mode>3): Ditto.
20026 (*mmx_mulv4hi3"): Ditto.
20027 (*mmx_smulv4hi3_highpart): Ditto.
20028 (*mmx_umulv4hi3_highpart): Ditto.
20029 (*mmx_pmaddwd): Ditto.
20030 (*sse2_umulv1siv1di3): Ditto.
20031 (*mmx_<code>v4hi3): Ditto.
20032 (*mmx_<code>v8qi3): Ditto.
20033 (mmx_ashr<mode>3): Ditto.
20034 ("mmx_<shift_insn><mode>3): Ditto.
20035 (*mmx_eq<mode>3): Ditto.
20036 (mmx_gt<mode>3): Ditto.
20037 (mmx_andnot<mode>3): Ditto.
20038 (*mmx_<code><mode>3): Ditto.
20039 (*mmx_pinsrw): Ditto.
20040 (*mmx_pextrw): Ditto.
20041 (mmx_pshufw_1): Ditto.
20042 (*mmx_uavgv8qi3): Ditto.
20043 (*mmx_uavgv4hi3): Ditto.
20044 ("mmx_psadbw): Ditto.
20045 * config/i386/sse.md (sse_cvtps2pi): Ditto.
20046 (sse_cvttps2pi): Ditto.
20047 (ssse3_pmaddubsw): Ditto.
20048 (*ssse3_pmulhrswv4hi3): Ditto.
20049 (ssse3_psign<mode>3): Ditto.
20051 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
20053 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
20054 adjustment for bit-fields to all aggregate types.
20056 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
20058 * config/rs6000/predicates.md (pcrel_address): Use
20059 SYMBOL_REF_LOCAL_P to determine if a label is local.
20060 (pcrel_external_address): New predicate.
20061 (non_prefixed_mem_operand): Delete, predicate not used.
20062 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20063 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20065 (SYMBOL_REF_PCREL_P): Likewise.
20068 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20070 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20071 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20072 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20074 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20076 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20077 override on extra_headers.
20079 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20081 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20082 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20084 (darwin_driver_init): Likewise.
20086 2019-06-28 Jan Beulich <jbeulich@suse.com>
20088 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20089 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20090 Eliminate redundant alternative.
20092 2019-06-28 Jan Beulich <jbeulich@suse.com>
20094 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20095 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20096 Use vector_operand.
20098 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20100 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20101 having a lower cost regardless of the speed option.
20103 2019-06-28 Jan Beulich <jbeulich@suse.com>
20105 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20106 vector_operand plus, on both alternatives, "Bm" constraint.
20108 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20110 * config/arm/arm.md: Remove redundant constraints from
20111 define_expand but leave reload_inm and reload_outm patterns
20112 untouched since they need special constraints to work.
20113 * config/arm/arm-fixed.md: Remove redundant constraints from
20115 * config/arm/iwmmxt.md: Likewise.
20116 * config/arm/neon.md: Likewise.
20117 * config/arm/sync.md: Likewise.
20118 * config/arm/thumb1.md: Likewise.
20119 * config/arm/vec-common.md: Likewise.
20121 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20123 * doc/install.texi: Document --disable-tm-clone-registry.
20125 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20128 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20131 PR tree-optimization/91010
20132 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20133 return true. Otherwise, don't call operand_equal_p if offset1 or
20134 offset2 is NULL and just return false.
20136 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20138 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20139 user-specified float mode choice for kernel mode code.
20141 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20143 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20146 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20148 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20149 use longcall for 64b code.
20151 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20153 * builtins.c (get_memory_rtx): Fix comment.
20154 * optabs.def (movmem_optab): Change to cpymem_optab.
20155 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20156 (emit_block_move_hints): Change movmem to cpymem.
20157 * defaults.h: Change movmem to cpymem.
20158 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20159 (default_use_by_pieces_infrastructure_p): Ditto.
20160 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20161 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20163 * config/aarch64/aarch64.h: Change movmem to cpymem.
20164 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20165 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20166 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20168 * config/arc/arc-protos.h: Change movmem to cpymem.
20169 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20170 * config/arc/arc.h: Change movmem to cpymem in comment.
20171 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20172 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20173 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20174 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20175 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20176 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20177 * config/avr/avr-protos.h: Change movmem to cpymem.
20178 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20179 avr_out_movmem): Change movmem to cpymem.
20180 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20181 Change movmem to cpymem.
20182 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20183 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20184 Change movmem to cpymem.
20185 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20186 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20187 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20188 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20189 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20190 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20191 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20192 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20193 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20194 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20195 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20196 expand_small_cpymem_or_setmem,
20197 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20198 expand_set_or_cpymem_constant_prologue,
20199 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20200 * config/i386/i386-protos.h: Change movmem to cpymem.
20201 * config/i386/i386.h: Change movmem to cpymem in comment.
20202 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20203 (setmem<mode>): Change expansion function name.
20204 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20205 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20206 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20207 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20208 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20209 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20210 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20212 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20213 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20214 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20215 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20216 Change movmem to cpymem.
20217 * config/mips/mips.h: Change movmem to cpymem.
20218 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20219 * config/nds32/nds32-memory-manipulation.c
20220 (nds32_expand_movmemsi_loop_unknown_size,
20221 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20222 nds32_expand_movmemsi_unroll,
20223 nds32_expand_movmemsi): Change movmem to cpymem.
20224 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20225 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20226 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20227 (pa_adjust_insn_length): Change call to compute_movmem_length.
20228 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20229 movmemdi, movmemdi_prereload,
20230 movmemdi_postreload): Change movmem to cpymem.
20231 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20232 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20233 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20234 * config/riscv/riscv.h: Change movmem to cpymem.
20235 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20236 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20237 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20239 * config/s390/s390-protos.h: Change movmem to cpymem.
20240 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20241 s390_expand_insv): Change movmem to cpymem.
20242 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20243 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20244 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20245 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20246 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20247 for nonexistent function.
20248 * config/vax/vax.h: Change movmem to cpymem in comment.
20249 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20250 * config/visium/visium.h: Change movmem to cpymem in comment.
20251 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20252 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20253 * doc/md.texi: Change movmem to cpymem and update description to match.
20254 * doc/rtl.texi: Change movmem to cpymem.
20255 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20256 * doc/tm.texi: Regenerate.
20258 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
20260 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
20261 -fvariable-expansion-in-unroller by default.
20262 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
20265 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
20268 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20269 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20271 * config.gcc(rs6000-*-*): Define target_gtfiles.
20273 2019-06-27 Jan Hubicka <jh@suse.cz>
20275 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
20276 (add_type_duplicate): When odr hash is not allocated, to nothing.
20277 (odr_based_tbaa_p): New function.
20278 (set_type_canonical_for_odr_type): New function.
20279 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
20280 set_type_canonical_for_odr_type): New.
20281 * tree.c (gimple_canonical_types_compatible_p): ODR types with
20282 ODR based TBAA are not equivalent to non-ODR types.
20284 2019-06-27 Martin Liska <mliska@suse.cz>
20286 PR tree-optimization/90974
20287 PR rtl-optimization/90975
20288 PR rtl-optimization/90976
20290 PR tree-optimization/91017
20291 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
20293 * lra.c (lra_set_insn_recog_data): Remove a leftover from
20294 initial commit of IRA.
20295 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
20297 * tree-vect-loop.c (vect_create_epilog_for_reduction):
20298 Remove unused mode1.
20299 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
20302 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20305 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
20306 instead of register_operand for operands[1], add m to its constraints
20307 if operands[2] uses "C" constraint. Ensure in condition that if
20308 operands[2] is not 0, then operands[1] is not a MEM. For last two
20309 alternatives, use unaligned loads instead of aligned if operands[1] is
20310 misaligned_operand.
20312 2019-06-27 Martin Liska <mliska@suse.cz>
20314 * asan.c (asan_emit_allocas_unpoison): Remove obviously
20316 * bt-load.c (move_btr_def): Likewise.
20317 * builtins.c (expand_builtin_apply_args_1): Likewise.
20318 (expand_builtin_apply): Likewise.
20319 * cfgexpand.c (expand_asm_stmt): Likewise.
20320 (construct_init_block): Likewise.
20321 * cfghooks.c (verify_flow_info): Likewise.
20322 * cfgloopmanip.c (remove_path): Likewise.
20323 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
20324 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
20325 * combine.c (simplify_if_then_else): Likewise.
20326 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
20327 (choose_basereg): Likewise.
20328 (ix86_expand_prologue): Likewise.
20329 (ix86_preferred_output_reload_class): Likewise.
20330 * cselib.c (cselib_record_sets): Likewise.
20331 * df-scan.c (df_scan_alloc): Likewise.
20332 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
20333 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
20334 * emit-rtl.c (try_split): Likewise.
20335 * graphite-scop-detection.c (assign_parameter_index_in_region):
20337 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
20338 * ira-color.c (setup_profitable_hard_regs): Likewise.
20339 * ira.c (rtx_moveable_p): Likewise.
20340 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
20341 * read-rtl.c (read_subst_mapping): Likewise.
20342 * regrename.c (scan_rtx): Likewise.
20343 * reorg.c (fill_slots_from_thread): Likewise.
20344 * tree-inline.c (tree_function_versioning): Likewise.
20345 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
20346 * tree-ssa-sink.c (statement_sink_location): Likewise.
20347 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
20348 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
20349 (vect_create_epilog_for_reduction): Likewise.
20350 * tree.c (build_nonstandard_integer_type): Likewise.
20352 2019-06-27 Richard Biener <rguenther@suse.de>
20354 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
20356 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
20358 PR tree-optimization/89772
20359 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
20360 out-of-bound accesses checking.
20362 2019-06-27 Martin Liska <mliska@suse.cz>
20364 PR tree-optimization/91014
20365 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
20366 when LHS is NULL_TREE.
20368 2019-06-27 Martin Liska <mliska@suse.cz>
20370 * symbol-summary.h (traverse): Pass
20371 argument a to the call of callback.
20372 (gt_ggc_mx): Mark arguments as unused.
20373 (gt_pch_nx): Likewise.
20375 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
20378 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
20381 2019-06-26 Jeff Law <law@redhat.com>
20383 PR tree-optimization/90883
20384 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
20385 (delete_dead_or_redundant_assignment): Likewise.
20387 PR tree-optimization/90883
20388 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
20389 * tree-ssa-dse.c: Update various comments to distinguish between
20390 dead and redundant stores.
20391 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
20392 (dse_optimize_redundant_stores): New function.
20393 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
20394 Distinguish between dead and redundant calls in dump output. All
20396 (delete_dead_or_redundant_assignment): Similarly for assignments.
20397 (dse_optimize_stmt): Handle _CHK variants. For statements which
20398 store 0 into multiple memory locations, try to prove a subsequent
20399 store is redundant.
20401 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
20404 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
20405 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
20407 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20409 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
20410 (branch_islands): New extern.
20411 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
20412 * config/rs6000/rs6000.c: .. here.
20414 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20416 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
20417 (powerpc*-*-*) ... to here.
20419 2019-06-26 Jeff Law <law@redhat.com>
20421 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
20422 memcpy, memmove and memset builtins.
20423 (maybe_trim_memstar_call): Likewise.
20425 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20427 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20429 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20431 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20433 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20435 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20437 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20439 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20442 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20444 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20446 2019-06-26 Richard Biener <rguenther@suse.de>
20449 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20451 2019-06-26 Richard Biener <rguenther@suse.de>
20453 * lto-streamer.h (lto_bitmap_alloc): Remove.
20454 (lto_bitmap_free): Likewise.
20455 * lto-streamer.c (lto_bitmap_alloc): Remove.
20456 (lto_bitmap_free): Likewise.
20457 (lto_obstack): Likewise.
20458 (lto_obstack_initialized): Likewise.
20459 * lto-streamer-out.c (lto_output): Use own obstack for local
20460 bitmap, free it consistently.
20462 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20465 * config/i386/sse.md
20466 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20467 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20468 insns if operands[2] is misaligned_operand.
20470 2019-06-26 Li Jia He <helijia@linux.ibm.com>
20472 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
20474 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
20477 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20479 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
20481 2019-06-26 Martin Liska <mliska@suse.cz>
20483 PR tree-optimization/90973
20484 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
20485 epilogue_cost_vec instead of prologue_cost_vec for
20488 2019-06-26 Martin Liska <mliska@suse.cz>
20490 * bb-reorder.c (connect_better_edge_p): Add missing else
20491 statement in the middle of if-else statements.
20493 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
20494 H.J. Lu <hongjiu.lu@intel.com>
20495 Olga Makhotina <olga.makhotina@intel.com>
20497 * common/config/i386/i386-common.c
20498 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
20499 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
20500 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
20501 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
20502 (ix86_handle_option): Handle -mavx512vp2intersect.
20503 * config/i386/avx512vp2intersectintrin.h: New.
20504 * config/i386/avx512vp2intersectvlintrin.h: New.
20505 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
20506 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20507 AVX512VP2INTERSECT.
20508 * config/i386/i386-builtin-types.def: Add new types.
20509 * config/i386/i386-builtin.def: Add new builtins.
20510 * config/i386/i386-builtins.c: (enum processor_features): Add
20511 F_AVX512VP2INTERSECT.
20512 (static const _isa_names_table isa_names_table): Ditto.
20513 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20514 __AVX512VP2INTERSECT__.
20515 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
20516 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
20517 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
20518 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
20519 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
20520 * config/i386/i386-options.c (ix86_target_string): Add
20521 -mavx512vp2intersect.
20522 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
20523 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
20524 P2HImode and P2QImode.
20525 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
20526 number for P2QImode and P2HImode.
20527 (ix86_regmode_natural_size): New function.
20528 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
20529 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
20530 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
20531 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
20532 * config/i386/i386.opt: Add -mavx512vp2intersect.
20533 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
20534 avx512vp2intersectvlintrin.h.
20535 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
20536 (define_mode_iterator VI48_AVX512VP2VL): New.
20537 (avx512vp2intersect_2intersect<mode>,
20538 avx512vp2intersect_2intersectv16si): New define_insn patterns.
20539 * config.gcc: Add avx512vp2intersectvlintrin.h and
20540 avx512vp2intersectintrin.h to extra_headers.
20541 * doc/invoke.texi: Document -mavx512vp2intersect.
20543 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
20545 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
20547 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20549 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
20550 savres_routine_syms, savres_routine_name, morestack_ref,
20551 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20552 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20553 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20554 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20555 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20556 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20557 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20558 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20559 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20560 get_stack_clash_protection_probe_interval,
20561 get_stack_clash_protection_guard_size,
20562 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20563 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20564 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20565 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20566 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20567 gen_frame_mem_offset, rs6000_savres_routine_name,
20568 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20569 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20570 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20571 rs6000_global_entry_point_prologue_needed_p,
20572 rs6000_get_separate_components, rs6000_components_for_bb,
20573 rs6000_disqualify_components, rs6000_emit_prologue_components,
20574 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20575 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20576 rs6000_output_savres_externs, rs6000_output_function_prologue,
20577 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20578 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20579 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20580 rs6000_output_function_epilogue, gen_add3_const,
20581 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20582 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20584 (machine_function): Moved to rs6000.h.
20585 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
20587 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
20588 savres_routine_syms, savres_routine_name, morestack_ref,
20589 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20590 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20591 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20592 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20593 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20594 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20595 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20596 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20597 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20598 get_stack_clash_protection_probe_interval,
20599 get_stack_clash_protection_guard_size,
20600 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20601 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20602 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20603 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20604 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20605 gen_frame_mem_offset, rs6000_savres_routine_name,
20606 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20607 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20608 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20609 rs6000_global_entry_point_prologue_needed_p,
20610 rs6000_get_separate_components, rs6000_components_for_bb,
20611 rs6000_disqualify_components, rs6000_emit_prologue_components,
20612 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20613 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20614 rs6000_output_savres_externs, rs6000_output_function_prologue,
20615 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20616 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20617 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20618 rs6000_output_function_epilogue, gen_add3_const,
20619 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20620 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20621 to here from rs6000.c.
20622 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20623 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20624 quad_address_offset_p) Moved to here from rs6000.c.
20625 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20626 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20629 2019-06-25 Martin Liska <mliska@suse.cz>
20631 * hash-table.c (hashtab_chk_error): Move here from ...
20632 * hash-table.h (hashtab_chk_error): ... here.
20634 2019-06-25 Martin Liska <mliska@suse.cz>
20636 PR tree-optimization/90978
20637 * df-scan.c (df_update_entry_block_defs): Remove dead else
20639 (df_update_exit_block_uses): Likewise.
20641 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20642 Andrew Stubbs <ams@codesourcery.com>
20644 * config.gcc (thread_file): Set to gcn for AMD GCN.
20645 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20646 (TARGET_EMUTLS_VAR_INIT): New hook.
20648 2019-06-25 Martin Jambor <mjambor@suse.cz>
20651 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20653 2019-06-25 Richard Biener <rguenther@suse.de>
20655 PR tree-optimization/90930
20656 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20657 into parallel form in the last pass instance.
20659 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20661 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20662 (arc_legitimize_pic_address): Simplify and cleanup the function.
20663 (SYMBOLIC_CONST): Remove.
20664 (prepare_pic_move): Likewise.
20665 (prepare_move_operands): Handle complex mov cases here.
20666 (arc_legitimize_address_0): Remove call to
20667 arc_legitimize_pic_address.
20668 (arc_legitimize_address): Remove call to
20669 arc_legitimize_tls_address.
20670 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20671 (movhi_insn): Likewise.
20673 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20675 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20677 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20678 format of "__intN" types for UINTMAX_TYPE.
20679 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20680 format of "__intN" types for SIZETYPE.
20681 * tree.c (build_common_tree_nodes): Accept "__intN__"
20682 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20683 * doc/invoke.texi: Document that __intN__ disables pedantic
20686 2019-06-25 Jan Hubicka <jh@suse.cz>
20688 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20689 base2_alias_set is non-zero before doing TBAA based disambiguation.
20691 2019-06-25 Martin Liska <mliska@suse.cz>
20693 PR tree-optimization/90973
20694 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20695 of prologue and epilogue.
20697 2019-06-24 Jan Hubicka <jh@suse.cz>
20699 * ipa-utils.h (type_with_linkage_p): Verify that type is
20701 (odr_type_p): Remove extra return.
20702 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20703 hash STRING_FLAG only for arrays and integers.
20704 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20705 Update analogously.
20706 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20708 * print-tree.c (print_node): Print cxx-odr-p
20710 * tree.c (need_assembler_name_p): Also check that type
20712 (verify_type_variant): Update verification of SRING_FLAG;
20713 also check CXX_ODR_P.
20714 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20715 (TYPE_STRING_FLAG): Use it.
20716 (TYPE_CXX_ODR_P): New macro.
20717 * dwarf2out.c (gen_array_type_die): First check that type
20718 is an array and then test string flag.
20720 2019-06-24 Richard Biener <rguenther@suse.de>
20722 PR tree-optimization/90972
20723 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20724 in common code, dealing with STRING_CST properly.
20726 2019-06-24 Richard Biener <rguenther@suse.de>
20728 PR tree-optimization/90930
20729 PR tree-optimization/90316
20730 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20731 decrement of limit.
20733 2019-06-24 Martin Sebor <msebor@redhat.com>
20735 * tree-pretty-print.h: Remove unnecessary punctuation characters
20737 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20739 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20741 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20742 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20743 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20745 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20747 * config/rs6000/darwin.h: Handle GCC target pragma.
20749 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20751 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20753 2019-06-22 Jeff Law <law@redhat.com>
20755 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20757 2019-06-22 Jan Hubicka <jh@suse.cz>
20759 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20760 give up on bitfields; continue searching for different refs
20763 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20765 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20766 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20767 containing the offset as possible simd lane access. Look through
20768 widening conversion. Move the
20769 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20771 2019-06-21 Richard Biener <rguenther@suse.de>
20773 PR tree-optimization/90930
20774 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20775 flag on new stmts to avoid re-processing them.
20777 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20779 PR c++/90875 - added -Wswitch-outside-range option
20780 * doc/invoke.texi (Wswitch-outside-range): Document.
20782 2019-06-21 Jeff Law <law@redhat.com>
20784 PR tree-optimization/90949
20785 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20786 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20788 2019-06-21 Richard Biener <rguenther@suse.de>
20791 * dwarf2out.c (prune_unused_types_walk): Always consider
20792 function-local extern declarations as used.
20794 2019-06-21 Richard Biener <rguenther@suse.de>
20796 PR tree-optimization/90913
20797 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20798 the scalar variant of if-conversion versioning.
20800 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20802 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20803 create another "omp scan inscan exclusive" array if
20804 !ctx->scan_inclusive.
20805 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20806 (lower_omp_scan): Likewise.
20807 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20808 2-bit bitfield for simd_lane_access_p member.
20809 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20810 aux == (void *)-4 as simd lane access.
20811 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20812 comment with permutations to show the canonical permutation order.
20813 (vectorizable_scan_store): Handle exclusive scan.
20814 (vectorizable_store): Call vectorizable_scan_store even for
20815 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20817 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20818 "omp simd array" arrays with one byte elements.
20820 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20822 * config/alpha/alpha.md (@unaligned_store<mode>):
20823 Rename from unaligned_store<mode>.
20824 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20825 * config/alpha/sync.md (@load_locked_<mode>): Rename
20826 from load_locked_<mode>.
20827 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20828 (@atomic_compare_and_swap<mode>_1): Rename
20829 from atomic_compare_and_swap<mode>_1.
20830 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20831 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20832 Use gen_reload_in_aligned and gen_unaligned_store.
20833 (emit_load_locked): Remove.
20834 (emit_store_conditional): Ditto.
20835 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20836 (alpha_split_compare_and_swap): Ditto.
20837 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20838 (alpha_split_compare_and_swap_12): Use gen_load_locked
20839 and gen_store_conditional.
20840 (alpha_split_atomic_exchange): Ditto.
20841 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20842 (alpha_split_atomic_exchange_12): Use gen_load_locked
20843 and gen_store_conditional.
20845 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20847 * config/aarch64/aarch64-errata.h: New file.
20848 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20849 (CA53_ERR_843419_SPEC): Delete.
20850 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20851 * config/aarch64/aarch64-linux.h: Likewise.
20852 * config/aarch64/aarch64-netbsd.h: Likewise.
20853 * config/aarch64/aarch64-freebsd.h: Likewise.
20855 2019-06-20 Marek Polacek <polacek@redhat.com>
20857 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20859 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20861 * config/rs6000/rs6000.md (isa attribute): Add support for
20862 for a future processor.
20864 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20867 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20868 standard scalar operation pattern for V2DF.
20869 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20870 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20871 (*ieee_<ieee_maxmin><mode>3): Likewise.
20872 (vec_setv2df_0): Likewise.
20874 2019-06-20 Jan Hubicka <jh@suse.cz>
20876 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20877 parameter; it has no use in gimple memory model.
20878 (indirect_ref_may_alias_decl_p): Update.
20880 2019-06-20 Martin Liska <mliska@suse.cz>
20882 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20885 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20887 * tree-vect-stmts.c (enum scan_store_kind): New type.
20888 (scan_store_can_perm_p): Change last argument from int * to
20889 vec<enum scan_store_kind> *, record precisely which permutations
20890 need whole vector left shift or that plus VEC_COND_EXPR.
20891 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20892 and additional VEC_COND_EXPR only for those iterations that need it.
20894 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20896 * config.gcc: Fix ARM --with-fpu checking and error message.
20898 2019-06-19 Marek Polacek <polacek@redhat.com>
20900 PR c++/60364 - noreturn after first decl not diagnosed.
20901 * attribs.c (get_attribute_namespace): No longer static.
20902 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20904 (attr_noreturn_exclusions): Make it extern.
20905 * attribs.h (get_attribute_namespace): Declare.
20906 * tree-inline.c (function_attribute_inlinable_p): Use
20907 get_attribute_name.
20909 2019-06-19 Martin Sebor <msebor@redhat.com>
20911 PR tree-optimization/90626
20912 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20914 PR tree-optimization/90626
20915 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20916 (handle_builtin_string_cmp): Call it.
20918 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20920 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20921 and DARWIN_NOPIE_SPEC.
20922 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20923 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20924 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20925 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20926 (DARWIN_EXPORT_DYNAMIC): Delete.
20927 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20928 and pie options processing to darwin.h.
20929 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20931 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20933 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20934 in computing the number of options to be moved.
20936 2019-06-19 Maya Rashish <coypu@sdf.org>
20938 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20939 (CLEAR_INSN_CACHE) Use it.
20941 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20943 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20945 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20947 PR middle-end/84521
20948 * builtins.c (expand_builtin_setjmp_setup): Save
20949 hard_frame_pointer_rtx.
20950 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20952 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20954 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20956 (remove_reg_equal_offset_note): Remove unused function.
20957 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20959 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20960 (arc_builtin_setjmp_frame_value): Remove function.
20961 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20962 (avr_builtin_setjmp_frame_value): Remove function.
20963 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20964 (ix86_builtin_setjmp_frame_value): Remove function.
20965 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20966 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20967 (sparc_builtin_setjmp_frame_value): Remove function.
20968 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20969 (vax_builtin_setjmp_frame_value): Remove function.
20970 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20971 pointer if has_nonlocal_label.
20973 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20975 * doc/md.texi: Document vec_shl_<mode> pattern.
20976 * optabs.def (vec_shl_optab): New optab.
20977 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20978 argument, if == vec_shl_optab, check for left whole vector shift
20979 pattern rather than right shift.
20980 (expand_vec_perm_const): Add vec_shl_optab support.
20981 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20983 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20984 can be handled by vec_shl_optab.
20985 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20986 (check_scan_store): Use it.
20987 (vectorizable_scan_store): If target can't do normal permutations,
20988 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20990 * config/i386/sse.md (vec_shl_<mode>): New expander.
20992 * omp-low.c (lower_rec_input_clauses): Handle references properly
20994 (lower_omp_scan): Likewise.
20996 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20998 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20999 mem_mode is BLKmode.
21001 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
21004 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
21005 pointer adjustment for the case of no callee-saved registers and
21006 stack frame bigger than 128 bytes.
21008 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
21010 PR middle-end/90862
21011 * omp-low.c (check_omp_nesting_restrictions): Handle
21012 GF_OMP_TARGET_KIND_OACC_DECLARE.
21014 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
21016 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
21017 (@add<mode>3_carry): Rename from add<mode>3_carry.
21018 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
21019 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
21020 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
21021 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
21022 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
21023 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
21024 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
21025 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
21026 (cmpstrnsi): Use gen_cmp_1.
21027 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
21028 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
21029 (@umonitor_<mode>): Rename from umonitor_<mode>.
21030 * config/i386/i386-expand.c (ix86_expand_copysign):
21031 Use gen_copysign3_const and gen_copysign3_var.
21032 (ix86_expand_xorsign): Use gen_xorsign3_1.
21033 (ix86_expand_branch): Use gen_sub3_carry_ccc,
21034 gen_sub3_carry_ccgz and gen_cmp1.
21035 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
21036 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
21037 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
21038 (ix86_split_lshr): Ditto.
21039 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
21041 2019-06-18 Jason Merrill <jason@redhat.com>
21043 * tree.c (build_constructor): Add MEM_STAT_DECL.
21045 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21047 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
21048 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
21049 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
21050 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
21051 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
21052 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
21053 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
21054 Use CC_NZC instead of CC.
21055 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
21056 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
21057 (aarch64_print_operand): Handle E_CC_NZCmode.
21058 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
21059 of gen_set_clobber_cc.
21061 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21063 * config/aarch64/aarch64-sve.md: Tabify file.
21065 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21067 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21068 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21069 * config/aarch64/aarch64-sve.md: Use it.
21071 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21073 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21074 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21075 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21076 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21077 (aarch64_expand_sve_vec_cmp_int): Use it.
21078 (aarch64_expand_sve_vec_cmp_float): Likewise.
21079 * config/aarch64/aarch64-sve.md: Likewise throughout.
21081 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21082 Kugan Vivekanandarajah <kuganv@linaro.org>
21084 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21085 (*cond_<optab><mode>_z): Fold into...
21086 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21087 operand 4 can be tied to operand 0 (either inherently or via RA).
21089 2019-06-18 Richard Biener <rguenther@suse.de>
21092 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21093 as if optimized away.
21095 2019-06-18 Tom de Vries <tdevries@suse.de>
21097 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21098 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21099 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21101 (define_insn "@set_softstack_<mode>"): ... this.
21102 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21103 (define_insn "@omp_simt_enter_<mode>"): ... this.
21104 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21105 (define_insn "@omp_simt_exit_<mode>"): ... this.
21107 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21109 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21110 vf parameter. Restore the previous iv step of nscalars_step,
21111 but give it iv_type rather than compare_type. Tweak code order
21112 to match the comments.
21113 (vect_set_loop_condition_masked): Update accordingly.
21114 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21115 for iv_precision. Tweak comment formatting.
21117 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21119 * config/darwin.c: Strip trailing whitespace.
21121 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21123 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21124 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21126 2019-06-18 Martin Jambor <mjambor@suse.cz>
21129 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21130 caller does not have flag_ipa_cp set.
21132 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21134 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21135 from "*fold_left_plus_<mode>", updated operands order.
21136 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21137 * internal-fn.c (mask_fold_left_direct): New define.
21138 (expand_mask_fold_left_optab_fn): Likewise.
21139 (direct_mask_fold_left_optab_supported_p): Likewise.
21140 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21141 * optabs.def (mask_fold_left_plus_optab): New optab.
21142 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21143 masked internal_fn for a reduction ifn.
21144 (vectorize_fold_left_reduction): Add support for masking reductions.
21146 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21148 PR middle-end/80791
21149 * target.def (predict_doloop_p): New hook.
21150 * targhooks.h (default_predict_doloop_p): New declaration.
21151 * targhooks.c (default_predict_doloop_p): New function.
21152 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21153 * doc/tm.texi: Regenerate.
21154 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21155 (TARGET_PREDICT_DOLOOP_P): New macro.
21156 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21158 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21160 * omp-low.c (struct omp_context): Add scan_inclusive field.
21161 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21163 (struct omplow_simd_context): Add lastlane member.
21164 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21165 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21167 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21168 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21169 (lower_omp_scan): New function.
21170 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21171 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21172 check 3rd argument if present rather than 2nd.
21173 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21174 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21176 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21177 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21179 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21180 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21181 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21183 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21184 IFN_GOMP_SIMD_LANE argument.
21185 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21186 encoded ->aux value.
21187 * tree-vect-stmts.c: Include attribs.h.
21188 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21189 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21191 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21192 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21194 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21197 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21198 (*nabs<mode>2_1): Ditto.
21199 (nabs sse-reg splitter): New splitter.
21200 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21202 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21204 PR bootstrap/90873.
21205 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21208 2019-06-17 Tom de Vries <tdevries@suse.de>
21210 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21211 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21212 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21214 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21216 (define_insn "omp_simt_enter_insn"): Rename to ...
21217 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21218 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21219 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21220 gen_omp_simt_enter_si.
21221 (define_expand "omp_simt_exit"): New.
21222 (define_insn "omp_simt_exit"): Rename to ...
21223 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21226 2019-06-17 Matthew Green <mrg@eterna.com.au>
21227 Maya Rashish <coypu@sdf.org>
21229 * config.gcc (aarch64*-*-netbsd*): New target.
21230 * config/aarch64/aarch64-netbsd.h: New file.
21231 * config/aarch64/t-aarch64-netbsd: Likewise.
21233 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21235 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21236 the access path from base to first VIEW_CONVERT_EXPR or
21239 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21241 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21242 access path on BIT_FIELD_REFs.
21244 2019-06-17 Martin Liska <mliska@suse.cz>
21247 * ipa-utils.h (odr_type_p): Remove dead code.
21249 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21251 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21252 alternative Solaris 11.4 format.
21253 * configure: Regenerate.
21255 2019-06-17 Tom de Vries <tdevries@suse.de>
21257 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
21258 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
21260 (define_insn "call_value_insn"): Rename to ...
21261 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
21263 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
21266 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
21268 PR middle-end/64242
21269 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
21270 frame clobbers and schedule block.
21271 (builtin_longjmp): Likewise.
21273 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21275 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
21276 describe how to perform MSPABI compliant 64-bit shift.
21277 * config/msp430/msp430.md (ashldi3): New define_expand.
21278 (ashrdi3): New define_expand.
21279 (lshrdi3): New define_expand.
21281 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21283 * doc/sourcebuild.texi: Document new effective target keyword
21286 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21288 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
21289 indirect_refs_may_alias_p): Revert accidental commits.
21291 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
21292 at the end of structures.
21294 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21296 * config/darwin.c (machopic_indirect_call_target): Use renamed
21297 darwin_picsymbol_stubs to decide on output.
21298 (darwin_override_options): Handle darwin_picsymbol_stubs.
21299 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
21300 (LD64_VERSION): Revise default.
21301 * config/darwin.opt: (mpic-symbol-stubs): New option.
21302 (darwin_picsymbol_stubs): New variable.
21303 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
21304 rename to TARGET_MACHO_PICSYM_STUBS.
21305 * config/i386/i386.c (output_pic_addr_const): Likewise.
21306 * config/i386/i386.h Likewise.
21307 * config/rs6000/darwin.h: Likewise.
21308 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
21309 darwin_picsymbol_stubs.
21311 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21313 * config/darwin.opt (prebind, noprebind, seglinkedit,
21314 noseglinkedit): Add RejectNegative.
21316 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21318 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
21319 in my previous patch.
21321 2019-06-16 Tom de Vries <tdevries@suse.de>
21323 PR tree-optimization/89376
21324 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
21326 2019-06-15 Maya Rashish <coypu@sdf.org>
21328 * doc/invoke.texi (Spec Files): Update location of the
21331 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
21333 * doc/extend.texi (Common Function Attributes): Clarify
21334 no_sanitize. Fix grammar.
21336 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
21338 * tree-ssa-alias.c (alias_stats): Add
21339 nonoverlapping_component_refs_p_may_alias,
21340 nonoverlapping_component_refs_p_no_alias,
21341 nonoverlapping_component_refs_of_decl_p_may_alias,
21342 nonoverlapping_component_refs_of_decl_p_no_alias.
21343 (dump_alias_stats): Dump them.
21344 (nonoverlapping_component_refs_of_decl_p): Add stats.
21345 (nonoverlapping_component_refs_p): Add stats; do not stop on first
21348 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
21350 * config/i386/i386.md (and<mode>3): Generate zero-extends for
21351 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
21353 (*anddi3_doubleword): Split before reload. Merge with
21354 anddi->zext pre-reload splitter.
21355 (*andndi3_doubleword): Split before reload.
21356 (*<code>di3_doubleword): Ditto.
21357 (*one_cmpldi2_doubleword): Ditto.
21359 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21361 PR middle-end/90779
21362 * gimplify.c: Include omp-offload.h and context.h.
21363 (gimplify_bind_expr): Add "omp declare target" attributes
21364 to static block scope variables inside of target region or target
21367 2019-06-15 Tom de Vries <tdevries@suse.de>
21369 PR tree-optimization/90009
21370 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
21371 Return NULL if bb contains IFN_UNIQUE.
21373 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
21375 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
21376 (un): New define_mode_attr.
21377 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
21378 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
21379 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
21381 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
21383 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
21385 * config/darwin.opt: Add RejectNegative where needed, reorder
21386 and add minimal functional descriptions.
21388 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21390 PR rtl-optimization/90765
21391 * calls.c (update_stack_alignment_for_call): New function.
21392 (expand_call): Call update_stack_alignment_for_call when
21393 outgoing parameter is passed in the stack.
21394 (emit_library_call_value_1): Likewise.
21395 * function.c (locate_and_pad_parm): Don't update
21396 stack_alignment_needed and preferred_stack_boundary.
21398 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21401 * config/i386/i386-features.c
21402 (dimode_scalar_chain::compute_convert_gain): Replace
21403 mmxsse_to_integer with sse_to_integer.
21404 * config/i386/i386.c (ix86_register_move_cost): Verify that
21405 moves between MMX and non-MMX units require secondary memory.
21406 Correct costs of moves between SSE and integer units.
21407 * config/i386/i386.h (processor_costs): Rename cost of moving
21408 SSE register to integer to sse_to_integer. Rename cost of
21410 2019-06-14 Matt Thomas <matt@3am-software.com>
21411 Matthew Green <mrg@eterna.com.au>
21412 Nick Hudson <skrll@netbsd.org>
21413 Maya Rashish <coypu@sdf.org>
21414 Richard Earnshaw <rearnsha@arm.com>
21416 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
21417 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
21418 * config/arm/netbsd-eabi.h: New file.
21419 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
21421 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
21422 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
21423 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
21424 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
21426 2019-06-14 Richard Biener <rguenther@suse.de>
21428 * tree-loop-distribution.c (classify_partition): Return
21429 whether a reduction appeared in all partitions and do not
21430 stop builtin detection because of this.
21431 (distribute_loop): Sort a non-builtin partition last if
21432 there's a reduction in all partitions and make sure the
21433 partition prevailing as last is not a builtin.
21435 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21438 * ipa-prop.c (add_to_agg_contents_list): New function.
21439 (clobber_by_agg_contents_list_p): Likewise.
21440 (extract_mem_content): Likewise.
21441 (get_place_in_agg_contents_list): Delete.
21442 (determine_known_aggregate_parts): Renamed from
21443 determine_locally_known_aggregate_parts. New parameter
21446 2019-06-13 Martin Sebor <msebor@redhat.com>
21448 PR tree-optimization/90662
21449 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21452 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21455 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21456 dbase is not TARGET_MEM_REF.
21458 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21460 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21462 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21463 Do not generate DImode extends for 32bit targets.
21464 (and->zext post-reload splitter): Use gen_extend_insn
21465 instead of indirect functions.
21466 (anddi->zext pre-reload splitter): New.
21467 (*zext<mode>_doubleword_and): Remove.
21468 (*zext<mode>_doubleword): Ditto.
21469 (*zextsi_doubleword): Dittto.
21471 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21473 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
21474 Use gen_sub3_insn instead of indirect function.
21475 (ix86_expand_ashl_const): Use gen_add2_insn instead of
21477 (ix86_adjust_counter): Ditto.
21479 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
21480 Lijia He <helijia@linux.ibm.com>
21482 PR tree-optimization/77820
21483 * tree-ssa-threadedge.c
21484 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
21486 (thread_across_edge): Add call to
21487 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
21489 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
21491 * config/darwin-driver.c (validate_macosx_version_min): New.
21492 (darwin_default_min_version): Cleanup and validate supplied version.
21493 (darwin_driver_init): Likewise and push cleaned version into opts.
21495 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21497 PR tree-optimization/90869
21498 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
21499 converts in MEM_REF referencing decl rather than view converts
21500 from decl type to MEM_REF type.
21502 2019-06-13 Richard Biener <rguenther@suse.de>
21504 PR tree-optimization/90856
21505 * tree-sra.c (build_ref_for_model): Only use
21506 build_reconstructed_reference when address-spaces are the same.
21508 2019-06-13 Jakub Jelinek <jakub@redhat.com>
21510 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
21511 wrap ei variable name in the declaration in ()s.
21512 (nvptx_single): Actually use mode_label variable. Formatting fix.
21514 2019-06-13 Richard Biener <rguenther@suse.de>
21516 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
21517 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
21518 also return the condition stmt.
21519 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
21520 loop we can version and version that, reusing the loop version
21521 created by if-conversion instead of versioning again.
21523 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
21525 * gimple-loop-versioning.cc (prune_loop_conditions): Use
21527 * tree-vrp (value_range_base::may_contain_p): Call into
21528 value_inside_range.
21529 (value_inside_range): Make private inside value_range_base class.
21530 Take min/max from *this.
21531 (range_includes_p): Remove.
21532 * tree-vrp.h (value_range_base): Add value_inside_range.
21533 (range_includes_p): Remove.
21534 (range_includes_zero_p): Call may_contain_p.
21535 * vr-values.c (compare_range_with_value): Same.
21537 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
21539 * doc/extend.texi (ARC Function Attributes): Update info.
21541 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
21543 PR tree-optimization/89713
21544 * doc/invoke.texi (-ffinite-loops): Document new option.
21545 * common.opt (-ffinite-loops): New option.
21546 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
21547 IFN_GOACC_LOOP calls as necessary.
21548 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
21550 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
21551 IFN_GOACC_LOOP call is not used.
21552 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
21554 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21557 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
21558 compare_type is not with Pmode size, we will create an IV with
21559 Pmode size with truncated use (i.e. converted to the correct type).
21560 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
21561 (vect_iv_limit_for_full_masking): New. Factored out of
21562 vect_set_loop_condition_masked.
21563 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
21564 (vect_iv_limit_for_full_masking): Declare.
21566 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21569 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
21570 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
21571 (get_alias_ptr_type_for_ptr_address): Likewise.
21572 (add_iv_candidate_for_use): Add scaled index candidate if useful.
21573 * tree-ssa-address.c (preferred_mem_scale_factor): New.
21574 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
21577 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21579 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
21581 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
21583 * common/config/pru/pru-common.c: New file.
21584 * config.gcc: Add PRU target.
21585 * config/pru/alu-zext.md: New file.
21586 * config/pru/constraints.md: New file.
21587 * config/pru/predicates.md: New file.
21588 * config/pru/pru-opts.h: New file.
21589 * config/pru/pru-passes.c: New file.
21590 * config/pru/pru-pragma.c: New file.
21591 * config/pru/pru-protos.h: New file.
21592 * config/pru/pru.c: New file.
21593 * config/pru/pru.h: New file.
21594 * config/pru/pru.md: New file.
21595 * config/pru/pru.opt: New file.
21596 * config/pru/t-pru: New file.
21597 * doc/extend.texi: Document PRU pragmas.
21598 * doc/invoke.texi: Document PRU-specific options.
21599 * doc/md.texi: Document PRU asm constraints.
21601 2019-06-12 Martin Sebor <msebor@redhat.com>
21603 PR middle-end/90676
21604 * tree-pretty-print.c (dump_mem_ref): New function. Include
21605 MEM_REF type in output when different size than operand.
21606 (dump_generic_node): Move code to dump_mem_ref and call it.
21608 2019-06-12 Martin Sebor <msebor@redhat.com>
21610 PR tree-optimization/90662
21611 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21614 2019-06-12 Tom de Vries <tdevries@suse.de>
21616 PR tree-optimization/90009
21617 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21619 2019-06-12 Martin Liska <mliska@suse.cz>
21621 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21623 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21624 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21625 Do not sanitize created maps.
21627 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21629 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21630 value_range::singleton_p.
21631 * tree-vrp.c (value_range_constant_singleton): Remove.
21632 * tree-vrp.h (value_range_constant_singleton): Remove.
21633 * vr-values.c (vr_values::singleton): Use
21634 value_range::singleton_p.
21636 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21639 * cfgexpand.c (align_local_variable): Add really_expand argument,
21640 don't SET_DECL_ALIGN if it is false.
21641 (add_stack_var): Add really_expand argument, pass it through to
21642 align_local_variable.
21643 (expand_one_stack_var_1): Pass true as really_expand to
21644 align_local_variable.
21645 (expand_one_ssa_partition): Pass true as really_expand to
21647 (expand_one_var): Pass really_expand through to add_stack_var.
21649 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21651 * config/arm/iterators.md (VABAL): New int iterator.
21652 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21653 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21654 UNSPEC_VABAL_U values.
21656 2019-06-12 Martin Liska <mliska@suse.cz>
21658 * value-prof.c (stream_out_histogram_value): Only first value
21661 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21664 * symtab.c (symtab_node::set_section): Allow being called on aliases
21665 as long as they aren't analyzed yet.
21667 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21669 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21670 to `mips_set_text_contents_type' to indicate whether a
21671 non-debug insn follows.
21673 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21675 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21676 enabling -mpcrel by default.
21677 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21678 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21679 that the test against -mcpu=future is done first. Then test if
21680 -mprefixed-addr is on for -mpcrel.
21681 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21683 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21686 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21687 instead of and.u%d.
21689 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21691 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21693 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21695 PR c++/90449 - add -Winaccessible-base option.
21696 * doc/invoke.texi (Winaccessible-base): Document.
21698 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21700 PR tree-optimization/62041
21701 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21703 2019-06-11 Jason Merrill <jason@redhat.com>
21705 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21706 * tree.c (get_tree_code_name): Likewise.
21707 * print-tree.c (print_node): Only briefly print a node with an
21710 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21713 * trans-mem.c (tm_memopt_compute_available): Add assertion
21714 that blocks is not empty. Formatting fix.
21716 2019-06-11 Martin Liska <mliska@suse.cz>
21719 * hash-table.h: Extend create_gcc, add one parameter
21720 that is passed into hash_table::hash_table.
21722 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21724 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21726 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21727 Emit clobber also for non-sse operations.
21728 (ix86_split_fp_absneg_operator): New function.
21729 * config/i386/i386.md (SSEMODEF): New mode iterator.
21730 (ssevecmodef): New mode attribute.
21731 (<code>tf2): Use absneg code iterator.
21732 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21733 Add three-operand AVX alternatives.
21734 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21735 Use absneg code iterator and X87MODEF mode iterator.
21736 (absneg fp_reg non-sse splitter): Call absneg code iterator
21737 and X87MODEF mode iterator.
21738 (absneg general_reg non-sse splitter): Use absneg code iterator
21739 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21740 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21741 code iterator. Add three-operand AVX alternative.
21742 (absneg sse_reg splitter): Use absneg code iterator
21743 and SSEMODEF mode iterator. Handle AVX operands.
21744 (absneg fp_reg splitter): Use absneg code iterator
21745 and MODEF mode iterator.
21746 (absneg general_reg splitter): Merge splitters using MODEF mode
21747 iterator. Use absneg code iterator. Call
21748 ix86_split_fp_absneg_operator.
21749 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21750 Do not enable for non-sse modes before reload.
21751 (CSGNMODE): Remove.
21752 (CSGNVMODE): Ditto.
21753 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21754 ssevecmodef mode attribute instaed of CSGNVMODE.
21755 (copysign<mode>3_const): Ditto.
21756 (copysign<mode>3_var): Ditto.
21757 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21758 Use absneg code iterator. Simplify code using std::swap.
21759 * config/i386/predicates.md (absneg_operator): Remove.
21761 2019-06-10 Martin Sebor <msebor@redhat.com>
21763 * gimple-fold.c (get_range_strlen): Update comment that didn't
21764 make it into r267503 or related commits.
21766 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21768 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21769 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21771 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21773 * tree.def (OMP_SCAN): New tree code.
21774 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21775 OMP_CLAUSE_EXCLUSIVE.
21776 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21777 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21778 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21779 OMP_CLAUSE_{IN,EX}CLUSIVE.
21780 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21781 * tree-nested.c (convert_nonlocal_reference_stmt,
21782 convert_local_reference_stmt, convert_gimple_call): Handle
21784 * tree-pretty-print.c (dump_omp_clause): Handle
21785 OMP_CLAUSE_{IN,EX}CLUSIVE.
21786 (dump_generic_node): Handle OMP_SCAN.
21787 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21788 * gimple.h (gomp_scan): New type.
21789 (is_a_helper <gomp_scan *>::test,
21790 is_a_helper <const gomp_scan *>::test): New templates.
21791 (gimple_build_omp_scan): Declare.
21792 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21793 gimple_omp_scan_set_clauses): New inline functions.
21794 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21795 * gimple.c (gimple_build_omp_scan): New function.
21796 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21797 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21798 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21799 GIMPLE_OMP_TASKGROUP.
21800 (dump_gimple_omp_scan): New function.
21801 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21802 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21803 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21804 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21805 (is_gimple_stmt): Handle OMP_SCAN.
21806 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21807 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21808 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21809 mentioned in nested #pragma omp scan. Handle
21810 OMP_CLAUSE_{IN,EX}CLUSIVE.
21811 (gimplify_expr): Handle OMP_SCAN.
21812 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21813 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21815 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21818 2019-06-10 Martin Liska <mliska@suse.cz>
21820 * ipa-cp.c (ignore_edge_p): New function.
21821 (build_toporder_info): Use it.
21822 * ipa-inline.c (ignore_edge_p): New function.
21823 (inline_small_functions): Use it.
21824 * ipa-pure-const.c (ignore_edge_for_nothrow):
21825 Verify opt_for_fn for caller and callee.
21826 (ignore_edge_for_pure_const): Likewise.
21827 * ipa-reference.c (ignore_edge_p): Extend to check
21829 * ipa-utils.c (searchc): Refactor.
21830 * ipa-utils.h: Fix coding style.
21832 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21834 * config/arc/arc.c (arc_rtx_costs): Update costs.
21836 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21838 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21839 (arc_split_ior): Likewise.
21840 (arc_check_mov_const): Likewise.
21841 (arc_split_mov_const): Likewise.
21842 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21843 (arc_rtx_costs): Replace check Crr with Cax constraint.
21844 (prepare_move_operands): Cleanup, remove unused code.
21845 (arc_split_ior): New function.
21846 (arc_check_ior_const): Likewise.
21847 (arc_split_mov_const): Likewise.
21848 (arc_check_mov_const): Likewise.
21849 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21850 in define_insn_and_split pattern.
21851 (iorsi3): Likewise.
21852 (mulsi3_v2): Add new matching variant.
21853 (andsi3_i): Cleanup pattern.
21854 (rotrsi3_cnt1): Update pattern.
21855 (rotrsi3_cnt8): New pattern.
21856 (ashlsi2_cnt8): Likewise.
21857 (ashlsi2_cnt16): Likewise.
21858 * config/arc/constraints.md (C0p): Update constraint.
21860 (C0x): New pattern.
21861 (Cax): New pattern.
21863 2019-06-10 Martin Liska <mliska@suse.cz>
21865 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21866 Update coding style.
21867 (sem_item_optimizer::dump_cong_classes):
21868 Print how many items are in a non-singular class. Improve
21871 2019-06-10 Martin Liska <mliska@suse.cz>
21873 * value-prof.c (dump_histogram_value): Change dump format.
21874 (gimple_mod_subtract_transform): Remove legacy comment.
21876 2019-06-10 Martin Liska <mliska@suse.cz>
21878 * value-prof.c (dump_histogram_value): Print histogram values
21881 2019-06-10 Martin Liska <mliska@suse.cz>
21883 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21884 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21885 * ipa-profile.c (ipa_profile_generate_summary):
21886 Use get_most_common_single_value.
21887 * tree-profile.c (gimple_init_gcov_profiler):
21888 Instrument with __gcov_one_value_profiler_v2
21889 and __gcov_indirect_call_profiler_v4.
21890 * value-prof.c (dump_histogram_value):
21891 Print all values for HIST_TYPE_SINGLE_VALUE.
21892 (stream_out_histogram_value): Update assert for
21894 (stream_in_histogram_value): Set number of
21895 counters for HIST_TYPE_SINGLE_VALUE.
21896 (get_most_common_single_value): New.
21897 (gimple_divmod_fixed_value_transform):
21898 Use get_most_common_single_value.
21899 (gimple_ic_transform): Likewise.
21900 (gimple_stringops_transform): Likewise.
21901 (gimple_find_values_to_profile): Set number
21902 of counters for HIST_TYPE_SINGLE_VALUE.
21903 * value-prof.h (get_most_common_single_value): New.
21905 2019-06-10 Martin Liska <mliska@suse.cz>
21907 * hash-map.h: Pass default value to hash_table ctor.
21908 * hash-table.h: Add default value to call of a ctor.
21910 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21912 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21913 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21915 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21918 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21919 Call pa_output_function_label.
21920 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21921 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21922 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21924 (pa_linux_output_function_prologue): Declare.
21925 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21926 (pa_output_function_label): New.
21927 (pa_output_function_prologue): Revise to use pa_output_function_label.
21928 (pa_linux_output_function_prologue): New.
21929 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21931 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21933 * tree-vrp.h (value_range_base::intersect): New.
21934 (value_range::intersect_helper): Move from here...
21935 (value_range_base::intersect_helper): ...to here.
21936 * tree-vrp.c (value_range::intersect_helper): Rename to...
21937 (value_range_base::intersect_helper): ...this, and rewrite to
21938 return a value instead of modifying THIS in place.
21939 Also, move equivalence handling...
21940 (value_range::intersect): ...here, while calling intersect_helper.
21941 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21943 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21945 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21947 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21949 * Makefile.in (genprogerr): Add condmd.
21950 (genprog): Remove it here.
21952 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21954 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21956 2019-06-07 Richard Biener <rguenther@suse.de>
21959 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21960 that appear after user labels.
21962 2019-06-07 Martin Liska <mliska@suse.cz>
21964 * cselib.c (cselib_init): Disable hash table
21966 * hash-set.h: Pass new default argument to m_table.
21967 * hash-table.c: Add global variable with hash table
21968 sanitization limit.
21969 * hash-table.h (Allocator>::hash_table): Add new argument
21971 (hashtab_chk_error): New.
21972 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21973 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21974 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21976 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21978 * common.opt (flto-odr-type-merging): Ignore.
21979 * invoke.texi (-flto-odr-type-merging): Remove.
21980 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21981 (can_be_vtable_hashed_p): Remove.
21982 (hash_odr_vtable): Remove.
21983 (odr_vtable_hasher::hash): Remove.
21984 (types_same_for_odr): Remove.
21985 (types_odr_comparable): Remove.
21986 (odr_vtable_hasher::equal): Remove.
21987 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21988 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21989 (get_odr_type): Do not use vtable hash.
21990 (dump_odr_type): Remove commented out code.
21991 (build_type_inheritance_graph): Do not allocate vtable hash.
21992 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21993 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21994 (odr_type_p): Likewise.
21995 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21998 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22000 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
22001 immediately after same_types_for_tbaa_p returns -1 and continue
22002 looking for possible exact match; if matching types are arrays
22003 watch for partial overlaps.
22004 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
22005 (indirect_refs_may_alias_p): Do type based disambiguation first;
22008 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
22010 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
22012 2019-06-07 Martin Liska <mliska@suse.cz>
22014 * doc/invoke.texi: Remove param.
22015 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
22017 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
22018 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
22019 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
22020 * profile.c (instrument_values): Remove
22021 HIST_TYPE_INDIR_CALL_TOPN.
22022 * tree-profile.c (init_ic_make_global_vars):
22023 Always build __gcov_indirect_call only.
22024 (gimple_init_gcov_profiler): Remove usage
22025 of PARAM_INDIR_CALL_TOPN_PROFILE.
22026 (gimple_gen_ic_profiler): Likewise.
22027 * value-prof.c (dump_histogram_value): Likewise.
22028 (stream_in_histogram_value): Likewise.
22029 (gimple_indirect_call_to_profile): Likewise.
22030 (gimple_find_values_to_profile): Likewise.
22031 * value-prof.h (enum hist_type): Likewise.
22033 2019-06-07 Martin Liska <mliska@suse.cz>
22035 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
22038 2019-06-07 Martin Liska <mliska@suse.cz>
22040 PR tree-optimization/78902
22041 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
22042 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
22043 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22044 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22045 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
22046 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22047 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
22048 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
22049 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22050 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22051 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22052 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
22053 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
22055 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
22056 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
22057 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
22058 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22059 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22060 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22061 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22062 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22063 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22064 warn_unused_result attribute.
22065 (BUILT_IN_STRDUP): Likewise.
22066 (BUILT_IN_STRNDUP): Likewise.
22067 (BUILT_IN_ALLOCA): Likewise.
22068 (BUILT_IN_CALLOC): Likewise.
22069 (BUILT_IN_MALLOC): Likewise.
22070 (BUILT_IN_REALLOC): Likewise.
22072 2019-06-06 Jim Wilson <jimw@sifive.com>
22075 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22076 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22077 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22079 2019-06-06 Martin Sebor <msebor@redhat.com>
22081 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22082 (handle_builtin_malloc): Remove trailing spaces.
22083 (handle_builtin_memset): Same.
22084 (handle_builtin_memcmp): Same.
22085 (compute_string_length): Same.
22086 (determine_min_objsize): Same.
22087 (handle_builtin_string_cmp): Same.
22088 (handle_char_store): Same. Break up excessively long line.
22090 2019-06-06 Martin Jambor <mjambor@suse.cz>
22092 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22095 2019-06-06 Martin Jambor <mjambor@suse.cz>
22097 * tree-sra.c (struct access): New field grp_same_access_path.
22098 (dump_access): Dump it.
22099 (build_reconstructed_reference): New function.
22100 (build_ref_for_model): Use it if possible.
22101 (path_comparable_for_same_access): New function.
22102 (same_access_path_p): Likewise.
22103 (sort_and_splice_var_accesses): Set the new flag.
22104 (analyze_access_subtree): Likewise.
22105 (propagate_subaccesses_across_link): Propagate zero value of the new
22106 flag down the access tree.
22108 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22110 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22111 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22112 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22113 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22116 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22118 PR tree-optimization/90332
22119 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22120 Handle VALS containing two vectors.
22121 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22123 (@aarch64_combinez<mode>): ... This.
22124 (*aarch64_combinez_be<mode>): Rename to...
22125 (@aarch64_combinez_be<mode>): ... This.
22126 (vec_init<mode><Vhalf>): New define_expand.
22127 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22129 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22131 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22132 library functions only when not optimizing for size.
22133 (ashlsi3): Likewise.
22134 (ashrhi3): Likewise.
22135 (ashrsi3): Likewise.
22136 (lshrhi3): Likewise.
22137 (lshrsi3): Likewise.
22139 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22141 PR rtl-optimization/88751
22142 * ira.c (ira): Use the number of the actually referenced registers
22143 when calculating the threshold.
22145 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22147 * configure: Regenerate.
22149 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22151 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22152 register if it is in memory, so the shift can be emulated with a rotate
22154 (ashrhi3): Likewise.
22155 (lshrhi3): Likewise.
22157 2019-06-06 Martin Liska <mliska@suse.cz>
22159 PR tree-optimization/87954
22160 * match.pd: Simplify mult where both arguments are 0 or 1.
22162 2019-06-06 Richard Biener <rguenther@suse.de>
22164 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22165 put equivalences on UNDEFINED ranges.
22166 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22167 Make sure to drop defs of stmts added during simplification
22170 2019-06-06 Richard Biener <rguenther@suse.de>
22172 * tree-ssa-structalias.c: Include tree-cfg.h.
22173 (make_heapvar): Do not make heap vars artificial.
22174 (find_func_aliases_for_builtin_call): Handle stack allocation
22176 (find_func_aliases): Delay processing of simple enough returns
22178 (set_uids_in_ptset): Adjust.
22179 (find_what_var_points_to): Likewise.
22180 (solve_constraints): Do not dump points-to sets here.
22181 (compute_points_to_sets): Post-process return statements,
22182 amending the escaped solution. Dump points-to sets afterwards.
22183 (ipa_pta_execute): Dump points-to sets.
22185 2019-06-06 Martin Liska <mliska@suse.cz>
22188 * doc/install.texi: Fix HTML headers and
22189 titles for 'Installing GCC' pages.
22191 2019-06-06 Martin Liska <mliska@suse.cz>
22193 * ipa-icf-gimple.h (dump_message_1): Remove.
22194 (dump_message): Likewise.
22195 (return_false_with_message_1): Print also file.
22196 (return_false_with_msg): Likewise.
22197 (return_with_result): Likewise.
22198 (return_with_debug): Likewise.
22199 * ipa-icf.c (sem_function::equals_private): Remove call
22202 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22204 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22205 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22206 memory operand for it.
22207 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22209 2019-06-05 Martin Sebor <msebor@redhat.com>
22211 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22212 Adjust quoting and hyphenation.
22213 * convert.c (convert_to_real_1): Same.
22214 * gcc.c (driver_wrong_lang_callback): Same.
22215 (driver::handle_unrecognized_options): Same.
22216 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22217 * opts-common.c (cmdline_handle_error): Same.
22218 (read_cmdline_option): Same.
22219 * opts-global.c (complain_wrong_lang): Same.
22220 (print_ignored_options): Same.
22221 (handle_common_deferred_options): Same.
22222 * pretty-print.h: Same.
22223 * print-rtl.c (debug_bb_n_slim): Same.
22224 * sched-rgn.c (make_pass_sched_fusion): Same.
22225 * tree-cfg.c (verify_gimple_assign_unary): Same.
22226 (verify_gimple_label): Same.
22227 * tree-ssa-operands.c (verify_ssa_operands): Same.
22228 * varasm.c (do_assemble_alias): Same.
22229 (assemble_alias): Same.
22231 2019-06-05 Richard Henderson <rth@twiddle.net>
22233 * config/alpha/alpha.c (direct_return): Move down after
22234 struct machine_function definition; use saved frame_size;
22236 (struct machine_function): Add sa_mask, sa_size, frame_size.
22237 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22238 (alpha_compute_frame_layout): ... new function.
22239 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22240 (alpha_initial_elimination_offset): Use saved sa_size.
22241 (alpha_vms_initial_elimination_offset): Likewise.
22242 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22243 (alpha_expand_prologue): Use saved frame data. Merge integer
22244 and fp register save loops.
22245 (alpha_expand_epilogue): Likewise.
22246 (alpha_start_function): Use saved frame data.
22247 * config/alpha/alpha-protos.h (direct_return): Update.
22248 (alpha_sa_size): Remove.
22250 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22252 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22253 multiplication by a power-of-two value.
22254 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22255 and turn the modulo operation into a masking operation.
22257 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22260 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
22261 with VOIDmode inner operands.
22263 2019-06-05 Richard Biener <rguenther@suse.de>
22265 PR middle-end/90726
22266 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22267 turn an expression graph into a tree.
22269 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22271 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
22273 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
22274 treat it like explicit monotonic schedule modifier.
22275 (expand_omp_for): Initialize has_lastprivate_conditional.
22276 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
22279 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
22280 references, lookup in in hash map MEM_REF operand instead of the
22282 (lower_omp_1): When looking for lastprivate conditional assignments,
22283 handle MEM_REFs with REFERENCE_TYPE operands.
22285 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
22286 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
22287 and references a VLA. Handle references to non-VLAs if is_simd
22288 all privatization clauses like reductions.
22289 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22290 If omp_is_reference, use always omp simd arrays and set
22291 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
22292 fails, emit reference initialization.
22294 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22297 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22298 _mm_mask_fpclass_sd_mask): New intrinsics.
22299 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
22300 * config/i386/i386-builtin.def
22301 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
22303 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
22304 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
22305 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
22306 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
22307 case QI_FTYPE_V2SF_INT): Ditto.
22308 * config/i386/sse.md
22309 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
22310 Extended to insnstructions with mask operands.
22312 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22314 * config/rs6000/constraints.md (define_register_constraint "wp"):
22316 (define_register_constraint "wq"): Delete.
22317 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22318 (rs6000_init_hard_regno_mode_ok): Adjust.
22319 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22320 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
22321 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
22322 (define_mode_attr VSa): Delete.
22323 (define_mode_attr VSisa): New.
22324 (rest of file): Adjust.
22325 * doc/md.texi (Machine Constraints): Adjust.
22327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22329 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
22330 (define_attr "enabled"): Handle those new isa values.
22332 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22334 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
22335 (define_mode_attr VSr5): Delete.
22336 (define_mode_attr VStype_sqrt): Delete.
22337 (define_mode_iterator VSX_SPDP): Delete.
22338 (define_mode_attr VS_spdp_res): Delete.
22339 (define_mode_attr VS_spdp_insn): Delete.
22340 (define_mode_attr VS_spdp_type): Delete.
22341 (*vsx_sqrt<mode>2): Adjust.
22342 (vsx_<VS_spdp_insn>): Delete, split to...
22343 (vsx_xscvdpsp): ... this. New. And...
22344 (vsx_xvcvspdp): ... this. New. And...
22345 (vsx_xvcvdpsp): ... this. New.
22347 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22349 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
22351 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
22352 (rest of file): Adjust.
22354 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22356 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
22357 (vsx_extract_<mode>_var): Ditto.
22359 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22361 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
22364 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22366 * config/rs6000/constraints.md (define_register_constraint "ww"):
22368 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22369 (rs6000_init_hard_regno_mode_ok): Adjust.
22370 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22371 RS6000_CONSTRAINT_ww.
22372 * config/rs6000/rs6000.md: Adjust.
22373 * config/rs6000/vsx.md: Adjust.
22374 * doc/md.texi (Machine Constraints): Adjust.
22376 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22378 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
22379 (define_mode_attr sd): New.
22380 (define_mode_attr s): New.
22381 (define_mode_attr Ftrad): Delete.
22382 (define_mode_attr Fvsx): Delete.
22383 (define_mode_attr Fs): Delete.
22384 (rest of file): Use the new mode attributes.
22385 * config.rs6000/vsx.md: Use the new mode attributes.
22387 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22389 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
22392 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22394 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
22395 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
22396 used with VSX_B, VSX_D, or VSX_F, with just "wa".
22398 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
22401 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
22402 C++ with strict ANSI requirements.
22404 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
22406 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
22407 computations when step is 1.
22409 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22411 * config/rs6000/constraints.md (define_register_constraint "wf"):
22413 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22414 (rs6000_init_hard_regno_mode_ok): Adjust.
22415 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22416 RS6000_CONSTRAINT_wf.
22417 * config/rs6000/rs6000.md: Adjust.
22418 * config/rs6000/vsx.md: Adjust.
22419 * doc/md.texi (Machine Constraints): Adjust.
22421 2019-06-04 Andrew Pinski <apinski@marvell.com>
22423 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
22426 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22428 * config/rs6000/constraints.md (define_register_constraint "wd"):
22430 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22431 (rs6000_init_hard_regno_mode_ok): Adjust.
22432 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22433 RS6000_CONSTRAINT_wd.
22434 * config/rs6000/rs6000.md: Adjust.
22435 * config/rs6000/vsx.md: Adjust.
22436 * doc/md.texi (Machine Constraints): Adjust.
22438 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22440 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22441 (rest of file): Adjust.
22443 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22445 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22446 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22447 (vsx_splat_<mode>_reg): Adjust.
22449 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22451 * config/rs6000/constraints.md (define_register_constraint "ws"):
22453 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22454 (rs6000_init_hard_regno_mode_ok): Adjust.
22455 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22456 RS6000_CONSTRAINT_ws.
22457 * config/rs6000/rs6000.md: Adjust.
22458 * config/rs6000/vsx.md: Adjust.
22459 * doc/md.texi (Machine Constraints): Adjust.
22461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22463 * config/rs6000/constraints.md (define_register_constraint "wv"):
22465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22466 (rs6000_init_hard_regno_mode_ok): Adjust.
22467 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22468 RS6000_CONSTRAINT_wv.
22469 * config/rs6000/rs6000.md: Adjust.
22470 * config/rs6000/vsx.md: Adjust.
22471 * doc/md.texi (Machine Constraints): Adjust.
22473 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22475 * config/rs6000/constraints.md (define_register_constraint "wi"):
22477 (define_register_constraint "wt"): Delete.
22478 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22479 (rs6000_init_hard_regno_mode_ok): Adjust.
22480 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22481 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
22482 * config/rs6000/rs6000.md: Adjust.
22483 * config/rs6000/vsx.md: Adjust.
22484 * doc/md.texi (Machine Constraints): Adjust.
22486 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22488 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
22490 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
22491 default_elf_asm_output_external.
22493 2019-06-04 Martin Liska <mliska@suse.cz>
22495 * ipa-icf.c (INCLUDE_LIST): Remove.
22496 (sem_item_optimizer::execute): Remove call to init_wpa.
22497 * ipa-icf.h (init_wpa): Remove.
22499 2019-06-04 Jakub Jelinek <jakub@redhat.com>
22501 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
22502 conditional on combined for simd.
22503 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
22505 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
22506 constructs, don't remove lastprivate_conditional_map, but instead set
22507 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
22508 to parent construct temporaries.
22509 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
22510 like !ctx->lastprivate_conditional_map.
22511 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
22512 use up->outer context instead of up.
22513 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
22514 gimple_omp_for_combined_p.
22515 (expand_omp_for_static_nochunk): Likewise.
22516 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
22517 probably moved over into expand_omp_for_generic rather than being copied
22520 2019-06-04 Martin Liska <mliska@suse.cz>
22522 * value-prof.c (dump_histogram_value): Fix typo.
22523 (gimple_mod_subtract_transform): Likewise.
22525 2019-06-04 Richard Biener <rguenther@suse.de>
22527 PR middle-end/90726
22528 * tree-chrec.c (chrec_contains_symbols): Add to visited.
22529 (tree_contains_chrecs): Likewise.
22530 (chrec_contains_symbols_defined_in_loop): Move here and avoid
22531 exponential behaivor from ...
22532 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22534 (expression_expensive_p): Avoid exponential behavior and compute
22535 expanded size, rejecting any expansion.
22536 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
22537 (idx_contains_abnormal_ssa_name_p): Likewise.
22538 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
22539 (contains_abnormal_ssa_name_p): Simplify and use
22540 walk_tree_without_duplicates.
22542 2019-06-04 Richard Biener <rguenther@suse.de>
22544 PR tree-optimization/90738
22546 2019-06-03 Richard Biener <rguenther@suse.de>
22548 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22549 full reference tree and record in ref->ref.
22550 (vn_reference_lookup_3): Pass in original ref to
22551 ao_ref_init_from_vn_reference.
22552 (vn_reference_lookup): Likewise.
22553 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22554 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22555 Handle non-decl bases in the original reference.
22557 2019-06-04 Martin Liska <mliska@suse.cz>
22559 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
22560 number of references.
22561 (sem_item_optimizer::do_congruence_step):
22562 (sem_item_optimizer::worklist_push): Dump how references
22564 (sem_item_optimizer::worklist_pop): Use heap.
22565 (sem_item_optimizer::process_cong_reduction): Likewise.
22566 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
22568 2019-06-04 Martin Liska <mliska@suse.cz>
22570 * ipa-icf.h (struct sem_usage_pair_hash): New.
22571 (sem_usage_pair_hash::hash): Likewise.
22572 (sem_usage_pair_hash::equal): Likewise.
22573 (struct sem_usage_hash): Likewise.
22574 * ipa-icf.c (sem_item::sem_item): Initialize
22575 referenced_by_count.
22576 (sem_item::add_reference): Register a reference
22577 in ref_map and not in target->usages.
22578 (sem_item::setup): Remove initialization of
22580 (sem_item::~sem_item): Remove usage of dead vectors.
22581 (sem_item::dump): Remove dump of references.
22582 (sem_item_optimizer::sem_item_optimizer): Initialize
22584 (sem_item_optimizer::read_section): Remove useless
22586 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
22587 (sem_item_optimizer::build_graph): Pass m_references
22588 to ::add_reference.
22589 (sem_item_optimizer::verify_classes): Remove usage of dead
22591 (sem_item_optimizer::traverse_congruence_split): Return true
22592 when a class is split.
22593 (sem_item_optimizer::do_congruence_step_for_index): Use
22594 hash_map for look up of (sem_item *, index). That brings
22595 significant speed up.
22596 (sem_item_optimizer::do_congruence_step): Return true
22597 when a split is done.
22598 (congruence_class::is_class_used): Use referenced_by_count.
22600 2019-06-04 Alan Modra <amodra@gmail.com>
22603 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
22606 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22608 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
22609 * config/rs6000/rs6000.c (direct_move_p): Adjust.
22610 (rs6000_secondary_reload_simple_move): Adjust.
22611 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22612 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22613 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22616 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22617 (floatunssi<mode>2_lfiwzx): Adjust.
22618 (fix_trunc<mode>si2_stfiwx): Adjust.
22619 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22620 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22621 (mfpgpr): Mark as deprecated.
22622 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22623 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22624 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22626 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22628 * config/rs6000/constraints.md (define_register_constraint "wg"):
22630 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22631 RS6000_CONSTRAINT_wg.
22632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22633 (rs6000_init_hard_regno_mode_ok): Adjust.
22634 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22635 Delete "wg" alternatives.
22636 * doc/md.texi (Machine Constraints): Adjust.
22638 2019-06-03 Alan Modra <amodra@gmail.com>
22640 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22641 (get_uncond_jump_length): Assert length less than INT_MAX and
22644 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22646 PR middle-end/64242
22647 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22649 (expand_builtin_nonlocal_goto): Likewise.
22651 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22653 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22654 (aarch64_asm_output_external): Declare.
22655 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22656 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22657 (aarch64_asm_output_alias): New.
22658 (aarch64_asm_output_external): New.
22659 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22660 (ASM_OUTPUT_EXTERNAL): Define.
22662 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22663 * tree-vrp.h (value_range_base::nonzero_p): New.
22664 (value_range_base::set_nonnull): Rename to...
22665 (value_range_base::set_nonzero): ...this.
22666 (value_range_base::set_null): Rename to...
22667 (value_range_base::set_zero): ...this.
22668 (value_range::set_nonnull): Remove.
22669 (value_range::set_null): Remove.
22670 * tree-vrp.c (range_is_null): Remove.
22671 (range_is_nonnull): Remove.
22672 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22673 instead of range_is_*null.
22674 (extract_range_from_unary_expr): Same.
22675 (value_range_base::set_nonnull): Rename to...
22676 (value_range_base::set_nonzero): ...this.
22677 (value_range::set_nonnull): Remove.
22678 (value_range_base::set_null): Rename to...
22679 (value_range_base::set_zero): ...this.
22680 (value_range::set_null): Remove.
22681 (extract_range_from_binary_expr): Rename set_*null uses to
22683 (extract_range_from_unary_expr): Same.
22684 (union_helper): Same.
22685 * vr-values.c (get_value_range): Use set_*zero instead of
22687 (vr_values::extract_range_from_binary_expr): Same.
22688 (vr_values::extract_range_basic): Same.
22690 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22693 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22695 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22697 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22698 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22700 (aarch64_<su>abd<mode>_3): ... This.
22701 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22703 2019-06-03 Richard Biener <rguenther@suse.de>
22705 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22706 full reference tree and record in ref->ref.
22707 (vn_reference_lookup_3): Pass in original ref to
22708 ao_ref_init_from_vn_reference.
22709 (vn_reference_lookup): Likewise.
22710 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22711 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22712 Handle non-decl bases in the original reference.
22714 2019-06-03 Martin Liska <mliska@suse.cz>
22716 * doc/generic.texi: Remove Java Trees.
22718 2019-06-03 Martin Liska <mliska@suse.cz>
22720 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22721 returns 0 when operands are equal.
22723 2019-06-03 Richard Biener <rguenther@suse.de>
22725 PR tree-optimization/90716
22726 * tree-loop-distribution.c (destroy_loop): Process blocks in
22729 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22732 * vector-builder.h (vector_builder::count_dups): New method.
22733 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22735 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22736 (vec_init<mode><Vel>): New pattern.
22737 * config/aarch64/aarch64.c (emit_insr): New function.
22738 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22739 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22740 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22741 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22743 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22745 PR tree-optimization/90681
22746 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22747 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22748 special case for SLP, but fail on non-groupped loads.
22750 2019-06-03 Martin Liska <mliska@suse.cz>
22752 * cfg.c (debug): Use TDF_DETAILS for debug and
22753 print edge info only once.
22755 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22758 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22760 2019-06-01 Martin Sebor <msebor@redhat.com>
22762 PR middle-end/90694
22763 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22765 2019-05-31 Jan Hubicka <jh@suse.cz>
22767 * alias.c: Include ipa-utils.h.
22768 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22769 * ipa-devirt.c (prevailing_odr_type): New.
22770 * ipa-utils.h (previaling_odr_type): Declare.
22772 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22773 Hongtao Liu <hongtao.liu@intel.com>
22776 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22777 NOTE_INSN_DELETED_LABEL check.
22779 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22780 Robert Suchanek <robert.suchanek@mips.com>
22782 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22783 and 3rd operands of the fmadd/fmsub/maddv builtin.
22785 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22787 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22788 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22789 on OMP_SIMD if not nested inside of worksharing loop that also has
22790 lastprivate conditional clause for the same decl.
22791 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22792 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22794 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22796 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22798 (lower_lastprivate_clauses): Likewise.
22799 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22800 calling lower_rec_input_clauses.
22801 (lower_omp_for): Likewise.
22802 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22803 clause on simd construct.
22804 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22805 OMP_CLAUSE__CONDTEMP_ clause is present.
22807 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22810 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22813 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22814 TEX_D32, TEX_D64 or TEX_D128.
22816 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22818 * match.pd (~(vec?cst1:cst2)): New transformation.
22820 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22822 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22823 ((size_t)(A /[ex] B) CMP C): New transformation.
22825 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22827 * doc/md.texi: Document define_insn_and_rewrite.
22828 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22829 * gensupport.c (queue_elem): Update comment.
22830 (replace_operands_with_dups): New function.
22831 (gen_rewrite_sequence): Likewise.
22832 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22833 * read-rtl.c (apply_subst_iterator): Likewise.
22834 (add_condition_to_rtx, named_rtx_p): Likewise.
22835 (rtx_reader::read_rtx_operand): Likewise.
22836 * config/aarch64/aarch64-sve.md
22837 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22838 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22839 define_insn_and_rewrite.
22840 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22841 Remove separate define_split.
22843 2019-05-31 Jan Hubicka <jh@suse.cz>
22845 * tree-ssa-alias.c (type_has_components_p): New function.
22846 (aliasing_component_refs_p): Use it.
22848 2019-05-31 Martin Liska <mliska@suse.cz>
22850 * gdbhooks.py: Add const_tree to TreePrinter.
22852 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22855 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22856 * doc/invoke.texi (Debugging Options): Document new default of
22857 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22859 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22861 PR tree-optimization/90671
22862 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22863 template_block used to be empty on the first call, don't use
22864 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22865 seq with bb_seq and set it with set_bb_seq.
22867 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22869 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22871 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22872 Michael Meissner <meissner@linux.ibm.com>
22874 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22875 (prefixed_mem_operand): Likewise.
22876 (non_prefixed_mem_operand): Likewise.
22877 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22879 * config/rs6000/rs6000.c (print_operand_address): Handle
22880 PC-relative addresses.
22881 (mode_supports_prefixed_address_p): New function.
22882 (rs6000_prefixed_address): New function.
22883 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22884 (SYMBOL_REF_PCREL_P): Likewise.
22886 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22888 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22889 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22890 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22891 is nested inside of parallel region, add _condtemp_ clause to both.
22892 * tree-nested.c (convert_nonlocal_omp_clauses,
22893 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22895 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22897 * omp-general.c (omp_extract_for_data): Compute it.
22898 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22899 (lower_rec_input_clauses): Likewise.
22900 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22901 clause is already present, just add one further one after it.
22902 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22903 (lower_send_shared_vars): Clear _condtemp_ vars.
22904 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22905 or section or taskgroup.
22906 * omp-expand.c (determine_parallel_type): Disallow combining only if
22907 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22908 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22909 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22910 expand_omp_for_static_chunk, expand_omp_for): Use
22911 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22912 determine if a special set of API routines are needed and if condtemp
22913 needs to be initialized, while always initialize cond_var if
22914 fd->lastprivate_conditional is non-zero.
22916 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22917 Michael Meissner <meissner@linux.ibm.com>
22919 * config/rs6000/constraints.md (eI): New constraint.
22920 * config/rs6000/predicates.md (cint34_operand): New predicate.
22921 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22922 (SIGNED_34BIT_OFFSET_P): Likewise.
22923 * doc/md.texi (eI): Document constraint.
22925 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22927 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22929 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22930 Michael Meissner <meissner@linux.ibm.com>
22932 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22933 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22934 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22935 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22936 (OTHER_FUTURE_MASKS): Likewise.
22937 (POWERPC_MASKS): Likewise.
22938 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22939 specified without -mprefixed-addr or -mcpu=future. Error if
22940 -mprefixed-addr is specified without -mcpu=future.
22941 (rs6000_opt_masks): Add entry for prefixed-addr.
22942 * rs6000.opt (mprefixed-addr): New option.
22944 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22946 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22947 cfun->is_thunk check.
22949 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22951 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22954 2019-05-30 Martin Liska <mliska@suse.cz>
22956 * gdbinit.in: Fix 'ptc' command. Add trt
22957 that prints TREE_TYPE($).
22959 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22960 Alan Modra <amodra@gmail.com>
22962 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22964 (rs6000_indirect_call_template_1): ...and here.
22965 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22966 plt16_ha, plt16_lo, mtctr indirect calls. Use
22967 rs6000_pltseq_enum.
22968 (rs6000_decl_ok_for_sibcall): New function.
22969 (rs6000_function_ok_for_sibcall): Refactor.
22970 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22971 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22972 when pcrel. Reorganize.
22973 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22974 * rs6000.h (rs6000_pltseq_enum): New enum.
22975 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22976 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22977 (*pltseq_plt16_ha): Likewise.
22978 (*pltseq_plt16_lo): Likewise.
22979 (*pltseq_mtctr): Likewise.
22980 (*pltseq_plt_pcrel): New insn.
22981 (*call_local_aix): Handle @notoc calls.
22982 (*call_value_local_aix): Likewise.
22983 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22984 (*call_value_nonlocal_aix): Likewise.
22985 (*call_indirect_pcrel): New insn.
22986 (*call_value_indirect_pcrel): Likewise.
22988 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22990 * config/i386/sse.md (*save_multiple<mode>): Rename from
22991 save_multiple<mode>.
22992 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22993 (*restore_multiple_and_return<mode>): Rename from
22994 restore_multiple_and_return<mode>.
22995 (*restore_multiple_leave_return<mode>): Rename from
22996 restore_multiple_leave_return<mode>.
22998 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
23000 * config.gcc (rx-*-linux*): New target.
23001 * config/rx/elf.opt: New file.
23002 * config/rx/linux.h: Likewise.
23003 * config/rx/t-linux: Likewise.
23004 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
23006 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
23007 (ASM_APP_OFF): Likewise.
23008 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
23011 2019-05-29 Jan Hubicka <jh@suse.cz>
23013 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
23014 variants are pointer equivalent.
23016 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23018 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
23019 * config/aarch64/aarch64-sve2.md: New file.
23020 (<u>avg<mode>3_floor): New pattern.
23021 (<u>avg<mode>3_ceil): Likewise.
23022 (*<sur>h<addsub><mode>): Likewise.
23023 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
23024 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
23026 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23029 * optc-save-gen.awk: In cl_optimization_print, use correct condition
23030 for var_opt_string printing. In cl_optimization_print_diff, print
23031 (null) instead of invoking undefined behavior if one of the
23032 var_opt_string pointers is NULL and use && instead of first || in the
23033 guarding condition. For var_target_other options, handle const char *
23034 target variables similarly to const char * optimize node variables.
23036 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
23038 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
23039 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
23040 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
23041 Add autib1716 and pacib1716 initialisation.
23042 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
23043 for autib1716 and pacib1716.
23044 * config/aarch64/aarch64-protos.h (aarch64_key_type,
23045 aarch64_post_cfi_startproc): Define.
23046 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
23047 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
23048 aarch64_handle_pac_ret_protection): Set default sign key to A.
23049 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
23050 aarch64_expand_prologue): Add check for b-key.
23051 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
23052 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
23053 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
23054 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
23055 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
23056 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
23057 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23058 * config/aarch64/aarch64.md (do_return): Add check for b-key.
23059 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23060 pauth_hint_num_a with pauth_hint_num.
23061 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23062 pauth_hint_num_a with pauth_hint_num.
23063 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23064 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23065 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23066 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23067 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23068 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23069 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23070 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23071 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23072 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23073 UNSPEC_AUTIA1716 respectively.
23074 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23075 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23076 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23077 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23078 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23079 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23081 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23083 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23084 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23085 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23086 explicit clause on combined parallel into implicit shared clause.
23087 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23088 and firstprivate if the decl has one too from combined parallel to
23089 the worksharing construct.
23091 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23092 Michael Meissner <meissner@linux.ibm.com>
23094 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23096 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23098 * rtl.h (LABEL_REF_P): New #define.
23100 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23102 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23104 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23106 * internal-fn.c: Marked mask_load_direct as vectorizable.
23107 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23108 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23109 combined even if masks different with allow_slp_p param.
23110 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23111 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23112 dissolve SLP-only vectorizable groups when SLP has been discarded.
23113 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23114 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23116 (vect_build_slp_tree_1): Fixed comment typo.
23117 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23118 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23119 loads for SLP only.
23120 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23122 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23124 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23126 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23127 Remove obsolete use_thunk reference.
23128 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23129 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23130 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23131 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23132 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23133 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23134 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23135 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23136 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23138 2019-05-28 Nathan Sidwell <nathan@acm.org>
23140 * tree.h (IDENTIFIER_ANON_P): New.
23141 (anon_aggrname_format, anon_aggname_p): Don't declare.
23142 (make_anon_name): Declare.
23143 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23144 (hash_tree): Likewise.
23145 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23146 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23147 (anon_cnt, make_anon_name): New.
23149 2019-05-28 Martin Liska <mliska@suse.cz>
23152 * opts-global.c (decode_options): Print help for all
23153 help_option_arguments.
23154 * opts.c (print_help): Add new argument.
23155 (common_handle_option): Remember all values into
23156 help_option_arguments.
23157 * opts.h (print_help): Add new argument.
23159 2019-05-28 Martin Liska <mliska@suse.cz>
23162 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23163 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23164 (func_checker::compare_bb): Call compare_loops.
23166 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23168 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23169 on sections construct.
23170 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23172 (lower_omp_sections): Handle lastprivate conditional.
23173 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23174 lastprivate_conditional_map.
23175 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23177 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23178 critical, taskgroup and section regions when looking for a region
23179 with non-NULL lastprivate_conditional_map.
23181 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23183 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23184 (*ix86_gen_sub3): Ditto.
23185 (*ix86_gen_sub3_carry): Ditto.
23186 (*ix86_gen_one_cmpl2): Ditto.
23187 (*ix86_gen_andsp): Ditto.
23188 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23189 (gen_and2_insn): New static function.
23190 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23191 Use gen_add3_insn instead of ix86_gen_add3.
23192 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23193 instead of ix86_gen_add3.
23194 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23195 Use gen_sub3_insn instead of ix86_gen_sub3.
23196 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23197 instead of ix86_gen_add3.
23198 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23199 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23200 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23201 * config/i386/i386-options.c (ix86_option_override_internal):
23202 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23203 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23205 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23207 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23208 and DW_OP_GNU_const_index opcodes.
23210 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23212 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23214 2019-05-27 Richard Biener <rguenther@suse.de>
23216 PR tree-optimization/90637
23217 * tree-ssa-sink.c (statement_sink_location): Honor the
23218 computed sink location for single-uses.
23220 2019-05-27 Richard Biener <rguenther@suse.de>
23222 PR middle-end/90610
23223 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23226 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23228 * config/i386/i386.md (@sub<mode>3_carry): Rename
23229 from sub<mode>3_carry.
23230 (@leave_<mode>): New expander.
23231 (*leave): Rename from leave.
23232 (*leave_rex64): Rename from leave_rex64.
23233 (@monitorx_<mode>): Rename from monitorx_<mode>.
23234 (@clzero_<mode>): Rename from clzero_<mode>.
23235 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23236 from sse3_monitor_<mode>.
23237 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23238 (*ix86_gen_leave): Ditto.
23239 (*ix86_gen_monitor): Ditto.
23240 (*ix86_gen_monitorx): Ditto.
23241 (*ix86_gen_clzero): Ditto.
23242 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23243 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23244 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23245 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23246 Use gen_sse3_monitor instead of ix86_gen_monitor.
23247 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23248 instead of ix86_gen_monitorx.
23249 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23250 instead of ix86_gen_clzero.
23251 * config/i386/i386-options.c (ix86_option_override_internal):
23252 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23253 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23255 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23257 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
23258 Rename from tls_global_dynamic_64_<mode>.
23259 (@tls_local_dynamic_base_64_<mode>): Rename from
23260 tls_local_dynamic_base_64_<mode>.
23261 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
23262 Remove indirect function.
23263 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
23264 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
23265 instead of ix86_gen_tls_global_dynamic_64.
23266 Use gen_tls_local_dynamic_base_64 instead of
23267 ix86_gen_tls_local_dynamic_base_64.
23268 * config/i386/i386-options.c (ix86_option_override_internal):
23269 Do not initialize ix86_gen_tls_global_dynamic_64 and
23270 ix86_gen_tls_local_dynamic_base_64.
23272 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23274 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
23275 Rename from pro_epilogue_adjust_stack_<mode>_add.
23276 (@pro_epilogue_adjust_stack_sub_<mode>)
23277 Rename from pro_epilogue_adjust_stack_<mode>_sub.
23278 (@allocate_stack_worker_probe_<mode>):
23279 Rename from allocate_stack_worker_probe_<mode>.
23280 (allocate_stack): Use gen_allocate_stack_worker_probe.
23281 (probe_stack): Use gen_probe_stack_1.
23282 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
23283 (@adjust_stack_and_probe_<mode>): Rename from
23284 adjust_stack_and_probe<mode>.
23285 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
23286 (stack_protect_set): Use gen_stack_protect_set_1.
23287 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
23288 (stack_protect_test): Use gen_stack_protect_test_1.
23289 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
23290 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
23291 Remove indirect function.
23292 (*ix86_gen_adjust_stack_and_probe): Ditto.
23293 (*ix86_gen_probe_stack_range): Ditto.
23294 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
23295 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
23296 (ix86_adjust_stack_and_probe_stack_clash): Use
23297 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
23298 (ix86_adjust_stack_and_probe): Ditto.
23299 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
23300 of ix86_gen_probe_stack_range.
23301 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
23302 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
23303 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
23304 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
23305 CODE_FOR_stack_protect_test_{si,di}.
23306 * config/i386/i386-options.c (ix86_option_override_internal):
23307 Do not initialize ix86_gen_allocate_stack_worker,
23308 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
23310 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
23312 * doc/invoke.texi (Link Options): Many editorial changes around
23315 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23317 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
23318 pre-Solaris 11 referene and most Studio compiler details.
23320 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
23323 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
23324 DImode to SImode in floating-point registers on 64-bit target.
23325 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
23326 register_operand in xmpyu patterns.
23328 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23330 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
23331 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
23332 OMP_CLAUSE__REDUCTEMP_.
23333 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23334 OMP_CLAUSE__CONDTEMP_.
23335 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
23336 * tree-pretty-print.c (dump_omp_clause): Likewise.
23337 * tree-nested.c (convert_nonlocal_omp_clauses,
23338 convert_local_omp_clauses): Likewise.
23339 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
23340 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
23341 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
23343 (gimplify_omp_for): Warn and disable conditional modifier from
23344 lastprivate on loop iterators.
23345 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
23347 * omp-general.c (omp_extract_for_data): Initialize it.
23348 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
23350 (delete_omp_context): Delete it.
23351 (lower_lastprivate_conditional_clauses): New function.
23352 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
23353 handle lastprivate conditional clauses.
23354 (lower_reduction_clauses): Add CLIST argument, emit it into
23355 the critical section if any.
23356 (lower_omp_sections): Adjust lower_lastprivate_clauses and
23357 lower_reduction_clauses callers.
23358 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
23359 to lower_lastprivate_clauses.
23360 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
23361 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
23362 clist into a critical section if not emitted there already by
23363 lower_reduction_clauses.
23364 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
23366 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
23367 conditional variables.
23368 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
23370 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23371 expand_omp_for_static_chunk): Handle lastprivate conditional.
23372 (expand_omp_for): Handle fd.lastprivate_conditional like
23375 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23377 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
23378 kernel does not exit cleanly.
23379 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
23381 2019-05-24 Jason Merrill <jason@redhat.com>
23384 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23386 2019-05-24 Richard Biener <rguenther@suse.de>
23389 * tree-loop-distribution.c (struct partition): Add location
23391 (partition_alloc): Initialize all fields.
23392 (generate_memset_builtin): Use the location recorded in the
23393 partition for the generated call.
23394 (generate_memcpy_builtin): Likewise.
23395 (classify_partition): Record the location of a single store
23396 as location for the partition.
23398 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23400 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
23403 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
23406 * common/config/aarch64/aarch64-common.c
23407 (aarch64_rewrite_selected_cpu): Change local temporary variable
23408 type from unsigned long to uint64_t.
23409 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
23410 aarch64_get_extension_string_for_isa_flags): Change declaration to
23411 match new definition by replacing unsigned long with uint64_t.
23413 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23416 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
23417 gen_attr_type just once instead of 4-7 times. Formatting fixes.
23418 Handle stack_protect_test_<mode> codegen similarly to corresponding
23421 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
23423 * config/i386/darwin.h: Reject -mfentry*.
23424 * doc/sourcebuild.texi: Document mfentry target support.
23426 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23428 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23429 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23430 false for PC-relative functions.
23431 (rs6000_output_function_prologue): Change called function name to
23432 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23433 name,1" for PC-relative functions.
23434 (rs6000_elf_declare_function_name): Change called function name to
23435 rs6000_global_entry_point_prologue_needed_p.
23437 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23440 * config/i386/i386.c (gen_rtx_cost):
23441 Use ix86_tune_cost instead of ix86_cost.
23443 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23444 Michael Meissner <meissner@linux.ibm.com>
23445 Segher Boessenkool <segher@kernel.crashing.org>
23447 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23449 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23450 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23451 (rs6000_fndecl_pcrel_p): Likewise.
23452 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23453 error if -mpcrel is requested without -mcpu=future.
23454 (rs6000_opt_masks): Add entry for pcrel.
23455 (rs6000_fndecl_pcrel_p): New function.
23456 (rs6000_pcrel_p): Likewise.
23457 * config/rs6000/rs6000.opt (mpcrel): New option.
23458 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23460 2019-05-23 Jan Hubicka <jh@suse.cz>
23461 Martin Liska <mliska@suse.cz>
23463 PR tree-optimization/90576
23464 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23466 (aliasing_component_refs_p): Fix three way size compare conditional;
23467 give up earlier in case we can not decide on equivalence.
23469 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23470 Michael Meissner <meissner@linux.ibm.com>
23471 Segher Boessenkool <segher@kernel.crashing.org>
23473 * config.gcc: Add future cpu.
23474 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
23475 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
23477 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
23478 (RS6000_CPU): New instantiation for future cpu.
23479 * config/rs6000/rs6000-opts.h (enum processor_type): Add
23481 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23482 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
23483 * config/rs6000/rs6000-tables.opt: Regenerate.
23484 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
23485 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
23486 (rs6000_machine_from_flags): Handle future cpu.
23487 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
23488 PROCESSOR_POWER9 for now.
23489 (rs6000_adjust_cost): Likewise.
23490 (rs6000_issue_rate): Likewise.
23491 (rs6000_register_move_cost): Likewise.
23492 (rs6000_opt_masks): Add entry for future.
23493 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
23494 (MASK_FUTURE): New #define.
23495 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
23496 * config/rs6000/rs6000.opt (mfuture): New target option.
23497 * doc/invoke.texi (mcpu): Add future cpu.
23499 2019-05-23 Martin Liska <mliska@suse.cz>
23502 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
23503 operation points to a temporary (pointed via tree_to_wide_ref)
23504 that is out of scope after the &.
23506 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
23509 * doc/extend.texi (Function Names): Add missing word.
23511 2019-05-23 Richard Biener <rguenther@suse.de>
23513 PR tree-optimization/88440
23514 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
23516 * tree-loop-distribution.c (generate_memset_builtin): Fold the
23518 (generate_memcpy_builtin): Likewise.
23519 (distribute_loop): Pass in whether to only distribute patterns.
23520 (prepare_perfect_loop_nest): Also allow size optimization.
23521 (pass_loop_distribution::execute): When optimizing a loop
23522 nest for size allow pattern replacement.
23524 2019-05-23 Jakub Jelinek <jakub@redhat.com>
23527 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
23530 2019-05-23 Martin Liska <mliska@suse.cz>
23533 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
23534 expression similarly to gimplify_decl_expr.
23536 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23538 * cse.c (cse_dump_path): s/dump_file/f.
23540 2019-05-22 David Malcolm <dmalcolm@redhat.com>
23543 * diagnostic-format-json.cc: Include "selftest.h".
23544 (json_from_expanded_location): Only add "file" key for non-NULL
23546 (json_from_location_range): Don't add "start" and "finish"
23547 children if they are UNKNOWN_LOCATION.
23548 (selftest::test_unknown_location): New selftest.
23549 (selftest::test_bad_endpoints): New selftest.
23550 (selftest::diagnostic_format_json_cc_tests): New function.
23551 * json.cc (json::object::get): New function.
23552 (selftest::test_object_get): New selftest.
23553 (selftest::json_cc_tests): Call it.
23554 * json.h (json::object::get): New decl.
23555 * selftest-run-tests.c (selftest::run_tests): Call
23556 selftest::diagnostic_format_json_cc_tests.
23557 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
23560 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
23561 Andrew Stubbs <amd@codesourcery.com>
23563 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
23564 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
23565 (kernel): Rename to...
23566 (main_kernel): ... this.
23567 (load_image): Load _init_array and _fini_array kernels.
23568 (run): Add argument for kernel to run.
23569 (main): Run init_array_kernel before main_kernel, and
23570 fini_array_kernel after.
23571 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
23572 amdgpu_hsa_kernel attribute on functions.
23573 (gcn_disable_constructors): Delete.
23574 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
23575 * config/gcn/crt0.c (size_t): Define.
23576 (_init_array, _fini_array): New.
23577 (__preinit_array_start, __preinit_array_end,
23578 __init_array_start, __init_array_end,
23579 __fini_array_start, __fini_array_end): Declare weak references.
23581 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
23583 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
23585 2019-05-22 Jason Merrill <jason@redhat.com>
23587 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23589 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
23592 * config/i386/i386-options.c (ix86_init_machine_status): Set
23593 stack_frame_required to true.
23594 * config/i386/i386.c (ix86_get_frame_size): New function.
23595 (ix86_frame_pointer_required): Replace get_frame_size with
23596 ix86_get_frame_size.
23597 (ix86_compute_frame_layout): Likewise.
23598 (ix86_find_max_used_stack_alignment): Changed to void. Set
23599 stack_frame_required.
23600 (ix86_finalize_stack_frame_flags): Always call
23601 ix86_find_max_used_stack_alignment. Replace get_frame_size with
23602 ix86_get_frame_size.
23603 * config/i386/i386.h (machine_function): Add stack_frame_required.
23605 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23607 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
23609 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
23611 * common/config/aarch64/aarch64-common.c
23612 (struct aarch64_option_extension, struct processor_name_to_arch,
23613 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23614 aarch64_contains_opt,
23615 aarch64_get_extension_string_for_isa_flags): Change type of
23616 variables storing flags to uint64_t.
23617 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23618 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23619 * config/aarch64/aarch64.c (struct processor,
23620 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23621 aarch64_validate_march, aarch64_override_options,
23622 aarch64_option_print, aarch64_handle_attr_isa_flags,
23623 aarch64_declare_function_name, aarch64_start_file): Make flag
23624 variables uint64_t.
23625 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23626 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23627 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23628 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23629 * config/aarch64/driver-aarch64.c
23630 (struct aarch64_arch_extension, struct aarch64_core_data,
23631 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23632 flag variables uint64_t.
23633 * doc/invoke.texi: Add documentation for new arguments.
23635 2019-05-22 Richard Biener <rguenther@suse.de>
23637 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23639 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23641 2019-05-22 Martin Liska <mliska@suse.cz>
23644 * doc/extend.texi: Document the change.
23646 2019-05-22 Richard Biener <rguenther@suse.de>
23648 PR tree-optimization/90450
23649 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23650 (mem_ref_hasher::equal): Check it.
23651 (mem_ref_alloc): Initialize it.
23652 (gather_mem_refs_stmt): Set it.
23654 2019-05-22 Richard Biener <rguenther@suse.de>
23656 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23658 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23661 2019-05-22 Alan Modra <amodra@gmail.com>
23663 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23664 (ASM_CPU_SPEC): Conditionally add -many.
23665 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23666 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23667 (rs6000_file_start): ..extracted from here, and modified to
23669 (rs6000_output_function_prologue): Emit .machine as necessary.
23671 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23673 PR middle-end/90553
23674 * ira-lives.c (process_bb_node_lives): Consider defs
23675 for a call insn to be die before the call, not after.
23677 * function.c (assign_parm_setup_block): Raise alignment of
23678 stacked parameter only for STRICT_ALIGNMENT targets.
23680 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23682 * config/rs6000/constraints.md (define_register_constraint "wz"):
23684 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23685 RS6000_CONSTRAINT_wz.
23686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23687 (rs6000_init_hard_regno_mode_ok): Adjust.
23688 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23689 * doc/md.texi (Machine Constraints): Adjust.
23691 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23693 * config/rs6000/constraints.md (define_register_constraint "wl"):
23695 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23696 RS6000_CONSTRAINT_wl.
23697 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23698 (rs6000_init_hard_regno_mode_ok): Adjust.
23699 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23700 * doc/md.texi (Machine Constraints): Adjust.
23702 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23704 * config/rs6000/constraints.md (define_register_constraint "wm"):
23706 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23707 RS6000_CONSTRAINT_wm.
23708 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23709 (rs6000_init_hard_regno_mode_ok): Adjust.
23710 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23711 * doc/md.texi (Machine Constraints): Adjust.
23713 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23715 * config/rs6000/constraints.md (define_register_constraint "wk"):
23717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23718 RS6000_CONSTRAINT_wk.
23719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23720 (rs6000_init_hard_regno_mode_ok): Adjust.
23721 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23722 * doc/md.texi (Machine Constraints): Adjust.
23724 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23726 * config/rs6000/constraints.md (define_register_constraint "wj"):
23728 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23729 RS6000_CONSTRAINT_wj.
23730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23731 (rs6000_init_hard_regno_mode_ok): Adjust.
23732 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23734 * config/rs6000/vsx.md: Ditto.
23735 * doc/md.texi (Machine Constraints): Adjust.
23737 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23739 * config/rs6000/constraints.md (define_register_constraint "wh"):
23741 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23742 RS6000_CONSTRAINT_wh.
23743 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23744 (rs6000_init_hard_regno_mode_ok): Adjust.
23745 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23746 * doc/md.texi (Machine Constraints): Adjust.
23748 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23751 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23752 Avoid calling gen_lowpart with CONST operand.
23754 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23756 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23757 field template_last_to_copy.
23758 (ssa_create_duplicates): Set it, and use it. Attempt to
23759 preserve more debug stmts.
23761 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23763 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23764 (signbit<mode>2): New expander
23766 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23769 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23770 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23772 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23774 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23775 %ebx and %ecx bafore calling cpuid with leaf 1 or
23776 non-constant leaf argument.
23778 2019-05-21 Alan Modra <amodra@gmail.com>
23781 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23782 power9 direct move cost.
23784 2019-05-21 Richard Biener <rguenther@suse.de>
23786 PR middle-end/90510
23787 * fold-const.c (fold_read_from_vector): New function.
23788 * fold-const.h (fold_read_from_vector): Declare.
23789 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23790 single-element insert permutations. Canonicalize selector
23791 further and fix issue with last commit.
23793 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23795 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23796 parameter with default value false to declaration.
23797 (split_edges_for_insertion): New inline function. Wrapper for
23798 split_critical_edges with for_edge_insertion_p = true.
23799 * tree-cfg.c (split_critical_edges): Don't split non-critical
23800 edges if for_edge_insertion_p is false. Fix whitespace.
23801 * tree-ssa-pre.c (pass_pre::execute): Call
23802 split_edges_for_insertion instead of split_critical_edges.
23803 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23804 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23805 (pass_data_sink_code): Update function name in the comment.
23807 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23809 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23810 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23811 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23812 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23815 2019-05-21 Martin Liska <mliska@suse.cz>
23817 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23819 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23820 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23822 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23824 (rs6000_function_arg): Likewise.
23825 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23826 (rs6000_expand_ternop_builtin): Use interval syntax.
23827 (get_element_number): Likewise.
23828 (altivec_expand_builtin): Likewise.
23829 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23831 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23835 * function.h (struct function): Add calls_eh_return member.
23836 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23837 gimplifying __builtin_eh_return call.
23838 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23840 (expand_call_inline): Or in src_cfun->calls_eh_return into
23841 dst_cfun->calls_eh_return.
23842 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23843 cfun->calls_eh_return.
23844 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23845 * lto-streamer-out.c (output_struct_function_base): Write
23848 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23850 PR rtl-optimization/43147
23851 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23852 IX86_BUILTIN_SHUFPD.
23854 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23856 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23857 (refs_may_alias_p_1): ... here; update stats.
23858 (refs_may_alias_p): Do not update stats here.
23860 2019-05-20 Richard Biener <rguenther@suse.de>
23862 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23863 doesn't produce pointers.
23864 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23865 the first operand points to.
23867 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23869 * tree-ssa-alias.c (compare_sizes): New function.
23870 (sompare_type_sizes): New function
23871 (aliasing_component_refs_p): Use it.
23872 (indirect_ref_may_alias_decl_p): Likewise.
23874 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23876 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23878 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23880 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23881 (LIBLSAN_EARLY_SPEC): Likewise.
23882 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23884 2019-05-20 Martin Liska <mliska@suse.cz>
23886 * config/i386/i386.c (ix86_libc_has_fast_function):
23887 Add ATTRIBUTE_UNUSED for the argument.
23889 2019-05-20 Richard Biener <rguenther@suse.de>
23891 * gimple-match-head.c: Include vec-perm-indices.h.
23892 * generic-match-head.c: Likewise.
23893 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23895 * fold-const.c (fold_vec_perm): Export.
23896 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23897 (match.pd): ...here.
23899 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23901 * cfgloop.h (struct loop): Add simdlen member.
23902 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23903 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23904 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23905 as new argument to autovectorize_vector_sizes target hook. If
23906 loop->simdlen, pick up vector size where the vectorization factor
23907 is equal to loop->simd, and if there is none, fall back to the first
23909 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23911 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23912 * omp-general.c (omp_max_vf): Likewise.
23913 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23914 * tree-vect-slp.c (vect_slp_bb): Likewise.
23915 * target.def (autovectorize_vector_sizes): Add ALL argument and
23917 * doc/tm.texi: Adjust documentation.
23918 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23919 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23920 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23922 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23923 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23924 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23925 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23926 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23927 preferred vector size is not 512-bit or 256-bit, just put those
23928 unpreferred ones last.
23930 2019-05-20 Martin Liska <mliska@suse.cz>
23932 * targhooks.c (default_libc_has_fast_function): New function.
23933 * targhooks.h (default_libc_has_fast_function): Likewise.
23935 2019-05-20 Martin Liska <mliska@suse.cz>
23937 PR middle-end/90263
23938 * builtins.c (expand_builtin_memory_copy_args): When having a
23939 target with fast mempcpy implementation do now use memcpy.
23940 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23941 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23942 * doc/tm.texi: Likewise.
23943 * doc/tm.texi.in: Likewise.
23945 * expr.c (emit_block_move_hints): Add 2 new arguments.
23946 * expr.h (emit_block_move_hints): Bail out when libcall
23947 to memcpy would be used.
23949 2019-05-20 Martin Liska <mliska@suse.cz>
23951 * profile-count.c: Add vertical spacing in order
23952 to separate functions.
23953 * profile-count.h: Likewise.
23955 2019-05-20 Martin Liska <mliska@suse.cz>
23957 * profile-count.h: Do not use full qualified
23959 * profile-count.c (profile_count::to_frequency): Likewise.
23961 2019-05-20 Martin Liska <mliska@suse.cz>
23963 * profile-count.h (enum profile_quality): Use capital letters
23964 for enum value names. Use the adjusted names.
23965 * profile-count.c: Use the adjusted names.
23967 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23969 * config/rs6000/constraints.md (define_register_constraint "wH"):
23971 (define_register_constraint "wI"): Delete.
23972 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23973 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23975 (rs6000_init_hard_regno_mode_ok): Adjust.
23976 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23977 resp. "d", or with "wa" as appropriate, all with "p8v".
23978 * config/rs6000/vsx.md: Ditto.
23979 * doc/md.texi (Machine Constraints): Adjust.
23981 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23983 * config/rs6000/constraints.md (define_register_constraint "wy"):
23985 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23986 RS6000_CONSTRAINT_wy.
23987 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23988 (rs6000_init_hard_regno_mode_ok): Adjust.
23989 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23990 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23991 (define_mode_attr Fisa): New.
23992 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23993 * doc/md.texi (Machine Constraints): Adjust.
23995 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23997 * config/rs6000/constraints.md (define_register_constraint "wu"):
23999 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24000 RS6000_CONSTRAINT_wu.
24001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24002 (rs6000_init_hard_regno_mode_ok): Adjust.
24003 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
24005 (define_mode_attr Fa): Delete.
24006 * config/rs6000/vsx.md: Ditto.
24007 * doc/md.texi (Machine Constraints): Adjust.
24009 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24011 * config/rs6000/constraints.md (define_register_constraint "wJ"):
24013 (define_register_constraint "wK"): Delete.
24014 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24015 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
24016 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24017 (rs6000_init_hard_regno_mode_ok): Adjust.
24018 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
24019 Replace "wK" constraint by "wH" with "p9v".
24020 * config/rs6000/vsx.md: Ditto.
24021 * doc/md.texi (Machine Constraints): Adjust.
24023 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24025 * config/rs6000/constraints.md (define_register_constraint "wb"):
24027 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24028 RS6000_CONSTRAINT_wb.
24029 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24030 (rs6000_init_hard_regno_mode_ok): Adjust.
24031 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
24032 * config/rs6000/vsx.md: Ditto.
24033 * doc/md.texi (Machine Constraints): Adjust.
24035 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24037 * config/rs6000/constraints.md (define_register_constraint "wo"):
24039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24040 RS6000_CONSTRAINT_wo.
24041 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24042 (rs6000_init_hard_regno_mode_ok): Adjust.
24043 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
24044 * config/rs6000/altivec.md: Ditto.
24045 * doc/md.texi (Machine Constraints): Adjust.
24047 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24049 * config/darwin-c.c (darwin_register_objc_includes): Do not
24050 prepend the sysroot when building gnu-runtime header search
24053 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24055 * config/darwin.c (darwin_file_end): Use switch_to_section ()
24056 instead of direct output of the asm.
24058 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24060 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24061 argument to be type bool (was int before).
24062 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24063 at first use. Use type bool for some variables. Fix a theoretical
24064 eh_return bug for svr4.
24066 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24068 * config/rs6000/rs6000.md (isa): New attribute.
24069 (enabled): New attribute.
24071 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24073 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24074 assemble_start_function and assemble_end_function.
24076 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24078 PR middle-end/89433
24079 * omp-general.c (oacc_verify_routine_clauses): Change formal
24080 parameters. Add checking if already marked with an OpenACC
24081 'routine' directive. Adjust all users.
24083 PR middle-end/89433
24084 * omp-general.c (oacc_build_routine_dims): Move some of its
24086 (oacc_verify_routine_clauses): ... this new function.
24087 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24089 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24091 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24092 formating of picbase labels to match other ports.
24094 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24096 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24097 in the generated code.
24099 2019-05-16 Martin Sebor <msebor@redhat.com>
24101 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24102 identifiers, keywords, operators, and types in diagnostics. Correct
24103 quoting, spelling, and sentence capitalization issues.
24104 (expand_builtin_atomic_is_lock_free): Same.
24105 (fold_builtin_next_arg): Same.
24106 * cfgexpand.c (expand_one_var): Same.
24107 (tree_conflicts_with_clobbers_p): Same.
24108 (expand_asm_stmt): Same.
24109 (verify_loop_structure): Same.
24110 * cgraphunit.c (process_function_and_variable_attributes): Same.
24111 * collect-utils.c (collect_execute): Same.
24112 * collect2.c (maybe_run_lto_and_relink): Same.
24113 (is_lto_object_file): Same.
24114 (scan_prog_file): Same.
24115 * convert.c (convert_to_real_1): Same.
24116 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24117 * except.c (verify_eh_tree): Same.
24118 * gcc.c (execute): Same.
24119 (eval_spec_function): Same.
24120 (run_attempt): Same.
24121 (driver::set_up_specs): Same.
24122 (compare_debug_auxbase_opt_spec_function): Same.
24123 * gcov-tool.c (unlink_gcda_file): Same.
24125 (do_rewrite): Same.
24126 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24127 * gimplify.c (gimplify_asm_expr): Same.
24128 (gimplify_adjust_omp_clauses): Same.
24129 * hsa-gen.c (gen_hsa_addr_insns): Same.
24130 (gen_hsa_insns_for_load): Same.
24131 (gen_hsa_cmp_insn_from_gimple): Same.
24132 (gen_hsa_insns_for_operation_assignment): Same.
24133 (gen_get_level): Same.
24134 (gen_hsa_alloca): Same.
24135 (omp_simple_builtin::generate): Same.
24136 (gen_hsa_atomic_for_builtin): Same.
24137 (gen_hsa_insns_for_call): Same.
24138 * input.c (dump_location_info): Same.
24139 * ipa-devirt.c (compare_virtual_tables): Same.
24140 * ira.c (ira_setup_eliminable_regset): Same.
24141 * lra-assigns.c (lra_assign): Same.
24142 * lra-constraints.c (lra_constraints): Same.
24143 * lto-streamer-in.c (lto_input_mode_table): Same.
24144 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24145 (merge_and_complain): Same.
24146 (compile_offload_image): Same.
24147 (compile_images_for_offload_targets): Same.
24148 (debug_objcopy): Same.
24151 * opts.c (print_specific_help): Same.
24152 (parse_no_sanitize_attribute): Same.
24153 (print_help): Same.
24154 (handle_param): Same.
24155 * plugin.c (add_new_plugin): Same.
24156 (parse_plugin_arg_opt): Same.
24157 (try_init_one_plugin): Same.
24158 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24159 operators, and types in diagnostics. Correct quoting and spelling
24161 * read-rtl-function.c (parse_edge_flag_token): Same.
24162 (function_reader::parse_enum_value): Same.
24163 * reg-stack.c (check_asm_stack_operands): Same.
24164 * regcprop.c (validate_value_data): Same.
24165 * sched-rgn.c (make_pass_sched_fusion): Same.
24166 * stmt.c (check_unique_operand_names): Same.
24167 * targhooks.c (default_target_option_pragma_parse): Same.
24168 * tlink.c (recompile_files): Same.
24169 * toplev.c (process_options): Same.
24170 (do_compile): Same.
24171 * trans-mem.c (diagnose_tm_1): Same.
24172 (ipa_tm_scan_irr_block): Same.
24173 (ipa_tm_diagnose_transaction): Same.
24174 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24175 format a tree code name in a diagnostic.
24176 (verify_types_in_gimple_min_lval): Same.
24177 (verify_types_in_gimple_reference): Same.
24178 (verify_gimple_call): Same.
24179 (verify_gimple_assign_unary): Same.
24180 (verify_gimple_assign_binary): Same.
24181 (verify_gimple_assign_ternary): Same.
24182 (verify_gimple_assign_single): Same.
24183 (verify_gimple_switch): Same.
24184 (verify_gimple_label): Same.
24185 (verify_gimple_phi): Same.
24186 (verify_gimple_in_seq): Same.
24187 (verify_eh_throw_stmt_node): Same.
24188 (collect_subblocks): Same.
24189 (gimple_verify_flow_info): Same.
24190 (do_warn_unused_result): Same.
24191 * tree-inline.c (expand_call_inline): Same.
24192 * tree-into-ssa.c (update_ssa): Same.
24193 * tree.c (tree_int_cst_elt_check_failed): Same.
24194 (tree_vec_elt_check_failed): Same.
24195 (omp_clause_operand_check_failed): Same.
24196 (verify_type_variant): Same.
24197 (verify_type): Same.
24198 * value-prof.c (verify_histograms): Same.
24199 * varasm.c (assemble_start_function): Same.
24201 2019-05-16 Martin Sebor <msebor@redhat.com>
24203 * config/i386/i386-expand.c (get_element_number): Quote keywords
24204 and other internal names in diagnostics. Adjust other diagnostic
24205 formatting issues noted by -Wformat-diag.
24206 * config/i386/i386-features.c
24207 (ix86_mangle_function_version_assembler_name): Same.
24208 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24209 * config/i386/i386.c (ix86_function_type_abi): Same.
24210 (ix86_function_ms_hook_prologue): Same.
24211 (classify_argument): Same.
24212 (ix86_expand_prologue): Same.
24213 (ix86_md_asm_adjust): Same.
24214 (ix86_memmodel_check): Same.
24216 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24218 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24219 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24222 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24225 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24226 intrinsics without SSE/SSE2/SSSE3.
24227 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24229 (*mmx_uavgv8qi3): Likewise.
24231 2019-05-17 Richard Biener <rguenther@suse.de>
24233 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24234 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24236 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24238 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24239 vec_sldw insn pattern.
24241 2019-05-17 Richard Biener <rguenther@suse.de>
24243 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24245 2019-05-17 Martin Liska <mliska@suse.cz>
24248 * toplev.c (output_stack_usage): With LTO and sanitizer it
24249 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24250 has no file location.
24252 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24255 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24256 sz0 is equal to sz1, instead return false in that case.
24258 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
24259 has non-constant expression, force sctx.lane and use two
24260 argument IFN_GOMP_SIMD_LANE instead of single argument.
24261 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
24262 two argument IFN_GOMP_SIMD_LANE without lhs.
24263 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
24265 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
24267 (LOOP_REQUIRES_VERSIONING): Or in
24268 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
24269 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24271 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
24272 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
24273 from simd if clause if needed.
24275 2019-05-16 Richard Biener <rguenther@suse.de>
24277 * tree-affine.c (expr_to_aff_combination): New function split
24279 (tree_to_aff_combination): ... here.
24280 (aff_combination_expand): Avoid building a GENERIC tree.
24282 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
24284 * cgraphunit.c (cgraph_node::expand_thunk): Remove
24285 assemble_start_function and assemble_end_function calls.
24286 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
24287 assemble_start_function and assemble_end_function.
24288 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
24289 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
24290 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
24291 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
24292 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
24293 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
24294 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
24295 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
24296 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24297 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24298 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
24299 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
24301 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
24302 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
24303 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
24304 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
24305 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24306 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24307 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
24308 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
24309 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24310 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24311 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24312 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24313 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
24314 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
24316 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24317 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24318 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
24320 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
24322 * tree-ssa-alias.c (alias_stats): Add
24323 aliasing_component_refs_p_may_alias and
24324 aliasing_component_refs_p_no_alias.
24325 (dump_alias_stats): Print aliasing_component_refs_p stats.
24326 (aliasing_component_refs_p): Update stats.
24328 2019-05-16 Martin Liska <mliska@suse.cz>
24331 * multiple_target.c (expand_target_clones): Do not allow
24332 target_clones being used with a symbol that is an alias.
24334 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
24336 PR tree-optimization/90394
24337 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
24338 positives rather than ICE for cases where (code2 == NE_EXPR
24339 && code1 == BIT_AND_EXPR).
24341 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24344 * tree-core.h (struct tree_decl_common): Document
24345 decl_nonshareable_flag for PARM_DECLs.
24346 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
24347 * calls.c (expand_call): Don't try tail call if caller
24348 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
24349 passed on the stack and callee needs to pass any arguments on the
24351 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24352 else if instead of series of mutually exclusive ifs. Handle
24353 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
24354 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24356 * lto-streamer.h (LTO_major_version): Bump to 9.
24358 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
24360 PR tree-optimization/90106
24361 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
24362 new parameter as new internal function call, also move it to new
24364 (use_internal_fn): Pass internal function call to
24365 shrink_wrap_one_built_in_call_with_conds.
24367 2019-05-15 Jakub Jelinek <jakub@redhat.com>
24369 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
24371 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
24372 safelen_int and set loop->dont_vectorize.
24374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24377 * config/i386/i386-builtin.def: Enable MMX intrinsics with
24379 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24381 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
24382 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
24383 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
24386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24389 * config/i386/mmx.md (*vec_dupv2sf): Changed to
24390 define_insn_and_split to support SSE emulation.
24391 (*vec_extractv2sf_0): Likewise.
24392 (*vec_extractv2sf_1): Likewise.
24393 (*vec_extractv2si_0): Likewise.
24394 (*vec_extractv2si_1): Likewise.
24395 (*vec_extractv2si_zext_mem): Likewise.
24396 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
24397 (vec_extractv2sf_1 splitter): Likewise.
24398 (vec_extractv2sfsf): Likewise.
24399 (vec_setv2si): Likewise.
24400 (vec_extractv2si_1 splitter): Likewise.
24401 (vec_extractv2sisi): Likewise.
24402 (vec_setv4hi): Likewise.
24403 (vec_extractv4hihi): Likewise.
24404 (vec_setv8qi): Likewise.
24405 (vec_extractv8qiqi): Likewise.
24406 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24407 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
24408 (vec_extractv2sisi): Likewise.
24409 (vec_extractv4hihi): Likewise.
24410 (vec_extractv8qiqi): Likewise.
24411 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24412 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
24413 (vec_initv2sisi): Likewise.
24414 (vec_initv4hihi): Likewise.
24415 (vec_initv8qiqi): Likewise.
24416 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
24417 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
24418 (vec_setv4hi): Likewise.
24419 (vec_setv8qi): Likewise.
24421 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24424 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
24425 TARGET_MMX_WITH_SSE.
24426 (MMXMODE:*mov<mode>_internal): Likewise.
24427 (MMXMODE:movmisalign<mode>): Likewise.
24429 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24432 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24433 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24434 (sse2_cvtpd2pi): Ditto.
24435 (sse2_cvttpd2pi): Ditto.
24436 (*vec_concatv2sf_sse4_1): Ditto.
24437 (*vec_concatv2sf_sse): Ditto.
24438 (*vec_concatv2si_sse4_1): Ditto.
24439 (*vec_concatv2si): Ditto.
24440 (*vec_concatv4si_0): Ditto.
24441 (*vec_concatv2di_0): Ditto.
24443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24446 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24448 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24451 * config/i386/sse.md (ssse3_palignrdi): Changed to
24452 define_insn_and_split to support SSE emulation.
24454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24457 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24462 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24463 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24466 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24469 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24470 or TARGET_MMX_WITH_SSE.
24471 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
24473 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24476 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
24478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24481 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
24482 Changed to define_insn_and_split to support SSE emulation.
24484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24487 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
24488 Changed to define_insn_and_split to support SSE emulation.
24490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24493 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
24494 (*mmx_<emms>): This.
24495 (mmx_<emms>): New expander.
24497 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24500 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
24502 (*sse2_umulv1siv1di3): Add SSE2 emulation.
24504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24507 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
24509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24512 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
24514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24517 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
24518 TARGET_MMX_WITH_SSE.
24519 (*mmx_uavgv4hi3): Add SSE emulation.
24521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24524 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
24525 and TARGET_MMX_WITH_SSE.
24526 (*mmx_uavgv8qi3): Add SSE emulation.
24528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24531 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
24532 maskmovdqu for __MMX_WITH_SSE__.
24534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24537 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
24538 TARGET_MMX and TARGET_MMX_WITH_SSE.
24539 (*mmx_umulv4hi3_highpart): Add SSE emulation.
24541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24544 * config/i386/mmx.md (mmx_pmovmskb): Changed to
24545 define_insn_and_split to support SSE emulation.
24547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24550 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
24551 and TARGET_MMX_WITH_SSE.
24552 (mmx_<code>v8qi3): Likewise.
24553 (smaxmin:<code>v4hi3): New.
24554 (umaxmin:<code>v8qi3): Likewise.
24555 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
24556 (umaxmin:*mmx_<code>v8qi3): Likewise.
24558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24561 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
24562 TARGET_MMX_WITH_SSE.
24563 (*mmx_pinsrw): Add SSE emulation.
24565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24568 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
24570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24573 * config/i386/sse.md (sse_cvtpi2ps): Changed to
24574 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24580 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
24581 (sse_cvttps2pi): Likewise.
24583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24586 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
24587 TARGET_MMX_WITH_SSE.
24588 (mmx_pshufw_1): Add SSE emulation.
24589 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
24590 TARGET_MMX_WITH_SSE to support SSE emulation.
24592 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24595 * config/i386/constraints.md (Yw): New constraint.
24596 * config/i386/mmx.md (*vec_dupv2si): Changed to
24597 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
24598 support SSE emulation.
24600 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24603 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
24604 TARGET_MMX_WITH_SSE.
24605 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24607 (mmx_gt<mode>3): Likewise.
24609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24612 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24613 TARGET_MMX_WITH_SSE. Add SSE support.
24615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24618 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24619 TARGET_MMX_WITH_SSE.
24620 (any_logic:<code><mode>3): New.
24621 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24627 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24628 TARGET_MMX_WITH_SSE. Add SSE emulation.
24629 (mmx_<shift_insn><mode>3): Likewise.
24630 (ashr<mode>3): New.
24631 (<shift_insn><mode>3): Likewise.
24633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24636 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24637 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24639 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24642 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24643 TARGET_MMX_WITH_SSE.
24644 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24650 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24651 TARGET_MMX_WITH_SSE.
24653 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24659 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24660 (plusminus:mmx_<plusminus_insn><mode>3): Check
24661 TARGET_MMX_WITH_SSE.
24662 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24663 (<plusminus_insn><mode>3): New.
24664 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24665 (*mmx_<plusminus_insn><mode>3): Likewise.
24667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24670 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24671 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24673 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24674 define_insn_and_split to support SSE emulation.
24675 (mmx_punpcklbw): Likewise.
24676 (mmx_punpckhwd): Likewise.
24677 (mmx_punpcklwd): Likewise.
24678 (mmx_punpckhdq): Likewise.
24679 (mmx_punpckldq): Likewise.
24681 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24682 Uros Bizjak <ubizjak@gmail.com>
24685 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24687 (ix86_split_mmx_pack): Likewise.
24688 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24690 (ix86_split_mmx_pack): Likewise.
24691 * config/i386/i386.md (mmx_isa): New.
24692 (enabled): Also check mmx_isa.
24693 * config/i386/mmx.md (any_s_truncate): New code iterator.
24694 (s_trunsuffix): New code attr.
24695 (mmx_packsswb): Removed.
24696 (mmx_packssdw): Likewise.
24697 (mmx_packuswb): Likewise.
24698 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24699 MMX packsswb/packuswb with SSE2.
24700 (mmx_packssdw): Likewise.
24701 * config/i386/predicates.md (register_mmxmem_operand): New.
24703 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24706 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24707 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24708 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24709 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24710 (ix86_vector_mode_supported_p): Likewise.
24711 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24713 2019-05-15 Martin Liska <mliska@suse.cz>
24715 PR middle-end/90478
24716 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24717 Check for overflow.
24719 2019-05-15 Richard Biener <rguenther@suse.de>
24721 * tree-into-ssa.c (pass_build_ssa::execute): Run
24722 update_address_taken before going into SSA.
24724 2019-05-15 Richard Biener <rguenther@suse.de>
24726 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24727 as __BIT_FIELD_REF with type with -gimple.
24729 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24731 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24732 semantically equivalent branches (left over after prior refactorings).
24734 2019-05-15 Richard Biener <rguenther@suse.de>
24736 PR tree-optimization/88828
24737 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24740 2019-05-14 Richard Biener <rguenther@suse.de>
24742 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24743 as __VIEW_CONVERT with -gimple.
24745 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24748 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24751 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24753 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24754 define_split to become a define_insn_and_split.
24756 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24758 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24760 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24761 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24762 (sibcall_epilogue): Adjust.
24763 (epilogue): Adjust.
24765 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24767 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24768 to unsupported ones.
24769 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24770 * config.host: Likewise.
24771 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24772 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24773 __svr4__]: Remove "brand" fallback.
24774 [!KSTAT_DATA_STRING]: Remove.
24775 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24777 (comdat_group): Likewise.
24778 (set_have_as_tls): Likewise.
24779 (gcc_cv_target_dl_iterate_phdr): Likewise.
24780 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24781 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24782 * configure: Regenerate.
24783 * doc/install.texi: Simplify Solaris target triplets.
24784 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24785 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24786 Remove Solaris 10 references.
24787 Remove obsolete Solaris bug reference.
24788 (Specific, sparc-sun-solaris2.10): Remove.
24790 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24792 * config/i386/i386.md (any_div): New code iterator.
24793 (paired_mod): New code attribute.
24794 (sgnprefix): Handle DIV and UDIV RTXes.
24796 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24797 and udivmod<mode>4 patterns using any_div code iterator.
24798 (divmod splitters): Macroize splitters using any_div code iterator.
24799 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24800 (*udivmodsi4_pow2_zext_2): Ditto.
24801 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24802 and *udivmod<mode>4_noext patterns using any_div code iterator.
24803 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24804 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24805 patterns using any_div code iterator.
24806 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24807 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24808 patterns using any_div code iterator.
24809 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24810 udivmodhiqi3 patterns using any_extend code iterator.
24812 2019-05-14 Richard Biener <rguenther@suse.de>
24813 H.J. Lu <hongjiu.lu@intel.com>
24815 PR tree-optimization/88828
24816 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24817 permuting in a single non-constant element not extracted
24820 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24822 * internal-fn.def (SIGNBIT): New.
24823 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24825 (signbitv4sf2): Likewise.
24827 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24830 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24831 next insn when the SRC reg is dead.
24833 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24835 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24836 (alloc_cand_and_find_basis): Ditto.
24837 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24838 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24839 (create_add_imm_cand, slsr_process_cast): Ditto.
24840 (slsr_process_copy, replace_mult_candidate): Ditto.
24841 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24842 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24843 (pass_strength_reduction::execute): Init the first NULL element.
24845 2019-05-13 Nathan Sidwell <nathan@acm.org>
24847 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24848 (run_attempt): Reformat line break.
24850 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24853 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24854 data registers in sibcall epilogues.
24855 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24857 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24860 * configure.ac (--enable-frame-pointer):
24861 Disable by default for cygwin and mingw.
24862 * configure: Regenerate.
24864 2019-05-13 Nathan Sidwell <nathan@acm.org>
24866 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24868 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24869 (gen_member_die): Move abstract origin check earlier. Only VARs
24870 can be static_inline_p. Simplify splicing control flow.
24872 2019-05-13 Richard Biener <rguenther@suse.de>
24874 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24876 (vect_build_slp_tree_1): Likewise.
24878 2019-05-13 Richard Biener <rguenther@suse.de>
24880 PR tree-optimization/90402
24881 * tree-if-conv.c (tree_if_conversion): Value number only
24882 the loop body by making the latch an exit of the region
24884 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24886 (do_rpo_vn): Deal with multiple edges into the entry block
24887 that are not backedges inside the region by skipping PHIs
24888 of the entry block.
24890 2019-05-13 Richard Biener <rguenther@suse.de>
24892 PR tree-optimization/90316
24893 * tree-ssa-pre.c (insert_aux): Fold into ...
24894 (insert): ... this function. Use a RPO walk to reduce the
24895 number of required iterations.
24897 2019-05-13 Martin Liska <mliska@suse.cz>
24899 PR tree-optimization/90416
24900 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24901 string instead of passing the second part as va_arg argument.
24903 2019-05-13 Martin Liska <mliska@suse.cz>
24905 PR gcov-profile/90380
24906 * gcov.c (handle_cycle): Do not support zero cycle count,
24907 it should not be possible.
24908 (path_contains_zero_cycle_arc): New function.
24909 (circuit): Ignore zero cycle arc counts.
24911 2019-05-13 Martin Liska <mliska@suse.cz>
24913 PR gcov-profile/90380
24914 * gcov.c (enum loop_type): Remove the enum and
24916 (handle_cycle): Assert that we should not reach
24918 (circuit): Use loop_found instead of a tri-state loop_type.
24919 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24922 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24925 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24926 (ix86_output_indirect_branch_via_reg): Use output mechanism
24927 accounting for __USER_LABEL_PREFIX__.
24928 (ix86_output_indirect_branch_via_push): Likewise.
24929 (ix86_output_function_return): Likewise.
24930 (ix86_output_indirect_function_return): Likewise.
24932 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24934 * doc/md.texi: Document use of code attributes in rtx patterns.
24935 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24936 * read-rtl.c (find_code): Split out search loops into...
24937 (maybe_find_code): ...this new function.
24938 (check_code_iterator): Make the error message more informative.
24939 (check_code_attribute): New function.
24940 (rtx_reader::rtx_alloc_for_name): Likewise.
24941 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24942 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24943 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24944 <max_opp> directly as an rtx code instead of via a match_operator.
24945 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24946 (<su>abd<mode>_3): Update accordingly.
24948 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24950 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24951 is given, print the state of the EH "save world" computation for
24954 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24957 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24958 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24960 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24962 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24963 Use pinsrd for TARGET_SSE4_1.
24964 * config/i386/sse.md (movdi_to_sse): Ditto.
24966 2019-05-10 Richard Biener <rguenther@suse.de>
24968 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24969 (do_rpo_vn): Initialize next_value_id.
24971 2019-05-10 Martin Liska <mliska@suse.cz>
24973 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24976 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24978 PR tree-optimization/90385
24979 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24980 arguments of the exit phis.
24983 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24984 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24986 (copy_tree_body_r): Likewise.
24987 (copy_fn): Set id.do_not_fold to true.
24989 2019-05-10 Martin Liska <mliska@suse.cz>
24991 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24992 Reapply changes from r269790.
24994 2019-05-10 Martin Liska <mliska@suse.cz>
24996 PR middle-end/90340
24997 * doc/invoke.texi: New params.
24998 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24999 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
25000 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25002 * tree-switch-conversion.h (struct jump_table_cluster):
25005 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
25007 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
25009 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
25011 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
25013 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
25015 PR rtl-optimization/88879
25016 * sel-sched.c (sel_target_adjust_priority): Remove assert.
25018 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
25021 * config/arm/arm.c (callee_saved_reg_p): Move before
25022 thumb_find_work_register.
25023 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
25024 thumb_find_work_register. Only call df_get_live_out once.
25025 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
25026 (thumb_find_work_register): Use
25027 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
25028 algorithms to locate a spare call clobbered reg.
25030 2019-05-09 Martin Liska <mliska@suse.cz>
25032 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
25033 and MAX_EXPR in GIMPLE FE format.
25035 2019-05-09 Martin Liska <mliska@suse.cz>
25037 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
25038 * gimple-pretty-print.c (dump_gimple_bb_header):
25040 (pp_cfg_jump): Dump edge probability.
25041 * profile-count.c (profile_quality_as_string): Simplify
25042 with a static array.
25043 (parse_profile_quality): New function.
25044 (profile_count::dump): Simplify with a static array.
25045 (profile_count::from_gcov_type): Add new argument.
25046 * profile-count.h (parse_profile_quality): Likewise.
25047 * predict.h (set_hot_bb_threshold): New.
25048 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25050 * predict.c (get_hot_bb_threshold): Set from the new param.
25051 (set_hot_bb_threshold): New.
25053 2019-05-09 Richard Biener <rguenther@suse.de>
25055 PR tree-optimization/90395
25056 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
25057 rewrite vector stores that throw internally.
25059 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25061 * cif-code.def (CHKP): Remove.
25064 * configure.ac (--enable-frame-pointer): Disable by default for
25066 * configure: Regenerate.
25068 2019-05-09 Alan Modra <amodra@gmail.com>
25071 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25072 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25073 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25074 cost for general <-> vsx when direct moves are available.
25075 Cost union classes at minimal cost for any reg in the class.
25076 Correct calculation for moves between vsx, float, and altivec.
25077 Don't return a low cost for moves between special regs. Don't
25078 use hard coded register numbers.
25079 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25080 (rs6000_ira_change_pseudo_allocno_class): New function.
25081 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25082 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25084 (movsi_internal1): Don't disparage vector alternatives.
25085 (mov<mode>_internal): Likewise, excepting alternative that
25087 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25088 we <- b alternative.
25090 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25093 PR tree-optimization/89060
25094 * tree-ssa-live.h (live_vars_map): New typedef.
25095 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25096 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25097 (struct compute_live_vars_data): New type.
25098 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25099 live_vars_at_stmt, destroy_live_vars): New functions.
25100 * tree-tailcall.c: Include tree-ssa-live.h.
25101 (live_vars, live_vars_vec): New global variables.
25102 (find_tail_calls): Perform variable life analysis before punting.
25103 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25104 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25106 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25107 Perform variable life analysis to select variables that really need
25109 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25110 instead set id->eh_landing_pad_dest and assert it is the same.
25111 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25113 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25114 Richard Earnshaw <rearnsha@arm.com>
25117 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25119 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25120 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25121 register if both the epilogue and prologue can use call-clobbered
25123 (thumb1_unexpanded_epilogue): Use
25124 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25125 picking temporaries for restoring high regs to match that of the
25126 prologue where possible.
25127 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25128 the list of work registers. Detect if the return address is still live
25129 at the end of the prologue and avoid using it for a work register if so.
25130 If the return address is not live, add LR to the list of pushable regs
25131 after the first pass.
25133 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25135 PR tree-optimization/90078
25136 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25137 (INFTY): Increase the value for infinite cost.
25138 (struct comp_cost): Promote type of members to int64_t.
25139 (infinite_cost): Don't set complexity in initialization.
25140 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25141 overflows to infinite_cost.
25142 (adjust_setup_cost): Promote type of parameter and cost computation
25144 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25146 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25147 cost computation to int64_t.
25148 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25149 int64_t's format specifier in dump.
25151 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25153 PR tree-optimization/90240
25154 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25155 with respect to scaling factor pre-computed for each basic block.
25156 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25157 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25158 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25159 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25160 live range for array of loop's basic blocks. Cleanup aux field of
25161 loop's basic blocks.
25163 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25165 PR tree-optimization/90356
25166 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25168 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25170 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25171 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25172 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25173 (ix86_handle_option): Handle -mavx512bf16.
25174 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25176 * config/i386/avx512bf16vlintrin.h: New.
25177 * config/i386/avx512bf16intrin.h: New.
25178 * config/i386/cpuid.h (bit_AVX512BF16): New.
25179 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25180 * config/i386/i386-builtin-types.def: Add new types.
25181 * config/i386/i386-builtin.def: Add new builtins.
25182 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25184 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25185 (ix86_option_override_internal): Handle BF16.
25186 (ix86_valid_target_attribute_inner_p): Ditto.
25187 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25188 * config/i386/i386-builtin.c (enum processor_features): Add
25190 (static const _isa_names_table isa_names_table): Ditto.
25191 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25192 (PTA_AVX512BF16): Ditto.
25193 * config/i386/i386.opt: Add -mavx512bf16.
25194 * config/i386/immintrin.h: Include avx512bf16intrin.h
25195 and avx512bf16vlintrin.h.
25196 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25197 avx512f_cvtneps2bf16_<mode><mask_name>,
25198 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25199 * config/i386/subst.md (mask_half): Add new subst.
25200 * doc/invoke.texi: Document -mavx512bf16.
25202 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25204 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25205 Delete declaration.
25206 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25207 (rs6000_debug_legitimize_reload_address): Delete.
25208 (rs6000_legitimize_reload_address_ptr): Delete.
25209 (rs6000_option_override_internal): Adjust.
25210 (mem_operand_gpr): Adjust comment.
25211 (legitimate_lo_sum_address_p): Ditto.
25212 (rs6000_legitimize_reload_address): Delete.
25213 (rs6000_debug_legitimize_reload_address): Delete.
25214 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25216 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25220 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25221 to compute vector element selector for both constant and variable
25224 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25226 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25227 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25228 ashrdi3_cvt using SWI48 mode iterator.
25230 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25232 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25233 (aarch64_<su>abd<mode>_3): Likewise.
25234 (*aarch64_<su>abd<mode>_3): New define_insn.
25235 (<sur>sad<vsi2qi>): New define_expand.
25236 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25237 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25238 (build_vect_cond_expr): Likewise.
25240 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25242 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25243 clobbers outside of accessible_reg_set.
25244 * config/i386/i386.c (ix86_conditional_register_usage):
25245 Disable register sets by clearing corresponding bits in
25246 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25247 call_used_regs and don't clear corresponding reg_names array members.
25249 2019-05-07 Richard Biener <rguenther@suse.de>
25251 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25252 not specified still compute a comp_vectype for invariant
25255 2019-05-07 Richard Biener <rguenther@suse.de>
25257 PR tree-optimization/90316
25258 * tree-ssa-pre.c (translate_vuse_through_block): When
25259 same_valid is NULL do not bother to search for a virtual
25261 (phi_translate_1): When operands changed we cannot keep
25262 the same value-number so do not bother to ask whether
25263 that's possible from translate_vuse_through_block.
25265 2019-05-07 Martin Liska <mliska@suse.cz>
25267 * bitmap.c (bitmap_register): Come up with
25268 alloc_descriptor_max_uid and assign it for
25270 (register_overhead): Use get_descriptor as
25272 (release_overhead): New.
25273 (bitmap_elem_to_freelist): Call it.
25274 (bitmap_elt_clear_from): Likewise.
25275 (bitmap_obstack_free): Likewise.
25276 (bitmap_move): Sensitively release memory.
25277 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
25278 (bitmap_initialize): Initialize alloc_descriptor to zero.
25279 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
25281 2019-05-07 Richard Biener <rguenther@suse.de>
25283 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
25284 we build a SLP node. Remove max_size and limiting.
25285 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
25287 2019-05-07 Richard Biener <rguenther@suse.de>
25289 PR tree-optimization/90316
25290 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
25291 limit by reference.
25292 (walk_non_aliased_vuses): Take walking limit argument.
25293 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
25294 walking if it is reached instead of just counting.
25295 (get_continuation_for_phi): Likewise.
25296 (walk_non_aliased_vuses): Likewise, instead of leaving counter
25297 limiting to the callback.
25298 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
25299 (vn_reference_lookup_3): Likewise.
25300 (vn_reference_lookup_pieces): Likewise.
25301 (vn_reference_lookup): Likewise.
25302 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
25303 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
25304 (avail_exprs_stack::lookup_avail_expr): Likewise.
25306 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
25308 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
25309 for comparaible types in the second direction even if first one
25310 hits incomparable type.
25312 2019-05-07 Richard Biener <rguenther@suse.de>
25315 * lto-wrapper.c (debug_objcopy): Use the original filename
25316 including archive offset for the filename used for -save-temps.
25318 2019-05-07 Li Jia He <helijia@linux.ibm.com>
25320 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
25323 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
25324 Hongtao Liu <hongtao.liu@intel.com>
25328 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
25329 Modified, original implementation isn't correct.
25331 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25333 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
25334 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
25335 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
25336 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
25337 (FRAME_POINTER_REGNUM): Change numbering.
25338 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
25339 (alt_reg_names): Adjust.
25340 (rs6000_conditional_register_usage): Don't mark hard register 64 as
25342 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25343 (DWARF_FRAME_REGISTERS): Delete.
25344 (DWARF2_FRAME_REG_OUT): Fix whitespace.
25345 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25347 (REG_ALLOC_ORDER): Adjust.
25348 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
25349 (REG_CLASS_CONTENTS): Adjust.
25350 (RETURN_ADDR_RTX): Change comment.
25351 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
25353 (REGISTER_NAMES): Adjust.
25354 (ADDITIONAL_REGISTER_NAMES): Adjust.
25355 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25357 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25359 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
25361 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25362 (DWARF_FRAME_REGISTERS): Adjust.
25363 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25365 (REG_ALLOC_ORDER): Adjust.
25366 (enum reg_class): Delete SPR_REGS.
25367 (REG_CLASS_NAMES): Delete SPR_REGS.
25368 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
25369 (REGISTER_NAMES): Adjust.
25370 (ADDITIONAL_REGISTER_NAMES): Adjust.
25371 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25372 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
25373 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
25374 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
25375 (htm_spr_regno): Delete.
25376 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
25378 (rs6000_dbx_register_number): Adjust.
25380 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25382 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
25384 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25386 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
25387 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
25389 2019-05-06 Jakub Jelinek <jakub@redhat.com>
25391 PR tree-optimization/88709
25392 PR tree-optimization/90271
25393 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
25394 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
25395 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
25397 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
25398 of the store merging group is larger than
25399 PARAM_STORE_MERGING_MAX_SIZE parameter.
25400 (split_group): Add bzero_first argument. If set, always emit first
25401 the first store which must be = {} of the whole area and then for the
25402 rest of the stores consider all zero bytes as paddings.
25403 (imm_store_chain_info::output_merged_store): Check if first store
25404 is = {} of the whole area and if yes, determine which setting of
25405 bzero_first for split_group gives smaller number of stores. Adjust
25406 split_group callers.
25407 (lhs_valid_for_store_merging_p): Allow decls.
25408 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
25410 (pass_store_merging::process_store): Likewise.
25412 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
25415 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25416 handling of V1TImode.
25418 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
25421 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
25422 and enable_frame_pointer ...
25423 * configure.ac: ... here. Update help strings for
25424 --enable-frame-pointer.
25425 * configure: Regenerate.
25426 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25427 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25428 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25429 (USE_X86_64_FRAME_POINTER): Ditto.
25431 2019-05-06 Martin Liska <mliska@suse.cz>
25433 * config.gcc: Append to target_gtfiles and fix indentation.
25435 2019-05-06 Richard Biener <rguenther@suse.de>
25437 PR tree-optimization/90358
25438 * tree-vect-stmts.c (get_group_load_store_type): Properly
25439 detect unused upper half of load.
25440 (vectorizable_load): Likewise.
25442 2019-05-06 Richard Biener <rguenther@suse.de>
25444 PR tree-optimization/88828
25445 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25446 (simplify_vector_constructor): ...here. Handle constants in
25449 2019-05-06 Richard Biener <rguenther@suse.de>
25451 PR tree-optimization/90328
25452 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25453 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25454 is valid in the loop nest before using it.
25455 (initialize_data_dependence_relation): Adjust.
25456 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25457 loop as loop-nest to dr_may_alias_p.
25459 2019-05-06 Richard Biener <rguenther@suse.de>
25461 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25463 2019-05-06 Richard Biener <rguenther@suse.de>
25465 PR tree-optimization/90316
25466 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25467 compute target on demand.
25468 (get_continuation_for_phi): Remove code walking stmts to
25469 get to a target virtual operand which could end up being
25472 2019-05-06 Martin Liska <mliska@suse.cz>
25475 * config/i386/i386-options.c (ix86_option_override_internal): Error only
25476 when -mabi is selected to a non-default version.
25478 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
25479 Martin Liska <mliska@suse.cz>
25481 * Makefile.in: Add lto-dump.texi.
25482 * cgraph.h: Add new functions get_visibility_string and
25483 get_symtab_type_string.
25484 * doc/gcc.texi: Include lto-dump section.
25485 * doc/lto-dump.texi: New file.
25486 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
25487 (parse_dump_option): Factor out this function.
25488 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
25489 (parse_dump_option): Export the function.
25490 * symtab.c (symtab_node::get_visibility_string): New function.
25491 (symtab_node::get_symtab_type_string): Likewise.
25493 2019-05-06 Martin Liska <mliska@suse.cz>
25495 * config/i386/i386-builtins.c: New file.
25496 * config/i386/i386-builtins.h: New file.
25497 * config/i386/i386-expand.c: New file.
25498 * config/i386/i386-expand.h: New file.
25499 * config/i386/i386-features.c: New file.
25500 * config/i386/i386-features.h: New file.
25501 * config/i386/i386-options.c: New file.
25502 * config/i386/i386-options.h: New file.
25503 * config.gcc: Add new files into extra_objs and
25505 * config/i386/i386.c: Split content of the file
25506 into newly introduced files.
25507 * config/i386/i386.h: Declare common variables
25509 * config/i386/t-i386: Define dependencies for new files.
25511 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
25514 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
25515 Restrict 'all' variant to 32-bit configurations.
25516 (unaligned_loadhiu): Likewise.
25517 (unaligned_storehi): Likewise.
25518 (unaligned_storesi): Likewise.
25519 (unaligned_loadhis): Disable when compiling for thumb1.
25521 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
25523 PR tree-optimization/90269
25524 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25527 2019-05-03 Martin Liska <mliska@suse.cz>
25529 * hash-map.h: Add is_empty function.
25530 * hash-set.h: Likewise.
25531 * hash-table.h: Likewise.
25532 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
25533 elements () == 0 (and similar usages).
25534 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
25535 * gimplify.c (gimplify_bind_expr): Likewise.
25536 (gimplify_switch_expr): Likewise.
25537 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
25538 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
25539 * postreload-gcse.c (dump_hash_table): Likewise.
25540 (gcse_after_reload_main): Likewise.
25541 * predict.c (combine_predictions_for_bb): Likewise.
25542 * tree-parloops.c (reduction_phi): Likewise.
25543 (separate_decls_in_region): Likewise.
25544 (transform_to_exit_first_loop): Likewise.
25545 (gen_parallel_loop): Likewise.
25546 (gather_scalar_reductions): Likewise.
25547 (try_create_reduction_list): Likewise.
25548 * var-tracking.c (dump_vars): Likewise.
25549 (emit_notes_for_changes): Likewise.
25550 (vt_emit_notes): Likewise.
25552 2019-05-03 Richard Biener <rguenther@suse.de>
25554 PR tree-optimization/90316
25555 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
25558 2019-05-03 Richard Biener <rguenther@suse.de>
25560 * tree-vect-stmts.c (get_group_load_store_type): Avoid
25561 peeling for gaps by loading only lower halves of vectors
25563 (vectorizable_load): Likewise.
25565 2019-05-03 Richard Biener <rguenther@suse.de>
25567 PR middle-end/89518
25568 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
25570 2019-05-03 Richard Biener <rguenther@suse.de>
25572 PR middle-end/87314
25573 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
25574 Handle STRING_CST vs DECL or STRING_CST.
25576 2019-05-03 Richard Biener <rguenther@suse.de>
25578 PR tree-optimization/88963
25579 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
25580 vector loads feeding only BIT_FIELD_REFs to component
25581 loads. Rewrite stores fed by CONSTRUCTORs to component
25584 2019-05-03 Jakub Jelinek <jakub@redhat.com>
25586 * opts.h (finish_options): Remove lang_mask argument.
25587 (print_help, help_option_argument): Declare.
25588 * opts.c (print_help): Remove forward declaration, no longer static.
25589 (finish_options): Remove lang_mask argument, don't call print_help
25591 * opts-global.c (decode_options): Adjust finish_option caller, call
25594 PR tree-optimization/90303
25595 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
25596 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
25598 2019-05-03 Richard Biener <rguenther@suse.de>
25600 PR tree-optimization/89698
25601 * gimple-fold.c (canonicalize_constructor_val): Early out
25602 for constants, handle unfolded INTEGER_CSTs as they appear in
25603 C++ virtual table ctors.
25605 2019-05-03 Richard Biener <rguenther@suse.de>
25607 * passes.c (execute_function_todo): Remove dead code.
25609 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25611 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25612 the internal register number, for any "real" register.
25614 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25616 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25617 correct numbers for TFHAR, TFIAR, TEXASR.
25619 2019-05-02 Richard Biener <rguenther@suse.de>
25621 PR tree-optimization/89653
25622 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25623 update-address-taken before the pass.
25624 * passes.def (pass_tree_loop_init): Put comment before it.
25626 2019-05-02 Richard Biener <rguenther@suse.de>
25628 PR tree-optimization/89509
25629 * tree-ssa-structalias.c (compute_dependence_clique): Look
25630 at the first subvar when determining whether it is restrict.
25632 2019-05-02 Richard Biener <rguenther@suse.de>
25634 PR tree-optimization/90273
25635 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25636 useless debug stmts.
25638 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25640 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25642 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25644 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25645 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25646 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25647 (vectorizable_reduction): Use the functions above to vectorize in a
25648 fully masked loop codes that don't have a conditional internal
25651 2019-05-02 Martin Liska <mliska@suse.cz>
25653 * cgraphclones.c: Call valid_attribute_p with 1 for
25655 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25656 it's for target attribute.
25657 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25658 Add new boolean argument.
25659 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25661 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25662 to ix86_valid_target_attribute_inner_p.
25663 (ix86_valid_target_attribute_p): Pass flags argument to
25664 ix86_valid_target_attribute_inner_p.
25665 (get_builtin_code_for_version): Use 0 as it's target attribute.
25667 2019-05-02 Martin Liska <mliska@suse.cz>
25669 * gcc.c (process_command): Add dummy file only
25671 * opts-global.c (decode_options): Pass lang_mask.
25672 * opts.c (print_help): New function.
25673 (finish_options): Print --help if help_option_argument
25675 (common_handle_option): Factor out content of OPT__help_
25677 * opts.h (finish_options): Add new argument.
25679 2019-05-02 Martin Liska <mliska@suse.cz>
25682 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25683 With -minline-all-stringops use inline expansion using 4B loop.
25684 * doc/invoke.texi: Document the change of
25685 -minline-all-stringops.
25687 2019-05-01 Jeff Law <law@redhat.com>
25689 PR tree-optimization/88797
25690 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25691 PHI feeds a conditional on the RHS of an assignment.
25693 2019-04-30 Andrew Waterman <andrew@sifive.com>
25694 Jim Wilson <jimw@sifive.com>
25696 * config/riscv/constraints.md (L): New.
25697 * config/riscv/predicates.md (lui_operand): New.
25698 (sfb_alu_operand): New.
25699 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25700 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25701 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25702 * config/riscv/risc.md (type): Add sfb_alu.
25703 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25704 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25705 (branch_zero<mode>): Delete.
25706 (mov<mode>cc): New.
25707 (mov<GPR:mode><X:mode>cc): Likewise.
25708 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25710 2019-04-30 Nathan Sidwell <nathan@acm.org>
25712 * tree.h (MARK_TS_EXP): New.
25714 2019-04-30 Martin Liska <mliska@suse.cz>
25716 * opts.c (enable_warning_as_error): Provide hints
25717 for unknown options.
25719 2019-04-30 Martin Liska <mliska@suse.cz>
25722 * doc/invoke.texi: Add missing dash for gas-locview-support
25723 and gno-as-locview-support.
25725 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25728 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25729 whitespace at the start of target attribute string.
25731 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25734 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25735 Define __ARM_FEATURE_ATOMICS.
25737 2019-04-30 Martin Liska <mliska@suse.cz>
25739 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25740 into built_in_function enum. Remove code for endp == 2 and
25741 use BUILT_IN_* constants.
25742 (gimple_fold_builtin): Call the function with fcode.
25744 2019-04-30 Martin Liska <mliska@suse.cz>
25746 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25747 DECL_FUNCTION_CODE into ix86_builtins enum before
25748 the switch statement.
25750 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25752 PR tree-optimization/89475
25753 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25756 2019-04-30 Martin Liska <mliska@suse.cz>
25758 PR translation/90274
25759 * opts.c (print_filtered_help): Wrap string in _(...).
25761 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25763 PR tree-optimization/90240
25765 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25767 PR tree-optimization/90078
25768 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25769 checks for infinite_cost overflow.
25771 2019-04-29 Jeff Law <law@redhat.com>
25773 * passes.def: Move -Wrestrict pass after copy propagation.
25775 2019-04-29 Maya Rashish <coypu@sdf.org>
25777 * config.gcc (default_gnu_indirect_function): Default to yes
25778 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25779 sparc*-*-netbsd*, x86_64-*-netbsd*.
25781 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25783 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25784 where cond2 is NE_EXPR.
25785 (is_value_included_in): Update comment.
25787 2019-04-29 Richard Biener <rguenther@suse.de>
25789 PR tree-optimization/90278
25790 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25791 EH on comparison simplification.
25793 2019-04-29 Jason Merrill <jason@redhat.com>
25795 PR c++/82081 - tail call optimization breaks noexcept
25796 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25797 nothrow function to a might-throw function into a tail call.
25799 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25801 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25802 (DDR_INNER_LOOP): Likewise.
25803 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25804 (initialize_data_dependence_relation): Likewise.
25805 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25807 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25809 PR rtl-optimization/90257
25810 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25814 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25818 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25821 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25824 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25826 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25828 2019-04-29 Richard Biener <rguenther@suse.de>
25830 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25833 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25835 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25836 varasm.h, and netbsd-protos.h.
25838 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25841 * config/i386/i386-protos.h (ix86_data_alignment): Change
25842 the second argument type to unsigned int.
25843 * config/i386/i386.c (ix86_data_alignment): Change "align"
25844 argument type to unsigned int.
25846 2019-04-27 Martin Liska <mliska@suse.cz>
25848 PR middle-end/90258
25849 * opt-suggestions.c (option_proposer::build_option_suggestions):
25850 When get_valid_option_values returns empty values, add the
25851 misspelling candidate.
25853 2019-04-26 Jim Wilson <jimw@sifive.com>
25855 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25857 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25858 Pass orig_mode to riscv_build_integer.
25859 (riscv_split_integer): Pass mode to riscv_move_integer.
25860 (riscv_legitimize_const_move): Likewise.
25861 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25862 promoted_mode. Replace force_reg call with code to load constant into
25863 promoted reg and then subreg it for the store.
25864 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25865 riscv_move_integer.
25867 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25869 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25872 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25874 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25875 commentary about the encoding of precision.
25877 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25879 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25880 * config/i386/t-freebsd64: New file.
25881 * config.gcc: Add the t-freebsd64 for multilib support.
25883 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25885 * doc/extend.texi (vector_size): Add missing comma after @xref.
25887 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25889 * BASE-VER: Set to 10.0.0.
25891 2019-04-25 Richard Biener <rguenther@suse.de>
25893 PR middle-end/89765
25894 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25895 VIEW_CONVERT_EXPR into one operating on an rvalue.
25897 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25900 * config/i386/i386.c (feature_priority): Moved to file scope.
25901 (processor_features): Likewise.
25902 (processor_model): Likewise.
25903 (_arch_names_table): Likewise.
25904 (arch_names_table): Likewise.
25905 (_feature_list): Removed.
25906 (feature_list): Likewise.
25907 (_isa_names_table): Moved to file scope. Add priority.
25908 (isa_names_table): Likewise.
25909 (get_builtin_code_for_version): Replace feature_list with
25910 isa_names_table. Update error message for P_ZERO priority.
25912 2019-04-25 Richard Biener <rguenther@suse.de>
25914 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25915 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25917 2019-04-24 Jeff Law <law@redhat.com>
25919 PR tree-optimization/90037
25920 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25921 * passes.def: Replace all instance of phi-only cprop with the
25922 lattice propagator. Move propagation pass from after erroneous
25923 path isolation to before erroneous path isolation.
25924 * tree-ssa-phionlycprop.c: Remove.
25926 2019-04-24 Richard Biener <rguenther@suse.de>
25928 PR middle-end/90213
25929 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25930 by size and BITS_PER_UNIT on poly-wide-ints.
25932 2019-04-25 Richard Biener <rguenther@suse.de>
25934 PR middle-end/90194
25935 * match.pd: Add pattern to simplify view-conversion of an
25938 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25940 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25941 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25942 for Go on 32 bit AIX.
25943 * config/rs6000/aix72.h: Likewise.
25945 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25948 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25949 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25951 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25954 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25955 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25956 for restored hard frame pointer.
25957 (s390_sched_dependencies_evaluation): Implement new target hook.
25958 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25960 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25962 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25963 * config/arc/arc.c (arc_init): Cleanup warning message.
25964 (arc_override_options): Likewise.
25966 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25969 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25970 a register if both if_true and if_false are MEMs.
25972 PR tree-optimization/90208
25973 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25974 after labels of new_bb, not before them.
25976 PR tree-optimization/90211
25977 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25978 which are not SSA_NAMEs.
25980 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25982 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25984 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25986 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25988 PR rtl-optimization/87979
25989 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25992 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25994 PR rtl-optimization/84032
25995 * modulo-sched.c (ps_insn_find_column): Change condition so that
25996 branch will always be the last insn in a row inside partial
25999 2019-04-23 Richard Biener <rguenther@suse.de>
26002 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
26003 dest_single_pred_p argument.
26004 (remove_forwarder_block): Adjust.
26005 (remove_forwarder_block_with_phi): Likewise.
26007 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26008 Bernd Edlinger <bernd.edlinger@hotmail.de>
26009 Jakub Jelinek <jakub@redhat.com>
26012 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
26013 if used with general-regs-only.
26014 (arm_conditional_register_usage): Don't add non-general regs if
26016 (arm_valid_target_attribute_rec): Handle general-regs-only.
26017 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
26019 (TARGET_HARD_FLOAT_SUB): Define.
26020 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
26021 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
26022 (TARGET_REALLY_IWMMXT2): Likewise.
26023 * config/arm/arm.opt: Add -mgeneral-regs-only.
26024 * doc/extend.texi: Document ARM general-regs-only target.
26025 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
26027 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26029 PR tree-optimization/90078
26030 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26031 checks for infinite_cost overflow.
26033 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26035 PR tree-optimization/90021
26036 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
26037 and check univariate against it.
26038 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
26039 * tree-data-ref.c (add_other_self_distances): Pass new argument.
26041 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26045 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26048 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26051 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26053 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26055 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
26057 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
26058 names using operand format, rather than hard-wired.
26059 (speculation_barrier): Likewise.
26061 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26063 PR tree-optimization/88055
26064 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26065 (gen_one_condition): Use it if !HONOR_NANS.
26067 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26069 PR middle-end/90139
26070 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26071 assign_temp instead of gen_reg_rtx.
26073 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26075 PR translation/90118
26076 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26077 Add missing space before %<.
26079 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26081 PR rtl-optimization/87871
26082 * ira-lives.c (make_object_dead): Don't add conflicts to
26083 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26085 2019-04-18 Martin Sebor <msebor@redhat.com>
26087 PR middle-end/89797
26088 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26089 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26090 assuming type size fits in SHWI.
26092 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26095 * ipa-inline.c (flatten_function): New parameter UPDATE.
26096 (ipa_inline, early_inliner): Use it.
26098 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26100 * fold-const.c (int_const_binop): Return early on failure.
26102 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26104 PR middle-end/85164
26105 * combine.c (force_int_to_mode): Cast the argument rather than
26106 the result of known_alignment.
26107 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26109 2019-04-18 Richard Biener <rguenther@suse.de>
26112 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26114 (remove_forwarder_block): ... here.
26115 (remove_forwarder_block_with_phi): Also move debug stmts here.
26117 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26119 PR translation/79183
26120 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26121 inform where appropriate.
26123 2019-04-18 Richard Biener <rguenther@suse.de>
26125 * tree.c (get_qualified_type): Put found type variants at the
26126 head of the variant list.
26128 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26130 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26132 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26135 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26136 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26137 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26138 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26139 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26141 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26143 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26144 even for allocno's with no conflicts.
26145 (print_conflicts): Print an extra newline.
26147 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26149 * auto-inc-dec.c (attempt_change): Set the alignment of the
26150 temporary memory to that of the original.
26152 2019-04-17 Joao Moreira <jmoreira@suse.de>
26154 * targhooks.c (default_print_patchable_function_entry): Emit
26155 __patchable_function_entries section with writable flags to allow
26156 relocation resolution.
26158 2019-04-17 Jonny Grant <jg@jguk.org>
26160 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26162 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26164 PR middle-end/90095
26165 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26166 on lowpart SUBREGs.
26168 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26170 * config/arc/arc.c (arc_init): Format diagnostic string.
26171 (arc_override_options): Likewise.
26172 (check_if_valid_regno_const): Likewise.
26173 (arc_reorg): Likewise.
26175 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26178 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26180 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26182 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26183 (*movdi_update1): Use Pmode.
26184 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26185 (movdi_<mode>_update_stack): Rename to ...
26186 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26188 (*movsi_update1): Use Pmode.
26189 (*movsi_update2): Use Pmode.
26190 (movsi_update): Rename to ...
26191 (movsi_<mode>_update): ... this. Use Pmode.
26192 (movsi_update_stack): Fix condition.
26193 (*movhi_update1): Use Pmode. Fix argument to
26194 avoiding_indexed_address_p.
26195 (*movhi_update2): Ditto.
26196 (*movhi_update3): Ditto.
26197 (*movhi_update4): Ditto.
26198 (*movqi_update1): Ditto.
26199 (*movqi_update2): Ditto.
26200 (*movqi_update3): Ditto.
26201 (*movsf_update1, *movdf_update1): Merge, rename to...
26202 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26203 avoiding_indexed_address_p. Add "size" attribute.
26204 (*movsf_update2, *movdf_update2): Merge, rename to...
26205 (*mov<mode>_update2): This. Ditto.
26206 (*movsf_update3): Use Pmode. Fix argument to
26207 avoiding_indexed_address_p.
26208 (*movsf_update4): Ditto.
26209 (allocate_stack): Simplify condition. Adjust pattern names.
26211 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26214 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26215 whitespace at the start of target attribute string.
26217 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26220 * config/rs6000/power9.md: Add store forwarding bypass.
26222 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26225 * valtrack.c (dead_debug_insert_temp): Reset debug references
26226 to the return value of a call being removed.
26228 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26230 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26231 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26232 implement target hook.
26233 (arc_memory_move_cost): New function.
26234 (TARGET_REGISTER_MOVE_COST): Define.
26235 (TARGET_MEMORY_MOVE_COST): Likewise.
26236 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26237 (MEMORY_MOVE_COST): Likewise.
26239 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26241 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26242 (sibcall_value_insn): Likewise.
26243 * config/arc/constraints.md (Rs5): Remove.
26245 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26247 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26248 for last two fake registers.
26249 (arc_conditional_register_usage): Make sure fake frame and arg
26250 pointer regs are in general regs class.
26251 (FRAME_POINTER_MASK): Remove.
26252 (RETURN_ADDR_MASK): Remove.
26253 (arc_must_save_register): Use hard frame regnum.
26254 (frame_restore_reg): Use hard_frame_pointer_rtx.
26255 (arc_save_callee_saves): Likewise.
26256 (arc_restore_callee_saves): Likewise.
26257 (arc_save_callee_enter): Likewise.
26258 (arc_restore_callee_leave): Likewise.
26259 (arc_save_callee_milli): Likewise.
26260 (arc_eh_return_address_location): Likewise.
26261 (arc_check_multi): Use hard frame regnum.
26262 (arc_can_eliminate): Likewise.
26263 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
26264 for register allocator.
26265 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
26266 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
26267 (FRAME_POINTER_REGNUM): Change it to a fake register.
26268 (HARD_FRAME_POINTER_REGNUM): Defined.
26269 (ARG_POINTER_REGNUM): Change it to a new fake register.
26270 (ELIMINABLE_REGS): Update.
26271 (REGISTER_NAMES): Update names.
26272 * config/arc/arc.md (LP_START): Remove.
26273 (LP_END): Likewise.
26274 (shift_si3_loop): Update pattern.
26276 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26278 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
26279 to avoid delay slot scheduling.
26280 (arc_must_save_register): Don't save SP.
26281 * config/arc/arc.md (stack_tie): Remove.
26282 (UNSPEC_ARC_STKTIE): Likewise.
26284 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
26285 Shiva Chen <shiva0217@gmail.com>
26287 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
26288 code gen with large shift amount.
26290 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
26292 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
26295 2019-04-16 Jakub Jelinek <jakub@redhat.com>
26298 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
26299 print -m64/-mx32/-m32 if it is true.
26300 (ix86_debug_options, ix86_function_specific_print): Pass true as
26301 ADD_ABI_P to ix86_target_string.
26302 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
26303 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
26304 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
26306 PR rtl-optimization/90082
26307 * dce.c (can_delete_call): New function.
26308 (deletable_insn_p, mark_insn): Use it.
26310 PR tree-optimization/90090
26311 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
26313 (is_division_by_square): Likewise. Formatting fix.
26315 2019-04-16 Richard Biener <rguenther@suse.de>
26317 PR tree-optimization/56049
26318 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
26319 equality check if alias-set zero will prevail.
26321 2019-04-15 Jeff Law <law@redhat.com>
26323 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
26324 size and alignment as unsigned.
26326 2019-04-15 Richard Biener <rguenther@suse.de>
26329 * tree-loop-distribution.c (destroy_loop): Preserve correct
26332 2019-04-15 Richard Biener <rguenther@suse.de>
26334 PR tree-optimization/90071
26335 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
26336 abnormal operands from def stmts.
26338 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
26340 PR rtl-optimization/89794
26341 * combine.c (count_auto_inc): New function.
26342 (try_combine): Count how many auto_inc expressions there were in the
26343 original instructions. Ensure we have the same number in the new
26344 instructions. Remove the code that tried to ensure auto_inc side
26345 effects on i1 and i0 are not lost.
26347 2019-04-15 Richard Biener <rguenther@suse.de>
26350 * tree.h (auto_var_p): Declare.
26351 * tree.c (auto_var_p): New function, split out from ...
26352 (auto_var_in_fn_p): ... here.
26353 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
26355 (new_var_info): Initialize it.
26356 (set_uids_in_ptset): Also set the shadow variable uid if required.
26357 (ipa_pta_execute): Postprocess points-to solutions assigning
26358 shadow variable uids for locals that may reach their containing
26359 function recursively.
26360 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
26361 assert but instead check whether the points-to solution is
26364 2019-04-15 Martin Jambor <mjambor@suse.cz>
26367 * cgraph.c (clone_of_p): Loop over clone chain for each step in
26370 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26372 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
26374 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26375 Kito Cheng <kito.cheng@gmail.com>
26376 Shiva Chen <shiva0217@gmail.com>
26378 * config/nds32/nds32-md-auxiliary.c
26379 (nds32_legitimize_pic_address): Use new PIC pattern.
26380 (nds32_legitimize_tls_address): Use new TLS pattern.
26381 (nds32_output_symrel): New.
26382 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
26383 (nds32_alloc_relax_group_id): Ditto.
26384 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
26385 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
26387 (nds32_group_tls_insn): Ditto.
26388 (nds32_group_float_insns): Ditto.
26389 * config/nds32/nds32.md (tls_le): New.
26392 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
26394 * configure: Add nds32 target for dwarf2 debug_line checking.
26395 * configure.ac: Regenerated.
26397 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
26400 * ipa-devirt.c (skip_in_fields_list_p): New.
26401 (odr_types_equivalent_p): Use it.
26403 2019-04-13 Jakub Jelinek <jakub@redhat.com>
26406 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
26407 instead of strncmp when checking for thumb and arm. Formatting fixes.
26409 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
26411 * doc/install.texi: Document --with-target-system-zlib.
26413 2019-04-12 Martin Sebor <msebor@redhat.com>
26419 * targhooks.c (default_vector_alignment): Avoid assuming
26420 argument fits in SHWI.
26421 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
26422 a shift expression.
26423 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
26425 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26427 PR rtl-optimization/89965
26428 * dce.c: Include rtl-iter.h.
26429 (struct check_argument_load_data): New type.
26430 (check_argument_load): New function.
26431 (find_call_stack_args): Check for loads from stack slots still tracked
26432 in sp_bytes and punt if any is found.
26434 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26436 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26438 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26439 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26441 2019-04-12 Martin Liska <mliska@suse.cz>
26443 PR middle-end/89970
26444 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26446 (separate_attrs): Handle multiple 'default's.
26447 (expand_target_clones): Rework error handling code.
26449 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26452 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26453 mode of vector rather than mode of destination for move instruction.
26454 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26455 Use QI inner mode with V16QI vector mode.
26457 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26460 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26461 "invalid %%t operand" in output_operand_lossage message.
26463 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26465 * config/s390/predicates.md (permute_pattern_operand): New
26467 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26468 operand for the permute pattern.
26469 ("*vec_perm<mode>"): New insn definition.
26470 ("bswap<mode>"): Generate the permute pattern operand in the
26471 expander and perform the operand reloads for pre arch13 level
26473 ("*bswap<mode>_emu"): Rename to ...
26474 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
26475 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
26476 Add the USE operand for the permute pattern.
26477 ("*vec_set_bswap_vec<mode>"): Likewise.
26479 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26482 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
26483 and gcc_unreachable if it fails, just call tree_to_uhwi which
26484 verifies that too. Test TREE_CHAIN instead of list_length > 1.
26485 Start warning message with a lower-case letter. Formatting fixes.
26487 PR rtl-optimization/90026
26488 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
26489 successors, look for BARRIERs inside of the whole BB_FOOTER chain
26490 rather than just at the start of it. If e->src BB_FOOTER is not NULL
26491 in cfglayout mode, use emit_barrier_after_bb.
26493 2018-04-11 Steve Ellcey <sellcey@marvell.com>
26495 PR rtl-optimization/87763
26496 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
26499 2019-04-11 Tom de Vries <tdevries@suse.de>
26501 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
26502 max macro using statement expression.
26504 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
26506 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
26507 * xcoffout.c (xcoff_private_rodata_section_name): Define.
26508 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
26509 read_only_private_data_section using xcoff_private_rodata_section_name.
26510 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
26512 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
26515 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
26517 2019-04-11 Jakub Jelinek <jakub@redhat.com>
26519 PR rtl-optimization/89965
26520 * dce.c (sp_based_mem_offset): New function.
26521 (find_call_stack_args): Use sp_based_mem_offset.
26523 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
26525 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
26527 2019-04-11 Richard Biener <rguenther@suse.de>
26529 PR tree-optimization/90020
26530 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
26531 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
26532 * tree-ssa-pre.c (compute_avail): Use it to not put
26533 possibly trapping references after a call that might not
26534 return into EXP_GEN.
26535 * gcse.c (compute_hash_table_work): Do not elide
26536 marking a block containing a call if the call might not
26539 2019-04-11 Richard Biener <rguenther@suse.de>
26541 PR tree-optimization/90018
26542 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
26543 Test both SLP and interleaving variants.
26545 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
26547 * config/s390/8561.md: New file.
26548 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26549 Add arch13 cpu model.
26550 * config/s390/s390-opts.h (enum processor_type): Likewise.
26551 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
26552 (s390_get_unit_mask): Likewise.
26553 (s390_is_fpd): Likewise.
26554 (s390_is_fxd): Likewise.
26555 * config/s390/s390.h (s390_tune_attr): Likewise.
26556 * config/s390/s390.md: Include arch13 pipeline description.
26557 * config/s390/s390.opt: Add arch13.
26559 2018-04-10 Steve Ellcey <sellcey@marvell.com>
26561 PR rtl-optimization/87763
26562 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
26564 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
26566 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
26568 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
26569 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
26570 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
26571 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
26573 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
26575 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
26576 "Although" in -fipa-icf documentation.
26578 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
26579 of using multiple -g options.
26581 2019-04-10 Martin Liska <mliska@suse.cz>
26583 PR gcov-profile/89959
26584 * doc/gcov.texi: Make documentation of -x option
26587 2019-04-10 Richard Biener <rguenther@suse.de>
26589 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
26591 (DR_GROUP_SAME_DR_STMT): Remove.
26592 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
26593 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
26594 replace with assert.
26595 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
26596 (vect_record_grouped_load_vectors): Remove unreachable code.
26598 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
26601 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
26602 obsolete reference to N.
26604 2019-04-10 Jakub Jelinek <jakub@redhat.com>
26606 PR middle-end/90025
26607 * expr.c (store_expr): Set properly size on the MEM passed to
26611 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26612 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26613 translation is needed, and when translation is needed, only append
26614 ... if the string length is hostsz or more bytes long. Avoid using
26617 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26620 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26621 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26623 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26624 differences directly.
26625 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26627 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26629 PR translation/90011
26630 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26632 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26634 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26635 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26636 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26637 trailing space from -gsplit-dwarf diagnostics.
26639 PR tree-optimization/89998
26640 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26641 instead of integer_type_node if possible, don't add ranges if return
26642 type is not compatible with int.
26643 * gimple-fold.c (gimple_fold_builtin_sprintf,
26644 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26647 2019-04-09 Martin Liska <mliska@suse.cz>
26649 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26650 * doc/install.texi: Document the new config.
26652 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26654 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26655 use gimple_expr_type for load and store calls. Skip over the
26656 condition argument in a conditional internal function.
26657 Protect use of TREE_INT_CST_LOW.
26659 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26662 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26663 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26664 trailing period from it too.
26666 2019-04-08 wu yuan <wuyuan5@huawei.com>
26668 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26669 * config/aarch64/aarch64.md: Add "tsv110.md".
26670 * config/aarch64/tsv110.md: New file.
26672 2019-04-08 Richard Biener <rguenther@suse.de>
26674 PR tree-optimization/90006
26675 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26678 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26681 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26683 (fma_root_node): Likewise.
26684 (func_fma_steering): Likewise.
26686 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26688 PR rtl-optimization/89865
26689 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26691 PR rtl-optimization/89865
26692 * config/i386/i386.md
26693 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26694 numbers not to clash with the additional operands[4].
26695 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26696 with extra register copy in the middle.
26698 2019-04-08 Martin Liska <mliska@suse.cz>
26700 PR gcov-profile/89961
26701 * doc/gcov.texi: Document data_file.
26702 * gcov.c (generate_results): Add data_info into JSON output.
26704 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26706 PR tree-optimization/89725
26707 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26708 loop's chrec as invariant symbol.
26709 * tree-chrec.h (chrec_contains_symbols): New parameter.
26710 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26711 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26712 function of loops not in DDR's loop_nest.
26713 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26715 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26718 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26721 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26724 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26725 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26727 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26729 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26730 targetm.fixed_condition_code_regs.
26732 2019-04-05 Richard Biener <rguenther@suse.de>
26736 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26737 debug bind stmts but reset them if they are not valid at the
26740 2019-04-05 Martin Liska <mliska@suse.cz>
26742 PR translation/89936
26743 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26744 order to wrap keywords or arguments.
26745 * collect2.c (main): Likewise.
26746 (scan_prog_file): Likewise.
26747 (scan_libraries): Likewise.
26748 * common/config/riscv/riscv-common.c
26749 (riscv_subset_list::parsing_subset_version): Likewise.
26750 (riscv_subset_list::parse_std_ext): Likewise.
26751 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26753 * config/arm/arm.c (arm_option_override): Likewise.
26754 * config/cris/cris.c (cris_print_operand): Likewise.
26755 * config/darwin-c.c (darwin_pragma_options): Likewise.
26756 (darwin_pragma_unused): Likewise.
26757 (darwin_pragma_ms_struct): Likewise.
26758 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26759 * config/i386/i386.c (print_reg): Likewise.
26760 (ix86_print_operand): Likewise.
26761 * config/i386/xm-djgpp.h: Likewise.
26762 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26763 * config/m32c/m32c.c (m32c_option_override): Likewise.
26764 * config/msp430/msp430.c (msp430_option_override): Likewise.
26765 * config/nds32/nds32.c (nds32_option_override): Likewise.
26766 * config/nvptx/mkoffload.c (main): Likewise.
26767 * config/rx/rx.c (rx_print_operand): Likewise.
26768 (valid_psw_flag): Likewise.
26769 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26770 (vms_pragma_nomember_alignment): Likewise.
26771 (vms_pragma_extern_model): Likewise.
26772 * lto-wrapper.c (compile_offload_image): Likewise.
26773 * omp-offload.c (oacc_parse_default_dims): Likewise.
26774 * symtab.c (symtab_node::verify_base): Likewise.
26775 * tlink.c (recompile_files): Likewise.
26776 (start_tweaking): Likewise.
26777 * tree-profile.c (parse_profile_filter): Likewise.
26779 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26781 PR tree-optimization/89956
26782 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26783 multiple negates of the same value.
26785 2019-04-04 Martin Sebor <msebor@redhat.com>
26787 PR middle-end/89957
26788 PR middle-end/89911
26789 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26790 have the same precision since the function crashes otherwise.
26791 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26792 has non-zero arguments.
26794 2019-04-04 Martin Sebor <msebor@redhat.com>
26796 PR middle-end/89934
26797 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26798 out if the number of arguments is less than expected.
26800 2019-04-04 Jeff Law <law@redhat.com>
26802 PR rtl-optimization/89399
26803 * ree.c (combine_set_extension): Use single_set rather than
26804 digging into PATTERN for items on the candidate list.
26805 (combine_reaching_defs): Likewise.
26807 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26809 PR rtl-optimization/46590
26810 * loop-invariant.c (find_defs): Move df_remove_problem and
26811 df_process_deferred_rescans to move_invariants.
26812 Move df_live_add_problem and df_live_set_all_dirty calls
26813 to move_invariants.
26814 (move_invariants): Likewise.
26815 (move_loop_invariants): Likewise, making the df_live calls
26816 conditional on -O. Remove the problem again if we added it
26819 2019-04-03 qing zhao <qing.zhao@oracle.com>
26821 PR tree-optimization/89730
26822 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26823 -flive-patching=inline-only-static.
26824 (can_inline_edge_by_limits_p): Add the checking for
26825 -flive-patching=inline-only-static and grant always_inline
26826 even when -flive-patching=inline-only-static is specified.
26828 2019-04-03 Jeff Law <law@redhat.com>
26830 PR rtl-optimization/81025
26831 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26833 2019-04-03 Richard Biener <rguenther@suse.de>
26835 PR tree-optimization/84101
26836 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26837 regs.h for hard_regno_nregs.
26838 (cfun_returns): New helper.
26839 (vect_model_store_cost): When vectorizing a store to a decl
26840 we return and the function ABI returns in a multi-reg location
26841 account for the possible spilling that will happen.
26843 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26845 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26846 displacement addresses for vector mode operands.
26848 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26850 * config/arc/arc.c (GMASK_LEN): Define.
26851 (arc_restore_callee_saves): Restore first blink when
26854 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26856 * doc/extend.texi: Add deprecated comment on sign-return-address
26857 function attribute and add mbranch-protection.
26858 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26860 2019-04-03 Richard Biener <rguenther@suse.de>
26863 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26864 the all target phony.
26866 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26870 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26871 Return false for variable DImode shifts.
26872 (dimode_scalar_chain::compute_convert_gain): Do not handle
26873 register count operand in variable DImode shifts.
26874 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26875 count argument of a variable shift instruction to a vector register.
26876 (dimode_scalar_chain::convert_reg): Remove support to convert
26877 count argument of a variable shift instruction.
26879 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26881 PR rtl-optimization/84206
26882 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26883 iterating over loop headers.
26885 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26887 PR rtl-optimization/85876
26888 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26889 beyond the original fence.
26891 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26893 * config.gcc: Mark spu* targets as deprecated/obsolete.
26895 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26897 * config/s390/s390-builtin-types.def: New builtin function type
26898 definitions. Remove unused types.
26899 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26900 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26901 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26902 overloaded builtins.
26903 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26904 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26905 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26906 (vec_double, vec_signed, vec_unsigned): Define to use the new
26907 overloaded builtins.
26908 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26911 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26913 * config/s390/s390-builtin-types.def: New builtin function type
26915 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26916 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26917 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26918 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26919 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26920 constant definitions.
26921 * config/s390/vecintrin.h (vec_search_string_cc)
26922 (vec_search_string_until_zero_cc): New builtin name definitions.
26923 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26925 ("vec_vstrs<mode>"): New insn definition.
26927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26929 * config/s390/s390-builtin-types.def: Add new builtin function
26931 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26932 New overloaded builtins.
26933 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26935 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26936 (UNSPEC_VEC_SLDBYTE): ... this.
26937 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26938 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26940 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26941 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26942 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26944 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26946 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26947 New insn definition.
26948 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26949 * config/s390/vector.md (V_HW_HSD): ... here.
26951 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26953 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26954 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26955 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26956 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26957 New insn definitions.
26959 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26961 * config/s390/s390-builtin-types.def: Add new builtin function type.
26962 * config/s390/s390-builtins.def: Add overloaded builtin
26963 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26964 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26965 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26966 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26967 ("eltswap<mode>"): New expander.
26968 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26971 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26973 * config/s390/s390-builtin-types.def: Add new builtin function types.
26974 * config/s390/s390-builtins.def: Add overloaded builtin
26975 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26977 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26978 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26979 ("bswap<mode>"): New expander.
26980 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26982 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26984 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26985 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26986 vector builtin version number in __VEC__.
26988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26990 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26992 (SFSI): New mode attribute.
26993 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26994 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26996 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26997 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26998 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26999 ("floatsi<mode>2"): Add wcefb instruction.
27001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27003 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
27004 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
27006 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
27007 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
27008 support 32 bit fp-int conversions. Rename to ...
27009 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27010 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27011 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
27012 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
27015 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27017 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
27018 if-then-else constructs if we can use the select instruction.
27019 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
27021 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27023 * config/s390/s390.md ("*popcountdi_arch13_cc")
27024 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
27026 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
27027 Append _z196 to make it ...
27028 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
27029 ("popcounthi2_z196"): ... this.
27030 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
27031 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
27033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27035 * config/s390/s390.c (s390_canonicalize_comparison): Convert
27036 certain compares for arch13 in order to make use of the condition
27037 code result produced by the new instructions.
27038 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
27039 nxrk, and nxgrk instruction patterns.
27040 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
27041 (inv_no): Add new code iterator together with some attributes.
27042 ("*andc_split_<mode>"): Disable splitter for arch13.
27043 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
27044 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
27045 ("*<ANDOR:bitops_name>c<GPR:mode>")
27046 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
27047 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
27048 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
27049 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
27051 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27053 * common/config/s390/s390-common.c (processor_flags_table): New
27055 * config.gcc: Support arch13 with the --with-arch= configure flag.
27056 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27057 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
27058 * config/s390/s390.c (s390_get_sched_attrmask)
27059 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27060 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27061 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27062 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27063 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27065 * config/s390/s390.opt: Support arch13 as processor type in
27066 command line options.
27068 2019-04-02 Martin Liska <mliska@suse.cz>
27070 PR translation/89912
27071 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27072 Fix param description of graphite-max-arrays-per-scop.
27074 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27076 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27077 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27078 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27080 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27082 PR rtl-optimization/85412
27083 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27084 sel_sched_region_1, not after.
27086 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27088 PR rtl-optimization/86928
27089 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27090 compute_live if necessary.
27091 (sel_redirect_edge_and_branch): Likewise.
27093 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27095 PR rtl-optimization/89865
27096 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27097 register if it is a part of small class.
27099 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27101 PR rtl-optimization/87273
27102 * sel-sched-ir.c (merge_fences): Remove assert.
27104 2019-04-01 Richard Biener <rguenther@suse.de>
27106 PR tree-optimization/46590
27107 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27108 (dom_walker::m_reachability): Add in place of...
27109 (dom_walker::m_skip_unreachable_blocks): ...this.
27110 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27111 Move complex initialization ...
27112 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27113 lazily and initialize edge flags on each invocation.
27114 (dom_walker::bb_reachable): Use m_reachability.
27116 2019-04-01 Martin Liska <mliska@suse.cz>
27119 * opt-suggestions.c (option_proposer::build_option_suggestions):
27120 Add variant without any argument in order to provide better
27123 2019-04-01 Richard Biener <rguenther@suse.de>
27126 * gimple.c: Include langhooks.h.
27127 (gimple_get_alias_set): Treat enumeral types as the underlying
27130 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27131 Eric Botcazou <ebotcazou@adacore.com>
27133 PR rtl-optimization/89862
27134 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27135 that operates on the full registers for WORD_REGISTER_OPERATIONS
27138 2019-03-29 Jim Wilson <jimw@sifive.com>
27140 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27141 Clear MASK_RVC and then set if C subset supported.
27143 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27146 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27147 non-addressable complit into its initializer if it is volatile.
27149 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27151 * opts-common.c (integral_argument): Set errno properly in one case.
27153 2019-03-29 Martin Liska <mliska@suse.cz>
27155 * doc/invoke.texi: Remove -Wchkp from documentation.
27157 2019-03-29 Martin Liska <mliska@suse.cz>
27159 * dbgcnt.c (print_limit_reach): New function.
27162 2019-03-29 Martin Liska <mliska@suse.cz>
27164 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27165 (dbg_cnt_process_opt): Parse first tokens aas
27166 dbg_cnt_process_single_pair is also using strtok.
27168 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27170 PR rtl-optimization/87485
27171 * function.c (expand_function_end): Move stack_protect_epilogue
27172 before loading of return value into hard register(s).
27174 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27176 PR middle-end/89621
27177 * tree-inline.h (struct copy_body_data): Add
27178 dont_remap_vla_if_no_change flag.
27179 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27180 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27181 and remap_type_2 returns false.
27182 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27183 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27184 only from where it is copied to nested contexts.
27186 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27189 * config/i386/i386.md (RMW operation with LEA peephole):
27190 Use LEAMODE mode attribute instead of SWI mode iterator for
27193 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27196 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27197 Also process XEXP (src, 0) of a shift insn.
27199 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27201 PR middle-end/89725
27202 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27203 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27205 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27207 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27209 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27210 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27211 immediately after first one with df_analyze in between, but rather
27212 process all bbs, queueing ones that need second pass in a worklist,
27213 df_analyze, process queued debug insn changes and if second pass is
27214 needed, process bbs from worklist, df_analyze, process queued debug
27217 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27218 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27219 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27221 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27224 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27227 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27230 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27231 function for 32-bit MS_ABI.
27232 (function_value_ms_32): New function.
27234 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27236 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27237 (movdi): Call gen_movdi_symbol_save_scc.
27238 (gen_movdi_symbol_save_scc): New insn and split.
27240 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27242 PR rtl-optimization/89313
27243 * function.c (matching_constraint_num): New static function.
27244 (match_asm_constraints_1): Use it. Fixup white space and comment.
27245 Don't replace inputs with non-matching constraints which conflict
27246 with early clobber outputs.
27248 2019-03-27 Jeff Law <law@redhat.com>
27250 PR rtl-optimization/87761
27251 PR rtl-optimization/89826
27252 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27254 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27255 note problem to get REG_DEAD/REG_UNUSED notes updated.
27257 2019-03-27 Richard Biener <rguenther@suse.de>
27259 PR tree-optimization/89463
27260 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
27261 queue edges to remove.
27262 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
27263 dead stmts. Delay edge removal until PHIs are removed to
27264 make debug-stmt creation not confused by seemingly degenerate
27267 2019-03-27 Alan Modra <amodra@gmail.com>
27269 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
27271 * config/rs6000/darwin.h: Likewise.
27272 * config/rs6000/rs6000.c: Likewise.
27274 2019-03-27 Alan Modra <amodra@gmail.com>
27276 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
27277 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
27279 2019-03-26 Andrew Waterman <andrew@sifive.com>
27280 Jim Wilson <jimw@sifive.com>
27282 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
27283 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
27284 (generic_idivdi, generic_fmul_single, generic_fmul_double)
27285 (generic_fdiv, generic_fsqrt): Add check for generic tune.
27286 (generic_alu): Add auipc to type list.
27287 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
27288 (riscv_microarchitecture): Declare.
27289 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
27290 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
27292 (riscv_microarchitecture): New.
27293 (sifive_7_tune_info): New.
27294 (riscv_cpu_info_table): Add microarchitecture value for rocket and
27295 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
27297 (riscv_store_data_bypass_p): New.
27298 (riscv_option_override): Set riscv_microarchitecture from
27299 cpu->microarchitecture.
27300 * config/riscv/riscv.md: Include sifive-7.md.
27303 (auipc<mode>): Change type to auipc.
27304 (restore_stack_nonlocal): New.
27305 * config/riscv/sifive-7.md: New.
27306 * doc/invoke.texi (RISC-V Options): Update mtune docs.
27308 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
27311 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
27312 Also process XEXP (src, 0) of a shift insn.
27314 2019-03-26 Richard Biener <rguenther@suse.de>
27316 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
27317 (copy_debug_stmt): Likewise.
27318 (expand_call_inline): Likewise.
27319 (copy_bb): Avoid redundant lookup & set of gimple_block.
27320 * gimple-low.c (lower_gimple_return): Likewise.
27321 (lower_builtin_setjmp): Likewise.
27323 2019-03-26 Jakub Jelinek <jakub@redhat.com>
27325 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
27326 is constant 0, turn into static const data member initialized to false.
27327 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
27328 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
27330 2019-03-26 Jason Merrill <jason@redhat.com>
27331 Jakub Jelinek <jakub@redhat.com>
27333 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
27335 (mem_alloc_description::release_object_overhead): Fix comment typos.
27336 * hash-table.h (hash_table::~hash_table): Call
27337 release_instance_overhead only if m_entries is non-NULL, otherwise
27338 call unregister_descriptor.
27340 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
27342 PR tree-optimization/81740
27343 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27344 In case of outer loop vectorization, check for backward dependence
27345 at the inner loop if outer loop dependence is reversed.
27347 2019-03-26 Alan Modra <amodra@gmail.com>
27349 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
27350 rs6000_vector_mem init. Correct wI and wJ comment.
27352 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
27354 PR rtl-optimization/88347
27355 PR rtl-optimization/88423
27356 * sched-deps.c (sched_analyze_insn): Take into account that for
27357 tablejumps the barrier appears after a label and a jump_table_data.
27359 2019-03-25 Martin Sebor <msebor@redhat.com>
27362 * c-common.c (check_user_alignment): Rename local. Correct maximum
27363 alignment in diagnostic. Avoid assuming argument fits in SHWI,
27364 convert it to UHWI when it fits.
27366 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
27369 * dwarf2out.c (premark_used_variables): New function.
27370 (prune_unused_types_walk): Do not mark not premarked external
27372 (prune_unused_types): Call premark_used_variables.
27374 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
27376 PR rtl-optimization/89676
27377 * lra-constraints.c (curr_insn_transform): Do match reload for
27378 early clobbers when the match was successful only for different
27381 2019-03-25 Martin Sebor <msebor@redhat.com>
27383 * doc/extend.texi (Common Type Attributes): Document vector_size.
27384 (Common Variable Attributes): Mention size constraint. Correct
27386 (Vector Extensions): Use @dfn when defining bas type. Clarify
27387 base type and size constraints.
27389 2019-03-25 Richard Biener <rguenther@suse.de>
27391 PR tree-optimization/89789
27392 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
27393 changes from non-undefined back to undefined.
27395 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
27397 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
27398 heap string and a gc string, but since this variable is unknown to
27399 ggc the gc string might get reused and corrupted. Fixed by always
27400 using a heap string.
27402 2019-03-25 Richard Biener <rguenther@suse.de>
27404 PR tree-optimization/89779
27405 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
27406 to remove IV defs, delay actual removal.
27407 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
27408 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
27409 very end, properly also reset loop control IV information.
27411 2019-03-25 Richard Biener <rguenther@suse.de>
27413 PR tree-optimization/89802
27414 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
27415 move EH data to folded stmt.
27417 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27419 * config/s390/s390-builtin-types.def: Remove few unused types and
27420 fix sort order for others.
27422 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27424 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
27425 expected and found types with -mdebug during builtin matching.
27427 2019-03-25 Richard Biener <rguenther@suse.de>
27429 PR middle-end/89790
27430 * fold-const.c (operand_equal_p): Revert last change with
27433 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27435 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27436 notes for the result of the __tls_get_addr calls.
27437 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27439 2019-03-24 Jeff Law <law@redhat.com>
27441 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27443 PR rtl-optimization/87761
27444 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27445 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27447 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27448 rescans. Reprocess blocks as needed, calling df_analyze before
27449 reprocessing. Always call df_analyze before fixing up debug bind
27452 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27454 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27457 2019-03-22 Andrew Pinski <apinski@marvell.com>
27459 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27460 attrribute for uxtw.
27462 2019-03-26 Jeff Law <law@redhat.com>
27464 PR rtl-optimization/87761
27465 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27466 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27467 (mips_split_move): Accept new INSN argument. Try to forward SRC
27468 into the next instruction.
27469 (mips_split_move_insn): Pass INSN through to mips_split_move.
27471 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
27473 PR rtl-optimization/89676
27474 * lra-constraints.c (curr_insn_transform): Do match reload for
27475 early clobbers even if the match was successful.
27477 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27480 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
27482 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
27484 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
27486 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27488 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
27489 <avx512>_fmsub_<mode>_mask3<round_name>,
27490 <avx512>_fnmadd_<mode>_mask3<round_name>,
27491 <avx512>_fnmsub_<mode>_mask3<round_name>,
27492 avx512f_vmfmadd_<mode>_mask3<round_name>,
27493 avx512f_vmfmsub_<mode>_mask3<round_name>,
27494 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
27495 instead of register_operand and %v instead of v for match_operand 1.
27496 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
27497 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
27498 <round_nimm_predicate> instead of register_operand and %v instead of v
27499 for match_operand 1.
27501 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
27502 <avx512>_fmadd_<mode>_mask3<round_name>,
27503 <avx512>_fmsub_<mode>_mask<round_name>,
27504 <avx512>_fmsub_<mode>_mask3<round_name>,
27505 <avx512>_fnmadd_<mode>_mask<round_name>,
27506 <avx512>_fnmadd_<mode>_mask3<round_name>,
27507 <avx512>_fnmsub_<mode>_mask<round_name>,
27508 <avx512>_fnmsub_<mode>_mask3<round_name>,
27509 <avx512>_fmaddsub_<mode>_mask<round_name>,
27510 <avx512>_fmaddsub_<mode>_mask3<round_name>,
27511 <avx512>_fmsubadd_<mode>_mask<round_name>,
27512 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
27513 <round_nimm_predicate> instead of nonimmediate_operand.
27514 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
27515 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
27516 Use register_operand instead of <round_nimm_predicate> for the
27517 operand that needs to match output.
27518 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
27519 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
27520 Likewise. Formatting fixes.
27523 * config/i386/i386.c (enum ix86_builtins): Remove
27524 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
27525 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
27526 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
27527 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
27528 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
27529 __builtin_ia32_vfmsubss3_mask3): New builtins.
27530 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
27531 avx512f_vmfmadd_<mode>_mask3<round_name>,
27532 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
27533 *avx512f_vmfmsub_<mode>_mask<round_name>,
27534 avx512f_vmfmsub_<mode>_mask3<round_name>,
27535 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
27536 *avx512f_vmfnmadd_<mode>_mask<round_name>,
27537 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
27538 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
27539 *avx512f_vmfnmsub_<mode>_mask<round_name>,
27540 avx512f_vmfnmsub_<mode>_mask3<round_name>,
27541 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
27542 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
27543 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
27544 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
27545 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
27546 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
27547 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
27548 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
27549 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
27550 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
27551 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
27552 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
27553 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
27554 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
27555 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
27556 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
27557 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
27558 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
27559 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
27560 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
27561 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
27562 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
27564 2019-03-21 Martin Sebor <msebor@redhat.com>
27566 PR tree-optimization/89350
27567 * builtins.c (compute_objsize): Also ignore offsets whose upper
27569 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
27570 (builtin_memref::builtin_memref): Initialize new member.
27571 Allow EXPR to be null.
27572 (builtin_memref::extend_offset_range): Replace local with a member.
27573 Avoid assuming pointer offsets are unsigned.
27574 (builtin_memref::set_base_and_offset): Determine base object
27575 before computing offset range.
27576 (builtin_access::builtin_access): Handle memset.
27577 (builtin_access::generic_overlap): Replace local with a member.
27578 (builtin_access::strcat_overlap): Same.
27579 (builtin_access::overlap): Same.
27580 (maybe_diag_overlap): Same.
27581 (maybe_diag_access_bounds): Same.
27582 (wrestrict_dom_walker::check_call): Handle memset.
27583 (check_bounds_or_overlap): Same.
27585 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
27586 Jakub Jelinek <jakub@redhat.com>
27589 * tree.c (fld_type_variant, fld_incomplete_type_of,
27590 fld_process_array_type): Call fld->pset.add and don't call
27591 add_tree_to_fld_list if it returns true.
27592 (free_lang_data_in_type): Similarly with self-recursive call. Purge
27593 non-marked types from TYPE_NEXT_VARIANT list.
27594 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
27596 2019-03-21 Jakub Jelinek <jakub@redhat.com>
27598 * hash-table.h (hash_table): Add Lazy template parameter defaulted
27599 to false, if true, don't alloc_entries during construction, but defer
27600 it to the first method that needs m_entries allocated.
27601 (hash_table::hash_table, hash_table::~hash_table,
27602 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
27603 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
27604 hash_table::clear_slot, hash_table::traverse_noresize,
27605 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
27606 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
27608 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
27609 NO_INSERT instead of find_with_hash.
27610 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
27611 hash_set::m_table): Add Lazy to template params of hash_table.
27612 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27613 * attribs.c (test_attribute_exclusions): Likewise.
27614 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27615 hash_set. Add tests for hash_set with Lazy = true.
27617 2019-03-21 Richard Biener <rguenther@suse.de>
27619 PR tree-optimization/89779
27620 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27621 checks with respect to released SSA names now having error_mark_node
27623 * fold-const.c (operand_equal_p): Likewise.
27625 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27628 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27630 (s390_optimize_register_info): Use global_not_special_regno_p to
27631 check for global regs.
27633 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27636 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27637 update this_alternative nor this_alternative_set.
27639 2019-03-19 Jim Wilson <jimw@sifive.com>
27642 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27643 align, size, offset. Use them to handle a BLKmode reference. Update
27645 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27647 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27649 PR rtl-optimization/89768
27650 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27651 instead of GEN_INT.
27652 (unroll_loop_runtime_iterations): Likewise.
27654 2019-03-19 Martin Sebor <msebor@redhat.com>
27656 PR tree-optimization/89644
27657 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27658 rather than endptr as an indicator of nul-termination.
27660 PR tree-optimization/89644
27661 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27662 arrays in determining sequence sizes in strncpy and stpncpy.
27664 2019-03-19 Martin Liska <mliska@suse.cz>
27666 PR middle-end/89737
27667 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27668 unlikely_edges if there's an edge that belongs to both these sets.
27670 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27673 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27674 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27675 go via a stack temporary.
27677 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27680 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27681 instead of gen_rtx_SUBREG.
27682 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27684 2019-03-19 Richard Biener <rguenther@suse.de>
27687 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27689 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27693 * tree.c (free_lang_data_in_decl): Do not free context of C++
27696 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27699 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27700 subs for the first alternative except when operands[3] is 1.
27703 * gimplify.c (gimplify_asm_expr): For output argument with
27704 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27707 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27709 PR rtl-optimization/89753
27710 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27711 explicit unrolling factor even more robust.
27713 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27716 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27717 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27718 signed zeros, do another copysign after the compensation.
27720 2019-03-18 Martin Sebor <msebor@redhat.com>
27722 PR tree-optimization/89720
27723 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27724 more conservatively, the same as anti-range.
27726 2019-03-18 Richard Biener <rguenther@suse.de>
27728 PR middle-end/88945
27729 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27730 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27731 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27732 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27734 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27736 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27737 Extend queue to 1024 entries.
27738 Add "consumed" field.
27739 (gomp_print_output): Remove print_index parameter.
27740 Add final parameter.
27741 Change limit to unsigned.
27742 Use consumed field to implement circular buffer.
27743 Detect interrupted print in final pass.
27744 Flush output at the end.
27745 (run): Update gomp_print_output usage.
27746 (main): Initialize kernargs->output_data.consumed.
27748 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27750 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27751 calculation of the minimum number of scalar iterations for
27752 fully-predicated loops.
27754 2019-03-18 Martin Jambor <mjambor@suse.cz>
27756 PR tree-optimization/89546
27757 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27758 any propagation to its children took place.
27760 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27763 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27764 parameter, and make use of it.
27765 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27767 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27769 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27770 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27771 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27772 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27773 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27774 match what the ops is doing.
27775 (push_multi_fp_blink): Likewise.
27776 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27777 compiling for size and elf target.
27778 (arc_save_callee_enter): Adjust note to match what enter/leave
27781 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27783 * config/arc/arc.md (tst_movb): Fix constraint.
27785 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27787 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27789 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27791 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27792 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27793 reg_alloc_order references.
27794 (size_alloc_order): Define.
27795 (arc_adjust_reg_alloc_order): New function.
27796 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27798 (ADJUST_REG_ALLOC_ORDER): Define.
27799 (HONOR_REG_ALLOC_ORDER): Likewise.
27801 2019-03-18 Richard Biener <rguenther@suse.de>
27804 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27805 loads and stores a bit more.
27807 2019-03-18 Richard Biener <rguenther@suse.de>
27810 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27811 load pessimization to stores as well.
27813 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27815 PR middle-end/86979
27816 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27817 successor, use NULL as its av set.
27819 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27821 PR rtl-optimization/89721
27822 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27824 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27827 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27828 When handling vec_extract, use modular arithmetic to allow
27829 constant selectors greater than vector length.
27830 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27831 V1TImode vectors to have constant selector values greater than 0.
27832 Use modular arithmetic to compute vector index.
27833 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27834 index for in-memory vectors. Correct code generation for
27835 in-register vectors.
27836 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27839 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27843 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27846 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27849 * tree.c (inchash::add_expr): Strip any location wrappers.
27850 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27851 after hash verification.
27854 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27855 SIGN_EXTEND and ZERO_EXTEND.
27857 2019-03-14 Jason Merrill <jason@redhat.com>
27858 Jakub Jelinek <jakub@redhat.com>
27860 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27861 than if is_empty (*slot).
27862 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27863 existing elt and for elt removal.
27864 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27865 of already removed elt.
27867 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27870 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27871 REG_EH_REGION note.
27873 2019-03-14 Martin Liska <mliska@suse.cz>
27876 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27878 2019-03-14 Richard Biener <rguenther@suse.de>
27881 * config/i386/i386.c (make_resolver_func): Properly set
27882 DECL_CONTEXT on the RESULT_DECL.
27883 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27885 2019-03-14 Richard Biener <rguenther@suse.de>
27887 * gimple-pretty-print.c: Include cfgloop.h.
27888 (dump_gimple_phi): Adjust.
27889 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27890 (pp_cfg_jump): Adjust.
27891 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27892 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27893 (lower_phi_internal_fn): Remove.
27894 (verify_gimple_call): Remove IFN_PHI special-casing.
27895 (dump_function_to_file): Dump IL state.
27896 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27897 done to deal with PHI nodes being present in non-SSA state.
27899 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27902 * multiple_target.c (create_dispatcher_calls): Change
27903 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27904 In the node->iterate_referring loop, push *ref rather than ref, call
27905 ref->remove_reference () and always pass 0 to iterate_referring.
27907 PR rtl-optimization/89679
27908 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27909 would contain a paradoxical SUBREG.
27911 2019-03-14 Richard Biener <rguenther@suse.de>
27913 PR tree-optimization/89710
27914 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27917 2019-03-14 Martin Liska <mliska@suse.cz>
27919 * coverage.c (coverage_begin_function): Stream also
27921 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27922 documentation about function declaration location.
27923 * gcov-dump.c (tag_function): Print whole range
27924 of function declaration.
27925 * gcov.c (struct function_info): Add end_column field.
27926 (function_info::function_info): Initialize it.
27927 (output_json_intermediate_file): Output {start,end}_column
27929 (read_graph_file): Read end_column.
27931 2019-03-14 Richard Biener <rguenther@suse.de>
27933 PR middle-end/89698
27934 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27935 that the access types are similar.
27937 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27939 PR tree-optimization/89703
27940 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27941 aren't compatible also with builtin_decl_explicit. Check pure
27942 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27943 and BUILT_IN_STPNCPY{,_CHK}.
27945 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27948 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27949 addr32 prefix to VSIB address for X32.
27950 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27952 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27953 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27954 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27955 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27956 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27957 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27958 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27959 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27960 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27961 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27962 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27963 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27964 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27965 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27966 (*avx512f_scatterdi<mode>): Likewise.
27968 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27971 * lra-constraints.c (inherit_in_ebb): Update
27972 potential_reload_hard_regs along with live_hard_regs.
27974 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27977 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27979 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27981 2019-03-13 Martin Sebor <msebor@redhat.com>
27983 PR tree-optimization/89662
27984 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27987 2019-03-13 Richard Biener <rguenther@suse.de>
27989 PR middle-end/89677
27990 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27991 throw FP expressions at tree-affine.
27993 2019-03-14 Richard Biener <rguenther@suse.de>
27995 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27996 dump negative integer constants using _Literal (type) -num.
27998 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28000 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
28001 nonlocal_value member.
28003 PR middle-end/88588
28004 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
28005 (ipa_simd_modify_function_body): Handle PHIs.
28007 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28009 * config/s390/s390.c (s390_option_override_internal): Use more
28010 aggressive inlining parameters.
28012 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28014 * config/s390/3906.md: New file.
28015 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28016 (LONGRUNNING_THRESHOLD): Remove.
28017 (MAX_SCHED_MIX_SCORE): Decrease.
28018 (MAX_SCHED_MIX_DISTANCE): Decrease.
28019 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
28020 (struct s390_sched_state): New struct to hold scheduling state.
28021 (S390_SCHED_STATE_NORMAL): Remove.
28022 (S390_SCHED_STATE_CRACKED): Remove.
28023 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
28024 (s390_get_sched_attrmask): Use new attribute.
28025 (s390_get_unit_mask): Use new units.
28026 (s390_is_fpd): New function.
28027 (s390_is_fxd): New function.
28028 (s390_is_longrunning): New function.
28029 (s390_sched_score): Use new functions.
28030 (s390_sched_reorder): Likewise.
28031 (s390_sched_variable_issue): Rework and use new functions.
28032 (s390_sched_init): Use new functions.
28033 * config/s390/s390.h (s390_tune_attr): Add z14.
28034 * config/s390/s390.md: Add z14.
28036 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28038 * config/s390/2964.md: Update pipeline description.
28039 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28040 (LONGRUNNING_THRESHOLD): Remove.
28041 (LATENCY_FACTOR): Remove.
28042 (s390_get_unit_mask): Add unit.
28043 (s390_sched_score): Use fxd/fpd.
28044 (s390_sched_variable_issue): Use fxd/fpd.
28046 2019-03-12 Martin Liska <mliska@suse.cz>
28048 * config/i386/i386.c: Reword an error message.
28050 2019-03-12 Martin Jambor <mjambor@suse.cz>
28052 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
28053 terminate with newline.
28055 2019-03-12 Jakub Jelinek <jakub@redhat.com>
28058 * config/s390/s390.md (tabort): Use %wd instead of
28059 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28060 letters and periods.
28061 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28062 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28065 PR middle-end/89663
28066 * builtins.c (expand_builtin_int_roundingfn,
28067 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28068 gcc_unreachable if validate_arglist fails.
28070 2019-03-12 Richard Biener <rguenther@suse.de>
28072 PR tree-optimization/89664
28073 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28074 free the occurance tree after the early out.
28076 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28078 PR middle-end/89655
28080 * vr-values.c (vr_values::update_value_range): If
28081 old_vr->varying_p (), don't update it, make new_vr also VARYING
28084 2019-03-11 Martin Liska <mliska@suse.cz>
28086 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28087 Fix double string quoting.
28089 2019-03-11 Martin Liska <mliska@suse.cz>
28091 * collect-utils.c (collect_wait): Wrap apostrophes
28092 in gcc internal format with %'.
28093 * collect2.c (main): Likewise.
28094 (scan_prog_file): Likewise.
28095 (scan_libraries): Likewise.
28096 * config/i386/i386.c (ix86_expand_call): Likewise.
28097 (ix86_handle_interrupt_attribute): Likewise.
28098 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28099 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28100 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28101 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28102 * symtab.c (symtab_node::verify_base): Likewise.
28103 * tree-cfg.c (verify_gimple_label): Likewise.
28104 * tree.c (verify_type_variant): Likewise.
28106 2019-03-11 Martin Liska <mliska@suse.cz>
28108 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28109 in a string format message and fix GNU coding style.
28110 (expand_builtin_set_thread_pointer): Likewise.
28111 * common/config/aarch64/aarch64-common.c
28112 (aarch64_rewrite_selected_cpu): Likewise.
28113 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28114 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28115 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28116 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28117 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28118 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28119 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28120 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28121 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28122 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28124 * common/config/riscv/riscv-common.c
28125 (riscv_subset_list::parsing_subset_version): Likewise.
28126 (riscv_subset_list::parse_std_ext): Likewise.
28127 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28128 (riscv_subset_list::parse): Likewise.
28129 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28130 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28131 (aarch64_override_options_internal): Likewise.
28132 (aarch64_validate_mcpu): Likewise.
28133 (aarch64_validate_march): Likewise.
28134 (aarch64_validate_mtune): Likewise.
28135 (aarch64_override_options): Likewise.
28136 * config/alpha/alpha.c (alpha_option_override): Likewise.
28137 * config/arc/arc.c (arc_init): Likewise.
28138 (parse_mrgf_banked_regs_option): Likewise.
28139 (arc_override_options): Likewise.
28140 (arc_expand_builtin_aligned): Likewise.
28141 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28142 (arm_expand_builtin): Likewise.
28143 * config/arm/arm.c (arm_option_check_internal): Likewise.
28144 (arm_configure_build_target): Likewise.
28145 (arm_option_override): Likewise.
28146 (arm_options_perform_arch_sanity_checks): Likewise.
28147 (arm_handle_cmse_nonsecure_entry): Likewise.
28148 (arm_handle_cmse_nonsecure_call): Likewise.
28149 (arm_tls_referenced_p): Likewise.
28150 (thumb1_expand_prologue): Likewise.
28151 * config/avr/avr.c (avr_option_override): Likewise.
28152 * config/bfin/bfin.c (bfin_option_override): Likewise.
28153 * config/c6x/c6x.c (c6x_option_override): Likewise.
28154 * config/cr16/cr16.c (cr16_override_options): Likewise.
28155 * config/cris/cris.c (cris_option_override): Likewise.
28156 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28157 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28158 * config/darwin.c (darwin_override_options): Likewise.
28159 * config/frv/frv.c (frv_expand_builtin): Likewise.
28160 * config/h8300/h8300.c (h8300_option_override): Likewise.
28161 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28162 (ix86_option_override_internal): Likewise.
28163 (warn_once_call_ms2sysv_xlogues): Likewise.
28164 (ix86_expand_prologue): Likewise.
28165 (split_stack_prologue_scratch_regno): Likewise.
28166 (ix86_warn_parameter_passing_abi): Likewise.
28167 * config/ia64/ia64.c (fix_range): Likewise.
28168 * config/m68k/m68k.c (m68k_option_override): Likewise.
28169 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28170 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28171 (mips_set_compression_mode): Likewise.
28172 * config/mmix/mmix.c (mmix_option_override): Likewise.
28173 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28174 * config/msp430/msp430.c (msp430_option_override): Likewise.
28175 * config/nds32/nds32.c (nds32_option_override): Likewise.
28176 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28177 (nios2_option_override): Likewise.
28178 (nios2_expand_custom_builtin): Likewise.
28179 * config/nvptx/mkoffload.c (main): Likewise.
28180 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28181 * config/pa/pa.c (fix_range): Likewise.
28182 (pa_option_override): Likewise.
28183 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28184 (riscv_option_override): Likewise.
28185 * config/rl78/rl78.c (rl78_option_override): Likewise.
28186 * config/rs6000/aix61.h: Likewise.
28187 * config/rs6000/aix71.h: Likewise.
28188 * config/rs6000/aix72.h: Likewise.
28189 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28190 * config/rs6000/freebsd64.h: Likewise.
28191 * config/rs6000/linux64.h: Likewise.
28192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28193 (rs6000_expand_zeroop_builtin): Likewise.
28194 (rs6000_expand_mtfsb_builtin): Likewise.
28195 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28196 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28197 (rs6000_invalid_builtin): Likewise.
28198 (rs6000_expand_split_stack_prologue): Likewise.
28199 * config/rs6000/rtems.h: Likewise.
28200 * config/rx/rx.c (valid_psw_flag): Likewise.
28201 (rx_expand_builtin): Likewise.
28202 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28203 * config/s390/s390.c (s390_expand_builtin): Likewise.
28204 (s390_function_profiler): Likewise.
28205 (s390_option_override_internal): Likewise.
28206 (s390_option_override): Likewise.
28207 * config/sh/sh.c (sh_option_override): Likewise.
28208 (sh_builtin_saveregs): Likewise.
28209 (sh_fix_range): Likewise.
28210 * config/sh/vxworks.h: Likewise.
28211 * config/sparc/sparc.c (sparc_option_override): Likewise.
28212 * config/spu/spu.c (spu_option_override): Likewise.
28213 (fix_range): Likewise.
28214 * config/visium/visium.c (visium_option_override): Likewise.
28215 (visium_handle_interrupt_attr): Likewise.
28216 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28217 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28218 (dbg_cnt_process_opt): Likewise.
28219 * dwarf2out.c (output_dwarf_version): Likewise.
28220 * except.c (expand_eh_return): Likewise.
28221 * gcc.c (defined): Likewise.
28222 (driver_handle_option): Likewise.
28223 (process_command): Likewise.
28224 (compare_files): Likewise.
28225 (driver::prepare_infiles): Likewise.
28226 (driver::do_spec_on_infiles): Likewise.
28227 (driver::maybe_run_linker): Likewise.
28228 * omp-offload.c (oacc_parse_default_dims): Likewise.
28229 * opts-global.c (handle_common_deferred_options): Likewise.
28230 * opts.c (parse_sanitizer_options): Likewise.
28231 (common_handle_option): Likewise.
28232 (enable_warning_as_error): Likewise.
28233 * passes.c (enable_disable_pass): Likewise.
28234 * plugin.c (parse_plugin_arg_opt): Likewise.
28235 (default_plugin_dir_name): Likewise.
28236 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28237 (default_pch_valid_p): Likewise.
28238 * toplev.c (init_asm_output): Likewise.
28239 (process_options): Likewise.
28240 (toplev::run_self_tests): Likewise.
28241 * tree-cfg.c (verify_gimple_call): Likewise.
28242 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28243 (tree_inlinable_function_p): Likewise.
28244 * var-tracking.c (vt_find_locations): Likewise.
28246 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28248 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28249 only on the else branch.
28251 2019-03-11 Martin Liska <mliska@suse.cz>
28253 * gcov.c (output_intermediate_json_line): Print function
28255 (output_json_intermediate_file): Add new argument.
28256 * doc/gcov.texi: Document the change.
28258 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
28260 PR rtl-optimization/89588
28261 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28262 explicit unrolling factor more robust.
28264 2019-03-11 Richard Biener <rguenther@suse.de>
28266 PR tree-optimization/89649
28267 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
28268 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
28269 on the prolog and epilog loops.
28270 (vect_loop_versioning): Return copy of loop.
28271 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
28272 on the non-vectorized version of the loop.
28274 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
28277 * config/i386/sse.md (*vec_extractv2di_0_sse):
28278 Add (=r,x) alternative and corresponding splitter.
28280 2019-03-10 Martin Jambor <mjambor@suse.cz>
28282 PR tree-optimization/85762
28283 PR tree-optimization/87008
28284 PR tree-optimization/85459
28285 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
28286 it points to if there is a type changing MEM_REF. Adjust all callers.
28287 (build_accesses_from_assign): Disable total scalarization if
28288 contains_vce_or_bfcref_p returns true through the new parameter, for
28291 2019-03-09 Jakub Jelinek <jakub@redhat.com>
28294 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
28295 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
28298 * common.opt (fdiagnostics-show-labels,
28299 fdiagnostics-show-line-numbers, fdiagnostics-format=,
28300 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
28301 gas-locview-support, ginline-points, ginternal-reset-location-views):
28302 Terminate description text with a dot.
28303 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
28304 * config/mcore/mcore.opt (m210, m340): Likewise.
28305 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
28306 mnops=): Start description text with a capital letter.
28307 * config/arc/arc.opt (msize-level=): Likewise.
28308 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
28309 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
28310 mnewlib): Likewise.
28311 * config/ft32/ft32.opt (msim): Likewise.
28312 (mft32b, mcompress): Likewise. Terminate description text with a dot.
28313 (mnodiv, mnopm): Terminate description text with a dot.
28314 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
28316 * config/i386/i386.opt (prefer_vector_width, instrument_return):
28318 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
28321 PR rtl-optimization/89634
28322 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
28323 are modified in BB_END (e->src) instruction.
28325 2019-03-08 David Malcolm <dmalcolm@redhat.com>
28328 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
28329 messages more amenable to translation, and improve wording.
28331 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
28333 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
28334 ud- and du-chains between phases.
28336 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
28339 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
28340 instead of POLY_INT_CST.
28342 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
28344 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
28347 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
28352 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
28353 (_mm_storeu_si64): Ditto.
28355 2019-03-08 Martin Liska <mliska@suse.cz>
28358 * config/i386/i386.c (ix86_option_override_internal): Disable
28359 jump tables when retpolines are used.
28361 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
28364 * ipa-split.c (execute_split_functions): Do not split
28365 'noinline' or 'section' function.
28367 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28370 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
28371 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
28372 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
28375 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28376 from diagnostics. Formatting fixes.
28379 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
28380 warn_odr diagnostics.
28383 * lra-constraints.c (process_alt_operands): Avoid one space before
28384 " at the end of line and another after " on another line in a string
28386 * attribs.c (handle_dll_attribute): Likewise.
28387 * config/avr/avr-devices.c (avr_texinfo): Likewise.
28389 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
28390 warning_at or inform messages in G_() if there is no ?:.
28392 PR tree-optimization/89550
28393 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
28394 returned true. Formatting fixes.
28395 (expand_builtin_strnlen): Formatting fixes.
28396 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
28397 if warning_at returned true.
28398 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
28400 2019-03-08 Richard Biener <rguenther@suse.de>
28402 PR middle-end/89578
28403 * cfgloop.h (struct loop): Add owned_clique field.
28404 * cfgloopmanip.c (copy_loop_info): Copy it.
28405 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
28407 * tree-inline.c (copy_loops): Remap owned_clique.
28408 * lto-streamer-in.c (input_cfg): Stream owned_clique.
28409 * lto-streamer-out.c (output_cfg): Likewise.
28411 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28414 * config/darwin.c: Include intl.h.
28415 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
28416 composing the message out of two separate parts.
28418 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28421 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
28422 doesn't start with a capital letter and doesn't end with a dot.
28423 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
28424 with a capital letter.
28425 (ix86_mangle_function_version_assembler_name): Likewise.
28426 (ix86_generate_version_dispatcher_body): Likewise.
28427 (fold_builtin_cpu): Likewise.
28428 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28429 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28430 translators, wrap full type name in %qs.
28432 PR translation/79999
28433 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28434 depend clause with source (or sink) modifier.
28435 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28438 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28439 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28440 (avx512f_load<mode>_mask): New define_expand.
28441 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28442 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28443 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28444 __builtin_ia32_movess_mask): New builtins.
28445 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28446 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28447 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28448 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28450 2019-03-07 Martin Jambor <mjambor@suse.cz>
28453 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28454 for extern inline functions.
28456 2019-03-07 Martin Jambor <mjambor@suse.cz>
28459 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28460 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28461 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28462 have multiple callees. At the end check if declarations match as
28463 opposed to cgraph_nodes.
28465 2019-03-07 Martin Liska <mliska@suse.cz>
28467 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28468 which is equivalent to searching for this in clones chain.
28469 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28470 names with a neighbour and special case first node in a chain.
28472 2019-01-25 Jason Merrill <jason@redhat.com>
28474 PR c++/80916 - spurious "static but not defined" warning.
28475 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
28476 for an internal symbol with DECL_EXTERNAL.
28478 2019-04-07 Richard Biener <rguenther@suse.de>
28480 PR middle-end/89618
28481 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
28482 * tree-inline.c (copy_loops): Simplify.
28484 2019-03-07 Martin Liska <mliska@suse.cz>
28486 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
28488 2019-03-07 Richard Biener <rguenther@suse.de>
28490 PR tree-optimization/89595
28491 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
28492 stmt iterator as reference, take boolean output parameter to
28493 indicate whether the stmt was removed and thus the iterator
28495 (dom_opt_dom_walker::before_dom_children): Re-iterate over
28496 stmts created by folding.
28498 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28501 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
28504 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
28506 PR rtl-optimization/88845
28507 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
28509 * lra.c (remove_scratches_1): New function.
28510 (remove_scratches): Use it.
28511 (lra_emit_move): Likewise.
28513 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
28515 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
28516 unaligned_access variable.
28517 * config/arc/arc.c (arc_override_options): Set unaligned access
28518 default on for HS CPUs.
28519 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
28521 2019-03-06 Martin Liska <mliska@suse.cz>
28523 PR gcov-profile/89577
28524 * doc/gcov.texi: Prefer to use --coverage.
28525 * doc/sourcebuild.texi: Likewise.
28527 2019-03-02 Jason Merrill <jason@redhat.com>
28529 PR c++/86485 - -Wmaybe-unused with empty class ?:
28530 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
28532 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28535 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
28538 PR middle-end/89590
28539 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
28540 exactly one argument.
28542 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28543 Richard Sandiford <richard.sandiford@arm.com>
28545 PR tree-optimization/89570
28546 * match.pd (vec_cond into cond_op simplification): Don't use
28547 get_conditional_internal_fn, use as_internal_fn (cond_op).
28549 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
28552 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
28553 to decide when to split off a non-zero offset from a symbol.
28554 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
28555 in function symbols.
28557 2019-03-05 Richard Biener <rguenther@suse.de>
28559 PR tree-optimization/89594
28560 * tree-if-conv.c (pass_if_conversion::execute): Handle
28561 case where .LOOP_VECTORIZED_FUNCTION was removed.
28563 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28566 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
28567 instead alloca it only when needed with the needed size.
28569 PR tree-optimization/89570
28570 * match.pd (vec_cond into cond_op simplification): Guard with
28571 vectorized_internal_fn_supported_p test and #if GIMPLE.
28573 PR tree-optimization/89566
28574 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
28575 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
28576 Punt if get_user_idx_format succeeds, but idx_format argument is
28577 not provided or doesn't have pointer type, or if idx_args is above
28578 number of provided arguments.
28580 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
28582 PR tree-optimization/89437
28583 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
28585 2019-03-04 Richard Biener <rguenther@suse.de>
28587 PR middle-end/89572
28588 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
28591 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
28593 PR tree-optimization/89487
28594 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
28595 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
28596 (distribute_loop): Don't do runtime alias check if there is non-
28597 addressable data reference.
28598 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
28599 is a register variable.
28601 2019-03-02 Jakub Jelinek <jakub@redhat.com>
28604 * config/arm/arm.md (cmpsi2_addneg): Use
28605 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
28606 If operands[2] is 0 or INT_MIN, force use of subs.
28607 (*compare_scc splitter): Use gen_int_mode.
28608 (*negscc): Likewise.
28609 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
28611 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28612 Monk Chiang <sh.chiang04@gmail.com>
28614 * common/config/riscv/riscv-common.c: Include sstream.
28615 (riscv_subset_list::to_string): New.
28616 (riscv_arch_str): Likewise.
28617 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28618 * config.in: Regen.
28619 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28620 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28621 (riscv_emit_attribute): New.
28622 (riscv_file_start): Emit attribute if needed.
28623 (riscv_option_override): Init riscv_emit_attribute_p.
28624 * config/riscv/riscv.opt (mriscv-attribute): New option.
28625 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28626 * configure: Regen.
28627 * doc/install.texi: Document --with-riscv-attribute.
28628 * doc/invoke.texi: Document -mriscv-attribute.
28630 * common/config/riscv/riscv-common.c:
28631 Include config/riscv/riscv-protos.h.
28632 (INCLUDE_STRING): Defined.
28633 (RISCV_DONT_CARE_VERSION): Defined.
28634 (riscv_subset_t): Declare.
28635 (riscv_subset_t::riscv_subset_t): New.
28636 (riscv_subset_list): Declare.
28637 (riscv_subset_list::riscv_subset_list): New.
28638 (riscv_subset_list::~riscv_subset_list): Likewise.
28639 (riscv_subset_list::parsing_subset_version): Likewise.
28640 (riscv_subset_list::parse_std_ext): Likewise.
28641 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28642 (riscv_subset_list::add): Likewise.
28643 (riscv_subset_list::lookup): Likewise.
28644 (riscv_subset_list::xlen): Likewise.
28645 (riscv_subset_list::parse): Likewise.
28646 (riscv_supported_std_ext): Likewise.
28647 (current_subset_list): Likewise.
28648 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28651 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28653 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28654 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28655 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28657 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28659 PR rtl-optimization/85899
28660 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28661 fallthru edges leading to the exit block.
28663 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28666 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28667 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28669 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28671 PR tree-optimization/89535
28672 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28673 for each operand. Calculate the fallback choice for mask operands
28674 and pass it to vect_get_vec_def_for_operand.
28676 2019-03-01 Richard Biener <rguenther@suse.de>
28678 PR middle-end/89541
28679 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28680 get virtual operands.
28681 (get_expr_operands): Handle CONST_DECL like other decls.
28683 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28685 PR middle-end/89503
28686 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28687 on DECL_P and EXPR_P.
28689 2019-03-01 Richard Biener <rguenther@suse.de>
28691 PR middle-end/89497
28692 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28693 argument, defaulted to zero.
28694 * passes.c (execute_function_todo): Pass down SSA update flags
28695 to cleanup_tree_cfg.
28696 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28697 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28699 (cleanup_tree_cfg): Get and pass down SSA update flags.
28701 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28704 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28705 early_lto_debug argument.
28707 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28709 PR tree-optimization/89536
28710 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28711 only whether bit #0 of the value is 0 instead of the entire value.
28713 2019-02-28 Marek Polacek <polacek@redhat.com>
28715 PR c++/87068 - missing diagnostic with fallthrough statement.
28716 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28717 at the end of a seq, save its location to walk_stmt_info.
28718 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28721 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28724 * tree.c (find_atomic_core_type): Move ahead in file.
28725 (check_base_type): Correctly compare alignments of atomic types.
28727 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28730 * config/i386/i386.c (get_builtin_code_for_version): Identify
28731 Westmere from PCLMUL, instead of AES.
28733 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28736 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28737 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28740 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28743 * config/aarch64/aarch64-option-extensions.def: Document it.
28744 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28747 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28750 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28751 builtins if they don't have a single scalar floating point argument.
28754 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28756 PR rtl-optimization/89490
28757 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28758 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28759 block section is not mergeable.
28761 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28764 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28765 old define_insn to ...
28766 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28767 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28768 Rename old define_insn to ...
28769 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28770 (thumb2_casesi_internal_pic): New define_expand. Rename old
28772 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28773 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28774 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28776 2019-02-27 Richard Biener <rguenther@suse.de>
28779 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28781 2019-02-27 Richard Biener <rguenther@suse.de>
28783 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28786 2019-02-27 Richard Biener <rguenther@suse.de>
28789 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28790 parameter, prefix section name with .gnu.debuglto_ if true.
28791 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28792 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28794 2019-02-27 Richard Biener <rguenther@suse.de>
28797 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28798 rather than on use_debug_types, doing what output_die does.
28799 (value_format): Likewise.
28801 2019-02-27 Martin Jambor <mjambor@suse.cz>
28802 Martin Sebor <msebor@redhat.com>
28804 * doc/invoke.texi (Warning Options): Reword description of
28805 -Wno-absolute-value.
28807 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28809 PR tree-optimization/89280
28810 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28811 builtin_setjmp_setup_bb): New functions.
28812 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28813 When visiting __builtin_setjmp_setup block, queue in special
28814 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28815 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28816 from visited after the loop if they don't have any visited successor
28819 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28821 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28823 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28825 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28828 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28829 with types other than sizetype/ssizetype.
28831 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28833 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28834 (enum sparc_processor_type): ...this.
28835 (enum sparc_code_model_type): New enumeration type.
28836 (enum sparc_memory_model_type): Tweak comments.
28837 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28839 (mcmodel): Use sparc_code_model enumeration and variable.
28840 (sparc_code_model): New enumeration.
28841 (mdebug): Add Undocumented marker.
28842 * config/sparc/sparc.h (enum cmodel): Delete.
28843 (sparc_cmodel): Likewise.
28844 (TARGET_CM_MEDLOW): Adjust to above renaming.
28845 (TARGET_CM_MEDMID): Likewise.
28846 (TARGET_CM_MEDANY): Likewise.
28847 (TARGET_CM_EMBMEDANY): Likewise.
28848 * config/sparc/sparc.c (sparc_cmodel): Delete.
28849 (sparc_option_override): Remove string/value mapping support for the
28850 code model. Move code and memory model support to after the handling
28851 of target flags. Do private machine setup last.
28852 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28853 (sparc_legitimize_reload_address): Likewise.
28854 (sparc_output_mi_thunk): Likewise.
28855 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28857 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28859 PR tree-optimization/89500
28860 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28861 (handle_builtin_strlen): Remove noncst_bound variable. Always
28862 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28863 cst if the first cst bytes starting at x are known to be non-zero,
28864 even if the string is not zero terminated. Don't try to modify
28865 *si for strnlen. Update strlen_to_stridx only for strlen or if
28866 we can prove strnlen returns the same value as strlen would.
28868 2019-02-26 Martin Liska <mliska@suse.cz>
28870 * alloc-pool.h (struct pool_usage): Remove extra
28872 * bitmap.h (struct bitmap_usage): Likewise.
28873 * ggc-common.c (struct ggc_usage): Likewise.
28874 * mem-stats.h (struct mem_usage): Likewise.
28875 (mem_alloc_description::dump): Print dash lines
28876 here and repeat header at the end of a table report.
28877 It's then more readable.
28878 * tree-phinodes.c (phinodes_print_statistics): Make
28879 horizontal alignment.
28880 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28881 * vec.c (struct vec_usage): Remove extra print_dash_line.
28882 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28884 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28886 * doc/extend.texi (__builtin_object_size):
28887 Use @pxref instead of @xref inside parenthesis.
28888 (__builtin_has_attribute): Add missing comma after @xref.
28889 (__builtin_object_size): Ditto.
28890 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28892 2019-02-26 Jeff Law <law@redhat.com>
28894 PR rtl-optimization/87761
28895 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28896 detect obviously dead insns and delete them.
28898 2019-02-26 Richard Biener <rguenther@suse.de>
28900 PR tree-optimization/89505
28901 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28902 to handle restrict pointed-to vars with multiple subvars
28905 2019-02-26 Richard Biener <rguenther@suse.de>
28907 PR tree-optimization/89489
28908 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28910 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28912 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28913 and move around comment.
28914 <BIT_AND_EXPR>: Likewise.
28915 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28917 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28920 * config/i386/i386.c (remove_partial_avx_dependency): Call
28921 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28922 after changing possibly many instructions to use that pseudo. Fix up
28923 insertion of v4sf_const0 setter at the start of bb.
28925 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28928 * doc/extend.texi (Variadic Pointer Args): New section.
28930 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28931 Martin Sebor <msebor@gmail.com>
28933 * common.opt (Wattribute-alias): Likewise.
28934 * doc/invoke.texi (Option Summary): List general form of
28935 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28936 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28937 Add cross-references.
28938 (-Wattribute-alias): Rewrite and correct default. Mention
28939 considered attributes (same as for -Wmissing-attributes).
28941 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28943 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28944 (_mm_cvtpd_ps): Likewise.
28945 (_mm_cvttpd_epi32): Likewise.
28948 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28949 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28952 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28954 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28957 * common/config/aarch64/aarch64-common.c
28958 (struct aarch64_option_extension): Add is_synthetic.
28959 (all_extensions): Use it.
28960 (TARGET_OPTION_INIT_STRUCT): Define hook.
28961 (struct gcc_targetm_common): Moved to end.
28962 (all_extensions_by_on): New.
28963 (opt_ext_cmp, typedef opt_ext): New.
28964 (aarch64_option_init_struct): New.
28965 (aarch64_contains_opt): New.
28966 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28967 * config/aarch64/aarch64-option-extensions.def
28968 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28969 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28970 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28971 Set is_synthetic to false.
28972 (crypto): Set is_synthetic to true.
28973 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28976 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28978 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28979 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28980 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28981 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28982 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28983 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28984 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28985 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28987 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28988 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28989 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28990 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28991 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28992 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28993 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28994 vfmlsl_laneq_high_f16): ... To this.
28995 * config/arm/neon.md: Update comments.
28997 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28999 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29000 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
29001 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29002 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
29003 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
29004 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
29005 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
29006 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
29008 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
29009 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29010 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
29011 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
29012 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
29013 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
29014 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
29015 vfmlslq_laneq_high_f16): ... To this.
29017 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
29019 PR rtl-optimization/86096
29020 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
29021 comparing mw_order values.
29023 2019-02-25 Jakub Jelinek <jakub@redhat.com>
29026 * config/arm/arm.md (*subsi3_carryin_const): Use
29027 arm_neg_immediate_operand predicate instead of
29028 arm_not_immediate_operand, "L" constraint instead of "K" and
29029 print it using %n2 instead of %B2.
29030 (*subsi3_carryin_const0): New define_insn.
29031 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
29032 instead of arm_not_operand and "I" constraint instead of "K" and
29033 print it using %n3 instead of %B2. Instead of using match_dup 2 add
29034 another match_operand and in the condition check that it is negation
29036 (*subsi3_carryin_compare_const0): New define_ins.
29037 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
29038 *subsi3_carryin_const.
29039 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
29040 split into *subsi3_carryin_compare_const0 if the highpart is zero.
29043 * config/arm.vfp.md (*negdf2_vfp): Use
29044 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
29045 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
29047 2019-02-24 Jakub Jelinek <jakub@redhat.com>
29049 PR rtl-optimization/89445
29050 * simplify-rtx.c (simplify_ternary_operation): Don't use
29051 simplify_merge_mask on operands that may trap.
29052 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
29053 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
29054 second operand is CONST_VECTOR, check if any element could be zero.
29055 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
29056 their operands can trap.
29058 2019-02-23 Martin Sebor <msebor@redhat.com>
29060 * gimple-ssa-sprintf.c (target_strtol): Rename...
29061 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29062 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29063 check for range error.
29065 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29068 * opts-common.c (prune_options): Also prune joined switches
29069 with Negative and RejectNegative.
29070 * config/i386/i386.opt (march=): Add Negative(march=).
29071 (mtune=): Add Negative(mtune=).
29072 * doc/options.texi: Document Negative used together with Joined
29073 and RejectNegative.
29075 2019-02-22 Martin Sebor <msebor@redhat.com>
29077 * doc/extend.texi (Other Builtins): Add
29078 __builtin_is_constant_evaluated.
29080 2019-02-22 Richard Biener <rguenther@suse.de>
29082 PR tree-optimization/87609
29083 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29085 2019-02-22 Jeff Law <law@redhat.com>
29087 PR rtl-optimization/87761
29088 * config/mips/mips.md: Add new combiner pattern to recognize
29089 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29091 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29094 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29095 destination register in peepholes generating patterns for ADDS/SUBS.
29096 (add<mode>3_compare0,
29097 *addsi3_compare0_uxtw, add<mode>3_compareC,
29098 add<mode>3_compareV_imm, add<mode>3_compareV,
29099 *adds_<optab><ALLX:mode>_<GPI:mode>,
29100 *subs_<optab><ALLX:mode>_<GPI:mode>,
29101 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29102 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29103 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29104 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29105 sub<mode>3_compare1): Allow stack pointer for source register.
29106 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29108 2019-02-22 Martin Sebor <msebor@redhat.com>
29110 PR tree-optimization/88993
29111 PR tree-optimization/88853
29112 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29114 (sprintf_dom_walker::call_info::is_string_func): New helper.
29115 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29116 for formatted string functions.
29117 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29119 2019-02-22 Martin Sebor <msebor@redhat.com>
29122 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29123 unreachable subexpressions.
29125 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29126 Hongtao Liu <hongtao.liu@intel.com>
29127 Sunil K Pandey <sunil.k.pandey@intel.com>
29130 * config/i386/i386-passes.def: Add
29131 pass_remove_partial_avx_dependency.
29132 * config/i386/i386-protos.h
29133 (make_pass_remove_partial_avx_dependency): New.
29134 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29136 (pass_data_remove_partial_avx_dependency): New.
29137 (pass_remove_partial_avx_dependency): Likewise.
29138 (make_pass_remove_partial_avx_dependency): Likewise.
29139 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29140 (*extendsfdf2): Add avx_partial_xmm_update.
29141 (truncdfsf2): Likewise.
29142 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29143 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29145 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29147 PR middle-end/85598
29148 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29151 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29154 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29155 (PTA_SKYLAKE): Add PTA_AES.
29156 (PTA_GOLDMONT): Likewise.
29158 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29160 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29161 instruction if enabled.
29162 (aarch64_override_options): Remove reference to return address key.
29164 2019-02-22 Richard Biener <rguenther@suse.de>
29166 PR tree-optimization/89440
29167 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29168 not necessary assert.
29170 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29173 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29174 (oacc_replace_fn_attrib_attr): ... this new function.
29175 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29176 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29178 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29180 * config/arm/arm-cpus.in (ares): Rename to...
29181 (neoverse-n1): ... This. Add ares as alias.
29182 * config/arm/arm-tables.opt: Regenerate.
29183 * config/arm/arm-tune.md: Likewise.
29184 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29186 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29188 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29189 * config/aarch64/aarch64-tune.md: Regenerate.
29190 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29192 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29194 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29195 (neoversen1_tunings): ... This.
29196 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29197 (neoverse-n1): New CPU.
29198 * config/aarch64/aarch64-tune.md: Regenerate.
29199 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29201 2019-02-22 Richard Biener <rguenther@suse.de>
29203 PR middle-end/87609
29204 * cfghooks.h (dependence_hash): New typedef.
29205 (struct copy_bb_data): New type.
29206 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29207 (duplicate_block): Likewise.
29208 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29209 (copy_bbs): Create and pass down copy_bb_data.
29210 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29211 (rtl_duplicate_bb): Likewise.
29212 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29213 remap dependence info.
29215 2019-02-22 Richard Biener <rguenther@suse.de>
29217 PR tree-optimization/87609
29218 * tree-core.h (tree_base): Document special clique values.
29219 * tree-inline.c (remap_dependence_clique): Do not use the
29220 special clique value of one.
29221 (maybe_set_dependence_info): Use clique one.
29222 (clear_dependence_clique): New callback.
29223 (compute_dependence_clique): Clear clique one from all refs
29224 before assigning it (again).
29226 2019-02-21 Martin Sebor <msebor@redhat.com>
29228 * doc/extend.texi (__clear_cache): Correct signature.
29230 2019-02-21 Ian Lance Taylor <iant@golang.org>
29233 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29234 than output_constant_def.
29235 (add_constant_to_table): New static function.
29236 (output_constant_def): Call add_constant_to_table.
29237 (tree_output_constant_def): Likewise.
29239 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29242 * builtins.c (fold_builtin_arith_overflow): If first two args are
29243 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29246 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29249 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29250 error for -mindirect-branch/-mfunction-return with incompatible
29253 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29256 * constraints.md (q): Remove.
29257 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
29260 2019-02-21 Martin Jambor <mjambor@suse.cz>
29263 * omp-general.c (omp_extract_for_data): Removed a duplicate call
29264 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
29265 (omp_adjust_for_condition): ...here. Added necessary parameters.
29266 * omp-general.h (omp_adjust_for_condition): Updated declaration.
29267 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
29268 proper values to new parameters of omp_adjust_for_condition.
29270 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29272 PR middle-end/89412
29273 * expr.c (expand_assignment): If result is a MEM, use change_address
29274 instead of simplify_gen_subreg.
29276 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29277 David Malcolm <dmalcolm@redhat.com>
29279 PR middle-end/89091
29280 * fold-const.c (decode_field_reference): Return NULL_TREE if
29281 lang_hooks.types.type_for_size returns NULL. Check it before
29282 overwriting *exp_. Use return NULL_TREE instead of return 0.
29284 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29286 PR middle-end/88074
29287 PR middle-end/89415
29288 * toplev.c (do_compile): Double the emin/emax exponents to workaround
29291 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
29294 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
29295 TARGET_SSE in addition to TARGET_SSE_MATH.
29297 (ix86_excess_precision): Ditto.
29298 (ix86_float_exceptions_rounding_supported_p): Ditto.
29299 (use_rsqrt_p): Ditto.
29300 * config/i386/sse.md (rsqrt<mode>2): Ditto.
29302 2019-02-20 David Malcolm <dmalcolm@redhat.com>
29305 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
29306 linenum_arith_t when determining if two adjacent line spans are
29307 close enough to merge.
29308 (diagnostic_show_locus): Use linenum_arith_t when iterating over
29309 lines within each line_span.
29311 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
29314 * lra-constraints.c(uses_hard_regs_p): Fix handling of
29315 paradoxical SUBREGS.
29317 2019-02-20 Li Jia He <helijia@linux.ibm.com>
29320 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
29321 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
29322 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
29325 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
29327 * config/gcn/gcn.c (print_operand): Fix typo.
29329 2019-02-19 Richard Biener <rguenther@suse.de>
29331 PR middle-end/88074
29332 * toplev.c (do_compile): Initialize mpfr's exponent range
29333 based on available float modes.
29335 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
29337 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
29338 as long as the epilogue isn't completed.
29340 2019-02-18 Martin Sebor <msebor@redhat.com>
29342 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
29343 __has_cpp_attribute, and __has_include.
29345 2019-02-18 Martin Sebor <msebor@redhat.com>
29347 * doc/invoke.texi (-Wreturn-type): Correct and expand.
29349 2019-02-18 Martin Sebor <msebor@redhat.com>
29351 PR middle-end/89294
29352 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
29354 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
29356 2019-02-18 Richard Biener <rguenther@suse.de>
29358 PR tree-optimization/89296
29359 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
29360 of no-warning flag to cases that might emit the bogus warning.
29362 2019-02-18 Jakub Jelinek <jakub@redhat.com>
29365 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
29367 * config/arm/vfp.md (*movdi_vfp): Likewise.
29368 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
29369 "q" constraint for operands[0].
29372 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
29373 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
29374 pattern in a temporary buffer.
29375 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
29376 than 64-operands[2].
29379 * config/s390/s390.c (s390_indirect_branch_attrvalue,
29380 s390_indirect_branch_settings): Define unconditionally.
29381 (s390_set_current_function): Likewise, but guard the whole body except
29382 the s390_indirect_branch_settings call with
29383 #if S390_USE_TARGET_ATTRIBUTE.
29384 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
29386 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
29387 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
29388 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
29389 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
29390 HOST_WIDE_INT_1U instead of 1ULL.
29391 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
29392 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
29393 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
29394 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
29396 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
29399 2019-02-18 Martin Jambor <mjambor@suse.cz>
29401 PR tree-optimization/89209
29402 * tree-sra.c (create_access_replacement): New optional parameter
29403 reg_tree. Use it as a type if non-NULL and access type is not of
29405 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
29406 to create_access_replacement.
29407 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
29408 Check lacc is non-NULL before attempting to re-create it on the RHS.
29410 2019-02-18 Martin Liska <mliska@suse.cz>
29413 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
29415 (symbol_table::free_edge): Recycle m_summary_id.
29416 * cgraph.h (get_summary_id): New.
29417 (symbol_table::release_symbol): Set m_summary_id to -1
29419 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
29420 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
29421 function_summary to fast_function_summary.
29422 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
29423 * ipa-pure-const.c (class funct_state_summary_t):
29424 Switch from function_summary to fast_function_summary.
29425 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29426 (class ipa_ref_opt_summary_t): Switch from function_summary
29427 to fast_function_summary.
29428 * symbol-summary.h (class function_summary_base): New class
29429 that is created from base of former function_summary.
29430 (function_summary_base::unregister_hooks): New.
29431 (class function_summary): Inherit from function_summary_base.
29432 (class call_summary_base): New class
29433 that is created from base of former call_summary.
29434 (class call_summary): Inherit from call_summary_base.
29435 (struct is_same): New.
29436 (class fast_function_summary): New summary class.
29437 (class fast_call_summary): New summary class.
29438 * vec.h (vec_safe_grow_cleared): New function.
29440 2019-02-18 Martin Liska <mliska@suse.cz>
29442 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29443 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29444 * doc/tm.texi: Document new target hook.
29445 * doc/tm.texi.in: Likewise.
29446 * target.def: Add new target macro.
29447 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29450 2019-02-17 Alan Modra <amodra@gmail.com>
29453 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29454 output reg on add insn.
29455 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29457 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29460 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29461 (PMULHRSW): Likewise.
29462 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29464 (ssse3_pmulhrswv4hi3): New expander.
29466 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29468 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29469 MMX. Add isa attribute.
29471 2019-02-16 Jakub Jelinek <jakub@redhat.com>
29473 PR rtl-optimization/66152
29474 * builtins.h (c_readstr): Declare.
29475 * builtins.c (c_readstr): Remove forward declaration. Add
29476 null_terminated_p argument, if false, read all bytes from the
29477 string instead of stopping after '\0'.
29478 * expr.c (string_cst_read_str): New function.
29479 (store_expr): Use string_cst_read_str instead of
29480 builtin_strncpy_read_str. Try to store by pieces the whole
29481 exp_len first, and only if that fails, split it up into
29482 store by pieces followed by clear_storage. Formatting fix.
29484 * config/i386/i386.md (*movqi_internal): Remove static from
29485 buf variable. Use output_asm_insn (buf, operands); return "";
29486 instead of return buf;.
29487 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
29488 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
29489 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
29491 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29493 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
29494 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
29495 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
29496 (CC1_SPEC): Likewise.
29497 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
29499 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29501 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
29502 the base address on 64-bit strict-alignment platforms.
29504 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
29506 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
29508 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29510 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
29512 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
29514 PR rtl-optimization/88308
29515 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
29516 on copied instruction.
29518 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29520 * final.c (insn_current_reference_address): Replace test on JUMP_P
29521 with test on jump_to_label_p.
29522 * config/visium/visium-passes.def: New file.
29523 * config/visium/t-visium (PASSES_EXTRA): Define.
29524 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
29525 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
29526 (TRAMPOLINE_ALIGNMENT): Define.
29527 * config/visium/visium.c (visium_option_override): Do not register
29528 the machine-specific reorg pass here.
29529 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
29531 (output_branch): Adjust threshold for long branch instruction.
29532 * config/visium/visium.md (cpu): Move around.
29533 (length): Adjust for the GR6.
29535 2019-02-15 Richard Biener <rguenther@suse.de>
29536 Jakub Jelinek <jakub@redhat.com>
29538 PR tree-optimization/89278
29539 * tree-loop-distribution.c: Include tree-eh.h.
29540 (generate_memset_builtin, generate_memcpy_builtin): Call
29541 rewrite_to_non_trapping_overflow on builtin->size before passing it
29542 to force_gimple_operand_gsi.
29544 2019-02-15 Jakub Jelinek <jakub@redhat.com>
29547 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
29549 * opth-gen.awk: Likewise.
29551 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29553 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
29554 Enable MMX, SSE and SSE2 by default.
29555 * config/i386/i386.c (ix86_option_override_internal): Do not
29556 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
29558 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29560 PR rtl-optimization/89354
29561 * combine.c (make_extraction): Punt if extraction_mode is narrower
29564 2019-02-14 Maya Rashish <coypu@sdf.org>
29566 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
29567 * config/netbsd-d.c: New file.
29568 * config/t-netbsd: Add netbsd-d.o
29570 2018-02-14 Steve Ellcey <sellcey@marvell.com>
29572 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
29573 affects_type_identity to true for aarch64_vector_pcs.
29574 (aarch64_comp_type_attributes): New function.
29575 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
29577 2019-02-14 Tamar Christina <tamar.christina@arm.com>
29580 * config/arm/iterators.md (ANY64): Add V4HF.
29582 2019-02-14 Martin Liska <mliska@suse.cz>
29584 PR rtl-optimization/89242
29585 * dce.c (delete_unmarked_insns): Call free_dominance_info we
29586 process a transformation.
29588 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29590 PR tree-optimization/89314
29591 * fold-const.c (fold_binary_loc): Cast strlen argument to
29592 const char * before dereferencing it. Formatting fixes.
29594 PR middle-end/89284
29595 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
29597 2019-02-13 Ian Lance Taylor <iant@golang.org>
29599 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
29600 and set current index for other optimizations.
29602 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
29604 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
29605 nonimmediate_operand as operand 2 predicate.
29606 (vec_set<VF2_512_256:mode>_0): Ditto.
29607 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
29608 (*vec_concatv2si): Remove alternative 2.
29609 (*vec_concatv4si_0): Use vm constraint for alternative 0.
29610 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
29611 (vec_concatv2di): Split alternatives 4,5,6 to ...
29612 (*vec_concatv2di_0) ... new pattern.
29614 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29617 * config/arm/arm.c (ldm_stm_operation_p) Set
29618 addr_reg_in_reglist correctly for first register.
29619 (load_multiple_sequence): Remove dead base check.
29620 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29622 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29625 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29626 Expose as @aarch64_pred_mov.
29627 * config/aarch64/aarch64.c (aarch64_classify_address):
29628 Use expand_insn which legitimizes operands.
29630 2019-02-13 Martin Liska <mliska@suse.cz>
29632 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29633 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29634 and pointer_offset fields.
29635 (initialize_argument_information): Remove usage of dead
29637 * cgraph.h (struct cgraph_thunk_info): Remove
29638 add_pointer_bounds_args.
29639 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29641 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29643 * config/i386/i386.c (ix86_function_arg_advance): Remove
29645 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29646 (def_builtin): Remove usage of dead fields.
29647 (ix86_add_new_builtins): Likewise.
29648 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29649 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29650 (sem_function::init): Likewise.
29651 (sem_variable::merge): Likewise.
29652 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29653 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29654 * lto-cgraph.c (lto_output_node): Likewise.
29655 (lto_output_varpool_node): Likewise.
29656 (input_node): Likewise.
29657 (input_varpool_node): Likewise.
29658 * lto-streamer-out.c (lto_output): Likewise.
29659 * tree-inline.c (expand_call_inline): Remove usage of
29661 * tree-inline.h (struct copy_body_data): Likewise.
29662 * varpool.c (varpool_node::dump): Likewise.
29664 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29666 PR middle-end/89303
29667 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29668 into pt->vars_contains_escaped_heap instead of setting
29669 pt->vars_contains_escaped_heap to it.
29671 PR middle-end/89281
29672 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29673 INTVAL (size), compare it to GET_MODE_MASK instead of
29674 1 << GET_MODE_BITSIZE.
29677 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29678 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29681 2019-02-13 Martin Liska <mliska@suse.cz>
29684 * cfgrtl.c (remove_barriers_from_footer): New function.
29685 (try_redirect_by_replacing_jump): Use it.
29686 (cfg_layout_redirect_edge_and_branch): Likewise.
29688 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29690 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29691 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29692 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29693 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29694 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29695 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29697 * config/rs6000/rs6000.c (builtin_function_type)
29698 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29699 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29700 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29701 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29702 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29704 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29706 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29707 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29709 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29712 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29713 268678 and revision 268657.
29714 (*movti_internal): Likewise.
29716 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29719 * config/s390/s390.c (s390_decompose_address): Update comment.
29720 (s390_check_qrst_address): Reject invalid address forms after
29723 2019-02-12 Martin Liska <mliska@suse.cz>
29726 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29727 we need default values of funct_state for a function that
29730 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29732 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29733 the object to pick the size of stores on strict-alignment platforms.
29735 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29736 (*movdi_insn_sp32): Likewise.
29737 (*movdi_insn_sp64): Likewise.
29739 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29742 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29743 types that needs constructiong.
29744 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29746 2019-02-12 Richard Biener <rguenther@suse.de>
29748 PR tree-optimization/89253
29749 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29750 duplicate the loop.
29752 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29755 * input.c (selftest::test_line_offset_overflow): New selftest.
29756 (selftest::input_c_tests): Call it.
29758 2019-02-11 Martin Sebor <msebor@redhat.com>
29760 PR tree-optimization/88771
29761 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29762 when -Wstringop-overflow is set.
29763 (builtin_memref::builtin_memref): Adjust excessive upper bound
29764 only when lower bound is not excessive.
29765 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29766 -Wstringop-ovefflow.
29767 (maybe_diag_offset_bounds): Rename...
29768 (maybe_diag_access_bounds): ...to this.
29769 (check_bounds_or_overlap): Adjust for name change above.
29771 2019-02-11 Martin Sebor <msebor@redhat.com>
29774 * builtins.c (max_object_size): Move from here...
29775 * builtins.h (max_object_size): ...and here...
29776 * tree.c (max_object_size): ...to here...
29777 * tree.h (max_object_size): ...and here.
29779 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29781 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29782 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29783 for correct semantics.
29785 2019-02-11 Alan Modra <amodra@gmail.com>
29787 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29788 -mlongcall and -mpltseq.
29789 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29790 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29791 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29792 * config/rs6000/sysv4.opt (mpltseq): New option.
29793 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29794 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29795 support is lacking. Don't allow -mpltseq with -mbss-plt.
29796 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29797 -mpltseq given for ELFv1.
29798 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29799 Only use UNSPEC_PLTSEQ for inline PLT calls.
29800 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29801 use UNSPEC_PLTSEQ for inline PLT calls.
29802 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29803 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29804 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29805 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29806 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29807 (pltseq_mtctr_<mode>): Likewise.
29809 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29811 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29813 * configure: Regenerate.
29815 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29818 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29821 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29823 * function.c (assign_parm_setup_block): Use the stored
29824 size, not the passed size, when allocating stack-space,
29825 also for a parameter with alignment larger than
29826 MAX_SUPPORTED_STACK_ALIGNMENT.
29828 2019-02-11 Martin Liska <mliska@suse.cz>
29831 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29832 * ipa-inline.c (inline_small_functions): Likewise.
29833 * ipa-pure-const.c (propagate_pure_const): Likewise.
29834 (propagate_nothrow): Likewise.
29835 * ipa-reference.c (propagate): Likewise.
29836 * ipa-utils.c (struct searchc_env): Remove unused field.
29837 (searchc): Always search across AVAIL_INTERPOSABLE.
29838 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29839 the only called IPA pure const can properly not propagate
29840 across interposable boundary.
29841 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29843 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29845 * config/nds32/nds32.md (call_internal, call_value_internal,
29846 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29848 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29850 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29853 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29855 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29858 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29860 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29862 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29864 PR tree-optimization/89268
29865 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29866 if preds is non-NULL.
29868 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29871 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29874 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29876 * config/nds32/nds32.md (trap): New pattern.
29878 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29880 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29883 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29885 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29888 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29890 * ipa-visibility.c (localize_node): Also do not localize
29891 LDPR_PREVAILING_DEF_IRONLY_EXP.
29893 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29896 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29897 instead of type_with_linkage.
29899 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29902 * params.def (uninlined-function-insns, uninlined-function-time,
29903 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29904 bound so we don't get overflows.
29906 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29908 * config/rs6000/rs6000-string.c (expand_compare_loop,
29909 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29912 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29914 PR middle-end/89246
29915 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29916 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29917 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29919 2019-02-09 Alan Modra <amodra@gmail.com>
29922 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29923 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29926 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29928 PR middle-end/88560
29929 * lra-constraints.c (process_alt_operands): Don't increase reject
29930 for memory when offset memory is required.
29932 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29934 * config/s390/vector.md: Implement vector copysign.
29936 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29938 * expr.c (expand_constructor): Correct indentations.
29940 2019-02-08 Richard Biener <rguenther@suse.de>
29942 PR tree-optimization/89247
29943 * tree-if-conv.c: Include tree-cfgcleanup.h.
29944 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29945 (tree_if_conversion): Pass through predicate vector.
29946 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29947 inline, see if any if-converted loops we refrece in
29948 LOOP_VECTORIZED calls vanished and fixup.
29949 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29951 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29953 * config/s390/constraints.md (jdd): New constraint.
29955 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29958 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29959 upper 16 vector registers without TARGET_AVX512VL.
29960 (*movti_internal): Likewise.
29962 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29964 PR rtl-optimization/89234
29965 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29966 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29967 (copy_reg_eh_region_note_backward): Likewise.
29969 2019-02-08 Richard Biener <rguenther@suse.de>
29971 PR middle-end/89223
29972 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29973 doesn't fit in HWI.
29974 (analyze_subscript_affine_affine): Handle failure from
29975 initialize_matrix_A.
29977 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29979 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29982 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29984 PR tree-optimization/86637
29985 PR tree-optimization/89235
29986 * tree-vect-loop.c (optimize_mask_stores): Add an
29987 auto_purge_vect_location sentinel to ensure that vect_location is
29989 * tree-vectorizer.c
29990 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29991 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29992 to ensure that vect_location is purged on exit.
29993 (pass_slp_vectorize::execute): Likewise, replacing the manual
29995 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29997 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29999 * config/aarch64/iterators.md (max_opp): New code_attr.
30000 (USMAX): New code iterator.
30001 * config/aarch64/predicates.md (aarch64_smin): New predicate.
30002 (aarch64_smax): Likewise.
30003 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
30004 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
30007 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
30010 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
30011 for TARGET_AVX512VL.
30012 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
30014 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
30016 * config/s390/s390-builtin-types.def: Add new types.
30017 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
30018 (s390_vec_xlw4): Make the memory operand into a const pointer.
30019 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
30021 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
30022 a new vector type with the alignment of the scalar memory operand.
30024 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
30025 Jakub Jelinek <jakub@redhat.com>
30028 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
30029 arm_count_ldrdstrd_insns): New declarations.
30030 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
30032 (valid_operands_ldrd_strd): New function.
30033 (arm_count_ldrdstrd_insns): New function.
30034 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
30035 sets instead of single DImode set and define new insns to match this.
30037 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30039 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
30040 Make it a C initializer.
30042 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30045 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
30047 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30049 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
30050 Use neon_dot<q> for type.
30051 (neon_<sup>dot_lane<vsi2qi>): Likewise.
30053 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30055 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
30056 Use neon_dot<q> for type.
30057 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
30058 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30060 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30062 PR rtl-optimization/89225
30063 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30066 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30068 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30069 after restoring registers saved to allocate the frame on Windows.
30071 2019-02-06 Richard Biener <rguenther@suse.de>
30073 PR tree-optimization/89182
30074 * graphite.h (cached_scalar_evolution_in_region): Declare.
30075 * graphite.c (struct seir_cache_key): New.
30076 (struct sese_scev_hash): Likewise.
30077 (seir_cache): New global.
30078 (cached_scalar_evolution_in_region): New function.
30079 (graphite_transform_loops): Allocate and release seir_cache.
30080 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30081 cached_scalar_evolution_in_region.
30082 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30084 (scop_detection::graphite_can_represent_expr: Use
30085 cached_scalar_evolution_in_region.
30086 (scop_detection::stmt_simple_for_scop_p): Likewise.
30087 (find_params_in_bb): Likewise.
30088 (gather_bbs::before_dom_children): Likewise.
30089 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30090 (add_loop_constraints): Likewise.
30092 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30094 PR middle-end/89210
30095 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30096 operand to new_unary_operation only if both element types are integral
30097 and it isn't a widening conversion. Return NULL_TREE if
30098 new_unary_operation failed.
30100 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30103 * config/s390/s390.md: Remove load and test FP splitter.
30105 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30108 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30109 expand_compare_loop, expand_block_compare_gpr,
30110 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30111 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30112 #include "profile-count.h" and "predict.h" for types and functions
30113 needed to work with REG_BR_PROB notes.
30115 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30118 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30119 for the long branch case.
30121 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30124 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30125 can throw, non-call exceptions are enabled and we can't delete
30126 dead exceptions or alter cfg. Set must_clean if
30127 delete_insn_and_edges returns true, don't set it blindly for calls.
30128 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30130 PR rtl-optimization/89195
30131 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30132 of the original MEM.
30134 2019-02-05 Martin Liska <mliska@suse.cz>
30136 PR gcov-profile/89000
30137 * gcov.c (function_summary): Remove argument.
30138 (file_summary): New function.
30139 (print_usage): Replace tabs with spaces.
30140 (generate_results): Use new function file_summary.
30142 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30145 * optabs.c (prepare_cmp_insn): Pass x and y to
30146 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30148 2019-02-05 Richard Biener <rguenther@suse.de>
30150 PR middle-end/89150
30151 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30152 (struct bitmap_element): Drop chain_prev so we properly recurse on
30153 the prev member, supporting tree views.
30154 (struct bitmap_head): GTY skip the obstack member.
30156 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30159 * doc/extend.texi (Vector Extensions): Add an example of using vector
30160 types together with x86 intrinsics.
30162 2019-02-04 Alan Modra <amodra@gmail.com>
30164 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30165 str[] size to 160, and comment.
30167 2019-02-04 Alan Modra <amodra@gmail.com>
30169 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30170 (rs6000_pltseq_template): Guard output of TLS markers with
30171 TARGET_TLS_MARKERS.
30172 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30173 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30174 to use inline PLT sequences.
30175 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30176 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30177 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30179 2019-02-04 Martin Liska <mliska@suse.cz>
30182 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30183 out when ipa_fn_summaries does not contain entry for callee.
30185 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30187 * config/sparc/sparc.h: Remove superfluous blank lines.
30188 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30189 (got_register_rtx): ...this.
30190 (sparc_got): Adjust to above renaming.
30191 (sparc_tls_got): Likewise.
30192 (sparc_delegitimize_address): Likewise.
30193 (sparc_output_mi_thunk): Likewise.
30194 (sparc_init_pic_reg): Likewise.
30195 (save_local_or_in_reg_p): Fix test on the GOT register.
30196 (USE_HIDDEN_LINKONCE): Move around.
30197 (get_pc_thunk_name): Likewise.
30198 (gen_load_pcrel_sym): Likewise.
30199 (load_got_register): Likewise.
30201 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30203 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30204 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30206 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30208 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30209 into consideration.
30211 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30213 * config.gcc (with_nds32_lib, glibc):
30214 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30215 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30216 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30218 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30221 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30222 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30223 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30224 (*rcpsf2_sse): Ditto.
30225 (*rsqrtsf2_sse): Ditto.
30226 (sse4_1_round<mode<2): Ditto.
30228 2019-02-03 Richard Biener <rguenther@suse.de>
30231 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30234 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30236 PR middle-end/87887
30237 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30238 Punt with warning on aggregate return or argument types. Ignore
30239 type/mode checking for uniform arguments.
30241 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30243 * combine.c (try_combine): Do not print "Can't combine" messages unless
30244 printing failed combination attempts.
30246 2019-02-01 Martin Jambor <mjambor@suse.cz>
30249 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30250 segment and global segment variables before making them static.
30252 2019-02-01 Martin Jambor <mjambor@suse.cz>
30254 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30255 missed optimization dump with dump_enabled_p.
30257 2019-02-01 Richard Biener <rguenther@suse.de>
30259 PR middle-end/88597
30260 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
30261 the instantiate cache.
30262 (instantiate_scev_binary): Elide second operand procesing
30263 if equal to the first.
30264 * tree-chrec.c (chrec_contains_symbols): Add visited set.
30265 (chrec_contains_undetermined): Likewise.
30266 (tree_contains_chrecs): Likewise.
30268 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
30270 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
30272 2019-02-01 Jakub Jelinek <jakub@redhat.com>
30274 PR tree-optimization/89143
30275 * wide-int-range.h (wide_int_range_absu): Declare.
30276 * wide-int-range.cc (wide_int_range_absu): New function.
30277 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
30279 PR tree-optimization/88107
30280 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
30281 instead of assertion that eh_region_outermost is non-NULL, if it
30282 is NULL, set *ALL to true and return NULL.
30283 (move_sese_region_to_fn): Adjust caller, if all is set, call
30284 duplicate_eh_regions with NULL region.
30286 2019-02-01 Richard Biener <rguenth@suse.de>
30288 PR rtl-optimization/88593
30289 * mode-switching.c (optimize_mode_switching): Free dominators before
30290 calling cleanup_cfg.
30292 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30294 PR tree-optimization/88932
30295 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
30297 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30299 PR middle-end/89137
30300 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
30301 bogus clang warning.
30303 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
30306 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
30307 alternative to avoid partial SSE register stall for TARGET_AVX.
30308 (truncdfsf2): Ditto.
30309 (sse4_1_round<mode>2): Ditto.
30311 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
30313 PR tree-optimization/89008
30314 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
30315 process anything of the form X * 0.
30317 2019-01-31 Richard Biener <rguenther@suse.de>
30319 PR tree-optimization/89135
30320 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
30321 with abnormal preds.
30323 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30326 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
30327 always_inline callees into no_sanitize_address callers.
30329 2019-01-31 Richard Biener <rguenther@suse.de>
30331 PR rtl-optimization/89115
30332 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
30334 2019-01-30 Martin Sebor <msebor@redhat.com>
30337 * doc/extend.texi (cast to a union): Correct and expand.
30339 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
30341 PR rtl-optimization/87246
30342 * lra-constraints.c (simplify_operand_subreg): Reload memory
30343 in subreg if the address became invalid.
30345 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
30348 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
30349 Disable for little-endian.
30351 2019-01-30 Richard Biener <rguenther@suse.de>
30353 PR rtl-optimization/89115
30354 * opts.c (default_options_optimization): Reduce
30355 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
30356 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
30359 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
30361 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
30362 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
30363 type of vector element when vec_extract is implemented by direct
30366 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
30368 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
30370 2019-01-30 Richard Biener <rguenther@suse.de>
30372 PR tree-optimization/89111
30373 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
30374 canonicalization to appropriately sized access types.
30376 2019-01-30 Jakub Jelinek <jakub@redhat.com>
30379 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
30380 for arguments to functions that are TU-local and shouldn't be
30381 referenced by assembly.
30383 2019-01-30 Ulrich Drepper <drepper@redhat.com>
30385 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
30388 2019-01-29 Martin Sebor <msebor@redhat.com>
30391 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
30393 2019-01-29 Jakub Jelinek <jakub@redhat.com>
30397 * omp-simd-clone.c (simd_clone_clauses_extract)
30398 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
30399 OMP_CLAUSE_ALIGNED_ALIGNMENT.
30401 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
30403 * config.gcc: Force .init_array for ARC.
30405 2019-01-29 Richard Biener <rguenther@suse.de>
30408 * dwarf2out.c (collect_skeleton_dies): New helper.
30409 (copy_decls_for_unworthy_types): Call it.
30410 (build_abbrev_table): Assert we do not try to replace
30411 DW_AT_signature refs with local refs.
30413 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30415 PR middle-end/89002
30416 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
30417 for lastprivate/linear IV, push gimplify context around gimplify_assign
30418 and, if it needed any temporaries, pop it into a gimple bind around the
30421 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
30423 * common.opt (-Wattribute-alias): Remove "no-" from name.
30424 Make -Wattribute-alias command line option and
30425 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30427 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30430 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30431 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30433 (bmi2): Add missing @opindex.
30434 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30435 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30436 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30437 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30438 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30439 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30440 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30441 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30442 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30443 xsavec, xsaveopt and xsaves options.
30445 2019-01-28 Richard Biener <rguenther@suse.de>
30448 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30451 2019-01-28 Richard Biener <rguenther@suse.de>
30453 PR tree-optimization/88739
30454 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30455 BIT_FIELD_REFs only are applied to mode-precision operands
30456 when they are integral.
30457 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30459 BIT_FIELD_REFs of non-mode-precision integral operands.
30461 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30464 * config/i386/sse.md
30465 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30466 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30467 first constants in pairs are multiples of 2. Formatting fixes.
30468 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30469 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30470 first constants in each quadruple are multiples of 4. Formatting fixes.
30472 2019-01-26 Martin Jambor <mjambor@suse.cz>
30475 * tree-inline.c: Include tree-cfgcleanup.h.
30476 (delete_unreachable_blocks_update_callgraph): Move...
30477 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30478 ...here, make externally visible, make second argument bool, adjust
30480 * tree-cfgcleanup.c: Include cgraph.h.
30481 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
30483 * ipa-prop.c: Include tree-cfgcleanup.h.
30484 (ipcp_transform_function): Call
30485 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
30487 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
30489 PR rtl-optimization/88846
30490 * ira.c (process_set_for_memref_referenced_p): New.
30491 (memref_referenced_p): Add new param. Use
30492 process_set_for_memref_referenced_p. Add new switch cases.
30493 (memref_used_between_p): Pass new arg to memref_referenced_p.
30495 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
30498 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
30499 argument ABI_BREAK. Set to true if the calculated alignment has
30500 changed in gcc-9. Check bit-fields for their base type alignment.
30501 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
30502 (aarch64_function_arg_boundary): Likewise.
30503 (aarch64_gimplify_va_arg_expr): Likewise.
30505 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30507 PR middle-end/89037
30508 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
30509 instead of accessing TREE_INT_CST_ELT directly.
30511 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
30513 * doc/sourcebuild.texi (Environment attributes): Add fenv and
30514 fenv_exceptions description.
30516 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
30518 PR rtl-optimization/87763
30519 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
30520 Allow SUBREG when matching CC_NZmode compare.
30522 2019-01-25 Richard Biener <rguenther@suse.de>
30524 PR tree-optimization/89049
30525 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
30526 Look at the pattern stmt to determine if the stmt is vectorized.
30528 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30530 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
30531 (pred_mov<mode>): Handle all-register forms using both a new
30532 alternative and a split.
30534 2019-01-25 Richard Biener <rguenther@suse.de>
30536 PR tree-optimization/86865
30537 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30538 Reject non-do-while loops.
30540 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
30542 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
30543 * config/rs6000/constraints.md (Q constraint): Use REG_P.
30544 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
30545 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30546 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
30547 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30548 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
30549 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
30550 vlogical_operand, gpc_reg_operand, int_reg_operand,
30551 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
30552 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
30553 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
30554 (save_world_operation, restore_world_operation, lmw_operation,
30555 stmw_operation): Use MEM_P and REG_P.
30556 (tie_operand): Use MEM_P.
30557 (vrsave_operation, crsave_operation): Use REG_P.
30558 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
30559 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
30560 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
30561 (call_operand): Use HARD_REGISTER_P.
30562 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
30564 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
30565 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
30566 quad_aligned_load_p, replace_swapped_aligned_store,
30567 recombine_lvx_pattern, replace_swapped_aligned_load,
30568 recombine_stvx_pattern): Use MEM_P.
30569 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
30570 Use MEM_P and SYMBOL_REF_P.
30571 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
30572 (insn_is_swappable_p): Use REG_P and MEM_P.
30573 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
30574 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
30576 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
30577 Use CONST_DOUBLE_P.
30578 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
30580 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
30581 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
30582 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
30583 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
30585 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30586 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
30587 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
30588 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
30589 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
30590 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
30591 rs6000_split_logical_di): Use CONST_INT_P.
30592 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
30593 REG_P and SYMBOL_REF_P.
30594 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
30595 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
30596 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
30597 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
30598 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
30599 (small_data_operand, print_operand_address): Use CONST_INT_P and
30601 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
30602 (rs6000_init_hard_regno_mode_ok, direct_move_p):
30603 Use HARD_REGISTER_NUM_P.
30604 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
30605 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
30606 SUBREG_P and SYMBOL_REF_P.
30607 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
30608 and HARD_REGISTER_NUM_P.
30609 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
30611 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30612 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30614 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30615 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30616 find_addr_reg): Use REG_P.
30617 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30618 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30619 (offsettable_ok_by_alignment, constant_pool_expr_p,
30620 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30621 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30622 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30623 rs6000_assemble_integer, create_TOC_reference,
30624 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30625 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30626 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30627 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30628 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30629 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30630 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30631 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30632 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30633 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30634 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30635 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30636 and cbranch<mode>4): Use CONST_INT_P.
30637 (multiple define_splits): Use REG_P and SUBREG_P.
30638 (define_expands call, call_value): Use MEM_P.
30639 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30640 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30641 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30642 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30643 and HARD_REGISTER_NUM_P.
30644 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30646 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30648 PR rtl-optimization/88948
30649 * rtl.h (prepare_copy_insn): New prototype.
30650 * gcse.c (prepare_copy_insn): New function, split out from
30651 process_insert_insn.
30652 (process_insert_insn): Use prepare_copy_insn.
30653 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30654 instead of gen_move_insn.
30656 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30659 * config/i386/i386.c (ix86_pic_register_p): Return true for
30660 UNSPEC_SET_GOT too.
30662 PR tree-optimization/88964
30663 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30664 punt if HONOR_SNANS (chrec).
30666 PR middle-end/89015
30667 * tree-nested.c (convert_nonlocal_reference_stmt,
30668 convert_local_reference_stmt, convert_tramp_reference_stmt,
30669 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30670 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30671 or GIMPLE_OMP_TASK.
30673 PR tree-optimization/89027
30674 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30675 for "omp simd array" variables.
30677 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30680 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30681 force the alignment of m_val.
30683 2019-01-24 Richard Biener <rguenther@suse.de>
30686 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30687 When in "legacy" debug mode make sure to reset self-origins.
30689 2019-01-24 Martin Liska <mliska@suse.cz>
30691 PR gcov-profile/88994
30692 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30693 result will be always smaller or equal to the original.
30694 * gcov.c (mangle_name): Fix else branch where we should
30695 also copy to PTR and shift the pointer.
30697 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30699 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30700 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30702 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30704 * common/config/i386/i386-common.c
30705 (OPTION_MASK_ISA_ENQCMD_SET,
30706 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30707 (ix86_handle_option): Handle -menqcmd.
30708 * config.gcc (enqcmdintrin.h): New header file.
30709 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30710 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30712 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30714 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30715 __builtin_ia32_enqcmds): New builtins.
30716 * config/i386/i386-c.c (__ENQCMD__): New macro.
30717 * config/i386/i386-option.c (ix86_target_string): Add
30719 (ix86_valid_target_attribute_inner_p): Likewise.
30720 * config/i386/i386-expand.c
30721 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30722 IX86_BUILTIN_ENQCMDS.
30723 * config/i386/i386.h (TARGET_ENQCMD): New.
30724 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30725 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30726 (movdir64b_<mode>): Parameterize to enable share expansion code
30727 with ENQCMD in function ix86_expand_builtin.
30728 * config/i386/i386.opt: Add -menqcmd.
30729 * config/i386/immintrin.h: Include enqcmdintrin.h.
30730 * config/i386/enqcmdintrin.h: New intrinsic file.
30731 * doc/invoke.texi: Add -menqcmd.
30733 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30734 Steve Ellcey <sellcey@marvell.com>
30737 * recog.c (address_operand): Return false on wrong mode for address.
30738 (constrain_operands): Check for mode with 'p' constraint.
30740 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30743 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30744 Disparage MMX alternative.
30745 (sse2_cvtpd2pi): Ditto.
30746 (sse2_cvttpd2pi): Ditto.
30748 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30751 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30752 use-after-free of the result of
30753 aarch64_get_extension_string_for_isa_flags.
30755 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30758 * doc/extend.texi: Document break and continue behavior in
30759 statement expressions.
30761 2019-01-23 Richard Biener <rguenther@suse.de>
30763 PR tree-optimization/89008
30764 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30765 not leave another stray operand.
30767 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30769 * BASE-VER: Bump to 9.0.1.
30771 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30773 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30774 thunk that returns by reference, use the type of the return object
30775 of the thunk instead of that of the alias to build the dereference.
30777 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30779 * config/arc/atomic.md: Add operand to DMB instruction.
30781 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30783 PR tree-optimization/88964
30784 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30785 build_zero_cst instead of build_int_cst. Return false for loop
30786 invariants which honor signed zeros.
30788 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30790 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30792 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30795 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30796 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30797 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30799 PR middle-end/88968
30800 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30801 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30804 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30805 Disable for little endian.
30807 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30810 * config/arm/arm.c (arm_needs_double_word_align): Check
30811 DECL_BIT_FIELD_TYPE.
30813 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30814 H.J. Lu <hongjiu.lu@intel.com>
30817 * config/i386/i386-builtin.def: Add mask2 to all builtin
30818 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30820 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30821 (BDESC_FIRST): Likewise.
30822 (define_builtin): Add an argument for mask2. Updated to handle
30823 both ix86_isa_flags and ix86_isa_flags2.
30824 (define_builtin_const): Likewise.
30825 (define_builtin_pure): Likewise.
30826 (define_builtin2): Deleted.
30827 (define_builtin_const2): Likewise.
30828 (builtin_description): Add a member, mask2.
30829 (bdesc_*): Add mask2 to builtin initializations.
30830 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30831 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30833 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30835 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30838 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30841 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30844 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30845 alignment is dominated by a bitfield with 64-bit aligned base type.
30846 (arm_function_arg): Emit a warning if the alignment has changed since
30847 earlier GCC releases.
30848 (arm_function_arg_boundary): Likewise.
30849 (arm_setup_incoming_varargs): Likewise.
30851 2019-01-22 Richard Biener <rguenther@suse.de>
30853 PR tree-optimization/88862
30854 * graphite-scop-detection.c
30855 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30857 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30859 * doc/extend.tex (AMD GCN Function Attributes): New section.
30860 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30861 * doc/invoke.texi (AMD GCN Options): New section.
30862 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30864 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30866 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30867 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30869 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30871 PR tree-optimization/88044
30872 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30873 is false in the first iteration, but !every_iteration, return false
30874 instead of true with niter->niter zero.
30876 PR rtl-optimization/88904
30877 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30878 any nonequal registers before processing BB_END (b).
30881 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30883 (expand_binop_directly, expand_doubleword_clz,
30884 expand_doubleword_popcount, expand_ctz, expand_ffs,
30885 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30887 PR rtl-optimization/49429
30889 PR rtl-optimization/86334
30891 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30892 addressable from here...
30893 (emit_block_op_via_libcall): ... to here.
30895 2019-01-22 Richard Biener <rguenther@suse.de>
30897 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30898 auto_vec for cost vector to fix memleak.
30899 (vectorize_fold_left_reduction): Properly gather SLP defs.
30900 (vectorizable_comparison): Do not swap operands to properly
30903 2019-01-22 Alan Modra <amodra@gmail.com>
30906 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30907 stays a reg. Allow a const_int.
30908 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30909 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30910 (IS_NOMARK_TLSGETADDR): Define.
30911 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30912 (rs6000_output_tlsargs): New function.
30913 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30914 __tls_get_addr call takes an arg.
30915 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30916 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30918 (call_value_nonlocal_sysv): ..or here, delete split.
30919 (tls_gdld_nomark): Delete.
30920 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30921 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30922 (call_value_nonlocal_sysv): Likewise.
30923 (call_value_nonlocal_sysv_secure): Likewise.
30924 (call_value_nonlocal_aix): Likewise.
30925 (call_value_indirect_aix): Likewise.
30926 (call_value_indirect_elfv2): Likewise.
30927 (call_value_local32, call_value_local64): Disable for no-mark tls.
30928 (call_value_local_aix): Likewise.
30930 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30933 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30934 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30936 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30938 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30939 string contents as hash_map keys.
30941 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30944 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30945 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30946 instead of TYPE_ALIGN.
30947 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30948 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30949 pointer from TYPE_STUB_DECL.
30951 2019-01-21 Richard Biener <rguenther@suse.de>
30953 PR tree-optimization/88934
30954 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30955 at the possibly non-constant operand.
30956 (vect_get_constant_vectors): Adjust.
30958 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30961 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30962 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30963 instead of _X86INTRIN_H_INCLUDED.
30964 * onfig/i386/clwbintrin.h: Likewise.
30965 * config/i386/pkuintrin.h: Likewise.
30966 * config/i386/prfchwintrin.h: Likewise.
30967 * config/i386/rdseedintrin.h: Likewise.
30968 * config/i386/wbnoinvdintrin.h: Likewise.
30969 * config/i386/xsavecintrin.h: Likewise.
30970 * config/i386/xsavesintrin.h: Likewise.
30971 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30972 * config/i386/xsaveintrin.h: Likewise.
30973 * config/i386/xsaveoptintrin.h: Likewise.
30974 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30975 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30976 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30977 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30978 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30979 * config/i386/immintrin.h: Here.
30981 2019-01-20 Martin Jambor <mjambor@suse.cz>
30984 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30985 with aa_walk_budget.
30986 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30987 aa_walk_budget_p parameter.
30988 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30989 walk. Updated all callers.
30990 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30991 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30993 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30994 parameter info. Extract info from fbi. Pass fbi to recursive calls
30995 and to unmodified_parm.
30996 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30997 info, updated call to will_be_nonconstant_expr_predicate.
30998 (param_change_prob): New parameter fbi, limit AA walking.
30999 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
31000 calls to various above functions.
31001 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
31002 parameter. Use it to limit AA walking.
31003 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
31004 fbi, limit AA walk.
31005 (detect_type_change): New parameter fbi, pass it on to
31006 detect_type_change_from_memory_writes.
31007 (detect_type_change_ssa): Likewise.
31008 (aa_overwalked): Removed.
31009 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
31010 accordingly, adjust to the neew AA limiting scheme.
31011 (parm_ref_data_preserved_p): Likewise.
31012 (ipa_compute_jump_functions_for_edge): Adjust call to
31014 (ipa_analyze_call_uses): Likewise.
31015 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
31016 (ipa_analyze_node): Initialize aa_walk_budget.
31017 (ipcp_transform_function): Likewise.
31018 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
31019 to get_dynamic_type.
31021 2019-01-19 Jakub Jelinek <jakub@redhat.com>
31023 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
31024 outside of #if CHECKING_P code.
31026 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
31028 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
31029 New function, split out from...
31030 (loop_versioning::analyze_stride): ...here.
31031 (loop_versioning::find_per_loop_multiplication): Use gassign.
31032 (loop_versioning::analyze_term_using_scevs): Return a success code.
31033 (loop_versioning::analyze_arbitrary_term): New function.
31034 (loop_versioning::analyze_address_fragment): Use
31035 analyze_arbitrary_term if all else fails.
31037 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
31040 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
31043 2019-01-18 Richard Biener <rguenther@suse.de>
31045 PR tree-optimization/88903
31046 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
31047 scalar stmts a SLP shift amount is composed of when detecting
31050 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
31053 * config/arm/arm-cpus.in (mp): New feature.
31054 (sec): New feature.
31055 (fgroup ARMv7ve): Add mp and sec features.
31056 (arch armv7-a): Add options to allow mp and sec extensions.
31057 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
31058 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
31059 extenstions to the base architecture.
31060 (cpu cortex-a8): Add sec extension to the base architecture.
31061 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31062 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31063 variants down to the base v7-a varaint.
31064 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31065 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31066 of permitted extensions for -march=armv7-a and for
31067 -mcpu=generic-armv7-a.
31069 2019-01-18 Martin Liska <mliska@suse.cz>
31071 * params.def: Fix comment.
31072 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31074 (gimple_gen_ic_func_profiler): Likewise.
31076 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31078 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31079 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31080 and put in error checks for stack protector guard options.
31081 (aarch64_stack_protect_guard): New.
31082 (TARGET_STACK_PROTECT_GUARD): Define.
31083 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31084 (reg_stack_protect_address<mode>): New.
31085 (stack_protect_set): Adjust for SSP_GLOBAL.
31086 (stack_protect_test): Likewise.
31087 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31088 (-mstack-protector-guard): Likewise.
31089 (-mstack-protector-guard-offset): Likewise.
31091 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31093 PR tree-optimization/86214
31094 * tree-inline.h (struct copy_body_data): Add
31095 add_clobbers_to_eh_landing_pads member.
31096 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31097 (copy_edges_for_bb): Call it if EH edge destination is <
31098 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31099 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31100 if flag_stack_reuse != SR_NONE and clear it afterwards.
31102 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31105 * doc/install.texi (with-multilib-list): Document for aarch64.
31107 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31110 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31111 (("..."))) with ("...").
31113 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31115 * doc/extend.texi (Built-in Functions for Memory Model Aware
31116 Atomic Operations): Document atomic fetch and nand.
31118 2019-01-18 Martin Liska <mliska@suse.cz>
31119 Richard Biener <rguenther@suse.de>
31121 PR middle-end/88587
31122 * cgraph.h (create_version_clone_with_body): Add new argument
31124 * cgraphclones.c (cgraph_node::create_version_clone): Add
31125 DECL_ATTRIBUTES to a newly created decl. And call
31126 valid_attribute_p so that proper cl_target_optimization_node
31127 is set for the newly created declaration.
31128 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31130 (expand_target_clones): Do not call valid_attribute_p, it must
31132 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31135 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31138 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31139 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31140 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31142 2019-01-17 Martin Sebor <msebor@redhat.com>
31144 PR middle-end/88273
31145 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31146 Handle anti-ranges the same as no range at all.
31148 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31150 * config/aarch64/aarch64.c (cgraph.h): New include.
31151 (intl.h): New include.
31152 (supported_simd_type): New function.
31153 (currently_supported_simd_type): Ditto.
31154 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31155 (aarch64_simd_clone_adjust): Ditto.
31156 (aarch64_simd_clone_usable): Ditto.
31157 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31158 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31159 (TARGET_SIMD_CLONE_USABLE): Ditto.
31160 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31161 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31164 2019-01-17 Martin Sebor <msebor@redhat.com>
31166 PR tree-optimization/88800
31167 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31168 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31169 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31170 redundant argument. Add new argument and issue diagnostics under
31171 its control. Detect out-of-bounds access even with warnings
31173 (check_bounds_or_overlap): Change return type. Add argument.
31174 (wrestrict_dom_walker::check_call): Adjust.
31175 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31176 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31177 check_bounds_or_overlap's return value.
31178 (handle_builtin_stxncpy): Same.
31179 (handle_builtin_strcat): Same.
31181 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31182 Kwok Cheung Yeung <kcy@codesourcery.com>
31183 Julian Brown <julian@codesourcery.com>
31184 Tom de Vries <tom@codesourcery.com>
31186 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31188 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31190 * doc/sourcebuild.texi: Document dg-require-effective-target
31191 llvm_binutils and offload_gcn.
31193 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31194 Kwok Cheung Yeung <kcy@codesourcery.com>
31195 Julian Brown <julian@codesourcery.com>
31196 Tom de Vries <tom@codesourcery.com>
31198 * doc/sourcebuild.texi: Document dg-required-effective-target
31201 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31202 Kwok Cheung Yeung <kcy@codesourcery.com>
31203 Julian Brown <julian@codesourcery.com>
31204 Tom de Vries <tom@codesourcery.com>
31205 Jan Hubicka <hubicka@ucw.cz>
31206 Martin Jambor <mjambor@suse.cz>
31208 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31209 * configure.ac: Check for dlopen.
31210 * configure: Regenerate.
31212 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31213 Kwok Cheung Yeung <kcy@codesourcery.com>
31214 Julian Brown <julian@codesourcery.com>
31215 Tom de Vries <tom@codesourcery.com>
31216 Jan Hubicka <hubicka@ucw.cz>
31217 Martin Jambor <mjambor@suse.cz>
31219 * common/config/gcn/gcn-common.c: New file.
31220 * config/gcn/driver-gcn.c: New file.
31221 * config/gcn/gcn-builtins.def: New file.
31222 * config/gcn/gcn-hsa.h: New file.
31223 * config/gcn/gcn-modes.def: New file.
31224 * config/gcn/gcn-opts.h: New file.
31225 * config/gcn/gcn-passes.def: New file.
31226 * config/gcn/gcn-protos.h: New file.
31227 * config/gcn/gcn-run.c: New file.
31228 * config/gcn/gcn-tree.c: New file.
31229 * config/gcn/gcn.c: New file.
31230 * config/gcn/gcn.h: New file.
31231 * config/gcn/gcn.opt: New file.
31232 * config/gcn/t-gcn-hsa: New file.
31234 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31235 Kwok Cheung Yeung <kcy@codesourcery.com>
31236 Julian Brown <julian@codesourcery.com>
31237 Tom de Vries <tom@codesourcery.com>
31238 Jan Hubicka <hubicka@ucw.cz>
31239 Martin Jambor <mjambor@suse.cz>
31241 * config/gcn/constraints.md: New file.
31242 * config/gcn/gcn-valu.md: New file.
31243 * config/gcn/gcn.md: New file.
31244 * config/gcn/predicates.md: New file.
31246 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31248 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31249 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31250 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31251 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31253 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31256 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
31257 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
31258 it and document registers.
31260 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31262 * config/aarch64/aarch64.c (ares_tunings): Define.
31263 * config/aarch64/aarch64-cores.def (ares): Use the above.
31265 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31269 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
31271 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
31272 (_mm512_fixupimm_round_pd): Update parameters and builtin.
31273 (_mm512_maskz_fixupimm_round_pd): Ditto.
31274 (_mm512_fixupimm_round_ps): Ditto.
31275 (_mm512_maskz_fixupimm_round_ps): Ditto.
31276 (_mm_fixupimm_round_sd): Ditto.
31277 (_mm_maskz_fixupimm_round_sd): Ditto.
31278 (_mm_fixupimm_round_ss): Ditto.
31279 (_mm_maskz_fixupimm_round_ss): Ditto.
31280 (_mm512_fixupimm_pd): Ditto.
31281 (_mm512_maskz_fixupimm_pd): Ditto.
31282 (_mm512_fixupimm_ps): Ditto.
31283 (_mm512_maskz_fixupimm_ps): Ditto.
31284 (_mm_fixupimm_sd): Ditto.
31285 (_mm_maskz_fixupimm_sd): Ditto.
31286 (_mm_fixupimm_ss): Ditto.
31287 (_mm_maskz_fixupimm_ss): Ditto.
31288 (_mm512_mask_fixupimm_round_pd): Update builtin.
31289 (_mm512_mask_fixupimm_round_ps): Ditto.
31290 (_mm_mask_fixupimm_round_sd): Ditto.
31291 (_mm_mask_fixupimm_round_ss): Ditto.
31292 (_mm512_mask_fixupimm_pd): Ditto.
31293 (_mm512_mask_fixupimm_ps): Ditto.
31294 (_mm_mask_fixupimm_sd): Ditto.
31295 (_mm_mask_fixupimm_ss): Ditto.
31296 * config/i386/avx512vlintrin.h:
31297 (_mm256_fixupimm_pd): Update parameters and builtin.
31298 (_mm256_maskz_fixupimm_pd): Ditto.
31299 (_mm256_fixupimm_ps): Ditto.
31300 (_mm256_maskz_fixupimm_ps): Ditto.
31301 (_mm_fixupimm_pd): Ditto.
31302 (_mm_maskz_fixupimm_pd): Ditto.
31303 (_mm_fixupimm_ps): Ditto.
31304 (_mm_maskz_fixupimm_ps): Ditto.
31305 (_mm256_mask_fixupimm_pd): Update builtin.
31306 (_mm256_mask_fixupimm_ps): Ditto.
31307 (_mm_mask_fixupimm_pd): Ditto.
31308 (_mm_mask_fixupimm_ps): Ditto.
31309 * config/i386/i386-builtin-types.def: Add new types and remove
31311 * config/i386/i386-builtin.def: Update builtin definitions.
31312 * config/i386/i386.c: Handle new builtin types and remove useless ones.
31313 * config/i386/sse.md: Update VFIXUPIMM* patterns.
31314 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31315 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31316 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
31317 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31318 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31319 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
31320 * config/i386/subst.md:
31321 (round_saeonly_sd_mask_operand4): Add new subst_attr.
31322 (round_saeonly_sd_mask_op4): Ditto.
31323 (round_saeonly_expand_operand5): Ditto.
31324 (round_saeonly_expand): Update.
31326 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31330 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
31332 * config/i386/sse.md: Combine VFIXUPIMM* patterns
31333 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31334 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31335 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
31336 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31337 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31338 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
31340 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31344 2018-12-15 Jakub Jelinek <jakub@redhat.com>
31347 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
31348 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
31349 instead of UNSPEC_FIXUPIMM.
31351 2019-01-17 Richard Biener <rguenther@suse.de>
31354 * dwarf2out.c (want_pubnames): Never generate pubnames sections
31355 and friends for the LTO part of debug info.
31357 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31359 PR tree-optimization/86214
31360 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
31363 PR rtl-optimization/88870
31364 * dce.c (deletable_insn_p): Never delete const/pure calls that can
31365 throw if we can't alter the cfg or delete dead exceptions.
31366 (mark_insn): Don't call find_call_stack_args for such calls.
31368 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
31370 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
31371 prototypes for vec_st.
31372 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
31373 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
31374 mainly on signed/unsigned long long and double.
31376 2019-01-16 David Malcolm <dmalcolm@redhat.com>
31379 * combine.c (delete_noop_moves): Convert to "bool" return,
31380 returning true if any edges are eliminated.
31381 (combine_instructions): Also return true if delete_noop_moves
31384 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31386 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
31387 correct max nunits for endian swap.
31388 (aarch64_expand_fcmla_builtin): Correct subreg code.
31389 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31390 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
31393 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
31395 * config/alpha/alpha.c (alpha_gimplify_va_arg):
31396 Handle split indirect COMPLEX_TYPE arguments.
31398 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
31401 * config/aarch64/aarch64-modes.def: Add comment about how the carry
31402 bit is set by add and compare.
31403 (CC_ADC): New CC_MODE.
31404 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
31405 to cache the code and mode of X. Adjust the shape of a CC_Cmode
31406 comparison. Add detection for CC_ADCmode.
31407 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
31409 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
31410 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
31411 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
31412 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
31413 to eliminate the need for zero-extending the operands.
31414 (add<mode>3_compareC_imm): Delete. Merge into ...
31415 (add<mode>3_compareC): ... this. Restructure the comparison to
31416 eliminate the need for zero-extending the operands.
31417 (add<mode>3_carryin): Use LTU for the overflow detection.
31418 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
31419 Reexpress comparison for overflow.
31420 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
31421 (add<mode>3_carryinC): Likewise.
31422 (add<mode>3_carryinV): Use LTU for carry between partials.
31423 * config/aarch64/predicates.md (aarch64_carry_operation): Update
31424 handling of CC_Cmode and add CC_ADCmode.
31425 (aarch64_borrow_operation): Likewise.
31427 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31429 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31430 Remove patternmode.
31431 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31432 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31433 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31434 Remove endianness conversion.
31436 2019-01-16 Martin Liska <mliska@suse.cz>
31438 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31440 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31442 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31443 (path_prefix_reset): Move up in the source file.
31444 (find_fortran_preinclude_file): Make complex search for the
31445 fortran header files.
31447 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31449 * godump.c (go_output_typedef): When outputting a typedef, refer
31450 to the underlying type by its name and not its structure.
31452 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31455 * tree.c (build_function_type): Assert that arg_types is not
31458 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31460 PR inline-asm/52813
31461 * doc/extend.texi: Document that listing the stack pointer in the
31462 clobber list of an asm is a deprecated feature.
31463 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31464 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31465 warning instead of an error for clobbers of the stack pointer.
31466 Add a note explaining why.
31468 2019-01-15 Richard Biener <rguenther@suse.de>
31471 * dwarf2out.c (gen_member_die): Do not generate inheritance
31474 2019-01-15 Richard Biener <rguenther@suse.de>
31476 PR tree-optimization/88855
31477 * tree-if-conv.c (combine_blocks): Collect
31478 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
31480 2019-01-15 Tom de Vries <tdevries@suse.de>
31483 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
31484 lhs == NULL_TREE for gang-level reduction.
31486 2019-01-15 Richard Biener <rguenther@suse.de>
31487 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31490 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
31491 return true if SSA_NAME is already marked in visited bitmap.
31492 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
31494 2019-01-15 Jakub Jelinek <jakub@redhat.com>
31496 PR tree-optimization/88775
31497 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
31498 equal == 0 equality pointer comparisons some more if compared in
31499 integral types and either one points to an automatic var and the
31500 other to a global, or we can prove at least one points to the middle
31501 or both point to start or both point to end.
31503 2019-01-14 Andi Kleen <ak@linux.intel.com>
31505 * Makefile.in: Lower autofdo sampling rate by 10x.
31506 * Makefile.tpl: Dito.
31508 2019-01-14 Tom Honermann <tom@honermann.net>
31510 * defaults.h: Define CHAR8_TYPE.
31512 2019-01-14 Martin Sebor <msebor@redhat.com>
31515 * doc/extend.texi (Darwin Format Checks): Clarify.
31517 2019-01-14 Richard Biener <rguenther@suse.de>
31519 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
31520 whether we are in (simplify ...) or (match ...) context.
31522 2019-01-14 Jakub Jelinek <jakub@redhat.com>
31524 PR rtl-optimization/88796
31525 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
31526 * cfgexpand.c (stack_protect_prologue): Initialize
31527 crtl->stack_protect_guard_decl.
31528 * function.c (stack_protect_epilogue): Use it instead of calling
31529 targetm.stack_protect_guard again.
31530 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
31531 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
31532 crtl->stack_protect_guard_decl.
31533 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
31534 on the returned MEM_EXPR.
31536 2019-01-12 Tom de Vries <tdevries@suse.de>
31538 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
31539 vector length using -fopenacc-dim.
31541 2019-01-12 Tom de Vries <tdevries@suse.de>
31543 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
31544 lengths into account.
31546 2019-01-12 Svante Signell <svante.signell@gmail.com>
31548 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
31549 (TARGET_CAN_SPLIT_STACK): Define.
31550 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
31552 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31554 * params.def (inline-unit-growth): Set to 40.
31556 2019-01-12 Jakub Jelinek <jakub@redhat.com>
31558 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
31560 2019-01-12 Tom de Vries <tdevries@suse.de>
31562 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
31563 region calling vector-partitionable routine, set default_vector_length
31566 2019-01-12 Tom de Vries <tdevries@suse.de>
31568 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
31569 variable default_vector_length.
31571 2019-01-12 Tom de Vries <tdevries@suse.de>
31573 PR middle-end/88703
31574 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
31575 from oacc_default_dims, as oacc_validate_dims would do it, and apply
31578 2019-01-12 Tom de Vries <tdevries@suse.de>
31580 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
31581 (nvptx_goacc_validate_dims): Add used parameter.
31582 * doc/tm.texi: Regenerate.
31583 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
31584 argument to call to targetm.goacc.validate_dims.
31585 (default_goacc_validate_dims): Add used
31587 * target.def (validate_dims): Add used parameter in DEFHOOK.
31588 * targhooks.h (default_goacc_validate_dims): Add used parameter.
31590 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31592 PR middle-end/85956
31594 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
31596 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
31597 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
31598 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
31599 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
31601 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
31603 PR rtl-optimization/87305
31605 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
31606 for little endian pseudos used as paradoxical subreg.
31608 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31610 PR tree-optimization/88693
31611 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31612 for STRING_CSTs that don't contain any NUL characters in the first
31613 TREE_STRING_LENGTH bytes.
31615 2019-01-11 Alan Modra <amodra@gmail.com>
31619 * genattrtab.c (min_fn): Don't translate values.
31620 (min_attr_value): Return INT_MAX when the value can't be calculated.
31621 Return minimum among any values that can be calculated.
31622 (max_attr_value): Adjust.
31624 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31626 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31628 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31630 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31631 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31632 (aarch64_return_call_with_max_clobbers): New function.
31633 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31634 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31636 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31637 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31638 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31639 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31640 * cselib.c (cselib_process_insn): Add argument to
31641 targetm.hard_regno_call_part_clobbered call.
31642 * ira-conflicts.c (ira_build_conflicts): Ditto.
31643 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31644 * lra-constraints.c (inherit_reload_reg): Ditto.
31645 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31646 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31647 argument. Call targetm.return_call_with_max_clobbers.
31648 Add argument to targetm.hard_regno_call_part_clobbered call.
31649 (calls_have_same_clobbers_p): New function.
31650 (process_bb_lives): Add call_insn and last_call_insn variables.
31651 Pass call_insn to check_pseudos_live_through_calls.
31652 Modify if stmt to check targetm.return_call_with_max_clobbers.
31653 Update setting of flush variable.
31654 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31656 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31657 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31658 targetm.hard_regno_call_part_clobbered call.
31659 * reginfo.c (choose_hard_reg_mode): Ditto.
31660 * regrename.c (check_new_reg_p): Ditto.
31661 * reload.c (find_equiv_reg): Ditto.
31662 * reload1.c (emit_reload_insns): Ditto.
31663 * sched-deps.c (deps_analyze_insn): Ditto.
31664 * sel-sched.c (init_regs_for_mode): Ditto.
31665 (mark_unavailable_hard_regs): Ditto.
31666 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31667 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31668 (return_call_with_max_clobbers): New target function.
31669 * doc/tm.texi: Regenerate.
31670 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31671 * hooks.c (hook_bool_uint_mode_false): Change to
31672 hook_bool_insn_uint_mode_false.
31673 * hooks.h (hook_bool_uint_mode_false): Ditto.
31675 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31677 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31678 (aarch64_remove_extra_call_preserved_regs): New function.
31679 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31680 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31681 * doc/tm.texi: Regenerate.
31682 * final.c (get_call_reg_set_usage): Call new hook.
31683 * target.def (remove_extra_call_preserved_regs): New hook.
31684 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31685 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31687 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31690 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31691 inside of pass_combine_1 dump rather than pass_profile_1.
31693 2019-01-11 Tom de Vries <tdevries@suse.de>
31695 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31696 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31697 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31698 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31701 2019-01-11 Tom de Vries <tdevries@suse.de>
31703 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31705 2019-01-11 Jan Beulich <jbeulich@suse.com>
31707 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31708 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31709 sse2_cvtsi2sd): Add {l}.
31710 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31713 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31716 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31718 (*float<floatunssuffix>v2div2sf2): New define_insn.
31719 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31720 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31721 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31722 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31723 match_operands with "const0_operand" "C".
31725 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31727 * config/aarch64/aarch64-builtins.c
31728 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31729 (aarch64_init_simd_builtins): ...Here
31731 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31733 PR rtl-optimization/87305
31735 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31736 allocation for big endian pseudos used as paradoxical subregs and
31737 spill them if it is wrong.
31738 * lra-constraints.c (lra_constraints): Add a comment.
31740 2019-01-10 Richard Biener <rguenther@suse.de>
31742 PR tree-optimization/88792
31743 * tree-ssa-pre.c (get_representative_for): Do not return a
31746 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31748 PR middle-end/84877
31750 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31751 (assign_parm_setup_block): Do the argument slot realignment here
31754 2019-01-10 Stefan Agner <stefan@agner.ch>
31757 * config/arm/arm.c (arm_option_override_internal): Force
31758 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31760 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31763 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31766 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31768 * config/arm/arm-builtins.c
31769 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31770 (MAC_LANE_PAIR_QUALIFIERS): New.
31771 (arm_expand_builtin_args): Use it.
31772 (arm_expand_builtin_1): Likewise.
31773 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31774 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31775 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31776 * config/arm/arm_neon.h:
31777 (vcadd_rot90_f16): New.
31778 (vcaddq_rot90_f16): New.
31779 (vcadd_rot270_f16): New.
31780 (vcaddq_rot270_f16): New.
31783 (vcmla_lane_f16): New.
31784 (vcmla_laneq_f16): New.
31785 (vcmlaq_lane_f16): New.
31786 (vcmlaq_laneq_f16): New.
31787 (vcmla_rot90_f16): New.
31788 (vcmlaq_rot90_f16): New.
31789 (vcmla_rot90_lane_f16): New.
31790 (vcmla_rot90_laneq_f16): New.
31791 (vcmlaq_rot90_lane_f16): New.
31792 (vcmlaq_rot90_laneq_f16): New.
31793 (vcmla_rot180_f16): New.
31794 (vcmlaq_rot180_f16): New.
31795 (vcmla_rot180_lane_f16): New.
31796 (vcmla_rot180_laneq_f16): New.
31797 (vcmlaq_rot180_lane_f16): New.
31798 (vcmlaq_rot180_laneq_f16): New.
31799 (vcmla_rot270_f16): New.
31800 (vcmlaq_rot270_f16): New.
31801 (vcmla_rot270_lane_f16): New.
31802 (vcmla_rot270_laneq_f16): New.
31803 (vcmlaq_rot270_lane_f16): New.
31804 (vcmlaq_rot270_laneq_f16): New.
31805 (vcadd_rot90_f32): New.
31806 (vcaddq_rot90_f32): New.
31807 (vcadd_rot270_f32): New.
31808 (vcaddq_rot270_f32): New.
31811 (vcmla_lane_f32): New.
31812 (vcmla_laneq_f32): New.
31813 (vcmlaq_lane_f32): New.
31814 (vcmlaq_laneq_f32): New.
31815 (vcmla_rot90_f32): New.
31816 (vcmlaq_rot90_f32): New.
31817 (vcmla_rot90_lane_f32): New.
31818 (vcmla_rot90_laneq_f32): New.
31819 (vcmlaq_rot90_lane_f32): New.
31820 (vcmlaq_rot90_laneq_f32): New.
31821 (vcmla_rot180_f32): New.
31822 (vcmlaq_rot180_f32): New.
31823 (vcmla_rot180_lane_f32): New.
31824 (vcmla_rot180_laneq_f32): New.
31825 (vcmlaq_rot180_lane_f32): New.
31826 (vcmlaq_rot180_laneq_f32): New.
31827 (vcmla_rot270_f32): New.
31828 (vcmlaq_rot270_f32): New.
31829 (vcmla_rot270_lane_f32): New.
31830 (vcmla_rot270_laneq_f32): New.
31831 (vcmlaq_rot270_lane_f32): New.
31832 (vcmlaq_rot270_laneq_f32): New.
31833 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31834 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31835 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31836 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31837 vcmlaq_lane270): New.
31838 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31839 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31840 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31841 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31842 (arm_option_reconfigure_globals): Use them.
31843 * config/arm/iterators.md (VDF, VQ_HSF): New.
31844 (VCADD, VCMLA): New.
31845 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31846 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31848 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31849 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31851 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31853 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31854 Add qualifier_lane_pair_index.
31855 (emit-rtl.h): Include.
31856 (TYPES_QUADOP_LANE_PAIR): New.
31857 (aarch64_simd_expand_args): Use it.
31858 (aarch64_simd_expand_builtin): Likewise.
31859 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31861 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31862 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31863 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31864 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31865 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31866 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31867 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31868 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31869 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31870 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31871 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31872 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31873 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31874 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31875 Add __ARM_FEATURE_COMPLEX.
31876 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31877 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31878 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31879 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31880 fcmlaq_lane270): New.
31881 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31882 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31883 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31884 * config/aarch64/arm_neon.h:
31885 (vcadd_rot90_f16): New.
31886 (vcaddq_rot90_f16): New.
31887 (vcadd_rot270_f16): New.
31888 (vcaddq_rot270_f16): New.
31891 (vcmla_lane_f16): New.
31892 (vcmla_laneq_f16): New.
31893 (vcmlaq_lane_f16): New.
31894 (vcmlaq_rot90_lane_f16): New.
31895 (vcmla_rot90_laneq_f16): New.
31896 (vcmla_rot90_lane_f16): New.
31897 (vcmlaq_rot90_f16): New.
31898 (vcmla_rot90_f16): New.
31899 (vcmlaq_laneq_f16): New.
31900 (vcmla_rot180_laneq_f16): New.
31901 (vcmla_rot180_lane_f16): New.
31902 (vcmlaq_rot180_f16): New.
31903 (vcmla_rot180_f16): New.
31904 (vcmlaq_rot90_laneq_f16): New.
31905 (vcmlaq_rot270_laneq_f16): New.
31906 (vcmlaq_rot270_lane_f16): New.
31907 (vcmla_rot270_laneq_f16): New.
31908 (vcmlaq_rot270_f16): New.
31909 (vcmla_rot270_f16): New.
31910 (vcmlaq_rot180_laneq_f16): New.
31911 (vcmlaq_rot180_lane_f16): New.
31912 (vcmla_rot270_lane_f16): New.
31913 (vcadd_rot90_f32): New.
31914 (vcaddq_rot90_f32): New.
31915 (vcaddq_rot90_f64): New.
31916 (vcadd_rot270_f32): New.
31917 (vcaddq_rot270_f32): New.
31918 (vcaddq_rot270_f64): New.
31922 (vcmla_lane_f32): New.
31923 (vcmla_laneq_f32): New.
31924 (vcmlaq_lane_f32): New.
31925 (vcmlaq_laneq_f32): New.
31926 (vcmla_rot90_f32): New.
31927 (vcmlaq_rot90_f32): New.
31928 (vcmlaq_rot90_f64): New.
31929 (vcmla_rot90_lane_f32): New.
31930 (vcmla_rot90_laneq_f32): New.
31931 (vcmlaq_rot90_lane_f32): New.
31932 (vcmlaq_rot90_laneq_f32): New.
31933 (vcmla_rot180_f32): New.
31934 (vcmlaq_rot180_f32): New.
31935 (vcmlaq_rot180_f64): New.
31936 (vcmla_rot180_lane_f32): New.
31937 (vcmla_rot180_laneq_f32): New.
31938 (vcmlaq_rot180_lane_f32): New.
31939 (vcmlaq_rot180_laneq_f32): New.
31940 (vcmla_rot270_f32): New.
31941 (vcmlaq_rot270_f32): New.
31942 (vcmlaq_rot270_f64): New.
31943 (vcmla_rot270_lane_f32): New.
31944 (vcmla_rot270_laneq_f32): New.
31945 (vcmlaq_rot270_lane_f32): New.
31946 (vcmlaq_rot270_laneq_f32): New.
31947 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31948 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31949 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31950 (FCADD, FCMLA): New.
31952 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31954 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31958 * config/pa/pa.c: Change "can not" to "cannot".
31959 * gimple-ssa-evrp-analyze.c: Likewise.
31960 * ipa-icf.c: Likewise.
31961 * ipa-polymorphic-call.c: Likewise.
31962 * ipa-pure-const.c: Likewise.
31963 * lra-constraints.c: Likewise.
31964 * lra-remat.c: Likewise.
31965 * reload1.c: Likewise.
31966 * reorg.c: Likewise.
31967 * tree-ssa-uninit.c: Likewise.
31969 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31973 * Makefile.in: Mechanically replace "can not" with "cannot".
31974 * alias.c: Likewise.
31975 * builtins.c: Likewise.
31976 * calls.c: Likewise.
31977 * cgraph.c: Likewise.
31978 * cgraph.h: Likewise.
31979 * cgraphclones.c: Likewise.
31980 * cgraphunit.c: Likewise.
31981 * combine-stack-adj.c: Likewise.
31982 * combine.c: Likewise.
31983 * common/config/i386/i386-common.c: Likewise.
31984 * config/aarch64/aarch64.c: Likewise.
31985 * config/alpha/sync.md: Likewise.
31986 * config/arc/arc.c: Likewise.
31987 * config/arc/predicates.md: Likewise.
31988 * config/arm/arm-c.c: Likewise.
31989 * config/arm/arm.c: Likewise.
31990 * config/arm/arm.h: Likewise.
31991 * config/arm/arm.md: Likewise.
31992 * config/arm/cortex-r4f.md: Likewise.
31993 * config/csky/csky.c: Likewise.
31994 * config/csky/csky.h: Likewise.
31995 * config/darwin-f.c: Likewise.
31996 * config/epiphany/epiphany.md: Likewise.
31997 * config/i386/i386.c: Likewise.
31998 * config/i386/sol2.h: Likewise.
31999 * config/m68k/m68k.c: Likewise.
32000 * config/mcore/mcore.h: Likewise.
32001 * config/microblaze/microblaze.md: Likewise.
32002 * config/mips/20kc.md: Likewise.
32003 * config/mips/sb1.md: Likewise.
32004 * config/nds32/nds32.c: Likewise.
32005 * config/nds32/predicates.md: Likewise.
32006 * config/pa/pa.c: Likewise.
32007 * config/rs6000/e300c2c3.md: Likewise.
32008 * config/rs6000/rs6000.c: Likewise.
32009 * config/s390/s390.h: Likewise.
32010 * config/sh/sh.c: Likewise.
32011 * config/sh/sh.md: Likewise.
32012 * config/spu/vmx2spu.h: Likewise.
32013 * cprop.c: Likewise.
32014 * dbxout.c: Likewise.
32015 * df-scan.c: Likewise.
32016 * doc/cfg.texi: Likewise.
32017 * doc/extend.texi: Likewise.
32018 * doc/fragments.texi: Likewise.
32019 * doc/gty.texi: Likewise.
32020 * doc/invoke.texi: Likewise.
32021 * doc/lto.texi: Likewise.
32022 * doc/md.texi: Likewise.
32023 * doc/objc.texi: Likewise.
32024 * doc/rtl.texi: Likewise.
32025 * doc/tm.texi: Likewise.
32027 * emit-rtl.c: Likewise.
32028 * emit-rtl.h: Likewise.
32029 * except.c: Likewise.
32030 * expmed.c: Likewise.
32031 * expr.c: Likewise.
32032 * fold-const.c: Likewise.
32033 * genautomata.c: Likewise.
32034 * gimple-fold.c: Likewise.
32035 * hard-reg-set.h: Likewise.
32036 * ifcvt.c: Likewise.
32037 * ipa-comdats.c: Likewise.
32038 * ipa-cp.c: Likewise.
32039 * ipa-devirt.c: Likewise.
32040 * ipa-fnsummary.c: Likewise.
32041 * ipa-icf.c: Likewise.
32042 * ipa-inline-transform.c: Likewise.
32043 * ipa-inline.c: Likewise.
32044 * ipa-polymorphic-call.c: Likewise.
32045 * ipa-profile.c: Likewise.
32046 * ipa-prop.c: Likewise.
32047 * ipa-pure-const.c: Likewise.
32048 * ipa-reference.c: Likewise.
32049 * ipa-split.c: Likewise.
32050 * ipa-visibility.c: Likewise.
32052 * ira-build.c: Likewise.
32053 * ira-color.c: Likewise.
32054 * ira-conflicts.c: Likewise.
32055 * ira-costs.c: Likewise.
32056 * ira-int.h: Likewise.
32057 * ira-lives.c: Likewise.
32060 * loop-invariant.c: Likewise.
32061 * loop-unroll.c: Likewise.
32062 * lower-subreg.c: Likewise.
32063 * lra-assigns.c: Likewise.
32064 * lra-constraints.c: Likewise.
32065 * lra-eliminations.c: Likewise.
32066 * lra-lives.c: Likewise.
32067 * lra-remat.c: Likewise.
32068 * lra-spills.c: Likewise.
32070 * lto-cgraph.c: Likewise.
32071 * lto-streamer-out.c: Likewise.
32072 * postreload-gcse.c: Likewise.
32073 * predict.c: Likewise.
32074 * profile-count.h: Likewise.
32075 * profile.c: Likewise.
32076 * recog.c: Likewise.
32078 * reload.c: Likewise.
32079 * reload1.c: Likewise.
32080 * reorg.c: Likewise.
32081 * resource.c: Likewise.
32082 * rtl.def: Likewise.
32084 * rtlanal.c: Likewise.
32085 * sched-deps.c: Likewise.
32086 * sched-ebb.c: Likewise.
32087 * sched-rgn.c: Likewise.
32088 * sel-sched-ir.c: Likewise.
32089 * sel-sched.c: Likewise.
32090 * shrink-wrap.c: Likewise.
32091 * simplify-rtx.c: Likewise.
32092 * symtab.c: Likewise.
32093 * target.def: Likewise.
32094 * toplev.c: Likewise.
32095 * tree-call-cdce.c: Likewise.
32096 * tree-cfg.c: Likewise.
32097 * tree-complex.c: Likewise.
32098 * tree-core.h: Likewise.
32099 * tree-eh.c: Likewise.
32100 * tree-inline.c: Likewise.
32101 * tree-loop-distribution.c: Likewise.
32102 * tree-nrv.c: Likewise.
32103 * tree-profile.c: Likewise.
32104 * tree-sra.c: Likewise.
32105 * tree-ssa-alias.c: Likewise.
32106 * tree-ssa-dce.c: Likewise.
32107 * tree-ssa-dom.c: Likewise.
32108 * tree-ssa-forwprop.c: Likewise.
32109 * tree-ssa-loop-im.c: Likewise.
32110 * tree-ssa-loop-ivcanon.c: Likewise.
32111 * tree-ssa-loop-ivopts.c: Likewise.
32112 * tree-ssa-loop-niter.c: Likewise.
32113 * tree-ssa-phionlycprop.c: Likewise.
32114 * tree-ssa-phiopt.c: Likewise.
32115 * tree-ssa-propagate.c: Likewise.
32116 * tree-ssa-threadedge.c: Likewise.
32117 * tree-ssa-threadupdate.c: Likewise.
32118 * tree-ssa-uninit.c: Likewise.
32119 * tree-ssanames.c: Likewise.
32120 * tree-streamer-out.c: Likewise.
32121 * tree.c: Likewise.
32122 * tree.h: Likewise.
32123 * vr-values.c: Likewise.
32125 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32127 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32128 (ix86_split_xorsign): Ditto.
32129 * config/i386/i386.c (ix86_expand_xorsign): New function.
32130 (ix86_split_xorsign): Ditto.
32131 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32132 (xorsign<mode>3): New expander.
32133 (xorsign<mode>3_1): New insn_and_split pattern.
32134 * config/i386/sse.md (xorsign<mode>3): New expander.
32136 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32138 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32139 (*tablejump_sp64): Likewise.
32140 (*tablejump<P:mode>): ...this.
32141 (*call_address_sp32): Merge into...
32142 (*call_address_sp64): Likewise.
32143 (*call_address<P:mode>): ...this.
32144 (*call_symbolic_sp32): Merge into...
32145 (*call_symbolic_sp64): Likewise.
32146 (*call_symbolic<P:mode>): ...this.
32147 (call_value): Remove constraint and add predicate.
32148 (*call_value_address_sp32): Merge into...
32149 (*call_value_address_sp64): Likewise.
32150 (*call_value_address<P:mode>): ...this.
32151 (*call_value_symbolic_sp32): Merge into...
32152 (*call_value_symbolic_sp64): Likewise.
32153 (*call_value_symbolic<P:mode>): ...this.
32154 (*sibcall_symbolic_sp32): Merge into...
32155 (*sibcall_symbolic_sp64): Likewise.
32156 (*sibcall_symbolic<P:mode>): ...this.
32157 (sibcall_value): Remove constraint and add predicate.
32158 (*sibcall_value_symbolic_sp32): Merge into...
32159 (*sibcall_value_symbolic_sp64): Likewise.
32160 (*sibcall_value_symbolic<P:mode>): ...this.
32161 (window_save): Minor tweak.
32162 (*branch_sp32): Merge into...
32163 (*branch_sp64): Likewise.
32164 (*branch<P:mode>): ...this.
32166 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32167 James Clarke <jrtc27@jrtc27.com>
32170 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32171 consistently in TLS address generation and adjust code to the renaming
32172 of patterns. Mark calls to __tls_get_addr as const.
32173 * config/sparc/sparc.md (tgd_hi22): Turn into...
32174 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32175 (tgd_lo10): Turn into...
32176 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32177 (tgd_add32): Merge into...
32178 (tgd_add64): Likewise.
32179 (tgd_add<P:mode>): ...this and use Pmode throughout.
32180 (tldm_hi22): Turn into...
32181 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32182 (tldm_lo10): Turn into...
32183 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32184 (tldm_add32): Merge into...
32185 (tldm_add64): Likewise.
32186 (tldm_add<P:mode>): ...this and use Pmode throughout.
32187 (tldm_call32): Merge into...
32188 (tldm_call64): Likewise.
32189 (tldm_call<P:mode>): ...this and use Pmode throughout.
32190 (tldo_hix22): Turn into...
32191 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32192 (tldo_lox10): Turn into...
32193 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32194 (tldo_add32): Merge into...
32195 (tldo_add64): Likewise.
32196 (tldo_add<P:mode>): ...this and use Pmode throughout.
32197 (tie_hi22): Turn into...
32198 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32199 (tie_lo10): Turn into...
32200 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32201 (tie_ld64): Use DImode throughout.
32202 (tie_add32): Merge into...
32203 (tie_add64): Likewise.
32204 (tie_add<P:mode>): ...this and use Pmode throughout.
32205 (tle_hix22_sp32): Merge into...
32206 (tle_hix22_sp64): Likewise.
32207 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32208 (tle_lox22_sp32): Merge into...
32209 (tle_lox22_sp64): Likewise.
32210 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32211 (*tldo_ldub_sp32): Merge into...
32212 (*tldo_ldub_sp64): Likewise.
32213 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32214 (*tldo_ldub1_sp32): Merge into...
32215 (*tldo_ldub1_sp64): Likewise.
32216 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32217 (*tldo_ldub2_sp32): Merge into...
32218 (*tldo_ldub2_sp64): Likewise.
32219 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32220 (*tldo_ldsb1_sp32): Merge into...
32221 (*tldo_ldsb1_sp64): Likewise.
32222 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32223 (*tldo_ldsb2_sp32): Merge into...
32224 (*tldo_ldsb2_sp64): Likewise.
32225 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32226 (*tldo_ldub3_sp64): Use DImode throughout.
32227 (*tldo_ldsb3_sp64): Likewise.
32228 (*tldo_lduh_sp32): Merge into...
32229 (*tldo_lduh_sp64): Likewise.
32230 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32231 (*tldo_lduh1_sp32): Merge into...
32232 (*tldo_lduh1_sp64): Likewise.
32233 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32234 (*tldo_ldsh1_sp32): Merge into...
32235 (*tldo_ldsh1_sp64): Likewise.
32236 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32237 (*tldo_lduh2_sp64): Use DImode throughout.
32238 (*tldo_ldsh2_sp64): Likewise.
32239 (*tldo_lduw_sp32): Merge into...
32240 (*tldo_lduw_sp64): Likewise.
32241 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32242 (*tldo_lduw1_sp64): Use DImode throughout.
32243 (*tldo_ldsw1_sp64): Likewise.
32244 (*tldo_ldx_sp64): Likewise.
32245 (*tldo_stb_sp32): Merge into...
32246 (*tldo_stb_sp64): Likewise.
32247 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32248 (*tldo_sth_sp32): Merge into...
32249 (*tldo_sth_sp64): Likewise.
32250 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32251 (*tldo_stw_sp32): Merge into...
32252 (*tldo_stw_sp64): Likewise.
32253 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32254 (*tldo_stx_sp64): Use DImode throughout.
32256 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32258 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
32259 check configure option to set BTI and Return Address Signing.
32260 * configure.ac: Add --enable-standard-branch-protection and
32261 --disable-standard-branch-protection.
32262 * configure: Regenerated.
32263 * doc/install.texi: Document the same.
32265 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32266 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32268 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
32269 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
32270 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
32272 * config/aarch64/aarch64-bti-insert.c: New file.
32273 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
32275 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
32277 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
32278 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
32279 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
32280 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
32282 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32284 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
32285 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
32286 Disable bti for -mbranch-protection=none.
32287 (aarch64_handle_standard_branch_protection): Enable bti for
32288 -mbranch-protection=standard.
32289 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
32290 -mbranch-protection.
32291 (aarch64_bti_enabled): Check if bti is enabled.
32292 * config/aarch64/aarch64.opt: Declare target variable.
32293 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
32295 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32297 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
32298 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
32299 (aarch64_expand_epilogue): Likewise.
32300 (aarch64_output_mi_thunk): Likewise.
32301 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
32302 TAILCALL_ADDR_REGS to x16 and x17.
32303 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
32305 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32307 * config/aarch64/aarch64-option-extensions.def: Define
32308 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
32309 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
32310 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
32311 (AARCH64_FL_PREDRES): New.
32312 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
32313 AARCH64_FL_PREDRES by default.
32314 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
32316 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32318 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
32320 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
32321 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
32322 * doc/invoke.texi: Document ARMv8.5-A.
32324 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
32326 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
32327 (xorsign<mode>3): Likewise.
32329 2019-01-09 Jelinek <jakub@redhat.com>
32331 PR middle-end/88758
32332 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
32333 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
32335 PR rtl-optimization/88331
32336 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
32337 not currently_expanding_to_rtl.
32339 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32341 * doc/invoke.texi (-Os): Remove trailing spaces.
32342 (-finline-functions): Remove reference to -O2.
32344 2019-01-08 Jakub Jelinek <jakub@redhat.com>
32346 PR rtl-optimization/79593
32347 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
32349 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
32350 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
32352 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
32355 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
32359 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
32360 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
32362 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
32365 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
32366 ix86_avx_u128_mode_entry.
32368 2019-01-08 Martin Liska <mliska@suse.cz>
32370 PR tree-optimization/88753
32371 * tree-switch-conversion.c (switch_conversion::build_one_array):
32372 Come up with local variable constructor. Convert first to
32373 type of constructor values.
32375 2019-01-08 Richard Biener <rguenther@suse.de>
32377 PR tree-optimization/86554
32378 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
32379 rpo_avail): Move earlier.
32380 (visit_nary_op): When value-numbering to expressions
32381 with different overflow behavior make sure there's an
32382 available expression on the path.
32384 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
32386 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
32387 aarch64_parse_branch_protection,
32388 struct aarch64_branch_protect_type,
32389 aarch64_handle_no_branch_protection,
32390 aarch64_handle_standard_branch_protection,
32391 aarch64_validate_mbranch_protection,
32392 aarch64_handle_pac_ret_protection,
32393 aarch64_handle_attr_branch_protection,
32394 accepted_branch_protection_string,
32395 aarch64_pac_ret_subtypes,
32396 aarch64_branch_protect_types,
32397 aarch64_handle_pac_ret_leaf): Define.
32398 (aarch64_override_options_after_change_1, aarch64_override_options):
32399 Add check for accepted_branch_protection_string.
32400 (aarch64_option_save): Save accepted_branch_protection_string.
32401 (aarch64_option_restore): Save accepted_branch_protection_string.
32402 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
32403 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
32404 msign-return-address.
32405 * doc/invoke.texi: Add mbranch-protection.
32407 2019-01-08 Alan Modra <amodra@gmail.com>
32410 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
32411 Delete "unknownp" parameter. Adjust callers. Handle
32412 CONST_INT, PLUS, MINUS, and MULT.
32413 (attr_value_aligned): Renamed from or_attr_value.
32414 (min_attr_value): Return INT_MIN for unhandled rtl case..
32415 (min_fn): ..and translate to INT_MAX here.
32416 (write_length_unit_log): Modify to cope without "unknown".
32417 (write_attr_value): Handle IF_THEN_ELSE.
32419 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32421 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
32422 optimization for masked stores.
32424 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32426 PR middle-end/88567
32427 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32428 output vector directly to duplicate_and_interleave instead of
32429 going through a temporary. Postpone insertion of ctor_seq to
32430 the end of the loop.
32432 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32435 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32436 unsigned_p. Handle signed and unsigned overflow correction as
32438 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32440 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32442 (add<mode>3_compareV_imm): Make this callable for expanding.
32443 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32444 aarch64_plus_operand for operand 2.
32445 (subv<GPI:mode>_insn): New insn pattern.
32446 (subv<GPI:mode>_imm): Likewise.
32447 (negv<GPI:mode>3): New expand pattern.
32448 (negv<GPI:mode>_insn): New insn pattern.
32449 (negv<GPI:mode>_cmp_only): Likewise.
32450 (cmpv<GPI:mode>_insn): Likewise.
32451 (subvti4): Use register_operand for operand 1. Update call to
32452 aarch64_expand_subvti.
32453 (usubvti4): Likewise.
32454 (negvti3): New expand pattern.
32455 (negdi_carryout): New insn pattern.
32456 (negvdi_carryinV): New insn pattern.
32457 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32458 version the named version.
32459 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32461 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32463 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32465 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32466 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32467 (sub<mode>3_carryinCV): Delete.
32468 (sub<GPI:mode>3_carryinV): New expand pattern.
32469 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32471 2019-01-07 Richard Biener <rguenther@suse.de>
32473 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
32474 of tree_operand_hash.
32476 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32478 PR tree-optimization/88598
32479 * tree.h (single_nonzero_element): Declare.
32480 * tree.c (single_nonzero_element): New function.
32481 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
32482 if I is the only nonzero element of CST.
32484 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32486 PR tree-optimization/88598
32487 * tree.h (initializer_each_zero_or_onep): Declare.
32488 * tree.c (initializer_each_zero_or_onep): New function.
32489 (signed_or_unsigned_type_for): Handle float types too.
32490 (unsigned_type_for, signed_type_for): Update comments accordingly.
32491 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
32492 x & { 0 or -1, 0 or -1, ... }.
32494 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
32496 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
32497 with x86_64-pc-linux-gnu.
32499 2019-01-07 Tom de Vries <tdevries@suse.de>
32502 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
32504 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
32507 2019-01-07 Jakub Jelinek <jakub@redhat.com>
32509 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
32510 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
32511 TARGET_AVX512F as condition.
32514 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
32515 const_not_ok_for_debug_p target hook.
32516 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
32517 on UNSPEC and subexpressions thereof if all subexpressions of the
32518 UNSPEC are CONSTANT_P.
32520 PR tree-optimization/88676
32521 * tree-ssa-phiopt.c (two_value_replacement): New function.
32522 (tree_ssa_phiopt_worker): Call it.
32525 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
32526 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
32529 * tree-vect-generic.c: Include insn-config.h and recog.h.
32530 (expand_vector_piecewise): Add defaulted ret_type argument,
32531 if non-NULL, use that in preference to type for the result type.
32532 (expand_vector_parallel): Formatting fix.
32533 (do_vec_conversion, do_vec_narrowing_conversion,
32534 expand_vector_conversion): New functions.
32535 (expand_vector_operations_1): Call expand_vector_conversion
32536 for VEC_CONVERT ifn calls.
32537 * internal-fn.def (VEC_CONVERT): New internal function.
32538 * internal-fn.c (expand_VEC_CONVERT): New function.
32539 * fold-const-call.c (fold_const_vec_convert): New function.
32540 (fold_const_call): Use it for CFN_VEC_CONVERT.
32541 * doc/extend.texi (__builtin_convertvector): Document.
32543 2019-01-07 Tom de Vries <tdevries@suse.de>
32545 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
32546 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
32547 vector_red_partition, vector_red_sym): New global variables.
32548 (nvptx_option_override): Initialize vector_red_sym.
32549 (nvptx_declare_function_name): Restore red_partition register.
32550 (nvptx_file_end): Emit code to declare the vector reduction variables.
32551 (nvptx_output_red_partition): New function.
32552 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
32553 large vector reductions.
32554 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
32555 (nvptx_init_builtins): Add VECTOR_ADDR.
32556 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
32557 Handle nvptx_expand_shared_addr.
32558 (nvptx_get_shared_red_addr): Add vector argument and handle large
32560 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
32562 (nvptx_goacc_reduction_init): Likewise.
32563 (nvptx_goacc_reduction_fini): Likewise.
32564 (nvptx_goacc_reduction_teardown): Likewise.
32565 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
32566 init,fini,teardown}.
32567 (nvptx_init_axis_predicate): Initialize vector_red_partition.
32568 (nvptx_set_current_function): Init vector_red_partition.
32569 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
32570 (nvptx_red_partition): New insn.
32571 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
32573 2019-01-07 Tom de Vries <tdevries@suse.de>
32576 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
32579 2019-01-07 Tom de Vries <tdevries@suse.de>
32581 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
32582 (nvptx_option_override): Init oacc_bcast_partition.
32583 (nvptx_init_oacc_workers): New function.
32584 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
32585 (nvptx_needs_shared_bcast): New function.
32586 (nvptx_find_par): Generalize to enable vectors to use shared-memory
32587 to propagate state.
32588 (nvptx_shared_propagate): Initialize vector bcast partition and
32589 synchronization state.
32590 (nvptx_single): Generalize to enable vectors to use shared-memory
32591 to propagate state.
32592 (nvptx_process_pars): Likewise.
32593 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
32594 * config/nvptx/nvptx.h (struct machine_function): Add
32595 bcast_partition and sync_bar members.
32597 2019-01-07 Tom de Vries <tdevries@suse.de>
32599 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
32600 (nvptx_apply_dim_limits): New function.
32601 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
32604 2019-01-07 Tom de Vries <tdevries@suse.de>
32606 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
32607 as late as possible.
32609 2019-01-07 Tom de Vries <tdevries@suse.de>
32611 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32612 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32613 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32614 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32615 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32617 2019-01-07 Tom de Vries <tdevries@suse.de>
32619 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32621 2019-01-07 Tom de Vries <tdevries@suse.de>
32623 * omp-offload.c (oacc_get_min_dim): New function.
32624 * omp-offload.h (oacc_get_min_dim): Declare.
32626 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32629 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32630 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32632 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32636 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32638 * ipa-inline.c (edge_badness): Use inlined_time instead of
32639 inline_summaries->get.
32641 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32643 * opts.c (enable_fdo_optimizations): Enable
32644 version-loops-for-strides, loop-interchange, unrol-and-jam
32645 and tree-loop-distribution.
32646 * invoke.texi: Document newly enabled options.
32648 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32650 * doc/invoke.texi (max-inline-insns-small): New parameters.
32651 * ipa-inline.c (want_early_inline_function_p): simplify.
32652 (want_inline_small_function_p): Fix pasto from previous patch;
32653 use max-inline-insns-small bound.
32654 * params.def (max-inline-insns-small): New param.
32655 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32656 variables correctly.
32658 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32660 * doc/invoke.texi: Document max-inline-insns-size,
32661 uninlined-function-insns, uninlined-function-time,
32662 uninlined-thunk-insns and uninlined-thunk-time.
32663 * params.def: Add max-inline-insns-size,
32664 uninlined-function-insns, uninlined-function-time,
32665 uninlined-thunk-insns and uninlined-thunk-time.
32666 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32668 * ipa-inline.c (can_inline_edge_by_limits_p,
32669 want_inline_small_function_p): Use new parameters.
32671 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32673 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32675 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32677 PR middle-end/82564
32679 * expr.c (expand_assignment): For calls returning VLA structures
32680 if to_rtx is not a MEM, force it into a stack temporary.
32683 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32684 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32685 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32686 subexpressions of both operands.
32687 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32688 subrtxes are CONSTANT_P.
32689 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32690 2018-11-09 changes.
32692 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32694 * params.def (hot-bb-count-ws-permille): Set to 990.
32696 2019-01-04 Martin Sebor <msebor@redhat.com>
32699 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32702 2019-01-04 Martin Sebor <msebor@redhat.com>
32705 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32707 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32709 * gdbinit.in: Turn off pagination for the skip commands, restore
32710 it to previous state afterwards.
32712 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32715 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32716 of GET_MODE (opN) as modes of the libcall arguments.
32718 2019-01-04 Jan Beulich <jbeulich@suse.com>
32720 * config/i386/sse.md
32721 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32722 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32723 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32724 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32725 avx512f_vmcmp<mode>3<round_saeonly_name>,
32726 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32727 avx512f_maskcmp<mode>3,
32728 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32729 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32730 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32731 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32732 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32733 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32734 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32735 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32736 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32737 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32738 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32739 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32740 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32741 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32742 avx512cd_maskb_vec_dup<mode>,
32743 avx512cd_maskw_vec_dup<mode>,
32744 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32745 avx512dq_vmfpclass<mode>,
32746 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32749 2019-01-03 Martin Sebor <msebor@redhat.com>
32751 PR tree-optimization/88659
32752 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32754 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32756 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32757 unaligned vsx and avoid lxvd2x/stxvd2x.
32758 (gen_lvx_v4si_move): New function.
32760 2019-01-03 Tom de Vries <tdevries@suse.de>
32762 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32763 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32765 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32767 2019-01-03 Tom de Vries <tdevries@suse.de>
32769 * config/nvptx/nvptx.c (struct offload_attrs): New.
32770 (populate_offload_attrs): New function. Factor mask extraction out of
32771 nvptx_reorg. Add extraction of dimensions.
32772 (nvptx_reorg): Use populate_offload_attrs.
32774 2019-01-03 Tom de Vries <tdevries@suse.de>
32776 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32777 cases for oacc_min_dims_p and routine_p. Add asserts for
32778 oacc_default_dims_p and offload_region_p.
32780 2019-01-03 Tom de Vries <tdevries@suse.de>
32782 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32783 factored out of ...
32784 (nvptx_goacc_validate_dims): ... here.
32786 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32788 PR tree-optimization/85574
32789 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32791 (struct ssa_equip_hash_traits): Declare.
32792 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32794 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32797 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32798 change it to qualified_type.
32800 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32802 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32803 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32805 2019-01-02 Martin Sebor <msebor@redhat.com>
32806 Jeff Law <law@redhat.com>
32808 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32809 (get_range_strlen_tree): Update appropriately.
32811 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32813 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32814 rather than set_range_info.
32815 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32816 maybe_set_strlen_range. Handle potentially boundary crossing
32817 cases more conservatively.
32818 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32819 Call set_strlen_range.
32820 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32822 PR middle-end/88663
32823 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32824 need the flexp argument.
32825 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32826 from calls to get_range_strlen. Update comments. Just update
32827 VAL for an unterminated const char array and let the reset of the
32828 code handle it normally. No longer try to set *flexp. Adjust
32830 (get_range_strlen): Update for the new get_range_strlen API.
32831 (get_maxval_strlen): Similarly.
32832 (gimple_fold_builtin_strlen): Handle update meaning of return value
32833 from get_range_strlen.
32834 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32835 get_range_strlen API.
32837 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32840 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32841 false at WPA time when body was removed.
32843 2019-01-02 Martin Liska <mliska@suse.cz>
32845 PR tree-optimization/88650
32846 * predict.c (set_even_probabilities): Calculate probability
32847 remainer only when really used.
32849 2019-01-02 Richard Biener <rguenther@suse.de>
32851 PR middle-end/88651
32852 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32853 widest_ints when mangling max_stmt_execution results.
32855 2019-01-02 Richard Biener <rguenther@suse.de>
32857 PR tree-optimization/88621
32858 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32859 bitfields when canoncalizing.
32861 2019-01-02 Richard Biener <rguenther@suse.de>
32864 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32865 cost of cheap SSE instruction.
32867 2019-01-02 Richard Biener <rguenther@suse.de>
32870 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32871 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32873 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32874 set after UIDs before splitting them.
32876 2019-01-01 Martin Sebor <msebor@redhat.com>
32877 Jeff Law <law@redhat.com>
32879 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32880 length is optimistic. If it is, then arrange to compute the
32881 conservative length as well.
32883 * gimple-fold.h (get_range_strlen): Update prototype.
32884 * builtins.c (check_access): Update call to get_range_strlen to use
32885 c_strlen_data pointer. Change various variable accesses to instead
32886 pull data from the c_strlen_data structure.
32887 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32888 * calls.c (maybe_warn_nonstring_arg): Likewise.
32889 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32890 minimum length if maximum lengh is unknown.
32891 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32892 that used c_strlen, it's no longer needed. Restructure slightly.
32893 (format_string): Set unlikely range appropriately.
32894 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32896 (get_range_strlen): Accept c_strlen_data pointer for external
32897 call sites as well. Pass through to call to internal get_range_strlen.
32898 Adjust minlen, maxlen and maxbound as needed.
32899 (get_maxval_strlen): Update comments.
32900 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32901 to use c_strlen_data pointer. Change variable accesses to instead
32902 use c_strlen_data data members.
32904 * gimple-fold.c (get_range_strlen): Update prototype.
32905 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32906 local variables. Use pdata to return information to caller.
32907 Update calls to get_range_strlen. Update pdata->maxbound.
32908 (get_range_strlen -- static version): Similarly.
32909 (get_range_strlen -- extern version): Update for internal
32910 get_range_strlen API change. Convert to external data format.
32911 (get_maxval_strlen): Similarly.
32913 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32915 * coverage.c (get_coverage_counts): Use current_function_decl.
32916 * profile.c (read_thunk_profile): New function.
32917 (branch_prob): Add THUNK parameter.
32918 * tree-profile.c (tree_profiling): Handle thunks.
32919 * value-prof.c (init_node_map): Handle thunks.
32920 * value-prof.h (branch_prob): Upate prototype.
32921 (read_thunk_profile): Declare.
32923 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32925 Update copyright years.
32927 * gcc.c (process_command): Update copyright notice dates.
32928 * gcov-dump.c (print_version): Ditto.
32929 * gcov.c (print_version): Ditto.
32930 * gcov-tool.c (print_version): Ditto.
32931 * gengtype.c (create_file): Ditto.
32932 * doc/cpp.texi: Bump @copying's copyright year.
32933 * doc/cppinternals.texi: Ditto.
32934 * doc/gcc.texi: Ditto.
32935 * doc/gccint.texi: Ditto.
32936 * doc/gcov.texi: Ditto.
32937 * doc/install.texi: Ditto.
32938 * doc/invoke.texi: Ditto.
32940 Copyright (C) 2019 Free Software Foundation, Inc.
32942 Copying and distribution of this file, with or without modification,
32943 are permitted in any medium without royalty provided the copyright
32944 notice and this notice are preserved.