1 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
4 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
7 (pass_expand::execute): Call discover_nonconstant_array_refs before
8 setting currently_expanding_to_rtl.
10 2019-09-04 Caroline Tice <cmtice@google.com>
12 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
15 2019-09-04 Marek Polacek <polacek@redhat.com>
17 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
19 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
22 * config/i386/i386.c (inline_secondary_memory_needed): Return true
23 for QI and HImode moves between SSE and general registers.
25 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28 * doc/invoke.texi: Document -Wenum-conversion.
30 2019-09-04 Richard Biener <rguenther@suse.de>
32 PR rtl-optimization/36262
33 * postreload-gcse.c: Include intl.h and gcse.h.
34 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
35 to avoid linear list walk.
36 (record_last_mem_set_info): Gate off if not computing transparentness.
37 (get_bb_avail_insn): If transparentness isn't computed give up
39 (gcse_after_reload_main): Skip compute_transp and extended PRE
40 if gcse_or_cprop_is_too_expensive says so.
42 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
44 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
46 (msp430_select_section): Handle decls with the "noinit" attribute with
47 default_elf_select_section.
48 Handle SECCAT_RODATA_MERGE_* section types with
49 default_elf_select_section.
50 Add comments about handling of unsupported section types.
51 (msp430_section_type_flags): Remove handling of the noinit section.
53 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
55 * config/msp430/msp430.c (msp430_attr): Remove warnings about
56 conflicting msp430-specific attributes.
57 (msp430_section_attr): Likewise.
58 Add warnings about conflicts with generic "noinit" and "section"
60 Fix grammar in -mlarge error message.
61 (msp430_data_attr): Rename to msp430_persist_attr.
62 Add warnings about conflicts with generic "noinit" and "section"
64 Add warning for when variable is not initialized.
65 Chain conditionals which prevent the attribute being added.
66 (ATTR_EXCL): New helper.
67 (attr_reent_exclusions): New exclusion table.
68 (attr_naked_exclusions): Likewise.
69 (attr_crit_exclusions): Likewise.
70 (attr_lower_exclusions): Likewise.
71 (attr_upper_exclusions): Likewise.
72 (attr_either_exclusions): Likewise.
73 (attr_persist_exclusions): Likewise.
74 (msp430_attribute_table): Update with exclusion rules.
75 (msp430_output_aligned_decl_common): Don't output common symbol if decl
78 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
80 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
81 (msp430_handle_generic_attribute): New function.
82 * doc/tm.texi: Regenerate.
83 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
84 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
85 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
86 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
88 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
90 PR tree-optimization/91504
91 * match.pd: Add ((~a & b) ^a) --> (a | b).
93 2019-09-03 Jakub Jelinek <jakub@redhat.com>
96 * config/i386/i386-expand.c (split_double_mode): If there is more than
97 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
98 already split matching MEM operand instead of calling adjust_address
101 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
103 * config.gcc: Obsolete spu target. Remove references to spu.
104 * configure.ac: Remove references to spu.
105 * configure: Regenerate.
106 * config/spu/: Remove directory.
107 * common/config/spu/: Remove directory.
109 * doc/extend.texi: Remove references to spu.
110 * doc/invoke.texi: Likewise.
111 * doc/md.texi: Likewise.
112 * doc/sourcebuild.texi: Likewise.
114 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
119 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
120 and SSA_NAME referring to CONSTANT_P correctly.
122 2019-09-03 Richard Biener <rguenther@suse.de>
124 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
125 (vn_nary_op_insert): Likewise.
126 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
127 (vn_nary_op_lookup): Likewise.
128 (vn_nary_op_insert): Likewise.
130 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
132 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
133 (*op0, 1) instead of XEXP (*op1, 0).
135 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
137 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
138 (aarch64_fjcvtzs): New define_insn.
139 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
140 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
142 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
143 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
144 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
145 __ARM_FEATURE_JCVT where appropriate.
146 * config/aarch64/arm_acle.h (__jcvt): Define.
148 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
150 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
151 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
152 (aarch64_<frintnzs_op><mode>): New define_insn.
153 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
154 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
155 __ARM_FEATURE_FRINT when appropriate.
156 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
157 frint32x, frint64z, frint64x.
158 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
159 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
160 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
161 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
162 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
163 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
164 * config/aarch64/iterators.md (VSFDF): Define.
165 (FRINTNZX): Likewise.
166 (frintnzs_op): Likewise.
168 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
170 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
171 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
173 * config/aarch64/aarch64-tune.md: Regenerated.
174 * doc/invoke.texi: Document the new processors.
176 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
178 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
182 (sve2-sm4): Likewise.
185 (svebitperm): Likewise.
187 2019-09-03 Jakub Jelinek <jakub@redhat.com>
188 Richard Biener <rguenther@suse.de>
190 PR tree-optimization/91597
191 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
192 BIT_AND_EXPR optimization for pointers, even if both operand
193 ranges don't include NULL, the result can be NULL.
195 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
198 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
199 (non_mem_decl_p): ...this.
200 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
201 (expand_assignment): Call mem_ref_referes_to_non_mem_p
202 unconditionally as before.
204 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
207 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
208 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
209 * tree.def (LTGT_EXPR): Likewise.
210 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
212 2019-09-02 Jakub Jelinek <jakub@redhat.com>
215 * fold-const.c (range_check_type): For enumeral and boolean
216 type, pass 1 to type_for_size langhook instead of
217 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
218 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
219 (build_range_check): Don't call unsigned_type_for for pointer types.
220 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
221 range_check_type result.
223 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
225 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
226 (replace_ref): Do not replace a chain of only two candidates which are
227 valid memory references.
229 2019-09-02 Martin Liska <mliska@suse.cz>
231 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
232 Bail out when we'll end up with the same number of clusters as
234 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
235 (jump_table_cluster::can_be_handled): Remove the guard
236 as it's already handled in ::is_enabled. Allocate output
237 after early bail out.
239 2019-09-02 Martin Liska <mliska@suse.cz>
241 PR gcov-profile/91601
242 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
243 (path_contains_zero_or_negative_cycle_arc): ... this and handle
245 (circuit): Handle also negative edges as they can happen
248 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
251 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
252 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
253 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
255 2019-09-01 Jakub Jelinek <jakub@redhat.com>
258 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
259 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
260 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
264 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
265 GIMPLE_ASM TREE_LIST operands.
267 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
269 * doc/generic.texi (Unary and Binary Expressions): Mark up
270 an instance of TYPE_MIN.
272 2019-08-31 Stafford Horne <shorne@gmail.com>
274 * config/or1k/constraints.md (t): New constraint.
275 * config/or1k/or1k.h (GOT_REGS): New register class.
276 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
278 2019-08-30 Jim Wilson <jimw@sifive.com>
280 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
281 and -fpic and -mplt then disable -msave-restore and warn.
283 2019-08-30 Martin Sebor <msebor@redhat.com>
286 * tree-ssa-strlen.c (handle_store): Use a fallback location if
287 the statement doesn't have one.
288 * gimple-pretty-print.c (percent_G_format): Same.
291 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
292 before using them to validate MEM_REF offset.
294 2019-08-30 Marek Polacek <polacek@redhat.com>
296 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
298 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
300 * config/arm/arm.md (unaligned_loaddi,
301 unaligned_storedi): New unspec insn patterns.
302 * config/arm/neon.md (unaligned_storev8qi): Likewise.
303 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
304 and unaligned_storedi for 4-byte aligned memory.
305 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
306 4-byte aligned memory.
308 2019-08-30 Martin Jambor <mjambor@suse.cz>
310 tree-optimization/91579
311 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
312 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
314 (arg_needs_copy_p): Removed.
315 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
317 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
319 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
321 * config/i386/i386-features.c
322 (general_scalar_chain::compute_convert_gain):
323 Correct cost for double-word shifts.
324 (general_scalar_to_vector_candidate_p): Reject count operands
325 greater or equal to mode bitsize.
327 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
329 * config/i386/i386.c (inline_secondary_memory_needed): Return true
330 for moves between SSE and non-general registers and between
331 mask and non-general registers.
332 (ix86_register_move_cost): Remove stalled comment.
334 2019-08-29 Richard Biener <rguenther@suse.de>
336 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
337 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
339 2019-08-29 Richard Biener <rguenther@suse.de>
342 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
343 Do not emit scalar copies for debug-insns, instead replace
344 their uses with the reg copy used in the chain or reset them
345 if there is a reaching definition outside of the chain as well.
347 2019-08-29 Jakub Jelinek <jakub@redhat.com>
350 * config/i386/i386-expand.c (expand_vec_perm_movs,
351 expand_vec_perm_blend, expand_vec_perm_vpermil,
352 expand_vec_perm_pshufb, expand_vec_perm_1,
353 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
354 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
355 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
356 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
357 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
358 comments - replace ix86_expand_vec_perm_builtin_1 with
359 ix86_expand_vec_perm_const_1.
360 (expand_vec_perm2_vperm2f128_vblend): New function.
361 (ix86_expand_vec_perm_const_1): New forward declaration. Call
362 expand_vec_perm2_vperm2f128_vblend as last resort.
363 (canonicalize_perm): Formatting fix.
365 PR tree-optimization/91351
366 * tree-cfg.c (generate_range_test): Use range_check_type instead of
368 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
369 range_check_type returns NULL.
370 * tree-switch-conversion.c (switch_conversion::build_one_array):
371 Use range_check_type instead of unsigned_type_for, don't perform
372 linear opt if it returns NULL.
373 (bit_test_cluster::find_bit_tests): Formatting fix.
374 (bit_test_cluster::emit): Use range_check_type instead of
376 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
379 2019-08-29 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/91568
382 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
383 (vect_update_max_nunits): Add overload for poly_uint64.
384 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
385 (vect_build_slp_tree): Record max_nunits into the subtree
386 and merge it upwards.
387 (vect_print_slp_tree): Print max_nunits.
389 2019-08-28 Marek Polacek <polacek@redhat.com>
391 Implement P1152R4: Deprecating some uses of volatile.
393 * doc/invoke.texi: Document -Wvolatile.
395 2019-08-28 Marek Polacek <polacek@redhat.com>
397 PR c++/91360 - Implement C++20 P1143R2: constinit.
398 * doc/invoke.texi: Document -Wc++20-compat.
400 2019-08-28 Martin Sebor <msebor@redhat.com>
402 PR tree-optimization/91457
403 * builtins.c (component_size): New function.
404 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
405 * builtins.h (compute_objsize): Add argument.
406 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
407 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
408 (vrp_prop::check_mem_ref): Same.
409 (vrp_prop::search_for_addr_array): Set no-warning bit.
410 (check_array_bounds): Same.
412 2019-08-28 Martin Sebor <msebor@redhat.com>
415 * opts-common.c (option_enabled): Correct checking for language
418 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
420 * config/i386/i386.c (ix86_register_move_cost): Do not
421 limit the cost of moves to/from XMM register to minimum 8.
423 2019-08-28 Martin Jambor <mjambor@suse.cz>
426 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
427 checking assert a normal assert to test it really is redundant.
428 * ipa-prop.c (compute_complex_assign_jump_func): Removed
430 (update_jump_functions_after_inlining): Removed combining unary
431 arithmetic operations with an ancestor jump function.
432 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
435 2019-08-28 Richard Biener <rguenther@suse.de>
437 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
440 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
441 Richard Biener <rguenther@suse.de>
443 * expr.c (expand_assignment): Handle misaligned DECLs.
444 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
445 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
447 (assign_parm_setup_stack): Allocate properly aligned stack slots.
448 * varasm.c (build_constant_desc): Align constants of misaligned types.
449 * config/arm/predicates.md (aligned_operand): New predicate.
450 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
451 aligned_operand to check restrictions on memory addresses.
452 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
453 * config/arm/vec-common.md (mov<VALL>): Likewise.
455 2019-08-28 Jakub Jelinek <jakub@redhat.com>
458 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
459 V_128 iterator instead of VI_128.
461 2019-08-28 Martin Liska <mliska@suse.cz>
463 PR tree-optimization/90970
464 * builtins.c (check_access): Remove assignment to maxread
465 as it hasn't been used since when it was introduced in r255755.
467 2019-08-27 Martin Sebor <msebor@redhat.com>
469 PR tree-optimization/91567
470 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
472 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
475 2019-08-27 Jeff Law <law@redhat.com>
477 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
478 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
480 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
483 * config/i386/i386-features.c (convert_scalars_to_vector):
484 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
485 crtl->stack_realign_processed. Update crtl->drap_reg by calling
486 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
487 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
489 2019-08-27 Richard Biener <rguenther@suse.de>
491 * config/i386/i386-features.h
492 (general_scalar_chain::~general_scalar_chain): Add.
493 (general_scalar_chain::insns_conv): New bitmap.
494 (general_scalar_chain::n_sse_to_integer): New.
495 (general_scalar_chain::n_integer_to_sse): Likewise.
496 (general_scalar_chain::make_vector_copies): Adjust signature.
497 * config/i386/i386-features.c
498 (general_scalar_chain::general_scalar_chain): Outline,
499 initialize new members.
500 (general_scalar_chain::~general_scalar_chain): New.
501 (general_scalar_chain::mark_dual_mode_def): Record insns
502 we need to insert conversions at and count them.
503 (general_scalar_chain::compute_convert_gain): Account
504 for conversion instructions at chain boundary.
505 (general_scalar_chain::make_vector_copies): Generate a single
506 copy for a def by a specific insn.
507 (general_scalar_chain::convert_registers): First populate
508 defs_map, then make copies at out-of chain insns.
510 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
512 * config/arm/arm.md (stack_protect_set_insn): Add security-related
514 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
516 2019-08-27 Martin Liska <mliska@suse.cz>
518 * cgraph.c (cgraph_node::remove): Remove dead assignment before
520 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
521 Enclose in anonymous namespace.
522 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
523 hard_register initialization in braces.
524 * tree-vrp.h (value_range_base::supports_type_p): Return false
525 for function with boolean return type.
527 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
529 * config/i386/i386.c (emit_i387_cw_initialization)
530 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
532 2019-08-26 Martin Sebor <msebor@redhat.com>
535 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
536 (sprintf_dom_walker): Remove class.
537 (get_int_range): Make argument const.
538 (directive::fmtfunc, directive::set_precision): Same.
540 (build_intmax_type_nodes): Same.
541 (adjust_range_for_overflow): Same.
542 (format_floating): Same.
543 (format_character): Same.
544 (format_string): Same.
545 (format_plain): Same.
546 (get_int_range): Cast away constness.
547 (format_integer): Same.
548 (get_string_length): Call get_range_strlen_dynamic. Handle
549 null lendata.maxbound.
550 (should_warn_p): Adjust argument scope qualifier.
552 (format_directive): Same.
553 (parse_directive): Same.
554 (is_call_safe): Same.
555 (try_substitute_return_value): Same.
556 (sprintf_dom_walker::handle_printf_call): Rename...
557 (handle_printf_call): ...to this. Initialize target to host charmap
558 here instead of in pass_sprintf_length::execute.
559 (struct call_info): Make global.
560 (sprintf_dom_walker::compute_format_length): Make global.
561 (sprintf_dom_walker::handle_gimple_call): Same.
562 * passes.def (pass_sprintf_length): Replace with pass_strlen.
563 * print-rtl.c (print_pattern): Reduce the number of spaces to
564 avoid -Wformat-truncation.
565 * tree-pass.h (make_pass_warn_printf): New function.
566 * tree-ssa-strlen.c (strlen_optimize): New variable.
567 (get_string_length): Add comments.
568 (get_range_strlen_dynamic): New function.
569 (check_and_optimize_call): New function.
570 (handle_integral_assign): New function.
571 (strlen_check_and_optimize_stmt): Factor code out into
572 strlen_check_and_optimize_call and handle_integral_assign.
573 (strlen_dom_walker::evrp): New member.
574 (strlen_dom_walker::before_dom_children): Use evrp member.
575 (strlen_dom_walker::after_dom_children): Use evrp member.
576 (printf_strlen_execute): New function.
577 (pass_strlen::gate): Update to handle printf calls.
578 (dump_strlen_info): New function.
579 (pass_data_warn_printf): New variable.
580 (pass_warn_printf): New class.
581 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
582 (handle_printf_call): Same.
583 * tree-vrp.c (value_range_base::type): Adjust assertion.
584 * vr-values.c (vr_values::update_value_range): Use type of the first
585 argument rather than the second.
587 2019-08-26 Richard Biener <rguenther@suse.de>
589 * config/i386/i386-features.c (general_remove_non_convertible_regs):
591 (convert_scalars_to_vector): Do not call it.
593 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
594 Uros Bizjak <ubizjak@gmail.com>
596 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
597 CASE_MATHFN_FLOATN for roundeven.
598 * config/i386/i386.c (ix86_i387_mode_needed): Add case
600 (ix86_mode_needed): Likewise.
601 (ix86_mode_after): Likewise.
602 (ix86_mode_entry): Likewise.
603 (ix86_mode_exit): Likewise.
604 (ix86_emit_mode_set): Likewise.
605 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
606 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
607 (ix86_entity): Add I387_ROUNDEVEN.
608 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
609 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
610 (define_int_iterator): Likewise.
611 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
612 (define_constant): Define ROUND_ROUNDEVEN mode.
613 (define_attr): Add roundeven mode for i387_cw.
614 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
615 * internal-fn.def (ROUNDEVEN): New builtin function.
616 * optabs.def (roundeven_optab): New optab.
618 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
620 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
622 * builtins.def: Added function definitions for roundeven function
624 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
625 function call. Adjust condition for floor, ceil, trunc and round.
626 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
627 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
628 (integer_valued_real_call_p): Added case for roundeven function.
629 * real.c (is_even): New function. Returns true if real number is even,
630 otherwise returns false.
631 (is_halfway_below): New function. Returns true if real number is
632 halfway between two integers, else return false.
633 (real_roundeven): New function. Round real number to nearest integer,
634 rounding halfway cases towards even.
635 * real.h (real_value): Added descriptive comments. Added function
636 declaration for roundeven function.
637 * doc/extend.texi (Other Builtins): List roundeven variants among
638 functions which can be handled as builtins.
640 2019-08-26 Richard Biener <rguenther@suse.de>
644 * config/i386/i386-features.h (general_scalar_chain::defs_map):
646 (general_scalar_chain::replace_with_subreg): Remove.
647 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
648 (general_scalar_chain::convert_reg): Adjust signature.
649 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
650 iterate over all defs of a reg.
651 (general_scalar_chain::replace_with_subreg): Remove.
652 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
653 (general_scalar_chain::make_vector_copies): Populate defs_map,
654 place copy only after defs that are used as vectors in the chain.
655 (general_scalar_chain::convert_reg): Emit a copy for a specific
656 def in a specific instruction.
657 (general_scalar_chain::convert_op): All reg uses are converted here.
658 (general_scalar_chain::convert_insn): Emit copies for scalar
659 uses of defs here. Replace uses with the copies we created.
660 Replace and convert the def. Adjust REG_DEAD notes, remove
661 REG_EQUIV/EQUAL notes.
662 (general_scalar_chain::convert_registers): Only handle copies
665 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
667 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
669 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
671 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
672 Add nop_convert case.
673 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
674 Fold all statements if requested.
675 * tree-ssa-propagate.h (class substitute_and_fold_engine):
676 Allow to fold all statements.
677 * tree-vrp.c (class vrp_folder):
678 Let substitute_and_fold_engine fold all statements.
680 2019-08-26 Richard Biener <rguenther@suse.de>
682 PR tree-optimization/91526
683 * passes.def: Note that after late FRE we do TODO_update_address_taken.
684 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
685 TODO_update_address_taken.
687 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
689 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
692 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
694 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
695 machine mode for unspec_volatile operand.
697 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
699 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
700 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
701 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
702 (prefer_neon_for_64bits): Remove.
703 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
704 (tune_params): Remove PREF_NEON_64_FALSE uses.
705 (arm_option_override): Remove prefer_neon selection code.
706 (arm_print_tune_info): Remove prefer_neon_for_64bits.
707 * gcc/config/arm/arm-protos.h (tune_params): Remove
708 prefer_neon_for_64bits.
709 (prefer_neon_for_64bits): Remove.
711 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
714 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
715 and issue any diagnostics needed before collecting the pre-PCH
718 2019-08-23 Jakub Jelinek <jakub@redhat.com>
721 * common.opt (fexcess-precision=): Add Optimization flag. Use
722 flag_excess_precision variable instead of
723 flag_excess_precision_cmdline.
724 * flags.h (class target_flag_state): Remove x_flag_excess_precision
726 (flag_excess_precision): Don't define.
727 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
728 flag_excess_precision_cmdline. Remove comment.
729 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
730 and x_flag_excess_precision instead of
731 frontend_set_flag_excess_precision_cmdline and
732 x_flag_excess_precision_cmdline.
733 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
734 x_flag_excess_precision_cmdline.
735 * toplev.c (init_excess_precision): Remove.
736 (lang_dependent_init_target): Don't call it.
738 2019-08-23 Martin Liska <mliska@suse.cz>
740 * lto-wrapper.c (run_gcc): When setting jobserver
741 set also parallel to 1. This was done so before r273908.
743 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
745 * config/arm/arm-cpus.in (cortex-m35p): New entry.
746 (cortex-a76ae): Likewise.
747 (cortex-a77): Likewise
748 * config/arm/arm-tables.opt: Regenerate.
749 * config/arm/arm-tune.md: Likewise.
750 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
751 cortex-a77 CPU options.
753 2019-08-23 Martin Liska <mliska@suse.cz>
755 * profile.c (instrument_values): Do not set
757 * tree-profile.c (gimple_gen_interval_profiler): Remove
759 (gimple_gen_pow2_profiler): Likewise.
760 (gimple_gen_topn_values_profiler): Likewise.
761 (gimple_gen_ic_profiler): Likewise.
762 (gimple_gen_time_profiler): Likewise.
763 (gimple_gen_average_profiler): Likewise.
764 (gimple_gen_ior_profiler): Likewise.
765 * value-prof.c (dump_histogram_value): Use default
766 in switch statement instead of HIST_TYPE_MAX.
767 (stream_in_histogram_value): Likewise.
768 (gimple_duplicate_stmt_histograms): Do not
769 use NULL for implicitly set arguments.
770 (gimple_divmod_values_to_profile): Do not use
772 (gimple_indirect_call_to_profile): Likewise.
773 (gimple_find_values_to_profile): Use implicit
774 function call arguments.
775 * value-prof.h (gimple_alloc_histogram_value):
777 (gimple_gen_interval_profiler): Remove last argument.
778 (gimple_gen_pow2_profiler): Likewise.
779 (gimple_gen_topn_values_profiler): Likewise.
780 (gimple_gen_ic_profiler): Likewise.
781 (gimple_gen_time_profiler): Likewise.
782 (gimple_gen_average_profiler): Likewise.
783 (gimple_gen_ior_profiler): Likewise.
785 2019-08-22 Martin Sebor <msebor@redhat.com>
788 * builtins.c (c_strlen): Rename argument and introduce new local.
789 Set no-warning bit on original argument.
790 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
791 Fold empty and zero constructors into empty strings.
792 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
793 for missing initializers.
794 * tree.c (build_string_literal): Handle optional argument.
795 * tree.h (build_string_literal): Add defaulted argument.
796 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
797 no-warning bit on original expression.
799 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
802 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
804 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
806 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
807 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
808 (darn): Use an unspec_volatile, and UNSPECV_DARN.
810 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
812 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
813 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
814 * config/rs6000/rs6000.md (unspec): ... here.
815 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
816 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
817 cmpeqb, *cmpeqb_internal): Delete, move to...
818 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
819 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
820 cmpeqb, *cmpeqb_internal): ... here.
822 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
824 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
825 intrinsics if __ARM_FP.
826 Use __ARM_FEATURE_CRC32 ifdef guard.
828 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
830 * config/arm/arm.md (neon_for_64bits): Remove.
831 (avoid_neon_for_64bits): Remove.
832 (arm_adddi3): Always split early.
833 (arm_subdi3): Always split early.
834 (negdi2): Remove Neon expansion.
835 (split zero_extend): Split before reload.
836 (split sign_extend): Split before reload.
838 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
840 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
841 (qhs_extenddi_cstr): Likewise.
842 * config/arm/arm.md (ashldi3): Always expand early.
845 (zero_extend<mode>di2): Remove Neon variants.
846 (extend<mode>di2): Likewise.
847 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
848 (signed_shift_di3_neon): Likewise.
849 (unsigned_shift_di3_neon): Likewise.
850 (ashrdi3_neon_imm_noclobber): Likewise.
851 (lshrdi3_neon_imm_noclobber): Likewise.
852 (<shift>di3_neon): Likewise.
853 (split extend): Remove DI extend split patterns.
855 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
857 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
858 (split not): Add DImode not splitter.
859 (anddi3): Remove pattern.
860 (anddi3_insn): Likewise.
861 (anddi_zesidi_di): Likewise.
862 (anddi_sesdi_di): Likewise.
863 (anddi_notdi_di): Likewise.
864 (anddi_notzesidi_di): Likewise.
865 (anddi_notsesidi_di): Likewise.
867 (iordi3_insn): Likewise.
868 (iordi_zesidi_di): Likewise.
869 (iordi_sesidi_di): Likewise.
871 (xordi3_insn): Likewise.
872 (xordi_sesidi_di): Likewise.
873 (xordi_zesidi_di): Likewise.
874 (one_cmpldi2): Likewise.
875 (one_cmpldi2_insn): Likewise.
876 * config/arm/constraints.md: Remove De, Df, Dg constraints.
877 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
879 (iwmmxt_xordi3): Likewise.
880 (iwmmxt_anddi3): Likewise.
881 * config/arm/neon.md (orndi3_neon): Remove pattern.
882 (anddi_notdi_di): Likewise.
883 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
884 (arm_iordi_operand_neon): Likewise.
885 (arm_xordi_operand_neon): Likewise.
886 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
887 (iordi_notzesidi_di): Likewise.
888 (iordi_notdi_zesidi): Likewise.
889 (iordi_notsesidi_di): Likewise.
891 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
893 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
895 (iorsi3_compare0_scratch): Likewise.
897 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
899 * config/aarch64/aarch64-simd-builtins.def:
902 * config/aarch64/aarch64-simd.md:
903 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
904 (aarch64_st1x4<VALLDIF:mode>): Likewise.
905 (aarch64_ld1_x4_<mode>): Likewise.
906 (aarch64_st1_x4_<mode>): Likewise.
907 * config/aarch64/arm_neon.h:
908 (vld1_s8_x4): New function.
909 (vld1q_s8_x4): Likewise.
910 (vld1_s16_x4): Likewise.
911 (vld1q_s16_x4): Likewise.
912 (vld1_s32_x4): Likewise.
913 (vld1q_s32_x4): Likewise.
914 (vld1_u8_x4): Likewise.
915 (vld1q_u8_x4): Likewise.
916 (vld1_u16_x4): Likewise.
917 (vld1q_u16_x4): Likewise.
918 (vld1_u32_x4): Likewise.
919 (vld1q_u32_x4): Likewise.
920 (vld1_f16_x4): Likewise.
921 (vld1q_f16_x4): Likewise.
922 (vld1_f32_x4): Likewise.
923 (vld1q_f32_x4): Likewise.
924 (vld1_p8_x4): Likewise.
925 (vld1q_p8_x4): Likewise.
926 (vld1_p16_x4): Likewise.
927 (vld1q_p16_x4): Likewise.
928 (vld1_s64_x4): Likewise.
929 (vld1_u64_x4): Likewise.
930 (vld1_p64_x4): Likewise.
931 (vld1q_s64_x4): Likewise.
932 (vld1q_u64_x4): Likewise.
933 (vld1q_p64_x4): Likewise.
934 (vld1_f64_x4): Likewise.
935 (vld1q_f64_x4): Likewise.
936 (vst1_s8_x4): Likewise.
937 (vst1q_s8_x4): Likewise.
938 (vst1_s16_x4): Likewise.
939 (vst1q_s16_x4): Likewise.
940 (vst1_s32_x4): Likewise.
941 (vst1q_s32_x4): Likewise.
942 (vst1_u8_x4): Likewise.
943 (vst1q_u8_x4): Likewise.
944 (vst1_u16_x4): Likewise.
945 (vst1q_u16_x4): Likewise.
946 (vst1_u32_x4): Likewise.
947 (vst1q_u32_x4): Likewise.
948 (vst1_f16_x4): Likewise.
949 (vst1q_f16_x4): Likewise.
950 (vst1_f32_x4): Likewise.
951 (vst1q_f32_x4): Likewise.
952 (vst1_p8_x4): Likewise.
953 (vst1q_p8_x4): Likewise.
954 (vst1_p16_x4): Likewise.
955 (vst1q_p16_x4): Likewise.
956 (vst1_s64_x4): Likewise.
957 (vst1_u64_x4): Likewise.
958 (vst1_p64_x4): Likewise.
959 (vst1q_s64_x4): Likewise.
960 (vst1q_u64_x4): Likewise.
961 (vst1q_p64_x4): Likewise.
962 (vst1_f64_x4): Likewise.
963 (vst1q_f64_x4): Likewise.
965 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
967 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
969 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
970 Richard Sandiford <richard.sandiford@arm.com>
973 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
974 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
976 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
979 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
980 in reg if it fails aarch64_plus_operand predicate.
982 2019-08-21 Richard Biener <rguenther@suse.de>
984 PR tree-optimization/91482
985 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
986 BUILT_IN_ASSUME_ALIGNED calls.
988 2019-08-21 Richard Biener <rguenther@suse.de>
992 * config/i386/i386-features.c
993 (general_scalar_chain::make_vector_copies): Copy stack temporary
994 rtx when using it multiple times.
995 (general_scalar_chain::convert_reg): Likewise.
997 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
999 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
1001 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
1003 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
1004 catch more redundant zero initialization cases.
1005 (dse_dom_walker::dse_optimize_stmt): Likewise.
1007 2019-08-20 Richard Biener <rguenther@suse.de>
1010 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
1011 by collect2 when targetm.have_ctors_dtors which avoids dragging
1012 in temporary filenames from LTO input objects.
1014 2019-08-20 Richard Biener <rguenther@suse.de>
1016 PR tree-optimization/37242
1017 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
1018 to (T)a + (T)b if we know that a + b does not overflow.
1020 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
1022 PR rtl-optimization/91347
1023 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
1024 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
1026 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1028 * calls.h (function_arg_info): Add a pass_by_reference field,
1029 defaulting to false.
1030 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
1031 when applying pass-by-reference semantics.
1032 (initialize_argument_information): Likewise.
1033 (emit_library_call_value_1): Likewise.
1034 * function.c (assign_parm_data_one): Remove passed_pointer field.
1035 (assign_parm_find_data_types): Don't set it.
1036 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
1037 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
1038 arg.pass_by_reference instead of passed_pointer.
1040 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1042 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
1043 into a single function_arg_info, updating its fields when we
1044 apply pass-by-reference and promotion semantics. Use the
1045 function_arg_info to track the mode rather than keeping it in
1046 a separate local variable.
1047 (initialize_argument_information): Likewise. Base the final
1048 arg_to_skip on this new function_arg_info rather than creating
1049 a new one from scratch.
1051 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1053 * function.c (assign_parm_data_one): Replace passed_type,
1054 promoted_mode and named_arg with a function_arg_info field.
1055 (assign_parm_find_data_types): Remove local variables and
1056 assign directly to "data". Make data->passed_mode shadow
1057 data->arg.mode until promotion, then assign the promoted
1058 mode to data->arg.mode.
1059 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
1060 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
1061 (assign_parm_remove_parallels, assign_parm_setup_block_p)
1062 (assign_parm_setup_block, assign_parm_setup_reg)
1063 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
1064 arg.mode instead of promoted_mode, arg.type instead of passed_type
1065 and arg.named instead of named_arg. Use data->arg for
1066 function_arg_info structures that had the field values passed_type,
1067 promoted_mode and named_arg. Base other function_arg_infos on
1068 data->arg, changing the necessary properties.
1070 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1072 * calls.h (apply_pass_by_reference_rules): Declare.
1073 * calls.c (apply_pass_by_reference_rules): New function.
1074 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
1075 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
1076 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1077 * function.c (assign_parm_find_data_types): Likewise.
1078 * var-tracking.c (prepare_call_arguments): Likewise.
1080 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1082 * target.def (must_pass_in_stack): Take a function_arg_info instead
1083 of a mode and a type.
1084 * doc/tm.texi: Regenerate.
1085 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
1086 instead of a mode and a type.
1087 (must_pass_in_stack_var_size_or_pad): Likewise.
1088 * calls.c (must_pass_in_stack_var_size): Likewise.
1089 (must_pass_in_stack_var_size_or_pad): Likewise.
1090 (initialize_argument_information): Update call to
1091 targetm.calls.must_pass_in_stack.
1092 (must_pass_va_arg_on_stack): Likewise.
1093 * function.c (assign_parm_find_entry_rtl): Likewise.
1094 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
1095 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1096 (alpha_function_arg_advance): Likewise.
1097 * config/cr16/cr16.c (cr16_function_arg): Likewise.
1098 (cr16_function_arg_advance): Likewise.
1099 * config/cris/cris.c (cris_pass_by_reference): Likewise.
1100 (cris_arg_partial_bytes): Likewise.
1101 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1102 * config/lm32/lm32.c (lm32_function_arg): Likewise.
1103 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
1104 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
1105 * config/mips/mips.c (mips_pass_by_reference): Likewise.
1106 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
1107 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
1108 * config/sh/sh.c (sh_pass_by_reference): Likewise.
1109 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1110 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1111 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
1112 instead of a mode and a type.
1113 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
1114 (fr30_num_arg_regs): Likewise.
1115 (fr30_setup_incoming_varargs): Update calls accordingly.
1116 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1117 (fr30_function_arg_advance): Likewise.
1118 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
1119 instead of a mode and a type.
1120 * config/gcn/gcn.c (num_arg_regs): Likewise.
1121 (gcn_function_arg, gcn_function_arg_advance): Update calls to
1122 num_arg_regs and targetm.calls.must_pass_in_stack.
1123 (gcn_arg_partial_bytes): Likewise.
1124 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
1125 function_arg_info instead of a mode and a type.
1126 (classify_argument): Update call accordingly.
1127 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
1128 function_arg_info instead of a mode and a type.
1129 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
1131 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
1132 (rs6000_parm_needs_stack): Update call accordingly.
1133 (setup_incoming_varargs): Likewise.
1135 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1137 * target.def (callee_copies): Take a function_arg_info instead
1138 of a mode, type and named flag.
1139 * doc/tm.texi: Regenerate.
1140 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
1141 instead of a mode, type and named flag.
1142 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1143 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1144 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1145 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
1146 instead of a mode, type and named flag.
1147 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1148 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1149 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1150 * calls.h (reference_callee_copied): Take a function_arg_info
1151 instead of a mode, type and named flag.
1152 * calls.c (reference_callee_copied): Likewise.
1153 (initialize_argument_information): Update call accordingly.
1154 (emit_library_call_value_1): Likewise.
1155 * function.c (gimplify_parameters): Likewise.
1156 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
1157 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
1158 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
1159 * config/c6x/c6x.c (c6x_callee_copies): Delete.
1160 (TARGET_CALLEE_COPIES): Define to
1161 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1162 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
1163 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1164 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1165 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
1166 instead of a mode, type and named flag.
1167 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
1168 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1169 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1170 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
1171 * config/msp430/msp430.c (msp430_callee_copies): Delete.
1172 (TARGET_CALLEE_COPIES): Define to
1173 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1174 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
1175 instead of a mode, type and named flag.
1176 * config/sh/sh.c (sh_callee_copies): Likewise.
1177 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
1178 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1179 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1181 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1183 * target.def (function_arg_advance): Take a function_arg_info instead
1184 of a mode, type and named flag.
1185 * doc/tm.texi: Regenerate.
1186 * targhooks.h (default_function_arg_advance): Take a function_arg_info
1187 instead of a mode, type and named flag.
1188 * targhooks.c (default_function_arg_advance): Likewise.
1189 * calls.c (initialize_argument_information): Update call to
1190 targetm.calls.function_arg_advance.
1191 (emit_library_call_value_1): Likewise.
1192 * dse.c (get_call_args): Likewise.
1193 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1194 * function.c (assign_parms, gimplify_parameters): Likewise.
1195 * var-tracking.c (prepare_call_arguments): Likewise.
1196 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
1197 function_arg_info instead of a mode, type and named flag.
1198 (aarch64_setup_incoming_varargs): Update call accordingly.
1199 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
1200 function_arg_info instead of a mode, type and named flag.
1201 (alpha_setup_incoming_varargs): Update call accordingly.
1202 * config/arc/arc.c (arc_function_arg_advance): Take a
1203 function_arg_info instead of a mode, type and named flag.
1204 (arc_setup_incoming_varargs): Update call accordingly.
1205 * config/arm/arm.c (arm_function_arg_advance): Take a
1206 function_arg_info instead of a mode, type and named flag.
1207 (cmse_func_args_or_return_in_stack): Update call accordingly.
1208 (arm_function_ok_for_sibcall): Likewise.
1209 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1210 * config/avr/avr.c (avr_function_arg_advance): Take a
1211 function_arg_info instead of a mode, type and named flag.
1212 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
1213 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
1214 (c6x_call_saved_register_used): Update call accordingly.
1215 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
1216 function_arg_info instead of a mode, type and named flag.
1217 * config/cris/cris.c (cris_function_arg_advance): Likewise.
1218 * config/csky/csky.c (csky_function_arg_advance): Likewise.
1219 (csky_setup_incoming_varargs): Update call accordingly.
1220 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
1221 function_arg_info instead of a mode, type and named flag.
1222 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
1223 * config/frv/frv.c (frv_function_arg_advance): Likewise.
1224 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
1225 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
1226 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
1227 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1228 (ix86_setup_incoming_varargs): Update call accordingly.
1229 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
1230 function_arg_info instead of a mode, type and named flag.
1231 (ia64_setup_incoming_varargs): Update call accordingly.
1232 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
1233 function_arg_info instead of a mode, type and named flag.
1234 (iq2000_expand_prologue): Update call accordingly.
1235 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
1236 function_arg_info instead of a mode, type and named flag.
1237 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
1238 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
1239 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1240 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
1241 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1243 (microblaze_expand_prologue): Update call accordingly.
1244 * config/mips/mips.c (mips_function_arg_advance): Take a
1245 function_arg_info instead of a mode, type and named flag.
1246 (mips_setup_incoming_varargs): Update call accordingly.
1247 (mips_output_args_xfer): Likewise.
1248 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
1249 function_arg_info instead of a mode, type and named flag.
1250 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
1251 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
1252 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
1253 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
1254 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
1255 (nios2_setup_incoming_varargs): Update call accordingly.
1256 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
1257 function_arg_info instead of a mode, type and named flag.
1258 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
1259 * config/pa/pa.c (pa_function_arg_advance): Likewise.
1260 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
1261 * config/pru/pru.c (pru_function_arg_advance): Likewise.
1262 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
1263 (riscv_setup_incoming_varargs): Update call accordingly.
1264 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
1265 function_arg_info instead of a mode, type and named flag.
1266 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
1268 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
1269 (rs6000_parm_needs_stack): Update call accordingly.
1270 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
1271 instead of a mode, type and named flag.
1272 * config/s390/s390.c (s390_function_arg_advance): Likewise.
1273 (s390_call_saved_register_used): Update call accordingly.
1274 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
1275 instead of a mode, type and named flag.
1276 (sh_output_mi_thunk): Update call accordingly.
1277 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
1278 function_arg_info instead of a mode, type and named flag.
1279 * config/spu/spu.c (spu_function_arg_advance): Likewise.
1280 (spu_setup_incoming_varargs): Update call accordingly.
1281 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
1282 function_arg_info instead of a mode, type and named flag.
1283 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
1284 (tilegx_setup_incoming_varargs): Update call accordingly.
1285 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
1286 function_arg_info instead of a mode, type and named flag.
1287 (tilegx_setup_incoming_varargs): Update call accordingly.
1288 * config/v850/v850.c (v850_function_arg_advance): Take a
1289 function_arg_info instead of a mode, type and named flag.
1290 * config/vax/vax.c (vax_function_arg_advance): Likewise.
1291 * config/visium/visium.c (visium_function_arg_advance): Likewise.
1292 (visium_setup_incoming_varargs): Update call accordingly.
1293 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
1294 function_arg_info instead of a mode, type and named flag.
1296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1298 * target.def (function_arg, function_incoming_arg): Take a
1299 function_arg_info instead of a mode, tree and named flag.
1300 * doc/tm.texi: Regenerate.
1301 * targhooks.h (default_function_arg): Take a function_arg_info
1302 instead of a mode, tree and named flag.
1303 (default_function_incoming_arg): Likewise.
1304 * targhooks.c (default_function_arg): Likewise.
1305 (default_function_incoming_arg): Likewise.
1306 * calls.h (function_arg_info::end_marker_p): New function.
1307 (function_arg_info::end_marker): Likewise.
1308 * calls.c (prepare_call_address, initialize_argument_information)
1309 (expand_call, emit_library_call_value_1): Update calls to
1310 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
1311 * dse.c: Include calls.h.
1312 (get_call_args): Update call to targetm.calls.function_arg.
1313 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1314 * var-tracking.c (prepare_call_arguments): Likewise.
1315 * function.c (assign_parm_find_entry_rtl): Update call to
1316 targetm.calls.function_incoming_arg.
1317 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
1318 function_arg_info instead of a mode, tree and named flag.
1319 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1320 * config/arc/arc.c (arc_function_arg): Likewise.
1321 * config/arm/arm.c (arm_function_arg): Likewise.
1322 (cmse_func_args_or_return_in_stack): Update call accordingly.
1323 (arm_function_ok_for_sibcall): Likewise.
1324 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1325 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
1326 instead of a mode, tree and named flag.
1327 * config/bfin/bfin.c (bfin_function_arg): Likewise.
1328 * config/c6x/c6x.c (c6x_function_arg): Likewise.
1329 (c6x_call_saved_register_used): Update call accordingly.
1330 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
1331 instead of a mode, tree and named flag.
1332 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
1333 (cris_function_arg_1): Likewise.
1334 * config/csky/csky.c (csky_function_arg): Likewise.
1335 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
1336 * config/fr30/fr30.c (fr30_function_arg): Likewise.
1337 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
1338 (frv_function_arg_1): Likewise.
1339 * config/ft32/ft32.c (ft32_function_arg): Likewise.
1340 * config/gcn/gcn.c (gcn_function_arg): Likewise.
1341 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1342 * config/i386/i386.c (ix86_function_arg): Likewise.
1343 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1344 (ia64_function_arg_1): Likewise.
1345 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1346 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1348 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1349 instead of a mode, tree and named flag.
1350 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1351 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1352 * config/m68k/m68k.c (m68k_function_arg): Likewise.
1353 * config/mcore/mcore.c (mcore_function_arg): Likewise.
1354 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
1355 (microblaze_expand_prologue): Update call accordingly.
1356 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
1357 instead of a mode, tree and named flag.
1358 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
1359 (mmix_function_arg_1): Likewise.
1360 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
1361 * config/moxie/moxie.c (moxie_function_arg): Likewise.
1362 * config/msp430/msp430.c (msp430_function_arg): Likewise.
1363 * config/nds32/nds32.c (nds32_function_arg): Likewise.
1364 * config/nios2/nios2.c (nios2_function_arg): Likewise.
1365 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
1366 (nvptx_function_incoming_arg): Likewise.
1367 * config/or1k/or1k.c (or1k_function_arg): Likewise.
1368 * config/pa/pa.c (pa_function_arg): Likewise.
1369 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1370 * config/pru/pru.c (pru_function_arg): Likewise.
1371 * config/riscv/riscv.c (riscv_function_arg): Likewise.
1372 * config/rl78/rl78.c (rl78_function_arg): Likewise.
1373 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
1374 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
1375 (rs6000_parm_needs_stack): Update call accordingly.
1376 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
1377 instead of a mode, tree and named flag.
1378 * config/s390/s390.c (s390_function_arg): Likewise.
1379 (s390_call_saved_register_used): Update call accordingly.
1380 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
1381 instead of a mode, tree and named flag.
1382 (sh_output_mi_thunk): Update call accordingly.
1383 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
1384 (sparc_function_incoming_arg): Take a function_arg_info instead of
1385 a mode, tree and named flag.
1386 * config/spu/spu.c (spu_function_arg): Likewise.
1387 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1388 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
1389 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
1390 * config/v850/v850.c (v850_function_arg): Likewise.
1391 * config/vax/vax.c (vax_function_arg): Likewise.
1392 * config/visium/visium.c (visium_function_arg): Likewise.
1393 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
1394 (xtensa_function_incoming_arg): Likewise.
1396 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1398 * target.def (setup_incoming_varargs): Take a function_arg_info
1399 instead of a mode and tree.
1400 * doc/tm.texi: Regenerate.
1401 * targhooks.h (default_setup_incoming_varargs): Take a
1402 function_arg_info instead of a mode and tree.
1403 * targhooks.c (default_setup_incoming_varargs): Likewise.
1404 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
1405 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1406 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1407 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
1408 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
1409 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1410 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
1411 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
1413 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1414 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1415 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
1416 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1417 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1418 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1419 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1420 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1421 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1422 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1423 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1424 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1425 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1426 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1427 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1428 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1429 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1430 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1431 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1432 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1433 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1434 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1435 * function.c (assign_parms_setup_varargs): Update call to
1436 targetm.calls.setup_incoming_varargs.
1438 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1440 * target.def (pass_by_reference): Take a function_arg_info instead
1441 of a mode, type and named flag.
1442 * doc/tm.texi: Regenerate.
1443 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1445 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1446 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1447 function_arg_info instead of a mode, type and named flag.
1448 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1449 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1450 mode, type and named flag.
1451 * calls.c (pass_by_reference): Likewise.
1452 (pass_va_arg_by_reference): Update call accordingly.
1453 (initialize_argument_information): Likewise.
1454 (emit_library_call_value_1): Likewise.
1455 * function.c (assign_parm_find_data_types): Likewise.
1456 * var-tracking.c (prepare_call_arguments): Likewise.
1457 * stor-layout.c: Include calls.h.
1458 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1459 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1460 function_arg_info instead of a mode, type and named flag.
1461 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1462 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1463 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1464 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1465 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1466 (c6x_call_saved_register_used): Update call to pass_by_reference.
1467 * config/cris/cris.c (cris_pass_by_reference): Take a
1468 function_arg_info instead of a mode, type and named flag.
1469 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1470 function_arg_info instead of a mode, type and named flag.
1471 (epiphany_arg_partial_bytes): Update call accordingly.
1472 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1473 function_arg_info instead of a mode, type and named flag.
1474 (ft32_arg_partial_bytes): Update call accordingly.
1475 * config/i386/i386.c (ix86_pass_by_reference): Take a
1476 function_arg_info instead of a mode, type and named flag.
1477 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1478 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1479 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1480 (m32r_return_in_memory): Update call accordingly.
1481 * config/mips/mips.c (mips_pass_by_reference): Take a
1482 function_arg_info instead of a mode, type and named flag.
1483 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1484 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1485 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1486 (moxie_arg_partial_bytes): Update call accordingly.
1487 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1488 function_arg_info instead of a mode, type and named flag.
1489 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1490 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1491 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1492 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1493 (riscv_return_in_memory): Update call accordingly.
1494 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1495 function_arg_info instead of a mode, type and named flag.
1496 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1497 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1498 * config/s390/s390.c (s390_pass_by_reference): Take a
1499 function_arg_info instead of a mode, type and named flag.
1500 (s390_call_saved_register_used): Update call accordingly.
1501 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1502 instead of a mode, type and named flag.
1503 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1504 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1505 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1506 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1507 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1508 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1510 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1512 * target.def (arg_partial_bytes): Take a function_arg_info instead
1513 of a mode, type and named flag.
1514 * doc/tm.texi: Regenerate.
1515 * target.h (function_arg_info): Declare.
1516 * calls.h (function_arg_info): New class.
1517 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1518 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1519 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1520 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1521 * calls.c (initialize_argument_information): Update call to
1522 targetm.calls.partial_bytes.
1523 (emit_library_call_value_1): Likewise.
1524 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1525 * function.c (assign_parm_find_entry_rtl): Likewise.
1526 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1527 function_arg_info instead of a mode, type and named flag.
1528 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1529 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1530 (cmse_func_args_or_return_in_stack): Update accordingly.
1531 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1532 function_arg_info instead of a mode, type and named flag.
1533 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1534 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1535 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1536 * config/fr30/fr30.c: Include calls.h.
1537 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1538 type and named flag.
1539 * config/frv/frv.c: Include calls.h.
1540 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1541 type and named flag.
1542 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1543 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1544 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1545 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1546 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1547 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1548 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1550 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1551 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1552 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1553 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1554 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1555 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1556 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1557 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1558 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1559 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1560 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1561 (rs6000_parm_needs_stack): Update call accordingly.
1562 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1563 function_arg_info instead of a mode, type and named flag.
1564 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1565 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1567 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1569 * calls.h (must_pass_va_arg_in_stack): Declare.
1570 * calls.c (must_pass_va_arg_in_stack): New function.
1571 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1572 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1573 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1575 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1577 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1579 * calls.h (pass_va_arg_by_reference): Declare.
1580 * calls.c (pass_va_arg_by_reference): New function.
1581 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1582 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1583 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1584 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1585 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1586 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1587 (mips_gimplify_va_arg_expr): Likewise.
1588 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1589 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1590 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1591 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1592 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1593 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1594 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1595 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1596 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1597 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1598 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1600 2019-08-20 Richard Biener <rguenther@suse.de>
1603 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1604 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1605 (convert_scalars_to_vector): Add timode_p parameter and use it
1606 to guard TImode-only operation.
1607 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1608 (pass_stv::execute): Pass down timode_p.
1610 2019-08-20 Lili Cui <lili.cui@intel.com>
1612 * common/config/i386/i386-common.c
1613 (processor_names): Add tigerlake and cooperlake.
1614 (processor_alias_table): Add tigerlake and cooperlake.
1615 * config.gcc: Add -march=tigerlake and cooperlake.
1616 * config/i386/driver-i386.c
1617 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1618 Add "has_avx" to classify processor.
1619 * config/i386/i386-builtins.c (processor_model) :
1620 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1621 (arch_names_table): Add tigerlake and cooperlake.
1622 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1623 and PROCESSOR_COOPERLAKE.
1624 * config/i386/i386-c.c
1625 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1626 * config/i386/i386-options.c
1627 (m_TIGERLAKE) : Define.
1628 (m_COOPERLAKE) : Ditto.
1629 (m_CORE_AVX512): Ditto.
1630 (processor_cost_table): Add cascadelake.
1631 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1632 * config/i386/i386.h
1633 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1634 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1635 (PTA_MOVDIRI): Ditto.
1636 (PTA_MOVDIR64B): Ditto.
1637 (PTA_COOPERLAKE) : Ditto.
1638 (PTA_TIGERLAKE) : Ditto.
1639 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1640 * doc/extend.texi: Add tigerlake and cooperlake.
1641 * doc/invoke.texi: Add tigerlake and cooperlake.
1643 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1645 * doc/install.texi (Specific, alpha): Remove note to use
1646 binutils 2.11.2 or later.
1648 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1651 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1654 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1656 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1657 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1658 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1659 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1660 * config/aarch64/constraints.md (Dt): New constraint
1661 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1663 2019-08-19 Richard Biener <rguenther@suse.de>
1665 PR tree-optimization/91403
1666 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1667 cases we can handle with tail-recursion...
1668 (follow_ssa_edge_expr): ... here. Do so.
1670 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1673 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1674 implemented for -fsanitize=kernel-address, and merge check logic
1675 with -fsanitize=address.
1677 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1679 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1680 for cpu and machine. Factor 64/32b builtins.
1682 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1684 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1685 gone, point to sourceforge.net.
1687 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1689 * doc/ux.texi (User Experience Guidelines): Update reference.
1691 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1693 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1696 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1698 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1699 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1701 2019-08-16 Martin Sebor <msebor@redhat.com>
1703 * tree.def (TYPE_SIZE): Clarify.
1704 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1706 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1708 PR tree-optimization/91109
1709 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1710 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1711 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1713 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1715 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1716 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1717 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1718 (uavg<mode>3_ceil): New expander.
1719 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1720 mode iterator when creating CONST1_RTX.
1721 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1722 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1723 mode iterator for const1_operand predicate.
1725 2019-08-16 Richard Biener <rguenther@suse.de>
1727 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1728 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1730 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1731 (analyze_evolution_in_loop): Likewise.
1732 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1733 (follow_ssa_edge_expr): ... here. Refactor code.
1735 2019-08-16 Richard Biener <rguenther@suse.de>
1738 * config/i386/i386-features.c
1739 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1741 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1744 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1745 only if subst_name matches curr_attr string.
1747 2019-08-16 Richard Biener <rguenther@suse.de>
1749 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1750 stmt at gsi_p, instead replace it with a NOP removed later.
1751 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1752 that became dead because of that.
1754 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1756 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1757 for which we can't represent a range.
1758 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1760 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1761 Set VR_UNDEFINED if type is not supported.
1762 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1763 * tree-vrp.c (value_range_base::check): Assert that a varying has
1765 (value_range_base::equal_p): Early bail for undefines.
1766 (value_range_base::set_varying): Accept a type.
1767 (value_range::set_varying): Same.
1768 (value_range_base::type): VARYING can have a type, while UNDEFINE
1770 (value_range_base::dump): Print type for VARYING nodes.
1771 (value_range_base::set): Add type to VARYING.
1772 (extract_range_from_multiplicative_op): Pass type to set_varying.
1773 (extract_range_from_binary_expr): Same.
1774 (value_range_base::intersect_helper): Same.
1775 (value_range_base::union_helper): Same.
1776 (value_range_base::normalize_symbolics): Same.
1777 (determine_value_range_1): Same.
1778 * tree-vrp.h (class value_range_base): Add type to set_varying.
1779 Add prototype for dump(void).
1780 Add prototype for supports_type_p.
1781 (class value_range): Add type to set_varying.
1782 Add prototype for dump(void).
1783 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1785 (vr_values::get_lattice_entry): Set varying even if propagation
1787 Pass type to set_varying.
1788 (vr_values::get_value_range): Remove vr_const_varying.
1789 Reallocate the lattice if needed.
1790 (vr_values::update_value_range): Pass type to set_varying.
1791 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1792 (vr_values::extract_range_from_binary_expr): Same.
1793 (vr_values::extract_range_from_unary_expr): Same.
1794 (vr_values::extract_range_from_cond_expr): Same.
1795 (vr_values::check_for_binary_op_overflow): Same.
1796 (vr_values::extract_range_basic): Same.
1797 (vr_values::extract_range_from_assignment): Same.
1798 (vr_values::vr_values): Increase size of num_vr_values.
1799 (vr_values::extract_range_from_phi_node): Pass type to
1802 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1805 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1806 for costs of hard register moves.
1807 (ix86_register_move_cost): Likewise.
1808 * config/i386/i386.h (processor_costs): Move costs of hard
1809 register moves to hard_register. Add int_load, int_store,
1810 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1811 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1812 for costs of RTL expressions.
1813 * config/i386/x86-tune-costs.h: Move costs of hard register
1814 moves to hard_register. Duplicate int_load, int_store,
1815 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1816 sse_load, sse_store for costs of RTL expressions.
1818 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1820 * target.def (setup_incoming_vararg_bounds): Remove.
1821 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1822 * doc/tm.texi: Regenerate.
1823 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1824 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1825 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1826 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1828 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1830 MSP430: Fix lines over 80 characters long in
1831 config/msp430/*.{c,h} files
1833 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1834 specifier in string.
1835 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1836 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1837 redundant old comment.
1838 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1839 Split line more than 80 characters long.
1840 * config/msp430/msp430.c (msp430_option_override): Likewise.
1841 (msp430_return_in_memory): Likewise.
1842 (msp430_gimplify_va_arg_expr): Likewise.
1843 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1844 (msp430_legitimate_constant): Likewise.
1845 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1846 (msp430_attr): Likewise.
1847 (msp430_data_attr): Likewise.
1848 (msp430_start_function): Likewise.
1849 (gen_prefix): Likewise.
1850 (msp430_init_sections): Likewise.
1851 (msp430_select_section): Likewise.
1852 (msp430_function_section): Likewise.
1853 (msp430_unique_section): Likewise.
1854 (msp430_output_aligned_decl_common): Likewise.
1855 (msp430_do_not_relax_short_jumps): Likewise.
1856 (msp430_init_builtins): Likewise.
1857 (msp430_expand_delay_cycles): Likewise.
1858 (msp430_expand_prologue): Likewise.
1859 (msp430_expand_epilogue): Likewise.
1860 (msp430_expand_helper): Likewise.
1861 (msp430_split_movsi): Likewise.
1862 (msp430_print_operand): Likewise.
1863 (msp430_return_addr_rtx): Likewise.
1864 (msp430x_extendhisi): Likewise.
1865 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1866 (ASM_SPEC): Likewise.
1867 Remove very obvious comments.
1868 (LIB_SPEC): Split line more than 80 characters long.
1869 (EH_RETURN_HANDLER_RTX): Likewise.
1870 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1872 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1874 MSP430: Fix whitespace errors and incorrect indentation in
1875 config/msp430/*.{c,h} files
1877 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1878 (msp430_select_hwmult_lib): Likewise.
1879 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1880 (msp430_extract_mcu_data): Likewise.
1881 (struct t_msp430_mcu_data): Likewise.
1882 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1883 before left square bracket.
1884 (msp430_option_override): Fix indentation.
1885 (msp430_hard_regno_nregs_with_padding): Likewise.
1886 (msp430_initial_elimination_offset): Likewise.
1887 (msp430_special_register_convention_p): Remove whitespace before left
1888 square bracket and after exclamation mark.
1889 (msp430_evaluate_arg): Likewise.
1890 (msp430_callee_copies): Fix indentation.
1891 (msp430_gimplify_va_arg_expr): Likewise.
1892 (msp430_function_arg_advance): Remove whitespace before left square
1894 (reg_ok_for_addr): Likewise.
1895 (msp430_preserve_reg_p): Likewise.
1896 (msp430_compute_frame_info): Likewise.
1897 (msp430_asm_output_addr_const_extra): Add space between function name
1898 and open parenthesis.
1899 (has_section_name): Fix indentation.
1900 (msp430_attr): Remove trailing whitespace.
1901 (msp430_section_attr): Likewise.
1902 (msp430_data_attr): Likewise.
1903 (struct msp430_attribute_table): Fix comment and whitespace.
1904 (msp430_start_function): Remove whitespace before left square bracket.
1905 Add space between function name and open parenthesis.
1906 (msp430_select_section): Remove trailing whitespace.
1907 (msp430_section_type_flags): Remove trailing whitespace.
1908 (msp430_unique_section): Remove space before closing parenthesis.
1909 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1910 (msp430_builtins): Remove whitespace before left square bracket.
1911 (msp430_init_builtins): Fix indentation.
1912 (msp430_expand_prologue): Remove whitespace before left square bracket.
1913 Remove space before closing parenthesis.
1914 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1915 (msp430_split_movsi): Remove space before closing parenthesis.
1916 (helper_function_name_mappings): Fix indentation.
1917 (msp430_use_f5_series_hwmult): Fix whitespace.
1918 (use_32bit_hwmult): Likewise.
1919 (msp430_no_hwmult): Likewise.
1920 (msp430_output_labelref): Remove whitespace before left square bracket.
1921 (msp430_print_operand_raw): Likewise.
1922 (msp430_print_operand_addr): Likewise.
1923 (msp430_print_operand): Add two spaces after '.' in comment.
1924 Fix trailing whitespace.
1925 (msp430x_extendhisi): Fix indentation.
1926 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1928 (PC_REGNUM): Likewise.
1929 (STACK_POINTER_REGNUM): Likewise.
1930 (CC_REGNUM): Likewise.
1932 2019-08-15 Richard Biener <rguenther@suse.de>
1935 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1937 (general_scalar_chain::make_vector_copies): Use it.
1939 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1941 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1943 2019-08-15 Martin Liska <mliska@suse.cz>
1945 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1946 operators with no arguments.
1947 (eliminate_unnecessary_stmts): Likewise here.
1949 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1951 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1952 <case COMPARE>: Revert 2019-08-14 change.
1953 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1954 for (TARGET_64BIT || mode != DImode).
1956 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1958 * tree-vrp.c (value_range_base::set): Merge in code from
1959 value_range_base::set_and_canonicalize.
1960 Enforce canonicalization at set time.
1961 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1962 (value_range_base::set_undefined): Inline call to set().
1963 (value_range_base::set_varying): Same.
1964 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1965 (vrp_val_max): New argument handle_pointers.
1966 (vrp_val_min): Same.
1967 (ranges_from_anti_range): Same.
1968 (extract_range_into_wide_ints): Use tree argument instead of sign
1970 (extract_range_from_multiplicative_op): Take in tree type instead
1971 of precision and sign. Adapt function for canonicalized ranges.
1972 (extract_range_from_binary_expr): Pass type to
1973 extract_range_from_multiplicative_op.
1974 Adapt for canonicalized ranges.
1975 (extract_range_from_unary_expr): Same.
1976 (value_range_base::intersect_helper): Adjust for canonicalized
1978 (value_range_base::union_helper): Same.
1979 (value_range_base::normalize_symbolics): New.
1980 * tree-vrp.h (class value_range_base): Remove
1981 set_and_canonicalize.
1982 New prototype for normalize_symbolics.
1983 (class value_range): Remove set_and_canonicalize.
1984 (vrp_val_min): Adjust prototype.
1985 (vrp_val_max): Same.
1987 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1988 instead of set_and_canonicalize.
1990 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1993 * tree-vect-stmts.c (vectorizable_call): Check that the function
1994 is a BUILT_IN_MD function before passing it to
1995 targetm.vectorize.builtin_md_vectorized_function.
1997 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1999 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
2000 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
2001 (aarch64_select_early_remat_modes): Use it.
2003 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2005 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
2006 16 for SVE predicates even if they are fixed-length.
2008 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2010 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
2011 operand order match the MOV /Z alias.
2013 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2015 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
2016 the vector pattern as an aarch64_svpattern argument. Update the
2017 overloaded caller accordingly.
2018 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
2019 (aarch64_output_sve_vector_inc_dec): Likewise.
2021 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2023 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
2024 multiplication case, try to compute VG * (lowest set bit) directly
2025 rather than always basing the multiplication on VG. Use
2026 expand_mult for the multiplication if we can.
2028 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2030 * config/aarch64/aarch64-protos.h
2031 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
2032 (aarch64_sve_inc_dec_immediate_p): Rename to...
2033 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2034 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
2035 (aarch64_output_sve_scalar_inc_dec): Declare.
2036 (aarch64_output_sve_inc_dec_immediate): Rename to...
2037 (aarch64_output_sve_vector_inc_dec): ...this.
2038 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
2039 (aarch64_output_sve_scalar_inc_dec): New functions.
2040 (aarch64_output_sve_addvl_addpl): Remove the base and offset
2041 arguments. Only handle true ADDVL and ADDPL instructions;
2042 don't emit an INC or DEC.
2043 (aarch64_sve_inc_dec_immediate_p): Rename to...
2044 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2045 (aarch64_output_sve_inc_dec_immediate): Rename to...
2046 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
2047 aarch64_sve_vector_inc_dec_immediate_p.
2048 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
2049 (aarch64_sve_plus_immediate): New predicates.
2050 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
2051 rather than aarch64_sve_addvl_addpl_immediate.
2052 (aarch64_sve_inc_dec_immediate): Rename to...
2053 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
2054 aarch64_sve_vector_inc_dec_immediate_p.
2055 (aarch64_sve_add_operand): Update accordingly.
2056 * config/aarch64/constraints.md (Uai): New constraint.
2057 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
2058 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
2059 operand into a register if it satisfies aarch64_sve_plus_immediate.
2060 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
2061 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
2062 * config/aarch64/aarch64-sve.md (add<mode>3): Call
2063 aarch64_output_sve_vector_inc_dec instead of
2064 aarch64_output_sve_inc_dec_immediate.
2066 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2068 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
2069 (UNSPEC_REVW): New constants.
2070 (elem_bits): New mode attribute.
2071 (SVE_INT_UNARY): New int iterator.
2072 (optab): Handle UNSPEC_REV[BHW].
2073 (sve_int_op): New int attribute.
2074 (min_elem_bits): Handle VNx16QI and the predicate modes.
2075 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
2076 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
2077 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
2078 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
2079 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
2080 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
2081 unspecs based on the total width of the reversed data.
2082 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
2083 reinterpret followed by a subreg on big-endian targets.
2085 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2086 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2088 * config/aarch64/aarch64-sve.md
2089 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
2090 alternatives in which one of the inputs is in the same register
2093 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2095 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
2096 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
2098 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2100 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
2101 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
2103 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2104 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2106 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
2107 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
2108 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
2110 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2111 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2113 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
2114 Add an alternative that uses reversed shifts.
2116 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2118 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
2121 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2123 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
2124 a commutativity marker.
2126 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2127 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2129 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
2130 (aarch64_prepare_sve_cond_int_fma): Declare.
2131 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
2132 (aarch64_prepare_sve_int_fma): New functions.
2133 (aarch64_prepare_sve_cond_int_fma): Likewise.
2134 * config/aarch64/aarch64-sve.md
2135 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
2136 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
2137 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
2138 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
2139 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
2140 (*madd<mode>): Rename to...
2141 (*fma<mode>4): ...this.
2142 (*msub<mode>): Rename to...
2143 (*fnma<mode>4): ...this.
2145 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2148 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
2149 Print 2.0 naturally.
2150 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
2151 * config/aarch64/predicates.md
2152 (aarch64_sve_float_negated_arith_immediate): New predicate,
2153 renamed from aarch64_sve_float_arith_with_sub_immediate.
2154 (aarch64_sve_float_arith_with_sub_immediate): Test for both
2155 positive and negative constants.
2156 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
2157 or an aarch64_sve_float_arith_with_sub_immediate.
2158 * config/aarch64/constraints.md (vsN): Use
2159 aarch64_sve_float_negated_arith_immediate.
2160 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
2162 (sve_pred_fp_rhs2_immediate): New int attribute.
2163 * config/aarch64/aarch64-sve.md
2164 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
2165 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
2166 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
2167 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
2168 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
2169 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
2171 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2172 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2174 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
2175 (*aarch64_cond_abd<SVE_F:mode>_3)
2176 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
2178 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2179 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2181 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
2182 (*aarch64_cond_<su>abd<mode>_any): New patterns.
2184 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2185 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2187 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
2188 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
2189 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2190 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
2192 * optabs.h (create_convert_operand_from): Expand comment.
2193 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
2194 when mapping scalar rtxes to vector operands.
2195 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
2196 ashiftrt and lshiftrt.
2197 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
2198 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
2199 (*cond_<optab><mode>_any_const): New patterns.
2201 2019-08-15 Martin Liska <mliska@suse.cz>
2204 * cgraph.c (cgraph_node::remove): When setting
2205 n->origin = NULL for all nested functions, reset
2208 2019-08-15 Martin Liska <mliska@suse.cz>
2210 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
2213 2019-08-15 Martin Liska <mliska@suse.cz>
2216 * passes.c (order): Remove.
2217 (uid_hash_t): Likewise).
2218 (remove_cgraph_node_from_order): Remove from set
2219 of pointers (cgraph_node *).
2220 (insert_cgraph_node_to_order): New.
2221 (duplicate_cgraph_node_to_order): New.
2222 (do_per_function_toporder): Register all 3 cgraph hooks.
2223 Skip removed_nodes now as we know about all of them.
2225 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
2227 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
2228 <case E_V8QImode>: Use vector_set path for
2229 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2230 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
2231 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2233 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2235 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
2237 2019-08-14 Martin Sebor <msebor@redhat.com>
2239 PR tree-optimization/91294
2240 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
2241 source length as exact.
2243 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2245 * doc/extend.texi: Add "noinit" attribute documentation.
2246 * doc/sourcebuild.texi: Add noinit effective target documentation.
2247 * varasm.c (default_section_type_flags): Add support for "noinit"
2249 (default_elf_select_section): Add support for "noinit" attribute.
2250 * config/msp430/msp430.c (msp430_attribute_table): Remove
2253 2019-08-14 Richard Biener <rguenther@suse.de>
2254 Uroš Bizjak <ubizjak@gmail.com>
2257 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
2259 (scalar_chain::smode): New member.
2260 (scalar_chain::vmode): Likewise.
2261 (dimode_scalar_chain): Rename to...
2262 (general_scalar_chain): ... this.
2263 (general_scalar_chain::general_scalar_chain): Take mode arguments.
2264 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
2265 base with TImode and V1TImode.
2266 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
2267 (general_scalar_chain::vector_const_cost): Adjust for SImode
2269 (general_scalar_chain::compute_convert_gain): Likewise. Add
2270 {S,U}{MIN,MAX} support.
2271 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
2272 (general_scalar_chain::make_vector_copies): Likewise. Handle
2273 non-DImode chains appropriately.
2274 (general_scalar_chain::convert_reg): Likewise.
2275 (general_scalar_chain::convert_op): Likewise.
2276 (general_scalar_chain::convert_insn): Likewise. Add
2277 fatal_insn_not_found if the result is not recognized.
2278 (convertible_comparison_p): Pass in the scalar mode and use that.
2279 (general_scalar_to_vector_candidate_p): Likewise. Rename from
2280 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
2281 (scalar_to_vector_candidate_p): Remove by inlining into single
2283 (general_remove_non_convertible_regs): Rename from
2284 dimode_remove_non_convertible_regs.
2285 (remove_non_convertible_regs): Remove by inlining into single caller.
2286 (convert_scalars_to_vector): Handle SImode and DImode chains
2287 in addition to TImode chains.
2288 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
2289 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
2290 (*<maxmin>di3_doubleword): Likewise.
2292 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2293 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2295 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
2296 (*cond_bic<mode>_any): New patterns.
2298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2300 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
2301 take the equivalent mask, as well as a bit count.
2302 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
2303 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
2304 (aarch64_sve_pred_and_operand): New predicates.
2305 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
2307 * config/aarch64/aarch64-sve.md
2308 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
2309 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
2311 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2313 * config/aarch64/aarch64-sve.md
2314 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2315 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
2318 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2319 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2321 * config/aarch64/aarch64-sve.md
2322 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
2323 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
2325 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2326 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2328 * config/aarch64/aarch64-sve.md
2329 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
2330 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
2332 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2334 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
2335 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
2338 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2339 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2341 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
2343 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2346 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2347 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2348 (aarch64_print_operand): Add support for %I.
2349 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2350 Bitcast floating-point constants to the corresponding integer constant.
2351 (aarch64_float_const_representable_p): Handle vectors as well
2353 (aarch64_expand_sve_vcond): Make sure that the operands are valid
2354 for the new vcond_mask_<mode><vpred> expander.
2355 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
2356 test aarch64_float_const_representable_p.
2357 (aarch64_sve_reg_or_dup_imm): New predicate.
2358 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
2359 gen_vcond_mask_<mode><vpred> instead of
2360 gen_aarch64_sve_dup<mode>_const.
2361 (vcond_mask_<mode><vpred>): Turn into a define_expand that
2362 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
2363 for operands 1 and 2 respectively. Force operand 2 into a
2364 register if operand 1 is a register. Fold old define_insn...
2365 (aarch64_sve_dup<mode>_const): ...and this define_insn...
2366 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
2367 floating-point constants that can be moved as integers. Add
2368 alternatives for MOV /M and FMOV /M.
2369 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
2370 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
2371 1 and 2 respectively.
2372 * config/aarch64/constraints.md (Ufc): Handle vectors as well
2374 (vss): New constraint.
2376 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2378 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
2379 (aarch64_sve_float_maxmin_operand): New predicates.
2380 * config/aarch64/constraints.md (vsB): New constraint.
2382 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
2383 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
2385 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
2386 Use aarch64_sve_float_maxmin_operand for operand 2.
2387 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
2388 Add alternatives for the constant forms.
2390 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2392 * config/aarch64/constraints.md (vsb): New constraint.
2393 (vsm): Generalize description.
2394 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
2396 (sve_imm_con): Handle smax, smin, umax and umin.
2397 (sve_imm_prefix): New code attribute.
2398 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
2399 (aarch64_sve_vsb_operand): New predicates.
2400 (aarch64_sve_mul_immediate): Rename to...
2401 (aarch64_sve_vsm_immediate): ...this.
2402 (aarch64_sve_mul_operand): Rename to...
2403 (aarch64_sve_vsm_operand): ...this.
2404 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
2405 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
2406 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
2407 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
2408 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
2409 add movprfx support for the immediate alternatives.
2410 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
2412 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
2415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2417 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
2418 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
2419 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
2421 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2423 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2424 (optab, sve_int_op): Handle them.
2425 * config/aarch64/aarch64-sve.md: Expand comment.
2427 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2429 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2430 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2431 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2433 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2435 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2436 (aarch64_expand_sve_const_pred_trn): New functions.
2437 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2438 use the above functions when the parameter is true.
2439 (aarch64_expand_sve_const_pred): Update call accordingly.
2440 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2442 (@aarch64_sve_<perm_insn><mode>): ...this.
2444 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2446 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2448 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2449 (aarch64_sve_emit_int_cmp): New functions.
2450 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2451 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2452 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2453 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2454 (UNSPEC_PRED_Z): New unspec.
2455 (set_clobber_cc_nzc): Delete.
2456 * config/aarch64/aarch64-sve.md: Add a block comment about
2458 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2459 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2460 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2462 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2463 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2464 check for compatible predicates.
2465 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2466 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2467 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2470 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2472 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2473 * config/aarch64/aarch64-sve.md: Add a section describing it.
2474 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2475 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2476 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2477 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2478 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2479 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2480 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2481 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2482 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2483 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2484 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2485 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2486 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2487 (aarch64_evpc_rev_local): Update accordingly.
2489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2491 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2493 (SVE_BHSI, SVE_SDI): Tweak comment.
2494 (SVE_HSDI): Likewise. Fix definition.
2495 (SVE_SDF): New mode iterator.
2496 (elem_bits): New mode attribute.
2497 (SVE_COND_FCVT): New int iterator.
2498 * config/aarch64/aarch64-sve.md
2499 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2500 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2501 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2502 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2503 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2504 ...these new patterns.
2505 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2506 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2507 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2509 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2510 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2511 ...these new patterns.
2512 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2513 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2514 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2515 ...this new pattern.
2516 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2517 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2518 ...this new pattern.
2519 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2521 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2523 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2524 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2525 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2527 (optab, su): Handle them.
2528 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2529 * config/aarch64/aarch64-sve.md
2530 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2531 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2532 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2533 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2534 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2535 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2536 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2537 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2538 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2540 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2541 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2542 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2543 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2544 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2545 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2546 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2547 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2548 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2549 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2550 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2551 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2552 of UNSPEC_FLOAT_CONVERT.
2553 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2554 aarch64_sve_extend<mode><Vwide>2.
2556 2019-08-14 Richard Biener <rguenther@suse.de>
2559 * config/i386/i386-features.c
2560 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2561 individual instruction gain. Fix reg-reg copy GRP cost. Use
2562 ix86_cost->sse_op for vector instruction costs.
2564 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2566 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2567 (cmp_op): Handle it.
2568 (SVE_COND_FP_CMP): Rename to...
2569 (SVE_COND_FP_CMP_I0): ...this.
2570 (SVE_FP_CMP): Remove.
2571 * config/aarch64/aarch64-sve.md
2572 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2573 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2574 using unspecs to represent the comparison.
2575 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2576 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2578 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2579 (aarch64_unspec_cond_code): Move after integer code. Handle
2581 (aarch64_emit_sve_predicated_cond): Replace with...
2582 (aarch64_emit_sve_fp_cond): ...this new function.
2583 (aarch64_emit_sve_or_conds): Replace with...
2584 (aarch64_emit_sve_or_fp_conds): ...this new function.
2585 (aarch64_emit_sve_inverted_cond): Replace with...
2586 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2587 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2589 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2591 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2592 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2593 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2594 SVE_HSD instead of SVE_SD.
2596 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2597 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2599 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2601 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2603 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2604 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2605 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2606 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2607 (*div<SVE_F:mode>3): Generalize to...
2608 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2610 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2611 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2613 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2615 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2617 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2619 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2621 * config/aarch64/aarch64-sve.md: Add a block comment about the
2622 handling of predicated FP operations.
2623 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2624 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2625 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2626 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2627 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2629 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2630 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2632 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2633 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2634 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2635 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2636 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2637 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2638 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2639 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2640 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2641 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2642 strictness operands. Use aarch64_sve_pred_dominates_p to check
2643 whether the predicate on the conditional operation is suitable
2644 for merging. Split patterns into the canonical equal-predicate form.
2645 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2646 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2648 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2649 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2651 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2652 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2653 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2655 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2656 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2659 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2660 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2662 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2663 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2664 actually has, rather than relying on REG_EQUAL notes.
2665 Make the insn operand order match the SVE operand order.
2666 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2667 the SVE operand order.
2669 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2671 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2672 (aarch64_emit_set_immediate): Likewise.
2673 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2674 (aarch64_pfalse_reg): Likewise.
2675 (aarch64_convert_sve_data_to_pred): New function.
2676 (aarch64_sve_move_pred_via_while): Take an optional target register
2677 and the required register mode.
2678 (aarch64_expand_sve_const_pred_1): New function.
2679 (aarch64_expand_sve_const_pred): Likewise.
2680 (aarch64_expand_mov_immediate): Build an all-true predicate
2681 if the significant bits of the immediate are all true. Use
2682 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2683 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2684 before register allocation.
2685 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2686 a VNx16BI PTRUE when splitting the memory alternative.
2687 (vec_duplicate<mode>): Update accordingly.
2688 (*pred_cmp<cmp_op><mode>): Rename to...
2689 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2691 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2693 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2694 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2695 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2696 (UNSPEC_PTEST): New unspec.
2697 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2698 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2699 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2700 * config/aarch64/aarch64-sve.md: Add a new section describing the
2701 handling of UNSPEC_PTEST.
2702 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2703 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2704 (ptest_ptrue<mode>): Replace with...
2705 (aarch64_ptest<mode>): ...this new pattern.
2706 (cbranch<mode>4): Update after above changes.
2707 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2709 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2710 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2711 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2713 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2716 * builtins.c (builtin_with_linkage_p): New function.
2717 * builtins.h (builtin_with_linkage_p): New function.
2718 * symtab.c (write_symbol): Remove redundant assert.
2719 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2720 Remove FIXME and use builtin_with_linkage_p.
2722 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2725 * tree-core.h (function_decl::function_code): Change type to
2727 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2728 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2729 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2730 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2732 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2733 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2734 (fndecl_built_in_p): Change the type of the "name" argument to
2736 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2737 after check for DECL_BUILT_IN_CLASS.
2738 * cgraphclones.c (build_function_decl_skip_args): Use
2739 set_decl_built_in_function.
2740 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2741 * ipa-split.c (split_function): Likewise.
2742 * langhooks.c (add_builtin_function_common): Likewise.
2743 * omp-simd-clone.c (simd_clone_create): Likewise.
2744 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2745 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2746 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2748 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2749 instead of DECL_FUNCTION_CODE.
2750 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2751 instead of DECL_FUNCTION_CODE.
2752 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2753 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2754 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2755 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2756 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2757 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2758 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2759 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2760 (alpha_gimple_fold_builtin): Likewise.
2761 * config/arc/arc.c (arc_expand_builtin): Likewise.
2762 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2763 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2764 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2765 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2766 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2767 * config/frv/frv.c (frv_expand_builtin): Likewise.
2768 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2769 (gcn_expand_builtin): Likewise.
2770 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2771 (fold_builtin_cpu): Likewise.
2772 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2773 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2774 (ix86_gimple_fold_builtin): Likewise.
2775 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2776 (ia64_expand_builtin): Likewise.
2777 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2778 * config/mips/mips.c (mips_expand_builtin): Likewise.
2779 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2780 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2781 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2782 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2783 * config/pa/pa.c (pa_expand_builtin): Likewise.
2784 * config/pru/pru.c (pru_expand_builtin): Likewise.
2785 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2786 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2788 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2789 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2790 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2791 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2792 (rs6000_builtin_reciprocal): Likewise.
2793 * config/rx/rx.c (rx_expand_builtin): Likewise.
2794 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2795 * config/s390/s390.c (s390_expand_builtin): Likewise.
2796 * config/sh/sh.c (sh_expand_builtin): Likewise.
2797 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2798 (sparc_fold_builtin): Likewise.
2799 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2800 * config/spu/spu.c (spu_expand_builtin): Likewise.
2801 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2802 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2803 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2804 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2805 (xtensa_expand_builtin): Likewise.
2807 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2810 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2811 before the DECL_FUNCTION_CODE.
2812 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2813 to check for a BUILT_IN_ALLOCA call.
2814 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2815 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2816 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2817 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2818 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2819 for BUILT_IN_NORMAL functions.
2820 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2821 test for BUILT_IN_TM_ABORT.
2822 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2823 to check for a BUILT_IN_STACK_RESTORE call.
2824 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2825 * tree-ssa-threadedge.c
2826 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2827 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2828 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2829 test for a BUILT_IN_NORMAL call instead of a negative test for
2830 an internal function call.
2832 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2834 * tree.h (build_vector_a_then_b): Declare.
2835 * tree.c (build_vector_a_then_b): New function.
2836 * fold-const-call.c (fold_while_ult): Likewise.
2837 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2838 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2839 (aarch64_svpattern): New enum.
2840 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2841 constants through aarch64_expand_mov_immediate.
2842 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2843 than general_operand as the predicate for operand 1.
2844 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2845 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2847 (simd_immediate_info::simd_immediate_info): New overload that
2848 takes a scalar_int_mode and an svpattern.
2849 (simd_immediate_info::u): Add a "pattern" field.
2850 (svpattern_token): New function.
2851 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2852 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2853 (aarch64_sve_move_pred_via_while): New functions.
2854 (aarch64_expand_mov_immediate): Try using
2855 aarch64_sve_move_pred_via_while for predicates that contain N ones
2856 followed by M zeros but that do not correspond to a VLnnn pattern.
2857 (aarch64_sve_pred_valid_immediate): New function.
2858 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2859 with PTRUE and PFALSE.
2860 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2863 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2865 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2867 (darwin_override_options): Likewise.
2868 * config/darwin.h: Likewise.
2869 * config/darwin.opt: Likewise.
2870 * config/i386/i386.c (output_pic_addr_const): Likewise.
2871 * config/rs6000/darwin.h: Likewise.
2872 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2873 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2874 ... this TARGET_MACHO_SYMBOL_STUBS.
2875 (FUNCTION_PROFILER):Likewise.
2876 * config/i386/i386.h: Likewise.
2878 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2880 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2881 <case E_V2SImode>: Use vec_extr path for
2882 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2883 <case E_V8QImode>: Ditto.
2884 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2885 Use SWI48 mode iterator. Use %k to output operand 0.
2886 (*mmx_pextrw): New insn pattern.
2887 (*mmx_pextrb): Ditto.
2888 (*mmx_pextrb_zext): Ditto.
2890 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2892 * target.def (libc_has_function, libc_has_fast_function): Improve
2893 documentation strings.
2894 * doc/tm.texi: Regenerate.
2896 2019-08-13 Caroline Tice <cmtice@google.com>
2899 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2900 vtv_end.o or vtv_end_preinit.o files if !static.
2902 2019-08-13 Olivier Hainque <hainque@adacore.com>
2904 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2906 2019-08-13 Olivier Hainque <hainque@adacore.com>
2908 * rtlanal.c (tablejump_casesi_pattern): New function, to
2909 determine if a tablejump insn is a casesi dispatcher. Extracted
2910 from patch_jump_insn.
2911 * rtl.h (tablejump_casesi_pattern): Declare.
2912 * cfgrtl.c (patch_jump_insn): Use it.
2913 * dwarf2cfi.c (create_trace_edges): Use it.
2915 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2918 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2919 operand is larger than a long int.
2921 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2923 * machmode.h (opt_mode::else_mode): New function.
2924 (opt_mode::else_blk): Use it.
2925 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2926 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2927 (aarch64_gen_stepped_int_parallel): Likewise.
2928 (aarch64_stepped_int_parallel_p): Likewise.
2929 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2931 * config/aarch64/aarch64.c
2932 (aarch64_expand_sve_widened_duplicate): Delete.
2933 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2934 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2935 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2936 argument. Use early returns in the !CONST_INT_P handling.
2937 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2938 than handling some inline.
2939 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2941 (aarch64_simd_container_mode): ...here.
2942 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2943 (aarch64_sve_ld1rq_operand_p): New functions.
2944 * config/aarch64/predicates.md (descending_int_parallel)
2945 (aarch64_sve_ld1rq_operand): New predicates.
2946 * config/aarch64/constraints.md (UtQ): New constraint.
2947 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2948 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2949 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2950 (@aarch64_sve_reinterpret<mode>): New expander.
2951 (*aarch64_sve_reinterpret<mode>): New pattern.
2952 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2953 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2954 (*sve_ld1rq<Vesize>): Replace with...
2955 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2957 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2959 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2962 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2964 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2965 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2966 (msp430_check_path_for_devices): New.
2967 (parse_devices_csv_1): New.
2968 (parse_devices_csv): New.
2969 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2970 MCU data in devices.csv before using the hard-coded data.
2971 Warn if devices.csv isn't found and the MCU wasn't found in the
2972 hard-coded data either.
2973 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2974 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2975 Search for devices.csv on -I and -L paths.
2976 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2977 msp430_set_driver_var.
2978 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2980 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2981 searched for devices.csv.
2982 (mwarn-devices-csv): Document option.
2984 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2986 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2987 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2988 Use a single Dn alternative instead of separate Dz and Dm
2989 alternatives. Use aarch64_output_sve_move_immediate.
2990 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2992 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2994 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2995 (aarch64_output_ptrue): Delete.
2997 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2999 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
3001 (simd_immediate_info::value, simd_immediate_info::step)
3002 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
3004 (simd_immediate_info::u): ...this new union.
3005 (simd_immediate_info::simd_immediate_info): Update accordingly.
3006 (aarch64_output_simd_mov_immediate): Likewise.
3007 (aarch64_output_sve_mov_immediate): Likewise.
3009 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3011 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
3013 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
3014 (msp430_select_cpu): New spec function.
3015 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
3017 * config/msp430/msp430-devices.c: New file.
3018 * config/msp430/msp430-devices.h: New file.
3019 * config/msp430/msp430.c: Remove msp430_mcu_data.
3020 (msp430_option_override): Use msp430_extract_mcu_data to extract
3022 (msp430_use_f5_series_hwmult): Likewise.
3023 (use_32bit_hwmult): Likewise.
3024 (msp430_no_hwmult): Likewise.
3025 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
3027 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
3029 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
3030 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
3031 Remove hard-coded MCU multilib data.
3033 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3035 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
3036 based on the mode instead of testing properties of it.
3038 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3040 * doc/md.texi: Document the x and y constraints for AArch64.
3041 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
3042 (FP_LO8_REGS): New reg_class.
3043 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
3044 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
3045 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
3046 * config/aarch64/predicates.md (aarch64_simd_register): Use
3047 FP_REGNUM_P instead of checking the classes manually.
3048 * config/aarch64/constraints.md (y): New constraint.
3050 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3052 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
3053 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
3054 * config/aarch64/aarch64-simd.md
3055 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
3056 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
3057 from the asm template.
3058 * config/aarch64/aarch64-sve.md
3059 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
3060 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
3061 from the asm template.
3062 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
3063 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
3064 from the asm template.
3065 * config/aarch64/aarch64-simd-builtins.def: Update comment.
3067 2019-08-13 Martin Liska <mliska@suse.cz>
3069 * value-prof.c (gimple_ic_transform): Add new line.
3070 Print details with MSG_NOTE.
3072 2019-08-13 Martin Liska <mliska@suse.cz>
3074 * doc/invoke.texi: Document automatic detection of jobserver.
3075 * lto-wrapper.c (run_gcc): Detect jobserver always.
3077 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3079 * config/i386/i386-expand.c (ix86_expand_vector_set)
3080 <case E_V2SImode>: Use vec_merge path for
3081 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3082 <case E_V8QImode>: Ditto.
3083 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
3084 (*mmx_pinsrb): Ditto.
3086 2019-08-12 Jakub Jelinek <jakub@redhat.com>
3090 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
3091 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
3092 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
3093 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
3094 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
3096 2019-08-12 Richard Biener <rguenther@suse.de>
3099 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
3102 2019-08-12 Richard Biener <rguenther@suse.de>
3105 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
3106 lang_mask option, always use CL_DRIVER.
3107 (get_options_from_collect_gcc_options): Adjust.
3108 (find_and_merge_options): Likewise.
3109 (run_gcc): Likewise.
3111 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3113 * ipa-predicate.c (add_condition): Restore inverted test.
3115 2019-08-10 Jakub Jelinek <jakub@redhat.com>
3117 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
3118 (enum omp_clause_device_type_kind): New enum.
3119 (struct tree_omp_clause): Add subcode.device_type_kind.
3120 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
3121 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3122 for device_type clause.
3123 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
3124 * tree-pretty-print.c (dump_omp_clause): Likewise.
3127 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
3130 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
3132 * reload1.c (finish_spills): Do not check ira_conflicts_p when
3133 handling spilled pseudos.
3135 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3138 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
3139 to preserve the contents of the original insns.
3141 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3143 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
3144 (addsi3_compare_op2): Likewise.
3146 2019-08-09 Martin Liska <mliska@suse.cz>
3148 * alias.c (alias_ptr_types_compatible_p): Strengten
3149 type comparison in LTO mode.
3151 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
3154 * tree-tailcall.c (find_tail_calls): Reject calls that might
3155 read from an escaped RESULT_DECL.
3157 2019-08-09 Martin Liska <mliska@suse.cz>
3159 * doc/invoke.texi: Document the option value.
3160 * lto-wrapper.c (run_gcc): Set auto_parallel
3161 only with -flto=auto.
3163 2019-08-09 Martin Liska <mliska@suse.cz>
3165 * opts.c (common_handle_option): Error for an invalid argument
3168 2019-08-09 Martin Liska <mliska@suse.cz>
3170 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
3171 use dump_printf to report optimization.
3172 (sem_variable::merge): Likwise.
3173 (sem_item_optimizer::merge_classes): Use dump_printf to report
3176 2019-08-09 Martin Liska <mliska@suse.cz>
3178 * value-prof.c (gimple_divmod_fixed_value_transform):
3179 Use dump_printf_loc.
3180 (gimple_mod_pow2_value_transform): Likewise.
3181 (gimple_mod_subtract_transform): Likewise.
3182 (init_node_map): Likewise.
3183 (gimple_ic_transform): Likewise.
3184 (gimple_stringops_transform): Likewise.
3186 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3188 * doc/extend.texi: Add const qualifier to ld intrinsics.
3190 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3192 * config/rs6000/dfp.md (D64_D128): Rename to ...
3193 (DDTD): ... this, throughout.
3194 (dfp_suffix): Rename to ...
3195 (q): ... this, throughout.
3197 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3199 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
3200 (dfp_suffix): Ditto.
3201 (adddd3, addtd3): Merge to ...
3202 (add<mode>3 for D64_D128): ... this.
3203 (subdd3, subtd3): Merge to ...
3204 (sub<mode>3 for D64_D128): ... this.
3205 (muldd3, multd3): Merge to ...
3206 (mul<mode>3 for D64_D128): ... this.
3207 (divdd3, divtd3): Merge to ...
3208 (div<mode>3 for D64_D128): ... this.
3209 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
3210 (*cmp<mode>_internal1 for D64_D128): ... this.
3211 (ftruncdd2, ftrunctd2): Merge to ...
3212 (ftrunc<mode>2 for D64_D128): ... this.
3213 (fixdddi2, fixtddi2): Merge to ...
3214 (fix<mode>di2 for D64_D128): ... this.
3216 2019-08-08 Jim Wilson <jimw@sifive.com>
3219 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
3220 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
3221 Pass into recursive call.
3222 (riscv_flatten_aggregate_argument): New arg. Pass to
3223 riscv_flatten_aggregate_field.
3224 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
3225 riscv_flatten_aggregate_argument twice, with false and true as last
3226 arg. Process result twice. Compare results and warn if different.
3227 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
3229 2019-08-08 Martin Liska <mliska@suse.cz>
3232 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
3233 * lto-wrapper.c (jobserver_active_p): Likewise.
3235 2019-08-08 Martin Liska <mliska@suse.cz>
3237 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
3238 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
3239 (create_version_clone_with_body): Likewise.
3241 2019-08-08 Jakub Jelinek <jakub@redhat.com>
3243 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
3244 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
3245 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
3246 GOVD_EXPLICIT flags.
3247 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
3248 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
3249 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
3250 call install_var_field with mask 11 instead of 3.
3251 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
3252 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
3254 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3256 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
3257 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
3259 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3261 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
3262 MOVPRFX alternatives. Make the GPR alternatives more expensive
3265 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3267 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
3268 Disparage the GPR alternative relative to the FPR one.
3269 Fix handling of 8-bit and 16-bit FPR values.
3271 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3273 * config/aarch64/iterators.md (BITWISEV): Delete.
3274 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
3275 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
3276 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3277 UNSPEC_FMINNMV, UNSPEC_FMINV.
3278 (bit_reduc_op): Delete.
3279 (sve_int_op): New int attribute.
3280 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3281 UNSPEC_FMINNMV, UNSPEC_FMINV.
3282 * config/aarch64/aarch64-sve.md
3283 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3284 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3285 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
3286 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
3287 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
3288 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
3290 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
3291 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
3292 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
3293 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
3294 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
3297 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3299 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
3300 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
3301 (fms<mode>4, *fms<mode>4): Replace with...
3302 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3303 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
3304 Use unspecs instead of rtx codes.
3305 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
3306 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
3308 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3310 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
3312 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
3313 * config/aarch64/aarch64-sve.md
3314 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
3315 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
3316 use a single unspec for the rhs.
3317 (*<su><maxmin><mode>3): Delete.
3318 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
3320 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3322 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
3323 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
3324 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
3325 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
3326 (optab, sve_fp_op): Handle them.
3327 (SVE_FP_UNARY): Delete.
3328 (optab): Remove sqrt entry.
3329 (sve_fp_op): Remove neg, abs and sqrt entries.
3330 (SVE_COND_FP_UNARY): New int iterator.
3331 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
3332 (*<frint_pattern><mode>2): Delete.
3333 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3334 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3335 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3336 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3338 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3340 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
3342 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3344 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3345 (UNSPEC_COND_FADD): ...this.
3346 (UNSPEC_COND_SUB): Rename to...
3347 (UNSPEC_COND_FSUB): ...this.
3348 (UNSPEC_COND_MUL): Rename to...
3349 (UNSPEC_COND_FMUL): ...this.
3350 (UNSPEC_COND_DIV): Rename to...
3351 (UNSPEC_COND_FDIV): ...this.
3352 (UNSPEC_COND_MAX): Rename to...
3353 (UNSPEC_COND_FMAXNM): ...this.
3354 (UNSPEC_COND_MIN): Rename to...
3355 (UNSPEC_COND_FMINNM): ...this.
3356 (UNSPEC_COND_LT): Rename to...
3357 (UNSPEC_COND_FCMLT): ...this.
3358 (UNSPEC_COND_LE): Rename to...
3359 (UNSPEC_COND_FCMLE): ...this.
3360 (UNSPEC_COND_EQ): Rename to...
3361 (UNSPEC_COND_FCMEQ): ...this.
3362 (UNSPEC_COND_NE): Rename to...
3363 (UNSPEC_COND_FCMNE): ...this.
3364 (UNSPEC_COND_GE): Rename to...
3365 (UNSPEC_COND_FCMGE): ...this.
3366 (UNSPEC_COND_GT): Rename to...
3367 (UNSPEC_COND_FCMGT): ...this.
3368 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
3369 (sve_fp_op_rev): Update accordingly.
3370 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
3372 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3374 * config/aarch64/aarch64-sve.md: Reorganize contents and add
3376 * config/aarch64/check-sve-md.awk: New file.
3377 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
3378 (insn-conditions.md): Depend on it.
3380 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
3383 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
3384 (*negsi2_cmpz_zext): Ditto.
3386 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3388 * config/aarch64/iterators.md (commutative): Remove.
3390 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
3393 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
3394 processing COLLECT_GCC_OPTIONS.
3395 (run_gcc): Likewise.
3397 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3399 PR tree-optimization/91109
3400 * lra-remat.c (update_scratch_ops): Remove assignment of the
3403 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3405 * data-streamer.h (streamer_write_poly_uint64): Declare.
3406 (streamer_read_poly_uint64): Likewise.
3407 * data-streamer-in.c (streamer_read_poly_uint64): New function.
3408 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
3409 * ipa-predicate.h (condition::size): Turn into a poly_int64.
3410 (add_condition): Take a poly_int64 size.
3411 * ipa-predicate.c (add_condition): Likewise.
3412 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
3413 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
3414 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
3415 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
3416 condition::size as a poly_int64.
3417 (unmodified_parm_1): Take a poly_int64 size pointer.
3418 (unmodified_parm): Likewise.
3419 (unmodified_parm_or_parm_agg_item): Likewise.
3420 (set_cond_stmt_execution_predicate): Update accordingly.
3421 (set_switch_stmt_execution_predicate): Likewise.
3422 (will_be_nonconstant_expr_predicate): Likewise.
3423 (will_be_nonconstant_predicate): Likewise.
3424 (inline_read_section): Stream condition::size as a poly_int.
3425 (ipa_fn_summary_write): Likewise.
3427 2019-08-07 Martin Liska <mliska@suse.cz>
3429 * fold-const.c (twoval_comparison_p): Replace int
3430 with bool as a return type.
3431 (simple_operand_p): Likewise.
3432 (operand_equal_p): Replace int with bool as a return type.
3433 * fold-const.h (operand_equal_p): Likewise.
3435 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3437 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3438 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3439 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3440 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3441 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3442 * tree-pretty-print.c (dump_omp_clause): Likewise.
3443 * tree-nested.c (convert_nonlocal_omp_clauses,
3444 convert_local_omp_clauses): Likewise.
3445 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3447 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3448 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3449 clause with array or reference to array types, no matter what type
3450 except for reference it has.
3452 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3454 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3456 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3458 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3459 (arch_canonicalize): Support rv32g and rv64g and fix error
3462 2019-08-06 Martin Liska <mliska@suse.cz>
3464 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3465 and DECL_IS_OPERATOR_DELETE_P.
3467 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3469 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3470 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3471 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3472 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3473 (gimplify_omp_for): Don't do C++ random access iterator clause
3474 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3475 don't predetermine the artificial iterator in case of C++ random
3476 access iterators as lastprivate, but private. For OMP_LOOP, force
3477 bind expr around simd body and force for_pre_body before the
3478 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3479 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3480 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3481 diff var of C++ random access iterators. Handle
3482 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3483 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3484 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3485 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3486 * omp-low.c (lower_rec_input_clauses): For
3487 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3488 variables instead of default constructing them.
3489 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3490 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3491 is_taskloop_ctx check from the assert to the guarding condition.
3493 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3495 * config/riscv/multilib-generator: (canonical_order): New.
3496 (arch_canonicalize): Dito.
3497 Apply arch_canonicalize for alts.
3499 2019-08-05 Martin Sebor <msebor@redhat.com>
3501 * doc/extend.texi (Common Variable Attributes): Document alias
3504 2019-08-05 Marek Polacek <polacek@redhat.com>
3506 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3507 * doc/invoke.texi: Document -Wcomma-subscript.
3509 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3511 * tree-core.h (tree_function_decl): Make function_code an
3512 independent field. Group the remaining bitfields into bytes
3513 and move decl_type so that it contines to be at a byte boundary.
3514 Leave 12 bits for future expansion.
3516 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3518 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3519 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3520 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3523 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3525 * gimple.h (gimple_move_vops): Declare.
3526 * gimple.c (gimple_move_vops): New function
3527 * gimple-fold.c (replace_call_with_call_and_fold)
3528 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3529 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3530 (gimple_fold_call): Use it.
3531 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3532 * tree-call-cdce.c (use_internal_fn): Likewise.
3533 * tree-if-conv.c (predicate_load_or_store): Likewise.
3534 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3535 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3536 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3537 (update_call_from_tree): Likewise.
3538 * tree-vect-stmts.c (vectorizable_load): Likewise.
3539 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3541 2019-08-05 Martin Liska <mliska@suse.cz>
3544 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3546 (eliminate_unnecessary_stmts): Likewise.
3548 2019-08-05 Richard Biener <rguenther@suse.de>
3551 * fold-const.c (get_array_ctor_element_at_index): Create
3552 offset_ints according to the sign of the index type and treat
3553 that as signed if it is obviously so.
3555 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3558 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3559 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3560 _mm256_storeu2_m128i): New function.
3562 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3564 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3565 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3567 2019-08-05 Alan Modra <amodra@gmail.com>
3570 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3571 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3573 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3575 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3576 bug that was fixed in Tcl 8.6.1.
3578 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3580 * config/rs6000/future.md: New file.
3581 * config/rs6000/rs6000.md: Include future.md.
3582 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3584 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3586 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3587 check to use targetm.slow_unaligned_access instead.
3589 * function.c (assign_param_data_one): Remove unused data members.
3591 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3593 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3594 build_distinct_type_copy.
3595 (simd_clone_adjust_argument_types): Ditto.
3596 (simd_clone_adjust): Call build_distinct_type_copy here.
3597 (expand_simd_clones): Ditto.
3599 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3602 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3604 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3606 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3607 from 'const void *'.
3608 (sort_locs_in_loop_postorder_cmp): Likewise.
3610 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3612 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3613 (hot-bb-count-ws-permille): Likewise.
3614 (hot-bb-frequency-fraction): Likewise.
3615 (unlikely-bb-count-fraction): Likewise.
3616 * params.def (hot-bb-count-fraction): Rework description.
3617 (hot-bb-count-ws-permille): Likewise.
3618 (hot-bb-frequency-fraction): Likewise.
3619 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3620 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3622 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3625 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3628 2019-08-02 Richard Biener <rguenther@suse.de>
3630 * vec.h (vec::sort): Add gcc_qsort_r support.
3631 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3632 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3633 to gcc_qsort_r style callback.
3634 (sort_locs_in_loop_postorder_cmp): Likewise.
3635 (analyze_memory_references): Use gcc_sort_r interfaces.
3636 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3638 2019-08-02 Martin Liska <mliska@suse.cz>
3641 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3642 to detect working job server.
3643 (driver::detect_jobserver): Test whether jobserver
3644 is active from GCC driver. That will prevent situation where
3645 GCC is invoked from a LD plugin and the linker already uses
3646 file descriptors suggested by make. That leads to a wrong
3648 * gcc.h (driver): Add detect_jobserver.
3649 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3650 not scanning for --jobserver-auth prefix.
3652 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3654 PR tree-optimization/91201
3655 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3656 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3659 2019-08-01 Martin Sebor <msebor@redhat.com>
3662 * tree.c (type_initializer_zero_p): Define.
3663 * tree.h (type_initializer_zero_p): New function.
3665 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3667 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3669 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3671 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3672 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3673 * predict.c (maybe_hot_count_p): Likewise.
3674 (maybe_hot_bb_p): Tweak comment.
3675 (maybe_hot_edge_p): Likewise.
3676 (probably_never_executed): Likewise. Minor tweak.
3677 (probably_never_executed_bb_p): Likewise.
3678 (unlikely_executed_edge_p): Likewise.
3679 (probably_never_executed_edge_p): Likewise.
3680 (optimize_function_for_size_p): Likewise.
3681 (optimize_function_for_speed_p): Likewise.
3682 (function_optimization_type): Likewise.
3683 (optimize_bb_for_size_p): Likewise.
3684 (optimize_bb_for_speed_p): Likewise.
3685 (bb_optimization_type): Likewise.
3686 (optimize_edge_for_size_p): Likewise.
3687 (optimize_edge_for_speed_p): Likewise.
3688 (optimize_insn_for_size_p): Likewise.
3689 (optimize_insn_for_speed_p): Likewise.
3690 (optimize_loop_for_size_p): Likewise.
3691 (optimize_loop_for_speed_p): Likewise.
3692 (optimize_loop_nest_for_speed_p): Likewise.
3693 (optimize_loop_nest_for_size_p): Likewise.
3694 (predictable_edge_p): Likewise.
3695 (handle_missing_profiles): Minor tweak.
3697 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3699 * config/rs6000/predicates.md (pcrel_external_address): Update
3702 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3705 * config/i386/mmx.md (usadv8qi): New expander.
3707 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3710 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3711 with reserved names that are in a system header.
3713 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3715 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3716 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3717 (*vec_extractv2si_0_zext): Ditto.
3718 (*vec_extractv2si_1): Add (rm,x) alternative.
3719 (*vec_extractv2si_1_zext): New insn pattern.
3720 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3723 2019-08-01 Richard Biener <rguenther@suse.de>
3725 * domwalk.c (bb_postorder): Remove static variable.
3726 (cmp_bb_postorder): Adjust.
3727 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3728 (dom_walker::walk): Adjust.
3730 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3732 * sort.cc (sort_r_ctx): New struct.
3733 (reorder23): Make templated on context type.
3735 (cmp1): Ditto. Adjust signature.
3738 [CHECKING_P] (cmp2to3): New static function. Use it...
3739 (gcc_qsort) [CHECKING_P]: ...here.
3740 (gcc_sort_r): New function.
3741 * system.h (sort_r_cmp_fn): New function typedef.
3742 (qsort_chk): Adjust signature.
3743 (gcc_sort_r): Declare.
3744 * vec.c (qsort_chk_error): Adjust.
3745 (qsort_chk): Adjust.
3747 2019-08-01 Richard Biener <rguenther@suse.de>
3749 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3750 (compute_antic): Localize it here.
3752 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3754 * common/config/riscv/riscv-common.c: Check -march string ends
3757 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3759 * ipa-devirt.c (type_warning_cmp): Make static.
3760 (decl_warning_cmp): Ditto.
3762 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3765 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3766 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3767 use of deleted rs6000_dejagnu_cpu_index variable.
3768 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3769 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3770 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3771 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3772 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3773 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3775 2019-07-31 Richard Biener <rguenther@suse.de>
3777 PR tree-optimization/91280
3778 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3779 Decompose MEM_REF manually for offset handling.
3781 2019-07-31 Richard Biener <rguenther@suse.de>
3783 PR tree-optimization/91293
3784 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3787 2019-07-31 Matt Thomas <matt@3am-software.com>
3788 Nick Hudson <nick@nthcliff.demon.co.uk>
3789 Matthew Green <mrg@eterna.com.au>
3790 Maya Rashish <coypu@sdf.org>
3792 * config.gcc (hppa*-*-netbsd*): New target.
3793 * config/pa/pa-netbsd.h: New file.
3794 * config/pa/pa32-netbsd.h: New file.
3796 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3798 PR tree-optimization/91201
3799 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3801 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3803 * config/gcn/gcn-valu.md
3804 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3805 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3806 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3807 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3808 struct ilist. Add nops for delayeduse insns.
3809 * config/gcn/gcn.md (delayeduse): New attribute.
3810 (*movbi): Remove s_waitcnt from stores.
3811 (*mov<mode>_insn): Likewise.
3812 (*movti_insn): Likewise. Add delayeduse attribute.
3813 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3814 (atomic_store<mode>): Remove or adjust s_waitcnt.
3816 2019-07-31 Richard Biener <rguenther@suse.de>
3818 * vr-values.h (vr_values::swap_vr_value): New.
3819 (vr_values::free_value_range): likewise.
3820 * vr-values.c (vr_values::swap_vr_value): Implement.
3821 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3822 Do not return a range or take a var.
3823 (evrp_range_analyzer::stack): Change back to recording a non-const
3825 * gimple-ssa-evrp-analyze.c
3826 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3828 (evrp_range_analyzer::pop_to_marker): Adjust.
3829 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3830 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3831 no longer needed value-range.
3833 2019-07-31 Martin Liska <mliska@suse.cz>
3835 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3836 have size and (or) alignment as 2nd and later arguments.
3837 Mark all of them as necessary.
3839 2019-07-31 Richard Biener <rguenther@suse.de>
3841 PR tree-optimization/91178
3842 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3845 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3847 PR tree-optimization/91201
3848 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3849 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3851 (reduc_plus_scal_<mode>): Improve formatting by introducing
3854 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3856 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3857 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3858 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3859 (aarch64_init_tme_builtins): New.
3860 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3861 (aarch64_expand_builtin_tme): New.
3862 (aarch64_expand_builtin): Handle TME builtins.
3863 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3864 __ARM_FEATURE_TME when enabled.
3865 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3866 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3868 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3869 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3871 (tstart, ttest, tcommit, tcancel): New instructions.
3872 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3873 (__tcancel, __ttest): New.
3874 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3875 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3876 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3877 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3878 * config/arm/types.md: Add new tme type attr.
3879 * doc/invoke.texi: Document "tme".
3881 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3883 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3884 warn_unused_result attribute.
3885 (cmse_check_address_range): Add warn_unused_result attribute.
3887 2019-07-31 Richard Biener <rguenther@suse.de>
3889 PR tree-optimization/91257
3890 * tree-vrp.c (union_ranges): Unify equality and less tests
3891 by using compare_values. Re-order cheap tests first.
3893 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3896 * gimplify.c (gimplify_omp_for): If for class iterator on
3897 distribute parallel for there is no data sharing clause
3898 on inner_for_stmt, look for private clause on combined
3899 parallel too and if found, move it to inner_for_stmt.
3901 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3903 * lra-int.h (lra_operand_data): Remove early_clobber field.
3904 (lra_insn_reg): Likewise.
3905 * lra.c (debug_operand_data): Update accordingly.
3906 (setup_operand_alternative): Likewise.
3907 (new_insn_reg): Likewise. Remove early_clobber parameter.
3908 (collect_non_operand_hard_regs): Update call accordingly.
3909 Don't assign to lra_insn_reg::early_clobber.
3910 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3911 and update calls to new_insn_reg.
3912 (lra_update_insn_regno_info): Update calls accordingly.
3913 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3914 alternative number as a parameter and test whether the operand
3915 is earlyclobbered in that particular alternative.
3916 (process_alt_operands): Update call accordingly. Use per-alternative
3917 checks for earyclobber here too.
3918 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3919 against zero for IRA_UNKNOWN_ALT.
3921 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3923 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3925 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3927 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3928 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3930 2019-07-30 Martin Liska <mliska@suse.cz>
3933 * cgraph.c (cgraph_edge::make_direct): Use
3934 edge->indirect_unknown_callee as edge->resolve_speculation can
3935 deallocate edge which is this pointer.
3937 2019-07-30 Richard Biener <rguenther@suse.de>
3939 PR tree-optimization/91257
3940 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3942 2019-07-30 Martin Liska <mliska@suse.cz>
3944 * doc/invoke.texi: Document new behavior.
3945 * lto-wrapper.c (cpuset_popcount): New function
3946 is a copy of libgomp/config/linux/proc.c.
3947 (init_num_threads): Likewise.
3948 (run_gcc): Automatically detect core count for -flto.
3949 (jobserver_active_p): New function.
3951 2019-07-30 Richard Biener <rguenther@suse.de>
3953 PR tree-optimization/91257
3954 * bitmap.h (bitmap_ior_into_and_free): Declare.
3955 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3956 whether to add the unliked element to the freelist.
3957 (bitmap_list_insert_element_after): Add defaulted param for
3958 an already allocated element.
3959 (bitmap_ior_into_and_free): New function.
3960 * tree-ssa-structalias.c (condense_visit): Reduce the
3961 ponts-to and edge bitmaps of the SCC members in a
3962 logarithmic fashion rather than all to one.
3964 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3966 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3967 parameter. When nonnull, make sure that the addition or subtraction
3968 has the same condition.
3969 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3970 for CFN_COND_MUL too.
3972 2019-07-30 Richard Biener <rguenther@suse.de>
3974 PR tree-optimization/91291
3975 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3978 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3981 * omp-low.c (global_nonaddressable_vars): New variable.
3982 (use_pointer_for_field): For global decls, if they are non-addressable,
3983 remember it in the global_nonaddressable_vars bitmap, if they are
3984 addressable and in the global_nonaddressable_vars bitmap, ignore their
3985 TREE_ADDRESSABLE bit.
3986 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3987 vars in global_nonaddressable_vars bitmap.
3988 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3991 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3992 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3993 comparison to unsigned HOST_WIDE_INT before shifting it left.
3995 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3997 * config/i386/i386.md (movstrict<mode>): Use register_operand
3998 predicate for operand 0. Add expander condition. Assert that
3999 operand 0 is a SUBREG RTX.
4000 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
4001 Update operand constraints and insn condition.
4002 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
4003 (zero_extendqihi2_and): Do not call gen_movstrictqi.
4004 (*setcc_qi_slp): Use register_operand predicate for operand 0.
4005 Update operand 0 constraints.
4006 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
4008 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4010 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
4011 when -m{code,data}-region are used without -mlarge.
4012 * config/msp430/msp430.c (msp430_option_override): Error when a
4013 non-default code or data region is used without -mlarge.
4014 (msp430_section_attr): Emit a warning and do not add upper/lower/either
4015 attributes when they are used without -mlarge.
4017 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4020 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
4022 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4025 * wide-int.h (generic_wide_int::sext_elt): New function.
4026 * inchash.h (hash::add_wide_int): Use it instead of elt.
4028 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4030 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
4032 * config/arm/arm.md (<crc_variant>): Rename to...
4033 (arm_<crc_variant>): ... This.
4034 (<cdp>): Rename to...
4035 (arm_<cdp>): ... This.
4036 (<ldc>): Rename to...
4037 (arm_<ldc>): ... This.
4038 (<stc>): Rename to...
4039 (arm_<stc>): ... This.
4040 (<mcr>): Rename to...
4041 (arm_<mcr>): ... This.
4042 (<mrc>): Rename to...
4043 (arm_<mrc>): ... This.
4044 (<mcrr>): Rename to...
4045 (arm_<mcrr>): ... This.
4046 (<mrrc>): Rename to...
4047 (arm_<mrrc>): ... This.
4049 2019-07-29 Richard Biener <rguenther@suse.de>
4051 PR tree-optimization/91257
4052 * tree-ssa-sccvn.h (struct vn_avail): New.
4053 (struct vn_ssa_aux): Add avail member.
4054 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
4055 member, add m_avail_freelist one.
4056 (rpo_elim::~rpo_elim): Remove.
4057 (rpo_elim::eliminate_avail): Adjust to new avail tracking
4059 (rpo_elim::eliminate_push_avail): Likewise.
4060 (do_unwind): Likewise.
4061 (do_rpo_vn): Likewise.
4063 2019-07-29 Richard Biener <rguenther@suse.de>
4065 PR tree-optimization/91257
4066 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
4067 most cases, instead call compare_values which handles the
4068 symbolic ranges we handle specially.
4069 (compare_values_warnv): Do not call operand_less_p but open-code
4070 the effective fold calls. Avoid converting so much.
4072 2019-07-29 Martin Liska <mliska@suse.cz>
4074 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
4075 remove LHS of operator new call. It's handled latter.
4077 2019-07-29 Richard Biener <rguenther@suse.de>
4079 PR tree-optimization/91267
4080 * vr-values.c (vr_values::update_value_range): Add early return
4081 for effectively VARYING lattice entry.
4083 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4086 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
4087 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
4088 necessary if keep_all_vdefs_p is true.
4089 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
4090 that keep_all_vdefs_p is false.
4091 (mark_all_reaching_defs_necessary): Likewise.
4092 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
4094 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4096 * common.opt (Og): Change the initial value of flag_dse to 0.
4097 * opts.c (default_options_table): Move OPT_ftree_dse from
4098 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
4099 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
4100 entry before the OPT_ftree_sra entry.
4101 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
4102 of flags disabled by Og.
4104 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4106 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
4109 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4111 * doc/sourcebuild.texi (check-function-bodies): Document.
4113 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4115 * simplify-rtx.c (simplify_const_unary_operation): Fold a
4116 VEC_DUPLICATE of a fixed-length vector even if the result
4117 is variable-length. Likewise fold a duplicate of a
4118 variable-length vector if the variable-length vector is
4119 itself a duplicate of a fixed-length sequence.
4120 (test_vector_ops_duplicate): Test more cases.
4122 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4124 * vector-builder.h (vector_builder): Add a shape template parameter.
4125 (vector_builder::new_unary_operation): New function, generalizing
4126 the old tree_vector_builder function.
4127 (vector_builder::new_binary_operation): Likewise.
4128 (vector_builder::binary_encoded_nelts): Likewise.
4129 * int-vector-builder.h (int_vector_builder): Update template
4130 parameters to vector_builder.
4131 (int_vector_builder::shape_nelts): New function.
4132 * rtx-vector-builder.h (rtx_vector_builder): Update template
4133 parameters to vector_builder.
4134 (rtx_vector_builder::shape_nelts): New function.
4135 (rtx_vector_builder::nelts_of): Likewise.
4136 (rtx_vector_builder::npatterns_of): Likewise.
4137 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
4138 * tree-vector-builder.h (tree_vector_builder): Update template
4139 parameters to vector_builder.
4140 (tree_vector_builder::shape_nelts): New function.
4141 (tree_vector_builder::nelts_of): Likewise.
4142 (tree_vector_builder::npatterns_of): Likewise.
4143 (tree_vector_builder::nelts_per_pattern_of): Likewise.
4144 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
4145 (tree_vector_builder::new_binary_operation): Delete.
4146 (tree_vector_builder::binary_encoded_nelts): Likewise.
4147 * simplify-rtx.c: Include rtx-vector-builder.h.
4148 (distributes_over_addition_p): New function.
4149 (simplify_const_unary_operation)
4150 (simplify_const_binary_operation): Generalize handling of vector
4151 constants to include variable-length vectors.
4152 (test_vector_ops_series): Add more tests.
4154 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
4157 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
4158 than INDENTIFIER_POINTER.
4160 2019-07-28 Martin Liska <mliska@suse.cz>
4163 * cgraph.c (symbol_table::create_edge): Always allocate
4165 (symbol_table::free_edge): Store summary_id to
4166 edge_released_summary_ids if != -1;
4167 * cgraph.h (NEXT_FREE_NODE): Remove.
4168 (SET_NEXT_FREE_NODE): Likewise.
4169 (NEXT_FREE_EDGE): Likewise.
4170 (symbol_table::release_symbol): Store summary_id to
4171 cgraph_released_summary_ids if != -1;
4172 (symbol_table::allocate_cgraph_symbol): Always allocate
4175 2019-07-28 Alan Modra <amodra@gmail.com>
4177 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
4180 2019-07-28 Alan Modra <amodra@gmail.com>
4183 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
4185 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
4186 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
4187 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
4189 2019-07-28 Alan Modra <amodra@gmail.com>
4192 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
4193 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
4194 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
4195 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
4196 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
4197 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
4198 in asm_default spec.
4199 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
4200 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
4202 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4204 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
4206 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4209 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
4210 * config/aarch64/aarch64-option-extensions.def: Add new comments
4211 and restore easier to read options.
4213 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4215 * convert.c (convert_to_real_1): Move part of conversion code...
4216 * match.pd: ...To here.
4218 2019-07-26 Martin Jambor <mjambor@suse.cz>
4221 * ipa-inline-transform.c (check_speculations_1): New function.
4222 (push_all_edges_in_set_to_vec): Likewise.
4223 (check_speculations): Use check_speculations_1, new parameter
4225 (inline_call): Pass new_edges to check_speculations.
4226 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
4228 (speculation_useful_p): Early return true if edge is inlined, remove
4229 later checks for inline_failed.
4231 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
4233 PR rtl-optimization/91223
4234 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
4235 matching with INOUT operand.
4237 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4239 * stmt.c (expand_case): Try to narrow the index type if it's larger
4240 than a word. Tidy up.
4242 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4244 * cif-code.def (NEVER_CALL): New code.
4245 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
4246 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
4248 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
4250 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
4251 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4253 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4255 * ipa-devirt.c (add_type_duplicate): Fix return value.
4257 2019-07-25 Richard Biener <rguenther@suse.de>
4259 * tree-vrp.c (extract_range_from_multiplicative_op): Add
4260 type parameter and use it instead of guessing expression
4261 type from the first operand.
4262 (extract_range_from_binary_expr): Pass expr_type down.
4264 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4266 * config/arm/arm.md (SATrev): Change to code attribute.
4267 (*satsi_<SAT:code>): Adjust for the above.
4268 (*satsi_<SAT:code>_shift): Likewise.
4270 2019-07-25 Richard Biener <rguenther@suse.de>
4272 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
4273 Make value_range * temporary const.
4274 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
4276 (evrp_range_analyzer::record_ranges_from_): Likewise.
4277 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
4278 deal with having recorded a const one.
4279 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
4280 Return a const value_range *.
4281 (evrp_range_analyzer::pop_value_range): Likewise.
4282 (evrp_range_analyzer::stack): Record const value_range *s.
4283 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
4285 * gimple-ssa-sprintf.c (get_int_range): Likewise.
4286 (format_integer): Likewise.
4287 (sprintf_dom_walker::handle_gimple_call): Likewise.
4288 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
4289 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
4290 (vrp_prop::get_value_range): Adjust.
4291 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
4292 modifying the lattice in-place.
4293 (vrp_prop::visit_stmt): Likewise.
4294 * vr-values.c (vr_values::get_lattice_entry): New private method.
4295 (vr_values::get_value_range): Wrap it and return a const
4297 (vr_values::set_def_to_varying): New.
4298 (vr_values::set_defs_to_varying): Use it.
4299 (vr_values::update_value_range): Likewise.
4300 (vr_values::vrp_stmt_computes_nonzero): Adjust.
4301 (values::op_with_constant_singleton_va): Likewise.
4302 (vr_values::extract_range_for_var_from_co): Likewise.
4303 (vr_values::extract_range_from_ssa_name): Likewise.
4304 (vr_values::extract_range_from_cond_expr): Likewise.
4305 (vr_values::extract_range_basic): Likewise.
4306 (compare_ranges): Take const value_range *, adjust.
4307 (compare_range_with_value): Likewise.
4308 (vrp_valueize): Adjust.
4309 (vrp_valueize_1): Likewise.
4310 (vr_values::get_vr_for_comparison): Return a const value_range *.
4311 (vr_values::compare_name_with_value): Adjust.
4312 (vr_values::compare_names): Likewise.
4313 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4315 (vr_values::vrp_evaluate_conditional): Likewise.
4316 (find_case_label_ranges): Take a const value_range *.
4317 (vr_values::vrp_visit_switch_stmt): Adjust.
4318 (vr_values::extract_range_from_phi_node): Likewise.
4319 (vr_values::simplify_div_or_mod_using_ran): Likewise.
4320 (vr_values::simplify_abs_using_ranges): Likewise.
4321 (test_for_singularity): Take a const value_range *.
4322 (range_fits_type_p): Likewise.
4323 (vr_values::simplify_cond_using_ranges_1): Adjust.
4324 (vr_values::simplify_cond_using_ranges_2): Likewise.
4325 (vr_values::simplify_switch_using_ranges): Likewise.
4326 (vr_values::simplify_float_conversion_usi): Likewise.
4327 (vr_values::two_valued_val_range_p): Likewise.
4328 * vr-values.h (vr_values::get_value_range): Return a const
4330 (vr_values::set_def_to_varying): New.
4331 (vr_values::get_lattice_entry): New private method.
4332 (vr_values::get_vr_for_comparison): Return a const value_range *.
4334 2019-07-25 Martin Liska <mliska@suse.cz>
4335 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
4338 * common.opt: Add -fallocation-dce
4339 * gimple.c (gimple_call_operator_delete_p): New.
4340 * gimple.h (gimple_call_operator_delete_p): Likewise.
4341 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
4342 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4343 DECL_IS_OPERATOR_DELETE_P.
4344 (mark_all_reaching_defs_necessary_1): Likewise.
4345 (propagate_necessity): Likewise.
4346 (eliminate_unnecessary_stmts): Handle
4347 gimple_call_operator_delete_p.
4348 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4349 Add packing of OPERATOR_DELETE.
4350 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4352 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
4353 (DECL_SET_IS_OPERATOR_DELETE): New.
4354 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
4356 2019-07-25 Martin Liska <mliska@suse.cz>
4358 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
4359 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
4360 * coverage.c (coverage_begin_function): Likewise.
4361 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
4362 * gimple.c (gimple_call_nonnull_result_p): Likewise.
4363 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
4364 (sem_item::hash_referenced_symbol_properties): Likewise.
4365 * lto-streamer-out.c (hash_tree): Likewise.
4366 * predict.c (expr_expected_value_1): Likewise.
4367 * tree-inline.c (expand_call_inline): Likewise.
4368 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
4369 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
4370 * tree-core.h (enum function_decl_type): New enum.
4371 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
4372 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
4373 (set_function_decl_type): Likewise.
4374 (DECL_IS_OPERATOR_NEW_P): New.
4375 (DECL_SET_IS_OPERATOR_NEW): Likewise.
4376 (DECL_LAMBDA_FUNCTION): Likewise.
4377 (DECL_LAMBDA_FUNCTION_P): Likewise.
4378 (DECL_IS_OPERATOR_NEW): Remove.
4379 (DECL_SET_LAMBDA_FUNCTION): Likewise.
4381 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
4383 * ipa-profile.c (get_most_common_single_value): Use
4384 get_nth_most_common_value.
4385 * profile.c (sort_hist_value): New function.
4386 (compute_value_histograms): Call sort_hist_value to sort the
4387 values after loading from disk.
4388 * value-prof.c (get_most_common_single_value): Rename to ...
4389 get_nth_most_common_value. Add input params n, return
4390 the n_th value and count.
4391 (gimple_divmod_fixed_value_transform): Use
4392 get_nth_most_common_value.
4393 (gimple_ic_transform): Likewise.
4394 (gimple_stringops_transform): Likewise.
4395 * value-prof.h (get_most_common_single_value): Add input params
4398 2019-07-25 Richard Biener <rguenther@suse.de>
4400 PR tree-optimization/91236
4401 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4402 size of CONSTRUCTOR write. Fix buffer size we pass to
4405 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4407 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
4408 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
4411 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4413 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
4414 explicitly disabled with --disable-initfini-array.
4416 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4418 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
4421 2019-07-24 Martin Sebor <msebor@redhat.com>
4423 PR tree-optimization/91183
4424 PR tree-optimization/86688
4425 * builtins.c (compute_objsize): Handle MEM_REF.
4426 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4427 (get_min_string_length): Remove.
4428 (count_nonzero_bytes): New function.
4429 (handle_char_store): Rename...
4430 (handle_store): to this. Handle multibyte stores via integer types.
4431 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4434 2019-07-24 Martin Sebor <msebor@redhat.com>
4437 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4438 (diagnostic_report_diagnostic): Same.
4439 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4440 (diagnostic_context::lang_mask): New data member.
4441 * ipa-pure-const.c (suggest_attribute): Use
4442 lang_hooks.option_lang_mask ().
4443 * opts-common.c (option_enabled): Handle new argument.
4444 (get_option_state): Pass an additional argument.
4445 * opts.c (print_filtered_help): Print supported languages for
4446 unsupported options. Adjust printing of current state.
4447 * opts.h (option_enabled): Add argument.
4448 * toplev.c (print_switch_values): Use lang_mask.
4449 (general_init): Set global_dc->lang_mask.
4451 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4454 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4456 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4458 * cgraphunit.c (symbol_table::compile): Start and stop
4459 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4460 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4462 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4464 * gimplify.c (flag_instrument_functions_exclude_p): Include
4465 namespace/class information in the printable name.
4466 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4467 to tokens entered into the vector.
4469 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4471 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4472 (get_static_chain): Call it instead of build_simple_mem_ref.
4473 (get_frame_field): Likewise.
4474 (get_nonlocal_debug_decl): Likewise.
4475 (convert_nonlocal_reference_op): Likewise.
4477 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4479 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4481 (arc_compute_frame_size): Millicode is disabled when compiling
4483 (arc_return_address_register): Likewise.
4484 (arc_compute_function_type): Likewise.
4485 (arc_compute_frame_size): Likewise.
4486 (secondary_reload_info): Likewise.
4487 (arc_get_unalign): Likewise.
4488 (arc_can_use_return_insn): Declare.
4489 * config/arc/arc.c (AUX_LP_START): Define
4490 (AUX_LP_END): Likewise.
4491 (arc_frame_info): Update gmask member to 64-bit datum.
4492 (GMASK_LEN): Update.
4493 (arc_compute_function_type): Make it static, move it forward.
4494 (arc_must_save_register): Update, consider the extra regs.
4495 (arc_compute_millicode_save_restore_regs): Update to use the 64
4497 (arc_compute_frame_size): Likewise.
4498 (arc_enter_leave_p): Likewise.
4499 (arc_save_callee_saves): Likewise.
4500 (arc_restore_callee_saves): Likewise.
4501 (arc_save_callee_enter): Likewise.
4502 (arc_restore_callee_leave): Likewise.
4503 (arc_save_callee_milli): Likewise.
4504 (arc_restore_callee_milli): Likewise.
4505 (arc_expand_prologue): Add new interrupt handling.
4506 (arc_return_address_register): Make it static, move it forward.
4507 (arc_expand_epilogue): Add new interrupt handling.
4508 (arc_get_unalign): Delete.
4509 (arc_epilogue_uses): Make sure we do not remove the extra
4510 saved/restored registers when interrupt.
4511 (arc_can_use_return_insn): New function.
4512 (push_reg): Likewise.
4513 (pop_reg): Likewise.
4514 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4516 (arc_restore_callee_saves): Likewise, but restoring.
4517 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4518 (R33_REG): Likewise.
4519 (R34_REG): Likewise.
4520 (R35_REG): Likewise.
4521 (R36_REG): Likewise.
4522 (R37_REG): Likewise.
4523 (R38_REG): Likewise.
4524 (R39_REG): Likewise.
4525 (R45_REG): Likewise.
4526 (R46_REG): Likewise.
4527 (R47_REG): Likewise.
4528 (R48_REG): Likewise.
4529 (R49_REG): Likewise.
4530 (R50_REG): Likewise.
4531 (R51_REG): Likewise.
4532 (R52_REG): Likewise.
4533 (R53_REG): Likewise.
4534 (R54_REG): Likewise.
4535 (R55_REG): Likewise.
4536 (R56_REG): Likewise.
4537 (R58_REG): Likewise.
4538 (type): Add rtie attribute.
4539 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4540 (movsi_insn): Accept moves to lp_count.
4541 (rtie): Update pattern.
4542 (simple_return): Simplify it, don't use this pattern as a return
4544 (arc600_rtie): New pattern.
4545 (p_return_i): Clean up.
4547 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4549 * config/arc/predicates.md (move_src_operand): Consider lp_count
4552 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4554 * config/s390/predicates.md (addv_const_operand): New predicate.
4555 * config/s390/s390-modes.def (CCO): New condition code mode.
4556 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4557 (s390_branch_condition_mask): Likewise.
4558 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4559 ("mulv<mode>4"): New expanders.
4560 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4561 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4562 pattern definitions.
4564 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4567 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4568 (define_predicates): Add entry for uniform_vector_p.
4569 (vec_same_elem_p): New match pattern.
4571 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4574 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4575 * config/i386/darwin32-biarch.h .. to here.
4576 * config/i386/darwin64-biarch.h: Adjust comments.
4577 * config/rs6000/darwin32-biarch.h: Likewise.
4578 * config/rs6000/darwin64-biarch.h: Likewise.
4579 * config.gcc: Missed commit from r273746
4580 (*-*-darwin*): Don't include CPU t-darwin here.
4581 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4582 an error message if i686-darwin configuration is attempted for
4585 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4588 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4589 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4590 an error message if i686-darwin configuration is attempted for
4592 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4593 (powerpc-*-darwin*): Use biarch files where needed.
4594 (powerpc64-*-darwin*): Likewise.
4595 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4596 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4598 * config/i386/darwin32-biarch.h: New.
4599 * config/i386/darwin64.h: Rename.
4600 * config/i386/darwin64-biarch.h: To this.
4601 * config/i386/t-darwin: Rename.
4602 * config/i386/t-darwin32-biarch: To this.
4603 * config/i386/t-darwin64: Rename.
4604 * config/i386/t-darwin64-biarch: To this.
4605 * config/rs6000/darwin32-biarch.h: New.
4606 * config/rs6000/darwin64.h: Rename.
4607 * config/rs6000/darwin64-biarch.h: To this.
4608 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4610 * config/rs6000/t-darwin8: Rename.
4611 * config/rs6000/t-darwin32-biarch: To this.
4612 * config/rs6000/t-darwin64 Rename.
4613 * config/rs6000/t-darwin64-biarch: To this.
4615 2019-07-23 Martin Sebor <msebor@redhat.com>
4617 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4619 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4621 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4622 (rh): New alias for it.
4624 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4626 * gdbhooks.py: Pass replace=True to
4627 gdb.printing.register_pretty_printer.
4629 2019-07-23 Richard Biener <rguenther@suse.de>
4632 * lto-streamer-in.c (input_function): Drop inline-entry markers
4633 that ended up with an unknown location block.
4635 2019-07-23 Richard Biener <rguenther@suse.de>
4637 PR tree-optimization/83518
4638 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4639 init from a constant even when partial defs are already recorded.
4641 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4643 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4644 * config/i386/znver1.md: Enable patterns for znver2 and add store
4645 variants which use extra AGU unit.
4647 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4649 * config/i386/i386-options.c (ix86_option_override_internal): Default
4650 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4651 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4654 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4656 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4657 (znver2_costs): Update 256 bit SSE costs and multiplication.
4659 2019-07-23 Jan Beulich <jbeulich@suse.com>
4661 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4662 Require only AVX512F.
4663 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4664 alternative expanding to vpternlog.
4666 2019-07-23 Martin Liska <mliska@suse.cz>
4668 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4669 to -flto in dwarf producer string.
4671 2019-07-23 Richard Biener <rguenther@suse.de>
4673 * tree-cfg.c (label_for_bb): Remove global var.
4674 (main_block_label): Take label_for_bb as argument.
4675 (cleanup_dead_labels_eh): Likewise, adjust.
4676 (cleanup_dead_labels): Adjust.
4678 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4680 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4681 Configurations): Add documentation for __builtin_mtfsf.
4683 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4685 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4686 * config/riscv/riscv.c (riscv_constant_alignment): Use
4687 riscv_align_data_type.
4688 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4689 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4690 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4691 * config/riscv/riscv.opt (malign-data): New.
4692 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4694 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4696 * cgraph.c (dump_graphviz): New function.
4697 * cgraph.h (dump_graphviz): New function.
4698 * symtab.c (dump_graphviz): New function.
4700 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4702 * config/aarch64/aarch64-simd.md
4703 (*aarch64_simd_sra<mode>): New.
4704 * config/aarch64/iterators.md
4705 (SHIFTRT): New iterator.
4706 (sra_op): New attribute.
4708 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4710 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4711 callee-saved regs R4->R10 in an interrupt function that calls another
4714 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4716 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4717 (_mm_blendv_epi8): New.
4719 2019-07-22 Richard Biener <rguenther@suse.de>
4721 PR tree-optimization/91221
4722 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4723 restrict partial-def handling of empty constructors and
4724 memset to refs with known offset.
4726 2019-07-22 Jan Beulich <jbeulich@suse.com>
4728 * config/i386/sse.md (ternlogsuffix): New.
4729 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4731 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4733 2019-07-22 Martin Liska <mliska@suse.cz>
4735 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4737 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4739 2019-07-22 Martin Liska <mliska@suse.cz>
4741 * lto-section-in.c (lto_get_section_data):
4742 Use new function get_compression.
4743 * lto-streamer-out.c (produce_lto_section): Use
4744 set_compression to encode compression algorithm.
4745 * lto-streamer.h (struct lto_section): Do not
4746 use bitfields in the format.
4748 2019-07-22 Martin Liska <mliska@suse.cz>
4751 * opts-common.c (decode_cmdline_option): Decode
4752 argument of -Werror and check it for a wrong language.
4753 * opts-global.c (complain_wrong_lang): Remove such case.
4755 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4757 * config/arc/arc.c (prepare_move_operands): Always use an
4758 intermediate register when storing a TLS symbols.
4760 2019-07-22 Stafford Horne <shorne@gmail.com>
4762 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4765 2019-07-22 Stafford Horne <shorne@gmail.com>
4767 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4768 and munordered-float validations.
4769 * config/or1k/constraints.md (d): New register constraint.
4770 * config/or1k/predicates.md (fp_comparison_operator): New.
4771 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4773 (or1k_expand_compare): Normalize unordered comparisons.
4774 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4775 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4776 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4777 * config/or1k/or1k.md (type): Add fpu.
4778 (fpu): New instruction reservation.
4779 (F, f, fr, fi, FI, FOP, fop): New.
4780 (<fop><F:mode>3): New ALU instruction definition.
4781 (float<fi><F:mode>2): New conversion instruction definition.
4782 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4783 (fpcmpcc): New code iterator.
4784 (*sf_fp_insn): New instruction definition.
4785 (cstore<F:mode>4): New expand definition.
4786 (cbranch<F:mode>4): New expand definition.
4787 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4788 munordered-float): New options.
4789 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4792 2019-07-22 Stafford Horne <shorne@gmail.com>
4794 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4795 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4796 documenation to be more clear.
4797 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4799 * config/or1k/or1k.opt (mrori): New option.
4800 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4801 msfimm, mshftimm): Rewrite documentation to be more clear.
4802 * config/or1k/or1k.md (insn_support): Add ror and rori.
4803 (enabled): Add conditions for ror and rori.
4804 (rotrsi3): Replace condition for shftimm with ror and rori.
4806 2019-07-22 Stafford Horne <shorne@gmail.com>
4809 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4810 (extend<mode>si2): Update predicate.
4811 * config/or1k/predicates.md (volatile_mem_operand): New.
4812 (reg_or_mem_operand): New.
4814 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4816 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4817 * config/rs6000/rs6000-call.c: ... to here.
4819 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4821 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4824 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4826 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4828 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4830 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4832 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4834 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4835 (any_memory_operand): New predicate.
4836 (reg_or_mem_operand): Use it.
4838 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4841 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4843 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4845 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4846 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4848 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4850 * tree.def (OMP_LOOP): New tree code.
4851 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4852 (enum omp_clause_bind_kind): New enum.
4853 (struct tree_omp_clause): Add subcode.bind_kind.
4854 * tree.h (OMP_LOOP_CHECK): Rename to ...
4855 (OMP_LOOPING_CHECK): ... this.
4856 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4857 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4858 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4859 (OMP_CLAUSE_BIND_KIND): Define.
4860 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4861 bind clause entries.
4862 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4863 * tree-pretty-print.c (dump_omp_clause): Likewise.
4864 (dump_generic_node): Handle OMP_LOOP.
4865 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4866 (in_omp_construct): New variable.
4867 (is_gimple_stmt): Handle OMP_LOOP.
4868 (gimplify_scan_omp_clauses): For lastprivate don't set
4869 check_non_private if code == OMP_LOOP. For reduction clause
4870 on OMP_LOOP combined with parallel or teams propagate as shared
4871 on the combined construct. Handle OMP_CLAUSE_BIND.
4872 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4873 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4874 for constructs from a loop construct to gimplify_scan_omp_clauses.
4875 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4876 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4877 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4878 to match the implicit ORT_TARGET construct around whole body.
4879 Temporarily clear in_omp_construct when processing body.
4880 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4881 etc. temporarily set in_omp_construct when processing body.
4882 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4883 * omp-low.c (struct omp_context): Add loop_p.
4884 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4885 in that the original var might be private.
4886 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4887 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4888 addition of loop construct.
4889 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4891 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4892 lastprivate non-addressable iterator of a collapse(1) simd.
4894 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4896 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4899 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4901 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4902 refer to default conditions. Warn for the 'y' spec which is ignored
4905 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4907 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4908 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4909 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4910 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4911 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4912 init_cumulative_args, rs6000_promote_function_mode,
4913 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4914 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4915 rs6000_function_arg_boundary, rs6000_parm_offset,
4916 rs6000_parm_start, rs6000_arg_size,
4917 rs6000_darwin64_record_arg_advance_flush,
4918 rs6000_darwin64_record_arg_advance_recurse,
4919 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4920 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4921 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4922 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4923 rs6000_finish_function_arg, rs6000_function_arg,
4924 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4925 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4926 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4927 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4928 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4929 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4930 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4931 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4932 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4933 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4934 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4935 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4936 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4937 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4938 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4939 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4940 get_element_number, altivec_expand_vec_set_builtin,
4941 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4942 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4943 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4944 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4945 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4946 rs6000_expand_builtin, rs6000_vector_type,
4947 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4948 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4949 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4951 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4952 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4953 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4954 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4955 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4956 init_cumulative_args, rs6000_promote_function_mode,
4957 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4958 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4959 rs6000_function_arg_boundary, rs6000_parm_offset,
4960 rs6000_parm_start, rs6000_arg_size,
4961 rs6000_darwin64_record_arg_advance_flush,
4962 rs6000_darwin64_record_arg_advance_recurse,
4963 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4964 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4965 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4966 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4967 rs6000_finish_function_arg, rs6000_function_arg,
4968 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4969 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4970 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4971 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4972 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4973 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4974 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4975 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4976 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4977 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4978 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4979 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4980 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4981 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4982 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4983 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4984 get_element_number, altivec_expand_vec_set_builtin,
4985 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4986 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4987 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4988 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4989 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4990 rs6000_expand_builtin, rs6000_vector_type,
4991 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4992 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4993 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4994 to here from rs6000.c.
4995 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4996 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4997 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4998 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4999 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
5000 rs6000_return_in_memory, rs6000_return_in_msb,
5001 rs6000_pass_by_reference, setup_incoming_varargs,
5002 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
5003 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
5004 rs6000_function_arg_padding, rs6000_function_arg,
5005 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
5006 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
5007 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
5008 rs6000_passes_long_double, rs6000_passes_vector,
5009 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
5010 altivec_builtin_mask_for_load) Add declarations.
5011 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
5012 * config/config.gcc: Add new source file rs6000-call.c to garbage
5013 collector and extra_objs.
5015 2019-07-19 Jeff Law <law@redhat.com>
5017 PR tree-optimization/86061
5018 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
5019 strncpy. Drop some trivial dead code.
5020 (maybe_trim_memstar_call): Handle strncpy.
5022 2019-07-19 Richard Biener <rguenther@suse.de>
5024 PR tree-optimization/91211
5025 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5026 memset encoding size.
5028 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
5031 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
5033 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
5036 * ipa-inline.c (recursive_inlining): Fix limits check.
5038 2019-07-19 Richard Biener <rguenther@suse.de>
5040 PR tree-optimization/91200
5041 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
5042 no PHI nodes in middle-bb.
5044 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
5046 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
5048 * config/aarch64/aarch64-option-extensions.def: Likewise.
5050 2019-07-19 Jakub Jelinek <jakub@redhat.com>
5053 * function.c (insert_temp_slot_address): Store into the hash table
5054 a copy of address to avoid RTL sharing issues.
5056 2019-07-19 Richard Biener <rguenther@suse.de>
5058 PR tree-optimization/91207
5060 2019-07-17 Richard Biener <rguenther@suse.de>
5062 PR tree-optimization/91178
5063 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5064 loads with a gap larger than the vector size always use
5066 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5067 avoid loading vectors that are only contained in the gap
5068 and thus are not needed.
5070 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5072 * config/i386/i386.md (*addqi_2_slp): Remove.
5073 (*<code>qi_2_slp): Ditto.
5075 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
5077 * config/rs6000/predicates.md (prefixed_mem_operand): Call
5078 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
5079 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
5080 Rename function from rs6000_prefixed_address.
5081 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5083 (TARGET_TOC): Likewise.
5084 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5086 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5088 (TARGET_TOC): Likewise.
5089 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5091 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5093 (TARGET_TOC): Likewise.
5094 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5095 check to require -mcmodel=medium for pc-relative addressing.
5096 (create_TOC_reference): Add assertion for TARGET_TOC.
5097 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
5099 (rs6000_emit_move): Likewise.
5100 (TOC_alias_set): Rename TOC alias set static variable from 'set'
5102 (get_TOC_alias_set): Likewise.
5103 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
5105 (rs6000_can_eliminate): Likewise.
5106 (rs6000_prefixed_address_mode_p): Rename function from
5107 rs6000_prefixed_address.
5108 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
5109 TARGET_HAS_TOC and not pc-relative.
5110 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
5111 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5113 (TARGET_TOC): Likewise.
5114 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5117 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5120 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
5121 for operand 0. Do not use (match_dup) to match operand 1 with
5122 operand 0. Add check in insn constraint that either input operand
5123 matches operand 0. Use SWI12 mode iterator to also handle
5125 (*and<mode>_1_slp): Ditto.
5126 (*<code>qi_1_slp): Ditto.
5127 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
5128 Do not use (match_dup) to match operand 1 with operand 0. Add
5129 check in insn constraint that operand 1 matches operand 0.
5130 Use SWI12 mode iterator to also handle HImode operands.
5131 (*ashl<mode>3_1_slp): Ditto.
5132 (*<shift_insn><mode>3_1_slp): Ditto.
5133 (*<rotate_insn><mode>3_1_slp): Ditto.
5135 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5137 * config/arm/arm-builtins.c
5138 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
5139 (arm_expand_unop_builtin): Likewise.
5140 * config/arm/crypto.md
5141 (crypto_sha1h): Convert from define_insn to define_expand.
5142 (crypto_<crypto_pattern>): Likewise.
5143 (crypto_sha1h_lb): New define_insn.
5144 (crypto_<crypto_pattern>_lb): Likewise.
5146 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5149 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
5150 (vsha1cq_u32): Likewise.
5151 (vsha1pq_u32): Likewise.
5152 (vsha1mq_u32): Likewise.
5153 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
5155 (crypto_sha1c): Correct vec select.
5156 (crypto_sha1m): Likewise.
5157 (crypto_sha1p): Likewise.
5159 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
5161 * config/arm/predicates.md (arm_borrow_operation): New predicate.
5162 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
5163 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
5164 (subdi_zesidi_zesidi): Likewise.
5165 (negdi2_compare, negdi2_insn): Likewise.
5166 (negdi_extensidi): Likewise.
5167 (negdi_zero_extendsidi): Likewise.
5168 (arm_cmpdi_insn): Likewise.
5169 (subsi3_carryin): Use arm_borrow_operation.
5170 (subsi3_carryin_const): Likewise.
5171 (subsi3_carryin_const0): Likewise.
5172 (subsi3_carryin_compare): Likewise.
5173 (subsi3_carryin_compare_const): Likewise.
5174 (subsi3_carryin_compare_const0): Likewise.
5175 (subsi3_carryin_shift): Likewise.
5176 (rsbsi3_carryin_shift): Likewise.
5177 (negsi2_carryin_compare): Likewise.
5179 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
5181 PR tree-optimization/91137
5182 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
5183 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
5184 Init, use and fini the above new field.
5185 (determine_base_object_1): New function.
5186 (determine_base_object): Reimplement using walk_tree.
5188 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
5190 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
5191 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
5192 CLEANUP_FORCE_FAST_DCE is set.
5193 * ifcvt.c (rest_of_handle_if_conversion): Pass
5194 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
5195 if-conversion succeeded.
5197 2019-07-18 Richard Biener <rguenther@suse.de>
5199 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
5200 branches to make code less indented.
5202 2019-07-17 Alexandre Oliva <oliva@adacore.com>
5205 * attribs.c (decls_mismatched_attributes): Simplify the logic
5206 that avoids duplicates and false positives.
5208 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
5210 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
5211 data into data section when generating PIC code.
5212 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
5213 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
5214 generating code for SOM targets earlier than HP-UX 11. Otherwise,
5215 return 2 for SOM and 0 for other targets.
5217 2019-07-17 Jeff Law <law@redhat.com>
5219 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
5220 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
5221 avoid unexpected switch statement fallthru.
5223 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5225 * config/i386/i386.md (*add<dwi>3_doubleword):
5226 Remove redundant constraints.
5227 (*add<mode>_1): Ditto.
5230 (*addqi_1_slp): Ditto.
5231 (*add<mode>_2): Ditto.
5232 (*addv<mode>4): Ditto.
5233 (*sub<dwi>3_doubleword): Ditto.
5234 (*sub<mode>_1): Ditto.
5235 (*subqi_1_slp): Ditto.
5236 (*sub<mode>_2): Ditto.
5237 (*subv<mode>4): Ditto.
5238 (*sub<mode>_3): Ditto.
5239 (@add<mode>3_carry): Ditto.
5240 (@sub<mode>3_carry): Ditto.
5241 (*add<mode>3_cc_overflow_1): Ditto.
5242 (*add<mode>3_zext_cc_overflow_2): Ditto.
5244 (*and<mode>_1): Ditto.
5246 (*andqi_1_slp): Ditto.
5248 (*andqi_2_maybe_si): Ditto.
5249 (*and<mode>_2): Ditto.
5250 (*andqi_2_slp): Ditto.
5251 (*<code><mode>_1): Ditto.
5252 (*<code>qi_1): Ditto.
5253 (*<code>qi_1_slp): Ditto.
5254 (*<code><mode>_2): Ditto.
5255 (*<code>qi_2_slp): Ditto.
5257 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
5259 * alias.c (record_component_aliases): Do not simplify pointed-to
5262 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5264 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
5265 partial reg stall on alternative 2.
5267 2019-07-17 Richard Biener <rguenther@suse.de>
5269 PR tree-optimization/91178
5270 * tree-ssa.c (release_defs_bitset): Iterate from higher to
5271 lower SSA names to avoid quadratic behavior in the common case.
5272 * tree-data-ref.c (split_constant_offset): Add limit argument
5273 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5274 (split_constant_offset_1): Add limit argument and use it to
5275 limit SSA def walking. Optimize the common plus/minus case.
5277 2019-07-17 Richard Biener <rguenther@suse.de>
5279 PR tree-optimization/91178
5280 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5281 loads with a gap larger than the vector size always use
5283 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5284 avoid loading vectors that are only contained in the gap
5285 and thus are not needed.
5287 2019-07-17 Richard Biener <rguenther@suse.de>
5289 PR tree-optimization/91180
5290 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
5291 computation for memset partial defs.
5293 2019-07-17 Jakub Jelinek <jakub@redhat.com>
5295 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
5296 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
5297 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
5298 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
5299 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
5300 * omp-grid.c (grid_process_grid_body,
5301 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
5302 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
5303 == GF_OMP_FOR_KIND_SIMD.
5304 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
5305 check_omp_nesting_restrictions, scan_omp_1_stmt,
5306 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
5307 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
5308 omp_find_scan): Likewise.
5309 * omp-expand.c (expand_omp_for): Likewise.
5310 * omp-general.c (omp_extract_for_data): Likewise.
5312 PR tree-optimization/91157
5313 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
5314 a vector boolean with scalar mode.
5315 (expand_vector_condition): Handle first operand being a vector boolean
5317 (expand_vector_operations_1): For comparisons, don't bail out early
5318 if the return type is vector boolean with scalar mode, but comparison
5319 operand type is not.
5321 2019-07-17 Richard Biener <rguenther@suse.de>
5323 PR tree-optimization/91181
5324 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
5327 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
5329 * config/i386/i386.md (*testdi_1): Match CCZmode for
5330 constants that might have the SImode sign bit set.
5331 (*testqi_1_maybe_si): Remove "!" constraint modifier.
5332 Use correct constraints for pentium pairing.
5333 (*test<mode>_1): Ditto.
5335 2019-07-16 Jeff Law <law@redhat.com>
5337 PR rtl-optimization/91173
5338 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
5339 SSA_NAME with a constant value, fold its value into the offset
5340 and clear the base before calling gen_addr_rtx.
5342 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5344 PR rtl-optimization/91164
5345 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5346 invalidate dominance info.
5348 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5350 * read-md.h (md_reader::record_potential_iterator_use): Add a
5351 file_location parameter.
5352 * read-rtl.c (attribute_use::loc): New field.
5353 (map_attr_string): Take a file_location parameter. Report cases
5354 in which attributes map to multiple distinct values.
5355 (apply_attribute_uses): Update call accordingly.
5356 (md_reader::handle_overloaded_name): Likewise.
5357 (md_reader::apply_iterator_to_string): Likewise. Skip empty
5359 (record_attribute_use): Take a file_location parameter.
5360 Initialize attribute_use::loc.
5361 (md_reader::record_potential_iterator_use): Take a file_location
5362 parameter. Update call to record_attribute_use.
5363 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
5364 (rtx_reader::read_rtx_code): Likewise.
5365 (rtx_reader::read_rtx_operand): Likewise. Record a location
5366 for implicitly-expanded empty strings.
5368 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5370 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
5371 Use file_location instead of separate fields.
5372 (md_reader::set_md_ptr_loc): Take a file_location instead of a
5373 separate filename and line number.
5374 * read-md.c (ptr_loc): As above.
5375 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
5376 (md_reader::fprint_md_ptr_loc): Likewise.
5377 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
5378 instead of a separate filename and line number.
5379 (md_reader::read_string): Update call accordingly.
5381 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5383 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
5384 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5385 leaving the choice between SFDF and P implicit.
5386 (*mov<mode>_update2): Likewise.
5387 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
5388 rather than leaving the choice betweem IBM128 and GPR implicit.
5389 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
5390 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
5392 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
5393 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
5394 * config/rs6000/vsx.md
5395 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
5396 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
5397 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
5398 and VSX_EXTRACT_I implicit.
5400 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5402 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
5403 Explicitly use <MOVEP1:MODE> for the mode attribute.
5405 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
5408 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
5410 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
5413 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
5416 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
5418 * config/i386/i386.md (@test<mode>_ccno_1):
5419 Rename from test<mode>_ccno_1.
5420 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
5421 (*testqi_1_maybe_si): Remove modrm attribute.
5422 (*test<mode>_1): Ditto.
5423 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5424 gen_test_ccno_1 and gen_extend_insn.
5426 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5428 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5431 2019-07-15 Richard Biener <rguenther@suse.de>
5434 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5435 node make sure to replace all uses with something valid.
5437 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5439 PR tree-optimization/88497
5440 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5441 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5442 function undistribute_bitref_for_vector.
5443 (undistribute_bitref_for_vector): New function.
5444 (cleanup_vinfo_map): Likewise.
5445 (sort_by_mach_mode): Likewise.
5447 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5449 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5450 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5451 and testdi_ccno_1 using SWI48 mode attribute.
5452 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5453 x86_64_szext_general_operand.
5454 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5455 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5456 instead of genera_operand mode attribute.
5458 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5460 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5461 fopen and fclose to their respective types.
5462 (DotFn.invoke): Ditto.
5464 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5466 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5467 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5468 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5469 (array_index_predicate): Remove.
5470 (analyze_function_body): Account cost for variable ofsetted array
5472 (estimate_node_size_and_time): Do not compute array index hint.
5473 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5474 (inline_read_section): Do not read array index hint.
5475 (ipa_fn_summary_write): Do not write array index hint.
5476 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5477 * ipa-cp.c (hint_time_bonus): Remove.
5478 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5479 (ipa_fnsummary): Remove array_index.
5480 * ipa-inline.c (want_inline_small_function_p): Do not use
5482 (edge_badness): Likewise.
5483 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5485 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5488 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5489 superfluous "builtin function" phrasing.
5491 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5493 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5495 (aliasing_component_refs_walk): Break out from ...
5496 (aliasing_component_refs_p): ... here.
5498 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5501 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5502 "builtin function" phrasing.
5504 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5507 * recog.h (temporary_volatile_ok): New class.
5508 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5509 volatile_ok temporarily to true using temporary_volatile_ok.
5510 * expr.c (emit_block_move_via_cpymem): Likewise.
5511 * optabs.c (maybe_legitimize_operand): Likewise.
5513 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5515 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5516 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5517 uses inside of order(concurrent) constructs.
5518 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5519 OMP_CLAUSE_ORDER is seen.
5520 * omp-low.c (struct omp_context): Add order_concurrent member.
5521 (scan_sharing_clauses): Set ctx->order_concurrent if
5522 OMP_CLAUSE_ORDER is seen.
5523 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5524 of simd order(concurrent). Diagnose constructs not allowed inside of
5525 for order(concurrent).
5526 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5527 complaining about static double setjmp (double); or class static
5528 methods or non-global namespace setjmps.
5529 (omp_runtime_api_call): New function.
5530 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5531 order(concurrent) loops.
5533 2019-07-12 Martin Sebor <msebor@redhat.com>
5535 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5536 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5537 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5538 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5540 2019-07-12 Jan Hubicka <jh@suse.cz>
5542 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5543 (indirect_refs_may_alias_p): ... here.
5544 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5545 mem refs in the access paths.
5547 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5549 PR tree-optimization/89430
5550 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5551 store elimination for local variable without address escape.
5553 2019-07-12 Jeff Law <law@redhat.com>
5555 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5556 for the ".far" section.
5558 2019-07-12 Richard Biener <rguenther@suse.de>
5560 PR tree-optimization/91145
5561 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5564 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5566 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5567 rather than this_state as the lowering context for the ELSE
5568 seq in a GIMPLE_EH_ELSE.
5570 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5572 * vector-builder.h (vector_builder::elt): Allow already-supplied
5573 elements to be read back before building is complete.
5575 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5577 PR rtl-optimization/91136
5578 * df-core.c (ACCESSING REFS): Fix typos in comment.
5579 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5580 the beginning of the block to the initial set of live registers.
5582 2019-07-12 Richard Biener <rguenther@suse.de>
5584 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5585 * fold-const.c (get_array_ctor_element_at_index): Add
5586 ctor_idx output parameter informing the caller where in
5587 the constructor the element was (not) found. Add early exit
5588 for when the ctor is sorted.
5589 * gimple-fold.c (fold_array_ctor_reference): Support constant
5590 folding across multiple array elements.
5592 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5594 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5595 doesn't have location, set the current location to the function's end.
5597 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5599 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5600 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5601 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5602 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5603 * config/aarch64/aarch64-simd.md
5604 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5605 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5606 * config/aarch64/aarch64-sve.md
5607 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5608 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5610 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5612 * doc/md.texi: Document that @ patterns can have different
5613 numbers of operands.
5614 * genemit.c (handle_overloaded_gen): Handle this case.
5615 * genopinit.c (handle_overloaded_gen): Likewise.
5616 * gensupport.c (replace_operands_with_dups): Iterate over
5617 the new rtx's format rather than the old one's.
5619 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5621 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5622 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5623 order clause entries.
5624 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5625 * tree-pretty-print.c (dump_omp_clause): Likewise.
5626 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5628 * omp-low.c (scan_sharing_clauses): Likewise.
5629 * tree-nested.c (convert_nonlocal_omp_clauses,
5630 convert_local_omp_clauses): Likewise.
5632 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5634 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5635 fallthrough target of current basic block isn't the placed
5638 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5641 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5642 (_mm512_storeu_epi64): Likewise.
5643 (_mm512_loadu_epi32): Likewise.
5644 (_mm512_storeu_epi32): Likewise.
5645 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5646 (_mm_storeu_epi64): Likewise.
5647 (_mm256_storeu_epi32): Likewise.
5648 (_mm_storeu_epi32): Likewise.
5650 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5652 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5654 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5656 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5659 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5662 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5663 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5664 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5665 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5666 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5667 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5669 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5670 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5671 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5673 (sse2_cvttpd2dq<mask_name>): Change into ...
5674 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5675 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5676 (*sse2_cvtpd2dq<mask_name>): Change into ...
5677 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5678 Add "C" constraint to const0_operand.
5679 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5680 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5684 * config/i386/i386-builtin-types.def
5685 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5686 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5687 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5688 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5689 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5690 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5691 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5692 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5693 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5694 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5695 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5696 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5697 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5698 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5699 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5700 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5701 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5702 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5703 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5704 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5705 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5706 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5707 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5708 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5709 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5710 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5711 __builtin_ia32_vpdpbusd_v4si_maskz,
5712 __builtin_ia32_vpdpbusds_v16si_mask,
5713 __builtin_ia32_vpdpbusds_v16si_maskz,
5714 __builtin_ia32_vpdpbusds_v8si_mask,
5715 __builtin_ia32_vpdpbusds_v8si_maskz,
5716 __builtin_ia32_vpdpbusds_v4si_mask,
5717 __builtin_ia32_vpdpbusds_v4si_maskz,
5718 __builtin_ia32_vpdpwssd_v16si_mask,
5719 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5720 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5721 __builtin_ia32_vpdpwssd_v4si_maskz,
5722 __builtin_ia32_vpdpwssds_v16si_mask,
5723 __builtin_ia32_vpdpwssds_v16si_maskz,
5724 __builtin_ia32_vpdpwssds_v8si_mask,
5725 __builtin_ia32_vpdpwssds_v8si_maskz,
5726 __builtin_ia32_vpdpwssds_v4si_mask,
5727 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5728 suffixed types rather than *_INT.
5729 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5730 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5731 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5732 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5733 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5734 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5736 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5738 * tree-vrp.c (intersect_ranges): If we know the intersection is
5739 empty, there is no need to conservatively add anything else to
5742 2019-07-11 Richard Biener <rguenther@suse.de>
5745 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5746 when the object is volatile and we have not cleared it even though
5747 there are no nonzero elements.
5749 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5751 * config/rs6000/predicates.md (cint34_operand): Update
5752 SIGNED_34BIT_OFFSET_P call.
5753 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5754 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5755 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5756 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5757 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5759 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5760 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5761 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5762 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5763 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5765 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5767 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5768 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5769 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5770 (DEF_MIN_OSX_VERSION): New.
5772 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5774 * fold-const.c (fold_relational_const): Fix folding of
5775 vector-to-scalar NE_EXPRs.
5776 (test_vector_folding): Add more tests.
5778 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5781 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5782 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5783 (vec_setv2di_internal): Reexpress as...
5784 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5785 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5786 rather than gen_neon_vset_lane<mode>.
5788 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5791 * lra-constraints.c (process_alt_operands): Don't match user
5792 defined regs only if they are early clobbers.
5794 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5796 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5798 2019-07-10 Richard Biener <rguenther@suse.de>
5800 PR tree-optimization/91126
5801 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5802 native encoding offset for BYTES_BIG_ENDIAN.
5803 (vn_reference_lookup_3): Likewise.
5805 2019-07-10 Richard Biener <rguenther@suse.de>
5807 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5808 LHS whenever possible.
5810 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5812 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5813 from ...; work also on duplicated types.
5814 (nonoverlapping_component_refs_since_match): ... here
5815 (ncr_type_uid): Break out from ...
5816 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5818 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5819 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5821 2019-07-09 Martin Sebor <msebor@redhat.com>
5823 PR tree-optimization/90989
5824 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5825 optimization to just single character stores.
5827 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5829 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5830 Swap operands only once.
5832 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5834 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5835 for both call instructions.
5837 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5839 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5840 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5842 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5844 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5845 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5846 function from rs6000-logue.c back to rs6000.c.
5847 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5849 2019-07-09 Martin Sebor <msebor@redhat.com>
5852 * auto-profile.c: Change class-key of PODs to struct and others
5854 * basic-block.h: Same.
5855 * bitmap.c (bitmap_alloc): Same.
5857 * builtins.c (expand_builtin_prefetch): Same.
5858 (expand_builtin_interclass_mathfn): Same.
5859 (expand_builtin_strlen): Same.
5860 (expand_builtin_mempcpy_args): Same.
5861 (expand_cmpstr): Same.
5862 (expand_builtin___clear_cache): Same.
5863 (expand_ifn_atomic_bit_test_and): Same.
5864 (expand_builtin_thread_pointer): Same.
5865 (expand_builtin_set_thread_pointer): Same.
5866 * caller-save.c (setup_save_areas): Same.
5867 (replace_reg_with_saved_mem): Same.
5868 (insert_restore): Same.
5869 (insert_save): Same.
5870 (add_used_regs): Same.
5871 * cfg.c (get_bb_copy): Same.
5872 (set_loop_copy): Same.
5875 * cfgexpand.c (alloc_stack_frame_space): Same.
5876 (add_stack_var): Same.
5877 (add_stack_var_conflict): Same.
5878 (add_scope_conflicts_1): Same.
5879 (update_alias_info_with_stack_vars): Same.
5880 (expand_used_vars): Same.
5881 * cfghooks.c (redirect_edge_and_branch_force): Same.
5882 (delete_basic_block): Same.
5884 (make_forwarder_block): Same.
5885 (force_nonfallthru): Same.
5886 (duplicate_block): Same.
5887 (lv_flush_pending_stmts): Same.
5889 * cfgloop.c (flow_loops_cfg_dump): Same.
5890 (flow_loop_nested_p): Same.
5891 (superloop_at_depth): Same.
5892 (get_loop_latch_edges): Same.
5893 (flow_loop_dump): Same.
5894 (flow_loops_dump): Same.
5895 (flow_loops_free): Same.
5896 (flow_loop_nodes_find): Same.
5897 (establish_preds): Same.
5898 (flow_loop_tree_node_add): Same.
5899 (flow_loop_tree_node_remove): Same.
5900 (flow_loops_find): Same.
5901 (find_subloop_latch_edge_by_profile): Same.
5902 (find_subloop_latch_edge_by_ivs): Same.
5903 (mfb_redirect_edges_in_set): Same.
5904 (form_subloop): Same.
5905 (merge_latch_edges): Same.
5906 (disambiguate_multiple_latches): Same.
5907 (disambiguate_loops_with_multiple_latches): Same.
5908 (flow_bb_inside_loop_p): Same.
5910 (get_loop_body_with_size): Same.
5911 (get_loop_body): Same.
5912 (fill_sons_in_loop): Same.
5913 (get_loop_body_in_dom_order): Same.
5914 (get_loop_body_in_custom_order): Same.
5915 (release_recorded_exits): Same.
5916 (get_loop_exit_edges): Same.
5917 (num_loop_branches): Same.
5918 (remove_bb_from_loops): Same.
5919 (find_common_loop): Same.
5920 (delete_loop): Same.
5921 (cancel_loop): Same.
5922 (verify_loop_structure): Same.
5923 (loop_preheader_edge): Same.
5924 (loop_exit_edge_p): Same.
5925 (single_exit): Same.
5926 (loop_exits_to_bb_p): Same.
5927 (loop_exits_from_bb_p): Same.
5928 (get_loop_location): Same.
5929 (record_niter_bound): Same.
5930 (get_estimated_loop_iterations_int): Same.
5931 (max_stmt_executions_int): Same.
5932 (likely_max_stmt_executions_int): Same.
5933 (get_estimated_loop_iterations): Same.
5934 (get_max_loop_iterations): Same.
5935 (get_max_loop_iterations_int): Same.
5936 (get_likely_max_loop_iterations): Same.
5937 * cfgloop.h (simple_loop_desc): Same.
5941 (loop_iterator::next): Same.
5942 (loop_outermost): Same.
5943 * cfgloopanal.c (mark_irreducible_loops): Same.
5944 (num_loop_insns): Same.
5945 (average_num_loop_insns): Same.
5946 (expected_loop_iterations_unbounded): Same.
5947 (expected_loop_iterations): Same.
5948 (mark_loop_exit_edges): Same.
5949 (single_likely_exit): Same.
5950 * cfgloopmanip.c (fix_bb_placement): Same.
5951 (fix_bb_placements): Same.
5952 (remove_path): Same.
5953 (place_new_loop): Same.
5955 (scale_loop_frequencies): Same.
5956 (scale_loop_profile): Same.
5957 (create_empty_if_region_on_edge): Same.
5958 (create_empty_loop_on_edge): Same.
5961 (fix_loop_placements): Same.
5962 (copy_loop_info): Same.
5963 (duplicate_loop): Same.
5964 (duplicate_subloops): Same.
5965 (loop_redirect_edge): Same.
5966 (can_duplicate_loop_p): Same.
5967 (duplicate_loop_to_header_edge): Same.
5968 (mfb_keep_just): Same.
5969 (has_preds_from_loop): Same.
5970 (create_preheader): Same.
5971 (create_preheaders): Same.
5972 (lv_adjust_loop_entry_edge): Same.
5973 (loop_version): Same.
5974 * cfgloopmanip.h: Same.
5976 * cgraphbuild.c: Same.
5977 * combine.c (make_extraction): Same.
5978 * config/i386/i386-features.c: Same.
5979 * config/i386/i386-features.h: Same.
5980 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5981 (ix86_emit_outlined_ms2sysv_restore): Same.
5982 (ix86_noce_conversion_profitable_p): Same.
5983 (ix86_init_cost): Same.
5984 (ix86_simd_clone_usable): Same.
5985 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5987 * coretypes.h: Same.
5988 * data-streamer-in.c (string_for_index): Change class-key of PODs
5989 to struct and others to class.
5990 (streamer_read_indexed_string): Same.
5991 (streamer_read_string): Same.
5992 (bp_unpack_indexed_string): Same.
5993 (bp_unpack_string): Same.
5994 (streamer_read_uhwi): Same.
5995 (streamer_read_hwi): Same.
5996 (streamer_read_gcov_count): Same.
5997 (streamer_read_wide_int): Same.
5998 * data-streamer.h (streamer_write_bitpack): Same.
5999 (bp_unpack_value): Same.
6000 (streamer_write_char_stream): Same.
6001 (streamer_write_hwi_in_range): Same.
6002 (streamer_write_record_start): Same.
6003 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
6004 (add_cross_iteration_register_deps): Same.
6005 (build_intra_loop_deps): Same.
6006 * df-core.c (df_analyze): Same.
6007 (loop_post_order_compute): Same.
6008 (loop_inverted_post_order_compute): Same.
6009 * df-problems.c (df_rd_alloc): Same.
6010 (df_rd_simulate_one_insn): Same.
6011 (df_rd_local_compute): Same.
6012 (df_rd_init_solution): Same.
6013 (df_rd_confluence_n): Same.
6014 (df_rd_transfer_function): Same.
6016 (df_rd_dump_defs_set): Same.
6017 (df_rd_top_dump): Same.
6018 (df_lr_alloc): Same.
6019 (df_lr_reset): Same.
6020 (df_lr_local_compute): Same.
6022 (df_lr_confluence_n): Same.
6024 (df_lr_top_dump): Same.
6025 (df_lr_verify_transfer_functions): Same.
6026 (df_live_alloc): Same.
6027 (df_live_reset): Same.
6028 (df_live_init): Same.
6029 (df_live_confluence_n): Same.
6030 (df_live_finalize): Same.
6031 (df_live_free): Same.
6032 (df_live_top_dump): Same.
6033 (df_live_verify_transfer_functions): Same.
6034 (df_mir_alloc): Same.
6035 (df_mir_reset): Same.
6036 (df_mir_init): Same.
6037 (df_mir_confluence_n): Same.
6038 (df_mir_free): Same.
6039 (df_mir_top_dump): Same.
6040 (df_word_lr_alloc): Same.
6041 (df_word_lr_reset): Same.
6042 (df_word_lr_init): Same.
6043 (df_word_lr_confluence_n): Same.
6044 (df_word_lr_free): Same.
6045 (df_word_lr_top_dump): Same.
6046 (df_md_alloc): Same.
6047 (df_md_simulate_one_insn): Same.
6048 (df_md_reset): Same.
6051 (df_md_top_dump): Same.
6052 * df-scan.c (df_insn_delete): Same.
6053 (df_insn_rescan): Same.
6054 (df_notes_rescan): Same.
6055 (df_sort_and_compress_mws): Same.
6056 (df_install_mws): Same.
6057 (df_refs_add_to_chains): Same.
6058 (df_ref_create_structure): Same.
6059 (df_ref_record): Same.
6060 (df_def_record_1): Same.
6061 (df_find_hard_reg_defs): Same.
6062 (df_uses_record): Same.
6063 (df_get_conditional_uses): Same.
6064 (df_get_call_refs): Same.
6065 (df_recompute_luids): Same.
6066 (df_get_entry_block_def_set): Same.
6067 (df_entry_block_defs_collect): Same.
6068 (df_get_exit_block_use_set): Same.
6069 (df_exit_block_uses_collect): Same.
6070 (df_mws_verify): Same.
6071 (df_bb_verify): Same.
6072 * df.h (df_scan_get_bb_info): Same.
6073 * doc/tm.texi: Same.
6074 * dse.c (record_store): Same.
6076 * emit-rtl.c (const_fixed_hasher::equal): Same.
6077 (set_mem_attributes_minus_bitpos): Same.
6078 (change_address): Same.
6079 (adjust_address_1): Same.
6080 (offset_address): Same.
6082 * except.c (dw2_build_landing_pads): Same.
6083 (sjlj_emit_dispatch_table): Same.
6084 * explow.c (allocate_dynamic_stack_space): Same.
6085 (emit_stack_probe): Same.
6086 (probe_stack_range): Same.
6087 * expmed.c (store_bit_field_using_insv): Same.
6088 (store_bit_field_1): Same.
6089 (store_integral_bit_field): Same.
6090 (extract_bit_field_using_extv): Same.
6091 (extract_bit_field_1): Same.
6092 (emit_cstore): Same.
6093 * expr.c (emit_block_move_via_cpymem): Same.
6094 (expand_cmpstrn_or_cmpmem): Same.
6095 (set_storage_via_setmem): Same.
6096 (emit_single_push_insn_1): Same.
6097 (expand_assignment): Same.
6098 (store_constructor): Same.
6099 (expand_expr_real_2): Same.
6100 (expand_expr_real_1): Same.
6103 * function.c (try_fit_stack_local): Same.
6104 (assign_stack_local_1): Same.
6105 (assign_stack_local): Same.
6106 (cut_slot_from_list): Same.
6107 (insert_slot_to_list): Same.
6108 (max_slot_level): Same.
6109 (move_slot_to_level): Same.
6110 (temp_address_hasher::equal): Same.
6111 (remove_unused_temp_slot_addresses): Same.
6112 (assign_temp): Same.
6113 (combine_temp_slots): Same.
6114 (update_temp_slot_address): Same.
6115 (preserve_temp_slots): Same.
6118 * gcc-rich-location.h: Same.
6120 * genattrtab.c (check_attr_test): Same.
6121 (check_attr_value): Same.
6122 (convert_set_attr_alternative): Same.
6123 (convert_set_attr): Same.
6125 (copy_boolean): Same.
6126 (get_attr_value): Same.
6127 (expand_delays): Same.
6128 (make_length_attrs): Same.
6130 (make_alternative_compare): Same.
6131 (simplify_test_exp): Same.
6132 (tests_attr_p): Same.
6133 (get_attr_order): Same.
6134 (clear_struct_flag): Same.
6136 (compares_alternatives_p): Same.
6139 (find_attrs_to_cache): Same.
6140 (write_test_expr): Same.
6141 (walk_attr_value): Same.
6142 (write_attr_get): Same.
6143 (eliminate_known_true): Same.
6144 (write_insn_cases): Same.
6145 (write_attr_case): Same.
6146 (write_attr_valueq): Same.
6147 (write_attr_value): Same.
6148 (write_dummy_eligible_delay): Same.
6149 (next_comma_elt): Same.
6151 (make_internal_attr): Same.
6152 (copy_rtx_unchanging): Same.
6153 (gen_insn_reserv): Same.
6154 (check_tune_attr): Same.
6155 (make_automaton_attrs): Same.
6157 * genextract.c (gen_insn): Same.
6158 (VEC_char_to_string): Same.
6159 * genmatch.c (print_operand): Same.
6161 (parser::parse_operation): Same.
6162 (parser::parse_capture): Same.
6163 (parser::parse_c_expr): Same.
6164 (parser::parse_simplify): Same.
6166 * genoutput.c (output_operand_data): Same.
6167 (output_get_insn_name): Same.
6168 (compare_operands): Same.
6169 (place_operands): Same.
6170 (process_template): Same.
6171 (validate_insn_alternatives): Same.
6172 (validate_insn_operands): Same.
6174 (note_constraint): Same.
6175 * genpreds.c (write_one_predicate_function): Same.
6176 (add_constraint): Same.
6177 (process_define_register_constraint): Same.
6178 (write_lookup_constraint_1): Same.
6179 (write_lookup_constraint_array): Same.
6180 (write_insn_constraint_len): Same.
6181 (write_reg_class_for_constraint_1): Same.
6182 (write_constraint_satisfied_p_array): Same.
6183 * genrecog.c (optimize_subroutine_group): Same.
6184 * gensupport.c (process_define_predicate): Same.
6185 (queue_pattern): Same.
6186 (remove_from_queue): Same.
6187 (process_rtx): Same.
6188 (is_predicable): Same.
6189 (change_subst_attribute): Same.
6190 (subst_pattern_match): Same.
6191 (alter_constraints): Same.
6192 (alter_attrs_for_insn): Same.
6193 (shift_output_template): Same.
6194 (alter_output_for_subst_insn): Same.
6195 (process_one_cond_exec): Same.
6197 (process_define_cond_exec): Same.
6198 (mnemonic_htab_callback): Same.
6199 (gen_mnemonic_attr): Same.
6200 (read_md_rtx): Same.
6202 * gimple-loop-interchange.cc (dump_reduction): Same.
6203 (dump_induction): Same.
6204 (loop_cand::~loop_cand): Same.
6205 (free_data_refs_with_aux): Same.
6206 (tree_loop_interchange::interchange_loops): Same.
6207 (tree_loop_interchange::map_inductions_to_loop): Same.
6208 (tree_loop_interchange::move_code_to_inner_loop): Same.
6209 (compute_access_stride): Same.
6210 (compute_access_strides): Same.
6211 (proper_loop_form_for_interchange): Same.
6212 (tree_loop_interchange_compute_ddrs): Same.
6213 (prune_datarefs_not_in_loop): Same.
6214 (prepare_data_references): Same.
6215 (pass_linterchange::execute): Same.
6216 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
6217 (unroll_jam_possible_p): Same.
6219 (adjust_unroll_factor): Same.
6220 (tree_loop_unroll_and_jam): Same.
6221 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
6222 (loop_versioning::expensive_stmt_p): Same.
6223 (loop_versioning::version_for_unity): Same.
6224 (loop_versioning::dump_inner_likelihood): Same.
6225 (loop_versioning::find_per_loop_multiplication): Same.
6226 (loop_versioning::analyze_term_using_scevs): Same.
6227 (loop_versioning::record_address_fragment): Same.
6228 (loop_versioning::analyze_expr): Same.
6229 (loop_versioning::analyze_blocks): Same.
6230 (loop_versioning::prune_conditions): Same.
6231 (loop_versioning::merge_loop_info): Same.
6232 (loop_versioning::add_loop_to_queue): Same.
6233 (loop_versioning::decide_whether_loop_is_versionable): Same.
6234 (loop_versioning::make_versioning_decisions): Same.
6235 (loop_versioning::implement_versioning_decisions): Same.
6236 * gimple-ssa-evrp-analyze.c
6237 (evrp_range_analyzer::record_ranges_from_phis): Same.
6238 * gimple-ssa-store-merging.c (split_store::split_store): Same.
6239 (count_multiple_uses): Same.
6240 (split_group): Same.
6241 (imm_store_chain_info::output_merged_store): Same.
6242 (pass_store_merging::process_store): Same.
6243 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
6244 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
6246 (alloca_call_type): Same.
6247 (pass_walloca::execute): Same.
6248 * gimple-streamer-in.c (input_phi): Same.
6249 (input_gimple_stmt): Same.
6250 * gimple-streamer.h: Same.
6251 * godump.c (go_force_record_alignment): Same.
6252 (go_format_type): Same.
6253 (go_output_type): Same.
6254 (go_output_fndecl): Same.
6255 (go_output_typedef): Same.
6256 (keyword_hash_init): Same.
6257 (find_dummy_types): Same.
6258 * graph.c (draw_cfg_nodes_no_loops): Same.
6259 (draw_cfg_nodes_for_loop): Same.
6260 * hard-reg-set.h (hard_reg_set_iter_next): Same.
6262 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
6263 * hsa-dump.c (dump_hsa_cfun): Same.
6264 * hsa-gen.c (gen_function_def_parameters): Same.
6265 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
6266 * input.c (dump_line_table_statistics): Same.
6269 * internal-fn.c (get_multi_vector_move): Same.
6270 (expand_load_lanes_optab_fn): Same.
6271 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
6272 (expand_GOMP_SIMT_EXIT): Same.
6273 (expand_GOMP_SIMT_LAST_LANE): Same.
6274 (expand_GOMP_SIMT_ORDERED_PRED): Same.
6275 (expand_GOMP_SIMT_VOTE_ANY): Same.
6276 (expand_GOMP_SIMT_XCHG_BFLY): Same.
6277 (expand_GOMP_SIMT_XCHG_IDX): Same.
6278 (expand_addsub_overflow): Same.
6279 (expand_neg_overflow): Same.
6280 (expand_mul_overflow): Same.
6281 (expand_call_mem_ref): Same.
6282 (expand_mask_load_optab_fn): Same.
6283 (expand_scatter_store_optab_fn): Same.
6284 (expand_gather_load_optab_fn): Same.
6285 * ipa-cp.c (ipa_get_parm_lattices): Same.
6286 (print_all_lattices): Same.
6287 (ignore_edge_p): Same.
6288 (build_toporder_info): Same.
6289 (free_toporder_info): Same.
6290 (push_node_to_stack): Same.
6291 (ipcp_lattice<valtype>::set_contains_variable): Same.
6292 (set_agg_lats_to_bottom): Same.
6293 (ipcp_bits_lattice::meet_with): Same.
6294 (set_single_call_flag): Same.
6295 (initialize_node_lattices): Same.
6296 (ipa_get_jf_ancestor_result): Same.
6297 (ipcp_verify_propagated_values): Same.
6298 (propagate_scalar_across_jump_function): Same.
6299 (propagate_context_across_jump_function): Same.
6300 (propagate_bits_across_jump_function): Same.
6301 (ipa_vr_operation_and_type_effects): Same.
6302 (propagate_vr_across_jump_function): Same.
6303 (set_check_aggs_by_ref): Same.
6304 (set_chain_of_aglats_contains_variable): Same.
6305 (merge_aggregate_lattices): Same.
6306 (agg_pass_through_permissible_p): Same.
6307 (propagate_aggs_across_jump_function): Same.
6308 (call_passes_through_thunk_p): Same.
6309 (propagate_constants_across_call): Same.
6310 (devirtualization_time_bonus): Same.
6311 (good_cloning_opportunity_p): Same.
6312 (context_independent_aggregate_values): Same.
6313 (gather_context_independent_values): Same.
6314 (perform_estimation_of_a_value): Same.
6315 (estimate_local_effects): Same.
6316 (value_topo_info<valtype>::add_val): Same.
6317 (add_all_node_vals_to_toposort): Same.
6318 (value_topo_info<valtype>::propagate_effects): Same.
6319 (ipcp_propagate_stage): Same.
6320 (ipcp_discover_new_direct_edges): Same.
6321 (same_node_or_its_all_contexts_clone_p): Same.
6322 (cgraph_edge_brings_value_p): Same.
6323 (gather_edges_for_value): Same.
6324 (create_specialized_node): Same.
6325 (find_more_scalar_values_for_callers_subset): Same.
6326 (find_more_contexts_for_caller_subset): Same.
6327 (copy_plats_to_inter): Same.
6328 (intersect_aggregates_with_edge): Same.
6329 (find_aggregate_values_for_callers_subset): Same.
6330 (cgraph_edge_brings_all_agg_vals_for_node): Same.
6331 (decide_about_value): Same.
6332 (decide_whether_version_node): Same.
6333 (spread_undeadness): Same.
6334 (identify_dead_nodes): Same.
6335 (ipcp_store_vr_results): Same.
6336 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
6337 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
6338 (redirect_to_unreachable): Same.
6339 (edge_set_predicate): Same.
6340 (evaluate_conditions_for_known_args): Same.
6341 (evaluate_properties_for_edge): Same.
6342 (ipa_fn_summary_t::duplicate): Same.
6343 (ipa_call_summary_t::duplicate): Same.
6344 (dump_ipa_call_summary): Same.
6345 (ipa_dump_fn_summary): Same.
6346 (eliminated_by_inlining_prob): Same.
6347 (set_cond_stmt_execution_predicate): Same.
6348 (set_switch_stmt_execution_predicate): Same.
6349 (compute_bb_predicates): Same.
6350 (will_be_nonconstant_expr_predicate): Same.
6351 (phi_result_unknown_predicate): Same.
6352 (analyze_function_body): Same.
6353 (compute_fn_summary): Same.
6354 (estimate_edge_devirt_benefit): Same.
6355 (estimate_edge_size_and_time): Same.
6356 (estimate_calls_size_and_time): Same.
6357 (estimate_node_size_and_time): Same.
6358 (remap_edge_change_prob): Same.
6359 (remap_edge_summaries): Same.
6360 (ipa_merge_fn_summary_after_inlining): Same.
6361 (ipa_fn_summary_generate): Same.
6362 (inline_read_section): Same.
6363 (ipa_fn_summary_read): Same.
6364 (ipa_fn_summary_write): Same.
6365 * ipa-fnsummary.h: Same.
6366 * ipa-hsa.c (ipa_hsa_read_section): Same.
6367 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
6368 * ipa-icf.c (sem_function::param_used_p): Same.
6369 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
6370 * ipa-inline.c (edge_badness): Same.
6371 (inline_small_functions): Same.
6372 * ipa-polymorphic-call.c
6373 (ipa_polymorphic_call_context::stream_out): Same.
6374 * ipa-predicate.c (predicate::remap_after_duplication): Same.
6375 (predicate::remap_after_inlining): Same.
6376 (predicate::stream_out): Same.
6377 * ipa-predicate.h: Same.
6378 * ipa-profile.c (ipa_profile_read_summary): Same.
6379 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
6380 (count_formal_params): Same.
6381 (ipa_dump_param): Same.
6382 (ipa_alloc_node_params): Same.
6383 (ipa_print_node_jump_functions_for_edge): Same.
6384 (ipa_print_node_jump_functions): Same.
6385 (ipa_load_from_parm_agg): Same.
6386 (get_ancestor_addr_info): Same.
6387 (ipa_compute_jump_functions_for_edge): Same.
6388 (ipa_analyze_virtual_call_uses): Same.
6389 (ipa_analyze_stmt_uses): Same.
6390 (ipa_analyze_params_uses_in_bb): Same.
6391 (update_jump_functions_after_inlining): Same.
6392 (try_decrement_rdesc_refcount): Same.
6393 (ipa_impossible_devirt_target): Same.
6394 (update_indirect_edges_after_inlining): Same.
6395 (combine_controlled_uses_counters): Same.
6396 (ipa_edge_args_sum_t::duplicate): Same.
6397 (ipa_write_jump_function): Same.
6398 (ipa_write_indirect_edge_info): Same.
6399 (ipa_write_node_info): Same.
6400 (ipa_read_edge_info): Same.
6401 (ipa_prop_read_section): Same.
6402 (read_replacements_section): Same.
6403 * ipa-prop.h (ipa_get_param_count): Same.
6404 (ipa_get_param): Same.
6405 (ipa_get_type): Same.
6406 (ipa_get_param_move_cost): Same.
6407 (ipa_set_param_used): Same.
6408 (ipa_get_controlled_uses): Same.
6409 (ipa_set_controlled_uses): Same.
6410 (ipa_get_cs_argument_count): Same.
6411 * ipa-pure-const.c (analyze_function): Same.
6412 (pure_const_read_summary): Same.
6414 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
6415 * ipa-split.c (test_nonssa_use): Same.
6416 (dump_split_point): Same.
6417 (dominated_by_forbidden): Same.
6418 (split_part_set_ssa_name_p): Same.
6419 (find_split_points): Same.
6420 * ira-build.c (finish_loop_tree_nodes): Same.
6421 (low_pressure_loop_node_p): Same.
6422 * ira-color.c (ira_reuse_stack_slot): Same.
6424 * ira.c (setup_reg_equiv): Same.
6425 (print_insn_chain): Same.
6427 * loop-doloop.c (doloop_condition_get): Same.
6429 (record_reg_sets): Same.
6430 (doloop_optimize): Same.
6431 * loop-init.c (loop_optimizer_init): Same.
6432 (fix_loop_structure): Same.
6433 * loop-invariant.c (merge_identical_invariants): Same.
6434 (compute_always_reached): Same.
6436 (may_assign_reg_p): Same.
6437 (find_invariants_bb): Same.
6438 (find_invariants_body): Same.
6439 (replace_uses): Same.
6440 (can_move_invariant_reg): Same.
6441 (free_inv_motion_data): Same.
6442 (move_single_loop_invariants): Same.
6443 (change_pressure): Same.
6444 (mark_ref_regs): Same.
6445 (calculate_loop_reg_pressure): Same.
6446 * loop-iv.c (biv_entry_hasher::equal): Same.
6447 (iv_extend_to_rtx_code): Same.
6448 (check_iv_ref_table_size): Same.
6449 (clear_iv_info): Same.
6450 (latch_dominating_def): Same.
6451 (iv_get_reaching_def): Same.
6452 (iv_constant): Same.
6458 (get_biv_step): Same.
6460 (analyzed_for_bivness_p): Same.
6462 (iv_analyze_biv): Same.
6463 (iv_analyze_expr): Same.
6464 (iv_analyze_def): Same.
6465 (iv_analyze_op): Same.
6467 (iv_analyze_result): Same.
6469 (eliminate_implied_conditions): Same.
6470 (simplify_using_initial_values): Same.
6471 (shorten_into_mode): Same.
6472 (canonicalize_iv_subregs): Same.
6473 (determine_max_iter): Same.
6474 (check_simple_exit): Same.
6475 (find_simple_exit): Same.
6476 (get_simple_loop_desc): Same.
6477 * loop-unroll.c (report_unroll): Same.
6478 (decide_unrolling): Same.
6479 (unroll_loops): Same.
6480 (loop_exit_at_end_p): Same.
6481 (decide_unroll_constant_iterations): Same.
6482 (unroll_loop_constant_iterations): Same.
6483 (compare_and_jump_seq): Same.
6484 (unroll_loop_runtime_iterations): Same.
6485 (decide_unroll_stupid): Same.
6486 (unroll_loop_stupid): Same.
6487 (referenced_in_one_insn_in_loop_p): Same.
6488 (reset_debug_uses_in_loop): Same.
6489 (analyze_iv_to_split_insn): Same.
6490 * lra-eliminations.c (lra_debug_elim_table): Same.
6491 (setup_can_eliminate): Same.
6493 (lra_get_elimination_hard_regno): Same.
6494 (lra_eliminate_regs_1): Same.
6495 (eliminate_regs_in_insn): Same.
6496 (update_reg_eliminate): Same.
6497 (init_elimination): Same.
6498 (lra_eliminate): Same.
6500 * lra-lives.c (initiate_live_solver): Same.
6501 * lra-remat.c (create_remat_bb_data): Same.
6502 * lra-spills.c (lra_spill): Same.
6503 * lra.c (lra_set_insn_recog_data): Same.
6504 (lra_set_used_insn_alternative_by_uid): Same.
6505 (init_reg_info): Same.
6506 (expand_reg_info): Same.
6507 * lto-cgraph.c (output_symtab): Same.
6508 (read_identifier): Same.
6509 (get_alias_symbol): Same.
6511 (input_varpool_node): Same.
6514 (input_cgraph_1): Same.
6516 (input_symtab): Same.
6517 (input_offload_tables): Same.
6518 (output_cgraph_opt_summary): Same.
6519 (input_edge_opt_summary): Same.
6520 (input_cgraph_opt_section): Same.
6521 * lto-section-in.c (lto_free_raw_section_data): Same.
6522 (lto_create_simple_input_block): Same.
6523 (lto_free_function_in_decl_state_for_node): Same.
6524 * lto-streamer-in.c (lto_tag_check_set): Same.
6525 (lto_location_cache::revert_location_cache): Same.
6526 (lto_location_cache::input_location): Same.
6527 (lto_input_location): Same.
6528 (stream_input_location_now): Same.
6529 (lto_input_tree_ref): Same.
6530 (lto_input_eh_catch_list): Same.
6531 (input_eh_region): Same.
6532 (lto_init_eh): Same.
6533 (make_new_block): Same.
6535 (fixup_call_stmt_edges): Same.
6536 (input_struct_function_base): Same.
6537 (input_function): Same.
6538 (lto_read_body_or_constructor): Same.
6539 (lto_read_tree_1): Same.
6540 (lto_read_tree): Same.
6541 (lto_input_scc): Same.
6542 (lto_input_tree_1): Same.
6543 (lto_input_toplevel_asms): Same.
6544 (lto_input_mode_table): Same.
6545 (lto_reader_init): Same.
6546 (lto_data_in_create): Same.
6547 * lto-streamer-out.c (output_cfg): Same.
6548 * lto-streamer.h: Same.
6549 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6550 (generate_prolog_epilog): Same.
6551 (mark_loop_unsched): Same.
6552 (dump_insn_location): Same.
6553 (loop_canon_p): Same.
6554 (sms_schedule): Same.
6555 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6556 (expand_omp_for_generic): Same.
6557 (expand_omp_for_static_nochunk): Same.
6558 (expand_omp_for_static_chunk): Same.
6559 (expand_omp_simd): Same.
6560 (expand_omp_taskloop_for_inner): Same.
6561 (expand_oacc_for): Same.
6562 (expand_omp_atomic_pipeline): Same.
6563 (mark_loops_in_oacc_kernels_region): Same.
6564 * omp-offload.c (oacc_xform_loop): Same.
6565 * omp-simd-clone.c (simd_clone_adjust): Same.
6566 * optabs-query.c (get_traditional_extraction_insn): Same.
6567 * optabs.c (expand_vector_broadcast): Same.
6568 (expand_binop_directly): Same.
6569 (expand_twoval_unop): Same.
6570 (expand_twoval_binop): Same.
6571 (expand_unop_direct): Same.
6572 (emit_indirect_jump): Same.
6573 (emit_conditional_move): Same.
6574 (emit_conditional_neg_or_complement): Same.
6575 (emit_conditional_add): Same.
6576 (vector_compare_rtx): Same.
6577 (expand_vec_perm_1): Same.
6578 (expand_vec_perm_const): Same.
6579 (expand_vec_cond_expr): Same.
6580 (expand_vec_series_expr): Same.
6581 (maybe_emit_atomic_exchange): Same.
6582 (maybe_emit_sync_lock_test_and_set): Same.
6583 (expand_atomic_compare_and_swap): Same.
6584 (expand_atomic_load): Same.
6585 (expand_atomic_store): Same.
6586 (maybe_emit_op): Same.
6587 (valid_multiword_target_p): Same.
6588 (create_integer_operand): Same.
6589 (maybe_legitimize_operand_same_code): Same.
6590 (maybe_legitimize_operand): Same.
6591 (create_convert_operand_from_type): Same.
6592 (can_reuse_operands_p): Same.
6593 (maybe_legitimize_operands): Same.
6594 (maybe_gen_insn): Same.
6595 (maybe_expand_insn): Same.
6596 (maybe_expand_jump_insn): Same.
6597 (expand_insn): Same.
6598 * optabs.h (create_expand_operand): Same.
6599 (create_fixed_operand): Same.
6600 (create_output_operand): Same.
6601 (create_input_operand): Same.
6602 (create_convert_operand_to): Same.
6603 (create_convert_operand_from): Same.
6606 * predict.c (optimize_insn_for_speed_p): Same.
6607 (optimize_loop_for_size_p): Same.
6608 (optimize_loop_for_speed_p): Same.
6609 (optimize_loop_nest_for_speed_p): Same.
6610 (get_base_value): Same.
6611 (predicted_by_loop_heuristics_p): Same.
6612 (predict_extra_loop_exits): Same.
6613 (predict_loops): Same.
6614 (predict_paths_for_bb): Same.
6615 (predict_paths_leading_to): Same.
6616 (propagate_freq): Same.
6617 (pass_profile::execute): Same.
6619 * profile-count.c (profile_count::differs_from_p): Same.
6620 (profile_probability::differs_lot_from_p): Same.
6621 * profile-count.h: Same.
6622 * profile.c (branch_prob): Same.
6623 * regrename.c (free_chain_data): Same.
6624 (mark_conflict): Same.
6625 (create_new_chain): Same.
6626 (merge_overlapping_regs): Same.
6627 (init_rename_info): Same.
6628 (merge_chains): Same.
6629 (regrename_analyze): Same.
6630 (regrename_do_replace): Same.
6631 (scan_rtx_reg): Same.
6632 (record_out_operands): Same.
6633 (build_def_use): Same.
6634 * regrename.h: Same.
6636 * reload1.c (init_reload): Same.
6637 (maybe_fix_stack_asms): Same.
6638 (copy_reloads): Same.
6639 (count_pseudo): Same.
6640 (count_spilled_pseudo): Same.
6642 (find_reload_regs): Same.
6643 (select_reload_regs): Same.
6644 (spill_hard_reg): Same.
6645 (fixup_eh_region_note): Same.
6646 (set_reload_reg): Same.
6647 (allocate_reload_reg): Same.
6648 (compute_reload_subreg_offset): Same.
6649 (reload_adjust_reg_for_icode): Same.
6650 (emit_input_reload_insns): Same.
6651 (emit_output_reload_insns): Same.
6652 (do_input_reload): Same.
6653 (inherit_piecemeal_p): Same.
6655 * sanopt.c (maybe_get_dominating_check): Same.
6656 (maybe_optimize_ubsan_ptr_ifn): Same.
6657 (can_remove_asan_check): Same.
6658 (maybe_optimize_asan_check_ifn): Same.
6659 (sanopt_optimize_walker): Same.
6660 * sched-deps.c (add_dependence_list): Same.
6661 (chain_to_prev_insn): Same.
6662 (add_insn_mem_dependence): Same.
6663 (create_insn_reg_set): Same.
6664 (maybe_extend_reg_info_p): Same.
6665 (sched_analyze_reg): Same.
6666 (sched_analyze_1): Same.
6667 (get_implicit_reg_pending_clobbers): Same.
6668 (chain_to_prev_insn_p): Same.
6669 (deps_analyze_insn): Same.
6670 (deps_start_bb): Same.
6671 (sched_free_deps): Same.
6673 (init_deps_reg_last): Same.
6675 * sched-ebb.c: Same.
6676 * sched-int.h: Same.
6677 * sched-rgn.c (add_branch_dependences): Same.
6678 (concat_insn_mem_list): Same.
6680 (sched_rgn_compute_dependencies): Same.
6681 * sel-sched-ir.c (reset_target_context): Same.
6682 (copy_deps_context): Same.
6683 (init_id_from_df): Same.
6684 (has_dependence_p): Same.
6685 (change_loops_latches): Same.
6686 (bb_top_order_comparator): Same.
6687 (make_region_from_loop_preheader): Same.
6688 (sel_init_pipelining): Same.
6689 (get_loop_nest_for_rgn): Same.
6690 (make_regions_from_the_rest): Same.
6691 (sel_is_loop_preheader_p): Same.
6692 * sel-sched-ir.h (inner_loop_header_p): Same.
6693 (get_all_loop_exits): Same.
6695 * sese.c (sese_build_liveouts): Same.
6696 (sese_insert_phis_for_liveouts): Same.
6697 * sese.h (defined_in_sese_p): Same.
6698 * sreal.c (sreal::stream_out): Same.
6700 * streamer-hooks.h: Same.
6701 * target-globals.c (save_target_globals): Same.
6702 * target-globals.h: Same.
6705 * targhooks.c (default_has_ifunc_p): Same.
6706 (default_empty_mask_is_expensive): Same.
6707 (default_init_cost): Same.
6708 * targhooks.h: Same.
6710 * tree-affine.c (aff_combination_mult): Same.
6711 (aff_combination_expand): Same.
6712 (aff_combination_constant_multiple_p): Same.
6713 * tree-affine.h: Same.
6714 * tree-cfg.c (build_gimple_cfg): Same.
6715 (replace_loop_annotate_in_block): Same.
6716 (replace_uses_by): Same.
6718 (dump_cfg_stats): Same.
6719 (gimple_duplicate_sese_region): Same.
6720 (gimple_duplicate_sese_tail): Same.
6721 (move_block_to_fn): Same.
6722 (replace_block_vars_by_duplicates): Same.
6723 (move_sese_region_to_fn): Same.
6724 (print_loops_bb): Same.
6726 (print_loops): Same.
6728 (debug_loops): Same.
6730 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6731 (chrec_fold_multiply_poly_poly): Same.
6732 (chrec_evaluate): Same.
6733 (chrec_component_in_loop_num): Same.
6734 (reset_evolution_in_loop): Same.
6735 (is_multivariate_chrec): Same.
6736 (chrec_contains_symbols): Same.
6737 (nb_vars_in_chrec): Same.
6738 (chrec_convert_1): Same.
6739 (chrec_convert_aggressive): Same.
6740 * tree-chrec.h: Same.
6741 * tree-core.h: Same.
6742 * tree-data-ref.c (dump_data_dependence_relation): Same.
6743 (canonicalize_base_object_address): Same.
6744 (data_ref_compare_tree): Same.
6745 (prune_runtime_alias_test_list): Same.
6746 (get_segment_min_max): Same.
6747 (create_intersect_range_checks): Same.
6748 (conflict_fn_no_dependence): Same.
6749 (object_address_invariant_in_loop_p): Same.
6750 (analyze_ziv_subscript): Same.
6751 (analyze_siv_subscript_cst_affine): Same.
6752 (analyze_miv_subscript): Same.
6753 (analyze_overlapping_iterations): Same.
6754 (build_classic_dist_vector_1): Same.
6755 (add_other_self_distances): Same.
6756 (same_access_functions): Same.
6757 (build_classic_dir_vector): Same.
6758 (subscript_dependence_tester_1): Same.
6759 (subscript_dependence_tester): Same.
6760 (access_functions_are_affine_or_constant_p): Same.
6761 (get_references_in_stmt): Same.
6762 (loop_nest_has_data_refs): Same.
6763 (graphite_find_data_references_in_stmt): Same.
6764 (find_data_references_in_bb): Same.
6765 (get_base_for_alignment): Same.
6766 (find_loop_nest_1): Same.
6767 (find_loop_nest): Same.
6768 * tree-data-ref.h (dr_alignment): Same.
6769 (ddr_dependence_level): Same.
6770 * tree-if-conv.c (fold_build_cond_expr): Same.
6771 (add_to_predicate_list): Same.
6772 (add_to_dst_predicate_list): Same.
6773 (phi_convertible_by_degenerating_args): Same.
6774 (idx_within_array_bound): Same.
6775 (all_preds_critical_p): Same.
6776 (pred_blocks_visited_p): Same.
6777 (predicate_bbs): Same.
6778 (build_region): Same.
6779 (if_convertible_loop_p_1): Same.
6780 (is_cond_scalar_reduction): Same.
6781 (predicate_scalar_phi): Same.
6782 (remove_conditions_and_labels): Same.
6783 (combine_blocks): Same.
6784 (version_loop_for_if_conversion): Same.
6785 (versionable_outer_loop_p): Same.
6786 (ifcvt_local_dce): Same.
6787 (tree_if_conversion): Same.
6788 (pass_if_conversion::gate): Same.
6789 * tree-if-conv.h: Same.
6790 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6791 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6793 (stmt_has_scalar_dependences_outside_loop): Same.
6794 (copy_loop_before): Same.
6795 (create_bb_after_loop): Same.
6796 (const_with_all_bytes_same): Same.
6797 (generate_memset_builtin): Same.
6798 (generate_memcpy_builtin): Same.
6799 (destroy_loop): Same.
6800 (build_rdg_partition_for_vertex): Same.
6801 (compute_access_range): Same.
6802 (data_ref_segment_size): Same.
6803 (latch_dominated_by_data_ref): Same.
6804 (compute_alias_check_pairs): Same.
6805 (fuse_memset_builtins): Same.
6806 (finalize_partitions): Same.
6807 (find_seed_stmts_for_distribution): Same.
6808 (prepare_perfect_loop_nest): Same.
6809 * tree-parloops.c (lambda_transform_legal_p): Same.
6810 (loop_parallel_p): Same.
6811 (reduc_stmt_res): Same.
6812 (add_field_for_name): Same.
6813 (create_call_for_reduction_1): Same.
6814 (replace_uses_in_bb_by): Same.
6815 (transform_to_exit_first_loop_alt): Same.
6816 (try_transform_to_exit_first_loop_alt): Same.
6817 (transform_to_exit_first_loop): Same.
6819 (gen_parallel_loop): Same.
6820 (gather_scalar_reductions): Same.
6821 (get_omp_data_i_param): Same.
6822 (try_create_reduction_list): Same.
6823 (oacc_entry_exit_single_gang): Same.
6824 (parallelize_loops): Same.
6825 * tree-pass.h: Same.
6826 * tree-predcom.c (determine_offset): Same.
6827 (last_always_executed_block): Same.
6828 (split_data_refs_to_components): Same.
6829 (suitable_component_p): Same.
6830 (valid_initializer_p): Same.
6831 (find_looparound_phi): Same.
6832 (insert_looparound_copy): Same.
6833 (add_looparound_copies): Same.
6834 (determine_roots_comp): Same.
6835 (predcom_tmp_var): Same.
6836 (initialize_root_vars): Same.
6837 (initialize_root_vars_store_elim_1): Same.
6838 (initialize_root_vars_store_elim_2): Same.
6839 (finalize_eliminated_stores): Same.
6840 (initialize_root_vars_lm): Same.
6841 (remove_stmt): Same.
6842 (determine_unroll_factor): Same.
6843 (execute_pred_commoning_cbck): Same.
6844 (base_names_in_chain_on): Same.
6845 (combine_chains): Same.
6846 (pcom_stmt_dominates_stmt_p): Same.
6847 (try_combine_chains): Same.
6848 (prepare_initializers_chain_store_elim): Same.
6849 (prepare_initializers_chain): Same.
6850 (prepare_initializers): Same.
6851 (prepare_finalizers_chain): Same.
6852 (prepare_finalizers): Same.
6853 (insert_init_seqs): Same.
6854 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6855 (compute_overall_effect_of_inner_loop): Same.
6856 (add_to_evolution_1): Same.
6857 (add_to_evolution): Same.
6858 (follow_ssa_edge_binary): Same.
6859 (follow_ssa_edge_expr): Same.
6860 (backedge_phi_arg_p): Same.
6861 (follow_ssa_edge_in_condition_phi_branch): Same.
6862 (follow_ssa_edge_in_condition_phi): Same.
6863 (follow_ssa_edge_inner_loop_phi): Same.
6864 (follow_ssa_edge): Same.
6865 (analyze_evolution_in_loop): Same.
6866 (analyze_initial_condition): Same.
6867 (interpret_loop_phi): Same.
6868 (interpret_condition_phi): Same.
6869 (interpret_rhs_expr): Same.
6870 (interpret_expr): Same.
6871 (interpret_gimple_assign): Same.
6872 (analyze_scalar_evolution_1): Same.
6873 (analyze_scalar_evolution): Same.
6874 (analyze_scalar_evolution_for_address_of): Same.
6875 (get_instantiated_value_entry): Same.
6876 (loop_closed_phi_def): Same.
6877 (instantiate_scev_name): Same.
6878 (instantiate_scev_poly): Same.
6879 (instantiate_scev_binary): Same.
6880 (instantiate_scev_convert): Same.
6881 (instantiate_scev_not): Same.
6882 (instantiate_scev_r): Same.
6883 (instantiate_scev): Same.
6884 (resolve_mixers): Same.
6885 (initialize_scalar_evolutions_analyzer): Same.
6886 (scev_reset_htab): Same.
6888 (derive_simple_iv_with_niters): Same.
6889 (simple_iv_with_niters): Same.
6890 (expression_expensive_p): Same.
6891 (final_value_replacement_loop): Same.
6892 * tree-scalar-evolution.h (block_before_loop): Same.
6893 * tree-ssa-address.h: Same.
6894 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6895 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6896 (record_edge_info): Same.
6897 * tree-ssa-live.c (var_map_base_fini): Same.
6898 (remove_unused_locals): Same.
6899 * tree-ssa-live.h: Same.
6900 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6901 (pass_ch_vect::execute): Same.
6902 (pass_ch::process_loop_p): Same.
6903 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6904 (movement_possibility): Same.
6905 (outermost_invariant_loop): Same.
6907 (determine_max_movement): Same.
6908 (invariantness_dom_walker::before_dom_children): Same.
6909 (move_computations): Same.
6910 (may_move_till): Same.
6911 (force_move_till_op): Same.
6912 (force_move_till): Same.
6913 (memref_free): Same.
6914 (record_mem_ref_loc): Same.
6915 (set_ref_stored_in_loop): Same.
6916 (mark_ref_stored): Same.
6917 (sort_bbs_in_loop_postorder_cmp): Same.
6918 (sort_locs_in_loop_postorder_cmp): Same.
6919 (analyze_memory_references): Same.
6920 (mem_refs_may_alias_p): Same.
6921 (find_ref_loc_in_loop_cmp): Same.
6922 (rewrite_mem_ref_loc::operator): Same.
6923 (first_mem_ref_loc_1::operator): Same.
6924 (sm_set_flag_if_changed::operator): Same.
6925 (execute_sm_if_changed_flag_set): Same.
6927 (hoist_memory_references): Same.
6928 (ref_always_accessed::operator): Same.
6929 (refs_independent_p): Same.
6930 (record_dep_loop): Same.
6931 (ref_indep_loop_p_1): Same.
6932 (ref_indep_loop_p): Same.
6933 (can_sm_ref_p): Same.
6934 (find_refs_for_sm): Same.
6935 (loop_suitable_for_sm): Same.
6936 (store_motion_loop): Same.
6937 (store_motion): Same.
6938 (fill_always_executed_in): Same.
6939 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6940 (estimated_unrolled_size): Same.
6941 (loop_edge_to_cancel): Same.
6942 (remove_exits_and_undefined_stmts): Same.
6943 (remove_redundant_iv_tests): Same.
6944 (unloop_loops): Same.
6945 (estimated_peeled_sequence_size): Same.
6946 (try_peel_loop): Same.
6947 (canonicalize_loop_induction_variables): Same.
6948 (canonicalize_induction_variables): Same.
6949 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6951 (stmt_after_inc_pos): Same.
6952 (contains_abnormal_ssa_name_p): Same.
6953 (niter_for_exit): Same.
6956 (find_givs_in_bb): Same.
6957 (find_induction_variables): Same.
6958 (find_interesting_uses_cond): Same.
6959 (outermost_invariant_loop_for_expr): Same.
6960 (idx_find_step): Same.
6961 (add_candidate_1): Same.
6962 (add_iv_candidate_derived_from_uses): Same.
6963 (alloc_use_cost_map): Same.
6964 (prepare_decl_rtl): Same.
6965 (generic_predict_doloop_p): Same.
6966 (computation_cost): Same.
6967 (determine_common_wider_type): Same.
6968 (get_computation_aff_1): Same.
6969 (get_use_type): Same.
6970 (determine_group_iv_cost_address): Same.
6972 (difference_cannot_overflow_p): Same.
6973 (may_eliminate_iv): Same.
6974 (determine_set_costs): Same.
6975 (cheaper_cost_pair): Same.
6976 (compare_cost_pair): Same.
6977 (iv_ca_cand_for_group): Same.
6978 (iv_ca_recount_cost): Same.
6979 (iv_ca_set_remove_invs): Same.
6980 (iv_ca_set_no_cp): Same.
6981 (iv_ca_set_add_invs): Same.
6982 (iv_ca_set_cp): Same.
6983 (iv_ca_add_group): Same.
6985 (iv_ca_compare_deps): Same.
6986 (iv_ca_delta_reverse): Same.
6987 (iv_ca_delta_commit): Same.
6988 (iv_ca_cand_used_p): Same.
6989 (iv_ca_delta_free): Same.
6993 (iv_ca_extend): Same.
6994 (iv_ca_narrow): Same.
6995 (iv_ca_prune): Same.
6996 (cheaper_cost_with_cand): Same.
6997 (iv_ca_replace): Same.
6998 (try_add_cand_for): Same.
6999 (get_initial_solution): Same.
7000 (try_improve_iv_set): Same.
7001 (find_optimal_iv_set_1): Same.
7002 (create_new_iv): Same.
7003 (rewrite_use_compare): Same.
7004 (remove_unused_ivs): Same.
7005 (determine_scaling_factor): Same.
7006 * tree-ssa-loop-ivopts.h: Same.
7007 * tree-ssa-loop-manip.c (create_iv): Same.
7008 (compute_live_loop_exits): Same.
7009 (add_exit_phi): Same.
7010 (add_exit_phis): Same.
7011 (find_uses_to_rename_use): Same.
7012 (find_uses_to_rename_def): Same.
7013 (find_uses_to_rename_in_loop): Same.
7014 (rewrite_into_loop_closed_ssa): Same.
7015 (check_loop_closed_ssa_bb): Same.
7016 (split_loop_exit_edge): Same.
7018 (ip_normal_pos): Same.
7019 (copy_phi_node_args): Same.
7020 (gimple_duplicate_loop_to_header_edge): Same.
7021 (can_unroll_loop_p): Same.
7022 (determine_exit_conditions): Same.
7023 (scale_dominated_blocks_in_loop): Same.
7024 (niter_for_unrolled_loop): Same.
7025 (tree_transform_and_unroll_loop): Same.
7026 (rewrite_all_phi_nodes_with_iv): Same.
7027 * tree-ssa-loop-manip.h: Same.
7028 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
7029 (number_of_iterations_ne): Same.
7030 (assert_no_overflow_lt): Same.
7031 (assert_loop_rolls_lt): Same.
7032 (number_of_iterations_lt): Same.
7033 (adjust_cond_for_loop_until_wrap): Same.
7034 (tree_simplify_using_condition): Same.
7035 (simplify_using_initial_conditions): Same.
7036 (simplify_using_outer_evolutions): Same.
7037 (loop_only_exit_p): Same.
7038 (ssa_defined_by_minus_one_stmt_p): Same.
7039 (number_of_iterations_popcount): Same.
7040 (number_of_iterations_exit): Same.
7041 (find_loop_niter): Same.
7042 (finite_loop_p): Same.
7043 (chain_of_csts_start): Same.
7044 (get_val_for): Same.
7045 (loop_niter_by_eval): Same.
7046 (derive_constant_upper_bound_ops): Same.
7047 (do_warn_aggressive_loop_optimizations): Same.
7048 (record_estimate): Same.
7049 (get_cst_init_from_scev): Same.
7050 (record_nonwrapping_iv): Same.
7051 (idx_infer_loop_bounds): Same.
7052 (infer_loop_bounds_from_ref): Same.
7053 (infer_loop_bounds_from_array): Same.
7054 (infer_loop_bounds_from_pointer_arith): Same.
7055 (infer_loop_bounds_from_signedness): Same.
7056 (bound_index): Same.
7057 (discover_iteration_bound_by_body_walk): Same.
7058 (maybe_lower_iteration_bound): Same.
7059 (estimate_numbers_of_iterations): Same.
7060 (estimated_loop_iterations): Same.
7061 (estimated_loop_iterations_int): Same.
7062 (max_loop_iterations): Same.
7063 (max_loop_iterations_int): Same.
7064 (likely_max_loop_iterations): Same.
7065 (likely_max_loop_iterations_int): Same.
7066 (estimated_stmt_executions_int): Same.
7067 (max_stmt_executions): Same.
7068 (likely_max_stmt_executions): Same.
7069 (estimated_stmt_executions): Same.
7070 (stmt_dominates_stmt_p): Same.
7071 (nowrap_type_p): Same.
7072 (loop_exits_before_overflow): Same.
7073 (scev_var_range_cant_overflow): Same.
7074 (scev_probably_wraps_p): Same.
7075 (free_numbers_of_iterations_estimates): Same.
7076 * tree-ssa-loop-niter.h: Same.
7077 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
7078 (idx_analyze_ref): Same.
7079 (analyze_ref): Same.
7080 (gather_memory_references_ref): Same.
7081 (mark_nontemporal_store): Same.
7082 (emit_mfence_after_loop): Same.
7083 (may_use_storent_in_loop_p): Same.
7084 (mark_nontemporal_stores): Same.
7085 (should_unroll_loop_p): Same.
7086 (volume_of_dist_vector): Same.
7087 (add_subscript_strides): Same.
7088 (self_reuse_distance): Same.
7089 (insn_to_prefetch_ratio_too_small_p): Same.
7090 * tree-ssa-loop-split.c (split_at_bb_p): Same.
7091 (patch_loop_exit): Same.
7092 (find_or_create_guard_phi): Same.
7093 (easy_exit_values): Same.
7094 (connect_loop_phis): Same.
7095 (connect_loops): Same.
7096 (compute_new_first_bound): Same.
7098 (tree_ssa_split_loops): Same.
7099 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
7100 (is_maybe_undefined): Same.
7101 (tree_may_unswitch_on): Same.
7102 (simplify_using_entry_checks): Same.
7103 (tree_unswitch_single_loop): Same.
7104 (tree_unswitch_loop): Same.
7105 (tree_unswitch_outer_loop): Same.
7106 (empty_bb_without_guard_p): Same.
7107 (used_outside_loop_p): Same.
7108 (get_vop_from_header): Same.
7109 (hoist_guard): Same.
7110 * tree-ssa-loop.c (gate_oacc_kernels): Same.
7111 (get_lsm_tmp_name): Same.
7112 * tree-ssa-loop.h: Same.
7113 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
7114 (build_and_add_sum): Same.
7115 (no_side_effect_bb): Same.
7117 (linearize_expr): Same.
7118 (should_break_up_subtract): Same.
7119 (linearize_expr_tree): Same.
7120 * tree-ssa-scopedtables.c: Same.
7121 * tree-ssa-scopedtables.h: Same.
7122 * tree-ssa-structalias.c (condense_visit): Same.
7123 (label_visit): Same.
7124 (dump_pred_graph): Same.
7125 (perform_var_substitution): Same.
7126 (move_complex_constraints): Same.
7127 (remove_preds_and_fake_succs): Same.
7128 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
7129 (determine_bb_domination_status): Same.
7130 (duplicate_thread_path): Same.
7131 (thread_through_all_blocks): Same.
7132 * tree-ssa-threadupdate.h: Same.
7133 * tree-streamer-in.c (streamer_read_string_cst): Same.
7134 (input_identifier): Same.
7135 (unpack_ts_type_common_value_fields): Same.
7136 (unpack_ts_block_value_fields): Same.
7137 (unpack_ts_translation_unit_decl_value_fields): Same.
7138 (unpack_ts_omp_clause_value_fields): Same.
7139 (streamer_read_tree_bitfields): Same.
7140 (streamer_alloc_tree): Same.
7141 (lto_input_ts_common_tree_pointers): Same.
7142 (lto_input_ts_vector_tree_pointers): Same.
7143 (lto_input_ts_poly_tree_pointers): Same.
7144 (lto_input_ts_complex_tree_pointers): Same.
7145 (lto_input_ts_decl_minimal_tree_pointers): Same.
7146 (lto_input_ts_decl_common_tree_pointers): Same.
7147 (lto_input_ts_decl_non_common_tree_pointers): Same.
7148 (lto_input_ts_decl_with_vis_tree_pointers): Same.
7149 (lto_input_ts_field_decl_tree_pointers): Same.
7150 (lto_input_ts_function_decl_tree_pointers): Same.
7151 (lto_input_ts_type_common_tree_pointers): Same.
7152 (lto_input_ts_type_non_common_tree_pointers): Same.
7153 (lto_input_ts_list_tree_pointers): Same.
7154 (lto_input_ts_vec_tree_pointers): Same.
7155 (lto_input_ts_exp_tree_pointers): Same.
7156 (lto_input_ts_block_tree_pointers): Same.
7157 (lto_input_ts_binfo_tree_pointers): Same.
7158 (lto_input_ts_constructor_tree_pointers): Same.
7159 (lto_input_ts_omp_clause_tree_pointers): Same.
7160 (streamer_read_tree_body): Same.
7161 * tree-streamer.h: Same.
7162 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
7163 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
7164 (vect_analyze_possibly_independent_ddr): Same.
7165 (vect_analyze_data_ref_dependence): Same.
7166 (vect_compute_data_ref_alignment): Same.
7167 (vect_enhance_data_refs_alignment): Same.
7168 (vect_analyze_data_ref_access): Same.
7169 (vect_check_gather_scatter): Same.
7170 (vect_find_stmt_data_reference): Same.
7171 (vect_create_addr_base_for_vector_ref): Same.
7172 (vect_setup_realignment): Same.
7173 (vect_supportable_dr_alignment): Same.
7174 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
7175 (adjust_phi_and_debug_stmts): Same.
7176 (vect_set_loop_mask): Same.
7177 (add_preheader_seq): Same.
7178 (vect_maybe_permute_loop_masks): Same.
7179 (vect_set_loop_masks_directly): Same.
7180 (vect_set_loop_condition_masked): Same.
7181 (vect_set_loop_condition_unmasked): Same.
7182 (slpeel_duplicate_current_defs_from_edges): Same.
7183 (slpeel_add_loop_guard): Same.
7184 (slpeel_can_duplicate_loop_p): Same.
7185 (create_lcssa_for_virtual_phi): Same.
7187 (vect_update_ivs_after_vectorizer): Same.
7188 (vect_gen_vector_loop_niters_mult_vf): Same.
7189 (slpeel_update_phi_nodes_for_loops): Same.
7190 (slpeel_update_phi_nodes_for_guard1): Same.
7191 (find_guard_arg): Same.
7192 (slpeel_update_phi_nodes_for_guard2): Same.
7193 (slpeel_update_phi_nodes_for_lcssa): Same.
7194 (vect_do_peeling): Same.
7195 (vect_create_cond_for_alias_checks): Same.
7196 (vect_loop_versioning): Same.
7197 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
7198 (vect_inner_phi_in_double_reduction_p): Same.
7199 (vect_analyze_scalar_cycles_1): Same.
7200 (vect_fixup_scalar_cycles_with_patterns): Same.
7201 (vect_get_loop_niters): Same.
7202 (bb_in_loop_p): Same.
7203 (vect_get_max_nscalars_per_iter): Same.
7204 (vect_verify_full_masking): Same.
7205 (vect_compute_single_scalar_iteration_cost): Same.
7206 (vect_analyze_loop_form_1): Same.
7207 (vect_analyze_loop_form): Same.
7208 (vect_active_double_reduction_p): Same.
7209 (vect_analyze_loop_operations): Same.
7210 (neutral_op_for_slp_reduction): Same.
7211 (vect_is_simple_reduction): Same.
7212 (vect_model_reduction_cost): Same.
7213 (get_initial_def_for_reduction): Same.
7214 (get_initial_defs_for_reduction): Same.
7215 (vect_create_epilog_for_reduction): Same.
7216 (vectorize_fold_left_reduction): Same.
7217 (vectorizable_reduction): Same.
7218 (vectorizable_induction): Same.
7219 (vectorizable_live_operation): Same.
7220 (loop_niters_no_overflow): Same.
7221 (vect_get_loop_mask): Same.
7222 (vect_transform_loop_stmt): Same.
7223 (vect_transform_loop): Same.
7224 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
7225 (vect_determine_precisions): Same.
7226 (vect_pattern_recog_1): Same.
7227 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
7228 * tree-vect-stmts.c (stmt_vectype): Same.
7229 (process_use): Same.
7230 (vect_init_vector_1): Same.
7231 (vect_truncate_gather_scatter_offset): Same.
7232 (get_group_load_store_type): Same.
7233 (vect_build_gather_load_calls): Same.
7234 (vect_get_strided_load_store_ops): Same.
7235 (vectorizable_simd_clone_call): Same.
7236 (vectorizable_store): Same.
7237 (permute_vec_elements): Same.
7238 (vectorizable_load): Same.
7239 (vect_transform_stmt): Same.
7240 (supportable_widening_operation): Same.
7241 * tree-vectorizer.c (vec_info::replace_stmt): Same.
7242 (vec_info::free_stmt_vec_info): Same.
7243 (vect_free_loop_info_assumptions): Same.
7244 (vect_loop_vectorized_call): Same.
7245 (set_uid_loop_bbs): Same.
7246 (vectorize_loops): Same.
7247 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
7248 * tree.c (add_tree_to_fld_list): Same.
7249 (fld_type_variant_equal_p): Same.
7250 (fld_decl_context): Same.
7251 (fld_incomplete_type_of): Same.
7252 (free_lang_data_in_binfo): Same.
7253 (need_assembler_name_p): Same.
7254 (find_decls_types_r): Same.
7255 (get_eh_types_for_runtime): Same.
7256 (find_decls_types_in_eh_region): Same.
7257 (find_decls_types_in_node): Same.
7258 (assign_assembler_name_if_needed): Same.
7259 * value-prof.c (stream_out_histogram_value): Same.
7260 * value-prof.h: Same.
7261 * var-tracking.c (use_narrower_mode): Same.
7262 (prepare_call_arguments): Same.
7263 (vt_expand_loc_callback): Same.
7264 (resolve_expansions_pending_recursion): Same.
7265 (vt_expand_loc): Same.
7266 * varasm.c (const_hash_1): Same.
7267 (compare_constant): Same.
7268 (tree_output_constant_def): Same.
7269 (simplify_subtraction): Same.
7270 (get_pool_constant): Same.
7271 (output_constant_pool_2): Same.
7272 (output_constant_pool_1): Same.
7273 (mark_constants_in_pattern): Same.
7274 (mark_constant_pool): Same.
7275 (get_section_anchor): Same.
7276 * vr-values.c (compare_range_with_value): Same.
7277 (vr_values::extract_range_from_phi_node): Same.
7278 * vr-values.h: Same.
7279 * web.c (unionfind_union): Same.
7282 2019-07-09 Martin Sebor <msebor@redhat.com>
7285 * align.h: Change class-key from class to struct and vice versa
7286 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
7287 * alloc-pool.h: Same.
7288 * asan.c (shadow_mem_size): Same.
7289 * auto-profile.c: Same.
7290 * basic-block.h: Same.
7292 * cfgexpand.c (set_rtl): Same.
7293 (expand_one_stack_var_at): Same.
7297 * config/i386/i386.h: Same.
7298 * df-problems.c (df_print_bb_index): Same.
7300 * df.h (df_single_use): Same.
7301 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
7302 (layout::annotation_line_showed_range_p): Same.
7303 (get_printed_columns): Same.
7304 (correction::ensure_terminated): Same.
7305 (line_corrections::~line_corrections): Same.
7308 * dump-context.h: Same.
7310 * dwarf2out.c: Same.
7311 * edit-context.c: Same.
7312 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
7314 * function.c (assign_stack_local): Same.
7317 * gcov.c (block_info::block_info): Same.
7318 * genattrtab.c: Same.
7319 * genextract.c: Same.
7320 * genmatch.c (comparison_code_p): Same.
7321 (id_base::id_base): Same.
7322 (decision_tree::print): Same.
7323 * genoutput.c: Same.
7324 * genpreds.c (write_one_predicate_function): Same.
7325 * genrecog.c (validate_pattern): Same.
7326 (find_operand_positions): Same.
7327 (optimize_subroutine_group): Same.
7328 (merge_pattern_transition::merge_pattern_transition): Same.
7329 (merge_pattern_info::merge_pattern_info): Same.
7330 (merge_state_result::merge_state_result): Same.
7331 (merge_into_state): Same.
7332 * gensupport.c: Same.
7333 * gensupport.h: Same.
7334 * ggc-common.c (init_ggc_heuristics): Same.
7335 * ggc-tests.c (test_union): Same.
7336 * gimple-loop-interchange.cc (dump_induction): Same.
7337 * gimple-loop-versioning.cc: Same.
7338 * gimple-match.h (gimple_match_cond::any_else): Same.
7339 * gimple-ssa-backprop.c: Same.
7340 * gimple-ssa-sprintf.c: Same.
7341 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
7343 (store_immediate_info::store_immediate_info): Same.
7344 (merged_store_group::apply_stores): Same.
7345 (get_location_for_stmts): Same.
7346 * gimple-ssa-strength-reduction.c: Same.
7347 * gimple-ssa-warn-alloca.c: Same.
7348 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7349 * godump.c (go_type_decl): Same.
7350 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7352 * hash-set-tests.c (test_set_of_strings): Same.
7354 * hsa-common.h: Same.
7355 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
7356 * input.c (assert_loceq): Same.
7359 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
7360 * ipa-fnsummary.h: Same.
7361 * ipa-inline.h: Same.
7363 * ipa-split.c (visit_bb): Same.
7364 * ira-int.h (minmax_set_iter_next): Same.
7365 * loop-invariant.c: Same.
7367 * lra-eliminations.c: Same.
7369 * lra-lives.c (mark_regno_dead): Same.
7370 * lra-remat.c: Same.
7371 * lra-spills.c: Same.
7372 * lto-streamer.h: Same.
7373 * mem-stats.h: Same.
7374 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
7375 * omp-low.c (omp_clause_aligned_alignment): Same.
7376 * optabs-query.h (get_vcond_eq_icode): Same.
7378 * opts.c (wrap_help): Same.
7380 * predict.c (predict_paths_leading_to_edge): Same.
7381 * pretty-print.h: Same.
7382 * profile-count.h: Same.
7384 * read-rtl-function.c: Same.
7387 * regrename.c: Same.
7388 * regrename.h: Same.
7391 * rtl.h (costs_add_n_insns): Same.
7393 * sched-int.h: Same.
7394 * sel-sched-ir.h: Same.
7396 * sese.h (vec_find): Same.
7398 * target-globals.h: Same.
7399 * tree-affine.c (aff_combination_find_elt): Same.
7400 * tree-affine.h: Same.
7401 * tree-data-ref.h: Same.
7402 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
7403 * tree-predcom.c: Same.
7404 * tree-scalar-evolution.c (find_var_scev_info): Same.
7405 * tree-ssa-alias.h: Same.
7406 * tree-ssa-ccp.c: Same.
7407 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
7408 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
7409 (rewrite_mem_refs): Same.
7410 (execute_sm_if_changed): Same.
7411 (hoist_memory_references): Same.
7412 * tree-ssa-loop-ivopts.c (operator<=): Same.
7413 * tree-ssa-loop.h: Same.
7414 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
7415 * tree-ssa-structalias.c: Same.
7416 * tree-switch-conversion.h (cluster::cluster): Same.
7417 (simple_cluster::simple_cluster): Same.
7418 * tree-vect-patterns.c (type_conversion_p): Same.
7419 * tree-vectorizer.c (dump_stmt_cost): Same.
7420 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
7421 * tree.c (protected_set_expr_location): Same.
7422 * tree.h (desired_pro_or_demotion_p): Same.
7423 (fndecl_built_in_p): Same.
7424 * unique-ptr-tests.cc: Same.
7425 * var-tracking.c (delete_variable_part): Same.
7426 * varasm.c (assemble_real): Same.
7427 (tree_output_constant_def): Same.
7429 * wide-int-bitmask.h: Same.
7430 * wide-int.h (decompose): Same.
7432 2019-07-09 Richard Biener <rguenther@suse.de>
7434 PR tree-optimization/91114
7435 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7436 find a vector type isn't fatal.
7438 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7440 * config/aarch64/aarch64-simd.md
7441 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7442 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7443 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7444 (*aarch64_crypto_aese_fused,
7445 *aarch64_crypto_aesd_fused): Update to new definition.
7446 * config/aarch64/aarch64.c
7447 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7449 2019-07-09 Richard Biener <rguenther@suse.de>
7451 * gimple-match.h (gimple_match_op::resimplify): New.
7452 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7453 gimple_resimplify4, gimple_resimplify5): Remove.
7454 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7455 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7457 (gimple_match_op::resimplify): New.
7458 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7459 according to availability. Use gimple_match_op::resimplify.
7461 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7463 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7465 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7467 * config/arm/crypto.md:
7468 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7469 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7470 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7471 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7473 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7474 * config/arm/aarch-common-protos.h
7475 (aarch_crypto_can_dual_issue): Remove.
7476 * config/arm/aarch-common.c
7477 (aarch_crypto_can_dual_issue): Likewise.
7478 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7479 * config/arm/cortex-a53.md: Likewise.
7480 * config/arm/cortex-a57.md: Likewise.
7481 * config/arm/iterators.md:
7482 (CRYPTO_BINARY): Redefine.
7483 (CRYPTO_UNARY): Removed.
7484 (CRYPTO_AES, CRYPTO_AESMC): New.
7486 2019-07-09 Richard Biener <rguenther@suse.de>
7488 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7489 (vn_reference_lookup_3): If the main ref has no access path recorded
7490 but orig_ref has use it to do access-path based disambiguation.
7491 (vn_reference_lookup_pieces): Adjust.
7492 (vn_reference_lookup): Pass down original ref if we valueized.
7494 2019-07-09 Martin Liska <mliska@suse.cz>
7496 * doc/extend.texi: Document influence on loop
7499 2019-07-09 Martin Liska <mliska@suse.cz>
7501 * lto-compress.c (lto_normalized_zstd_level): Do not use
7502 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7503 of libzstd. One can use 0 as a default compression level.
7505 2019-07-09 Martin Liska <mliska@suse.cz>
7507 * doc/invoke.texi: Add link from -fprofile-dir option.
7508 Use better wording for 'gcno filename'.
7510 2019-07-08 Martin Sebor <msebor@redhat.com>
7514 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7516 (args_loc_t): New type.
7517 (args_loc_t, locmap_t): same.
7518 (diag_returned_locals): New function.
7519 (is_addr_local): Same.
7520 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7521 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7522 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7524 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7526 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7527 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7528 and casts in offset when different, both through gimple stmts
7529 and through trees. Rewritten using loops to minimize code duplication
7532 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7534 * emit-rtl.c (set_insn_locations): New function moved from...
7535 * function.c (set_insn_locations): ...here.
7536 * ira-emit.c (emit_moves): Propagate location of the first instruction
7537 to the inserted move instructions.
7538 * reg-stack.c (compensate_edge): Set the location if the sequence is
7539 inserted on the edge.
7540 * rtl.h (set_insn_locations): Declare.
7542 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7544 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7545 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7548 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7550 PR rtl-optimization/88233
7551 * common.opt (fsplit-wide-types-early): New option.
7552 * common/config/rs6000/rs6000-common.c
7553 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7555 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7556 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7557 flag_split_wide_types_early.
7558 (pass_data_lower_subreg3): New.
7559 (pass_lower_subreg3): New.
7560 (make_pass_lower_subreg3): New.
7561 * passes.def (pass_lower_subreg2): Move after the loop passes.
7562 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7563 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7564 the pass pipeline; its previous place is taken by ...
7565 (make_pass_lower_subreg3): ... this.
7567 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7569 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7570 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7572 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7574 * config/s390/constraints.md: Add new jsc constraint.
7575 * config/s390/predicates.md: New predicates.
7576 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7577 * config/s390/s390.c (s390_valid_shift_count): New function.
7578 (print_shift_count_operand): Use s390_valid_shift_count.
7579 (print_operand): Likewise.
7580 * config/s390/s390.md: Use new predicate.
7581 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7582 * config/s390/vector.md: Use new predicate.
7584 2019-07-08 Andrew Waterman <andrew@sifive.com>
7585 Jim Wilson <jimw@sifive.com>
7587 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7588 bitsize instead of BITS_PER_WORD.
7590 2019-07-08 Martin Liska <mliska@suse.cz>
7592 * collect2.c (defined): Revert to before r254460.
7593 (scan_prog_file): Revert to before r254460.
7595 2019-07-08 Richard Biener <rguenther@suse.de>
7597 PR tree-optimization/83518
7598 * tree-ssa-sccvn.c: Include splay-tree.h.
7599 (struct pd_range, struct pd_data): New.
7600 (struct vn_walk_cb_data): Add data to track partial definitions.
7601 (vn_walk_cb_data::~vn_walk_cb_data): New.
7602 (vn_walk_cb_data::push_partial_def): New.
7603 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7604 (vn_reference_lookup_2): When partial defs are registered give up.
7605 (vn_reference_lookup_3): Track partial defs for memset and
7606 constructor zeroing and for defs from constants.
7608 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7610 * doc/install.texi (bootstrap-Og): Document.
7612 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7614 * config/riscv/pic.md (*local_pic_load_s<mode>)
7615 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7616 referenced by <mode>, giving...
7617 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7618 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7619 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7620 use <X:MODE> for the mode attribute.
7622 2019-07-07 Jeff Law <law@redhat.com>
7624 PR tree-optimization/91090
7625 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7626 in handling of ranges to simplify switch statements.
7628 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7630 * config/darwin.c (darwin_override_options): Make a final check on PIC
7633 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7635 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7638 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7641 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7642 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7643 instead of matching them to "l" output operands.
7645 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7647 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7648 and check whether addr.reg is nonnull before using it.
7650 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7652 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7653 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7654 variable(s). For conditional lastprivate look through outer
7655 GIMPLE_OMP_SCAN context.
7656 (lower_omp_1): For conditional lastprivate look through outer
7657 GIMPLE_OMP_SCAN context.
7659 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7660 member to combined_into_simd_safelen1.
7661 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7662 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7663 clauses if ctx->combined_into_simd_safelen1 put statements after the
7664 predicate conditionalized block rather than into it.
7666 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7668 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7670 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7671 Make the choice of <mode> explicit, giving...
7672 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7674 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7676 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7677 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7679 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7680 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7681 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7682 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7683 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7684 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7685 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7686 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7687 (*avx512f_scatterdi<mode>): Likewise.
7688 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7690 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7692 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7693 specify the mode iterator referenced by <mode>, giving...
7694 (*push1_h8300hs_<QHI:mode>): ...this.
7696 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7698 * config/gcn/gcn-valu.md
7699 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7700 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7701 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7702 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7703 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7704 but using the _exec comparison patterns.
7705 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7706 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7707 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7708 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7709 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7710 but using the _exec comparison patterns.
7712 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7714 * config/arm/sync.md
7715 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7716 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7717 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7718 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7721 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7723 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7724 (maybe_lookup_ctx): Add forward declaration.
7725 (omp_find_scan): Likewise. Walk into body of simd if composited
7726 with worksharing loop.
7727 (scan_omp_simd_scan): New function.
7728 (scan_omp_1_stmt): Call it.
7729 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7730 ctx->for_simd_scan_phase.
7731 (lower_rec_input_clauses): Do much less work for inscan reductions
7732 in ctx->for_simd_scan_phase is_simd regions.
7733 (lower_omp_scan): Set is_simd also on simd constructs composited
7734 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7735 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7736 emit their body after in simd constructs composited with worksharing
7738 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7740 * omp-low.c (omp_find_scan): Make static.
7741 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7742 the second loop, var2 represents the first partial sum and so needs
7743 to go before rprivb[ivar].
7745 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7747 * config/rs6000/rs6000-logue.c: Remove unused code.
7749 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7751 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7753 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7756 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7757 check with a frame laid out check.
7759 2019-07-05 Richard Biener <rguenther@suse.de>
7761 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7762 when comparing against a store with possibly the same value.
7764 2019-07-05 Richard Biener <rguenther@suse.de>
7766 PR tree-optimization/91091
7767 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7768 (walk_non_aliased_vuses): Likewise.
7769 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7770 (get_continuation_for_phi): New tbaa_p parameter and pass
7772 (walk_non_aliased_vuses): Likewise.
7773 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7774 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7775 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7777 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7778 (adjust_offsets_for_equal_base_address): New function.
7779 (vn_reference_lookup_3): Use it to catch more base equivalences.
7780 Handle and pass down tbaa_p flag.
7781 (vn_reference_lookup_pieces): Adjust.
7782 (vn_reference_lookup): Remove alias-set altering, instead pass
7783 down false as tbaa_p.
7785 2019-07-05 Richard Biener <rguenther@suse.de>
7787 PR tree-optimization/91091
7788 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7789 accesses can happen with -fno-strict-aliasing.
7791 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7793 * tree-ssa-alias.c (alias_stats): Add
7794 nonoverlapping_component_refs_since_match_p_must_overlap.
7795 (dump_alias_stats): Print it.
7796 (nonoverlapping_component_refs_since_match_p): Add early exit.
7797 (nonoverlapping_component_refs_p): Do not account early exit.
7799 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7801 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7802 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7803 (emit_eh_dispatch): Delete.
7804 (lower_catch): Emit the eh_dispatch manually and set the location of
7805 the first catch statement onto it.
7806 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7807 (lower_eh_dispatch): Propagate location.
7808 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7809 (eliminate_build): Likewise.
7811 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7813 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7814 phi nodes if possible.
7815 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7816 location info on the newly created statement.
7817 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7818 newly created increment if needed.
7820 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7823 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7824 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7825 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7826 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7827 ctx->add_safelen1 is set.
7829 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7830 GOMP_loop_start at the start of second worksharing loop in a scan.
7831 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7832 worksharing loop in a scan even if there are conditional lastprivates,
7833 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7835 2019-07-04 Jan Hubicka <jh@suse.cz>
7837 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7838 Fix check for match in the ref walk.
7840 2019-07-04 Martin Liska <mliska@suse.cz>
7842 * tree-ssa-loop-niter.c
7843 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7844 (estimate_numbers_of_iterations):
7845 Support __builtin_expect_with_probability for analysis
7846 of # of loop iterations.
7848 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7850 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7851 * except.c: Likewise.
7852 * expr.c (expand_expr_real_1): Reject it.
7853 * gimplify.c (gimplify_expr): Gimplify it, within
7855 * tree-dump.c (dequeue_and_dump): Dump it.
7856 * tree-pretty-print.c (dump_generic_node): Likewise.
7857 * tree.c (block_may_fallthru): Handle it.
7858 * tree.def (EH_ELSE_EXPR): Introduce it.
7859 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7860 with GIMPLE_EH_ELSE as try/finally/else.
7862 2019-07-04 Richard Biener <rguenther@suse.de>
7865 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7866 parameter whether to disable GC collection.
7867 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7869 (execute_all_ipa_transforms): Likewise and pass it down.
7870 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7871 collection from applying IPA transforms.
7872 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7873 from applying IPA transforms.
7875 2019-07-04 Richard Biener <rguenther@suse.de>
7877 PR tree-optimization/90911
7878 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7879 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7880 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7881 scalar_loop_scaling.
7882 (vect_transform_loop): Scale scalar loop profile if needed.
7883 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7884 the loop copy from if-conversion adjust edge probabilities
7885 and scale the vectorized loop body profile, queue the scalar
7886 profile for updating after peeling.
7888 2019-07-04 Jan Hubicka <jh@suse.cz>
7890 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7891 parameters; return early for must-alias.
7892 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7893 outer types match, try nonoverlapping_component_refs
7894 if must-alias is not obvious.
7895 (indirect_refs_may_alias_p): Likewise.
7896 (refs_may_alias_p_2): Likewise.
7898 2019-07-04 Richard Biener <rguenther@suse.de>
7900 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7902 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7904 (struct vn_walk_cb_data): New callback data struct.
7905 (vn_reference_lookup_2): Adjust.
7906 (vn_reference_lookup_3): Likewise.
7907 (vn_reference_lookup_pieces): Likewise.
7908 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7909 (visit_reference_op_load): Adjust.
7911 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7913 PR tree-optimization/91063
7914 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7915 stmt from stmts sequence before calling vect_init_vector_1.
7918 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7921 * fwprop.c (reg_single_def_p): New function.
7922 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7923 (forward_propagate_into): New parameter reg_prop_only
7924 with default value false.
7925 Propagate def's src into loop only if SET_SRC and SET_DEST
7926 of def_set have single definitions.
7927 Likewise if reg_prop_only is set to true.
7928 (fwprop): New param fwprop_addr_p.
7929 Integrate fwprop_addr into fwprop.
7930 (fwprop_addr): Remove.
7931 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7933 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7934 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7935 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7937 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7939 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7940 in worksharing loop scans.
7942 PR tree-optimization/91074
7943 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7946 PR rtl-optimization/90756
7947 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7950 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7952 * config/aarch64/aarch64.md: Remove redundant constraints from
7953 define_expand but keep some patterns untouched if they are
7954 specially selected by TARGET_SECONDARY_RELOAD hook.
7955 * config/aarch64/aarch64-sve.md: Likewise.
7956 * config/aarch64/atomics.md: Remove redundant constraints from
7958 * config/aarch64/aarch64-simd.md: Likewise.
7960 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7962 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7963 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7964 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7966 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7969 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7971 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7972 (STARTFILE_SPEC): Split crt3 into a separate spec.
7973 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7974 (DARWIN_CRT2_SPEC): New.
7975 (DARWIN_CRT3_SPEC): New.
7976 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7977 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7978 (DARWIN_CRT3_SPEC): New.
7980 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7982 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7983 Change the RTL attribute "length" from "4" to "*" to allow the
7984 length attribute to be adjusted automatically for prefixed load,
7985 store, and add immediate instructions.
7986 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7988 (extendsi<mode>2, EXTSI iterator): Likewise.
7989 (movsi_internal1): Likewise.
7990 (movsi_from_sf): Likewise.
7991 (movdi_from_sf_zero_ext): Likewise.
7992 (mov<mode>_internal): Likewise.
7993 (movcc_internal1, QHI iterator): Likewise.
7994 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7995 (movsf_from_si): Likewise.
7996 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7997 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7998 (mov<mode>, FMOVE128 iterator): Likewise.
7999 (movdi_internal64): Likewise.
8000 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
8002 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
8003 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
8004 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
8005 (vsx_splat_v4sf): Likewise.
8007 2019-07-03 Mark Wielaard <mark@klomp.org>
8010 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
8011 DW_AT_addr_base if there is actually a .debug_addr section with
8013 (output_addr_table): Add DWARF5 table header generation here after
8014 checking there are actually any addresses from...
8015 (dwarf2out_finish): ...here.
8017 2019-07-03 Richard Biener <rguenther@suse.de>
8020 * match.pd (vec_perm -> bit_insert): Fix element read from
8023 2019-07-03 Martin Liska <mliska@suse.cz>
8025 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
8026 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
8028 * generic-match-head.c: Include dbgcnt.h.
8029 * gimple-match-head.c: Likewise.
8031 2019-07-03 Martin Liska <mliska@suse.cz>
8033 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
8034 (GCOV_COUNTER_V_TOPN): New.
8035 (GCOV_COUNTER_V_INDIR): Use _topn.
8036 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
8037 (GCOV_TOPN_VALUES): New.
8038 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
8039 (GCOV_TOPN_VALUES_COUNTERS): New.
8040 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
8042 (gimple_init_gcov_profiler): Rename variables from one_value
8044 (gimple_gen_one_value_profiler): Remove.
8045 (gimple_gen_topn_values_profiler): New function.
8046 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
8047 names instead of SINGLE_VALUE.
8048 (stream_out_histogram_value): Likewise.
8049 (stream_in_histogram_value): Likewise.
8050 (get_most_common_single_value): Likewise.
8051 (gimple_divmod_fixed_value_transform): Likewise.
8052 (gimple_stringops_transform): Likewise.
8053 (gimple_divmod_values_to_profile): Likewise.
8054 (gimple_stringops_values_to_profile): Likewise.
8055 (gimple_find_values_to_profile): Likewise.
8056 * value-prof.h (enum hist_type): Rename to TOPN.
8057 (gimple_gen_one_value_profiler): Remove.
8058 (gimple_gen_topn_values_profiler): New.
8060 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
8062 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
8063 if it has the DW_AT_data_member_location attribute.
8065 2019-07-03 Richard Biener <rguenther@suse.de>
8067 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
8070 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
8072 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
8073 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
8074 (tlsdesc_small_sve_<mode>): Likewise.
8076 2019-07-03 Martin Liska <mliska@suse.cz>
8078 * Makefile.in: Define ZSTD_LIB.
8079 * common.opt: Adjust compression level
8080 to support also zstd levels.
8081 * config.in: Regenerate.
8082 * configure: Likewise.
8083 * configure.ac: Add --with-zstd and --with-zstd-include options
8085 * doc/install.texi: Mention zstd dependency.
8086 * gcc.c: Print supported LTO compression algorithms.
8087 * lto-compress.c (lto_normalized_zstd_level): Likewise.
8088 (lto_compression_zstd): Likewise.
8089 (lto_uncompression_zstd): Likewise.
8090 (lto_end_compression): Dispatch in between zlib and zstd.
8091 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
8092 (lto_uncompression_zlib): Make it static.
8093 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
8094 * lto-section-in.c (lto_get_section_data): Pass info
8095 about used compression.
8096 * lto-streamer-out.c: By default use zstd when possible.
8097 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
8098 (TV_IPA_LTO_COMPRESS): Likewise for compression.
8100 2019-07-03 Martin Liska <mliska@suse.cz>
8102 * lto-section-in.c (lto_get_section_data): Add "lto" section.
8103 * lto-section-out.c (lto_destroy_simple_output_block): Never
8104 compress LTO_section_lto section.
8105 * lto-streamer-out.c (produce_asm): Do not set major_version
8107 (lto_output_toplevel_asms): Likewise.
8108 (produce_lto_section): New function.
8109 (lto_output): Call produce_lto_section.
8110 (lto_write_mode_table): Do not set major_version and
8112 (produce_asm_for_decls): Likewise.
8113 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
8115 (struct lto_header): Remove.
8116 (struct lto_section): New struct.
8117 (struct lto_simple_header): Do not inherit from lto_header.
8118 (struct lto_file_decl_data): Add lto_section_header field.
8120 2019-07-03 Martin Liska <mliska@suse.cz>
8122 * lra-eliminations.c (eliminate_regs_in_insn): Remove
8124 * reg-stack.c (check_asm_stack_operands): Likewise.
8125 * tree-ssa-structalias.c (create_function_info_for): Likewise.
8126 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8127 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
8130 2019-07-03 Martin Liska <mliska@suse.cz>
8132 PR tree-optimization/90892
8133 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
8134 in string constants.
8136 2019-07-03 Martin Liska <mliska@suse.cz>
8139 * multiple_target.c (create_dispatcher_calls): Add to comdat
8140 group only if set for ifunc.
8142 2019-07-03 Martin Liska <mliska@suse.cz>
8145 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
8146 Define local_object_name in outer scope in order to handle
8147 use-after-scope issue.
8149 2019-07-03 Martin Liska <mliska@suse.cz>
8151 * common.opt: Add fprofile-note.
8152 * coverage.c (coverage_init): Append the option
8154 * doc/invoke.texi: Document -fprofile-note.
8156 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8158 PR tree-optimization/91033
8159 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
8160 vect_analyze_data_refs): Add bool * arguments.
8161 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
8162 if failure is due to scatter/gather, set *fatal to false if non-NULL.
8163 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8164 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
8165 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
8166 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
8167 vect_analyze_data_refs caller.
8169 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
8171 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
8172 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
8173 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
8174 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8175 OMP_CLAUSE__SCANTEMP_ entry.
8176 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
8177 * tree-pretty-print.c (dump_omp_clause): Likewise.
8178 * tree-nested.c (convert_nonlocal_omp_clauses,
8179 convert_local_omp_clauses): Likewise.
8180 * omp-general.h (struct omp_for_data): Add have_scantemp and
8181 have_nonctrl_scantemp members.
8182 * omp-general.c (omp_extract_for_data): Initialize them.
8183 * omp-low.c (struct omp_context): Add scan_exclusive member.
8184 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
8185 result again with GF_OMP_FOR_KIND_MASK. Initialize also
8186 ctx->scan_exclusive.
8187 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
8188 of !ctx->scan_inclusive.
8189 (lower_rec_input_clauses): Simplify gimplification of dtors using
8190 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
8191 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
8192 loops. Don't add barrier for reduction_omp_orig_ref if
8193 ctx->scan_??xclusive.
8194 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
8195 (lower_omp_scan): Use ctx->scan_exclusive instead
8196 of !ctx->scan_inclusive. Handle worksharing loops with inscan
8197 reductions. Use new_vard != new_var instead of repeated
8198 omp_is_reference calls.
8199 (omp_find_scan, lower_omp_for_scan): New functions.
8200 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
8202 * omp-expand.c (expand_omp_scantemp_alloc): New function.
8203 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
8204 and fd->have_scantemp.
8206 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
8207 on worksharing loop propagate it as shared clause to containing
8210 * omp-expand.c (expand_omp_for_static_nochunk,
8211 expand_omp_for_static_chunk): For nowait worksharing loop with
8212 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
8215 2019-07-02 qing zhao <qing.zhao@oracle.com>
8217 PR preprocessor/90581
8218 * doc/cppopts.texi: Add document for -fmax-include-depth.
8219 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
8221 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
8223 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
8224 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
8225 (mmx_packssdw): Ditto.
8226 (mmx_punpckhbw): Ditto.
8227 (mmx_punpcklbw): Ditto.
8228 (mmx_punpckhwd): Ditto.
8229 (mmx_punpcklwd): Ditto.
8230 (mmx_punpckhdq): Ditto.
8231 (mmx_punpckldq): Ditto.
8232 (*vec_dupv4hi): Ditto.
8233 (*vec_dupv2si): Ditto.
8234 (mmx_pmovmskb): Ditto.
8235 * config/i386/sse.md (sse_cvtpi2ps): Use
8236 TARGET_SSE2 && SSE_REG_P in split condition.
8237 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
8238 TARGET_SSSE3 && SSE_REGNO_P in split condition.
8239 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
8240 (ssse3_pshufbv8qi3): Ditto.
8241 (ssse3_palignrdi): Ditto.
8243 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
8245 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
8246 with inlined save and restore.
8248 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
8250 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
8251 to be inserted on single successor edge of the entry block. Then call
8252 commit_edge_insertions instead of inserting the instructions manually.
8253 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
8254 RTL expansion and rebuild jump labels chain.
8256 2019-07-02 Richard Biener <rguenther@suse.de>
8258 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
8260 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8262 * tree.c (build_common_tree_nodes): Initialize them.
8263 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8264 Make declarations comments.
8265 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
8266 chrec_known): Remove definitions.
8267 (initialize_scalar_evolutions_analyzer): Remove.
8268 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
8269 * tree-streamer.c (preload_common_nodes): Do not preload
8270 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
8272 2019-07-02 Jan Hubicka <jh@suse.cz>
8274 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
8277 2019-07-02 Jan Hubicka <jh@suse.cz>
8279 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
8281 (nonoverlapping_component_refs_since_match_p): ... this one;
8282 handle also non-decl bases; return -1 if search gave up.
8283 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
8284 nonoverlapping_component_refs_of_decl_p_no_alias to
8285 nonoverlapping_component_refs_since_match_p_may_alias,
8286 nonoverlapping_component_refs_since_match_p_no_alias.
8287 (dump_alias_stats): Update dumping.
8288 (aliasing_matching_component_refs_p): Break out from ...;
8289 dispatch to nonoverlapping_component_refs_for_decl_p
8290 and nonoverlapping_component_refs_since_match_p.
8291 (aliasing_component_refs_p): ... here; call
8292 nonoverlapping_component_refs_p in scenarios where we can not
8293 precisely determine base match.
8294 (decl_refs_may_alias_p): Use
8295 nonoverlapping_component_refs_since_match_p.
8296 (indirect_ref_may_alias_decl_p): Do not call
8297 nonoverlapping_component_refs_p.
8298 (indirect_refs_may_alias_p): Likewise.
8300 2019-07-02 Jan Hubicka <jh@suse.cz>
8302 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
8303 to clobber of return value.
8305 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8307 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
8308 for is_neon_type instructions that have not already been categorized.
8310 2019-07-02 Richard Biener <rguenther@suse.de>
8312 PR tree-optimization/58483
8313 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
8314 for MEM_REF base hashing.
8315 (equal_mem_array_ref_p): Likewise for base comparison.
8317 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8319 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
8321 (signbit<mode>2): Use that name. Simplify.
8323 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
8326 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
8327 Tune heuristic from PR71016 to allow MIN / MAX.
8329 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8331 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
8333 (abs<mode>2): Use that name. Simplify.
8335 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8337 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
8339 (neg<mode>2): Use that name. Simplify.
8341 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8343 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8345 (abs<mode>2): Use that name. Simplify.
8347 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8349 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8351 (neg<mode>2): Use that name. Simplify.
8353 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
8355 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
8356 ("enabled" attribute): Handle sse_noavx isa attribute.
8357 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
8358 Use TARGET_SSE && SSE_REGNO_P in split condition.
8359 (*vec_dupv2sf): Ditto.
8361 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8363 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
8365 (floatsi<mode>2): Use that name. Simplify.
8367 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8369 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
8371 (extenddf<mode>2_vsx): Make this a parameterized name.
8372 (extenddf<mode>2): Use those names. Simplify.
8374 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8376 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
8378 (eh_return): Use that name. Simplify.
8380 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8382 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
8383 (doloop_end): Use that name. Simplify.
8385 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8387 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
8389 (indirect_jump): Use that name. Simplify.
8391 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8393 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
8395 (abs<mode>2): Use that name. Simplify.
8397 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8399 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
8401 (fix_trunc<mode>si2): Use that name. Simplify.
8403 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8405 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
8406 (allocate_stack): Use that name. Simplify.
8408 2019-07-01 Martin Sebor <msebor@redhat.com>
8411 * hash-map.h (hash_map::put): On insertion invoke element ctor.
8412 (hash_map::get_or_insert): Same. Reformat comment.
8413 * hash-set.h (hash_set::add): On insertion invoke element ctor.
8414 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8415 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8416 * hash-table.h (hash_table::operator=): Prevent copy assignment.
8417 (hash_table::hash_table (const hash_table&)): Use copy ctor
8418 instead of assignment to copy elements.
8420 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
8421 John David Anglin <danglin@gcc.gnu.org>
8424 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8425 using saved frame pointer.
8427 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8430 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8431 Add frame clobber and schedule blockage.
8433 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8435 * doc/invoke.texi (Link Options): Further editorial changes to
8436 -flinker-output docs.
8438 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8440 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8441 Load both operands of a PLUS into registers separately.
8443 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8445 * config/s390/vector.md: Fix shift count operand printing.
8447 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8449 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8451 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8453 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8454 Use recog_data to test for an output operand.
8456 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8458 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8459 exclude any others that are disparaged or that are bound to need
8461 (ira_get_dup_out_num): Expand comment.
8463 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8465 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8466 constraint string for each operand/alternative combo. Only handle
8467 '%' at the start of constraint strings, and look for it outside
8470 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8472 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8473 alternative_mask instead of HARD_REG_SET to represent a
8474 bitmask of alternatives.
8475 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8476 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8478 2019-07-01 Martin Liska <mliska@suse.cz>
8480 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8481 use () for a constructor call.
8482 (test_applying_fixits_line_out_of_range): Likewise.
8483 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8485 (free_page): Likewise.
8487 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8489 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8490 parameter names to match usage (no functional change).
8491 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8493 2019-07-01 Richard Biener <rguenther@suse.de>
8495 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8497 (pass_fre::execute): Honor it.
8498 * passes.def: Adjust pass_fre invocations to allow iterating,
8499 add non-iterating pass_fre before late threading/dom.
8501 2019-07-01 Richard Biener <rguenther@suse.de>
8503 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8504 TARGET_MEM_REF handling to also handle address-taken ones.
8506 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8508 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8509 hardware attributes): Document avx512vp2intersect.
8511 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8513 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8514 (abs<mode>2): New expander.
8515 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8516 Use CODE_FOR_ssse3_absv8qi2.
8517 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8518 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8520 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8522 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8523 to sse, sse_noavx and avx. Update all uses.
8525 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8527 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8528 (*mmx_<plusminus_insn><mode>3): Ditto.
8529 (*mmx_mulv4hi3"): Ditto.
8530 (*mmx_smulv4hi3_highpart): Ditto.
8531 (*mmx_umulv4hi3_highpart): Ditto.
8532 (*mmx_pmaddwd): Ditto.
8533 (*sse2_umulv1siv1di3): Ditto.
8534 (*mmx_<code>v4hi3): Ditto.
8535 (*mmx_<code>v8qi3): Ditto.
8536 (mmx_ashr<mode>3): Ditto.
8537 ("mmx_<shift_insn><mode>3): Ditto.
8538 (*mmx_eq<mode>3): Ditto.
8539 (mmx_gt<mode>3): Ditto.
8540 (mmx_andnot<mode>3): Ditto.
8541 (*mmx_<code><mode>3): Ditto.
8542 (*mmx_pinsrw): Ditto.
8543 (*mmx_pextrw): Ditto.
8544 (mmx_pshufw_1): Ditto.
8545 (*mmx_uavgv8qi3): Ditto.
8546 (*mmx_uavgv4hi3): Ditto.
8547 ("mmx_psadbw): Ditto.
8548 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8549 (sse_cvttps2pi): Ditto.
8550 (ssse3_pmaddubsw): Ditto.
8551 (*ssse3_pmulhrswv4hi3): Ditto.
8552 (ssse3_psign<mode>3): Ditto.
8554 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8556 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8557 adjustment for bit-fields to all aggregate types.
8559 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8561 * config/rs6000/predicates.md (pcrel_address): Use
8562 SYMBOL_REF_LOCAL_P to determine if a label is local.
8563 (pcrel_external_address): New predicate.
8564 (non_prefixed_mem_operand): Delete, predicate not used.
8565 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8566 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8568 (SYMBOL_REF_PCREL_P): Likewise.
8571 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8573 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8574 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8575 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8577 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8579 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8580 override on extra_headers.
8582 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8584 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8585 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8587 (darwin_driver_init): Likewise.
8589 2019-06-28 Jan Beulich <jbeulich@suse.com>
8591 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8592 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8593 Eliminate redundant alternative.
8595 2019-06-28 Jan Beulich <jbeulich@suse.com>
8597 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8598 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8601 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8603 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8604 having a lower cost regardless of the speed option.
8606 2019-06-28 Jan Beulich <jbeulich@suse.com>
8608 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8609 vector_operand plus, on both alternatives, "Bm" constraint.
8611 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8613 * config/arm/arm.md: Remove redundant constraints from
8614 define_expand but leave reload_inm and reload_outm patterns
8615 untouched since they need special constraints to work.
8616 * config/arm/arm-fixed.md: Remove redundant constraints from
8618 * config/arm/iwmmxt.md: Likewise.
8619 * config/arm/neon.md: Likewise.
8620 * config/arm/sync.md: Likewise.
8621 * config/arm/thumb1.md: Likewise.
8622 * config/arm/vec-common.md: Likewise.
8624 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8626 * doc/install.texi: Document --disable-tm-clone-registry.
8628 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8631 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8634 PR tree-optimization/91010
8635 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8636 return true. Otherwise, don't call operand_equal_p if offset1 or
8637 offset2 is NULL and just return false.
8639 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8641 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8642 user-specified float mode choice for kernel mode code.
8644 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8646 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8649 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8651 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8652 use longcall for 64b code.
8654 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8656 * builtins.c (get_memory_rtx): Fix comment.
8657 * optabs.def (movmem_optab): Change to cpymem_optab.
8658 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8659 (emit_block_move_hints): Change movmem to cpymem.
8660 * defaults.h: Change movmem to cpymem.
8661 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8662 (default_use_by_pieces_infrastructure_p): Ditto.
8663 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8664 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8666 * config/aarch64/aarch64.h: Change movmem to cpymem.
8667 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8668 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8669 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8671 * config/arc/arc-protos.h: Change movmem to cpymem.
8672 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8673 * config/arc/arc.h: Change movmem to cpymem in comment.
8674 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8675 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8676 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8677 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8678 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8679 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8680 * config/avr/avr-protos.h: Change movmem to cpymem.
8681 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8682 avr_out_movmem): Change movmem to cpymem.
8683 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8684 Change movmem to cpymem.
8685 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8686 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8687 Change movmem to cpymem.
8688 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8689 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8690 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8691 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8692 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8693 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8694 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8695 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8696 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8697 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8698 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8699 expand_small_cpymem_or_setmem,
8700 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8701 expand_set_or_cpymem_constant_prologue,
8702 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8703 * config/i386/i386-protos.h: Change movmem to cpymem.
8704 * config/i386/i386.h: Change movmem to cpymem in comment.
8705 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8706 (setmem<mode>): Change expansion function name.
8707 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8708 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8709 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8710 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8711 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8712 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8713 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8715 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8716 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8717 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8718 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8719 Change movmem to cpymem.
8720 * config/mips/mips.h: Change movmem to cpymem.
8721 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8722 * config/nds32/nds32-memory-manipulation.c
8723 (nds32_expand_movmemsi_loop_unknown_size,
8724 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8725 nds32_expand_movmemsi_unroll,
8726 nds32_expand_movmemsi): Change movmem to cpymem.
8727 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8728 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8729 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8730 (pa_adjust_insn_length): Change call to compute_movmem_length.
8731 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8732 movmemdi, movmemdi_prereload,
8733 movmemdi_postreload): Change movmem to cpymem.
8734 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8735 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8736 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8737 * config/riscv/riscv.h: Change movmem to cpymem.
8738 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8739 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8740 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8742 * config/s390/s390-protos.h: Change movmem to cpymem.
8743 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8744 s390_expand_insv): Change movmem to cpymem.
8745 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8746 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8747 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8748 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8749 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8750 for nonexistent function.
8751 * config/vax/vax.h: Change movmem to cpymem in comment.
8752 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8753 * config/visium/visium.h: Change movmem to cpymem in comment.
8754 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8755 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8756 * doc/md.texi: Change movmem to cpymem and update description to match.
8757 * doc/rtl.texi: Change movmem to cpymem.
8758 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8759 * doc/tm.texi: Regenerate.
8761 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8763 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8764 -fvariable-expansion-in-unroller by default.
8765 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8768 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8771 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8772 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8774 * config.gcc(rs6000-*-*): Define target_gtfiles.
8776 2019-06-27 Jan Hubicka <jh@suse.cz>
8778 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8779 (add_type_duplicate): When odr hash is not allocated, to nothing.
8780 (odr_based_tbaa_p): New function.
8781 (set_type_canonical_for_odr_type): New function.
8782 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8783 set_type_canonical_for_odr_type): New.
8784 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8785 ODR based TBAA are not equivalent to non-ODR types.
8787 2019-06-27 Martin Liska <mliska@suse.cz>
8789 PR tree-optimization/90974
8790 PR rtl-optimization/90975
8791 PR rtl-optimization/90976
8793 PR tree-optimization/91017
8794 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8796 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8797 initial commit of IRA.
8798 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8800 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8801 Remove unused mode1.
8802 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8805 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8808 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8809 instead of register_operand for operands[1], add m to its constraints
8810 if operands[2] uses "C" constraint. Ensure in condition that if
8811 operands[2] is not 0, then operands[1] is not a MEM. For last two
8812 alternatives, use unaligned loads instead of aligned if operands[1] is
8815 2019-06-27 Martin Liska <mliska@suse.cz>
8817 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8819 * bt-load.c (move_btr_def): Likewise.
8820 * builtins.c (expand_builtin_apply_args_1): Likewise.
8821 (expand_builtin_apply): Likewise.
8822 * cfgexpand.c (expand_asm_stmt): Likewise.
8823 (construct_init_block): Likewise.
8824 * cfghooks.c (verify_flow_info): Likewise.
8825 * cfgloopmanip.c (remove_path): Likewise.
8826 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8827 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8828 * combine.c (simplify_if_then_else): Likewise.
8829 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8830 (choose_basereg): Likewise.
8831 (ix86_expand_prologue): Likewise.
8832 (ix86_preferred_output_reload_class): Likewise.
8833 * cselib.c (cselib_record_sets): Likewise.
8834 * df-scan.c (df_scan_alloc): Likewise.
8835 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8836 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8837 * emit-rtl.c (try_split): Likewise.
8838 * graphite-scop-detection.c (assign_parameter_index_in_region):
8840 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8841 * ira-color.c (setup_profitable_hard_regs): Likewise.
8842 * ira.c (rtx_moveable_p): Likewise.
8843 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8844 * read-rtl.c (read_subst_mapping): Likewise.
8845 * regrename.c (scan_rtx): Likewise.
8846 * reorg.c (fill_slots_from_thread): Likewise.
8847 * tree-inline.c (tree_function_versioning): Likewise.
8848 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8849 * tree-ssa-sink.c (statement_sink_location): Likewise.
8850 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8851 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8852 (vect_create_epilog_for_reduction): Likewise.
8853 * tree.c (build_nonstandard_integer_type): Likewise.
8855 2019-06-27 Richard Biener <rguenther@suse.de>
8857 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8859 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8861 PR tree-optimization/89772
8862 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8863 out-of-bound accesses checking.
8865 2019-06-27 Martin Liska <mliska@suse.cz>
8867 PR tree-optimization/91014
8868 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8869 when LHS is NULL_TREE.
8871 2019-06-27 Martin Liska <mliska@suse.cz>
8873 * symbol-summary.h (traverse): Pass
8874 argument a to the call of callback.
8875 (gt_ggc_mx): Mark arguments as unused.
8876 (gt_pch_nx): Likewise.
8878 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8881 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8884 2019-06-26 Jeff Law <law@redhat.com>
8886 PR tree-optimization/90883
8887 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8888 (delete_dead_or_redundant_assignment): Likewise.
8890 PR tree-optimization/90883
8891 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8892 * tree-ssa-dse.c: Update various comments to distinguish between
8893 dead and redundant stores.
8894 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8895 (dse_optimize_redundant_stores): New function.
8896 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8897 Distinguish between dead and redundant calls in dump output. All
8899 (delete_dead_or_redundant_assignment): Similarly for assignments.
8900 (dse_optimize_stmt): Handle _CHK variants. For statements which
8901 store 0 into multiple memory locations, try to prove a subsequent
8904 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8907 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8908 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8910 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8912 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8913 (branch_islands): New extern.
8914 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8915 * config/rs6000/rs6000.c: .. here.
8917 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8919 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8920 (powerpc*-*-*) ... to here.
8922 2019-06-26 Jeff Law <law@redhat.com>
8924 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8925 memcpy, memmove and memset builtins.
8926 (maybe_trim_memstar_call): Likewise.
8928 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8930 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8932 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8934 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8936 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8938 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8940 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8942 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8945 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8947 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8949 2019-06-26 Richard Biener <rguenther@suse.de>
8952 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8954 2019-06-26 Richard Biener <rguenther@suse.de>
8956 * lto-streamer.h (lto_bitmap_alloc): Remove.
8957 (lto_bitmap_free): Likewise.
8958 * lto-streamer.c (lto_bitmap_alloc): Remove.
8959 (lto_bitmap_free): Likewise.
8960 (lto_obstack): Likewise.
8961 (lto_obstack_initialized): Likewise.
8962 * lto-streamer-out.c (lto_output): Use own obstack for local
8963 bitmap, free it consistently.
8965 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8968 * config/i386/sse.md
8969 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8970 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8971 insns if operands[2] is misaligned_operand.
8973 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8975 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8977 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8980 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8982 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8984 2019-06-26 Martin Liska <mliska@suse.cz>
8986 PR tree-optimization/90973
8987 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8988 epilogue_cost_vec instead of prologue_cost_vec for
8991 2019-06-26 Martin Liska <mliska@suse.cz>
8993 * bb-reorder.c (connect_better_edge_p): Add missing else
8994 statement in the middle of if-else statements.
8996 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8997 H.J. Lu <hongjiu.lu@intel.com>
8998 Olga Makhotina <olga.makhotina@intel.com>
9000 * common/config/i386/i386-common.c
9001 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
9002 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
9003 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
9004 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
9005 (ix86_handle_option): Handle -mavx512vp2intersect.
9006 * config/i386/avx512vp2intersectintrin.h: New.
9007 * config/i386/avx512vp2intersectvlintrin.h: New.
9008 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
9009 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9011 * config/i386/i386-builtin-types.def: Add new types.
9012 * config/i386/i386-builtin.def: Add new builtins.
9013 * config/i386/i386-builtins.c: (enum processor_features): Add
9014 F_AVX512VP2INTERSECT.
9015 (static const _isa_names_table isa_names_table): Ditto.
9016 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9017 __AVX512VP2INTERSECT__.
9018 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
9019 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
9020 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
9021 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
9022 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
9023 * config/i386/i386-options.c (ix86_target_string): Add
9024 -mavx512vp2intersect.
9025 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
9026 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
9027 P2HImode and P2QImode.
9028 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
9029 number for P2QImode and P2HImode.
9030 (ix86_regmode_natural_size): New function.
9031 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
9032 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
9033 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
9034 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
9035 * config/i386/i386.opt: Add -mavx512vp2intersect.
9036 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
9037 avx512vp2intersectvlintrin.h.
9038 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
9039 (define_mode_iterator VI48_AVX512VP2VL): New.
9040 (avx512vp2intersect_2intersect<mode>,
9041 avx512vp2intersect_2intersectv16si): New define_insn patterns.
9042 * config.gcc: Add avx512vp2intersectvlintrin.h and
9043 avx512vp2intersectintrin.h to extra_headers.
9044 * doc/invoke.texi: Document -mavx512vp2intersect.
9046 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
9048 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
9050 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
9052 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
9053 savres_routine_syms, savres_routine_name, morestack_ref,
9054 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9055 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9056 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9057 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9058 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9059 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9060 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9061 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9062 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9063 get_stack_clash_protection_probe_interval,
9064 get_stack_clash_protection_guard_size,
9065 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9066 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9067 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9068 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9069 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9070 gen_frame_mem_offset, rs6000_savres_routine_name,
9071 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9072 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9073 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9074 rs6000_global_entry_point_prologue_needed_p,
9075 rs6000_get_separate_components, rs6000_components_for_bb,
9076 rs6000_disqualify_components, rs6000_emit_prologue_components,
9077 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9078 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9079 rs6000_output_savres_externs, rs6000_output_function_prologue,
9080 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9081 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9082 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9083 rs6000_output_function_epilogue, gen_add3_const,
9084 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9085 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9087 (machine_function): Moved to rs6000.h.
9088 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
9090 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
9091 savres_routine_syms, savres_routine_name, morestack_ref,
9092 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9093 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9094 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9095 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9096 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9097 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9098 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9099 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9100 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9101 get_stack_clash_protection_probe_interval,
9102 get_stack_clash_protection_guard_size,
9103 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9104 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9105 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9106 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9107 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9108 gen_frame_mem_offset, rs6000_savres_routine_name,
9109 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9110 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9111 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9112 rs6000_global_entry_point_prologue_needed_p,
9113 rs6000_get_separate_components, rs6000_components_for_bb,
9114 rs6000_disqualify_components, rs6000_emit_prologue_components,
9115 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9116 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9117 rs6000_output_savres_externs, rs6000_output_function_prologue,
9118 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9119 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9120 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9121 rs6000_output_function_epilogue, gen_add3_const,
9122 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9123 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9124 to here from rs6000.c.
9125 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
9126 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
9127 quad_address_offset_p) Moved to here from rs6000.c.
9128 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
9129 * config/config.gcc: Add new source file rs6000-logue.c to garbage
9132 2019-06-25 Martin Liska <mliska@suse.cz>
9134 * hash-table.c (hashtab_chk_error): Move here from ...
9135 * hash-table.h (hashtab_chk_error): ... here.
9137 2019-06-25 Martin Liska <mliska@suse.cz>
9139 PR tree-optimization/90978
9140 * df-scan.c (df_update_entry_block_defs): Remove dead else
9142 (df_update_exit_block_uses): Likewise.
9144 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
9145 Andrew Stubbs <ams@codesourcery.com>
9147 * config.gcc (thread_file): Set to gcn for AMD GCN.
9148 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
9149 (TARGET_EMUTLS_VAR_INIT): New hook.
9151 2019-06-25 Martin Jambor <mjambor@suse.cz>
9154 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
9156 2019-06-25 Richard Biener <rguenther@suse.de>
9158 PR tree-optimization/90930
9159 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
9160 into parallel form in the last pass instance.
9162 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
9164 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
9165 (arc_legitimize_pic_address): Simplify and cleanup the function.
9166 (SYMBOLIC_CONST): Remove.
9167 (prepare_pic_move): Likewise.
9168 (prepare_move_operands): Handle complex mov cases here.
9169 (arc_legitimize_address_0): Remove call to
9170 arc_legitimize_pic_address.
9171 (arc_legitimize_address): Remove call to
9172 arc_legitimize_tls_address.
9173 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
9174 (movhi_insn): Likewise.
9176 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9178 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
9180 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
9181 format of "__intN" types for UINTMAX_TYPE.
9182 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
9183 format of "__intN" types for SIZETYPE.
9184 * tree.c (build_common_tree_nodes): Accept "__intN__"
9185 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
9186 * doc/invoke.texi: Document that __intN__ disables pedantic
9189 2019-06-25 Jan Hubicka <jh@suse.cz>
9191 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
9192 base2_alias_set is non-zero before doing TBAA based disambiguation.
9194 2019-06-25 Martin Liska <mliska@suse.cz>
9196 PR tree-optimization/90973
9197 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
9198 of prologue and epilogue.
9200 2019-06-24 Jan Hubicka <jh@suse.cz>
9202 * ipa-utils.h (type_with_linkage_p): Verify that type is
9204 (odr_type_p): Remove extra return.
9205 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
9206 hash STRING_FLAG only for arrays and integers.
9207 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
9209 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9211 * print-tree.c (print_node): Print cxx-odr-p
9213 * tree.c (need_assembler_name_p): Also check that type
9215 (verify_type_variant): Update verification of SRING_FLAG;
9216 also check CXX_ODR_P.
9217 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
9218 (TYPE_STRING_FLAG): Use it.
9219 (TYPE_CXX_ODR_P): New macro.
9220 * dwarf2out.c (gen_array_type_die): First check that type
9221 is an array and then test string flag.
9223 2019-06-24 Richard Biener <rguenther@suse.de>
9225 PR tree-optimization/90972
9226 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
9227 in common code, dealing with STRING_CST properly.
9229 2019-06-24 Richard Biener <rguenther@suse.de>
9231 PR tree-optimization/90930
9232 PR tree-optimization/90316
9233 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
9236 2019-06-24 Martin Sebor <msebor@redhat.com>
9238 * tree-pretty-print.h: Remove unnecessary punctuation characters
9240 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
9242 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
9244 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
9245 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
9246 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
9248 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9250 * config/rs6000/darwin.h: Handle GCC target pragma.
9252 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9254 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
9256 2019-06-22 Jeff Law <law@redhat.com>
9258 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9260 2019-06-22 Jan Hubicka <jh@suse.cz>
9262 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
9263 give up on bitfields; continue searching for different refs
9266 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9268 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9269 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
9270 containing the offset as possible simd lane access. Look through
9271 widening conversion. Move the
9272 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
9274 2019-06-21 Richard Biener <rguenther@suse.de>
9276 PR tree-optimization/90930
9277 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
9278 flag on new stmts to avoid re-processing them.
9280 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
9282 PR c++/90875 - added -Wswitch-outside-range option
9283 * doc/invoke.texi (Wswitch-outside-range): Document.
9285 2019-06-21 Jeff Law <law@redhat.com>
9287 PR tree-optimization/90949
9288 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
9289 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
9291 2019-06-21 Richard Biener <rguenther@suse.de>
9294 * dwarf2out.c (prune_unused_types_walk): Always consider
9295 function-local extern declarations as used.
9297 2019-06-21 Richard Biener <rguenther@suse.de>
9299 PR tree-optimization/90913
9300 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
9301 the scalar variant of if-conversion versioning.
9303 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9305 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
9306 create another "omp scan inscan exclusive" array if
9307 !ctx->scan_inclusive.
9308 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
9309 (lower_omp_scan): Likewise.
9310 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
9311 2-bit bitfield for simd_lane_access_p member.
9312 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
9313 aux == (void *)-4 as simd lane access.
9314 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
9315 comment with permutations to show the canonical permutation order.
9316 (vectorizable_scan_store): Handle exclusive scan.
9317 (vectorizable_store): Call vectorizable_scan_store even for
9318 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
9320 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9321 "omp simd array" arrays with one byte elements.
9323 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
9325 * config/alpha/alpha.md (@unaligned_store<mode>):
9326 Rename from unaligned_store<mode>.
9327 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
9328 * config/alpha/sync.md (@load_locked_<mode>): Rename
9329 from load_locked_<mode>.
9330 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
9331 (@atomic_compare_and_swap<mode>_1): Rename
9332 from atomic_compare_and_swap<mode>_1.
9333 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
9334 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
9335 Use gen_reload_in_aligned and gen_unaligned_store.
9336 (emit_load_locked): Remove.
9337 (emit_store_conditional): Ditto.
9338 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
9339 (alpha_split_compare_and_swap): Ditto.
9340 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
9341 (alpha_split_compare_and_swap_12): Use gen_load_locked
9342 and gen_store_conditional.
9343 (alpha_split_atomic_exchange): Ditto.
9344 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9345 (alpha_split_atomic_exchange_12): Use gen_load_locked
9346 and gen_store_conditional.
9348 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9350 * config/aarch64/aarch64-errata.h: New file.
9351 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9352 (CA53_ERR_843419_SPEC): Delete.
9353 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
9354 * config/aarch64/aarch64-linux.h: Likewise.
9355 * config/aarch64/aarch64-netbsd.h: Likewise.
9356 * config/aarch64/aarch64-freebsd.h: Likewise.
9358 2019-06-20 Marek Polacek <polacek@redhat.com>
9360 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
9362 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
9364 * config/rs6000/rs6000.md (isa attribute): Add support for
9365 for a future processor.
9367 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
9370 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
9371 standard scalar operation pattern for V2DF.
9372 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
9373 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9374 (*ieee_<ieee_maxmin><mode>3): Likewise.
9375 (vec_setv2df_0): Likewise.
9377 2019-06-20 Jan Hubicka <jh@suse.cz>
9379 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
9380 parameter; it has no use in gimple memory model.
9381 (indirect_ref_may_alias_decl_p): Update.
9383 2019-06-20 Martin Liska <mliska@suse.cz>
9385 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
9388 2019-06-20 Jakub Jelinek <jakub@redhat.com>
9390 * tree-vect-stmts.c (enum scan_store_kind): New type.
9391 (scan_store_can_perm_p): Change last argument from int * to
9392 vec<enum scan_store_kind> *, record precisely which permutations
9393 need whole vector left shift or that plus VEC_COND_EXPR.
9394 (vectorizable_scan_store): Adjust caller, use whole vector left shift
9395 and additional VEC_COND_EXPR only for those iterations that need it.
9397 2019-06-20 Alexandre Oliva <oliva@adacore.com>
9399 * config.gcc: Fix ARM --with-fpu checking and error message.
9401 2019-06-19 Marek Polacek <polacek@redhat.com>
9403 PR c++/60364 - noreturn after first decl not diagnosed.
9404 * attribs.c (get_attribute_namespace): No longer static.
9405 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
9407 (attr_noreturn_exclusions): Make it extern.
9408 * attribs.h (get_attribute_namespace): Declare.
9409 * tree-inline.c (function_attribute_inlinable_p): Use
9412 2019-06-19 Martin Sebor <msebor@redhat.com>
9414 PR tree-optimization/90626
9415 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
9417 PR tree-optimization/90626
9418 * tree-ssa-strlen.c (strxcmp_unequal): New function.
9419 (handle_builtin_string_cmp): Call it.
9421 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9423 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9424 and DARWIN_NOPIE_SPEC.
9425 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9426 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9427 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9428 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9429 (DARWIN_EXPORT_DYNAMIC): Delete.
9430 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9431 and pie options processing to darwin.h.
9432 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9434 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9436 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9437 in computing the number of options to be moved.
9439 2019-06-19 Maya Rashish <coypu@sdf.org>
9441 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9442 (CLEAR_INSN_CACHE) Use it.
9444 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9446 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9448 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9451 * builtins.c (expand_builtin_setjmp_setup): Save
9452 hard_frame_pointer_rtx.
9453 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9455 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9457 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9459 (remove_reg_equal_offset_note): Remove unused function.
9460 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9462 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9463 (arc_builtin_setjmp_frame_value): Remove function.
9464 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9465 (avr_builtin_setjmp_frame_value): Remove function.
9466 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9467 (ix86_builtin_setjmp_frame_value): Remove function.
9468 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9469 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9470 (sparc_builtin_setjmp_frame_value): Remove function.
9471 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9472 (vax_builtin_setjmp_frame_value): Remove function.
9473 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9474 pointer if has_nonlocal_label.
9476 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9478 * doc/md.texi: Document vec_shl_<mode> pattern.
9479 * optabs.def (vec_shl_optab): New optab.
9480 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9481 argument, if == vec_shl_optab, check for left whole vector shift
9482 pattern rather than right shift.
9483 (expand_vec_perm_const): Add vec_shl_optab support.
9484 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9486 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9487 can be handled by vec_shl_optab.
9488 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9489 (check_scan_store): Use it.
9490 (vectorizable_scan_store): If target can't do normal permutations,
9491 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9493 * config/i386/sse.md (vec_shl_<mode>): New expander.
9495 * omp-low.c (lower_rec_input_clauses): Handle references properly
9497 (lower_omp_scan): Likewise.
9499 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9501 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9502 mem_mode is BLKmode.
9504 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9507 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9508 pointer adjustment for the case of no callee-saved registers and
9509 stack frame bigger than 128 bytes.
9511 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9514 * omp-low.c (check_omp_nesting_restrictions): Handle
9515 GF_OMP_TARGET_KIND_OACC_DECLARE.
9517 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9519 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9520 (@add<mode>3_carry): Rename from add<mode>3_carry.
9521 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9522 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9523 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9524 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9525 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9526 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9527 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9528 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9529 (cmpstrnsi): Use gen_cmp_1.
9530 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9531 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9532 (@umonitor_<mode>): Rename from umonitor_<mode>.
9533 * config/i386/i386-expand.c (ix86_expand_copysign):
9534 Use gen_copysign3_const and gen_copysign3_var.
9535 (ix86_expand_xorsign): Use gen_xorsign3_1.
9536 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9537 gen_sub3_carry_ccgz and gen_cmp1.
9538 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9539 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9540 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9541 (ix86_split_lshr): Ditto.
9542 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9544 2019-06-18 Jason Merrill <jason@redhat.com>
9546 * tree.c (build_constructor): Add MEM_STAT_DECL.
9548 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9550 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9551 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9552 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9553 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9554 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9555 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9556 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9557 Use CC_NZC instead of CC.
9558 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9559 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9560 (aarch64_print_operand): Handle E_CC_NZCmode.
9561 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9562 of gen_set_clobber_cc.
9564 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9566 * config/aarch64/aarch64-sve.md: Tabify file.
9568 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9570 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9571 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9572 * config/aarch64/aarch64-sve.md: Use it.
9574 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9576 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9577 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9578 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9579 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9580 (aarch64_expand_sve_vec_cmp_int): Use it.
9581 (aarch64_expand_sve_vec_cmp_float): Likewise.
9582 * config/aarch64/aarch64-sve.md: Likewise throughout.
9584 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9585 Kugan Vivekanandarajah <kuganv@linaro.org>
9587 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9588 (*cond_<optab><mode>_z): Fold into...
9589 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9590 operand 4 can be tied to operand 0 (either inherently or via RA).
9592 2019-06-18 Richard Biener <rguenther@suse.de>
9595 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9596 as if optimized away.
9598 2019-06-18 Tom de Vries <tdevries@suse.de>
9600 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9601 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9602 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9604 (define_insn "@set_softstack_<mode>"): ... this.
9605 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9606 (define_insn "@omp_simt_enter_<mode>"): ... this.
9607 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9608 (define_insn "@omp_simt_exit_<mode>"): ... this.
9610 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9612 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9613 vf parameter. Restore the previous iv step of nscalars_step,
9614 but give it iv_type rather than compare_type. Tweak code order
9615 to match the comments.
9616 (vect_set_loop_condition_masked): Update accordingly.
9617 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9618 for iv_precision. Tweak comment formatting.
9620 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9622 * config/darwin.c: Strip trailing whitespace.
9624 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9626 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9627 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9629 2019-06-18 Martin Jambor <mjambor@suse.cz>
9632 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9633 caller does not have flag_ipa_cp set.
9635 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9637 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9638 from "*fold_left_plus_<mode>", updated operands order.
9639 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9640 * internal-fn.c (mask_fold_left_direct): New define.
9641 (expand_mask_fold_left_optab_fn): Likewise.
9642 (direct_mask_fold_left_optab_supported_p): Likewise.
9643 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9644 * optabs.def (mask_fold_left_plus_optab): New optab.
9645 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9646 masked internal_fn for a reduction ifn.
9647 (vectorize_fold_left_reduction): Add support for masking reductions.
9649 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9652 * target.def (predict_doloop_p): New hook.
9653 * targhooks.h (default_predict_doloop_p): New declaration.
9654 * targhooks.c (default_predict_doloop_p): New function.
9655 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9656 * doc/tm.texi: Regenerate.
9657 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9658 (TARGET_PREDICT_DOLOOP_P): New macro.
9659 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9661 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9663 * omp-low.c (struct omp_context): Add scan_inclusive field.
9664 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9666 (struct omplow_simd_context): Add lastlane member.
9667 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9668 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9670 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9671 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9672 (lower_omp_scan): New function.
9673 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9674 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9675 check 3rd argument if present rather than 2nd.
9676 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9677 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9679 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9680 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9682 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9683 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9684 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9686 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9687 IFN_GOMP_SIMD_LANE argument.
9688 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9689 encoded ->aux value.
9690 * tree-vect-stmts.c: Include attribs.h.
9691 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9692 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9694 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9695 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9697 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9700 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9701 (*nabs<mode>2_1): Ditto.
9702 (nabs sse-reg splitter): New splitter.
9703 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9705 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9708 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9711 2019-06-17 Tom de Vries <tdevries@suse.de>
9713 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9714 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9715 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9717 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9719 (define_insn "omp_simt_enter_insn"): Rename to ...
9720 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9721 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9722 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9723 gen_omp_simt_enter_si.
9724 (define_expand "omp_simt_exit"): New.
9725 (define_insn "omp_simt_exit"): Rename to ...
9726 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9729 2019-06-17 Matthew Green <mrg@eterna.com.au>
9730 Maya Rashish <coypu@sdf.org>
9732 * config.gcc (aarch64*-*-netbsd*): New target.
9733 * config/aarch64/aarch64-netbsd.h: New file.
9734 * config/aarch64/t-aarch64-netbsd: Likewise.
9736 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9738 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9739 the access path from base to first VIEW_CONVERT_EXPR or
9742 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9744 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9745 access path on BIT_FIELD_REFs.
9747 2019-06-17 Martin Liska <mliska@suse.cz>
9750 * ipa-utils.h (odr_type_p): Remove dead code.
9752 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9754 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9755 alternative Solaris 11.4 format.
9756 * configure: Regenerate.
9758 2019-06-17 Tom de Vries <tdevries@suse.de>
9760 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9761 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9763 (define_insn "call_value_insn"): Rename to ...
9764 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9766 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9769 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9772 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9773 frame clobbers and schedule block.
9774 (builtin_longjmp): Likewise.
9776 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9778 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9779 describe how to perform MSPABI compliant 64-bit shift.
9780 * config/msp430/msp430.md (ashldi3): New define_expand.
9781 (ashrdi3): New define_expand.
9782 (lshrdi3): New define_expand.
9784 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9786 * doc/sourcebuild.texi: Document new effective target keyword
9789 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9791 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9792 indirect_refs_may_alias_p): Revert accidental commits.
9794 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9795 at the end of structures.
9797 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9799 * config/darwin.c (machopic_indirect_call_target): Use renamed
9800 darwin_picsymbol_stubs to decide on output.
9801 (darwin_override_options): Handle darwin_picsymbol_stubs.
9802 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9803 (LD64_VERSION): Revise default.
9804 * config/darwin.opt: (mpic-symbol-stubs): New option.
9805 (darwin_picsymbol_stubs): New variable.
9806 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9807 rename to TARGET_MACHO_PICSYM_STUBS.
9808 * config/i386/i386.c (output_pic_addr_const): Likewise.
9809 * config/i386/i386.h Likewise.
9810 * config/rs6000/darwin.h: Likewise.
9811 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9812 darwin_picsymbol_stubs.
9814 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9816 * config/darwin.opt (prebind, noprebind, seglinkedit,
9817 noseglinkedit): Add RejectNegative.
9819 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9821 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9822 in my previous patch.
9824 2019-06-16 Tom de Vries <tdevries@suse.de>
9826 PR tree-optimization/89376
9827 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9829 2019-06-15 Maya Rashish <coypu@sdf.org>
9831 * doc/invoke.texi (Spec Files): Update location of the
9834 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9836 * doc/extend.texi (Common Function Attributes): Clarify
9837 no_sanitize. Fix grammar.
9839 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9841 * tree-ssa-alias.c (alias_stats): Add
9842 nonoverlapping_component_refs_p_may_alias,
9843 nonoverlapping_component_refs_p_no_alias,
9844 nonoverlapping_component_refs_of_decl_p_may_alias,
9845 nonoverlapping_component_refs_of_decl_p_no_alias.
9846 (dump_alias_stats): Dump them.
9847 (nonoverlapping_component_refs_of_decl_p): Add stats.
9848 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9851 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9853 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9854 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9856 (*anddi3_doubleword): Split before reload. Merge with
9857 anddi->zext pre-reload splitter.
9858 (*andndi3_doubleword): Split before reload.
9859 (*<code>di3_doubleword): Ditto.
9860 (*one_cmpldi2_doubleword): Ditto.
9862 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9865 * gimplify.c: Include omp-offload.h and context.h.
9866 (gimplify_bind_expr): Add "omp declare target" attributes
9867 to static block scope variables inside of target region or target
9870 2019-06-15 Tom de Vries <tdevries@suse.de>
9872 PR tree-optimization/90009
9873 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9874 Return NULL if bb contains IFN_UNIQUE.
9876 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9878 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9879 (un): New define_mode_attr.
9880 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9881 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9882 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9884 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9886 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9888 * config/darwin.opt: Add RejectNegative where needed, reorder
9889 and add minimal functional descriptions.
9891 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9893 PR rtl-optimization/90765
9894 * calls.c (update_stack_alignment_for_call): New function.
9895 (expand_call): Call update_stack_alignment_for_call when
9896 outgoing parameter is passed in the stack.
9897 (emit_library_call_value_1): Likewise.
9898 * function.c (locate_and_pad_parm): Don't update
9899 stack_alignment_needed and preferred_stack_boundary.
9901 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9904 * config/i386/i386-features.c
9905 (dimode_scalar_chain::compute_convert_gain): Replace
9906 mmxsse_to_integer with sse_to_integer.
9907 * config/i386/i386.c (ix86_register_move_cost): Verify that
9908 moves between MMX and non-MMX units require secondary memory.
9909 Correct costs of moves between SSE and integer units.
9910 * config/i386/i386.h (processor_costs): Rename cost of moving
9911 SSE register to integer to sse_to_integer. Rename cost of
9913 2019-06-14 Matt Thomas <matt@3am-software.com>
9914 Matthew Green <mrg@eterna.com.au>
9915 Nick Hudson <skrll@netbsd.org>
9916 Maya Rashish <coypu@sdf.org>
9917 Richard Earnshaw <rearnsha@arm.com>
9919 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9920 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9921 * config/arm/netbsd-eabi.h: New file.
9922 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9924 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9925 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9926 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9927 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9929 2019-06-14 Richard Biener <rguenther@suse.de>
9931 * tree-loop-distribution.c (classify_partition): Return
9932 whether a reduction appeared in all partitions and do not
9933 stop builtin detection because of this.
9934 (distribute_loop): Sort a non-builtin partition last if
9935 there's a reduction in all partitions and make sure the
9936 partition prevailing as last is not a builtin.
9938 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9941 * ipa-prop.c (add_to_agg_contents_list): New function.
9942 (clobber_by_agg_contents_list_p): Likewise.
9943 (extract_mem_content): Likewise.
9944 (get_place_in_agg_contents_list): Delete.
9945 (determine_known_aggregate_parts): Renamed from
9946 determine_locally_known_aggregate_parts. New parameter
9949 2019-06-13 Martin Sebor <msebor@redhat.com>
9951 PR tree-optimization/90662
9952 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9955 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9958 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9959 dbase is not TARGET_MEM_REF.
9961 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9963 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9965 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9966 Do not generate DImode extends for 32bit targets.
9967 (and->zext post-reload splitter): Use gen_extend_insn
9968 instead of indirect functions.
9969 (anddi->zext pre-reload splitter): New.
9970 (*zext<mode>_doubleword_and): Remove.
9971 (*zext<mode>_doubleword): Ditto.
9972 (*zextsi_doubleword): Dittto.
9974 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9976 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9977 Use gen_sub3_insn instead of indirect function.
9978 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9980 (ix86_adjust_counter): Ditto.
9982 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9983 Lijia He <helijia@linux.ibm.com>
9985 PR tree-optimization/77820
9986 * tree-ssa-threadedge.c
9987 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9989 (thread_across_edge): Add call to
9990 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9992 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9994 * config/darwin-driver.c (validate_macosx_version_min): New.
9995 (darwin_default_min_version): Cleanup and validate supplied version.
9996 (darwin_driver_init): Likewise and push cleaned version into opts.
9998 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10000 PR tree-optimization/90869
10001 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
10002 converts in MEM_REF referencing decl rather than view converts
10003 from decl type to MEM_REF type.
10005 2019-06-13 Richard Biener <rguenther@suse.de>
10007 PR tree-optimization/90856
10008 * tree-sra.c (build_ref_for_model): Only use
10009 build_reconstructed_reference when address-spaces are the same.
10011 2019-06-13 Jakub Jelinek <jakub@redhat.com>
10013 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
10014 wrap ei variable name in the declaration in ()s.
10015 (nvptx_single): Actually use mode_label variable. Formatting fix.
10017 2019-06-13 Richard Biener <rguenther@suse.de>
10019 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
10020 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
10021 also return the condition stmt.
10022 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
10023 loop we can version and version that, reusing the loop version
10024 created by if-conversion instead of versioning again.
10026 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
10028 * gimple-loop-versioning.cc (prune_loop_conditions): Use
10030 * tree-vrp (value_range_base::may_contain_p): Call into
10031 value_inside_range.
10032 (value_inside_range): Make private inside value_range_base class.
10033 Take min/max from *this.
10034 (range_includes_p): Remove.
10035 * tree-vrp.h (value_range_base): Add value_inside_range.
10036 (range_includes_p): Remove.
10037 (range_includes_zero_p): Call may_contain_p.
10038 * vr-values.c (compare_range_with_value): Same.
10040 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
10042 * doc/extend.texi (ARC Function Attributes): Update info.
10044 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
10046 PR tree-optimization/89713
10047 * doc/invoke.texi (-ffinite-loops): Document new option.
10048 * common.opt (-ffinite-loops): New option.
10049 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
10050 IFN_GOACC_LOOP calls as necessary.
10051 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
10053 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
10054 IFN_GOACC_LOOP call is not used.
10055 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
10057 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10060 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
10061 compare_type is not with Pmode size, we will create an IV with
10062 Pmode size with truncated use (i.e. converted to the correct type).
10063 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
10064 (vect_iv_limit_for_full_masking): New. Factored out of
10065 vect_set_loop_condition_masked.
10066 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
10067 (vect_iv_limit_for_full_masking): Declare.
10069 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10072 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
10073 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
10074 (get_alias_ptr_type_for_ptr_address): Likewise.
10075 (add_iv_candidate_for_use): Add scaled index candidate if useful.
10076 * tree-ssa-address.c (preferred_mem_scale_factor): New.
10077 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
10080 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10082 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
10084 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
10086 * common/config/pru/pru-common.c: New file.
10087 * config.gcc: Add PRU target.
10088 * config/pru/alu-zext.md: New file.
10089 * config/pru/constraints.md: New file.
10090 * config/pru/predicates.md: New file.
10091 * config/pru/pru-opts.h: New file.
10092 * config/pru/pru-passes.c: New file.
10093 * config/pru/pru-pragma.c: New file.
10094 * config/pru/pru-protos.h: New file.
10095 * config/pru/pru.c: New file.
10096 * config/pru/pru.h: New file.
10097 * config/pru/pru.md: New file.
10098 * config/pru/pru.opt: New file.
10099 * config/pru/t-pru: New file.
10100 * doc/extend.texi: Document PRU pragmas.
10101 * doc/invoke.texi: Document PRU-specific options.
10102 * doc/md.texi: Document PRU asm constraints.
10104 2019-06-12 Martin Sebor <msebor@redhat.com>
10106 PR middle-end/90676
10107 * tree-pretty-print.c (dump_mem_ref): New function. Include
10108 MEM_REF type in output when different size than operand.
10109 (dump_generic_node): Move code to dump_mem_ref and call it.
10111 2019-06-12 Martin Sebor <msebor@redhat.com>
10113 PR tree-optimization/90662
10114 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
10117 2019-06-12 Tom de Vries <tdevries@suse.de>
10119 PR tree-optimization/90009
10120 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
10122 2019-06-12 Martin Liska <mliska@suse.cz>
10124 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
10126 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
10127 * mem-stats.h (mem_alloc_description::mem_alloc_description):
10128 Do not sanitize created maps.
10130 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
10132 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
10133 value_range::singleton_p.
10134 * tree-vrp.c (value_range_constant_singleton): Remove.
10135 * tree-vrp.h (value_range_constant_singleton): Remove.
10136 * vr-values.c (vr_values::singleton): Use
10137 value_range::singleton_p.
10139 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10142 * cfgexpand.c (align_local_variable): Add really_expand argument,
10143 don't SET_DECL_ALIGN if it is false.
10144 (add_stack_var): Add really_expand argument, pass it through to
10145 align_local_variable.
10146 (expand_one_stack_var_1): Pass true as really_expand to
10147 align_local_variable.
10148 (expand_one_ssa_partition): Pass true as really_expand to
10150 (expand_one_var): Pass really_expand through to add_stack_var.
10152 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10154 * config/arm/iterators.md (VABAL): New int iterator.
10155 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
10156 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
10157 UNSPEC_VABAL_U values.
10159 2019-06-12 Martin Liska <mliska@suse.cz>
10161 * value-prof.c (stream_out_histogram_value): Only first value
10164 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10167 * symtab.c (symtab_node::set_section): Allow being called on aliases
10168 as long as they aren't analyzed yet.
10170 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
10172 * config/mips/mips.c (mips_final_postscan_insn): Modify call
10173 to `mips_set_text_contents_type' to indicate whether a
10174 non-debug insn follows.
10176 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
10178 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
10179 enabling -mpcrel by default.
10180 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
10181 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
10182 that the test against -mcpu=future is done first. Then test if
10183 -mprefixed-addr is on for -mpcrel.
10184 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
10186 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10189 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
10190 instead of and.u%d.
10192 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10194 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
10196 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
10198 PR c++/90449 - add -Winaccessible-base option.
10199 * doc/invoke.texi (Winaccessible-base): Document.
10201 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10203 PR tree-optimization/62041
10204 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
10206 2019-06-11 Jason Merrill <jason@redhat.com>
10208 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
10209 * tree.c (get_tree_code_name): Likewise.
10210 * print-tree.c (print_node): Only briefly print a node with an
10213 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10216 * trans-mem.c (tm_memopt_compute_available): Add assertion
10217 that blocks is not empty. Formatting fix.
10219 2019-06-11 Martin Liska <mliska@suse.cz>
10222 * hash-table.h: Extend create_gcc, add one parameter
10223 that is passed into hash_table::hash_table.
10225 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
10227 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
10229 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10230 Emit clobber also for non-sse operations.
10231 (ix86_split_fp_absneg_operator): New function.
10232 * config/i386/i386.md (SSEMODEF): New mode iterator.
10233 (ssevecmodef): New mode attribute.
10234 (<code>tf2): Use absneg code iterator.
10235 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
10236 Add three-operand AVX alternatives.
10237 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
10238 Use absneg code iterator and X87MODEF mode iterator.
10239 (absneg fp_reg non-sse splitter): Call absneg code iterator
10240 and X87MODEF mode iterator.
10241 (absneg general_reg non-sse splitter): Use absneg code iterator
10242 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
10243 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
10244 code iterator. Add three-operand AVX alternative.
10245 (absneg sse_reg splitter): Use absneg code iterator
10246 and SSEMODEF mode iterator. Handle AVX operands.
10247 (absneg fp_reg splitter): Use absneg code iterator
10248 and MODEF mode iterator.
10249 (absneg general_reg splitter): Merge splitters using MODEF mode
10250 iterator. Use absneg code iterator. Call
10251 ix86_split_fp_absneg_operator.
10252 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
10253 Do not enable for non-sse modes before reload.
10254 (CSGNMODE): Remove.
10255 (CSGNVMODE): Ditto.
10256 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
10257 ssevecmodef mode attribute instaed of CSGNVMODE.
10258 (copysign<mode>3_const): Ditto.
10259 (copysign<mode>3_var): Ditto.
10260 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
10261 Use absneg code iterator. Simplify code using std::swap.
10262 * config/i386/predicates.md (absneg_operator): Remove.
10264 2019-06-10 Martin Sebor <msebor@redhat.com>
10266 * gimple-fold.c (get_range_strlen): Update comment that didn't
10267 make it into r267503 or related commits.
10269 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
10271 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
10272 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
10274 2019-06-10 Jakub Jelinek <jakub@redhat.com>
10276 * tree.def (OMP_SCAN): New tree code.
10277 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
10278 OMP_CLAUSE_EXCLUSIVE.
10279 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
10280 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
10281 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
10282 OMP_CLAUSE_{IN,EX}CLUSIVE.
10283 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10284 * tree-nested.c (convert_nonlocal_reference_stmt,
10285 convert_local_reference_stmt, convert_gimple_call): Handle
10287 * tree-pretty-print.c (dump_omp_clause): Handle
10288 OMP_CLAUSE_{IN,EX}CLUSIVE.
10289 (dump_generic_node): Handle OMP_SCAN.
10290 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
10291 * gimple.h (gomp_scan): New type.
10292 (is_a_helper <gomp_scan *>::test,
10293 is_a_helper <const gomp_scan *>::test): New templates.
10294 (gimple_build_omp_scan): Declare.
10295 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
10296 gimple_omp_scan_set_clauses): New inline functions.
10297 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
10298 * gimple.c (gimple_build_omp_scan): New function.
10299 (gimple_copy): Handle GIMPLE_OMP_SCAN.
10300 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
10301 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
10302 GIMPLE_OMP_TASKGROUP.
10303 (dump_gimple_omp_scan): New function.
10304 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
10305 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
10306 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
10307 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
10308 (is_gimple_stmt): Handle OMP_SCAN.
10309 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
10310 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10311 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
10312 mentioned in nested #pragma omp scan. Handle
10313 OMP_CLAUSE_{IN,EX}CLUSIVE.
10314 (gimplify_expr): Handle OMP_SCAN.
10315 * omp-low.c (check_omp_nesting_restrictions): For parent context,
10316 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
10318 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
10321 2019-06-10 Martin Liska <mliska@suse.cz>
10323 * ipa-cp.c (ignore_edge_p): New function.
10324 (build_toporder_info): Use it.
10325 * ipa-inline.c (ignore_edge_p): New function.
10326 (inline_small_functions): Use it.
10327 * ipa-pure-const.c (ignore_edge_for_nothrow):
10328 Verify opt_for_fn for caller and callee.
10329 (ignore_edge_for_pure_const): Likewise.
10330 * ipa-reference.c (ignore_edge_p): Extend to check
10332 * ipa-utils.c (searchc): Refactor.
10333 * ipa-utils.h: Fix coding style.
10335 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10337 * config/arc/arc.c (arc_rtx_costs): Update costs.
10339 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10341 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
10342 (arc_split_ior): Likewise.
10343 (arc_check_mov_const): Likewise.
10344 (arc_split_mov_const): Likewise.
10345 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10346 (arc_rtx_costs): Replace check Crr with Cax constraint.
10347 (prepare_move_operands): Cleanup, remove unused code.
10348 (arc_split_ior): New function.
10349 (arc_check_ior_const): Likewise.
10350 (arc_split_mov_const): Likewise.
10351 (arc_check_mov_const): Likewise.
10352 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
10353 in define_insn_and_split pattern.
10354 (iorsi3): Likewise.
10355 (mulsi3_v2): Add new matching variant.
10356 (andsi3_i): Cleanup pattern.
10357 (rotrsi3_cnt1): Update pattern.
10358 (rotrsi3_cnt8): New pattern.
10359 (ashlsi2_cnt8): Likewise.
10360 (ashlsi2_cnt16): Likewise.
10361 * config/arc/constraints.md (C0p): Update constraint.
10363 (C0x): New pattern.
10364 (Cax): New pattern.
10366 2019-06-10 Martin Liska <mliska@suse.cz>
10368 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
10369 Update coding style.
10370 (sem_item_optimizer::dump_cong_classes):
10371 Print how many items are in a non-singular class. Improve
10374 2019-06-10 Martin Liska <mliska@suse.cz>
10376 * value-prof.c (dump_histogram_value): Change dump format.
10377 (gimple_mod_subtract_transform): Remove legacy comment.
10379 2019-06-10 Martin Liska <mliska@suse.cz>
10381 * value-prof.c (dump_histogram_value): Print histogram values
10384 2019-06-10 Martin Liska <mliska@suse.cz>
10386 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
10387 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
10388 * ipa-profile.c (ipa_profile_generate_summary):
10389 Use get_most_common_single_value.
10390 * tree-profile.c (gimple_init_gcov_profiler):
10391 Instrument with __gcov_one_value_profiler_v2
10392 and __gcov_indirect_call_profiler_v4.
10393 * value-prof.c (dump_histogram_value):
10394 Print all values for HIST_TYPE_SINGLE_VALUE.
10395 (stream_out_histogram_value): Update assert for
10397 (stream_in_histogram_value): Set number of
10398 counters for HIST_TYPE_SINGLE_VALUE.
10399 (get_most_common_single_value): New.
10400 (gimple_divmod_fixed_value_transform):
10401 Use get_most_common_single_value.
10402 (gimple_ic_transform): Likewise.
10403 (gimple_stringops_transform): Likewise.
10404 (gimple_find_values_to_profile): Set number
10405 of counters for HIST_TYPE_SINGLE_VALUE.
10406 * value-prof.h (get_most_common_single_value): New.
10408 2019-06-10 Martin Liska <mliska@suse.cz>
10410 * hash-map.h: Pass default value to hash_table ctor.
10411 * hash-table.h: Add default value to call of a ctor.
10413 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
10415 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
10416 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
10418 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
10421 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10422 Call pa_output_function_label.
10423 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10424 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10425 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10427 (pa_linux_output_function_prologue): Declare.
10428 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10429 (pa_output_function_label): New.
10430 (pa_output_function_prologue): Revise to use pa_output_function_label.
10431 (pa_linux_output_function_prologue): New.
10432 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10434 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10436 * tree-vrp.h (value_range_base::intersect): New.
10437 (value_range::intersect_helper): Move from here...
10438 (value_range_base::intersect_helper): ...to here.
10439 * tree-vrp.c (value_range::intersect_helper): Rename to...
10440 (value_range_base::intersect_helper): ...this, and rewrite to
10441 return a value instead of modifying THIS in place.
10442 Also, move equivalence handling...
10443 (value_range::intersect): ...here, while calling intersect_helper.
10444 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10446 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10448 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10450 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10452 * Makefile.in (genprogerr): Add condmd.
10453 (genprog): Remove it here.
10455 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10457 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10459 2019-06-07 Richard Biener <rguenther@suse.de>
10462 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10463 that appear after user labels.
10465 2019-06-07 Martin Liska <mliska@suse.cz>
10467 * cselib.c (cselib_init): Disable hash table
10469 * hash-set.h: Pass new default argument to m_table.
10470 * hash-table.c: Add global variable with hash table
10471 sanitization limit.
10472 * hash-table.h (Allocator>::hash_table): Add new argument
10474 (hashtab_chk_error): New.
10475 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10476 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10477 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10479 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10481 * common.opt (flto-odr-type-merging): Ignore.
10482 * invoke.texi (-flto-odr-type-merging): Remove.
10483 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10484 (can_be_vtable_hashed_p): Remove.
10485 (hash_odr_vtable): Remove.
10486 (odr_vtable_hasher::hash): Remove.
10487 (types_same_for_odr): Remove.
10488 (types_odr_comparable): Remove.
10489 (odr_vtable_hasher::equal): Remove.
10490 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10491 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10492 (get_odr_type): Do not use vtable hash.
10493 (dump_odr_type): Remove commented out code.
10494 (build_type_inheritance_graph): Do not allocate vtable hash.
10495 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10496 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10497 (odr_type_p): Likewise.
10498 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10501 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10503 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10504 immediately after same_types_for_tbaa_p returns -1 and continue
10505 looking for possible exact match; if matching types are arrays
10506 watch for partial overlaps.
10507 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10508 (indirect_refs_may_alias_p): Do type based disambiguation first;
10511 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10513 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10515 2019-06-07 Martin Liska <mliska@suse.cz>
10517 * doc/invoke.texi: Remove param.
10518 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10520 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10521 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10522 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10523 * profile.c (instrument_values): Remove
10524 HIST_TYPE_INDIR_CALL_TOPN.
10525 * tree-profile.c (init_ic_make_global_vars):
10526 Always build __gcov_indirect_call only.
10527 (gimple_init_gcov_profiler): Remove usage
10528 of PARAM_INDIR_CALL_TOPN_PROFILE.
10529 (gimple_gen_ic_profiler): Likewise.
10530 * value-prof.c (dump_histogram_value): Likewise.
10531 (stream_in_histogram_value): Likewise.
10532 (gimple_indirect_call_to_profile): Likewise.
10533 (gimple_find_values_to_profile): Likewise.
10534 * value-prof.h (enum hist_type): Likewise.
10536 2019-06-07 Martin Liska <mliska@suse.cz>
10538 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10541 2019-06-07 Martin Liska <mliska@suse.cz>
10543 PR tree-optimization/78902
10544 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10545 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10546 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10547 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10548 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10549 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10550 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10551 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10552 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10553 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10554 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10555 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10556 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10558 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10559 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10560 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10561 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10562 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10563 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10564 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10565 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10566 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10567 warn_unused_result attribute.
10568 (BUILT_IN_STRDUP): Likewise.
10569 (BUILT_IN_STRNDUP): Likewise.
10570 (BUILT_IN_ALLOCA): Likewise.
10571 (BUILT_IN_CALLOC): Likewise.
10572 (BUILT_IN_MALLOC): Likewise.
10573 (BUILT_IN_REALLOC): Likewise.
10575 2019-06-06 Jim Wilson <jimw@sifive.com>
10578 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10579 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10580 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10582 2019-06-06 Martin Sebor <msebor@redhat.com>
10584 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10585 (handle_builtin_malloc): Remove trailing spaces.
10586 (handle_builtin_memset): Same.
10587 (handle_builtin_memcmp): Same.
10588 (compute_string_length): Same.
10589 (determine_min_objsize): Same.
10590 (handle_builtin_string_cmp): Same.
10591 (handle_char_store): Same. Break up excessively long line.
10593 2019-06-06 Martin Jambor <mjambor@suse.cz>
10595 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10598 2019-06-06 Martin Jambor <mjambor@suse.cz>
10600 * tree-sra.c (struct access): New field grp_same_access_path.
10601 (dump_access): Dump it.
10602 (build_reconstructed_reference): New function.
10603 (build_ref_for_model): Use it if possible.
10604 (path_comparable_for_same_access): New function.
10605 (same_access_path_p): Likewise.
10606 (sort_and_splice_var_accesses): Set the new flag.
10607 (analyze_access_subtree): Likewise.
10608 (propagate_subaccesses_across_link): Propagate zero value of the new
10609 flag down the access tree.
10611 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10613 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10614 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10615 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10616 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10619 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10621 PR tree-optimization/90332
10622 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10623 Handle VALS containing two vectors.
10624 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10626 (@aarch64_combinez<mode>): ... This.
10627 (*aarch64_combinez_be<mode>): Rename to...
10628 (@aarch64_combinez_be<mode>): ... This.
10629 (vec_init<mode><Vhalf>): New define_expand.
10630 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10632 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10634 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10635 library functions only when not optimizing for size.
10636 (ashlsi3): Likewise.
10637 (ashrhi3): Likewise.
10638 (ashrsi3): Likewise.
10639 (lshrhi3): Likewise.
10640 (lshrsi3): Likewise.
10642 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10644 PR rtl-optimization/88751
10645 * ira.c (ira): Use the number of the actually referenced registers
10646 when calculating the threshold.
10648 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10650 * configure: Regenerate.
10652 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10654 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10655 register if it is in memory, so the shift can be emulated with a rotate
10657 (ashrhi3): Likewise.
10658 (lshrhi3): Likewise.
10660 2019-06-06 Martin Liska <mliska@suse.cz>
10662 PR tree-optimization/87954
10663 * match.pd: Simplify mult where both arguments are 0 or 1.
10665 2019-06-06 Richard Biener <rguenther@suse.de>
10667 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10668 put equivalences on UNDEFINED ranges.
10669 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10670 Make sure to drop defs of stmts added during simplification
10673 2019-06-06 Richard Biener <rguenther@suse.de>
10675 * tree-ssa-structalias.c: Include tree-cfg.h.
10676 (make_heapvar): Do not make heap vars artificial.
10677 (find_func_aliases_for_builtin_call): Handle stack allocation
10679 (find_func_aliases): Delay processing of simple enough returns
10681 (set_uids_in_ptset): Adjust.
10682 (find_what_var_points_to): Likewise.
10683 (solve_constraints): Do not dump points-to sets here.
10684 (compute_points_to_sets): Post-process return statements,
10685 amending the escaped solution. Dump points-to sets afterwards.
10686 (ipa_pta_execute): Dump points-to sets.
10688 2019-06-06 Martin Liska <mliska@suse.cz>
10691 * doc/install.texi: Fix HTML headers and
10692 titles for 'Installing GCC' pages.
10694 2019-06-06 Martin Liska <mliska@suse.cz>
10696 * ipa-icf-gimple.h (dump_message_1): Remove.
10697 (dump_message): Likewise.
10698 (return_false_with_message_1): Print also file.
10699 (return_false_with_msg): Likewise.
10700 (return_with_result): Likewise.
10701 (return_with_debug): Likewise.
10702 * ipa-icf.c (sem_function::equals_private): Remove call
10705 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10707 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10708 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10709 memory operand for it.
10710 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10712 2019-06-05 Martin Sebor <msebor@redhat.com>
10714 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10715 Adjust quoting and hyphenation.
10716 * convert.c (convert_to_real_1): Same.
10717 * gcc.c (driver_wrong_lang_callback): Same.
10718 (driver::handle_unrecognized_options): Same.
10719 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10720 * opts-common.c (cmdline_handle_error): Same.
10721 (read_cmdline_option): Same.
10722 * opts-global.c (complain_wrong_lang): Same.
10723 (print_ignored_options): Same.
10724 (handle_common_deferred_options): Same.
10725 * pretty-print.h: Same.
10726 * print-rtl.c (debug_bb_n_slim): Same.
10727 * sched-rgn.c (make_pass_sched_fusion): Same.
10728 * tree-cfg.c (verify_gimple_assign_unary): Same.
10729 (verify_gimple_label): Same.
10730 * tree-ssa-operands.c (verify_ssa_operands): Same.
10731 * varasm.c (do_assemble_alias): Same.
10732 (assemble_alias): Same.
10734 2019-06-05 Richard Henderson <rth@twiddle.net>
10736 * config/alpha/alpha.c (direct_return): Move down after
10737 struct machine_function definition; use saved frame_size;
10739 (struct machine_function): Add sa_mask, sa_size, frame_size.
10740 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10741 (alpha_compute_frame_layout): ... new function.
10742 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10743 (alpha_initial_elimination_offset): Use saved sa_size.
10744 (alpha_vms_initial_elimination_offset): Likewise.
10745 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10746 (alpha_expand_prologue): Use saved frame data. Merge integer
10747 and fp register save loops.
10748 (alpha_expand_epilogue): Likewise.
10749 (alpha_start_function): Use saved frame data.
10750 * config/alpha/alpha-protos.h (direct_return): Update.
10751 (alpha_sa_size): Remove.
10753 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10755 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10756 multiplication by a power-of-two value.
10757 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10758 and turn the modulo operation into a masking operation.
10760 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10763 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10764 with VOIDmode inner operands.
10766 2019-06-05 Richard Biener <rguenther@suse.de>
10768 PR middle-end/90726
10769 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10770 turn an expression graph into a tree.
10772 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10774 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10776 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10777 treat it like explicit monotonic schedule modifier.
10778 (expand_omp_for): Initialize has_lastprivate_conditional.
10779 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10782 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10783 references, lookup in in hash map MEM_REF operand instead of the
10785 (lower_omp_1): When looking for lastprivate conditional assignments,
10786 handle MEM_REFs with REFERENCE_TYPE operands.
10788 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10789 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10790 and references a VLA. Handle references to non-VLAs if is_simd
10791 all privatization clauses like reductions.
10792 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10793 If omp_is_reference, use always omp simd arrays and set
10794 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10795 fails, emit reference initialization.
10797 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10800 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10801 _mm_mask_fpclass_sd_mask): New intrinsics.
10802 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10803 * config/i386/i386-builtin.def
10804 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10806 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10807 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10808 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10809 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10810 case QI_FTYPE_V2SF_INT): Ditto.
10811 * config/i386/sse.md
10812 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10813 Extended to insnstructions with mask operands.
10815 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10817 * config/rs6000/constraints.md (define_register_constraint "wp"):
10819 (define_register_constraint "wq"): Delete.
10820 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10821 (rs6000_init_hard_regno_mode_ok): Adjust.
10822 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10823 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10824 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10825 (define_mode_attr VSa): Delete.
10826 (define_mode_attr VSisa): New.
10827 (rest of file): Adjust.
10828 * doc/md.texi (Machine Constraints): Adjust.
10830 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10832 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10833 (define_attr "enabled"): Handle those new isa values.
10835 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10837 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10838 (define_mode_attr VSr5): Delete.
10839 (define_mode_attr VStype_sqrt): Delete.
10840 (define_mode_iterator VSX_SPDP): Delete.
10841 (define_mode_attr VS_spdp_res): Delete.
10842 (define_mode_attr VS_spdp_insn): Delete.
10843 (define_mode_attr VS_spdp_type): Delete.
10844 (*vsx_sqrt<mode>2): Adjust.
10845 (vsx_<VS_spdp_insn>): Delete, split to...
10846 (vsx_xscvdpsp): ... this. New. And...
10847 (vsx_xvcvspdp): ... this. New. And...
10848 (vsx_xvcvdpsp): ... this. New.
10850 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10852 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10854 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10855 (rest of file): Adjust.
10857 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10859 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10860 (vsx_extract_<mode>_var): Ditto.
10862 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10864 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10867 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10869 * config/rs6000/constraints.md (define_register_constraint "ww"):
10871 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10872 (rs6000_init_hard_regno_mode_ok): Adjust.
10873 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10874 RS6000_CONSTRAINT_ww.
10875 * config/rs6000/rs6000.md: Adjust.
10876 * config/rs6000/vsx.md: Adjust.
10877 * doc/md.texi (Machine Constraints): Adjust.
10879 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10881 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10882 (define_mode_attr sd): New.
10883 (define_mode_attr s): New.
10884 (define_mode_attr Ftrad): Delete.
10885 (define_mode_attr Fvsx): Delete.
10886 (define_mode_attr Fs): Delete.
10887 (rest of file): Use the new mode attributes.
10888 * config.rs6000/vsx.md: Use the new mode attributes.
10890 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10892 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10895 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10897 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10898 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10899 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10901 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10904 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10905 C++ with strict ANSI requirements.
10907 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10909 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10910 computations when step is 1.
10912 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10914 * config/rs6000/constraints.md (define_register_constraint "wf"):
10916 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10917 (rs6000_init_hard_regno_mode_ok): Adjust.
10918 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10919 RS6000_CONSTRAINT_wf.
10920 * config/rs6000/rs6000.md: Adjust.
10921 * config/rs6000/vsx.md: Adjust.
10922 * doc/md.texi (Machine Constraints): Adjust.
10924 2019-06-04 Andrew Pinski <apinski@marvell.com>
10926 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10929 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10931 * config/rs6000/constraints.md (define_register_constraint "wd"):
10933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10934 (rs6000_init_hard_regno_mode_ok): Adjust.
10935 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10936 RS6000_CONSTRAINT_wd.
10937 * config/rs6000/rs6000.md: Adjust.
10938 * config/rs6000/vsx.md: Adjust.
10939 * doc/md.texi (Machine Constraints): Adjust.
10941 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10943 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10944 (rest of file): Adjust.
10946 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10948 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10949 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10950 (vsx_splat_<mode>_reg): Adjust.
10952 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10954 * config/rs6000/constraints.md (define_register_constraint "ws"):
10956 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10957 (rs6000_init_hard_regno_mode_ok): Adjust.
10958 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10959 RS6000_CONSTRAINT_ws.
10960 * config/rs6000/rs6000.md: Adjust.
10961 * config/rs6000/vsx.md: Adjust.
10962 * doc/md.texi (Machine Constraints): Adjust.
10964 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10966 * config/rs6000/constraints.md (define_register_constraint "wv"):
10968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10969 (rs6000_init_hard_regno_mode_ok): Adjust.
10970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10971 RS6000_CONSTRAINT_wv.
10972 * config/rs6000/rs6000.md: Adjust.
10973 * config/rs6000/vsx.md: Adjust.
10974 * doc/md.texi (Machine Constraints): Adjust.
10976 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10978 * config/rs6000/constraints.md (define_register_constraint "wi"):
10980 (define_register_constraint "wt"): Delete.
10981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10982 (rs6000_init_hard_regno_mode_ok): Adjust.
10983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10984 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10985 * config/rs6000/rs6000.md: Adjust.
10986 * config/rs6000/vsx.md: Adjust.
10987 * doc/md.texi (Machine Constraints): Adjust.
10989 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10991 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10993 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10994 default_elf_asm_output_external.
10996 2019-06-04 Martin Liska <mliska@suse.cz>
10998 * ipa-icf.c (INCLUDE_LIST): Remove.
10999 (sem_item_optimizer::execute): Remove call to init_wpa.
11000 * ipa-icf.h (init_wpa): Remove.
11002 2019-06-04 Jakub Jelinek <jakub@redhat.com>
11004 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
11005 conditional on combined for simd.
11006 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
11008 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
11009 constructs, don't remove lastprivate_conditional_map, but instead set
11010 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
11011 to parent construct temporaries.
11012 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
11013 like !ctx->lastprivate_conditional_map.
11014 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
11015 use up->outer context instead of up.
11016 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
11017 gimple_omp_for_combined_p.
11018 (expand_omp_for_static_nochunk): Likewise.
11019 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
11020 probably moved over into expand_omp_for_generic rather than being copied
11023 2019-06-04 Martin Liska <mliska@suse.cz>
11025 * value-prof.c (dump_histogram_value): Fix typo.
11026 (gimple_mod_subtract_transform): Likewise.
11028 2019-06-04 Richard Biener <rguenther@suse.de>
11030 PR middle-end/90726
11031 * tree-chrec.c (chrec_contains_symbols): Add to visited.
11032 (tree_contains_chrecs): Likewise.
11033 (chrec_contains_symbols_defined_in_loop): Move here and avoid
11034 exponential behaivor from ...
11035 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11037 (expression_expensive_p): Avoid exponential behavior and compute
11038 expanded size, rejecting any expansion.
11039 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
11040 (idx_contains_abnormal_ssa_name_p): Likewise.
11041 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
11042 (contains_abnormal_ssa_name_p): Simplify and use
11043 walk_tree_without_duplicates.
11045 2019-06-04 Richard Biener <rguenther@suse.de>
11047 PR tree-optimization/90738
11049 2019-06-03 Richard Biener <rguenther@suse.de>
11051 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11052 full reference tree and record in ref->ref.
11053 (vn_reference_lookup_3): Pass in original ref to
11054 ao_ref_init_from_vn_reference.
11055 (vn_reference_lookup): Likewise.
11056 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11057 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11058 Handle non-decl bases in the original reference.
11060 2019-06-04 Martin Liska <mliska@suse.cz>
11062 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
11063 number of references.
11064 (sem_item_optimizer::do_congruence_step):
11065 (sem_item_optimizer::worklist_push): Dump how references
11067 (sem_item_optimizer::worklist_pop): Use heap.
11068 (sem_item_optimizer::process_cong_reduction): Likewise.
11069 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
11071 2019-06-04 Martin Liska <mliska@suse.cz>
11073 * ipa-icf.h (struct sem_usage_pair_hash): New.
11074 (sem_usage_pair_hash::hash): Likewise.
11075 (sem_usage_pair_hash::equal): Likewise.
11076 (struct sem_usage_hash): Likewise.
11077 * ipa-icf.c (sem_item::sem_item): Initialize
11078 referenced_by_count.
11079 (sem_item::add_reference): Register a reference
11080 in ref_map and not in target->usages.
11081 (sem_item::setup): Remove initialization of
11083 (sem_item::~sem_item): Remove usage of dead vectors.
11084 (sem_item::dump): Remove dump of references.
11085 (sem_item_optimizer::sem_item_optimizer): Initialize
11087 (sem_item_optimizer::read_section): Remove useless
11089 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
11090 (sem_item_optimizer::build_graph): Pass m_references
11091 to ::add_reference.
11092 (sem_item_optimizer::verify_classes): Remove usage of dead
11094 (sem_item_optimizer::traverse_congruence_split): Return true
11095 when a class is split.
11096 (sem_item_optimizer::do_congruence_step_for_index): Use
11097 hash_map for look up of (sem_item *, index). That brings
11098 significant speed up.
11099 (sem_item_optimizer::do_congruence_step): Return true
11100 when a split is done.
11101 (congruence_class::is_class_used): Use referenced_by_count.
11103 2019-06-04 Alan Modra <amodra@gmail.com>
11106 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
11109 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11111 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
11112 * config/rs6000/rs6000.c (direct_move_p): Adjust.
11113 (rs6000_secondary_reload_simple_move): Adjust.
11114 (rs6000_opt_masks): Neuter the "mfpgpr" option.
11115 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
11116 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
11119 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
11120 (floatunssi<mode>2_lfiwzx): Adjust.
11121 (fix_trunc<mode>si2_stfiwx): Adjust.
11122 (fixuns_trunc<mode>si2_stfiwx): Adjust.
11123 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
11124 (mfpgpr): Mark as deprecated.
11125 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
11126 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
11127 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
11129 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11131 * config/rs6000/constraints.md (define_register_constraint "wg"):
11133 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11134 RS6000_CONSTRAINT_wg.
11135 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11136 (rs6000_init_hard_regno_mode_ok): Adjust.
11137 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
11138 Delete "wg" alternatives.
11139 * doc/md.texi (Machine Constraints): Adjust.
11141 2019-06-03 Alan Modra <amodra@gmail.com>
11143 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
11144 (get_uncond_jump_length): Assert length less than INT_MAX and
11147 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11149 PR middle-end/64242
11150 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
11152 (expand_builtin_nonlocal_goto): Likewise.
11154 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11156 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
11157 (aarch64_asm_output_external): Declare.
11158 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
11159 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
11160 (aarch64_asm_output_alias): New.
11161 (aarch64_asm_output_external): New.
11162 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
11163 (ASM_OUTPUT_EXTERNAL): Define.
11165 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
11166 * tree-vrp.h (value_range_base::nonzero_p): New.
11167 (value_range_base::set_nonnull): Rename to...
11168 (value_range_base::set_nonzero): ...this.
11169 (value_range_base::set_null): Rename to...
11170 (value_range_base::set_zero): ...this.
11171 (value_range::set_nonnull): Remove.
11172 (value_range::set_null): Remove.
11173 * tree-vrp.c (range_is_null): Remove.
11174 (range_is_nonnull): Remove.
11175 (extract_range_from_binary_expr): Use value_range_base::*zero_p
11176 instead of range_is_*null.
11177 (extract_range_from_unary_expr): Same.
11178 (value_range_base::set_nonnull): Rename to...
11179 (value_range_base::set_nonzero): ...this.
11180 (value_range::set_nonnull): Remove.
11181 (value_range_base::set_null): Rename to...
11182 (value_range_base::set_zero): ...this.
11183 (value_range::set_null): Remove.
11184 (extract_range_from_binary_expr): Rename set_*null uses to
11186 (extract_range_from_unary_expr): Same.
11187 (union_helper): Same.
11188 * vr-values.c (get_value_range): Use set_*zero instead of
11190 (vr_values::extract_range_from_binary_expr): Same.
11191 (vr_values::extract_range_basic): Same.
11193 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11196 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
11198 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11200 * config/aarch64/iterators.md (MAX_OPP): New code attr.
11201 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
11203 (aarch64_<su>abd<mode>_3): ... This.
11204 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
11206 2019-06-03 Richard Biener <rguenther@suse.de>
11208 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11209 full reference tree and record in ref->ref.
11210 (vn_reference_lookup_3): Pass in original ref to
11211 ao_ref_init_from_vn_reference.
11212 (vn_reference_lookup): Likewise.
11213 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11214 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11215 Handle non-decl bases in the original reference.
11217 2019-06-03 Martin Liska <mliska@suse.cz>
11219 * doc/generic.texi: Remove Java Trees.
11221 2019-06-03 Martin Liska <mliska@suse.cz>
11223 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
11224 returns 0 when operands are equal.
11226 2019-06-03 Richard Biener <rguenther@suse.de>
11228 PR tree-optimization/90716
11229 * tree-loop-distribution.c (destroy_loop): Process blocks in
11232 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11235 * vector-builder.h (vector_builder::count_dups): New method.
11236 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
11238 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
11239 (vec_init<mode><Vel>): New pattern.
11240 * config/aarch64/aarch64.c (emit_insr): New function.
11241 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
11242 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
11243 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
11244 (aarch64_sve_expand_vector_init): Define two overloaded functions.
11246 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11248 PR tree-optimization/90681
11249 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
11250 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
11251 special case for SLP, but fail on non-groupped loads.
11253 2019-06-03 Martin Liska <mliska@suse.cz>
11255 * cfg.c (debug): Use TDF_DETAILS for debug and
11256 print edge info only once.
11258 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
11261 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
11263 2019-06-01 Martin Sebor <msebor@redhat.com>
11265 PR middle-end/90694
11266 * tree-pretty-print.c (dump_generic_node): Add parentheses.
11268 2019-05-31 Jan Hubicka <jh@suse.cz>
11270 * alias.c: Include ipa-utils.h.
11271 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
11272 * ipa-devirt.c (prevailing_odr_type): New.
11273 * ipa-utils.h (previaling_odr_type): Declare.
11275 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
11276 Hongtao Liu <hongtao.liu@intel.com>
11279 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
11280 NOTE_INSN_DELETED_LABEL check.
11282 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
11283 Robert Suchanek <robert.suchanek@mips.com>
11285 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
11286 and 3rd operands of the fmadd/fmsub/maddv builtin.
11288 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11290 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
11291 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11292 on OMP_SIMD if not nested inside of worksharing loop that also has
11293 lastprivate conditional clause for the same decl.
11294 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
11295 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
11297 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
11299 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
11301 (lower_lastprivate_clauses): Likewise.
11302 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
11303 calling lower_rec_input_clauses.
11304 (lower_omp_for): Likewise.
11305 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
11306 clause on simd construct.
11307 * omp-expand.c (expand_omp_simd): Initialize cond_var if
11308 OMP_CLAUSE__CONDTEMP_ clause is present.
11310 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
11313 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
11316 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
11317 TEX_D32, TEX_D64 or TEX_D128.
11319 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11321 * match.pd (~(vec?cst1:cst2)): New transformation.
11323 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11325 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
11326 ((size_t)(A /[ex] B) CMP C): New transformation.
11328 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
11330 * doc/md.texi: Document define_insn_and_rewrite.
11331 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
11332 * gensupport.c (queue_elem): Update comment.
11333 (replace_operands_with_dups): New function.
11334 (gen_rewrite_sequence): Likewise.
11335 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
11336 * read-rtl.c (apply_subst_iterator): Likewise.
11337 (add_condition_to_rtx, named_rtx_p): Likewise.
11338 (rtx_reader::read_rtx_operand): Likewise.
11339 * config/aarch64/aarch64-sve.md
11340 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
11341 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
11342 define_insn_and_rewrite.
11343 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11344 Remove separate define_split.
11346 2019-05-31 Jan Hubicka <jh@suse.cz>
11348 * tree-ssa-alias.c (type_has_components_p): New function.
11349 (aliasing_component_refs_p): Use it.
11351 2019-05-31 Martin Liska <mliska@suse.cz>
11353 * gdbhooks.py: Add const_tree to TreePrinter.
11355 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
11358 * common.opt (feliminate-unused-debug-symbols): Enable by default.
11359 * doc/invoke.texi (Debugging Options): Document new default of
11360 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
11362 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11364 PR tree-optimization/90671
11365 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
11366 template_block used to be empty on the first call, don't use
11367 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
11368 seq with bb_seq and set it with set_bb_seq.
11370 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
11372 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
11374 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11375 Michael Meissner <meissner@linux.ibm.com>
11377 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
11378 (prefixed_mem_operand): Likewise.
11379 (non_prefixed_mem_operand): Likewise.
11380 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
11382 * config/rs6000/rs6000.c (print_operand_address): Handle
11383 PC-relative addresses.
11384 (mode_supports_prefixed_address_p): New function.
11385 (rs6000_prefixed_address): New function.
11386 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
11387 (SYMBOL_REF_PCREL_P): Likewise.
11389 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11391 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
11392 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
11393 (gimplify_omp_for): If worksharing loop with lastprivate conditional
11394 is nested inside of parallel region, add _condtemp_ clause to both.
11395 * tree-nested.c (convert_nonlocal_omp_clauses,
11396 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
11398 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
11400 * omp-general.c (omp_extract_for_data): Compute it.
11401 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
11402 (lower_rec_input_clauses): Likewise.
11403 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
11404 clause is already present, just add one further one after it.
11405 (lower_lastprivate_clauses): Handle cond_ptr with array type.
11406 (lower_send_shared_vars): Clear _condtemp_ vars.
11407 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
11408 or section or taskgroup.
11409 * omp-expand.c (determine_parallel_type): Disallow combining only if
11410 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
11411 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
11412 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11413 expand_omp_for_static_chunk, expand_omp_for): Use
11414 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
11415 determine if a special set of API routines are needed and if condtemp
11416 needs to be initialized, while always initialize cond_var if
11417 fd->lastprivate_conditional is non-zero.
11419 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11420 Michael Meissner <meissner@linux.ibm.com>
11422 * config/rs6000/constraints.md (eI): New constraint.
11423 * config/rs6000/predicates.md (cint34_operand): New predicate.
11424 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11425 (SIGNED_34BIT_OFFSET_P): Likewise.
11426 * doc/md.texi (eI): Document constraint.
11428 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11430 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11432 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11433 Michael Meissner <meissner@linux.ibm.com>
11435 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11436 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11437 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11438 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11439 (OTHER_FUTURE_MASKS): Likewise.
11440 (POWERPC_MASKS): Likewise.
11441 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11442 specified without -mprefixed-addr or -mcpu=future. Error if
11443 -mprefixed-addr is specified without -mcpu=future.
11444 (rs6000_opt_masks): Add entry for prefixed-addr.
11445 * rs6000.opt (mprefixed-addr): New option.
11447 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11449 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11450 cfun->is_thunk check.
11452 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11454 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11457 2019-05-30 Martin Liska <mliska@suse.cz>
11459 * gdbinit.in: Fix 'ptc' command. Add trt
11460 that prints TREE_TYPE($).
11462 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11463 Alan Modra <amodra@gmail.com>
11465 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11467 (rs6000_indirect_call_template_1): ...and here.
11468 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11469 plt16_ha, plt16_lo, mtctr indirect calls. Use
11470 rs6000_pltseq_enum.
11471 (rs6000_decl_ok_for_sibcall): New function.
11472 (rs6000_function_ok_for_sibcall): Refactor.
11473 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11474 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11475 when pcrel. Reorganize.
11476 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11477 * rs6000.h (rs6000_pltseq_enum): New enum.
11478 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11479 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11480 (*pltseq_plt16_ha): Likewise.
11481 (*pltseq_plt16_lo): Likewise.
11482 (*pltseq_mtctr): Likewise.
11483 (*pltseq_plt_pcrel): New insn.
11484 (*call_local_aix): Handle @notoc calls.
11485 (*call_value_local_aix): Likewise.
11486 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11487 (*call_value_nonlocal_aix): Likewise.
11488 (*call_indirect_pcrel): New insn.
11489 (*call_value_indirect_pcrel): Likewise.
11491 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11493 * config/i386/sse.md (*save_multiple<mode>): Rename from
11494 save_multiple<mode>.
11495 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11496 (*restore_multiple_and_return<mode>): Rename from
11497 restore_multiple_and_return<mode>.
11498 (*restore_multiple_leave_return<mode>): Rename from
11499 restore_multiple_leave_return<mode>.
11501 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11503 * config.gcc (rx-*-linux*): New target.
11504 * config/rx/elf.opt: New file.
11505 * config/rx/linux.h: Likewise.
11506 * config/rx/t-linux: Likewise.
11507 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11509 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11510 (ASM_APP_OFF): Likewise.
11511 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11514 2019-05-29 Jan Hubicka <jh@suse.cz>
11516 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11517 variants are pointer equivalent.
11519 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11521 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11522 * config/aarch64/aarch64-sve2.md: New file.
11523 (<u>avg<mode>3_floor): New pattern.
11524 (<u>avg<mode>3_ceil): Likewise.
11525 (*<sur>h<addsub><mode>): Likewise.
11526 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11527 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11529 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11532 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11533 for var_opt_string printing. In cl_optimization_print_diff, print
11534 (null) instead of invoking undefined behavior if one of the
11535 var_opt_string pointers is NULL and use && instead of first || in the
11536 guarding condition. For var_target_other options, handle const char *
11537 target variables similarly to const char * optimize node variables.
11539 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11541 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11542 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11543 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11544 Add autib1716 and pacib1716 initialisation.
11545 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11546 for autib1716 and pacib1716.
11547 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11548 aarch64_post_cfi_startproc): Define.
11549 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11550 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11551 aarch64_handle_pac_ret_protection): Set default sign key to A.
11552 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11553 aarch64_expand_prologue): Add check for b-key.
11554 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11555 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11556 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11557 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11558 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11559 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11560 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11561 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11562 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11563 pauth_hint_num_a with pauth_hint_num.
11564 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11565 pauth_hint_num_a with pauth_hint_num.
11566 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11567 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11568 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11569 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11570 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11571 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11572 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11573 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11574 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11575 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11576 UNSPEC_AUTIA1716 respectively.
11577 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11578 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11579 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11580 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11581 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11582 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11584 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11586 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11587 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11588 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11589 explicit clause on combined parallel into implicit shared clause.
11590 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11591 and firstprivate if the decl has one too from combined parallel to
11592 the worksharing construct.
11594 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11595 Michael Meissner <meissner@linux.ibm.com>
11597 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11599 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11601 * rtl.h (LABEL_REF_P): New #define.
11603 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11605 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11607 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11609 * internal-fn.c: Marked mask_load_direct as vectorizable.
11610 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11611 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11612 combined even if masks different with allow_slp_p param.
11613 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11614 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11615 dissolve SLP-only vectorizable groups when SLP has been discarded.
11616 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11617 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11619 (vect_build_slp_tree_1): Fixed comment typo.
11620 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11621 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11622 loads for SLP only.
11623 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11625 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11627 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11629 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11630 Remove obsolete use_thunk reference.
11631 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11632 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11633 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11634 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11635 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11636 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11637 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11638 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11639 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11641 2019-05-28 Nathan Sidwell <nathan@acm.org>
11643 * tree.h (IDENTIFIER_ANON_P): New.
11644 (anon_aggrname_format, anon_aggname_p): Don't declare.
11645 (make_anon_name): Declare.
11646 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11647 (hash_tree): Likewise.
11648 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11649 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11650 (anon_cnt, make_anon_name): New.
11652 2019-05-28 Martin Liska <mliska@suse.cz>
11655 * opts-global.c (decode_options): Print help for all
11656 help_option_arguments.
11657 * opts.c (print_help): Add new argument.
11658 (common_handle_option): Remember all values into
11659 help_option_arguments.
11660 * opts.h (print_help): Add new argument.
11662 2019-05-28 Martin Liska <mliska@suse.cz>
11665 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11666 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11667 (func_checker::compare_bb): Call compare_loops.
11669 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11671 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11672 on sections construct.
11673 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11675 (lower_omp_sections): Handle lastprivate conditional.
11676 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11677 lastprivate_conditional_map.
11678 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11680 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11681 critical, taskgroup and section regions when looking for a region
11682 with non-NULL lastprivate_conditional_map.
11684 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11686 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11687 (*ix86_gen_sub3): Ditto.
11688 (*ix86_gen_sub3_carry): Ditto.
11689 (*ix86_gen_one_cmpl2): Ditto.
11690 (*ix86_gen_andsp): Ditto.
11691 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11692 (gen_and2_insn): New static function.
11693 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11694 Use gen_add3_insn instead of ix86_gen_add3.
11695 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11696 instead of ix86_gen_add3.
11697 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11698 Use gen_sub3_insn instead of ix86_gen_sub3.
11699 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11700 instead of ix86_gen_add3.
11701 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11702 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11703 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11704 * config/i386/i386-options.c (ix86_option_override_internal):
11705 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11706 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11708 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11710 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11711 and DW_OP_GNU_const_index opcodes.
11713 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11715 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11717 2019-05-27 Richard Biener <rguenther@suse.de>
11719 PR tree-optimization/90637
11720 * tree-ssa-sink.c (statement_sink_location): Honor the
11721 computed sink location for single-uses.
11723 2019-05-27 Richard Biener <rguenther@suse.de>
11725 PR middle-end/90610
11726 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11729 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11731 * config/i386/i386.md (@sub<mode>3_carry): Rename
11732 from sub<mode>3_carry.
11733 (@leave_<mode>): New expander.
11734 (*leave): Rename from leave.
11735 (*leave_rex64): Rename from leave_rex64.
11736 (@monitorx_<mode>): Rename from monitorx_<mode>.
11737 (@clzero_<mode>): Rename from clzero_<mode>.
11738 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11739 from sse3_monitor_<mode>.
11740 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11741 (*ix86_gen_leave): Ditto.
11742 (*ix86_gen_monitor): Ditto.
11743 (*ix86_gen_monitorx): Ditto.
11744 (*ix86_gen_clzero): Ditto.
11745 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11746 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11747 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11748 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11749 Use gen_sse3_monitor instead of ix86_gen_monitor.
11750 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11751 instead of ix86_gen_monitorx.
11752 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11753 instead of ix86_gen_clzero.
11754 * config/i386/i386-options.c (ix86_option_override_internal):
11755 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11756 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11758 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11760 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11761 Rename from tls_global_dynamic_64_<mode>.
11762 (@tls_local_dynamic_base_64_<mode>): Rename from
11763 tls_local_dynamic_base_64_<mode>.
11764 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11765 Remove indirect function.
11766 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11767 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11768 instead of ix86_gen_tls_global_dynamic_64.
11769 Use gen_tls_local_dynamic_base_64 instead of
11770 ix86_gen_tls_local_dynamic_base_64.
11771 * config/i386/i386-options.c (ix86_option_override_internal):
11772 Do not initialize ix86_gen_tls_global_dynamic_64 and
11773 ix86_gen_tls_local_dynamic_base_64.
11775 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11777 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11778 Rename from pro_epilogue_adjust_stack_<mode>_add.
11779 (@pro_epilogue_adjust_stack_sub_<mode>)
11780 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11781 (@allocate_stack_worker_probe_<mode>):
11782 Rename from allocate_stack_worker_probe_<mode>.
11783 (allocate_stack): Use gen_allocate_stack_worker_probe.
11784 (probe_stack): Use gen_probe_stack_1.
11785 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11786 (@adjust_stack_and_probe_<mode>): Rename from
11787 adjust_stack_and_probe<mode>.
11788 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11789 (stack_protect_set): Use gen_stack_protect_set_1.
11790 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11791 (stack_protect_test): Use gen_stack_protect_test_1.
11792 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11793 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11794 Remove indirect function.
11795 (*ix86_gen_adjust_stack_and_probe): Ditto.
11796 (*ix86_gen_probe_stack_range): Ditto.
11797 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11798 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11799 (ix86_adjust_stack_and_probe_stack_clash): Use
11800 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11801 (ix86_adjust_stack_and_probe): Ditto.
11802 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11803 of ix86_gen_probe_stack_range.
11804 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11805 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11806 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11807 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11808 CODE_FOR_stack_protect_test_{si,di}.
11809 * config/i386/i386-options.c (ix86_option_override_internal):
11810 Do not initialize ix86_gen_allocate_stack_worker,
11811 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11813 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11815 * doc/invoke.texi (Link Options): Many editorial changes around
11818 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11820 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11821 pre-Solaris 11 referene and most Studio compiler details.
11823 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11826 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11827 DImode to SImode in floating-point registers on 64-bit target.
11828 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11829 register_operand in xmpyu patterns.
11831 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11833 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11834 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11835 OMP_CLAUSE__REDUCTEMP_.
11836 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11837 OMP_CLAUSE__CONDTEMP_.
11838 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11839 * tree-pretty-print.c (dump_omp_clause): Likewise.
11840 * tree-nested.c (convert_nonlocal_omp_clauses,
11841 convert_local_omp_clauses): Likewise.
11842 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11843 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11844 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11846 (gimplify_omp_for): Warn and disable conditional modifier from
11847 lastprivate on loop iterators.
11848 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11850 * omp-general.c (omp_extract_for_data): Initialize it.
11851 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11853 (delete_omp_context): Delete it.
11854 (lower_lastprivate_conditional_clauses): New function.
11855 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11856 handle lastprivate conditional clauses.
11857 (lower_reduction_clauses): Add CLIST argument, emit it into
11858 the critical section if any.
11859 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11860 lower_reduction_clauses callers.
11861 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11862 to lower_lastprivate_clauses.
11863 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11864 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11865 clist into a critical section if not emitted there already by
11866 lower_reduction_clauses.
11867 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11869 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11870 conditional variables.
11871 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11873 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11874 expand_omp_for_static_chunk): Handle lastprivate conditional.
11875 (expand_omp_for): Handle fd.lastprivate_conditional like
11878 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11880 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11881 kernel does not exit cleanly.
11882 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11884 2019-05-24 Jason Merrill <jason@redhat.com>
11887 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11889 2019-05-24 Richard Biener <rguenther@suse.de>
11892 * tree-loop-distribution.c (struct partition): Add location
11894 (partition_alloc): Initialize all fields.
11895 (generate_memset_builtin): Use the location recorded in the
11896 partition for the generated call.
11897 (generate_memcpy_builtin): Likewise.
11898 (classify_partition): Record the location of a single store
11899 as location for the partition.
11901 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11903 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11906 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11909 * common/config/aarch64/aarch64-common.c
11910 (aarch64_rewrite_selected_cpu): Change local temporary variable
11911 type from unsigned long to uint64_t.
11912 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11913 aarch64_get_extension_string_for_isa_flags): Change declaration to
11914 match new definition by replacing unsigned long with uint64_t.
11916 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11919 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11920 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11921 Handle stack_protect_test_<mode> codegen similarly to corresponding
11924 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11926 * config/i386/darwin.h: Reject -mfentry*.
11927 * doc/sourcebuild.texi: Document mfentry target support.
11929 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11931 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11932 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11933 false for PC-relative functions.
11934 (rs6000_output_function_prologue): Change called function name to
11935 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11936 name,1" for PC-relative functions.
11937 (rs6000_elf_declare_function_name): Change called function name to
11938 rs6000_global_entry_point_prologue_needed_p.
11940 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11943 * config/i386/i386.c (gen_rtx_cost):
11944 Use ix86_tune_cost instead of ix86_cost.
11946 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11947 Michael Meissner <meissner@linux.ibm.com>
11948 Segher Boessenkool <segher@kernel.crashing.org>
11950 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11952 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11953 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11954 (rs6000_fndecl_pcrel_p): Likewise.
11955 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11956 error if -mpcrel is requested without -mcpu=future.
11957 (rs6000_opt_masks): Add entry for pcrel.
11958 (rs6000_fndecl_pcrel_p): New function.
11959 (rs6000_pcrel_p): Likewise.
11960 * config/rs6000/rs6000.opt (mpcrel): New option.
11961 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11963 2019-05-23 Jan Hubicka <jh@suse.cz>
11964 Martin Liska <mliska@suse.cz>
11966 PR tree-optimization/90576
11967 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11969 (aliasing_component_refs_p): Fix three way size compare conditional;
11970 give up earlier in case we can not decide on equivalence.
11972 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11973 Michael Meissner <meissner@linux.ibm.com>
11974 Segher Boessenkool <segher@kernel.crashing.org>
11976 * config.gcc: Add future cpu.
11977 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11978 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11980 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11981 (RS6000_CPU): New instantiation for future cpu.
11982 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11984 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11985 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11986 * config/rs6000/rs6000-tables.opt: Regenerate.
11987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11988 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11989 (rs6000_machine_from_flags): Handle future cpu.
11990 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11991 PROCESSOR_POWER9 for now.
11992 (rs6000_adjust_cost): Likewise.
11993 (rs6000_issue_rate): Likewise.
11994 (rs6000_register_move_cost): Likewise.
11995 (rs6000_opt_masks): Add entry for future.
11996 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11997 (MASK_FUTURE): New #define.
11998 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11999 * config/rs6000/rs6000.opt (mfuture): New target option.
12000 * doc/invoke.texi (mcpu): Add future cpu.
12002 2019-05-23 Martin Liska <mliska@suse.cz>
12005 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
12006 operation points to a temporary (pointed via tree_to_wide_ref)
12007 that is out of scope after the &.
12009 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
12012 * doc/extend.texi (Function Names): Add missing word.
12014 2019-05-23 Richard Biener <rguenther@suse.de>
12016 PR tree-optimization/88440
12017 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
12019 * tree-loop-distribution.c (generate_memset_builtin): Fold the
12021 (generate_memcpy_builtin): Likewise.
12022 (distribute_loop): Pass in whether to only distribute patterns.
12023 (prepare_perfect_loop_nest): Also allow size optimization.
12024 (pass_loop_distribution::execute): When optimizing a loop
12025 nest for size allow pattern replacement.
12027 2019-05-23 Jakub Jelinek <jakub@redhat.com>
12030 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
12033 2019-05-23 Martin Liska <mliska@suse.cz>
12036 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
12037 expression similarly to gimplify_decl_expr.
12039 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12041 * cse.c (cse_dump_path): s/dump_file/f.
12043 2019-05-22 David Malcolm <dmalcolm@redhat.com>
12046 * diagnostic-format-json.cc: Include "selftest.h".
12047 (json_from_expanded_location): Only add "file" key for non-NULL
12049 (json_from_location_range): Don't add "start" and "finish"
12050 children if they are UNKNOWN_LOCATION.
12051 (selftest::test_unknown_location): New selftest.
12052 (selftest::test_bad_endpoints): New selftest.
12053 (selftest::diagnostic_format_json_cc_tests): New function.
12054 * json.cc (json::object::get): New function.
12055 (selftest::test_object_get): New selftest.
12056 (selftest::json_cc_tests): Call it.
12057 * json.h (json::object::get): New decl.
12058 * selftest-run-tests.c (selftest::run_tests): Call
12059 selftest::diagnostic_format_json_cc_tests.
12060 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
12063 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12064 Andrew Stubbs <amd@codesourcery.com>
12066 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
12067 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
12068 (kernel): Rename to...
12069 (main_kernel): ... this.
12070 (load_image): Load _init_array and _fini_array kernels.
12071 (run): Add argument for kernel to run.
12072 (main): Run init_array_kernel before main_kernel, and
12073 fini_array_kernel after.
12074 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
12075 amdgpu_hsa_kernel attribute on functions.
12076 (gcn_disable_constructors): Delete.
12077 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
12078 * config/gcn/crt0.c (size_t): Define.
12079 (_init_array, _fini_array): New.
12080 (__preinit_array_start, __preinit_array_end,
12081 __init_array_start, __init_array_end,
12082 __fini_array_start, __fini_array_end): Declare weak references.
12084 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
12086 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
12088 2019-05-22 Jason Merrill <jason@redhat.com>
12090 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12092 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
12095 * config/i386/i386-options.c (ix86_init_machine_status): Set
12096 stack_frame_required to true.
12097 * config/i386/i386.c (ix86_get_frame_size): New function.
12098 (ix86_frame_pointer_required): Replace get_frame_size with
12099 ix86_get_frame_size.
12100 (ix86_compute_frame_layout): Likewise.
12101 (ix86_find_max_used_stack_alignment): Changed to void. Set
12102 stack_frame_required.
12103 (ix86_finalize_stack_frame_flags): Always call
12104 ix86_find_max_used_stack_alignment. Replace get_frame_size with
12105 ix86_get_frame_size.
12106 * config/i386/i386.h (machine_function): Add stack_frame_required.
12108 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
12110 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
12112 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
12114 * common/config/aarch64/aarch64-common.c
12115 (struct aarch64_option_extension, struct processor_name_to_arch,
12116 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
12117 aarch64_contains_opt,
12118 aarch64_get_extension_string_for_isa_flags): Change type of
12119 variables storing flags to uint64_t.
12120 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
12121 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
12122 * config/aarch64/aarch64.c (struct processor,
12123 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
12124 aarch64_validate_march, aarch64_override_options,
12125 aarch64_option_print, aarch64_handle_attr_isa_flags,
12126 aarch64_declare_function_name, aarch64_start_file): Make flag
12127 variables uint64_t.
12128 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
12129 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
12130 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
12131 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
12132 * config/aarch64/driver-aarch64.c
12133 (struct aarch64_arch_extension, struct aarch64_core_data,
12134 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
12135 flag variables uint64_t.
12136 * doc/invoke.texi: Add documentation for new arguments.
12138 2019-05-22 Richard Biener <rguenther@suse.de>
12140 * alias.c (ao_ref_from_mem): Move stack-slot sharing
12142 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
12144 2019-05-22 Martin Liska <mliska@suse.cz>
12147 * doc/extend.texi: Document the change.
12149 2019-05-22 Richard Biener <rguenther@suse.de>
12151 PR tree-optimization/90450
12152 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
12153 (mem_ref_hasher::equal): Check it.
12154 (mem_ref_alloc): Initialize it.
12155 (gather_mem_refs_stmt): Set it.
12157 2019-05-22 Richard Biener <rguenther@suse.de>
12159 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
12161 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
12164 2019-05-22 Alan Modra <amodra@gmail.com>
12166 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
12167 (ASM_CPU_SPEC): Conditionally add -many.
12168 * config/rs6000/rs6000.c (rs6000_machine): New static var.
12169 (rs6000_machine_from_flags, emit_asm_machine): New functions..
12170 (rs6000_file_start): ..extracted from here, and modified to
12172 (rs6000_output_function_prologue): Emit .machine as necessary.
12174 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
12176 PR middle-end/90553
12177 * ira-lives.c (process_bb_node_lives): Consider defs
12178 for a call insn to be die before the call, not after.
12180 * function.c (assign_parm_setup_block): Raise alignment of
12181 stacked parameter only for STRICT_ALIGNMENT targets.
12183 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12185 * config/rs6000/constraints.md (define_register_constraint "wz"):
12187 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12188 RS6000_CONSTRAINT_wz.
12189 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12190 (rs6000_init_hard_regno_mode_ok): Adjust.
12191 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
12192 * doc/md.texi (Machine Constraints): Adjust.
12194 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12196 * config/rs6000/constraints.md (define_register_constraint "wl"):
12198 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12199 RS6000_CONSTRAINT_wl.
12200 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12201 (rs6000_init_hard_regno_mode_ok): Adjust.
12202 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
12203 * doc/md.texi (Machine Constraints): Adjust.
12205 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12207 * config/rs6000/constraints.md (define_register_constraint "wm"):
12209 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12210 RS6000_CONSTRAINT_wm.
12211 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12212 (rs6000_init_hard_regno_mode_ok): Adjust.
12213 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
12214 * doc/md.texi (Machine Constraints): Adjust.
12216 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12218 * config/rs6000/constraints.md (define_register_constraint "wk"):
12220 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12221 RS6000_CONSTRAINT_wk.
12222 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12223 (rs6000_init_hard_regno_mode_ok): Adjust.
12224 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
12225 * doc/md.texi (Machine Constraints): Adjust.
12227 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12229 * config/rs6000/constraints.md (define_register_constraint "wj"):
12231 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12232 RS6000_CONSTRAINT_wj.
12233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12234 (rs6000_init_hard_regno_mode_ok): Adjust.
12235 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
12237 * config/rs6000/vsx.md: Ditto.
12238 * doc/md.texi (Machine Constraints): Adjust.
12240 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12242 * config/rs6000/constraints.md (define_register_constraint "wh"):
12244 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12245 RS6000_CONSTRAINT_wh.
12246 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12247 (rs6000_init_hard_regno_mode_ok): Adjust.
12248 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
12249 * doc/md.texi (Machine Constraints): Adjust.
12251 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12254 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12255 Avoid calling gen_lowpart with CONST operand.
12257 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
12259 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
12260 field template_last_to_copy.
12261 (ssa_create_duplicates): Set it, and use it. Attempt to
12262 preserve more debug stmts.
12264 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12266 * config/i386/sse.md (VF1_AVX2): New mode iterator.
12267 (signbit<mode>2): New expander
12269 2019-05-21 James Clarke <jrtc27@jrtc27.com>
12272 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
12273 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
12275 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12277 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
12278 %ebx and %ecx bafore calling cpuid with leaf 1 or
12279 non-constant leaf argument.
12281 2019-05-21 Alan Modra <amodra@gmail.com>
12284 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
12285 power9 direct move cost.
12287 2019-05-21 Richard Biener <rguenther@suse.de>
12289 PR middle-end/90510
12290 * fold-const.c (fold_read_from_vector): New function.
12291 * fold-const.h (fold_read_from_vector): Declare.
12292 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
12293 single-element insert permutations. Canonicalize selector
12294 further and fix issue with last commit.
12296 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12298 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
12299 parameter with default value false to declaration.
12300 (split_edges_for_insertion): New inline function. Wrapper for
12301 split_critical_edges with for_edge_insertion_p = true.
12302 * tree-cfg.c (split_critical_edges): Don't split non-critical
12303 edges if for_edge_insertion_p is false. Fix whitespace.
12304 * tree-ssa-pre.c (pass_pre::execute): Call
12305 split_edges_for_insertion instead of split_critical_edges.
12306 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
12307 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
12308 (pass_data_sink_code): Update function name in the comment.
12310 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12312 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
12313 around is_value_included_in that knows how to handle BIT_AND_EXPR.
12314 (is_pred_expr_subset_of): Use the new function. Handle more cases where
12315 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
12318 2019-05-21 Martin Liska <mliska@suse.cz>
12320 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
12322 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
12323 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
12325 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12327 (rs6000_function_arg): Likewise.
12328 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
12329 (rs6000_expand_ternop_builtin): Use interval syntax.
12330 (get_element_number): Likewise.
12331 (altivec_expand_builtin): Likewise.
12332 (rs6000_get_function_versions_dispatcher): Quote target_clones.
12334 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12338 * function.h (struct function): Add calls_eh_return member.
12339 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
12340 gimplifying __builtin_eh_return call.
12341 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
12343 (expand_call_inline): Or in src_cfun->calls_eh_return into
12344 dst_cfun->calls_eh_return.
12345 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12346 cfun->calls_eh_return.
12347 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12348 * lto-streamer-out.c (output_struct_function_base): Write
12351 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
12353 PR rtl-optimization/43147
12354 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
12355 IX86_BUILTIN_SHUFPD.
12357 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12359 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
12360 (refs_may_alias_p_1): ... here; update stats.
12361 (refs_may_alias_p): Do not update stats here.
12363 2019-05-20 Richard Biener <rguenther@suse.de>
12365 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
12366 doesn't produce pointers.
12367 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
12368 the first operand points to.
12370 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12372 * tree-ssa-alias.c (compare_sizes): New function.
12373 (sompare_type_sizes): New function
12374 (aliasing_component_refs_p): Use it.
12375 (indirect_ref_may_alias_decl_p): Likewise.
12377 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12379 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
12381 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12383 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
12384 (LIBLSAN_EARLY_SPEC): Likewise.
12385 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
12387 2019-05-20 Martin Liska <mliska@suse.cz>
12389 * config/i386/i386.c (ix86_libc_has_fast_function):
12390 Add ATTRIBUTE_UNUSED for the argument.
12392 2019-05-20 Richard Biener <rguenther@suse.de>
12394 * gimple-match-head.c: Include vec-perm-indices.h.
12395 * generic-match-head.c: Likewise.
12396 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
12398 * fold-const.c (fold_vec_perm): Export.
12399 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
12400 (match.pd): ...here.
12402 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12404 * cfgloop.h (struct loop): Add simdlen member.
12405 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
12406 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
12407 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
12408 as new argument to autovectorize_vector_sizes target hook. If
12409 loop->simdlen, pick up vector size where the vectorization factor
12410 is equal to loop->simd, and if there is none, fall back to the first
12412 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
12414 * omp-low.c (omp_clause_aligned_alignment): Likewise.
12415 * omp-general.c (omp_max_vf): Likewise.
12416 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
12417 * tree-vect-slp.c (vect_slp_bb): Likewise.
12418 * target.def (autovectorize_vector_sizes): Add ALL argument and
12420 * doc/tm.texi: Adjust documentation.
12421 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12422 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12423 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12425 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12426 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12427 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12428 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12429 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12430 preferred vector size is not 512-bit or 256-bit, just put those
12431 unpreferred ones last.
12433 2019-05-20 Martin Liska <mliska@suse.cz>
12435 * targhooks.c (default_libc_has_fast_function): New function.
12436 * targhooks.h (default_libc_has_fast_function): Likewise.
12438 2019-05-20 Martin Liska <mliska@suse.cz>
12440 PR middle-end/90263
12441 * builtins.c (expand_builtin_memory_copy_args): When having a
12442 target with fast mempcpy implementation do now use memcpy.
12443 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12444 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12445 * doc/tm.texi: Likewise.
12446 * doc/tm.texi.in: Likewise.
12448 * expr.c (emit_block_move_hints): Add 2 new arguments.
12449 * expr.h (emit_block_move_hints): Bail out when libcall
12450 to memcpy would be used.
12452 2019-05-20 Martin Liska <mliska@suse.cz>
12454 * profile-count.c: Add vertical spacing in order
12455 to separate functions.
12456 * profile-count.h: Likewise.
12458 2019-05-20 Martin Liska <mliska@suse.cz>
12460 * profile-count.h: Do not use full qualified
12462 * profile-count.c (profile_count::to_frequency): Likewise.
12464 2019-05-20 Martin Liska <mliska@suse.cz>
12466 * profile-count.h (enum profile_quality): Use capital letters
12467 for enum value names. Use the adjusted names.
12468 * profile-count.c: Use the adjusted names.
12470 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12472 * config/rs6000/constraints.md (define_register_constraint "wH"):
12474 (define_register_constraint "wI"): Delete.
12475 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12476 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12477 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12478 (rs6000_init_hard_regno_mode_ok): Adjust.
12479 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12480 resp. "d", or with "wa" as appropriate, all with "p8v".
12481 * config/rs6000/vsx.md: Ditto.
12482 * doc/md.texi (Machine Constraints): Adjust.
12484 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12486 * config/rs6000/constraints.md (define_register_constraint "wy"):
12488 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12489 RS6000_CONSTRAINT_wy.
12490 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12491 (rs6000_init_hard_regno_mode_ok): Adjust.
12492 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12493 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12494 (define_mode_attr Fisa): New.
12495 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12496 * doc/md.texi (Machine Constraints): Adjust.
12498 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12500 * config/rs6000/constraints.md (define_register_constraint "wu"):
12502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12503 RS6000_CONSTRAINT_wu.
12504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12505 (rs6000_init_hard_regno_mode_ok): Adjust.
12506 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12508 (define_mode_attr Fa): Delete.
12509 * config/rs6000/vsx.md: Ditto.
12510 * doc/md.texi (Machine Constraints): Adjust.
12512 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12514 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12516 (define_register_constraint "wK"): Delete.
12517 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12518 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12519 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12520 (rs6000_init_hard_regno_mode_ok): Adjust.
12521 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12522 Replace "wK" constraint by "wH" with "p9v".
12523 * config/rs6000/vsx.md: Ditto.
12524 * doc/md.texi (Machine Constraints): Adjust.
12526 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12528 * config/rs6000/constraints.md (define_register_constraint "wb"):
12530 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12531 RS6000_CONSTRAINT_wb.
12532 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12533 (rs6000_init_hard_regno_mode_ok): Adjust.
12534 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12535 * config/rs6000/vsx.md: Ditto.
12536 * doc/md.texi (Machine Constraints): Adjust.
12538 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12540 * config/rs6000/constraints.md (define_register_constraint "wo"):
12542 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12543 RS6000_CONSTRAINT_wo.
12544 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12545 (rs6000_init_hard_regno_mode_ok): Adjust.
12546 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12547 * config/rs6000/altivec.md: Ditto.
12548 * doc/md.texi (Machine Constraints): Adjust.
12550 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12552 * config/darwin-c.c (darwin_register_objc_includes): Do not
12553 prepend the sysroot when building gnu-runtime header search
12556 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12558 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12559 instead of direct output of the asm.
12561 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12563 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12564 argument to be type bool (was int before).
12565 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12566 at first use. Use type bool for some variables. Fix a theoretical
12567 eh_return bug for svr4.
12569 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12571 * config/rs6000/rs6000.md (isa): New attribute.
12572 (enabled): New attribute.
12574 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12576 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12577 assemble_start_function and assemble_end_function.
12579 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12581 PR middle-end/89433
12582 * omp-general.c (oacc_verify_routine_clauses): Change formal
12583 parameters. Add checking if already marked with an OpenACC
12584 'routine' directive. Adjust all users.
12586 PR middle-end/89433
12587 * omp-general.c (oacc_build_routine_dims): Move some of its
12589 (oacc_verify_routine_clauses): ... this new function.
12590 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12592 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12594 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12595 formating of picbase labels to match other ports.
12597 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12599 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12600 in the generated code.
12602 2019-05-16 Martin Sebor <msebor@redhat.com>
12604 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12605 identifiers, keywords, operators, and types in diagnostics. Correct
12606 quoting, spelling, and sentence capitalization issues.
12607 (expand_builtin_atomic_is_lock_free): Same.
12608 (fold_builtin_next_arg): Same.
12609 * cfgexpand.c (expand_one_var): Same.
12610 (tree_conflicts_with_clobbers_p): Same.
12611 (expand_asm_stmt): Same.
12612 (verify_loop_structure): Same.
12613 * cgraphunit.c (process_function_and_variable_attributes): Same.
12614 * collect-utils.c (collect_execute): Same.
12615 * collect2.c (maybe_run_lto_and_relink): Same.
12616 (is_lto_object_file): Same.
12617 (scan_prog_file): Same.
12618 * convert.c (convert_to_real_1): Same.
12619 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12620 * except.c (verify_eh_tree): Same.
12621 * gcc.c (execute): Same.
12622 (eval_spec_function): Same.
12623 (run_attempt): Same.
12624 (driver::set_up_specs): Same.
12625 (compare_debug_auxbase_opt_spec_function): Same.
12626 * gcov-tool.c (unlink_gcda_file): Same.
12628 (do_rewrite): Same.
12629 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12630 * gimplify.c (gimplify_asm_expr): Same.
12631 (gimplify_adjust_omp_clauses): Same.
12632 * hsa-gen.c (gen_hsa_addr_insns): Same.
12633 (gen_hsa_insns_for_load): Same.
12634 (gen_hsa_cmp_insn_from_gimple): Same.
12635 (gen_hsa_insns_for_operation_assignment): Same.
12636 (gen_get_level): Same.
12637 (gen_hsa_alloca): Same.
12638 (omp_simple_builtin::generate): Same.
12639 (gen_hsa_atomic_for_builtin): Same.
12640 (gen_hsa_insns_for_call): Same.
12641 * input.c (dump_location_info): Same.
12642 * ipa-devirt.c (compare_virtual_tables): Same.
12643 * ira.c (ira_setup_eliminable_regset): Same.
12644 * lra-assigns.c (lra_assign): Same.
12645 * lra-constraints.c (lra_constraints): Same.
12646 * lto-streamer-in.c (lto_input_mode_table): Same.
12647 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12648 (merge_and_complain): Same.
12649 (compile_offload_image): Same.
12650 (compile_images_for_offload_targets): Same.
12651 (debug_objcopy): Same.
12654 * opts.c (print_specific_help): Same.
12655 (parse_no_sanitize_attribute): Same.
12656 (print_help): Same.
12657 (handle_param): Same.
12658 * plugin.c (add_new_plugin): Same.
12659 (parse_plugin_arg_opt): Same.
12660 (try_init_one_plugin): Same.
12661 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12662 operators, and types in diagnostics. Correct quoting and spelling
12664 * read-rtl-function.c (parse_edge_flag_token): Same.
12665 (function_reader::parse_enum_value): Same.
12666 * reg-stack.c (check_asm_stack_operands): Same.
12667 * regcprop.c (validate_value_data): Same.
12668 * sched-rgn.c (make_pass_sched_fusion): Same.
12669 * stmt.c (check_unique_operand_names): Same.
12670 * targhooks.c (default_target_option_pragma_parse): Same.
12671 * tlink.c (recompile_files): Same.
12672 * toplev.c (process_options): Same.
12673 (do_compile): Same.
12674 * trans-mem.c (diagnose_tm_1): Same.
12675 (ipa_tm_scan_irr_block): Same.
12676 (ipa_tm_diagnose_transaction): Same.
12677 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12678 format a tree code name in a diagnostic.
12679 (verify_types_in_gimple_min_lval): Same.
12680 (verify_types_in_gimple_reference): Same.
12681 (verify_gimple_call): Same.
12682 (verify_gimple_assign_unary): Same.
12683 (verify_gimple_assign_binary): Same.
12684 (verify_gimple_assign_ternary): Same.
12685 (verify_gimple_assign_single): Same.
12686 (verify_gimple_switch): Same.
12687 (verify_gimple_label): Same.
12688 (verify_gimple_phi): Same.
12689 (verify_gimple_in_seq): Same.
12690 (verify_eh_throw_stmt_node): Same.
12691 (collect_subblocks): Same.
12692 (gimple_verify_flow_info): Same.
12693 (do_warn_unused_result): Same.
12694 * tree-inline.c (expand_call_inline): Same.
12695 * tree-into-ssa.c (update_ssa): Same.
12696 * tree.c (tree_int_cst_elt_check_failed): Same.
12697 (tree_vec_elt_check_failed): Same.
12698 (omp_clause_operand_check_failed): Same.
12699 (verify_type_variant): Same.
12700 (verify_type): Same.
12701 * value-prof.c (verify_histograms): Same.
12702 * varasm.c (assemble_start_function): Same.
12704 2019-05-16 Martin Sebor <msebor@redhat.com>
12706 * config/i386/i386-expand.c (get_element_number): Quote keywords
12707 and other internal names in diagnostics. Adjust other diagnostic
12708 formatting issues noted by -Wformat-diag.
12709 * config/i386/i386-features.c
12710 (ix86_mangle_function_version_assembler_name): Same.
12711 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12712 * config/i386/i386.c (ix86_function_type_abi): Same.
12713 (ix86_function_ms_hook_prologue): Same.
12714 (classify_argument): Same.
12715 (ix86_expand_prologue): Same.
12716 (ix86_md_asm_adjust): Same.
12717 (ix86_memmodel_check): Same.
12719 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12721 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12722 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12725 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12728 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12729 intrinsics without SSE/SSE2/SSSE3.
12730 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12732 (*mmx_uavgv8qi3): Likewise.
12734 2019-05-17 Richard Biener <rguenther@suse.de>
12736 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12737 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12739 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12741 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12742 vec_sldw insn pattern.
12744 2019-05-17 Richard Biener <rguenther@suse.de>
12746 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12748 2019-05-17 Martin Liska <mliska@suse.cz>
12751 * toplev.c (output_stack_usage): With LTO and sanitizer it
12752 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12753 has no file location.
12755 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12758 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12759 sz0 is equal to sz1, instead return false in that case.
12761 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12762 has non-constant expression, force sctx.lane and use two
12763 argument IFN_GOMP_SIMD_LANE instead of single argument.
12764 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12765 two argument IFN_GOMP_SIMD_LANE without lhs.
12766 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12768 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12770 (LOOP_REQUIRES_VERSIONING): Or in
12771 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12772 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12774 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12775 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12776 from simd if clause if needed.
12778 2019-05-16 Richard Biener <rguenther@suse.de>
12780 * tree-affine.c (expr_to_aff_combination): New function split
12782 (tree_to_aff_combination): ... here.
12783 (aff_combination_expand): Avoid building a GENERIC tree.
12785 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12787 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12788 assemble_start_function and assemble_end_function calls.
12789 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12790 assemble_start_function and assemble_end_function.
12791 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12792 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12793 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12794 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12795 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12796 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12797 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12798 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12799 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12800 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12801 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12802 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12804 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12805 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12806 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12807 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12808 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12809 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12810 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12811 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12812 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12813 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12814 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12815 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12816 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12817 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12819 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12820 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12821 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12823 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12825 * tree-ssa-alias.c (alias_stats): Add
12826 aliasing_component_refs_p_may_alias and
12827 aliasing_component_refs_p_no_alias.
12828 (dump_alias_stats): Print aliasing_component_refs_p stats.
12829 (aliasing_component_refs_p): Update stats.
12831 2019-05-16 Martin Liska <mliska@suse.cz>
12834 * multiple_target.c (expand_target_clones): Do not allow
12835 target_clones being used with a symbol that is an alias.
12837 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12839 PR tree-optimization/90394
12840 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12841 positives rather than ICE for cases where (code2 == NE_EXPR
12842 && code1 == BIT_AND_EXPR).
12844 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12847 * tree-core.h (struct tree_decl_common): Document
12848 decl_nonshareable_flag for PARM_DECLs.
12849 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12850 * calls.c (expand_call): Don't try tail call if caller
12851 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12852 passed on the stack and callee needs to pass any arguments on the
12854 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12855 else if instead of series of mutually exclusive ifs. Handle
12856 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12857 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12859 * lto-streamer.h (LTO_major_version): Bump to 9.
12861 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12863 PR tree-optimization/90106
12864 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12865 new parameter as new internal function call, also move it to new
12867 (use_internal_fn): Pass internal function call to
12868 shrink_wrap_one_built_in_call_with_conds.
12870 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12872 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12874 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12875 safelen_int and set loop->dont_vectorize.
12877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12880 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12882 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12884 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12885 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12886 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12892 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12893 define_insn_and_split to support SSE emulation.
12894 (*vec_extractv2sf_0): Likewise.
12895 (*vec_extractv2sf_1): Likewise.
12896 (*vec_extractv2si_0): Likewise.
12897 (*vec_extractv2si_1): Likewise.
12898 (*vec_extractv2si_zext_mem): Likewise.
12899 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12900 (vec_extractv2sf_1 splitter): Likewise.
12901 (vec_extractv2sfsf): Likewise.
12902 (vec_setv2si): Likewise.
12903 (vec_extractv2si_1 splitter): Likewise.
12904 (vec_extractv2sisi): Likewise.
12905 (vec_setv4hi): Likewise.
12906 (vec_extractv4hihi): Likewise.
12907 (vec_setv8qi): Likewise.
12908 (vec_extractv8qiqi): Likewise.
12909 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12910 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12911 (vec_extractv2sisi): Likewise.
12912 (vec_extractv4hihi): Likewise.
12913 (vec_extractv8qiqi): Likewise.
12914 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12915 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12916 (vec_initv2sisi): Likewise.
12917 (vec_initv4hihi): Likewise.
12918 (vec_initv8qiqi): Likewise.
12919 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12920 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12921 (vec_setv4hi): Likewise.
12922 (vec_setv8qi): Likewise.
12924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12927 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12928 TARGET_MMX_WITH_SSE.
12929 (MMXMODE:*mov<mode>_internal): Likewise.
12930 (MMXMODE:movmisalign<mode>): Likewise.
12932 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12935 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12936 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12937 (sse2_cvtpd2pi): Ditto.
12938 (sse2_cvttpd2pi): Ditto.
12939 (*vec_concatv2sf_sse4_1): Ditto.
12940 (*vec_concatv2sf_sse): Ditto.
12941 (*vec_concatv2si_sse4_1): Ditto.
12942 (*vec_concatv2si): Ditto.
12943 (*vec_concatv4si_0): Ditto.
12944 (*vec_concatv2di_0): Ditto.
12946 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12949 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12954 * config/i386/sse.md (ssse3_palignrdi): Changed to
12955 define_insn_and_split to support SSE emulation.
12957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12960 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12962 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12965 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12966 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12969 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12972 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12973 or TARGET_MMX_WITH_SSE.
12974 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12976 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12979 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12984 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12985 Changed to define_insn_and_split to support SSE emulation.
12987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12990 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12991 Changed to define_insn_and_split to support SSE emulation.
12993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12996 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12997 (*mmx_<emms>): This.
12998 (mmx_<emms>): New expander.
13000 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13003 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
13005 (*sse2_umulv1siv1di3): Add SSE2 emulation.
13007 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13010 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
13012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13015 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
13017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13020 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
13021 TARGET_MMX_WITH_SSE.
13022 (*mmx_uavgv4hi3): Add SSE emulation.
13024 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13027 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
13028 and TARGET_MMX_WITH_SSE.
13029 (*mmx_uavgv8qi3): Add SSE emulation.
13031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13034 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
13035 maskmovdqu for __MMX_WITH_SSE__.
13037 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13040 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
13041 TARGET_MMX and TARGET_MMX_WITH_SSE.
13042 (*mmx_umulv4hi3_highpart): Add SSE emulation.
13044 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13047 * config/i386/mmx.md (mmx_pmovmskb): Changed to
13048 define_insn_and_split to support SSE emulation.
13050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13053 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
13054 and TARGET_MMX_WITH_SSE.
13055 (mmx_<code>v8qi3): Likewise.
13056 (smaxmin:<code>v4hi3): New.
13057 (umaxmin:<code>v8qi3): Likewise.
13058 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
13059 (umaxmin:*mmx_<code>v8qi3): Likewise.
13061 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13064 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
13065 TARGET_MMX_WITH_SSE.
13066 (*mmx_pinsrw): Add SSE emulation.
13068 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13071 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
13073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13076 * config/i386/sse.md (sse_cvtpi2ps): Changed to
13077 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13080 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13083 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
13084 (sse_cvttps2pi): Likewise.
13086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13089 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
13090 TARGET_MMX_WITH_SSE.
13091 (mmx_pshufw_1): Add SSE emulation.
13092 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
13093 TARGET_MMX_WITH_SSE to support SSE emulation.
13095 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13098 * config/i386/constraints.md (Yw): New constraint.
13099 * config/i386/mmx.md (*vec_dupv2si): Changed to
13100 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
13101 support SSE emulation.
13103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13106 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
13107 TARGET_MMX_WITH_SSE.
13108 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13110 (mmx_gt<mode>3): Likewise.
13112 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13115 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
13116 TARGET_MMX_WITH_SSE. Add SSE support.
13118 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13121 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
13122 TARGET_MMX_WITH_SSE.
13123 (any_logic:<code><mode>3): New.
13124 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
13127 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13130 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
13131 TARGET_MMX_WITH_SSE. Add SSE emulation.
13132 (mmx_<shift_insn><mode>3): Likewise.
13133 (ashr<mode>3): New.
13134 (<shift_insn><mode>3): Likewise.
13136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13139 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
13140 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
13142 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13145 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
13146 TARGET_MMX_WITH_SSE.
13147 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
13150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13153 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
13154 TARGET_MMX_WITH_SSE.
13156 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13162 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
13163 (plusminus:mmx_<plusminus_insn><mode>3): Check
13164 TARGET_MMX_WITH_SSE.
13165 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
13166 (<plusminus_insn><mode>3): New.
13167 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
13168 (*mmx_<plusminus_insn><mode>3): Likewise.
13170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13173 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
13174 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
13176 * config/i386/mmx.m (mmx_punpckhbw): Changed to
13177 define_insn_and_split to support SSE emulation.
13178 (mmx_punpcklbw): Likewise.
13179 (mmx_punpckhwd): Likewise.
13180 (mmx_punpcklwd): Likewise.
13181 (mmx_punpckhdq): Likewise.
13182 (mmx_punpckldq): Likewise.
13184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13185 Uros Bizjak <ubizjak@gmail.com>
13188 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
13190 (ix86_split_mmx_pack): Likewise.
13191 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
13193 (ix86_split_mmx_pack): Likewise.
13194 * config/i386/i386.md (mmx_isa): New.
13195 (enabled): Also check mmx_isa.
13196 * config/i386/mmx.md (any_s_truncate): New code iterator.
13197 (s_trunsuffix): New code attr.
13198 (mmx_packsswb): Removed.
13199 (mmx_packssdw): Likewise.
13200 (mmx_packuswb): Likewise.
13201 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
13202 MMX packsswb/packuswb with SSE2.
13203 (mmx_packssdw): Likewise.
13204 * config/i386/predicates.md (register_mmxmem_operand): New.
13206 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13209 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13210 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
13211 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
13212 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
13213 (ix86_vector_mode_supported_p): Likewise.
13214 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
13216 2019-05-15 Martin Liska <mliska@suse.cz>
13218 PR middle-end/90478
13219 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13220 Check for overflow.
13222 2019-05-15 Richard Biener <rguenther@suse.de>
13224 * tree-into-ssa.c (pass_build_ssa::execute): Run
13225 update_address_taken before going into SSA.
13227 2019-05-15 Richard Biener <rguenther@suse.de>
13229 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
13230 as __BIT_FIELD_REF with type with -gimple.
13232 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
13234 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
13235 semantically equivalent branches (left over after prior refactorings).
13237 2019-05-15 Richard Biener <rguenther@suse.de>
13239 PR tree-optimization/88828
13240 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
13243 2019-05-14 Richard Biener <rguenther@suse.de>
13245 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
13246 as __VIEW_CONVERT with -gimple.
13248 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13251 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
13254 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13256 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
13257 define_split to become a define_insn_and_split.
13259 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13261 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
13263 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
13264 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
13265 (sibcall_epilogue): Adjust.
13266 (epilogue): Adjust.
13268 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13270 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
13271 to unsupported ones.
13272 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
13273 * config.host: Likewise.
13274 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
13275 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
13276 __svr4__]: Remove "brand" fallback.
13277 [!KSTAT_DATA_STRING]: Remove.
13278 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
13280 (comdat_group): Likewise.
13281 (set_have_as_tls): Likewise.
13282 (gcc_cv_target_dl_iterate_phdr): Likewise.
13283 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
13284 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
13285 * configure: Regenerate.
13286 * doc/install.texi: Simplify Solaris target triplets.
13287 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
13288 (Specific, *-*-solaris2*): Document Solaris 10 removal.
13289 Remove Solaris 10 references.
13290 Remove obsolete Solaris bug reference.
13291 (Specific, sparc-sun-solaris2.10): Remove.
13293 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
13295 * config/i386/i386.md (any_div): New code iterator.
13296 (paired_mod): New code attribute.
13297 (sgnprefix): Handle DIV and UDIV RTXes.
13299 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
13300 and udivmod<mode>4 patterns using any_div code iterator.
13301 (divmod splitters): Macroize splitters using any_div code iterator.
13302 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
13303 (*udivmodsi4_pow2_zext_2): Ditto.
13304 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
13305 and *udivmod<mode>4_noext patterns using any_div code iterator.
13306 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
13307 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
13308 patterns using any_div code iterator.
13309 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
13310 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
13311 patterns using any_div code iterator.
13312 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
13313 udivmodhiqi3 patterns using any_extend code iterator.
13315 2019-05-14 Richard Biener <rguenther@suse.de>
13316 H.J. Lu <hongjiu.lu@intel.com>
13318 PR tree-optimization/88828
13319 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
13320 permuting in a single non-constant element not extracted
13323 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13325 * internal-fn.def (SIGNBIT): New.
13326 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
13328 (signbitv4sf2): Likewise.
13330 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
13333 * config/mips/mips.c (mips_split_move): Skip forward SRC into
13334 next insn when the SRC reg is dead.
13336 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
13338 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
13339 (alloc_cand_and_find_basis): Ditto.
13340 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
13341 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
13342 (create_add_imm_cand, slsr_process_cast): Ditto.
13343 (slsr_process_copy, replace_mult_candidate): Ditto.
13344 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13345 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13346 (pass_strength_reduction::execute): Init the first NULL element.
13348 2019-05-13 Nathan Sidwell <nathan@acm.org>
13350 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13351 (run_attempt): Reformat line break.
13353 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
13356 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
13357 data registers in sibcall epilogues.
13358 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13360 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
13363 * configure.ac (--enable-frame-pointer):
13364 Disable by default for cygwin and mingw.
13365 * configure: Regenerate.
13367 2019-05-13 Nathan Sidwell <nathan@acm.org>
13369 * dwarf2out.c (breakout_comdat_types): Move comment to correct
13371 (const_ok_for_output_1): Balance parens around #if/#else/#endif
13372 (gen_member_die): Move abstract origin check earlier. Only VARs
13373 can be static_inline_p. Simplify splicing control flow.
13375 2019-05-13 Richard Biener <rguenther@suse.de>
13377 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
13379 (vect_build_slp_tree_1): Likewise.
13381 2019-05-13 Richard Biener <rguenther@suse.de>
13383 PR tree-optimization/90402
13384 * tree-if-conv.c (tree_if_conversion): Value number only
13385 the loop body by making the latch an exit of the region
13387 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
13389 (do_rpo_vn): Deal with multiple edges into the entry block
13390 that are not backedges inside the region by skipping PHIs
13391 of the entry block.
13393 2019-05-13 Richard Biener <rguenther@suse.de>
13395 PR tree-optimization/90316
13396 * tree-ssa-pre.c (insert_aux): Fold into ...
13397 (insert): ... this function. Use a RPO walk to reduce the
13398 number of required iterations.
13400 2019-05-13 Martin Liska <mliska@suse.cz>
13402 PR tree-optimization/90416
13403 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
13404 string instead of passing the second part as va_arg argument.
13406 2019-05-13 Martin Liska <mliska@suse.cz>
13408 PR gcov-profile/90380
13409 * gcov.c (handle_cycle): Do not support zero cycle count,
13410 it should not be possible.
13411 (path_contains_zero_cycle_arc): New function.
13412 (circuit): Ignore zero cycle arc counts.
13414 2019-05-13 Martin Liska <mliska@suse.cz>
13416 PR gcov-profile/90380
13417 * gcov.c (enum loop_type): Remove the enum and
13419 (handle_cycle): Assert that we should not reach
13421 (circuit): Use loop_found instead of a tri-state loop_type.
13422 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13425 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13428 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13429 (ix86_output_indirect_branch_via_reg): Use output mechanism
13430 accounting for __USER_LABEL_PREFIX__.
13431 (ix86_output_indirect_branch_via_push): Likewise.
13432 (ix86_output_function_return): Likewise.
13433 (ix86_output_indirect_function_return): Likewise.
13435 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13437 * doc/md.texi: Document use of code attributes in rtx patterns.
13438 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13439 * read-rtl.c (find_code): Split out search loops into...
13440 (maybe_find_code): ...this new function.
13441 (check_code_iterator): Make the error message more informative.
13442 (check_code_attribute): New function.
13443 (rtx_reader::rtx_alloc_for_name): Likewise.
13444 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13445 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13446 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13447 <max_opp> directly as an rtx code instead of via a match_operator.
13448 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13449 (<su>abd<mode>_3): Update accordingly.
13451 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13453 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13454 is given, print the state of the EH "save world" computation for
13457 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13460 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13461 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13463 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13465 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13466 Use pinsrd for TARGET_SSE4_1.
13467 * config/i386/sse.md (movdi_to_sse): Ditto.
13469 2019-05-10 Richard Biener <rguenther@suse.de>
13471 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13472 (do_rpo_vn): Initialize next_value_id.
13474 2019-05-10 Martin Liska <mliska@suse.cz>
13476 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13479 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13481 PR tree-optimization/90385
13482 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13483 arguments of the exit phis.
13486 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13487 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13489 (copy_tree_body_r): Likewise.
13490 (copy_fn): Set id.do_not_fold to true.
13492 2019-05-10 Martin Liska <mliska@suse.cz>
13494 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13495 Reapply changes from r269790.
13497 2019-05-10 Martin Liska <mliska@suse.cz>
13499 PR middle-end/90340
13500 * doc/invoke.texi: New params.
13501 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13502 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13503 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13505 * tree-switch-conversion.h (struct jump_table_cluster):
13508 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13510 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13512 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13514 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13516 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13518 PR rtl-optimization/88879
13519 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13521 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13524 * config/arm/arm.c (callee_saved_reg_p): Move before
13525 thumb_find_work_register.
13526 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13527 thumb_find_work_register. Only call df_get_live_out once.
13528 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13529 (thumb_find_work_register): Use
13530 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13531 algorithms to locate a spare call clobbered reg.
13533 2019-05-09 Martin Liska <mliska@suse.cz>
13535 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13536 and MAX_EXPR in GIMPLE FE format.
13538 2019-05-09 Martin Liska <mliska@suse.cz>
13540 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13541 * gimple-pretty-print.c (dump_gimple_bb_header):
13543 (pp_cfg_jump): Dump edge probability.
13544 * profile-count.c (profile_quality_as_string): Simplify
13545 with a static array.
13546 (parse_profile_quality): New function.
13547 (profile_count::dump): Simplify with a static array.
13548 (profile_count::from_gcov_type): Add new argument.
13549 * profile-count.h (parse_profile_quality): Likewise.
13550 * predict.h (set_hot_bb_threshold): New.
13551 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13553 * predict.c (get_hot_bb_threshold): Set from the new param.
13554 (set_hot_bb_threshold): New.
13556 2019-05-09 Richard Biener <rguenther@suse.de>
13558 PR tree-optimization/90395
13559 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13560 rewrite vector stores that throw internally.
13562 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13564 * cif-code.def (CHKP): Remove.
13567 * configure.ac (--enable-frame-pointer): Disable by default for
13569 * configure: Regenerate.
13571 2019-05-09 Alan Modra <amodra@gmail.com>
13574 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13575 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13576 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13577 cost for general <-> vsx when direct moves are available.
13578 Cost union classes at minimal cost for any reg in the class.
13579 Correct calculation for moves between vsx, float, and altivec.
13580 Don't return a low cost for moves between special regs. Don't
13581 use hard coded register numbers.
13582 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13583 (rs6000_ira_change_pseudo_allocno_class): New function.
13584 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13585 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13587 (movsi_internal1): Don't disparage vector alternatives.
13588 (mov<mode>_internal): Likewise, excepting alternative that
13590 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13591 we <- b alternative.
13593 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13596 PR tree-optimization/89060
13597 * tree-ssa-live.h (live_vars_map): New typedef.
13598 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13599 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13600 (struct compute_live_vars_data): New type.
13601 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13602 live_vars_at_stmt, destroy_live_vars): New functions.
13603 * tree-tailcall.c: Include tree-ssa-live.h.
13604 (live_vars, live_vars_vec): New global variables.
13605 (find_tail_calls): Perform variable life analysis before punting.
13606 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13607 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13609 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13610 Perform variable life analysis to select variables that really need
13612 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13613 instead set id->eh_landing_pad_dest and assert it is the same.
13614 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13616 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13617 Richard Earnshaw <rearnsha@arm.com>
13620 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13622 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13623 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13624 register if both the epilogue and prologue can use call-clobbered
13626 (thumb1_unexpanded_epilogue): Use
13627 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13628 picking temporaries for restoring high regs to match that of the
13629 prologue where possible.
13630 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13631 the list of work registers. Detect if the return address is still live
13632 at the end of the prologue and avoid using it for a work register if so.
13633 If the return address is not live, add LR to the list of pushable regs
13634 after the first pass.
13636 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13638 PR tree-optimization/90078
13639 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13640 (INFTY): Increase the value for infinite cost.
13641 (struct comp_cost): Promote type of members to int64_t.
13642 (infinite_cost): Don't set complexity in initialization.
13643 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13644 overflows to infinite_cost.
13645 (adjust_setup_cost): Promote type of parameter and cost computation
13647 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13649 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13650 cost computation to int64_t.
13651 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13652 int64_t's format specifier in dump.
13654 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13656 PR tree-optimization/90240
13657 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13658 with respect to scaling factor pre-computed for each basic block.
13659 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13660 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13661 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13662 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13663 live range for array of loop's basic blocks. Cleanup aux field of
13664 loop's basic blocks.
13666 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13668 PR tree-optimization/90356
13669 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13671 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13673 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13674 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13675 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13676 (ix86_handle_option): Handle -mavx512bf16.
13677 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13679 * config/i386/avx512bf16vlintrin.h: New.
13680 * config/i386/avx512bf16intrin.h: New.
13681 * config/i386/cpuid.h (bit_AVX512BF16): New.
13682 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13683 * config/i386/i386-builtin-types.def: Add new types.
13684 * config/i386/i386-builtin.def: Add new builtins.
13685 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13687 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13688 (ix86_option_override_internal): Handle BF16.
13689 (ix86_valid_target_attribute_inner_p): Ditto.
13690 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13691 * config/i386/i386-builtin.c (enum processor_features): Add
13693 (static const _isa_names_table isa_names_table): Ditto.
13694 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13695 (PTA_AVX512BF16): Ditto.
13696 * config/i386/i386.opt: Add -mavx512bf16.
13697 * config/i386/immintrin.h: Include avx512bf16intrin.h
13698 and avx512bf16vlintrin.h.
13699 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13700 avx512f_cvtneps2bf16_<mode><mask_name>,
13701 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13702 * config/i386/subst.md (mask_half): Add new subst.
13703 * doc/invoke.texi: Document -mavx512bf16.
13705 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13707 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13708 Delete declaration.
13709 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13710 (rs6000_debug_legitimize_reload_address): Delete.
13711 (rs6000_legitimize_reload_address_ptr): Delete.
13712 (rs6000_option_override_internal): Adjust.
13713 (mem_operand_gpr): Adjust comment.
13714 (legitimate_lo_sum_address_p): Ditto.
13715 (rs6000_legitimize_reload_address): Delete.
13716 (rs6000_debug_legitimize_reload_address): Delete.
13717 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13719 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13722 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13723 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13724 to compute vector element selector for both constant and variable
13727 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13729 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13730 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13731 ashrdi3_cvt using SWI48 mode iterator.
13733 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13735 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13736 (aarch64_<su>abd<mode>_3): Likewise.
13737 (*aarch64_<su>abd<mode>_3): New define_insn.
13738 (<sur>sad<vsi2qi>): New define_expand.
13739 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13740 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13741 (build_vect_cond_expr): Likewise.
13743 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13745 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13746 clobbers outside of accessible_reg_set.
13747 * config/i386/i386.c (ix86_conditional_register_usage):
13748 Disable register sets by clearing corresponding bits in
13749 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13750 call_used_regs and don't clear corresponding reg_names array members.
13752 2019-05-07 Richard Biener <rguenther@suse.de>
13754 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13755 not specified still compute a comp_vectype for invariant
13758 2019-05-07 Richard Biener <rguenther@suse.de>
13760 PR tree-optimization/90316
13761 * tree-ssa-pre.c (translate_vuse_through_block): When
13762 same_valid is NULL do not bother to search for a virtual
13764 (phi_translate_1): When operands changed we cannot keep
13765 the same value-number so do not bother to ask whether
13766 that's possible from translate_vuse_through_block.
13768 2019-05-07 Martin Liska <mliska@suse.cz>
13770 * bitmap.c (bitmap_register): Come up with
13771 alloc_descriptor_max_uid and assign it for
13773 (register_overhead): Use get_descriptor as
13775 (release_overhead): New.
13776 (bitmap_elem_to_freelist): Call it.
13777 (bitmap_elt_clear_from): Likewise.
13778 (bitmap_obstack_free): Likewise.
13779 (bitmap_move): Sensitively release memory.
13780 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13781 (bitmap_initialize): Initialize alloc_descriptor to zero.
13782 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13784 2019-05-07 Richard Biener <rguenther@suse.de>
13786 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13787 we build a SLP node. Remove max_size and limiting.
13788 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13790 2019-05-07 Richard Biener <rguenther@suse.de>
13792 PR tree-optimization/90316
13793 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13794 limit by reference.
13795 (walk_non_aliased_vuses): Take walking limit argument.
13796 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13797 walking if it is reached instead of just counting.
13798 (get_continuation_for_phi): Likewise.
13799 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13800 limiting to the callback.
13801 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13802 (vn_reference_lookup_3): Likewise.
13803 (vn_reference_lookup_pieces): Likewise.
13804 (vn_reference_lookup): Likewise.
13805 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13806 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13807 (avail_exprs_stack::lookup_avail_expr): Likewise.
13809 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13811 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13812 for comparaible types in the second direction even if first one
13813 hits incomparable type.
13815 2019-05-07 Richard Biener <rguenther@suse.de>
13818 * lto-wrapper.c (debug_objcopy): Use the original filename
13819 including archive offset for the filename used for -save-temps.
13821 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13823 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13826 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13827 Hongtao Liu <hongtao.liu@intel.com>
13831 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13832 Modified, original implementation isn't correct.
13834 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13836 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13837 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13838 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13839 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13840 (FRAME_POINTER_REGNUM): Change numbering.
13841 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13842 (alt_reg_names): Adjust.
13843 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13845 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13846 (DWARF_FRAME_REGISTERS): Delete.
13847 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13848 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13850 (REG_ALLOC_ORDER): Adjust.
13851 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13852 (REG_CLASS_CONTENTS): Adjust.
13853 (RETURN_ADDR_RTX): Change comment.
13854 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13856 (REGISTER_NAMES): Adjust.
13857 (ADDITIONAL_REGISTER_NAMES): Adjust.
13858 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13860 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13862 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13864 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13865 (DWARF_FRAME_REGISTERS): Adjust.
13866 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13868 (REG_ALLOC_ORDER): Adjust.
13869 (enum reg_class): Delete SPR_REGS.
13870 (REG_CLASS_NAMES): Delete SPR_REGS.
13871 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13872 (REGISTER_NAMES): Adjust.
13873 (ADDITIONAL_REGISTER_NAMES): Adjust.
13874 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13875 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13876 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13877 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13878 (htm_spr_regno): Delete.
13879 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13881 (rs6000_dbx_register_number): Adjust.
13883 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13885 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13887 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13889 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13890 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13892 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13894 PR tree-optimization/88709
13895 PR tree-optimization/90271
13896 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13897 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13898 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13900 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13901 of the store merging group is larger than
13902 PARAM_STORE_MERGING_MAX_SIZE parameter.
13903 (split_group): Add bzero_first argument. If set, always emit first
13904 the first store which must be = {} of the whole area and then for the
13905 rest of the stores consider all zero bytes as paddings.
13906 (imm_store_chain_info::output_merged_store): Check if first store
13907 is = {} of the whole area and if yes, determine which setting of
13908 bzero_first for split_group gives smaller number of stores. Adjust
13909 split_group callers.
13910 (lhs_valid_for_store_merging_p): Allow decls.
13911 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13913 (pass_store_merging::process_store): Likewise.
13915 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13918 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13919 handling of V1TImode.
13921 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13924 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13925 and enable_frame_pointer ...
13926 * configure.ac: ... here. Update help strings for
13927 --enable-frame-pointer.
13928 * configure: Regenerate.
13929 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13930 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13931 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13932 (USE_X86_64_FRAME_POINTER): Ditto.
13934 2019-05-06 Martin Liska <mliska@suse.cz>
13936 * config.gcc: Append to target_gtfiles and fix indentation.
13938 2019-05-06 Richard Biener <rguenther@suse.de>
13940 PR tree-optimization/90358
13941 * tree-vect-stmts.c (get_group_load_store_type): Properly
13942 detect unused upper half of load.
13943 (vectorizable_load): Likewise.
13945 2019-05-06 Richard Biener <rguenther@suse.de>
13947 PR tree-optimization/88828
13948 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13949 (simplify_vector_constructor): ...here. Handle constants in
13952 2019-05-06 Richard Biener <rguenther@suse.de>
13954 PR tree-optimization/90328
13955 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13956 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13957 is valid in the loop nest before using it.
13958 (initialize_data_dependence_relation): Adjust.
13959 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13960 loop as loop-nest to dr_may_alias_p.
13962 2019-05-06 Richard Biener <rguenther@suse.de>
13964 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13966 2019-05-06 Richard Biener <rguenther@suse.de>
13968 PR tree-optimization/90316
13969 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13970 compute target on demand.
13971 (get_continuation_for_phi): Remove code walking stmts to
13972 get to a target virtual operand which could end up being
13975 2019-05-06 Martin Liska <mliska@suse.cz>
13978 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13979 when -mabi is selected to a non-default version.
13981 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13982 Martin Liska <mliska@suse.cz>
13984 * Makefile.in: Add lto-dump.texi.
13985 * cgraph.h: Add new functions get_visibility_string and
13986 get_symtab_type_string.
13987 * doc/gcc.texi: Include lto-dump section.
13988 * doc/lto-dump.texi: New file.
13989 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13990 (parse_dump_option): Factor out this function.
13991 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13992 (parse_dump_option): Export the function.
13993 * symtab.c (symtab_node::get_visibility_string): New function.
13994 (symtab_node::get_symtab_type_string): Likewise.
13996 2019-05-06 Martin Liska <mliska@suse.cz>
13998 * config/i386/i386-builtins.c: New file.
13999 * config/i386/i386-builtins.h: New file.
14000 * config/i386/i386-expand.c: New file.
14001 * config/i386/i386-expand.h: New file.
14002 * config/i386/i386-features.c: New file.
14003 * config/i386/i386-features.h: New file.
14004 * config/i386/i386-options.c: New file.
14005 * config/i386/i386-options.h: New file.
14006 * config.gcc: Add new files into extra_objs and
14008 * config/i386/i386.c: Split content of the file
14009 into newly introduced files.
14010 * config/i386/i386.h: Declare common variables
14012 * config/i386/t-i386: Define dependencies for new files.
14014 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
14017 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
14018 Restrict 'all' variant to 32-bit configurations.
14019 (unaligned_loadhiu): Likewise.
14020 (unaligned_storehi): Likewise.
14021 (unaligned_storesi): Likewise.
14022 (unaligned_loadhis): Disable when compiling for thumb1.
14024 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
14026 PR tree-optimization/90269
14027 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
14030 2019-05-03 Martin Liska <mliska@suse.cz>
14032 * hash-map.h: Add is_empty function.
14033 * hash-set.h: Likewise.
14034 * hash-table.h: Likewise.
14035 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
14036 elements () == 0 (and similar usages).
14037 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
14038 * gimplify.c (gimplify_bind_expr): Likewise.
14039 (gimplify_switch_expr): Likewise.
14040 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
14041 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
14042 * postreload-gcse.c (dump_hash_table): Likewise.
14043 (gcse_after_reload_main): Likewise.
14044 * predict.c (combine_predictions_for_bb): Likewise.
14045 * tree-parloops.c (reduction_phi): Likewise.
14046 (separate_decls_in_region): Likewise.
14047 (transform_to_exit_first_loop): Likewise.
14048 (gen_parallel_loop): Likewise.
14049 (gather_scalar_reductions): Likewise.
14050 (try_create_reduction_list): Likewise.
14051 * var-tracking.c (dump_vars): Likewise.
14052 (emit_notes_for_changes): Likewise.
14053 (vt_emit_notes): Likewise.
14055 2019-05-03 Richard Biener <rguenther@suse.de>
14057 PR tree-optimization/90316
14058 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
14061 2019-05-03 Richard Biener <rguenther@suse.de>
14063 * tree-vect-stmts.c (get_group_load_store_type): Avoid
14064 peeling for gaps by loading only lower halves of vectors
14066 (vectorizable_load): Likewise.
14068 2019-05-03 Richard Biener <rguenther@suse.de>
14070 PR middle-end/89518
14071 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
14073 2019-05-03 Richard Biener <rguenther@suse.de>
14075 PR middle-end/87314
14076 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
14077 Handle STRING_CST vs DECL or STRING_CST.
14079 2019-05-03 Richard Biener <rguenther@suse.de>
14081 PR tree-optimization/88963
14082 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
14083 vector loads feeding only BIT_FIELD_REFs to component
14084 loads. Rewrite stores fed by CONSTRUCTORs to component
14087 2019-05-03 Jakub Jelinek <jakub@redhat.com>
14089 * opts.h (finish_options): Remove lang_mask argument.
14090 (print_help, help_option_argument): Declare.
14091 * opts.c (print_help): Remove forward declaration, no longer static.
14092 (finish_options): Remove lang_mask argument, don't call print_help
14094 * opts-global.c (decode_options): Adjust finish_option caller, call
14097 PR tree-optimization/90303
14098 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
14099 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
14101 2019-05-03 Richard Biener <rguenther@suse.de>
14103 PR tree-optimization/89698
14104 * gimple-fold.c (canonicalize_constructor_val): Early out
14105 for constants, handle unfolded INTEGER_CSTs as they appear in
14106 C++ virtual table ctors.
14108 2019-05-03 Richard Biener <rguenther@suse.de>
14110 * passes.c (execute_function_todo): Remove dead code.
14112 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14114 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
14115 the internal register number, for any "real" register.
14117 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14119 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
14120 correct numbers for TFHAR, TFIAR, TEXASR.
14122 2019-05-02 Richard Biener <rguenther@suse.de>
14124 PR tree-optimization/89653
14125 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
14126 update-address-taken before the pass.
14127 * passes.def (pass_tree_loop_init): Put comment before it.
14129 2019-05-02 Richard Biener <rguenther@suse.de>
14131 PR tree-optimization/89509
14132 * tree-ssa-structalias.c (compute_dependence_clique): Look
14133 at the first subvar when determining whether it is restrict.
14135 2019-05-02 Richard Biener <rguenther@suse.de>
14137 PR tree-optimization/90273
14138 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
14139 useless debug stmts.
14141 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14143 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
14145 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
14147 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
14148 VEC_COND_EXPR be inserted to emulate a conditional internal function.
14149 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
14150 (vectorizable_reduction): Use the functions above to vectorize in a
14151 fully masked loop codes that don't have a conditional internal
14154 2019-05-02 Martin Liska <mliska@suse.cz>
14156 * cgraphclones.c: Call valid_attribute_p with 1 for
14158 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
14159 it's for target attribute.
14160 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
14161 Add new boolean argument.
14162 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
14164 (ix86_valid_target_attribute_tree): Pass target_clone_attr
14165 to ix86_valid_target_attribute_inner_p.
14166 (ix86_valid_target_attribute_p): Pass flags argument to
14167 ix86_valid_target_attribute_inner_p.
14168 (get_builtin_code_for_version): Use 0 as it's target attribute.
14170 2019-05-02 Martin Liska <mliska@suse.cz>
14172 * gcc.c (process_command): Add dummy file only
14174 * opts-global.c (decode_options): Pass lang_mask.
14175 * opts.c (print_help): New function.
14176 (finish_options): Print --help if help_option_argument
14178 (common_handle_option): Factor out content of OPT__help_
14180 * opts.h (finish_options): Add new argument.
14182 2019-05-02 Martin Liska <mliska@suse.cz>
14185 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
14186 With -minline-all-stringops use inline expansion using 4B loop.
14187 * doc/invoke.texi: Document the change of
14188 -minline-all-stringops.
14190 2019-05-01 Jeff Law <law@redhat.com>
14192 PR tree-optimization/88797
14193 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
14194 PHI feeds a conditional on the RHS of an assignment.
14196 2019-04-30 Andrew Waterman <andrew@sifive.com>
14197 Jim Wilson <jimw@sifive.com>
14199 * config/riscv/constraints.md (L): New.
14200 * config/riscv/predicates.md (lui_operand): New.
14201 (sfb_alu_operand): New.
14202 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
14203 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
14204 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
14205 * config/riscv/risc.md (type): Add sfb_alu.
14206 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
14207 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
14208 (branch_zero<mode>): Delete.
14209 (mov<mode>cc): New.
14210 (mov<GPR:mode><X:mode>cc): Likewise.
14211 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
14213 2019-04-30 Nathan Sidwell <nathan@acm.org>
14215 * tree.h (MARK_TS_EXP): New.
14217 2019-04-30 Martin Liska <mliska@suse.cz>
14219 * opts.c (enable_warning_as_error): Provide hints
14220 for unknown options.
14222 2019-04-30 Martin Liska <mliska@suse.cz>
14225 * doc/invoke.texi: Add missing dash for gas-locview-support
14226 and gno-as-locview-support.
14228 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14231 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
14232 whitespace at the start of target attribute string.
14234 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14237 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14238 Define __ARM_FEATURE_ATOMICS.
14240 2019-04-30 Martin Liska <mliska@suse.cz>
14242 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
14243 into built_in_function enum. Remove code for endp == 2 and
14244 use BUILT_IN_* constants.
14245 (gimple_fold_builtin): Call the function with fcode.
14247 2019-04-30 Martin Liska <mliska@suse.cz>
14249 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
14250 DECL_FUNCTION_CODE into ix86_builtins enum before
14251 the switch statement.
14253 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14255 PR tree-optimization/89475
14256 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
14259 2019-04-30 Martin Liska <mliska@suse.cz>
14261 PR translation/90274
14262 * opts.c (print_filtered_help): Wrap string in _(...).
14264 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
14266 PR tree-optimization/90240
14268 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14270 PR tree-optimization/90078
14271 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14272 checks for infinite_cost overflow.
14274 2019-04-29 Jeff Law <law@redhat.com>
14276 * passes.def: Move -Wrestrict pass after copy propagation.
14278 2019-04-29 Maya Rashish <coypu@sdf.org>
14280 * config.gcc (default_gnu_indirect_function): Default to yes
14281 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
14282 sparc*-*-netbsd*, x86_64-*-netbsd*.
14284 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
14286 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
14287 where cond2 is NE_EXPR.
14288 (is_value_included_in): Update comment.
14290 2019-04-29 Richard Biener <rguenther@suse.de>
14292 PR tree-optimization/90278
14293 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
14294 EH on comparison simplification.
14296 2019-04-29 Jason Merrill <jason@redhat.com>
14298 PR c++/82081 - tail call optimization breaks noexcept
14299 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
14300 nothrow function to a might-throw function into a tail call.
14302 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
14304 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
14305 (DDR_INNER_LOOP): Likewise.
14306 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
14307 (initialize_data_dependence_relation): Likewise.
14308 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
14310 2019-04-29 Jakub Jelinek <jakub@redhat.com>
14312 PR rtl-optimization/90257
14313 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
14317 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14321 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14324 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14327 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14329 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14331 2019-04-29 Richard Biener <rguenther@suse.de>
14333 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
14336 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
14338 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
14339 varasm.h, and netbsd-protos.h.
14341 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
14344 * config/i386/i386-protos.h (ix86_data_alignment): Change
14345 the second argument type to unsigned int.
14346 * config/i386/i386.c (ix86_data_alignment): Change "align"
14347 argument type to unsigned int.
14349 2019-04-27 Martin Liska <mliska@suse.cz>
14351 PR middle-end/90258
14352 * opt-suggestions.c (option_proposer::build_option_suggestions):
14353 When get_valid_option_values returns empty values, add the
14354 misspelling candidate.
14356 2019-04-26 Jim Wilson <jimw@sifive.com>
14358 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
14360 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
14361 Pass orig_mode to riscv_build_integer.
14362 (riscv_split_integer): Pass mode to riscv_move_integer.
14363 (riscv_legitimize_const_move): Likewise.
14364 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
14365 promoted_mode. Replace force_reg call with code to load constant into
14366 promoted reg and then subreg it for the store.
14367 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
14368 riscv_move_integer.
14370 2018-04-26 Eugene Sharygin <eush@ispras.ru>
14372 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
14375 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
14377 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
14378 commentary about the encoding of precision.
14380 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
14382 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
14383 * config/i386/t-freebsd64: New file.
14384 * config.gcc: Add the t-freebsd64 for multilib support.
14386 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
14388 * doc/extend.texi (vector_size): Add missing comma after @xref.
14390 2019-04-25 Jakub Jelinek <jakub@redhat.com>
14392 * BASE-VER: Set to 10.0.0.
14394 2019-04-25 Richard Biener <rguenther@suse.de>
14396 PR middle-end/89765
14397 * gimplify.c (gimplify_expr): Avoid turning a lvalue
14398 VIEW_CONVERT_EXPR into one operating on an rvalue.
14400 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
14403 * config/i386/i386.c (feature_priority): Moved to file scope.
14404 (processor_features): Likewise.
14405 (processor_model): Likewise.
14406 (_arch_names_table): Likewise.
14407 (arch_names_table): Likewise.
14408 (_feature_list): Removed.
14409 (feature_list): Likewise.
14410 (_isa_names_table): Moved to file scope. Add priority.
14411 (isa_names_table): Likewise.
14412 (get_builtin_code_for_version): Replace feature_list with
14413 isa_names_table. Update error message for P_ZERO priority.
14415 2019-04-25 Richard Biener <rguenther@suse.de>
14417 * tree-pass.h (make_pass_phi_only_cprop): Remove.
14418 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
14420 2019-04-24 Jeff Law <law@redhat.com>
14422 PR tree-optimization/90037
14423 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14424 * passes.def: Replace all instance of phi-only cprop with the
14425 lattice propagator. Move propagation pass from after erroneous
14426 path isolation to before erroneous path isolation.
14427 * tree-ssa-phionlycprop.c: Remove.
14429 2019-04-24 Richard Biener <rguenther@suse.de>
14431 PR middle-end/90213
14432 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14433 by size and BITS_PER_UNIT on poly-wide-ints.
14435 2019-04-25 Richard Biener <rguenther@suse.de>
14437 PR middle-end/90194
14438 * match.pd: Add pattern to simplify view-conversion of an
14441 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14443 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14444 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14445 for Go on 32 bit AIX.
14446 * config/rs6000/aix72.h: Likewise.
14448 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14451 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14452 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14454 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14457 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14458 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14459 for restored hard frame pointer.
14460 (s390_sched_dependencies_evaluation): Implement new target hook.
14461 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14463 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14465 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14466 * config/arc/arc.c (arc_init): Cleanup warning message.
14467 (arc_override_options): Likewise.
14469 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14472 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14473 a register if both if_true and if_false are MEMs.
14475 PR tree-optimization/90208
14476 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14477 after labels of new_bb, not before them.
14479 PR tree-optimization/90211
14480 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14481 which are not SSA_NAMEs.
14483 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14485 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14487 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14489 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14491 PR rtl-optimization/87979
14492 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14495 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14497 PR rtl-optimization/84032
14498 * modulo-sched.c (ps_insn_find_column): Change condition so that
14499 branch will always be the last insn in a row inside partial
14502 2019-04-23 Richard Biener <rguenther@suse.de>
14505 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14506 dest_single_pred_p argument.
14507 (remove_forwarder_block): Adjust.
14508 (remove_forwarder_block_with_phi): Likewise.
14510 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14511 Bernd Edlinger <bernd.edlinger@hotmail.de>
14512 Jakub Jelinek <jakub@redhat.com>
14515 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14516 if used with general-regs-only.
14517 (arm_conditional_register_usage): Don't add non-general regs if
14519 (arm_valid_target_attribute_rec): Handle general-regs-only.
14520 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14522 (TARGET_HARD_FLOAT_SUB): Define.
14523 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14524 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14525 (TARGET_REALLY_IWMMXT2): Likewise.
14526 * config/arm/arm.opt: Add -mgeneral-regs-only.
14527 * doc/extend.texi: Document ARM general-regs-only target.
14528 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14530 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14532 PR tree-optimization/90078
14533 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14534 checks for infinite_cost overflow.
14536 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14538 PR tree-optimization/90021
14539 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14540 and check univariate against it.
14541 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14542 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14544 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14548 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14551 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14554 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14556 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14558 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14560 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14561 names using operand format, rather than hard-wired.
14562 (speculation_barrier): Likewise.
14564 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14566 PR tree-optimization/88055
14567 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14568 (gen_one_condition): Use it if !HONOR_NANS.
14570 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14572 PR middle-end/90139
14573 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14574 assign_temp instead of gen_reg_rtx.
14576 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14578 PR translation/90118
14579 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14580 Add missing space before %<.
14582 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14584 PR rtl-optimization/87871
14585 * ira-lives.c (make_object_dead): Don't add conflicts to
14586 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14588 2019-04-18 Martin Sebor <msebor@redhat.com>
14590 PR middle-end/89797
14591 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14592 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14593 assuming type size fits in SHWI.
14595 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14598 * ipa-inline.c (flatten_function): New parameter UPDATE.
14599 (ipa_inline, early_inliner): Use it.
14601 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14603 * fold-const.c (int_const_binop): Return early on failure.
14605 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14607 PR middle-end/85164
14608 * combine.c (force_int_to_mode): Cast the argument rather than
14609 the result of known_alignment.
14610 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14612 2019-04-18 Richard Biener <rguenther@suse.de>
14615 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14617 (remove_forwarder_block): ... here.
14618 (remove_forwarder_block_with_phi): Also move debug stmts here.
14620 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14622 PR translation/79183
14623 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14624 inform where appropriate.
14626 2019-04-18 Richard Biener <rguenther@suse.de>
14628 * tree.c (get_qualified_type): Put found type variants at the
14629 head of the variant list.
14631 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14633 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14635 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14638 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14639 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14640 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14641 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14642 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14644 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14646 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14647 even for allocno's with no conflicts.
14648 (print_conflicts): Print an extra newline.
14650 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14652 * auto-inc-dec.c (attempt_change): Set the alignment of the
14653 temporary memory to that of the original.
14655 2019-04-17 Joao Moreira <jmoreira@suse.de>
14657 * targhooks.c (default_print_patchable_function_entry): Emit
14658 __patchable_function_entries section with writable flags to allow
14659 relocation resolution.
14661 2019-04-17 Jonny Grant <jg@jguk.org>
14663 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14665 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14667 PR middle-end/90095
14668 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14669 on lowpart SUBREGs.
14671 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14673 * config/arc/arc.c (arc_init): Format diagnostic string.
14674 (arc_override_options): Likewise.
14675 (check_if_valid_regno_const): Likewise.
14676 (arc_reorg): Likewise.
14678 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14681 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14683 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14685 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14686 (*movdi_update1): Use Pmode.
14687 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14688 (movdi_<mode>_update_stack): Rename to ...
14689 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14691 (*movsi_update1): Use Pmode.
14692 (*movsi_update2): Use Pmode.
14693 (movsi_update): Rename to ...
14694 (movsi_<mode>_update): ... this. Use Pmode.
14695 (movsi_update_stack): Fix condition.
14696 (*movhi_update1): Use Pmode. Fix argument to
14697 avoiding_indexed_address_p.
14698 (*movhi_update2): Ditto.
14699 (*movhi_update3): Ditto.
14700 (*movhi_update4): Ditto.
14701 (*movqi_update1): Ditto.
14702 (*movqi_update2): Ditto.
14703 (*movqi_update3): Ditto.
14704 (*movsf_update1, *movdf_update1): Merge, rename to...
14705 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14706 avoiding_indexed_address_p. Add "size" attribute.
14707 (*movsf_update2, *movdf_update2): Merge, rename to...
14708 (*mov<mode>_update2): This. Ditto.
14709 (*movsf_update3): Use Pmode. Fix argument to
14710 avoiding_indexed_address_p.
14711 (*movsf_update4): Ditto.
14712 (allocate_stack): Simplify condition. Adjust pattern names.
14714 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14717 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14718 whitespace at the start of target attribute string.
14720 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14723 * config/rs6000/power9.md: Add store forwarding bypass.
14725 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14728 * valtrack.c (dead_debug_insert_temp): Reset debug references
14729 to the return value of a call being removed.
14731 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14733 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14734 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14735 implement target hook.
14736 (arc_memory_move_cost): New function.
14737 (TARGET_REGISTER_MOVE_COST): Define.
14738 (TARGET_MEMORY_MOVE_COST): Likewise.
14739 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14740 (MEMORY_MOVE_COST): Likewise.
14742 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14744 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14745 (sibcall_value_insn): Likewise.
14746 * config/arc/constraints.md (Rs5): Remove.
14748 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14750 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14751 for last two fake registers.
14752 (arc_conditional_register_usage): Make sure fake frame and arg
14753 pointer regs are in general regs class.
14754 (FRAME_POINTER_MASK): Remove.
14755 (RETURN_ADDR_MASK): Remove.
14756 (arc_must_save_register): Use hard frame regnum.
14757 (frame_restore_reg): Use hard_frame_pointer_rtx.
14758 (arc_save_callee_saves): Likewise.
14759 (arc_restore_callee_saves): Likewise.
14760 (arc_save_callee_enter): Likewise.
14761 (arc_restore_callee_leave): Likewise.
14762 (arc_save_callee_milli): Likewise.
14763 (arc_eh_return_address_location): Likewise.
14764 (arc_check_multi): Use hard frame regnum.
14765 (arc_can_eliminate): Likewise.
14766 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14767 for register allocator.
14768 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14769 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14770 (FRAME_POINTER_REGNUM): Change it to a fake register.
14771 (HARD_FRAME_POINTER_REGNUM): Defined.
14772 (ARG_POINTER_REGNUM): Change it to a new fake register.
14773 (ELIMINABLE_REGS): Update.
14774 (REGISTER_NAMES): Update names.
14775 * config/arc/arc.md (LP_START): Remove.
14776 (LP_END): Likewise.
14777 (shift_si3_loop): Update pattern.
14779 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14781 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14782 to avoid delay slot scheduling.
14783 (arc_must_save_register): Don't save SP.
14784 * config/arc/arc.md (stack_tie): Remove.
14785 (UNSPEC_ARC_STKTIE): Likewise.
14787 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14788 Shiva Chen <shiva0217@gmail.com>
14790 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14791 code gen with large shift amount.
14793 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14795 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14798 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14801 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14802 print -m64/-mx32/-m32 if it is true.
14803 (ix86_debug_options, ix86_function_specific_print): Pass true as
14804 ADD_ABI_P to ix86_target_string.
14805 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14806 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14807 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14809 PR rtl-optimization/90082
14810 * dce.c (can_delete_call): New function.
14811 (deletable_insn_p, mark_insn): Use it.
14813 PR tree-optimization/90090
14814 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14816 (is_division_by_square): Likewise. Formatting fix.
14818 2019-04-16 Richard Biener <rguenther@suse.de>
14820 PR tree-optimization/56049
14821 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14822 equality check if alias-set zero will prevail.
14824 2019-04-15 Jeff Law <law@redhat.com>
14826 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14827 size and alignment as unsigned.
14829 2019-04-15 Richard Biener <rguenther@suse.de>
14832 * tree-loop-distribution.c (destroy_loop): Preserve correct
14835 2019-04-15 Richard Biener <rguenther@suse.de>
14837 PR tree-optimization/90071
14838 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14839 abnormal operands from def stmts.
14841 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14843 PR rtl-optimization/89794
14844 * combine.c (count_auto_inc): New function.
14845 (try_combine): Count how many auto_inc expressions there were in the
14846 original instructions. Ensure we have the same number in the new
14847 instructions. Remove the code that tried to ensure auto_inc side
14848 effects on i1 and i0 are not lost.
14850 2019-04-15 Richard Biener <rguenther@suse.de>
14853 * tree.h (auto_var_p): Declare.
14854 * tree.c (auto_var_p): New function, split out from ...
14855 (auto_var_in_fn_p): ... here.
14856 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14858 (new_var_info): Initialize it.
14859 (set_uids_in_ptset): Also set the shadow variable uid if required.
14860 (ipa_pta_execute): Postprocess points-to solutions assigning
14861 shadow variable uids for locals that may reach their containing
14862 function recursively.
14863 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14864 assert but instead check whether the points-to solution is
14867 2019-04-15 Martin Jambor <mjambor@suse.cz>
14870 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14873 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14875 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14877 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14878 Kito Cheng <kito.cheng@gmail.com>
14879 Shiva Chen <shiva0217@gmail.com>
14881 * config/nds32/nds32-md-auxiliary.c
14882 (nds32_legitimize_pic_address): Use new PIC pattern.
14883 (nds32_legitimize_tls_address): Use new TLS pattern.
14884 (nds32_output_symrel): New.
14885 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14886 (nds32_alloc_relax_group_id): Ditto.
14887 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14888 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14890 (nds32_group_tls_insn): Ditto.
14891 (nds32_group_float_insns): Ditto.
14892 * config/nds32/nds32.md (tls_le): New.
14895 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14897 * configure: Add nds32 target for dwarf2 debug_line checking.
14898 * configure.ac: Regenerated.
14900 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14903 * ipa-devirt.c (skip_in_fields_list_p): New.
14904 (odr_types_equivalent_p): Use it.
14906 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14909 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14910 instead of strncmp when checking for thumb and arm. Formatting fixes.
14912 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14914 * doc/install.texi: Document --with-target-system-zlib.
14916 2019-04-12 Martin Sebor <msebor@redhat.com>
14922 * targhooks.c (default_vector_alignment): Avoid assuming
14923 argument fits in SHWI.
14924 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14925 a shift expression.
14926 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14928 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14930 PR rtl-optimization/89965
14931 * dce.c: Include rtl-iter.h.
14932 (struct check_argument_load_data): New type.
14933 (check_argument_load): New function.
14934 (find_call_stack_args): Check for loads from stack slots still tracked
14935 in sp_bytes and punt if any is found.
14937 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14939 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14941 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14942 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14944 2019-04-12 Martin Liska <mliska@suse.cz>
14946 PR middle-end/89970
14947 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14949 (separate_attrs): Handle multiple 'default's.
14950 (expand_target_clones): Rework error handling code.
14952 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14955 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14956 mode of vector rather than mode of destination for move instruction.
14957 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14958 Use QI inner mode with V16QI vector mode.
14960 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14963 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14964 "invalid %%t operand" in output_operand_lossage message.
14966 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14968 * config/s390/predicates.md (permute_pattern_operand): New
14970 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14971 operand for the permute pattern.
14972 ("*vec_perm<mode>"): New insn definition.
14973 ("bswap<mode>"): Generate the permute pattern operand in the
14974 expander and perform the operand reloads for pre arch13 level
14976 ("*bswap<mode>_emu"): Rename to ...
14977 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14978 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14979 Add the USE operand for the permute pattern.
14980 ("*vec_set_bswap_vec<mode>"): Likewise.
14982 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14985 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14986 and gcc_unreachable if it fails, just call tree_to_uhwi which
14987 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14988 Start warning message with a lower-case letter. Formatting fixes.
14990 PR rtl-optimization/90026
14991 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14992 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14993 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14994 in cfglayout mode, use emit_barrier_after_bb.
14996 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14998 PR rtl-optimization/87763
14999 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
15002 2019-04-11 Tom de Vries <tdevries@suse.de>
15004 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
15005 max macro using statement expression.
15007 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
15009 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
15010 * xcoffout.c (xcoff_private_rodata_section_name): Define.
15011 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
15012 read_only_private_data_section using xcoff_private_rodata_section_name.
15013 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
15015 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
15018 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
15020 2019-04-11 Jakub Jelinek <jakub@redhat.com>
15022 PR rtl-optimization/89965
15023 * dce.c (sp_based_mem_offset): New function.
15024 (find_call_stack_args): Use sp_based_mem_offset.
15026 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
15028 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
15030 2019-04-11 Richard Biener <rguenther@suse.de>
15032 PR tree-optimization/90020
15033 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
15034 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
15035 * tree-ssa-pre.c (compute_avail): Use it to not put
15036 possibly trapping references after a call that might not
15037 return into EXP_GEN.
15038 * gcse.c (compute_hash_table_work): Do not elide
15039 marking a block containing a call if the call might not
15042 2019-04-11 Richard Biener <rguenther@suse.de>
15044 PR tree-optimization/90018
15045 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
15046 Test both SLP and interleaving variants.
15048 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
15050 * config/s390/8561.md: New file.
15051 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15052 Add arch13 cpu model.
15053 * config/s390/s390-opts.h (enum processor_type): Likewise.
15054 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
15055 (s390_get_unit_mask): Likewise.
15056 (s390_is_fpd): Likewise.
15057 (s390_is_fxd): Likewise.
15058 * config/s390/s390.h (s390_tune_attr): Likewise.
15059 * config/s390/s390.md: Include arch13 pipeline description.
15060 * config/s390/s390.opt: Add arch13.
15062 2018-04-10 Steve Ellcey <sellcey@marvell.com>
15064 PR rtl-optimization/87763
15065 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
15067 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
15069 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
15071 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
15072 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
15073 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
15074 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
15076 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
15078 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
15079 "Although" in -fipa-icf documentation.
15081 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
15082 of using multiple -g options.
15084 2019-04-10 Martin Liska <mliska@suse.cz>
15086 PR gcov-profile/89959
15087 * doc/gcov.texi: Make documentation of -x option
15090 2019-04-10 Richard Biener <rguenther@suse.de>
15092 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
15094 (DR_GROUP_SAME_DR_STMT): Remove.
15095 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
15096 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
15097 replace with assert.
15098 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
15099 (vect_record_grouped_load_vectors): Remove unreachable code.
15101 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
15104 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
15105 obsolete reference to N.
15107 2019-04-10 Jakub Jelinek <jakub@redhat.com>
15109 PR middle-end/90025
15110 * expr.c (store_expr): Set properly size on the MEM passed to
15114 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
15115 with strlen in between hostsz-3 and hostsz-1 inclusive when no
15116 translation is needed, and when translation is needed, only append
15117 ... if the string length is hostsz or more bytes long. Avoid using
15120 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
15123 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
15124 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
15126 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
15127 differences directly.
15128 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
15130 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15132 PR translation/90011
15133 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15135 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
15137 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15138 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
15139 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
15140 trailing space from -gsplit-dwarf diagnostics.
15142 PR tree-optimization/89998
15143 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
15144 instead of integer_type_node if possible, don't add ranges if return
15145 type is not compatible with int.
15146 * gimple-fold.c (gimple_fold_builtin_sprintf,
15147 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
15150 2019-04-09 Martin Liska <mliska@suse.cz>
15152 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
15153 * doc/install.texi: Document the new config.
15155 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
15157 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
15158 use gimple_expr_type for load and store calls. Skip over the
15159 condition argument in a conditional internal function.
15160 Protect use of TREE_INT_CST_LOW.
15162 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15165 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
15166 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
15167 trailing period from it too.
15169 2019-04-08 wu yuan <wuyuan5@huawei.com>
15171 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
15172 * config/aarch64/aarch64.md : Add "tsv110.md"
15173 * config/aarch64/tsv110.md: New file.
15175 2019-04-08 Richard Biener <rguenther@suse.de>
15177 PR tree-optimization/90006
15178 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15181 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
15184 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
15186 (fma_root_node): Likewise.
15187 (func_fma_steering): Likewise.
15189 2019-04-08 Jakub Jelinek <jakub@redhat.com>
15191 PR rtl-optimization/89865
15192 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
15194 PR rtl-optimization/89865
15195 * config/i386/i386.md
15196 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
15197 numbers not to clash with the additional operands[4].
15198 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
15199 with extra register copy in the middle.
15201 2019-04-08 Martin Liska <mliska@suse.cz>
15203 PR gcov-profile/89961
15204 * doc/gcov.texi: Document data_file.
15205 * gcov.c (generate_results): Add data_info into JSON output.
15207 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
15209 PR tree-optimization/89725
15210 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
15211 loop's chrec as invariant symbol.
15212 * tree-chrec.h (chrec_contains_symbols): New parameter.
15213 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
15214 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
15215 function of loops not in DDR's loop_nest.
15216 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
15218 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
15221 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
15224 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
15227 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15228 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
15230 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
15232 * sched-deps.c (sched_macro_fuse_insns): Check return value of
15233 targetm.fixed_condition_code_regs.
15235 2019-04-05 Richard Biener <rguenther@suse.de>
15239 * tree-cfgcleanup.c (remove_forwarder_block): Always move
15240 debug bind stmts but reset them if they are not valid at the
15243 2019-04-05 Martin Liska <mliska@suse.cz>
15245 PR translation/89936
15246 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
15247 order to wrap keywords or arguments.
15248 * collect2.c (main): Likewise.
15249 (scan_prog_file): Likewise.
15250 (scan_libraries): Likewise.
15251 * common/config/riscv/riscv-common.c
15252 (riscv_subset_list::parsing_subset_version): Likewise.
15253 (riscv_subset_list::parse_std_ext): Likewise.
15254 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15256 * config/arm/arm.c (arm_option_override): Likewise.
15257 * config/cris/cris.c (cris_print_operand): Likewise.
15258 * config/darwin-c.c (darwin_pragma_options): Likewise.
15259 (darwin_pragma_unused): Likewise.
15260 (darwin_pragma_ms_struct): Likewise.
15261 * config/ft32/ft32.c (ft32_print_operand): Likewise.
15262 * config/i386/i386.c (print_reg): Likewise.
15263 (ix86_print_operand): Likewise.
15264 * config/i386/xm-djgpp.h: Likewise.
15265 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
15266 * config/m32c/m32c.c (m32c_option_override): Likewise.
15267 * config/msp430/msp430.c (msp430_option_override): Likewise.
15268 * config/nds32/nds32.c (nds32_option_override): Likewise.
15269 * config/nvptx/mkoffload.c (main): Likewise.
15270 * config/rx/rx.c (rx_print_operand): Likewise.
15271 (valid_psw_flag): Likewise.
15272 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
15273 (vms_pragma_nomember_alignment): Likewise.
15274 (vms_pragma_extern_model): Likewise.
15275 * lto-wrapper.c (compile_offload_image): Likewise.
15276 * omp-offload.c (oacc_parse_default_dims): Likewise.
15277 * symtab.c (symtab_node::verify_base): Likewise.
15278 * tlink.c (recompile_files): Likewise.
15279 (start_tweaking): Likewise.
15280 * tree-profile.c (parse_profile_filter): Likewise.
15282 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
15284 PR tree-optimization/89956
15285 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
15286 multiple negates of the same value.
15288 2019-04-04 Martin Sebor <msebor@redhat.com>
15290 PR middle-end/89957
15291 PR middle-end/89911
15292 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
15293 have the same precision since the function crashes otherwise.
15294 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
15295 has non-zero arguments.
15297 2019-04-04 Martin Sebor <msebor@redhat.com>
15299 PR middle-end/89934
15300 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
15301 out if the number of arguments is less than expected.
15303 2019-04-04 Jeff Law <law@redhat.com>
15305 PR rtl-optimization/89399
15306 * ree.c (combine_set_extension): Use single_set rather than
15307 digging into PATTERN for items on the candidate list.
15308 (combine_reaching_defs): Likewise.
15310 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
15312 PR rtl-optimization/46590
15313 * loop-invariant.c (find_defs): Move df_remove_problem and
15314 df_process_deferred_rescans to move_invariants.
15315 Move df_live_add_problem and df_live_set_all_dirty calls
15316 to move_invariants.
15317 (move_invariants): Likewise.
15318 (move_loop_invariants): Likewise, making the df_live calls
15319 conditional on -O. Remove the problem again if we added it
15322 2019-04-03 qing zhao <qing.zhao@oracle.com>
15324 PR tree-optimization/89730
15325 * ipa-inline.c (can_inline_edge_p): Delete the checking for
15326 -flive-patching=inline-only-static.
15327 (can_inline_edge_by_limits_p): Add the checking for
15328 -flive-patching=inline-only-static and grant always_inline
15329 even when -flive-patching=inline-only-static is specified.
15331 2019-04-03 Jeff Law <law@redhat.com>
15333 PR rtl-optimization/81025
15334 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
15336 2019-04-03 Richard Biener <rguenther@suse.de>
15338 PR tree-optimization/84101
15339 * tree-vect-stmts.c: Include explow.h for hard_function_value,
15340 regs.h for hard_regno_nregs.
15341 (cfun_returns): New helper.
15342 (vect_model_store_cost): When vectorizing a store to a decl
15343 we return and the function ABI returns in a multi-reg location
15344 account for the possible spilling that will happen.
15346 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15348 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15349 displacement addresses for vector mode operands.
15351 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
15353 * config/arc/arc.c (GMASK_LEN): Define.
15354 (arc_restore_callee_saves): Restore first blink when
15357 2019-04-03 Sudakshina Das <sudi.das@arm.com>
15359 * doc/extend.texi: Add deprecated comment on sign-return-address
15360 function attribute and add mbranch-protection.
15361 * doc/invoke.texi: Add bti to the options for mbranch-protection.
15363 2019-04-03 Richard Biener <rguenther@suse.de>
15366 * lto-wrapper.c (run_gcc): Avoid implicit rules making
15367 the all target phony.
15369 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
15373 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
15374 Return false for variable DImode shifts.
15375 (dimode_scalar_chain::compute_convert_gain): Do not handle
15376 register count operand in variable DImode shifts.
15377 (dimode_scalar_chain::make_vector_copies): Remove support to copy
15378 count argument of a variable shift instruction to a vector register.
15379 (dimode_scalar_chain::convert_reg): Remove support to convert
15380 count argument of a variable shift instruction.
15382 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15384 PR rtl-optimization/84206
15385 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
15386 iterating over loop headers.
15388 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15390 PR rtl-optimization/85876
15391 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
15392 beyond the original fence.
15394 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
15396 * config.gcc: Mark spu* targets as deprecated/obsolete.
15398 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15400 * config/s390/s390-builtin-types.def: New builtin function type
15401 definitions. Remove unused types.
15402 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
15403 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
15404 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
15405 overloaded builtins.
15406 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
15407 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
15408 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
15409 (vec_double, vec_signed, vec_unsigned): Define to use the new
15410 overloaded builtins.
15411 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
15414 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15416 * config/s390/s390-builtin-types.def: New builtin function type
15418 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
15419 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
15420 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
15421 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15422 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15423 constant definitions.
15424 * config/s390/vecintrin.h (vec_search_string_cc)
15425 (vec_search_string_until_zero_cc): New builtin name definitions.
15426 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15428 ("vec_vstrs<mode>"): New insn definition.
15430 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15432 * config/s390/s390-builtin-types.def: Add new builtin function
15434 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15435 New overloaded builtins.
15436 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15438 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15439 (UNSPEC_VEC_SLDBYTE): ... this.
15440 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15441 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15443 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15444 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15445 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15447 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15449 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15450 New insn definition.
15451 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15452 * config/s390/vector.md (V_HW_HSD): ... here.
15454 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15456 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15457 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15458 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15459 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15460 New insn definitions.
15462 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15464 * config/s390/s390-builtin-types.def: Add new builtin function type.
15465 * config/s390/s390-builtins.def: Add overloaded builtin
15466 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15467 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15468 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15469 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15470 ("eltswap<mode>"): New expander.
15471 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15474 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15476 * config/s390/s390-builtin-types.def: Add new builtin function types.
15477 * config/s390/s390-builtins.def: Add overloaded builtin
15478 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15480 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15481 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15482 ("bswap<mode>"): New expander.
15483 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15485 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15487 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15488 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15489 vector builtin version number in __VEC__.
15491 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15493 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15495 (SFSI): New mode attribute.
15496 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15497 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15499 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15500 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15501 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15502 ("floatsi<mode>2"): Add wcefb instruction.
15504 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15506 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15507 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15509 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15510 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15511 support 32 bit fp-int conversions. Rename to ...
15512 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15513 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15514 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15515 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15518 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15520 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15521 if-then-else constructs if we can use the select instruction.
15522 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15524 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15526 * config/s390/s390.md ("*popcountdi_arch13_cc")
15527 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15529 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15530 Append _z196 to make it ...
15531 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15532 ("popcounthi2_z196"): ... this.
15533 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15534 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15536 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15538 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15539 certain compares for arch13 in order to make use of the condition
15540 code result produced by the new instructions.
15541 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15542 nxrk, and nxgrk instruction patterns.
15543 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15544 (inv_no): Add new code iterator together with some attributes.
15545 ("*andc_split_<mode>"): Disable splitter for arch13.
15546 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15547 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15548 ("*<ANDOR:bitops_name>c<GPR:mode>")
15549 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15550 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15551 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15552 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15554 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15556 * common/config/s390/s390-common.c (processor_flags_table): New
15558 * config.gcc: Support arch13 with the --with-arch= configure flag.
15559 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15560 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15561 * config/s390/s390.c (s390_get_sched_attrmask)
15562 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15563 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15564 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15565 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15566 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15568 * config/s390/s390.opt: Support arch13 as processor type in
15569 command line options.
15571 2019-04-02 Martin Liska <mliska@suse.cz>
15573 PR translation/89912
15574 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15575 Fix param description of graphite-max-arrays-per-scop.
15577 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15579 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15580 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15581 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15583 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15585 PR rtl-optimization/85412
15586 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15587 sel_sched_region_1, not after.
15589 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15591 PR rtl-optimization/86928
15592 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15593 compute_live if necessary.
15594 (sel_redirect_edge_and_branch): Likewise.
15596 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15598 PR rtl-optimization/89865
15599 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15600 register if it is a part of small class.
15602 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15604 PR rtl-optimization/87273
15605 * sel-sched-ir.c (merge_fences): Remove assert.
15607 2019-04-01 Richard Biener <rguenther@suse.de>
15609 PR tree-optimization/46590
15610 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15611 (dom_walker::m_reachability): Add in place of...
15612 (dom_walker::m_skip_unreachable_blocks): ...this.
15613 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15614 Move complex initialization ...
15615 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15616 lazily and initialize edge flags on each invocation.
15617 (dom_walker::bb_reachable): Use m_reachability.
15619 2019-04-01 Martin Liska <mliska@suse.cz>
15622 * opt-suggestions.c (option_proposer::build_option_suggestions):
15623 Add variant without any argument in order to provide better
15626 2019-04-01 Richard Biener <rguenther@suse.de>
15629 * gimple.c: Include langhooks.h.
15630 (gimple_get_alias_set): Treat enumeral types as the underlying
15633 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15634 Eric Botcazou <ebotcazou@adacore.com>
15636 PR rtl-optimization/89862
15637 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15638 that operates on the full registers for WORD_REGISTER_OPERATIONS
15641 2019-03-29 Jim Wilson <jimw@sifive.com>
15643 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15644 Clear MASK_RVC and then set if C subset supported.
15646 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15649 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15650 non-addressable complit into its initializer if it is volatile.
15652 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15654 * opts-common.c (integral_argument): Set errno properly in one case.
15656 2019-03-29 Martin Liska <mliska@suse.cz>
15658 * doc/invoke.texi: Remove -Wchkp from documentation.
15660 2019-03-29 Martin Liska <mliska@suse.cz>
15662 * dbgcnt.c (print_limit_reach): New function.
15665 2019-03-29 Martin Liska <mliska@suse.cz>
15667 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15668 (dbg_cnt_process_opt): Parse first tokens aas
15669 dbg_cnt_process_single_pair is also using strtok.
15671 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15673 PR rtl-optimization/87485
15674 * function.c (expand_function_end): Move stack_protect_epilogue
15675 before loading of return value into hard register(s).
15677 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15679 PR middle-end/89621
15680 * tree-inline.h (struct copy_body_data): Add
15681 dont_remap_vla_if_no_change flag.
15682 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15683 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15684 and remap_type_2 returns false.
15685 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15686 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15687 only from where it is copied to nested contexts.
15689 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15692 * config/i386/i386.md (RMW operation with LEA peephole):
15693 Use LEAMODE mode attribute instead of SWI mode iterator for
15696 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15699 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15700 Also process XEXP (src, 0) of a shift insn.
15702 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15704 PR middle-end/89725
15705 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15706 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15708 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15710 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15712 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15713 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15714 immediately after first one with df_analyze in between, but rather
15715 process all bbs, queueing ones that need second pass in a worklist,
15716 df_analyze, process queued debug insn changes and if second pass is
15717 needed, process bbs from worklist, df_analyze, process queued debug
15720 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15721 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15722 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15724 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15727 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15730 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15733 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15734 function for 32-bit MS_ABI.
15735 (function_value_ms_32): New function.
15737 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15739 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15740 (movdi): Call gen_movdi_symbol_save_scc.
15741 (gen_movdi_symbol_save_scc): New insn and split.
15743 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15745 PR rtl-optimization/89313
15746 * function.c (matching_constraint_num): New static function.
15747 (match_asm_constraints_1): Use it. Fixup white space and comment.
15748 Don't replace inputs with non-matching constraints which conflict
15749 with early clobber outputs.
15751 2019-03-27 Jeff Law <law@redhat.com>
15753 PR rtl-optimization/87761
15754 PR rtl-optimization/89826
15755 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15757 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15758 note problem to get REG_DEAD/REG_UNUSED notes updated.
15760 2019-03-27 Richard Biener <rguenther@suse.de>
15762 PR tree-optimization/89463
15763 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15764 queue edges to remove.
15765 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15766 dead stmts. Delay edge removal until PHIs are removed to
15767 make debug-stmt creation not confused by seemingly degenerate
15770 2019-03-27 Alan Modra <amodra@gmail.com>
15772 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15774 * config/rs6000/darwin.h: Likewise.
15775 * config/rs6000/rs6000.c: Likewise.
15777 2019-03-27 Alan Modra <amodra@gmail.com>
15779 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15780 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15782 2019-03-26 Andrew Waterman <andrew@sifive.com>
15783 Jim Wilson <jimw@sifive.com>
15785 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15786 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15787 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15788 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15789 (generic_alu): Add auipc to type list.
15790 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15791 (riscv_microarchitecture): Declare.
15792 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15793 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15795 (riscv_microarchitecture): New.
15796 (sifive_7_tune_info): New.
15797 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15798 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15800 (riscv_store_data_bypass_p): New.
15801 (riscv_option_override): Set riscv_microarchitecture from
15802 cpu->microarchitecture.
15803 * config/riscv/riscv.md: Include sifive-7.md.
15806 (auipc<mode>): Change type to auipc.
15807 (restore_stack_nonlocal): New.
15808 * config/riscv/sifive-7.md: New.
15809 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15811 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15814 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15815 Also process XEXP (src, 0) of a shift insn.
15817 2019-03-26 Richard Biener <rguenther@suse.de>
15819 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15820 (copy_debug_stmt): Likewise.
15821 (expand_call_inline): Likewise.
15822 (copy_bb): Avoid redundant lookup & set of gimple_block.
15823 * gimple-low.c (lower_gimple_return): Likewise.
15824 (lower_builtin_setjmp): Likewise.
15826 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15828 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15829 is constant 0, turn into static const data member initialized to false.
15830 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15831 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15833 2019-03-26 Jason Merrill <jason@redhat.com>
15834 Jakub Jelinek <jakub@redhat.com>
15836 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15838 (mem_alloc_description::release_object_overhead): Fix comment typos.
15839 * hash-table.h (hash_table::~hash_table): Call
15840 release_instance_overhead only if m_entries is non-NULL, otherwise
15841 call unregister_descriptor.
15843 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15845 PR tree-optimization/81740
15846 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15847 In case of outer loop vectorization, check for backward dependence
15848 at the inner loop if outer loop dependence is reversed.
15850 2019-03-26 Alan Modra <amodra@gmail.com>
15852 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15853 rs6000_vector_mem init. Correct wI and wJ comment.
15855 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15857 PR rtl-optimization/88347
15858 PR rtl-optimization/88423
15859 * sched-deps.c (sched_analyze_insn): Take into account that for
15860 tablejumps the barrier appears after a label and a jump_table_data.
15862 2019-03-25 Martin Sebor <msebor@redhat.com>
15865 * c-common.c (check_user_alignment): Rename local. Correct maximum
15866 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15867 convert it to UHWI when it fits.
15869 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15872 * dwarf2out.c (premark_used_variables): New function.
15873 (prune_unused_types_walk): Do not mark not premarked external
15875 (prune_unused_types): Call premark_used_variables.
15877 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15879 PR rtl-optimization/89676
15880 * lra-constraints.c (curr_insn_transform): Do match reload for
15881 early clobbers when the match was successful only for different
15884 2019-03-25 Martin Sebor <msebor@redhat.com>
15886 * doc/extend.texi (Common Type Attributes): Document vector_size.
15887 (Common Variable Attributes): Mention size constraint. Correct
15889 (Vector Extensions): Use @dfn when defining bas type. Clarify
15890 base type and size constraints.
15892 2019-03-25 Richard Biener <rguenther@suse.de>
15894 PR tree-optimization/89789
15895 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15896 changes from non-undefined back to undefined.
15898 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15900 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15901 heap string and a gc string, but since this variable is unknown to
15902 ggc the gc string might get reused and corrupted. Fixed by always
15903 using a heap string.
15905 2019-03-25 Richard Biener <rguenther@suse.de>
15907 PR tree-optimization/89779
15908 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15909 to remove IV defs, delay actual removal.
15910 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15911 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15912 very end, properly also reset loop control IV information.
15914 2019-03-25 Richard Biener <rguenther@suse.de>
15916 PR tree-optimization/89802
15917 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15918 move EH data to folded stmt.
15920 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15922 * config/s390/s390-builtin-types.def: Remove few unused types and
15923 fix sort order for others.
15925 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15927 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15928 expected and found types with -mdebug during builtin matching.
15930 2019-03-25 Richard Biener <rguenther@suse.de>
15932 PR middle-end/89790
15933 * fold-const.c (operand_equal_p): Revert last change with
15936 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15938 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15939 notes for the result of the __tls_get_addr calls.
15940 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15942 2019-03-24 Jeff Law <law@redhat.com>
15944 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15946 PR rtl-optimization/87761
15947 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15948 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15950 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15951 rescans. Reprocess blocks as needed, calling df_analyze before
15952 reprocessing. Always call df_analyze before fixing up debug bind
15955 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15957 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15960 2019-03-22 Andrew Pinski <apinski@marvell.com>
15962 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15963 attrribute for uxtw.
15965 2019-03-26 Jeff Law <law@redhat.com>
15967 PR rtl-optimization/87761
15968 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15969 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15970 (mips_split_move): Accept new INSN argument. Try to forward SRC
15971 into the next instruction.
15972 (mips_split_move_insn): Pass INSN through to mips_split_move.
15974 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15976 PR rtl-optimization/89676
15977 * lra-constraints.c (curr_insn_transform): Do match reload for
15978 early clobbers even if the match was successful.
15980 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15983 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15985 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15987 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15989 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15991 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15992 <avx512>_fmsub_<mode>_mask3<round_name>,
15993 <avx512>_fnmadd_<mode>_mask3<round_name>,
15994 <avx512>_fnmsub_<mode>_mask3<round_name>,
15995 avx512f_vmfmadd_<mode>_mask3<round_name>,
15996 avx512f_vmfmsub_<mode>_mask3<round_name>,
15997 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15998 instead of register_operand and %v instead of v for match_operand 1.
15999 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
16000 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
16001 <round_nimm_predicate> instead of register_operand and %v instead of v
16002 for match_operand 1.
16004 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
16005 <avx512>_fmadd_<mode>_mask3<round_name>,
16006 <avx512>_fmsub_<mode>_mask<round_name>,
16007 <avx512>_fmsub_<mode>_mask3<round_name>,
16008 <avx512>_fnmadd_<mode>_mask<round_name>,
16009 <avx512>_fnmadd_<mode>_mask3<round_name>,
16010 <avx512>_fnmsub_<mode>_mask<round_name>,
16011 <avx512>_fnmsub_<mode>_mask3<round_name>,
16012 <avx512>_fmaddsub_<mode>_mask<round_name>,
16013 <avx512>_fmaddsub_<mode>_mask3<round_name>,
16014 <avx512>_fmsubadd_<mode>_mask<round_name>,
16015 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
16016 <round_nimm_predicate> instead of nonimmediate_operand.
16017 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
16018 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
16019 Use register_operand instead of <round_nimm_predicate> for the
16020 operand that needs to match output.
16021 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
16022 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
16023 Likewise. Formatting fixes.
16026 * config/i386/i386.c (enum ix86_builtins): Remove
16027 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
16028 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
16029 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
16030 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
16031 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
16032 __builtin_ia32_vfmsubss3_mask3): New builtins.
16033 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
16034 avx512f_vmfmadd_<mode>_mask3<round_name>,
16035 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
16036 *avx512f_vmfmsub_<mode>_mask<round_name>,
16037 avx512f_vmfmsub_<mode>_mask3<round_name>,
16038 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
16039 *avx512f_vmfnmadd_<mode>_mask<round_name>,
16040 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
16041 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
16042 *avx512f_vmfnmsub_<mode>_mask<round_name>,
16043 avx512f_vmfnmsub_<mode>_mask3<round_name>,
16044 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
16045 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
16046 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
16047 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
16048 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
16049 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
16050 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
16051 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
16052 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
16053 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
16054 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
16055 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
16056 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
16057 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
16058 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
16059 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
16060 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
16061 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
16062 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
16063 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
16064 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
16065 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
16067 2019-03-21 Martin Sebor <msebor@redhat.com>
16069 PR tree-optimization/89350
16070 * builtins.c (compute_objsize): Also ignore offsets whose upper
16072 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
16073 (builtin_memref::builtin_memref): Initialize new member.
16074 Allow EXPR to be null.
16075 (builtin_memref::extend_offset_range): Replace local with a member.
16076 Avoid assuming pointer offsets are unsigned.
16077 (builtin_memref::set_base_and_offset): Determine base object
16078 before computing offset range.
16079 (builtin_access::builtin_access): Handle memset.
16080 (builtin_access::generic_overlap): Replace local with a member.
16081 (builtin_access::strcat_overlap): Same.
16082 (builtin_access::overlap): Same.
16083 (maybe_diag_overlap): Same.
16084 (maybe_diag_access_bounds): Same.
16085 (wrestrict_dom_walker::check_call): Handle memset.
16086 (check_bounds_or_overlap): Same.
16088 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
16089 Jakub Jelinek <jakub@redhat.com>
16092 * tree.c (fld_type_variant, fld_incomplete_type_of,
16093 fld_process_array_type): Call fld->pset.add and don't call
16094 add_tree_to_fld_list if it returns true.
16095 (free_lang_data_in_type): Similarly with self-recursive call. Purge
16096 non-marked types from TYPE_NEXT_VARIANT list.
16097 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
16099 2019-03-21 Jakub Jelinek <jakub@redhat.com>
16101 * hash-table.h (hash_table): Add Lazy template parameter defaulted
16102 to false, if true, don't alloc_entries during construction, but defer
16103 it to the first method that needs m_entries allocated.
16104 (hash_table::hash_table, hash_table::~hash_table,
16105 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
16106 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
16107 hash_table::clear_slot, hash_table::traverse_noresize,
16108 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
16109 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
16111 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
16112 NO_INSERT instead of find_with_hash.
16113 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
16114 hash_set::m_table): Add Lazy to template params of hash_table.
16115 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
16116 * attribs.c (test_attribute_exclusions): Likewise.
16117 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
16118 hash_set. Add tests for hash_set with Lazy = true.
16120 2019-03-21 Richard Biener <rguenther@suse.de>
16122 PR tree-optimization/89779
16123 * tree.c (tree_nop_conversion): Consolidate and fix defensive
16124 checks with respect to released SSA names now having error_mark_node
16126 * fold-const.c (operand_equal_p): Likewise.
16128 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
16131 * config/s390/s390.c (global_not_special_regno_p): Move to make it
16133 (s390_optimize_register_info): Use global_not_special_regno_p to
16134 check for global regs.
16136 2019-03-20 Jakub Jelinek <jakub@redhat.com>
16139 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
16140 update this_alternative nor this_alternative_set.
16142 2019-03-19 Jim Wilson <jimw@sifive.com>
16145 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
16146 align, size, offset. Use them to handle a BLKmode reference. Update
16148 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
16150 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16152 PR rtl-optimization/89768
16153 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
16154 instead of GEN_INT.
16155 (unroll_loop_runtime_iterations): Likewise.
16157 2019-03-19 Martin Sebor <msebor@redhat.com>
16159 PR tree-optimization/89644
16160 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
16161 rather than endptr as an indicator of nul-termination.
16163 PR tree-optimization/89644
16164 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
16165 arrays in determining sequence sizes in strncpy and stpncpy.
16167 2019-03-19 Martin Liska <mliska@suse.cz>
16169 PR middle-end/89737
16170 * predict.c (combine_predictions_for_bb): Empty likely_edges and
16171 unlikely_edges if there's an edge that belongs to both these sets.
16173 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
16176 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
16177 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
16178 go via a stack temporary.
16180 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16183 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
16184 instead of gen_rtx_SUBREG.
16185 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
16187 2019-03-19 Richard Biener <rguenther@suse.de>
16190 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
16192 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
16196 * tree.c (free_lang_data_in_decl): Do not free context of C++
16199 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16202 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
16203 subs for the first alternative except when operands[3] is 1.
16206 * gimplify.c (gimplify_asm_expr): For output argument with
16207 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
16210 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
16212 PR rtl-optimization/89753
16213 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16214 explicit unrolling factor even more robust.
16216 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16219 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
16220 compensation use x2 += 1 instead of x2 -= -1 and when honoring
16221 signed zeros, do another copysign after the compensation.
16223 2019-03-18 Martin Sebor <msebor@redhat.com>
16225 PR tree-optimization/89720
16226 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
16227 more conservatively, the same as anti-range.
16229 2019-03-18 Richard Biener <rguenther@suse.de>
16231 PR middle-end/88945
16232 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
16233 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
16234 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
16235 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
16237 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
16239 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
16240 Extend queue to 1024 entries.
16241 Add "consumed" field.
16242 (gomp_print_output): Remove print_index parameter.
16243 Add final parameter.
16244 Change limit to unsigned.
16245 Use consumed field to implement circular buffer.
16246 Detect interrupted print in final pass.
16247 Flush output at the end.
16248 (run): Update gomp_print_output usage.
16249 (main): Initialize kernargs->output_data.consumed.
16251 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
16253 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
16254 calculation of the minimum number of scalar iterations for
16255 fully-predicated loops.
16257 2019-03-18 Martin Jambor <mjambor@suse.cz>
16259 PR tree-optimization/89546
16260 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
16261 any propagation to its children took place.
16263 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
16266 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
16267 parameter, and make use of it.
16268 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
16270 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16272 * config/arc/arc.opt (mcode-density-frame): Get the inital value
16273 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
16274 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16275 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16276 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
16277 match what the ops is doing.
16278 (push_multi_fp_blink): Likewise.
16279 * config/arc/arc.c (arc_override_options): Enable enter/leave when
16280 compiling for size and elf target.
16281 (arc_save_callee_enter): Adjust note to match what enter/leave
16284 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16286 * config/arc/arc.md (tst_movb): Fix constraint.
16288 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16290 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
16292 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16294 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
16295 * config/arc/arc.c (arc_conditional_register_usage): Remove all
16296 reg_alloc_order references.
16297 (size_alloc_order): Define.
16298 (arc_adjust_reg_alloc_order): New function.
16299 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
16301 (ADJUST_REG_ALLOC_ORDER): Define.
16302 (HONOR_REG_ALLOC_ORDER): Likewise.
16304 2019-03-18 Richard Biener <rguenther@suse.de>
16307 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
16308 loads and stores a bit more.
16310 2019-03-18 Richard Biener <rguenther@suse.de>
16313 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
16314 load pessimization to stores as well.
16316 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
16318 PR middle-end/86979
16319 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
16320 successor, use NULL as its av set.
16322 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
16324 PR rtl-optimization/89721
16325 * lra-constraints (invariant_p): Return false if side_effects_p holds.
16327 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
16330 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16331 When handling vec_extract, use modular arithmetic to allow
16332 constant selectors greater than vector length.
16333 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
16334 V1TImode vectors to have constant selector values greater than 0.
16335 Use modular arithmetic to compute vector index.
16336 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16337 index for in-memory vectors. Correct code generation for
16338 in-register vectors.
16339 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
16342 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16346 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16349 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16352 * tree.c (inchash::add_expr): Strip any location wrappers.
16353 * fold-const.c (operand_equal_p): Move stripping of location wrapper
16354 after hash verification.
16357 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
16358 SIGN_EXTEND and ZERO_EXTEND.
16360 2019-03-14 Jason Merrill <jason@redhat.com>
16361 Jakub Jelinek <jakub@redhat.com>
16363 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
16364 than if is_empty (*slot).
16365 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
16366 existing elt and for elt removal.
16367 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
16368 of already removed elt.
16370 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
16373 * config/i386/i386.c (remove_partial_avx_dependency): Handle
16374 REG_EH_REGION note.
16376 2019-03-14 Martin Liska <mliska@suse.cz>
16379 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
16381 2019-03-14 Richard Biener <rguenther@suse.de>
16384 * config/i386/i386.c (make_resolver_func): Properly set
16385 DECL_CONTEXT on the RESULT_DECL.
16386 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
16388 2019-03-14 Richard Biener <rguenther@suse.de>
16390 * gimple-pretty-print.c: Include cfgloop.h.
16391 (dump_gimple_phi): Adjust.
16392 (dump_gimple_bb_header): Dump loop header for GIMPLE.
16393 (pp_cfg_jump): Adjust.
16394 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
16395 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
16396 (lower_phi_internal_fn): Remove.
16397 (verify_gimple_call): Remove IFN_PHI special-casing.
16398 (dump_function_to_file): Dump IL state.
16399 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
16400 done to deal with PHI nodes being present in non-SSA state.
16402 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16405 * multiple_target.c (create_dispatcher_calls): Change
16406 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
16407 In the node->iterate_referring loop, push *ref rather than ref, call
16408 ref->remove_reference () and always pass 0 to iterate_referring.
16410 PR rtl-optimization/89679
16411 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
16412 would contain a paradoxical SUBREG.
16414 2019-03-14 Richard Biener <rguenther@suse.de>
16416 PR tree-optimization/89710
16417 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
16420 2019-03-14 Martin Liska <mliska@suse.cz>
16422 * coverage.c (coverage_begin_function): Stream also
16424 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16425 documentation about function declaration location.
16426 * gcov-dump.c (tag_function): Print whole range
16427 of function declaration.
16428 * gcov.c (struct function_info): Add end_column field.
16429 (function_info::function_info): Initialize it.
16430 (output_json_intermediate_file): Output {start,end}_column
16432 (read_graph_file): Read end_column.
16434 2019-03-14 Richard Biener <rguenther@suse.de>
16436 PR middle-end/89698
16437 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16438 that the access types are similar.
16440 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16442 PR tree-optimization/89703
16443 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16444 aren't compatible also with builtin_decl_explicit. Check pure
16445 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16446 and BUILT_IN_STPNCPY{,_CHK}.
16448 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16451 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16452 addr32 prefix to VSIB address for X32.
16453 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16455 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16456 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16457 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16458 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16459 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16460 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16461 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16462 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16463 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16464 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16465 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16466 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16467 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16468 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16469 (*avx512f_scatterdi<mode>): Likewise.
16471 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16474 * lra-constraints.c (inherit_in_ebb): Update
16475 potential_reload_hard_regs along with live_hard_regs.
16477 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16480 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16482 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16484 2019-03-13 Martin Sebor <msebor@redhat.com>
16486 PR tree-optimization/89662
16487 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16490 2019-03-13 Richard Biener <rguenther@suse.de>
16492 PR middle-end/89677
16493 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16494 throw FP expressions at tree-affine.
16496 2019-03-14 Richard Biener <rguenther@suse.de>
16498 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16499 dump negative integer constants using _Literal (type) -num.
16501 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16503 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16504 nonlocal_value member.
16506 PR middle-end/88588
16507 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16508 (ipa_simd_modify_function_body): Handle PHIs.
16510 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16512 * config/s390/s390.c (s390_option_override_internal): Use more
16513 aggressive inlining parameters.
16515 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16517 * config/s390/3906.md: New file.
16518 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16519 (LONGRUNNING_THRESHOLD): Remove.
16520 (MAX_SCHED_MIX_SCORE): Decrease.
16521 (MAX_SCHED_MIX_DISTANCE): Decrease.
16522 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16523 (struct s390_sched_state): New struct to hold scheduling state.
16524 (S390_SCHED_STATE_NORMAL): Remove.
16525 (S390_SCHED_STATE_CRACKED): Remove.
16526 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16527 (s390_get_sched_attrmask): Use new attribute.
16528 (s390_get_unit_mask): Use new units.
16529 (s390_is_fpd): New function.
16530 (s390_is_fxd): New function.
16531 (s390_is_longrunning): New function.
16532 (s390_sched_score): Use new functions.
16533 (s390_sched_reorder): Likewise.
16534 (s390_sched_variable_issue): Rework and use new functions.
16535 (s390_sched_init): Use new functions.
16536 * config/s390/s390.h (s390_tune_attr): Add z14.
16537 * config/s390/s390.md: Add z14.
16539 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16541 * config/s390/2964.md: Update pipeline description.
16542 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16543 (LONGRUNNING_THRESHOLD): Remove.
16544 (LATENCY_FACTOR): Remove.
16545 (s390_get_unit_mask): Add unit.
16546 (s390_sched_score): Use fxd/fpd.
16547 (s390_sched_variable_issue): Use fxd/fpd.
16549 2019-03-12 Martin Liska <mliska@suse.cz>
16551 * config/i386/i386.c: Reword an error message.
16553 2019-03-12 Martin Jambor <mjambor@suse.cz>
16555 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16556 terminate with newline.
16558 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16561 * config/s390/s390.md (tabort): Use %wd instead of
16562 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16563 letters and periods.
16564 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16565 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16568 PR middle-end/89663
16569 * builtins.c (expand_builtin_int_roundingfn,
16570 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16571 gcc_unreachable if validate_arglist fails.
16573 2019-03-12 Richard Biener <rguenther@suse.de>
16575 PR tree-optimization/89664
16576 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16577 free the occurance tree after the early out.
16579 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16581 PR middle-end/89655
16583 * vr-values.c (vr_values::update_value_range): If
16584 old_vr->varying_p (), don't update it, make new_vr also VARYING
16587 2019-03-11 Martin Liska <mliska@suse.cz>
16589 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16590 Fix double string quoting.
16592 2019-03-11 Martin Liska <mliska@suse.cz>
16594 * collect-utils.c (collect_wait): Wrap apostrophes
16595 in gcc internal format with %'.
16596 * collect2.c (main): Likewise.
16597 (scan_prog_file): Likewise.
16598 (scan_libraries): Likewise.
16599 * config/i386/i386.c (ix86_expand_call): Likewise.
16600 (ix86_handle_interrupt_attribute): Likewise.
16601 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16602 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16603 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16604 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16605 * symtab.c (symtab_node::verify_base): Likewise.
16606 * tree-cfg.c (verify_gimple_label): Likewise.
16607 * tree.c (verify_type_variant): Likewise.
16609 2019-03-11 Martin Liska <mliska@suse.cz>
16611 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16612 in a string format message and fix GNU coding style.
16613 (expand_builtin_set_thread_pointer): Likewise.
16614 * common/config/aarch64/aarch64-common.c
16615 (aarch64_rewrite_selected_cpu): Likewise.
16616 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16617 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16618 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16619 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16620 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16621 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16622 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16623 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16624 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16625 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16627 * common/config/riscv/riscv-common.c
16628 (riscv_subset_list::parsing_subset_version): Likewise.
16629 (riscv_subset_list::parse_std_ext): Likewise.
16630 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16631 (riscv_subset_list::parse): Likewise.
16632 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16633 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16634 (aarch64_override_options_internal): Likewise.
16635 (aarch64_validate_mcpu): Likewise.
16636 (aarch64_validate_march): Likewise.
16637 (aarch64_validate_mtune): Likewise.
16638 (aarch64_override_options): Likewise.
16639 * config/alpha/alpha.c (alpha_option_override): Likewise.
16640 * config/arc/arc.c (arc_init): Likewise.
16641 (parse_mrgf_banked_regs_option): Likewise.
16642 (arc_override_options): Likewise.
16643 (arc_expand_builtin_aligned): Likewise.
16644 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16645 (arm_expand_builtin): Likewise.
16646 * config/arm/arm.c (arm_option_check_internal): Likewise.
16647 (arm_configure_build_target): Likewise.
16648 (arm_option_override): Likewise.
16649 (arm_options_perform_arch_sanity_checks): Likewise.
16650 (arm_handle_cmse_nonsecure_entry): Likewise.
16651 (arm_handle_cmse_nonsecure_call): Likewise.
16652 (arm_tls_referenced_p): Likewise.
16653 (thumb1_expand_prologue): Likewise.
16654 * config/avr/avr.c (avr_option_override): Likewise.
16655 * config/bfin/bfin.c (bfin_option_override): Likewise.
16656 * config/c6x/c6x.c (c6x_option_override): Likewise.
16657 * config/cr16/cr16.c (cr16_override_options): Likewise.
16658 * config/cris/cris.c (cris_option_override): Likewise.
16659 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16660 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16661 * config/darwin.c (darwin_override_options): Likewise.
16662 * config/frv/frv.c (frv_expand_builtin): Likewise.
16663 * config/h8300/h8300.c (h8300_option_override): Likewise.
16664 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16665 (ix86_option_override_internal): Likewise.
16666 (warn_once_call_ms2sysv_xlogues): Likewise.
16667 (ix86_expand_prologue): Likewise.
16668 (split_stack_prologue_scratch_regno): Likewise.
16669 (ix86_warn_parameter_passing_abi): Likewise.
16670 * config/ia64/ia64.c (fix_range): Likewise.
16671 * config/m68k/m68k.c (m68k_option_override): Likewise.
16672 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16673 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16674 (mips_set_compression_mode): Likewise.
16675 * config/mmix/mmix.c (mmix_option_override): Likewise.
16676 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16677 * config/msp430/msp430.c (msp430_option_override): Likewise.
16678 * config/nds32/nds32.c (nds32_option_override): Likewise.
16679 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16680 (nios2_option_override): Likewise.
16681 (nios2_expand_custom_builtin): Likewise.
16682 * config/nvptx/mkoffload.c (main): Likewise.
16683 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16684 * config/pa/pa.c (fix_range): Likewise.
16685 (pa_option_override): Likewise.
16686 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16687 (riscv_option_override): Likewise.
16688 * config/rl78/rl78.c (rl78_option_override): Likewise.
16689 * config/rs6000/aix61.h: Likewise.
16690 * config/rs6000/aix71.h: Likewise.
16691 * config/rs6000/aix72.h: Likewise.
16692 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16693 * config/rs6000/freebsd64.h: Likewise.
16694 * config/rs6000/linux64.h: Likewise.
16695 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16696 (rs6000_expand_zeroop_builtin): Likewise.
16697 (rs6000_expand_mtfsb_builtin): Likewise.
16698 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16699 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16700 (rs6000_invalid_builtin): Likewise.
16701 (rs6000_expand_split_stack_prologue): Likewise.
16702 * config/rs6000/rtems.h: Likewise.
16703 * config/rx/rx.c (valid_psw_flag): Likewise.
16704 (rx_expand_builtin): Likewise.
16705 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16706 * config/s390/s390.c (s390_expand_builtin): Likewise.
16707 (s390_function_profiler): Likewise.
16708 (s390_option_override_internal): Likewise.
16709 (s390_option_override): Likewise.
16710 * config/sh/sh.c (sh_option_override): Likewise.
16711 (sh_builtin_saveregs): Likewise.
16712 (sh_fix_range): Likewise.
16713 * config/sh/vxworks.h: Likewise.
16714 * config/sparc/sparc.c (sparc_option_override): Likewise.
16715 * config/spu/spu.c (spu_option_override): Likewise.
16716 (fix_range): Likewise.
16717 * config/visium/visium.c (visium_option_override): Likewise.
16718 (visium_handle_interrupt_attr): Likewise.
16719 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16720 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16721 (dbg_cnt_process_opt): Likewise.
16722 * dwarf2out.c (output_dwarf_version): Likewise.
16723 * except.c (expand_eh_return): Likewise.
16724 * gcc.c (defined): Likewise.
16725 (driver_handle_option): Likewise.
16726 (process_command): Likewise.
16727 (compare_files): Likewise.
16728 (driver::prepare_infiles): Likewise.
16729 (driver::do_spec_on_infiles): Likewise.
16730 (driver::maybe_run_linker): Likewise.
16731 * omp-offload.c (oacc_parse_default_dims): Likewise.
16732 * opts-global.c (handle_common_deferred_options): Likewise.
16733 * opts.c (parse_sanitizer_options): Likewise.
16734 (common_handle_option): Likewise.
16735 (enable_warning_as_error): Likewise.
16736 * passes.c (enable_disable_pass): Likewise.
16737 * plugin.c (parse_plugin_arg_opt): Likewise.
16738 (default_plugin_dir_name): Likewise.
16739 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16740 (default_pch_valid_p): Likewise.
16741 * toplev.c (init_asm_output): Likewise.
16742 (process_options): Likewise.
16743 (toplev::run_self_tests): Likewise.
16744 * tree-cfg.c (verify_gimple_call): Likewise.
16745 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16746 (tree_inlinable_function_p): Likewise.
16747 * var-tracking.c (vt_find_locations): Likewise.
16749 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16751 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16752 only on the else branch.
16754 2019-03-11 Martin Liska <mliska@suse.cz>
16756 * gcov.c (output_intermediate_json_line): Print function
16758 (output_json_intermediate_file): Add new argument.
16759 * doc/gcov.texi: Document the change.
16761 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16763 PR rtl-optimization/89588
16764 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16765 explicit unrolling factor more robust.
16767 2019-03-11 Richard Biener <rguenther@suse.de>
16769 PR tree-optimization/89649
16770 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16771 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16772 on the prolog and epilog loops.
16773 (vect_loop_versioning): Return copy of loop.
16774 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16775 on the non-vectorized version of the loop.
16777 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16780 * config/i386/sse.md (*vec_extractv2di_0_sse):
16781 Add (=r,x) alternative and corresponding splitter.
16783 2019-03-10 Martin Jambor <mjambor@suse.cz>
16785 PR tree-optimization/85762
16786 PR tree-optimization/87008
16787 PR tree-optimization/85459
16788 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16789 it points to if there is a type changing MEM_REF. Adjust all callers.
16790 (build_accesses_from_assign): Disable total scalarization if
16791 contains_vce_or_bfcref_p returns true through the new parameter, for
16794 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16797 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16798 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16801 * common.opt (fdiagnostics-show-labels,
16802 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16803 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16804 gas-locview-support, ginline-points, ginternal-reset-location-views):
16805 Terminate description text with a dot.
16806 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16807 * config/mcore/mcore.opt (m210, m340): Likewise.
16808 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16809 mnops=): Start description text with a capital letter.
16810 * config/arc/arc.opt (msize-level=): Likewise.
16811 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16812 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16813 mnewlib): Likewise.
16814 * config/ft32/ft32.opt (msim): Likewise.
16815 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16816 (mnodiv, mnopm): Terminate description text with a dot.
16817 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16819 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16821 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16824 PR rtl-optimization/89634
16825 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16826 are modified in BB_END (e->src) instruction.
16828 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16831 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16832 messages more amenable to translation, and improve wording.
16834 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16836 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16837 ud- and du-chains between phases.
16839 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16842 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16843 instead of POLY_INT_CST.
16845 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16847 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16850 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16855 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16856 (_mm_storeu_si64): Ditto.
16858 2019-03-08 Martin Liska <mliska@suse.cz>
16861 * config/i386/i386.c (ix86_option_override_internal): Disable
16862 jump tables when retpolines are used.
16864 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16867 * ipa-split.c (execute_split_functions): Do not split
16868 'noinline' or 'section' function.
16870 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16873 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16874 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16875 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16878 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16879 from diagnostics. Formatting fixes.
16882 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16883 warn_odr diagnostics.
16886 * lra-constraints.c (process_alt_operands): Avoid one space before
16887 " at the end of line and another after " on another line in a string
16889 * attribs.c (handle_dll_attribute): Likewise.
16890 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16892 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16893 warning_at or inform messages in G_() if there is no ?:.
16895 PR tree-optimization/89550
16896 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16897 returned true. Formatting fixes.
16898 (expand_builtin_strnlen): Formatting fixes.
16899 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16900 if warning_at returned true.
16901 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16903 2019-03-08 Richard Biener <rguenther@suse.de>
16905 PR middle-end/89578
16906 * cfgloop.h (struct loop): Add owned_clique field.
16907 * cfgloopmanip.c (copy_loop_info): Copy it.
16908 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16910 * tree-inline.c (copy_loops): Remap owned_clique.
16911 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16912 * lto-streamer-out.c (output_cfg): Likewise.
16914 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16917 * config/darwin.c: Include intl.h.
16918 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16919 composing the message out of two separate parts.
16921 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16924 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16925 doesn't start with a capital letter and doesn't end with a dot.
16926 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16927 with a capital letter.
16928 (ix86_mangle_function_version_assembler_name): Likewise.
16929 (ix86_generate_version_dispatcher_body): Likewise.
16930 (fold_builtin_cpu): Likewise.
16931 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16932 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16933 translators, wrap full type name in %qs.
16935 PR translation/79999
16936 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16937 depend clause with source (or sink) modifier.
16938 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16941 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16942 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16943 (avx512f_load<mode>_mask): New define_expand.
16944 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16945 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16946 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16947 __builtin_ia32_movess_mask): New builtins.
16948 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16949 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16950 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16951 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16953 2019-03-07 Martin Jambor <mjambor@suse.cz>
16956 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16957 for extern inline functions.
16959 2019-03-07 Martin Jambor <mjambor@suse.cz>
16962 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16963 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16964 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16965 have multiple callees. At the end check if declarations match as
16966 opposed to cgraph_nodes.
16968 2019-03-07 Martin Liska <mliska@suse.cz>
16970 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16971 which is equivalent to searching for this in clones chain.
16972 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16973 names with a neighbour and special case first node in a chain.
16975 2019-01-25 Jason Merrill <jason@redhat.com>
16977 PR c++/80916 - spurious "static but not defined" warning.
16978 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16979 for an internal symbol with DECL_EXTERNAL.
16981 2019-04-07 Richard Biener <rguenther@suse.de>
16983 PR middle-end/89618
16984 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16985 * tree-inline.c (copy_loops): Simplify.
16987 2019-03-07 Martin Liska <mliska@suse.cz>
16989 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16991 2019-03-07 Richard Biener <rguenther@suse.de>
16993 PR tree-optimization/89595
16994 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16995 stmt iterator as reference, take boolean output parameter to
16996 indicate whether the stmt was removed and thus the iterator
16998 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16999 stmts created by folding.
17001 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17004 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
17007 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
17009 PR rtl-optimization/88845
17010 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
17012 * lra.c (remove_scratches_1): New function.
17013 (remove_scratches): Use it.
17014 (lra_emit_move): Likewise.
17016 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
17018 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
17019 unaligned_access variable.
17020 * config/arc/arc.c (arc_override_options): Set unaligned access
17021 default on for HS CPUs.
17022 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
17024 2019-03-06 Martin Liska <mliska@suse.cz>
17026 PR gcov-profile/89577
17027 * doc/gcov.texi: Prefer to use --coverage.
17028 * doc/sourcebuild.texi: Likewise.
17030 2019-03-02 Jason Merrill <jason@redhat.com>
17032 PR c++/86485 - -Wmaybe-unused with empty class ?:
17033 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
17035 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17038 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
17041 PR middle-end/89590
17042 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
17043 exactly one argument.
17045 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17046 Richard Sandiford <richard.sandiford@arm.com>
17048 PR tree-optimization/89570
17049 * match.pd (vec_cond into cond_op simplification): Don't use
17050 get_conditional_internal_fn, use as_internal_fn (cond_op).
17052 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
17055 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
17056 to decide when to split off a non-zero offset from a symbol.
17057 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
17058 in function symbols.
17060 2019-03-05 Richard Biener <rguenther@suse.de>
17062 PR tree-optimization/89594
17063 * tree-if-conv.c (pass_if_conversion::execute): Handle
17064 case where .LOOP_VECTORIZED_FUNCTION was removed.
17066 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17069 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
17070 instead alloca it only when needed with the needed size.
17072 PR tree-optimization/89570
17073 * match.pd (vec_cond into cond_op simplification): Guard with
17074 vectorized_internal_fn_supported_p test and #if GIMPLE.
17076 PR tree-optimization/89566
17077 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
17078 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
17079 Punt if get_user_idx_format succeeds, but idx_format argument is
17080 not provided or doesn't have pointer type, or if idx_args is above
17081 number of provided arguments.
17083 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
17085 PR tree-optimization/89437
17086 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
17088 2019-03-04 Richard Biener <rguenther@suse.de>
17090 PR middle-end/89572
17091 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
17094 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
17096 PR tree-optimization/89487
17097 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
17098 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
17099 (distribute_loop): Don't do runtime alias check if there is non-
17100 addressable data reference.
17101 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
17102 is a register variable.
17104 2019-03-02 Jakub Jelinek <jakub@redhat.com>
17107 * config/arm/arm.md (cmpsi2_addneg): Use
17108 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
17109 If operands[2] is 0 or INT_MIN, force use of subs.
17110 (*compare_scc splitter): Use gen_int_mode.
17111 (*negscc): Likewise.
17112 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
17114 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
17115 Monk Chiang <sh.chiang04@gmail.com>
17117 * common/config/riscv/riscv-common.c: Include sstream.
17118 (riscv_subset_list::to_string): New.
17119 (riscv_arch_str): Likewise.
17120 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
17121 * config.in: Regen.
17122 * config/riscv/riscv-protos.h (riscv_arch_str): New.
17123 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
17124 (riscv_emit_attribute): New.
17125 (riscv_file_start): Emit attribute if needed.
17126 (riscv_option_override): Init riscv_emit_attribute_p.
17127 * config/riscv/riscv.opt (mriscv-attribute): New option.
17128 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
17129 * configure: Regen.
17130 * doc/install.texi: Document --with-riscv-attribute.
17131 * doc/invoke.texi: Document -mriscv-attribute.
17133 * common/config/riscv/riscv-common.c:
17134 Include config/riscv/riscv-protos.h.
17135 (INCLUDE_STRING): Defined.
17136 (RISCV_DONT_CARE_VERSION): Defined.
17137 (riscv_subset_t): Declare.
17138 (riscv_subset_t::riscv_subset_t): New.
17139 (riscv_subset_list): Declare.
17140 (riscv_subset_list::riscv_subset_list): New.
17141 (riscv_subset_list::~riscv_subset_list): Likewise.
17142 (riscv_subset_list::parsing_subset_version): Likewise.
17143 (riscv_subset_list::parse_std_ext): Likewise.
17144 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17145 (riscv_subset_list::add): Likewise.
17146 (riscv_subset_list::lookup): Likewise.
17147 (riscv_subset_list::xlen): Likewise.
17148 (riscv_subset_list::parse): Likewise.
17149 (riscv_supported_std_ext): Likewise.
17150 (current_subset_list): Likewise.
17151 (riscv_parse_arch_string): Using riscv_subset_list::parse to
17154 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
17156 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17157 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
17158 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
17160 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
17162 PR rtl-optimization/85899
17163 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
17164 fallthru edges leading to the exit block.
17166 2019-03-01 Tamar Christina <tamar.christina@arm.com>
17169 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
17170 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
17172 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
17174 PR tree-optimization/89535
17175 * tree-vect-stmts.c (vectorizable_call): Record the vector types
17176 for each operand. Calculate the fallback choice for mask operands
17177 and pass it to vect_get_vec_def_for_operand.
17179 2019-03-01 Richard Biener <rguenther@suse.de>
17181 PR middle-end/89541
17182 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
17183 get virtual operands.
17184 (get_expr_operands): Handle CONST_DECL like other decls.
17186 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17188 PR middle-end/89503
17189 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
17190 on DECL_P and EXPR_P.
17192 2019-03-01 Richard Biener <rguenther@suse.de>
17194 PR middle-end/89497
17195 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
17196 argument, defaulted to zero.
17197 * passes.c (execute_function_todo): Pass down SSA update flags
17198 to cleanup_tree_cfg.
17199 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
17200 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
17202 (cleanup_tree_cfg): Get and pass down SSA update flags.
17204 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17207 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
17208 early_lto_debug argument.
17210 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
17212 PR tree-optimization/89536
17213 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
17214 only whether bit #0 of the value is 0 instead of the entire value.
17216 2019-02-28 Marek Polacek <polacek@redhat.com>
17218 PR c++/87068 - missing diagnostic with fallthrough statement.
17219 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
17220 at the end of a seq, save its location to walk_stmt_info.
17221 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
17224 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
17227 * tree.c (find_atomic_core_type): Move ahead in file.
17228 (check_base_type): Correctly compare alignments of atomic types.
17230 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
17233 * config/i386/i386.c (get_builtin_code_for_version): Identify
17234 Westmere from PCLMUL, instead of AES.
17236 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17239 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
17240 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
17243 2019-02-28 Tamar Christina <tamar.christina@arm.com>
17246 * config/aarch64/aarch64-option-extensions.def: Document it.
17247 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
17250 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17253 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
17254 builtins if they don't have a single scalar floating point argument.
17257 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
17259 PR rtl-optimization/89490
17260 * varasm.c (get_block_for_section): Bail out for mergeable sections.
17261 (default_use_anchors_for_symbol_p, output_object_block): Assert the
17262 block section is not mergeable.
17264 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17267 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
17268 old define_insn to ...
17269 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
17270 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
17271 Rename old define_insn to ...
17272 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
17273 (thumb2_casesi_internal_pic): New define_expand. Rename old
17275 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
17276 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
17277 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
17279 2019-02-27 Richard Biener <rguenther@suse.de>
17282 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
17284 2019-02-27 Richard Biener <rguenther@suse.de>
17286 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
17289 2019-02-27 Richard Biener <rguenther@suse.de>
17292 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
17293 parameter, prefix section name with .gnu.debuglto_ if true.
17294 (dwarf2out_finish): Pass false to output_comdat_type_unit.
17295 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
17297 2019-02-27 Richard Biener <rguenther@suse.de>
17300 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
17301 rather than on use_debug_types, doing what output_die does.
17302 (value_format): Likewise.
17304 2019-02-27 Martin Jambor <mjambor@suse.cz>
17305 Martin Sebor <msebor@redhat.com>
17307 * doc/invoke.texi (Warning Options): Reword description of
17308 -Wno-absolute-value.
17310 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17312 PR tree-optimization/89280
17313 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
17314 builtin_setjmp_setup_bb): New functions.
17315 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
17316 When visiting __builtin_setjmp_setup block, queue in special
17317 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
17318 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
17319 from visited after the loop if they don't have any visited successor
17322 2018-02-26 Steve Ellcey <sellcey@marvell.com>
17324 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
17326 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
17328 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17331 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
17332 with types other than sizetype/ssizetype.
17334 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17336 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
17337 (enum sparc_processor_type): ...this.
17338 (enum sparc_code_model_type): New enumeration type.
17339 (enum sparc_memory_model_type): Tweak comments.
17340 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
17342 (mcmodel): Use sparc_code_model enumeration and variable.
17343 (sparc_code_model): New enumeration.
17344 (mdebug): Add Undocumented marker.
17345 * config/sparc/sparc.h (enum cmodel): Delete.
17346 (sparc_cmodel): Likewise.
17347 (TARGET_CM_MEDLOW): Adjust to above renaming.
17348 (TARGET_CM_MEDMID): Likewise.
17349 (TARGET_CM_MEDANY): Likewise.
17350 (TARGET_CM_EMBMEDANY): Likewise.
17351 * config/sparc/sparc.c (sparc_cmodel): Delete.
17352 (sparc_option_override): Remove string/value mapping support for the
17353 code model. Move code and memory model support to after the handling
17354 of target flags. Do private machine setup last.
17355 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
17356 (sparc_legitimize_reload_address): Likewise.
17357 (sparc_output_mi_thunk): Likewise.
17358 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
17360 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17362 PR tree-optimization/89500
17363 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
17364 (handle_builtin_strlen): Remove noncst_bound variable. Always
17365 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
17366 cst if the first cst bytes starting at x are known to be non-zero,
17367 even if the string is not zero terminated. Don't try to modify
17368 *si for strnlen. Update strlen_to_stridx only for strlen or if
17369 we can prove strnlen returns the same value as strlen would.
17371 2019-02-26 Martin Liska <mliska@suse.cz>
17373 * alloc-pool.h (struct pool_usage): Remove extra
17375 * bitmap.h (struct bitmap_usage): Likewise.
17376 * ggc-common.c (struct ggc_usage): Likewise.
17377 * mem-stats.h (struct mem_usage): Likewise.
17378 (mem_alloc_description::dump): Print dash lines
17379 here and repeat header at the end of a table report.
17380 It's then more readable.
17381 * tree-phinodes.c (phinodes_print_statistics): Make
17382 horizontal alignment.
17383 * tree-ssanames.c (ssanames_print_statistics): Likewise.
17384 * vec.c (struct vec_usage): Remove extra print_dash_line.
17385 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
17387 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
17389 * doc/extend.texi (__builtin_object_size):
17390 Use @pxref instead of @xref inside parenthesis.
17391 (__builtin_has_attribute): Add missing comma after @xref.
17392 (__builtin_object_size): Ditto.
17393 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
17395 2019-02-26 Jeff Law <law@redhat.com>
17397 PR rtl-optimization/87761
17398 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
17399 detect obviously dead insns and delete them.
17401 2019-02-26 Richard Biener <rguenther@suse.de>
17403 PR tree-optimization/89505
17404 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
17405 to handle restrict pointed-to vars with multiple subvars
17408 2019-02-26 Richard Biener <rguenther@suse.de>
17410 PR tree-optimization/89489
17411 * tree-parloops.c (create_loop_fn): Copy over last_clique.
17413 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17415 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
17416 and move around comment.
17417 <BIT_AND_EXPR>: Likewise.
17418 <BIT_NOT_EXPR>: Add specific handling for boolean types.
17420 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17423 * config/i386/i386.c (remove_partial_avx_dependency): Call
17424 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17425 after changing possibly many instructions to use that pseudo. Fix up
17426 insertion of v4sf_const0 setter at the start of bb.
17428 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17431 * doc/extend.texi (Variadic Pointer Args): New section.
17433 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17434 Martin Sebor <msebor@gmail.com>
17436 * common.opt (Wattribute-alias): Likewise.
17437 * doc/invoke.texi (Option Summary): List general form of
17438 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17439 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17440 Add cross-references.
17441 (-Wattribute-alias): Rewrite and correct default. Mention
17442 considered attributes (same as for -Wmissing-attributes).
17444 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17446 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17447 (_mm_cvtpd_ps): Likewise.
17448 (_mm_cvttpd_epi32): Likewise.
17451 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17452 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17455 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17457 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17460 * common/config/aarch64/aarch64-common.c
17461 (struct aarch64_option_extension): Add is_synthetic.
17462 (all_extensions): Use it.
17463 (TARGET_OPTION_INIT_STRUCT): Define hook.
17464 (struct gcc_targetm_common): Moved to end.
17465 (all_extensions_by_on): New.
17466 (opt_ext_cmp, typedef opt_ext): New.
17467 (aarch64_option_init_struct): New.
17468 (aarch64_contains_opt): New.
17469 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17470 * config/aarch64/aarch64-option-extensions.def
17471 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17472 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17473 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17474 Set is_synthetic to false.
17475 (crypto): Set is_synthetic to true.
17476 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17479 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17481 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17482 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17483 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17484 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17485 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17486 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17487 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17488 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17490 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17491 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17492 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17493 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17494 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17495 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17496 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17497 vfmlsl_laneq_high_f16): ... To this.
17498 * config/arm/neon.md: Update comments.
17500 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17502 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17503 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17504 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17505 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17506 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17507 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17508 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17509 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17511 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17512 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17513 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17514 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17515 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17516 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17517 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17518 vfmlslq_laneq_high_f16): ... To this.
17520 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17522 PR rtl-optimization/86096
17523 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17524 comparing mw_order values.
17526 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17529 * config/arm/arm.md (*subsi3_carryin_const): Use
17530 arm_neg_immediate_operand predicate instead of
17531 arm_not_immediate_operand, "L" constraint instead of "K" and
17532 print it using %n2 instead of %B2.
17533 (*subsi3_carryin_const0): New define_insn.
17534 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17535 instead of arm_not_operand and "I" constraint instead of "K" and
17536 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17537 another match_operand and in the condition check that it is negation
17539 (*subsi3_carryin_compare_const0): New define_ins.
17540 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17541 *subsi3_carryin_const.
17542 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17543 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17546 * config/arm.vfp.md (*negdf2_vfp): Use
17547 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17548 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17550 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17552 PR rtl-optimization/89445
17553 * simplify-rtx.c (simplify_ternary_operation): Don't use
17554 simplify_merge_mask on operands that may trap.
17555 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17556 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17557 second operand is CONST_VECTOR, check if any element could be zero.
17558 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17559 their operands can trap.
17561 2019-02-23 Martin Sebor <msebor@redhat.com>
17563 * gimple-ssa-sprintf.c (target_strtol): Rename...
17564 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17565 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17566 check for range error.
17568 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17571 * opts-common.c (prune_options): Also prune joined switches
17572 with Negative and RejectNegative.
17573 * config/i386/i386.opt (march=): Add Negative(march=).
17574 (mtune=): Add Negative(mtune=).
17575 * doc/options.texi: Document Negative used together with Joined
17576 and RejectNegative.
17578 2019-02-22 Martin Sebor <msebor@redhat.com>
17580 * doc/extend.texi (Other Builtins): Add
17581 __builtin_is_constant_evaluated.
17583 2019-02-22 Richard Biener <rguenther@suse.de>
17585 PR tree-optimization/87609
17586 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17588 2019-02-22 Jeff Law <law@redhat.com>
17590 PR rtl-optimization/87761
17591 * config/mips/mips.md: Add new combiner pattern to recognize
17592 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17594 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17597 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17598 destination register in peepholes generating patterns for ADDS/SUBS.
17599 (add<mode>3_compare0,
17600 *addsi3_compare0_uxtw, add<mode>3_compareC,
17601 add<mode>3_compareV_imm, add<mode>3_compareV,
17602 *adds_<optab><ALLX:mode>_<GPI:mode>,
17603 *subs_<optab><ALLX:mode>_<GPI:mode>,
17604 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17605 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17606 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17607 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17608 sub<mode>3_compare1): Allow stack pointer for source register.
17609 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17611 2019-02-22 Martin Sebor <msebor@redhat.com>
17613 PR tree-optimization/88993
17614 PR tree-optimization/88853
17615 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17617 (sprintf_dom_walker::call_info::is_string_func): New helper.
17618 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17619 for formatted string functions.
17620 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17622 2019-02-22 Martin Sebor <msebor@redhat.com>
17625 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17626 unreachable subexpressions.
17628 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17629 Hongtao Liu <hongtao.liu@intel.com>
17630 Sunil K Pandey <sunil.k.pandey@intel.com>
17633 * config/i386/i386-passes.def: Add
17634 pass_remove_partial_avx_dependency.
17635 * config/i386/i386-protos.h
17636 (make_pass_remove_partial_avx_dependency): New.
17637 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17639 (pass_data_remove_partial_avx_dependency): New.
17640 (pass_remove_partial_avx_dependency): Likewise.
17641 (make_pass_remove_partial_avx_dependency): Likewise.
17642 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17643 (*extendsfdf2): Add avx_partial_xmm_update.
17644 (truncdfsf2): Likewise.
17645 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17646 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17648 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17650 PR middle-end/85598
17651 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17654 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17657 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17658 (PTA_SKYLAKE): Add PTA_AES.
17659 (PTA_GOLDMONT): Likewise.
17661 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17663 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17664 instruction if enabled.
17665 (aarch64_override_options): Remove reference to return address key.
17667 2019-02-22 Richard Biener <rguenther@suse.de>
17669 PR tree-optimization/89440
17670 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17671 not necessary assert.
17673 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17676 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17677 (oacc_replace_fn_attrib_attr): ... this new function.
17678 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17679 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17681 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17683 * config/arm/arm-cpus.in (ares): Rename to...
17684 (neoverse-n1): ... This. Add ares as alias.
17685 * config/arm/arm-tables.opt: Regenerate.
17686 * config/arm/arm-tune.md: Likewise.
17687 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17689 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17691 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17692 * config/aarch64/aarch64-tune.md: Regenerate.
17693 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17695 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17697 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17698 (neoversen1_tunings): ... This.
17699 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17700 (neoverse-n1): New CPU.
17701 * config/aarch64/aarch64-tune.md: Regenerate.
17702 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17704 2019-02-22 Richard Biener <rguenther@suse.de>
17706 PR middle-end/87609
17707 * cfghooks.h (dependence_hash): New typedef.
17708 (struct copy_bb_data): New type.
17709 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17710 (duplicate_block): Likewise.
17711 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17712 (copy_bbs): Create and pass down copy_bb_data.
17713 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17714 (rtl_duplicate_bb): Likewise.
17715 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17716 remap dependence info.
17718 2019-02-22 Richard Biener <rguenther@suse.de>
17720 PR tree-optimization/87609
17721 * tree-core.h (tree_base): Document special clique values.
17722 * tree-inline.c (remap_dependence_clique): Do not use the
17723 special clique value of one.
17724 (maybe_set_dependence_info): Use clique one.
17725 (clear_dependence_clique): New callback.
17726 (compute_dependence_clique): Clear clique one from all refs
17727 before assigning it (again).
17729 2019-02-21 Martin Sebor <msebor@redhat.com>
17731 * doc/extend.texi (__clear_cache): Correct signature.
17733 2019-02-21 Ian Lance Taylor <iant@golang.org>
17736 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17737 than output_constant_def.
17738 (add_constant_to_table): New static function.
17739 (output_constant_def): Call add_constant_to_table.
17740 (tree_output_constant_def): Likewise.
17742 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17745 * builtins.c (fold_builtin_arith_overflow): If first two args are
17746 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17749 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17752 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17753 error for -mindirect-branch/-mfunction-return with incompatible
17756 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17759 * constraints.md (q): Remove.
17760 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17763 2019-02-21 Martin Jambor <mjambor@suse.cz>
17766 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17767 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17768 (omp_adjust_for_condition): ...here. Added necessary parameters.
17769 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17770 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17771 proper values to new parameters of omp_adjust_for_condition.
17773 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17775 PR middle-end/89412
17776 * expr.c (expand_assignment): If result is a MEM, use change_address
17777 instead of simplify_gen_subreg.
17779 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17780 David Malcolm <dmalcolm@redhat.com>
17782 PR middle-end/89091
17783 * fold-const.c (decode_field_reference): Return NULL_TREE if
17784 lang_hooks.types.type_for_size returns NULL. Check it before
17785 overwriting *exp_. Use return NULL_TREE instead of return 0.
17787 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17789 PR middle-end/88074
17790 PR middle-end/89415
17791 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17794 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17797 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17798 TARGET_SSE in addition to TARGET_SSE_MATH.
17800 (ix86_excess_precision): Ditto.
17801 (ix86_float_exceptions_rounding_supported_p): Ditto.
17802 (use_rsqrt_p): Ditto.
17803 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17805 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17808 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17809 linenum_arith_t when determining if two adjacent line spans are
17810 close enough to merge.
17811 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17812 lines within each line_span.
17814 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17817 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17818 paradoxical SUBREGS.
17820 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17823 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17824 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17825 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17828 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17830 * config/gcn/gcn.c (print_operand): Fix typo.
17832 2019-02-19 Richard Biener <rguenther@suse.de>
17834 PR middle-end/88074
17835 * toplev.c (do_compile): Initialize mpfr's exponent range
17836 based on available float modes.
17838 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17840 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17841 as long as the epilogue isn't completed.
17843 2019-02-18 Martin Sebor <msebor@redhat.com>
17845 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17846 __has_cpp_attribute, and __has_include.
17848 2019-02-18 Martin Sebor <msebor@redhat.com>
17850 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17852 2019-02-18 Martin Sebor <msebor@redhat.com>
17854 PR middle-end/89294
17855 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17857 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17859 2019-02-18 Richard Biener <rguenther@suse.de>
17861 PR tree-optimization/89296
17862 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17863 of no-warning flag to cases that might emit the bogus warning.
17865 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17868 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17870 * config/arm/vfp.md (*movdi_vfp): Likewise.
17871 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17872 "q" constraint for operands[0].
17875 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17876 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17877 pattern in a temporary buffer.
17878 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17879 than 64-operands[2].
17882 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17883 s390_indirect_branch_settings): Define unconditionally.
17884 (s390_set_current_function): Likewise, but guard the whole body except
17885 the s390_indirect_branch_settings call with
17886 #if S390_USE_TARGET_ATTRIBUTE.
17887 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17889 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17890 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17891 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17892 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17893 HOST_WIDE_INT_1U instead of 1ULL.
17894 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17895 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17896 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17897 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17899 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17902 2019-02-18 Martin Jambor <mjambor@suse.cz>
17904 PR tree-optimization/89209
17905 * tree-sra.c (create_access_replacement): New optional parameter
17906 reg_tree. Use it as a type if non-NULL and access type is not of
17908 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17909 to create_access_replacement.
17910 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17911 Check lacc is non-NULL before attempting to re-create it on the RHS.
17913 2019-02-18 Martin Liska <mliska@suse.cz>
17916 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17918 (symbol_table::free_edge): Recycle m_summary_id.
17919 * cgraph.h (get_summary_id): New.
17920 (symbol_table::release_symbol): Set m_summary_id to -1
17922 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17923 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17924 function_summary to fast_function_summary.
17925 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17926 * ipa-pure-const.c (class funct_state_summary_t):
17927 Switch from function_summary to fast_function_summary.
17928 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17929 (class ipa_ref_opt_summary_t): Switch from function_summary
17930 to fast_function_summary.
17931 * symbol-summary.h (class function_summary_base): New class
17932 that is created from base of former function_summary.
17933 (function_summary_base::unregister_hooks): New.
17934 (class function_summary): Inherit from function_summary_base.
17935 (class call_summary_base): New class
17936 that is created from base of former call_summary.
17937 (class call_summary): Inherit from call_summary_base.
17938 (struct is_same): New.
17939 (class fast_function_summary): New summary class.
17940 (class fast_call_summary): New summary class.
17941 * vec.h (vec_safe_grow_cleared): New function.
17943 2019-02-18 Martin Liska <mliska@suse.cz>
17945 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17946 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17947 * doc/tm.texi: Document new target hook.
17948 * doc/tm.texi.in: Likewise.
17949 * target.def: Add new target macro.
17950 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17953 2019-02-17 Alan Modra <amodra@gmail.com>
17956 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17957 output reg on add insn.
17958 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17960 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17963 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17964 (PMULHRSW): Likewise.
17965 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17967 (ssse3_pmulhrswv4hi3): New expander.
17969 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17971 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17972 MMX. Add isa attribute.
17974 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17976 PR rtl-optimization/66152
17977 * builtins.h (c_readstr): Declare.
17978 * builtins.c (c_readstr): Remove forward declaration. Add
17979 null_terminated_p argument, if false, read all bytes from the
17980 string instead of stopping after '\0'.
17981 * expr.c (string_cst_read_str): New function.
17982 (store_expr): Use string_cst_read_str instead of
17983 builtin_strncpy_read_str. Try to store by pieces the whole
17984 exp_len first, and only if that fails, split it up into
17985 store by pieces followed by clear_storage. Formatting fix.
17987 * config/i386/i386.md (*movqi_internal): Remove static from
17988 buf variable. Use output_asm_insn (buf, operands); return "";
17989 instead of return buf;.
17990 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17991 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17992 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17994 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17996 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17997 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17998 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17999 (CC1_SPEC): Likewise.
18000 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
18002 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18004 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
18005 the base address on 64-bit strict-alignment platforms.
18007 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
18009 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
18011 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18013 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
18015 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
18017 PR rtl-optimization/88308
18018 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
18019 on copied instruction.
18021 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18023 * final.c (insn_current_reference_address): Replace test on JUMP_P
18024 with test on jump_to_label_p.
18025 * config/visium/visium-passes.def: New file.
18026 * config/visium/t-visium (PASSES_EXTRA): Define.
18027 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
18028 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
18029 (TRAMPOLINE_ALIGNMENT): Define.
18030 * config/visium/visium.c (visium_option_override): Do not register
18031 the machine-specific reorg pass here.
18032 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
18034 (output_branch): Adjust threshold for long branch instruction.
18035 * config/visium/visium.md (cpu): Move around.
18036 (length): Adjust for the GR6.
18038 2019-02-15 Richard Biener <rguenther@suse.de>
18039 Jakub Jelinek <jakub@redhat.com>
18041 PR tree-optimization/89278
18042 * tree-loop-distribution.c: Include tree-eh.h.
18043 (generate_memset_builtin, generate_memcpy_builtin): Call
18044 rewrite_to_non_trapping_overflow on builtin->size before passing it
18045 to force_gimple_operand_gsi.
18047 2019-02-15 Jakub Jelinek <jakub@redhat.com>
18050 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
18052 * opth-gen.awk: Likewise.
18054 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18056 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
18057 Enable MMX, SSE and SSE2 by default.
18058 * config/i386/i386.c (ix86_option_override_internal): Do not
18059 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
18061 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18063 PR rtl-optimization/89354
18064 * combine.c (make_extraction): Punt if extraction_mode is narrower
18067 2019-02-14 Maya Rashish <coypu@sdf.org>
18069 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
18070 * config/netbsd-d.c: New file.
18071 * config/t-netbsd: Add netbsd-d.o
18073 2018-02-14 Steve Ellcey <sellcey@marvell.com>
18075 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
18076 affects_type_identity to true for aarch64_vector_pcs.
18077 (aarch64_comp_type_attributes): New function.
18078 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
18080 2019-02-14 Tamar Christina <tamar.christina@arm.com>
18083 * config/arm/iterators.md (ANY64): Add V4HF.
18085 2019-02-14 Martin Liska <mliska@suse.cz>
18087 PR rtl-optimization/89242
18088 * dce.c (delete_unmarked_insns): Call free_dominance_info we
18089 process a transformation.
18091 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18093 PR tree-optimization/89314
18094 * fold-const.c (fold_binary_loc): Cast strlen argument to
18095 const char * before dereferencing it. Formatting fixes.
18097 PR middle-end/89284
18098 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
18100 2019-02-13 Ian Lance Taylor <iant@golang.org>
18102 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
18103 and set current index for other optimizations.
18105 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
18107 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
18108 nonimmediate_operand as operand 2 predicate.
18109 (vec_set<VF2_512_256:mode>_0): Ditto.
18110 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
18111 (*vec_concatv2si): Remove alternative 2.
18112 (*vec_concatv4si_0): Use vm constraint for alternative 0.
18113 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
18114 (vec_concatv2di): Split alternatives 4,5,6 to ...
18115 (*vec_concatv2di_0) ... new pattern.
18117 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
18120 * config/arm/arm.c (ldm_stm_operation_p) Set
18121 addr_reg_in_reglist correctly for first register.
18122 (load_multiple_sequence): Remove dead base check.
18123 (gen_ldm_seq): Correctly set write_back for Thumb-1.
18125 2019-02-13 Tamar Christina <tamar.christina@arm.com>
18128 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
18129 Expose as @aarch64_pred_mov.
18130 * config/aarch64/aarch64.c (aarch64_classify_address):
18131 Use expand_insn which legitimizes operands.
18133 2019-02-13 Martin Liska <mliska@suse.cz>
18135 * builtins.h (expand_builtin_with_bounds): Remove declaration.
18136 * calls.c (struct arg_data): Remove special_slot, pointer_arg
18137 and pointer_offset fields.
18138 (initialize_argument_information): Remove usage of dead
18140 * cgraph.h (struct cgraph_thunk_info): Remove
18141 add_pointer_bounds_args.
18142 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
18144 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
18146 * config/i386/i386.c (ix86_function_arg_advance): Remove
18148 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
18149 (def_builtin): Remove usage of dead fields.
18150 (ix86_add_new_builtins): Likewise.
18151 * ipa-fnsummary.c (compute_fn_summary): Likewise.
18152 * ipa-icf.c (sem_function::equals_wpa): Likewise.
18153 (sem_function::init): Likewise.
18154 (sem_variable::merge): Likewise.
18155 * ipa-visibility.c (function_and_variable_visibility): Likewise.
18156 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
18157 * lto-cgraph.c (lto_output_node): Likewise.
18158 (lto_output_varpool_node): Likewise.
18159 (input_node): Likewise.
18160 (input_varpool_node): Likewise.
18161 * lto-streamer-out.c (lto_output): Likewise.
18162 * tree-inline.c (expand_call_inline): Remove usage of
18164 * tree-inline.h (struct copy_body_data): Likewise.
18165 * varpool.c (varpool_node::dump): Likewise.
18167 2019-02-13 Jakub Jelinek <jakub@redhat.com>
18169 PR middle-end/89303
18170 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
18171 into pt->vars_contains_escaped_heap instead of setting
18172 pt->vars_contains_escaped_heap to it.
18174 PR middle-end/89281
18175 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
18176 INTVAL (size), compare it to GET_MODE_MASK instead of
18177 1 << GET_MODE_BITSIZE.
18180 * config/i386/predicates.md (x86_64_immediate_operand): Allow
18181 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
18184 2019-02-13 Martin Liska <mliska@suse.cz>
18187 * cfgrtl.c (remove_barriers_from_footer): New function.
18188 (try_redirect_by_replacing_jump): Use it.
18189 (cfg_layout_redirect_edge_and_branch): Likewise.
18191 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18193 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
18194 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
18195 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
18196 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
18197 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
18198 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
18200 * config/rs6000/rs6000.c (builtin_function_type)
18201 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
18202 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
18203 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
18204 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
18205 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
18207 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
18209 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
18210 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
18212 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
18215 * config/i386/i386.md (*movoi_internal_avx): Revert revision
18216 268678 and revision 268657.
18217 (*movti_internal): Likewise.
18219 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
18222 * config/s390/s390.c (s390_decompose_address): Update comment.
18223 (s390_check_qrst_address): Reject invalid address forms after
18226 2019-02-12 Martin Liska <mliska@suse.cz>
18229 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
18230 we need default values of funct_state for a function that
18233 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
18235 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
18236 the object to pick the size of stores on strict-alignment platforms.
18238 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
18239 (*movdi_insn_sp32): Likewise.
18240 (*movdi_insn_sp64): Likewise.
18242 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
18245 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
18246 types that needs constructiong.
18247 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
18249 2019-02-12 Richard Biener <rguenther@suse.de>
18251 PR tree-optimization/89253
18252 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
18253 duplicate the loop.
18255 2019-02-11 David Malcolm <dmalcolm@redhat.com>
18258 * input.c (selftest::test_line_offset_overflow): New selftest.
18259 (selftest::input_c_tests): Call it.
18261 2019-02-11 Martin Sebor <msebor@redhat.com>
18263 PR tree-optimization/88771
18264 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
18265 when -Wstringop-overflow is set.
18266 (builtin_memref::builtin_memref): Adjust excessive upper bound
18267 only when lower bound is not excessive.
18268 (maybe_diag_overlap): Detect and diagnose excessive bounds via
18269 -Wstringop-ovefflow.
18270 (maybe_diag_offset_bounds): Rename...
18271 (maybe_diag_access_bounds): ...to this.
18272 (check_bounds_or_overlap): Adjust for name change above.
18274 2019-02-11 Martin Sebor <msebor@redhat.com>
18277 * builtins.c (max_object_size): Move from here...
18278 * builtins.h (max_object_size): ...and here...
18279 * tree.c (max_object_size): ...to here...
18280 * tree.h (max_object_size): ...and here.
18282 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
18284 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
18285 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
18286 for correct semantics.
18288 2019-02-11 Alan Modra <amodra@gmail.com>
18290 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
18291 -mlongcall and -mpltseq.
18292 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
18293 (RS/6000 and PowerPC Options <-mpltseq>): Document.
18294 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
18295 * config/rs6000/sysv4.opt (mpltseq): New option.
18296 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
18297 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
18298 support is lacking. Don't allow -mpltseq with -mbss-plt.
18299 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
18300 -mpltseq given for ELFv1.
18301 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
18302 Only use UNSPEC_PLTSEQ for inline PLT calls.
18303 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
18304 use UNSPEC_PLTSEQ for inline PLT calls.
18305 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
18306 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
18307 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
18308 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18309 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18310 (pltseq_mtctr_<mode>): Likewise.
18312 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18314 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
18316 * configure: Regenerate.
18318 2019-02-11 Jakub Jelinek <jakub@redhat.com>
18321 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
18324 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18326 * function.c (assign_parm_setup_block): Use the stored
18327 size, not the passed size, when allocating stack-space,
18328 also for a parameter with alignment larger than
18329 MAX_SUPPORTED_STACK_ALIGNMENT.
18331 2019-02-11 Martin Liska <mliska@suse.cz>
18334 * ipa-cp.c (build_toporder_info): Remove usage of a param.
18335 * ipa-inline.c (inline_small_functions): Likewise.
18336 * ipa-pure-const.c (propagate_pure_const): Likewise.
18337 (propagate_nothrow): Likewise.
18338 * ipa-reference.c (propagate): Likewise.
18339 * ipa-utils.c (struct searchc_env): Remove unused field.
18340 (searchc): Always search across AVAIL_INTERPOSABLE.
18341 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
18342 the only called IPA pure const can properly not propagate
18343 across interposable boundary.
18344 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18346 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18348 * config/nds32/nds32.md (call_internal, call_value_internal,
18349 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18351 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18353 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
18356 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
18358 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
18361 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18363 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
18365 2019-02-10 Jakub Jelinek <jakub@redhat.com>
18367 PR tree-optimization/89268
18368 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
18369 if preds is non-NULL.
18371 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18374 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
18377 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18379 * config/nds32/nds32.md (trap): New pattern.
18381 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18383 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
18386 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18388 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
18391 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18393 * ipa-visibility.c (localize_node): Also do not localize
18394 LDPR_PREVAILING_DEF_IRONLY_EXP.
18396 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18399 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
18400 instead of type_with_linkage.
18402 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18405 * params.def (uninlined-function-insns, uninlined-function-time,
18406 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
18407 bound so we don't get overflows.
18409 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18411 * config/rs6000/rs6000-string.c (expand_compare_loop,
18412 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
18415 2019-02-09 Jakub Jelinek <jakub@redhat.com>
18417 PR middle-end/89246
18418 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18419 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
18420 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18422 2019-02-09 Alan Modra <amodra@gmail.com>
18425 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18426 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18429 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18431 PR middle-end/88560
18432 * lra-constraints.c (process_alt_operands): Don't increase reject
18433 for memory when offset memory is required.
18435 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18437 * config/s390/vector.md: Implement vector copysign.
18439 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18441 * expr.c (expand_constructor): Correct indentations.
18443 2019-02-08 Richard Biener <rguenther@suse.de>
18445 PR tree-optimization/89247
18446 * tree-if-conv.c: Include tree-cfgcleanup.h.
18447 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18448 (tree_if_conversion): Pass through predicate vector.
18449 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18450 inline, see if any if-converted loops we refrece in
18451 LOOP_VECTORIZED calls vanished and fixup.
18452 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18454 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18456 * config/s390/constraints.md (jdd): New constraint.
18458 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18461 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18462 upper 16 vector registers without TARGET_AVX512VL.
18463 (*movti_internal): Likewise.
18465 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18467 PR rtl-optimization/89234
18468 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18469 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18470 (copy_reg_eh_region_note_backward): Likewise.
18472 2019-02-08 Richard Biener <rguenther@suse.de>
18474 PR middle-end/89223
18475 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18476 doesn't fit in HWI.
18477 (analyze_subscript_affine_affine): Handle failure from
18478 initialize_matrix_A.
18480 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18482 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18485 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18487 PR tree-optimization/86637
18488 PR tree-optimization/89235
18489 * tree-vect-loop.c (optimize_mask_stores): Add an
18490 auto_purge_vect_location sentinel to ensure that vect_location is
18492 * tree-vectorizer.c
18493 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18494 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18495 to ensure that vect_location is purged on exit.
18496 (pass_slp_vectorize::execute): Likewise, replacing the manual
18498 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18500 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18502 * config/aarch64/iterators.md (max_opp): New code_attr.
18503 (USMAX): New code iterator.
18504 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18505 (aarch64_smax): Likewise.
18506 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18507 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18510 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18513 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18514 for TARGET_AVX512VL.
18515 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18517 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18519 * config/s390/s390-builtin-types.def: Add new types.
18520 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18521 (s390_vec_xlw4): Make the memory operand into a const pointer.
18522 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18524 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18525 a new vector type with the alignment of the scalar memory operand.
18527 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18528 Jakub Jelinek <jakub@redhat.com>
18531 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18532 arm_count_ldrdstrd_insns): New declarations.
18533 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18535 (valid_operands_ldrd_strd): New function.
18536 (arm_count_ldrdstrd_insns): New function.
18537 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18538 sets instead of single DImode set and define new insns to match this.
18540 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18542 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18543 Make it a C initializer.
18545 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18548 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18550 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18552 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18553 Use neon_dot<q> for type.
18554 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18556 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18558 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18559 Use neon_dot<q> for type.
18560 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18561 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18563 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18565 PR rtl-optimization/89225
18566 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18569 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18571 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18572 after restoring registers saved to allocate the frame on Windows.
18574 2019-02-06 Richard Biener <rguenther@suse.de>
18576 PR tree-optimization/89182
18577 * graphite.h (cached_scalar_evolution_in_region): Declare.
18578 * graphite.c (struct seir_cache_key): New.
18579 (struct sese_scev_hash): Likewise.
18580 (seir_cache): New global.
18581 (cached_scalar_evolution_in_region): New function.
18582 (graphite_transform_loops): Allocate and release seir_cache.
18583 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18584 cached_scalar_evolution_in_region.
18585 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18587 (scop_detection::graphite_can_represent_expr: Use
18588 cached_scalar_evolution_in_region.
18589 (scop_detection::stmt_simple_for_scop_p): Likewise.
18590 (find_params_in_bb): Likewise.
18591 (gather_bbs::before_dom_children): Likewise.
18592 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18593 (add_loop_constraints): Likewise.
18595 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18597 PR middle-end/89210
18598 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18599 operand to new_unary_operation only if both element types are integral
18600 and it isn't a widening conversion. Return NULL_TREE if
18601 new_unary_operation failed.
18603 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18606 * config/s390/s390.md: Remove load and test FP splitter.
18608 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18611 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18612 expand_compare_loop, expand_block_compare_gpr,
18613 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18614 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18615 #include "profile-count.h" and "predict.h" for types and functions
18616 needed to work with REG_BR_PROB notes.
18618 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18621 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18622 for the long branch case.
18624 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18627 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18628 can throw, non-call exceptions are enabled and we can't delete
18629 dead exceptions or alter cfg. Set must_clean if
18630 delete_insn_and_edges returns true, don't set it blindly for calls.
18631 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18633 PR rtl-optimization/89195
18634 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18635 of the original MEM.
18637 2019-02-05 Martin Liska <mliska@suse.cz>
18639 PR gcov-profile/89000
18640 * gcov.c (function_summary): Remove argument.
18641 (file_summary): New function.
18642 (print_usage): Replace tabs with spaces.
18643 (generate_results): Use new function file_summary.
18645 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18648 * optabs.c (prepare_cmp_insn): Pass x and y to
18649 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18651 2019-02-05 Richard Biener <rguenther@suse.de>
18653 PR middle-end/89150
18654 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18655 (struct bitmap_element): Drop chain_prev so we properly recurse on
18656 the prev member, supporting tree views.
18657 (struct bitmap_head): GTY skip the obstack member.
18659 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18662 * doc/extend.texi (Vector Extensions): Add an example of using vector
18663 types together with x86 intrinsics.
18665 2019-02-04 Alan Modra <amodra@gmail.com>
18667 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18668 str[] size to 160, and comment.
18670 2019-02-04 Alan Modra <amodra@gmail.com>
18672 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18673 (rs6000_pltseq_template): Guard output of TLS markers with
18674 TARGET_TLS_MARKERS.
18675 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18676 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18677 to use inline PLT sequences.
18678 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18679 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18680 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18682 2019-02-04 Martin Liska <mliska@suse.cz>
18685 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18686 out when ipa_fn_summaries does not contain entry for callee.
18688 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18690 * config/sparc/sparc.h: Remove superfluous blank lines.
18691 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18692 (got_register_rtx): ...this.
18693 (sparc_got): Adjust to above renaming.
18694 (sparc_tls_got): Likewise.
18695 (sparc_delegitimize_address): Likewise.
18696 (sparc_output_mi_thunk): Likewise.
18697 (sparc_init_pic_reg): Likewise.
18698 (save_local_or_in_reg_p): Fix test on the GOT register.
18699 (USE_HIDDEN_LINKONCE): Move around.
18700 (get_pc_thunk_name): Likewise.
18701 (gen_load_pcrel_sym): Likewise.
18702 (load_got_register): Likewise.
18704 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18706 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18707 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18709 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18711 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18712 into consideration.
18714 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18716 * config.gcc (with_nds32_lib, glibc):
18717 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18718 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18719 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18721 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18724 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18725 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18726 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18727 (*rcpsf2_sse): Ditto.
18728 (*rsqrtsf2_sse): Ditto.
18729 (sse4_1_round<mode<2): Ditto.
18731 2019-02-03 Richard Biener <rguenther@suse.de>
18734 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18737 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18739 PR middle-end/87887
18740 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18741 Punt with warning on aggregate return or argument types. Ignore
18742 type/mode checking for uniform arguments.
18744 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18746 * combine.c (try_combine): Do not print "Can't combine" messages unless
18747 printing failed combination attempts.
18749 2019-02-01 Martin Jambor <mjambor@suse.cz>
18752 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18753 segment and global segment variables before making them static.
18755 2019-02-01 Martin Jambor <mjambor@suse.cz>
18757 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18758 missed optimization dump with dump_enabled_p.
18760 2019-02-01 Richard Biener <rguenther@suse.de>
18762 PR middle-end/88597
18763 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18764 the instantiate cache.
18765 (instantiate_scev_binary): Elide second operand procesing
18766 if equal to the first.
18767 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18768 (chrec_contains_undetermined): Likewise.
18769 (tree_contains_chrecs): Likewise.
18771 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18773 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18775 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18777 PR tree-optimization/89143
18778 * wide-int-range.h (wide_int_range_absu): Declare.
18779 * wide-int-range.cc (wide_int_range_absu): New function.
18780 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18782 PR tree-optimization/88107
18783 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18784 instead of assertion that eh_region_outermost is non-NULL, if it
18785 is NULL, set *ALL to true and return NULL.
18786 (move_sese_region_to_fn): Adjust caller, if all is set, call
18787 duplicate_eh_regions with NULL region.
18789 2019-02-01 Richard Biener <rguenth@suse.de>
18791 PR rtl-optimization/88593
18792 * mode-switching.c (optimize_mode_switching): Free dominators before
18793 calling cleanup_cfg.
18795 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18797 PR tree-optimization/88932
18798 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18800 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18802 PR middle-end/89137
18803 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18804 bogus clang warning.
18806 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18809 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18810 alternative to avoid partial SSE register stall for TARGET_AVX.
18811 (truncdfsf2): Ditto.
18812 (sse4_1_round<mode>2): Ditto.
18814 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18816 PR tree-optimization/89008
18817 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18818 process anything of the form X * 0.
18820 2019-01-31 Richard Biener <rguenther@suse.de>
18822 PR tree-optimization/89135
18823 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18824 with abnormal preds.
18826 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18829 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18830 always_inline callees into no_sanitize_address callers.
18832 2019-01-31 Richard Biener <rguenther@suse.de>
18834 PR rtl-optimization/89115
18835 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18837 2019-01-30 Martin Sebor <msebor@redhat.com>
18840 * doc/extend.texi (cast to a union): Correct and expand.
18842 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18844 PR rtl-optimization/87246
18845 * lra-constraints.c (simplify_operand_subreg): Reload memory
18846 in subreg if the address became invalid.
18848 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18851 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18852 Disable for little-endian.
18854 2019-01-30 Richard Biener <rguenther@suse.de>
18856 PR rtl-optimization/89115
18857 * opts.c (default_options_optimization): Reduce
18858 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18859 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18862 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18864 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18865 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18866 type of vector element when vec_extract is implemented by direct
18869 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18871 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18873 2019-01-30 Richard Biener <rguenther@suse.de>
18875 PR tree-optimization/89111
18876 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18877 canonicalization to appropriately sized access types.
18879 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18882 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18883 for arguments to functions that are TU-local and shouldn't be
18884 referenced by assembly.
18886 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18888 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18891 2019-01-29 Martin Sebor <msebor@redhat.com>
18894 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18896 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18900 * omp-simd-clone.c (simd_clone_clauses_extract)
18901 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18902 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18904 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18906 * config.gcc: Force .init_array for ARC.
18908 2019-01-29 Richard Biener <rguenther@suse.de>
18911 * dwarf2out.c (collect_skeleton_dies): New helper.
18912 (copy_decls_for_unworthy_types): Call it.
18913 (build_abbrev_table): Assert we do not try to replace
18914 DW_AT_signature refs with local refs.
18916 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18918 PR middle-end/89002
18919 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18920 for lastprivate/linear IV, push gimplify context around gimplify_assign
18921 and, if it needed any temporaries, pop it into a gimple bind around the
18924 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18926 * common.opt (-Wattribute-alias): Remove "no-" from name.
18927 Make -Wattribute-alias command line option and
18928 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18930 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18933 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18934 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18936 (bmi2): Add missing @opindex.
18937 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18938 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18939 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18940 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18941 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18942 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18943 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18944 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18945 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18946 xsavec, xsaveopt and xsaves options.
18948 2019-01-28 Richard Biener <rguenther@suse.de>
18951 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18954 2019-01-28 Richard Biener <rguenther@suse.de>
18956 PR tree-optimization/88739
18957 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18958 BIT_FIELD_REFs only are applied to mode-precision operands
18959 when they are integral.
18960 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18961 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18962 BIT_FIELD_REFs of non-mode-precision integral operands.
18964 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18967 * config/i386/sse.md
18968 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18969 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18970 first constants in pairs are multiples of 2. Formatting fixes.
18971 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18972 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18973 first constants in each quadruple are multiples of 4. Formatting fixes.
18975 2019-01-26 Martin Jambor <mjambor@suse.cz>
18978 * tree-inline.c: Include tree-cfgcleanup.h.
18979 (delete_unreachable_blocks_update_callgraph): Move...
18980 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18981 ...here, make externally visible, make second argument bool, adjust
18983 * tree-cfgcleanup.c: Include cgraph.h.
18984 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18986 * ipa-prop.c: Include tree-cfgcleanup.h.
18987 (ipcp_transform_function): Call
18988 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18990 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18992 PR rtl-optimization/88846
18993 * ira.c (process_set_for_memref_referenced_p): New.
18994 (memref_referenced_p): Add new param. Use
18995 process_set_for_memref_referenced_p. Add new switch cases.
18996 (memref_used_between_p): Pass new arg to memref_referenced_p.
18998 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
19001 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
19002 argument ABI_BREAK. Set to true if the calculated alignment has
19003 changed in gcc-9. Check bit-fields for their base type alignment.
19004 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
19005 (aarch64_function_arg_boundary): Likewise.
19006 (aarch64_gimplify_va_arg_expr): Likewise.
19008 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19010 PR middle-end/89037
19011 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
19012 instead of accessing TREE_INT_CST_ELT directly.
19014 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
19016 * doc/sourcebuild.texi (Environment attributes): Add fenv and
19017 fenv_exceptions description.
19019 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
19021 PR rtl-optimization/87763
19022 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
19023 Allow SUBREG when matching CC_NZmode compare.
19025 2019-01-25 Richard Biener <rguenther@suse.de>
19027 PR tree-optimization/89049
19028 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
19029 Look at the pattern stmt to determine if the stmt is vectorized.
19031 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19033 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
19034 (pred_mov<mode>): Handle all-register forms using both a new
19035 alternative and a split.
19037 2019-01-25 Richard Biener <rguenther@suse.de>
19039 PR tree-optimization/86865
19040 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19041 Reject non-do-while loops.
19043 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
19045 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
19046 * config/rs6000/constraints.md (Q constraint): Use REG_P.
19047 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
19048 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19049 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
19050 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19051 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
19052 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
19053 vlogical_operand, gpc_reg_operand, int_reg_operand,
19054 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
19055 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
19056 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
19057 (save_world_operation, restore_world_operation, lmw_operation,
19058 stmw_operation): Use MEM_P and REG_P.
19059 (tie_operand): Use MEM_P.
19060 (vrsave_operation, crsave_operation): Use REG_P.
19061 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
19062 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
19063 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
19064 (call_operand): Use HARD_REGISTER_P.
19065 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
19067 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
19068 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
19069 quad_aligned_load_p, replace_swapped_aligned_store,
19070 recombine_lvx_pattern, replace_swapped_aligned_load,
19071 recombine_stvx_pattern): Use MEM_P.
19072 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
19073 Use MEM_P and SYMBOL_REF_P.
19074 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
19075 (insn_is_swappable_p): Use REG_P and MEM_P.
19076 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
19077 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
19079 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
19080 Use CONST_DOUBLE_P.
19081 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
19083 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
19084 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
19085 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
19086 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
19088 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19089 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
19090 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
19091 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
19092 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
19093 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
19094 rs6000_split_logical_di): Use CONST_INT_P.
19095 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
19096 REG_P and SYMBOL_REF_P.
19097 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
19098 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
19099 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
19100 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
19101 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
19102 (small_data_operand, print_operand_address): Use CONST_INT_P and
19104 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
19105 (rs6000_init_hard_regno_mode_ok, direct_move_p):
19106 Use HARD_REGISTER_NUM_P.
19107 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
19108 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
19109 SUBREG_P and SYMBOL_REF_P.
19110 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
19111 and HARD_REGISTER_NUM_P.
19112 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
19114 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
19115 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
19117 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
19118 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
19119 find_addr_reg): Use REG_P.
19120 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
19121 (rs6000_emit_le_vsx_move): Use SUBREG_P.
19122 (offsettable_ok_by_alignment, constant_pool_expr_p,
19123 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
19124 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
19125 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
19126 rs6000_assemble_integer, create_TOC_reference,
19127 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
19128 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
19129 (rs6000_split_vec_extract_var): Use reg_or_subregno.
19130 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19131 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19132 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19133 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19134 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
19135 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
19136 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
19137 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
19138 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
19139 and cbranch<mode>4): Use CONST_INT_P.
19140 (multiple define_splits): Use REG_P and SUBREG_P.
19141 (define_expands call, call_value): Use MEM_P.
19142 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
19143 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
19144 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
19145 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
19146 and HARD_REGISTER_NUM_P.
19147 (multiple define_splits): Use HARD_REGISTER_NUM_P.
19149 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
19151 PR rtl-optimization/88948
19152 * rtl.h (prepare_copy_insn): New prototype.
19153 * gcse.c (prepare_copy_insn): New function, split out from
19154 process_insert_insn.
19155 (process_insert_insn): Use prepare_copy_insn.
19156 * store-motion.c (replace_store_insn): Use prepare_copy_insn
19157 instead of gen_move_insn.
19159 2019-01-24 Jakub Jelinek <jakub@redhat.com>
19162 * config/i386/i386.c (ix86_pic_register_p): Return true for
19163 UNSPEC_SET_GOT too.
19165 PR tree-optimization/88964
19166 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
19167 punt if HONOR_SNANS (chrec).
19169 PR middle-end/89015
19170 * tree-nested.c (convert_nonlocal_reference_stmt,
19171 convert_local_reference_stmt, convert_tramp_reference_stmt,
19172 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
19173 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
19174 or GIMPLE_OMP_TASK.
19176 PR tree-optimization/89027
19177 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
19178 for "omp simd array" variables.
19180 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
19183 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
19184 force the alignment of m_val.
19186 2019-01-24 Richard Biener <rguenther@suse.de>
19189 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
19190 When in "legacy" debug mode make sure to reset self-origins.
19192 2019-01-24 Martin Liska <mliska@suse.cz>
19194 PR gcov-profile/88994
19195 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
19196 result will be always smaller or equal to the original.
19197 * gcov.c (mangle_name): Fix else branch where we should
19198 also copy to PTR and shift the pointer.
19200 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19202 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
19203 * vr-values.c (find_case_label_ranges): Fix a comment typo.
19205 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
19207 * common/config/i386/i386-common.c
19208 (OPTION_MASK_ISA_ENQCMD_SET,
19209 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
19210 (ix86_handle_option): Handle -menqcmd.
19211 * config.gcc (enqcmdintrin.h): New header file.
19212 * config/i386/cpuid.h (bit_ENQCMD): New bit.
19213 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19215 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
19217 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
19218 __builtin_ia32_enqcmds): New builtins.
19219 * config/i386/i386-c.c (__ENQCMD__): New macro.
19220 * config/i386/i386-option.c (ix86_target_string): Add
19222 (ix86_valid_target_attribute_inner_p): Likewise.
19223 * config/i386/i386-expand.c
19224 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
19225 IX86_BUILTIN_ENQCMDS.
19226 * config/i386/i386.h (TARGET_ENQCMD): New.
19227 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
19228 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
19229 (movdir64b_<mode>): Parameterize to enable share expansion code
19230 with ENQCMD in function ix86_expand_builtin.
19231 * config/i386/i386.opt: Add -menqcmd.
19232 * config/i386/immintrin.h: Include enqcmdintrin.h.
19233 * config/i386/enqcmdintrin.h: New intrinsic file.
19234 * doc/invoke.texi: Add -menqcmd.
19236 2019-01-23 Bin Cheng <bin.cheng@arm.com>
19237 Steve Ellcey <sellcey@marvell.com>
19240 * recog.c (address_operand): Return false on wrong mode for address.
19241 (constrain_operands): Check for mode with 'p' constraint.
19243 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
19246 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
19247 Disparage MMX alternative.
19248 (sse2_cvtpd2pi): Ditto.
19249 (sse2_cvttpd2pi): Ditto.
19251 2019-01-23 David Malcolm <dmalcolm@redhat.com>
19254 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
19255 use-after-free of the result of
19256 aarch64_get_extension_string_for_isa_flags.
19258 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19261 * doc/extend.texi: Document break and continue behavior in
19262 statement expressions.
19264 2019-01-23 Richard Biener <rguenther@suse.de>
19266 PR tree-optimization/89008
19267 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
19268 not leave another stray operand.
19270 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19272 * BASE-VER: Bump to 9.0.1.
19274 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
19276 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
19277 thunk that returns by reference, use the type of the return object
19278 of the thunk instead of that of the alias to build the dereference.
19280 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
19282 * config/arc/atomic.md: Add operand to DMB instruction.
19284 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19286 PR tree-optimization/88964
19287 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
19288 build_zero_cst instead of build_int_cst. Return false for loop
19289 invariants which honor signed zeros.
19291 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
19293 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
19295 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19298 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
19299 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
19300 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
19302 PR middle-end/88968
19303 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
19304 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
19307 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
19308 Disable for little endian.
19310 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19313 * config/arm/arm.c (arm_needs_double_word_align): Check
19314 DECL_BIT_FIELD_TYPE.
19316 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
19317 H.J. Lu <hongjiu.lu@intel.com>
19320 * config/i386/i386-builtin.def: Add mask2 to all builtin
19321 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
19323 * config/i386/i386.c (BDESC): Add mask2 to the definition.
19324 (BDESC_FIRST): Likewise.
19325 (define_builtin): Add an argument for mask2. Updated to handle
19326 both ix86_isa_flags and ix86_isa_flags2.
19327 (define_builtin_const): Likewise.
19328 (define_builtin_pure): Likewise.
19329 (define_builtin2): Deleted.
19330 (define_builtin_const2): Likewise.
19331 (builtin_description): Add a member, mask2.
19332 (bdesc_*): Add mask2 to builtin initializations.
19333 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
19334 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
19336 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
19338 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
19341 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
19344 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19347 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19348 alignment is dominated by a bitfield with 64-bit aligned base type.
19349 (arm_function_arg): Emit a warning if the alignment has changed since
19350 earlier GCC releases.
19351 (arm_function_arg_boundary): Likewise.
19352 (arm_setup_incoming_varargs): Likewise.
19354 2019-01-22 Richard Biener <rguenther@suse.de>
19356 PR tree-optimization/88862
19357 * graphite-scop-detection.c
19358 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
19360 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
19362 * doc/extend.tex (AMD GCN Function Attributes): New section.
19363 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
19364 * doc/invoke.texi (AMD GCN Options): New section.
19365 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
19367 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
19369 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
19370 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
19372 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19374 PR tree-optimization/88044
19375 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
19376 is false in the first iteration, but !every_iteration, return false
19377 instead of true with niter->niter zero.
19379 PR rtl-optimization/88904
19380 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
19381 any nonequal registers before processing BB_END (b).
19384 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
19386 (expand_binop_directly, expand_doubleword_clz,
19387 expand_doubleword_popcount, expand_ctz, expand_ffs,
19388 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
19390 PR rtl-optimization/49429
19392 PR rtl-optimization/86334
19394 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
19395 addressable from here...
19396 (emit_block_op_via_libcall): ... to here.
19398 2019-01-22 Richard Biener <rguenther@suse.de>
19400 * tree-vect-loop.c (vect_analyze_loop_operations): Use
19401 auto_vec for cost vector to fix memleak.
19402 (vectorize_fold_left_reduction): Properly gather SLP defs.
19403 (vectorizable_comparison): Do not swap operands to properly
19406 2019-01-22 Alan Modra <amodra@gmail.com>
19409 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
19410 stays a reg. Allow a const_int.
19411 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
19412 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
19413 (IS_NOMARK_TLSGETADDR): Define.
19414 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
19415 (rs6000_output_tlsargs): New function.
19416 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
19417 __tls_get_addr call takes an arg.
19418 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
19419 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
19421 (call_value_nonlocal_sysv): ..or here, delete split.
19422 (tls_gdld_nomark): Delete.
19423 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19424 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19425 (call_value_nonlocal_sysv): Likewise.
19426 (call_value_nonlocal_sysv_secure): Likewise.
19427 (call_value_nonlocal_aix): Likewise.
19428 (call_value_indirect_aix): Likewise.
19429 (call_value_indirect_elfv2): Likewise.
19430 (call_value_local32, call_value_local64): Disable for no-mark tls.
19431 (call_value_local_aix): Likewise.
19433 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19436 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19437 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19439 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19441 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19442 string contents as hash_map keys.
19444 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19447 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19448 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19449 instead of TYPE_ALIGN.
19450 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19451 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19452 pointer from TYPE_STUB_DECL.
19454 2019-01-21 Richard Biener <rguenther@suse.de>
19456 PR tree-optimization/88934
19457 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19458 at the possibly non-constant operand.
19459 (vect_get_constant_vectors): Adjust.
19461 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19464 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19465 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19466 instead of _X86INTRIN_H_INCLUDED.
19467 * onfig/i386/clwbintrin.h: Likewise.
19468 * config/i386/pkuintrin.h: Likewise.
19469 * config/i386/prfchwintrin.h: Likewise.
19470 * config/i386/rdseedintrin.h: Likewise.
19471 * config/i386/wbnoinvdintrin.h: Likewise.
19472 * config/i386/xsavecintrin.h: Likewise.
19473 * config/i386/xsavesintrin.h: Likewise.
19474 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19475 * config/i386/xsaveintrin.h: Likewise.
19476 * config/i386/xsaveoptintrin.h: Likewise.
19477 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19478 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19479 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19480 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19481 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19482 * config/i386/immintrin.h: Here.
19484 2019-01-20 Martin Jambor <mjambor@suse.cz>
19487 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19488 with aa_walk_budget.
19489 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19490 aa_walk_budget_p parameter.
19491 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19492 walk. Updated all callers.
19493 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19494 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19496 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19497 parameter info. Extract info from fbi. Pass fbi to recursive calls
19498 and to unmodified_parm.
19499 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19500 info, updated call to will_be_nonconstant_expr_predicate.
19501 (param_change_prob): New parameter fbi, limit AA walking.
19502 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19503 calls to various above functions.
19504 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19505 parameter. Use it to limit AA walking.
19506 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19507 fbi, limit AA walk.
19508 (detect_type_change): New parameter fbi, pass it on to
19509 detect_type_change_from_memory_writes.
19510 (detect_type_change_ssa): Likewise.
19511 (aa_overwalked): Removed.
19512 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19513 accordingly, adjust to the neew AA limiting scheme.
19514 (parm_ref_data_preserved_p): Likewise.
19515 (ipa_compute_jump_functions_for_edge): Adjust call to
19517 (ipa_analyze_call_uses): Likewise.
19518 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19519 (ipa_analyze_node): Initialize aa_walk_budget.
19520 (ipcp_transform_function): Likewise.
19521 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19522 to get_dynamic_type.
19524 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19526 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19527 outside of #if CHECKING_P code.
19529 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19531 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19532 New function, split out from...
19533 (loop_versioning::analyze_stride): ...here.
19534 (loop_versioning::find_per_loop_multiplication): Use gassign.
19535 (loop_versioning::analyze_term_using_scevs): Return a success code.
19536 (loop_versioning::analyze_arbitrary_term): New function.
19537 (loop_versioning::analyze_address_fragment): Use
19538 analyze_arbitrary_term if all else fails.
19540 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19543 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19546 2019-01-18 Richard Biener <rguenther@suse.de>
19548 PR tree-optimization/88903
19549 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19550 scalar stmts a SLP shift amount is composed of when detecting
19553 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19556 * config/arm/arm-cpus.in (mp): New feature.
19557 (sec): New feature.
19558 (fgroup ARMv7ve): Add mp and sec features.
19559 (arch armv7-a): Add options to allow mp and sec extensions.
19560 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19561 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19562 extenstions to the base architecture.
19563 (cpu cortex-a8): Add sec extension to the base architecture.
19564 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19565 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19566 variants down to the base v7-a varaint.
19567 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19568 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19569 of permitted extensions for -march=armv7-a and for
19570 -mcpu=generic-armv7-a.
19572 2019-01-18 Martin Liska <mliska@suse.cz>
19574 * params.def: Fix comment.
19575 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19577 (gimple_gen_ic_func_profiler): Likewise.
19579 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19581 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19582 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19583 and put in error checks for stack protector guard options.
19584 (aarch64_stack_protect_guard): New.
19585 (TARGET_STACK_PROTECT_GUARD): Define.
19586 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19587 (reg_stack_protect_address<mode>): New.
19588 (stack_protect_set): Adjust for SSP_GLOBAL.
19589 (stack_protect_test): Likewise.
19590 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19591 (-mstack-protector-guard): Likewise.
19592 (-mstack-protector-guard-offset): Likewise.
19594 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19596 PR tree-optimization/86214
19597 * tree-inline.h (struct copy_body_data): Add
19598 add_clobbers_to_eh_landing_pads member.
19599 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19600 (copy_edges_for_bb): Call it if EH edge destination is <
19601 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19602 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19603 if flag_stack_reuse != SR_NONE and clear it afterwards.
19605 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19608 * doc/install.texi (with-multilib-list): Document for aarch64.
19610 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19613 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19614 (("..."))) with ("...").
19616 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19618 * doc/extend.texi (Built-in Functions for Memory Model Aware
19619 Atomic Operations): Document atomic fetch and nand.
19621 2019-01-18 Martin Liska <mliska@suse.cz>
19622 Richard Biener <rguenther@suse.de>
19624 PR middle-end/88587
19625 * cgraph.h (create_version_clone_with_body): Add new argument
19627 * cgraphclones.c (cgraph_node::create_version_clone): Add
19628 DECL_ATTRIBUTES to a newly created decl. And call
19629 valid_attribute_p so that proper cl_target_optimization_node
19630 is set for the newly created declaration.
19631 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19633 (expand_target_clones): Do not call valid_attribute_p, it must
19635 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19638 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19641 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19642 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19643 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19645 2019-01-17 Martin Sebor <msebor@redhat.com>
19647 PR middle-end/88273
19648 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19649 Handle anti-ranges the same as no range at all.
19651 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19653 * config/aarch64/aarch64.c (cgraph.h): New include.
19654 (intl.h): New include.
19655 (supported_simd_type): New function.
19656 (currently_supported_simd_type): Ditto.
19657 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19658 (aarch64_simd_clone_adjust): Ditto.
19659 (aarch64_simd_clone_usable): Ditto.
19660 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19661 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19662 (TARGET_SIMD_CLONE_USABLE): Ditto.
19663 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19664 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19667 2019-01-17 Martin Sebor <msebor@redhat.com>
19669 PR tree-optimization/88800
19670 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19671 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19672 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19673 redundant argument. Add new argument and issue diagnostics under
19674 its control. Detect out-of-bounds access even with warnings
19676 (check_bounds_or_overlap): Change return type. Add argument.
19677 (wrestrict_dom_walker::check_call): Adjust.
19678 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19679 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19680 check_bounds_or_overlap's return value.
19681 (handle_builtin_stxncpy): Same.
19682 (handle_builtin_strcat): Same.
19684 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19685 Kwok Cheung Yeung <kcy@codesourcery.com>
19686 Julian Brown <julian@codesourcery.com>
19687 Tom de Vries <tom@codesourcery.com>
19689 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19691 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19693 * doc/sourcebuild.texi: Document dg-require-effective-target
19694 llvm_binutils and offload_gcn.
19696 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19697 Kwok Cheung Yeung <kcy@codesourcery.com>
19698 Julian Brown <julian@codesourcery.com>
19699 Tom de Vries <tom@codesourcery.com>
19701 * doc/sourcebuild.texi: Document dg-required-effective-target
19704 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19705 Kwok Cheung Yeung <kcy@codesourcery.com>
19706 Julian Brown <julian@codesourcery.com>
19707 Tom de Vries <tom@codesourcery.com>
19708 Jan Hubicka <hubicka@ucw.cz>
19709 Martin Jambor <mjambor@suse.cz>
19711 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19712 * configure.ac: Check for dlopen.
19713 * configure: Regenerate.
19715 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19716 Kwok Cheung Yeung <kcy@codesourcery.com>
19717 Julian Brown <julian@codesourcery.com>
19718 Tom de Vries <tom@codesourcery.com>
19719 Jan Hubicka <hubicka@ucw.cz>
19720 Martin Jambor <mjambor@suse.cz>
19722 * common/config/gcn/gcn-common.c: New file.
19723 * config/gcn/driver-gcn.c: New file.
19724 * config/gcn/gcn-builtins.def: New file.
19725 * config/gcn/gcn-hsa.h: New file.
19726 * config/gcn/gcn-modes.def: New file.
19727 * config/gcn/gcn-opts.h: New file.
19728 * config/gcn/gcn-passes.def: New file.
19729 * config/gcn/gcn-protos.h: New file.
19730 * config/gcn/gcn-run.c: New file.
19731 * config/gcn/gcn-tree.c: New file.
19732 * config/gcn/gcn.c: New file.
19733 * config/gcn/gcn.h: New file.
19734 * config/gcn/gcn.opt: New file.
19735 * config/gcn/t-gcn-hsa: New file.
19737 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19738 Kwok Cheung Yeung <kcy@codesourcery.com>
19739 Julian Brown <julian@codesourcery.com>
19740 Tom de Vries <tom@codesourcery.com>
19741 Jan Hubicka <hubicka@ucw.cz>
19742 Martin Jambor <mjambor@suse.cz>
19744 * config/gcn/constraints.md: New file.
19745 * config/gcn/gcn-valu.md: New file.
19746 * config/gcn/gcn.md: New file.
19747 * config/gcn/predicates.md: New file.
19749 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19751 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19752 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19753 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19754 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19756 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19759 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19760 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19761 it and document registers.
19763 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19765 * config/aarch64/aarch64.c (ares_tunings): Define.
19766 * config/aarch64/aarch64-cores.def (ares): Use the above.
19768 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19772 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19774 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19775 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19776 (_mm512_maskz_fixupimm_round_pd): Ditto.
19777 (_mm512_fixupimm_round_ps): Ditto.
19778 (_mm512_maskz_fixupimm_round_ps): Ditto.
19779 (_mm_fixupimm_round_sd): Ditto.
19780 (_mm_maskz_fixupimm_round_sd): Ditto.
19781 (_mm_fixupimm_round_ss): Ditto.
19782 (_mm_maskz_fixupimm_round_ss): Ditto.
19783 (_mm512_fixupimm_pd): Ditto.
19784 (_mm512_maskz_fixupimm_pd): Ditto.
19785 (_mm512_fixupimm_ps): Ditto.
19786 (_mm512_maskz_fixupimm_ps): Ditto.
19787 (_mm_fixupimm_sd): Ditto.
19788 (_mm_maskz_fixupimm_sd): Ditto.
19789 (_mm_fixupimm_ss): Ditto.
19790 (_mm_maskz_fixupimm_ss): Ditto.
19791 (_mm512_mask_fixupimm_round_pd): Update builtin.
19792 (_mm512_mask_fixupimm_round_ps): Ditto.
19793 (_mm_mask_fixupimm_round_sd): Ditto.
19794 (_mm_mask_fixupimm_round_ss): Ditto.
19795 (_mm512_mask_fixupimm_pd): Ditto.
19796 (_mm512_mask_fixupimm_ps): Ditto.
19797 (_mm_mask_fixupimm_sd): Ditto.
19798 (_mm_mask_fixupimm_ss): Ditto.
19799 * config/i386/avx512vlintrin.h:
19800 (_mm256_fixupimm_pd): Update parameters and builtin.
19801 (_mm256_maskz_fixupimm_pd): Ditto.
19802 (_mm256_fixupimm_ps): Ditto.
19803 (_mm256_maskz_fixupimm_ps): Ditto.
19804 (_mm_fixupimm_pd): Ditto.
19805 (_mm_maskz_fixupimm_pd): Ditto.
19806 (_mm_fixupimm_ps): Ditto.
19807 (_mm_maskz_fixupimm_ps): Ditto.
19808 (_mm256_mask_fixupimm_pd): Update builtin.
19809 (_mm256_mask_fixupimm_ps): Ditto.
19810 (_mm_mask_fixupimm_pd): Ditto.
19811 (_mm_mask_fixupimm_ps): Ditto.
19812 * config/i386/i386-builtin-types.def: Add new types and remove
19814 * config/i386/i386-builtin.def: Update builtin definitions.
19815 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19816 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19817 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19818 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19819 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19820 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19821 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19822 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19823 * config/i386/subst.md:
19824 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19825 (round_saeonly_sd_mask_op4): Ditto.
19826 (round_saeonly_expand_operand5): Ditto.
19827 (round_saeonly_expand): Update.
19829 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19833 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19835 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19836 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19837 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19838 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19839 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19840 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19841 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19843 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19847 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19850 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19851 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19852 instead of UNSPEC_FIXUPIMM.
19854 2019-01-17 Richard Biener <rguenther@suse.de>
19857 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19858 and friends for the LTO part of debug info.
19860 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19862 PR tree-optimization/86214
19863 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19866 PR rtl-optimization/88870
19867 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19868 throw if we can't alter the cfg or delete dead exceptions.
19869 (mark_insn): Don't call find_call_stack_args for such calls.
19871 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19873 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19874 prototypes for vec_st.
19875 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19876 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19877 mainly on signed/unsigned long long and double.
19879 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19882 * combine.c (delete_noop_moves): Convert to "bool" return,
19883 returning true if any edges are eliminated.
19884 (combine_instructions): Also return true if delete_noop_moves
19887 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19889 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19890 correct max nunits for endian swap.
19891 (aarch64_expand_fcmla_builtin): Correct subreg code.
19892 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19893 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19896 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19898 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19899 Handle split indirect COMPLEX_TYPE arguments.
19901 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19904 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19905 bit is set by add and compare.
19906 (CC_ADC): New CC_MODE.
19907 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19908 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19909 comparison. Add detection for CC_ADCmode.
19910 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19912 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19913 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19914 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19915 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19916 to eliminate the need for zero-extending the operands.
19917 (add<mode>3_compareC_imm): Delete. Merge into ...
19918 (add<mode>3_compareC): ... this. Restructure the comparison to
19919 eliminate the need for zero-extending the operands.
19920 (add<mode>3_carryin): Use LTU for the overflow detection.
19921 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19922 Reexpress comparison for overflow.
19923 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19924 (add<mode>3_carryinC): Likewise.
19925 (add<mode>3_carryinV): Use LTU for carry between partials.
19926 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19927 handling of CC_Cmode and add CC_ADCmode.
19928 (aarch64_borrow_operation): Likewise.
19930 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19932 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19933 Remove patternmode.
19934 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19935 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19936 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19937 Remove endianness conversion.
19939 2019-01-16 Martin Liska <mliska@suse.cz>
19941 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19943 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19945 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19946 (path_prefix_reset): Move up in the source file.
19947 (find_fortran_preinclude_file): Make complex search for the
19948 fortran header files.
19950 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19952 * godump.c (go_output_typedef): When outputting a typedef, refer
19953 to the underlying type by its name and not its structure.
19955 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19958 * tree.c (build_function_type): Assert that arg_types is not
19961 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19963 PR inline-asm/52813
19964 * doc/extend.texi: Document that listing the stack pointer in the
19965 clobber list of an asm is a deprecated feature.
19966 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19967 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19968 warning instead of an error for clobbers of the stack pointer.
19969 Add a note explaining why.
19971 2019-01-15 Richard Biener <rguenther@suse.de>
19974 * dwarf2out.c (gen_member_die): Do not generate inheritance
19977 2019-01-15 Richard Biener <rguenther@suse.de>
19979 PR tree-optimization/88855
19980 * tree-if-conv.c (combine_blocks): Collect
19981 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19983 2019-01-15 Tom de Vries <tdevries@suse.de>
19986 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19987 lhs == NULL_TREE for gang-level reduction.
19989 2019-01-15 Richard Biener <rguenther@suse.de>
19990 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19993 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19994 return true if SSA_NAME is already marked in visited bitmap.
19995 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19997 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19999 PR tree-optimization/88775
20000 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
20001 equal == 0 equality pointer comparisons some more if compared in
20002 integral types and either one points to an automatic var and the
20003 other to a global, or we can prove at least one points to the middle
20004 or both point to start or both point to end.
20006 2019-01-14 Andi Kleen <ak@linux.intel.com>
20008 * Makefile.in: Lower autofdo sampling rate by 10x.
20009 * Makefile.tpl: Dito.
20011 2019-01-14 Tom Honermann <tom@honermann.net>
20013 * defaults.h: Define CHAR8_TYPE.
20015 2019-01-14 Martin Sebor <msebor@redhat.com>
20018 * doc/extend.texi (Darwin Format Checks): Clarify.
20020 2019-01-14 Richard Biener <rguenther@suse.de>
20022 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
20023 whether we are in (simplify ...) or (match ...) context.
20025 2019-01-14 Jakub Jelinek <jakub@redhat.com>
20027 PR rtl-optimization/88796
20028 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
20029 * cfgexpand.c (stack_protect_prologue): Initialize
20030 crtl->stack_protect_guard_decl.
20031 * function.c (stack_protect_epilogue): Use it instead of calling
20032 targetm.stack_protect_guard again.
20033 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
20034 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
20035 crtl->stack_protect_guard_decl.
20036 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
20037 on the returned MEM_EXPR.
20039 2019-01-12 Tom de Vries <tdevries@suse.de>
20041 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
20042 vector length using -fopenacc-dim.
20044 2019-01-12 Tom de Vries <tdevries@suse.de>
20046 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
20047 lengths into account.
20049 2019-01-12 Svante Signell <svante.signell@gmail.com>
20051 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
20052 (TARGET_CAN_SPLIT_STACK): Define.
20053 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
20055 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20057 * params.def (inline-unit-growth): Set to 40.
20059 2019-01-12 Jakub Jelinek <jakub@redhat.com>
20061 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
20063 2019-01-12 Tom de Vries <tdevries@suse.de>
20065 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
20066 region calling vector-partitionable routine, set default_vector_length
20069 2019-01-12 Tom de Vries <tdevries@suse.de>
20071 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
20072 variable default_vector_length.
20074 2019-01-12 Tom de Vries <tdevries@suse.de>
20076 PR middle-end/88703
20077 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
20078 from oacc_default_dims, as oacc_validate_dims would do it, and apply
20081 2019-01-12 Tom de Vries <tdevries@suse.de>
20083 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
20084 (nvptx_goacc_validate_dims): Add used parameter.
20085 * doc/tm.texi: Regenerate.
20086 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
20087 argument to call to targetm.goacc.validate_dims.
20088 (default_goacc_validate_dims): Add used
20090 * target.def (validate_dims): Add used parameter in DEFHOOK.
20091 * targhooks.h (default_goacc_validate_dims): Add used parameter.
20093 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20095 PR middle-end/85956
20097 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
20099 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
20100 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
20101 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
20102 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
20104 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
20106 PR rtl-optimization/87305
20108 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
20109 for little endian pseudos used as paradoxical subreg.
20111 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20113 PR tree-optimization/88693
20114 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
20115 for STRING_CSTs that don't contain any NUL characters in the first
20116 TREE_STRING_LENGTH bytes.
20118 2019-01-11 Alan Modra <amodra@gmail.com>
20122 * genattrtab.c (min_fn): Don't translate values.
20123 (min_attr_value): Return INT_MAX when the value can't be calculated.
20124 Return minimum among any values that can be calculated.
20125 (max_attr_value): Adjust.
20127 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20129 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
20131 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20133 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20134 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
20135 (aarch64_return_call_with_max_clobbers): New function.
20136 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
20137 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
20139 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
20140 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
20141 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
20142 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
20143 * cselib.c (cselib_process_insn): Add argument to
20144 targetm.hard_regno_call_part_clobbered call.
20145 * ira-conflicts.c (ira_build_conflicts): Ditto.
20146 * ira-costs.c (ira_tune_allocno_costs): Ditto.
20147 * lra-constraints.c (inherit_reload_reg): Ditto.
20148 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
20149 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
20150 argument. Call targetm.return_call_with_max_clobbers.
20151 Add argument to targetm.hard_regno_call_part_clobbered call.
20152 (calls_have_same_clobbers_p): New function.
20153 (process_bb_lives): Add call_insn and last_call_insn variables.
20154 Pass call_insn to check_pseudos_live_through_calls.
20155 Modify if stmt to check targetm.return_call_with_max_clobbers.
20156 Update setting of flush variable.
20157 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
20159 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
20160 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
20161 targetm.hard_regno_call_part_clobbered call.
20162 * reginfo.c (choose_hard_reg_mode): Ditto.
20163 * regrename.c (check_new_reg_p): Ditto.
20164 * reload.c (find_equiv_reg): Ditto.
20165 * reload1.c (emit_reload_insns): Ditto.
20166 * sched-deps.c (deps_analyze_insn): Ditto.
20167 * sel-sched.c (init_regs_for_mode): Ditto.
20168 (mark_unavailable_hard_regs): Ditto.
20169 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
20170 * target.def (hard_regno_call_part_clobbered): Add insn argument.
20171 (return_call_with_max_clobbers): New target function.
20172 * doc/tm.texi: Regenerate.
20173 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
20174 * hooks.c (hook_bool_uint_mode_false): Change to
20175 hook_bool_insn_uint_mode_false.
20176 * hooks.h (hook_bool_uint_mode_false): Ditto.
20178 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20180 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20181 (aarch64_remove_extra_call_preserved_regs): New function.
20182 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
20183 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
20184 * doc/tm.texi: Regenerate.
20185 * final.c (get_call_reg_set_usage): Call new hook.
20186 * target.def (remove_extra_call_preserved_regs): New hook.
20187 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
20188 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
20190 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20193 * passes.c (finish_optimization_passes): Call print_combine_total_stats
20194 inside of pass_combine_1 dump rather than pass_profile_1.
20196 2019-01-11 Tom de Vries <tdevries@suse.de>
20198 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
20199 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
20200 (PTX_NUM_PER_WORKER_BARRIERS): Define.
20201 (nvptx_apply_dim_limits): Prevent vector_length 64 and
20204 2019-01-11 Tom de Vries <tdevries@suse.de>
20206 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
20208 2019-01-11 Jan Beulich <jbeulich@suse.com>
20210 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
20211 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
20212 sse2_cvtsi2sd): Add {l}.
20213 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
20216 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20219 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
20221 (*float<floatunssuffix>v2div2sf2): New define_insn.
20222 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
20223 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
20224 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
20225 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
20226 match_operands with "const0_operand" "C".
20228 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20230 * config/aarch64/aarch64-builtins.c
20231 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
20232 (aarch64_init_simd_builtins): ...Here
20234 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
20236 PR rtl-optimization/87305
20238 (setup_live_pseudos_and_spill_after_risky_transforms): Check
20239 allocation for big endian pseudos used as paradoxical subregs and
20240 spill them if it is wrong.
20241 * lra-constraints.c (lra_constraints): Add a comment.
20243 2019-01-10 Richard Biener <rguenther@suse.de>
20245 PR tree-optimization/88792
20246 * tree-ssa-pre.c (get_representative_for): Do not return a
20249 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20251 PR middle-end/84877
20253 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
20254 (assign_parm_setup_block): Do the argument slot realignment here
20257 2019-01-10 Stefan Agner <stefan@agner.ch>
20260 * config/arm/arm.c (arm_option_override_internal): Force
20261 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
20263 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20266 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
20269 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20271 * config/arm/arm-builtins.c
20272 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
20273 (MAC_LANE_PAIR_QUALIFIERS): New.
20274 (arm_expand_builtin_args): Use it.
20275 (arm_expand_builtin_1): Likewise.
20276 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
20277 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
20278 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
20279 * config/arm/arm_neon.h:
20280 (vcadd_rot90_f16): New.
20281 (vcaddq_rot90_f16): New.
20282 (vcadd_rot270_f16): New.
20283 (vcaddq_rot270_f16): New.
20286 (vcmla_lane_f16): New.
20287 (vcmla_laneq_f16): New.
20288 (vcmlaq_lane_f16): New.
20289 (vcmlaq_laneq_f16): New.
20290 (vcmla_rot90_f16): New.
20291 (vcmlaq_rot90_f16): New.
20292 (vcmla_rot90_lane_f16): New.
20293 (vcmla_rot90_laneq_f16): New.
20294 (vcmlaq_rot90_lane_f16): New.
20295 (vcmlaq_rot90_laneq_f16): New.
20296 (vcmla_rot180_f16): New.
20297 (vcmlaq_rot180_f16): New.
20298 (vcmla_rot180_lane_f16): New.
20299 (vcmla_rot180_laneq_f16): New.
20300 (vcmlaq_rot180_lane_f16): New.
20301 (vcmlaq_rot180_laneq_f16): New.
20302 (vcmla_rot270_f16): New.
20303 (vcmlaq_rot270_f16): New.
20304 (vcmla_rot270_lane_f16): New.
20305 (vcmla_rot270_laneq_f16): New.
20306 (vcmlaq_rot270_lane_f16): New.
20307 (vcmlaq_rot270_laneq_f16): New.
20308 (vcadd_rot90_f32): New.
20309 (vcaddq_rot90_f32): New.
20310 (vcadd_rot270_f32): New.
20311 (vcaddq_rot270_f32): New.
20314 (vcmla_lane_f32): New.
20315 (vcmla_laneq_f32): New.
20316 (vcmlaq_lane_f32): New.
20317 (vcmlaq_laneq_f32): New.
20318 (vcmla_rot90_f32): New.
20319 (vcmlaq_rot90_f32): New.
20320 (vcmla_rot90_lane_f32): New.
20321 (vcmla_rot90_laneq_f32): New.
20322 (vcmlaq_rot90_lane_f32): New.
20323 (vcmlaq_rot90_laneq_f32): New.
20324 (vcmla_rot180_f32): New.
20325 (vcmlaq_rot180_f32): New.
20326 (vcmla_rot180_lane_f32): New.
20327 (vcmla_rot180_laneq_f32): New.
20328 (vcmlaq_rot180_lane_f32): New.
20329 (vcmlaq_rot180_laneq_f32): New.
20330 (vcmla_rot270_f32): New.
20331 (vcmlaq_rot270_f32): New.
20332 (vcmla_rot270_lane_f32): New.
20333 (vcmla_rot270_laneq_f32): New.
20334 (vcmlaq_rot270_lane_f32): New.
20335 (vcmlaq_rot270_laneq_f32): New.
20336 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
20337 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
20338 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
20339 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
20340 vcmlaq_lane270): New.
20341 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20342 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20343 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20344 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20345 (arm_option_reconfigure_globals): Use them.
20346 * config/arm/iterators.md (VDF, VQ_HSF): New.
20347 (VCADD, VCMLA): New.
20348 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20349 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20351 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20352 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
20354 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20356 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20357 Add qualifier_lane_pair_index.
20358 (emit-rtl.h): Include.
20359 (TYPES_QUADOP_LANE_PAIR): New.
20360 (aarch64_simd_expand_args): Use it.
20361 (aarch64_simd_expand_builtin): Likewise.
20362 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
20364 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
20365 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
20366 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
20367 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
20368 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
20369 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
20370 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
20371 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
20372 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
20373 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
20374 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
20375 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
20376 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
20377 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20378 Add __ARM_FEATURE_COMPLEX.
20379 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
20380 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
20381 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
20382 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20383 fcmlaq_lane270): New.
20384 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20385 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
20386 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
20387 * config/aarch64/arm_neon.h:
20388 (vcadd_rot90_f16): New.
20389 (vcaddq_rot90_f16): New.
20390 (vcadd_rot270_f16): New.
20391 (vcaddq_rot270_f16): New.
20394 (vcmla_lane_f16): New.
20395 (vcmla_laneq_f16): New.
20396 (vcmlaq_lane_f16): New.
20397 (vcmlaq_rot90_lane_f16): New.
20398 (vcmla_rot90_laneq_f16): New.
20399 (vcmla_rot90_lane_f16): New.
20400 (vcmlaq_rot90_f16): New.
20401 (vcmla_rot90_f16): New.
20402 (vcmlaq_laneq_f16): New.
20403 (vcmla_rot180_laneq_f16): New.
20404 (vcmla_rot180_lane_f16): New.
20405 (vcmlaq_rot180_f16): New.
20406 (vcmla_rot180_f16): New.
20407 (vcmlaq_rot90_laneq_f16): New.
20408 (vcmlaq_rot270_laneq_f16): New.
20409 (vcmlaq_rot270_lane_f16): New.
20410 (vcmla_rot270_laneq_f16): New.
20411 (vcmlaq_rot270_f16): New.
20412 (vcmla_rot270_f16): New.
20413 (vcmlaq_rot180_laneq_f16): New.
20414 (vcmlaq_rot180_lane_f16): New.
20415 (vcmla_rot270_lane_f16): New.
20416 (vcadd_rot90_f32): New.
20417 (vcaddq_rot90_f32): New.
20418 (vcaddq_rot90_f64): New.
20419 (vcadd_rot270_f32): New.
20420 (vcaddq_rot270_f32): New.
20421 (vcaddq_rot270_f64): New.
20425 (vcmla_lane_f32): New.
20426 (vcmla_laneq_f32): New.
20427 (vcmlaq_lane_f32): New.
20428 (vcmlaq_laneq_f32): New.
20429 (vcmla_rot90_f32): New.
20430 (vcmlaq_rot90_f32): New.
20431 (vcmlaq_rot90_f64): New.
20432 (vcmla_rot90_lane_f32): New.
20433 (vcmla_rot90_laneq_f32): New.
20434 (vcmlaq_rot90_lane_f32): New.
20435 (vcmlaq_rot90_laneq_f32): New.
20436 (vcmla_rot180_f32): New.
20437 (vcmlaq_rot180_f32): New.
20438 (vcmlaq_rot180_f64): New.
20439 (vcmla_rot180_lane_f32): New.
20440 (vcmla_rot180_laneq_f32): New.
20441 (vcmlaq_rot180_lane_f32): New.
20442 (vcmlaq_rot180_laneq_f32): New.
20443 (vcmla_rot270_f32): New.
20444 (vcmlaq_rot270_f32): New.
20445 (vcmlaq_rot270_f64): New.
20446 (vcmla_rot270_lane_f32): New.
20447 (vcmla_rot270_laneq_f32): New.
20448 (vcmlaq_rot270_lane_f32): New.
20449 (vcmlaq_rot270_laneq_f32): New.
20450 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20451 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20452 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20453 (FCADD, FCMLA): New.
20455 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20457 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20461 * config/pa/pa.c: Change "can not" to "cannot".
20462 * gimple-ssa-evrp-analyze.c: Likewise.
20463 * ipa-icf.c: Likewise.
20464 * ipa-polymorphic-call.c: Likewise.
20465 * ipa-pure-const.c: Likewise.
20466 * lra-constraints.c: Likewise.
20467 * lra-remat.c: Likewise.
20468 * reload1.c: Likewise.
20469 * reorg.c: Likewise.
20470 * tree-ssa-uninit.c: Likewise.
20472 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20476 * Makefile.in: Mechanically replace "can not" with "cannot".
20477 * alias.c: Likewise.
20478 * builtins.c: Likewise.
20479 * calls.c: Likewise.
20480 * cgraph.c: Likewise.
20481 * cgraph.h: Likewise.
20482 * cgraphclones.c: Likewise.
20483 * cgraphunit.c: Likewise.
20484 * combine-stack-adj.c: Likewise.
20485 * combine.c: Likewise.
20486 * common/config/i386/i386-common.c: Likewise.
20487 * config/aarch64/aarch64.c: Likewise.
20488 * config/alpha/sync.md: Likewise.
20489 * config/arc/arc.c: Likewise.
20490 * config/arc/predicates.md: Likewise.
20491 * config/arm/arm-c.c: Likewise.
20492 * config/arm/arm.c: Likewise.
20493 * config/arm/arm.h: Likewise.
20494 * config/arm/arm.md: Likewise.
20495 * config/arm/cortex-r4f.md: Likewise.
20496 * config/csky/csky.c: Likewise.
20497 * config/csky/csky.h: Likewise.
20498 * config/darwin-f.c: Likewise.
20499 * config/epiphany/epiphany.md: Likewise.
20500 * config/i386/i386.c: Likewise.
20501 * config/i386/sol2.h: Likewise.
20502 * config/m68k/m68k.c: Likewise.
20503 * config/mcore/mcore.h: Likewise.
20504 * config/microblaze/microblaze.md: Likewise.
20505 * config/mips/20kc.md: Likewise.
20506 * config/mips/sb1.md: Likewise.
20507 * config/nds32/nds32.c: Likewise.
20508 * config/nds32/predicates.md: Likewise.
20509 * config/pa/pa.c: Likewise.
20510 * config/rs6000/e300c2c3.md: Likewise.
20511 * config/rs6000/rs6000.c: Likewise.
20512 * config/s390/s390.h: Likewise.
20513 * config/sh/sh.c: Likewise.
20514 * config/sh/sh.md: Likewise.
20515 * config/spu/vmx2spu.h: Likewise.
20516 * cprop.c: Likewise.
20517 * dbxout.c: Likewise.
20518 * df-scan.c: Likewise.
20519 * doc/cfg.texi: Likewise.
20520 * doc/extend.texi: Likewise.
20521 * doc/fragments.texi: Likewise.
20522 * doc/gty.texi: Likewise.
20523 * doc/invoke.texi: Likewise.
20524 * doc/lto.texi: Likewise.
20525 * doc/md.texi: Likewise.
20526 * doc/objc.texi: Likewise.
20527 * doc/rtl.texi: Likewise.
20528 * doc/tm.texi: Likewise.
20530 * emit-rtl.c: Likewise.
20531 * emit-rtl.h: Likewise.
20532 * except.c: Likewise.
20533 * expmed.c: Likewise.
20534 * expr.c: Likewise.
20535 * fold-const.c: Likewise.
20536 * genautomata.c: Likewise.
20537 * gimple-fold.c: Likewise.
20538 * hard-reg-set.h: Likewise.
20539 * ifcvt.c: Likewise.
20540 * ipa-comdats.c: Likewise.
20541 * ipa-cp.c: Likewise.
20542 * ipa-devirt.c: Likewise.
20543 * ipa-fnsummary.c: Likewise.
20544 * ipa-icf.c: Likewise.
20545 * ipa-inline-transform.c: Likewise.
20546 * ipa-inline.c: Likewise.
20547 * ipa-polymorphic-call.c: Likewise.
20548 * ipa-profile.c: Likewise.
20549 * ipa-prop.c: Likewise.
20550 * ipa-pure-const.c: Likewise.
20551 * ipa-reference.c: Likewise.
20552 * ipa-split.c: Likewise.
20553 * ipa-visibility.c: Likewise.
20555 * ira-build.c: Likewise.
20556 * ira-color.c: Likewise.
20557 * ira-conflicts.c: Likewise.
20558 * ira-costs.c: Likewise.
20559 * ira-int.h: Likewise.
20560 * ira-lives.c: Likewise.
20563 * loop-invariant.c: Likewise.
20564 * loop-unroll.c: Likewise.
20565 * lower-subreg.c: Likewise.
20566 * lra-assigns.c: Likewise.
20567 * lra-constraints.c: Likewise.
20568 * lra-eliminations.c: Likewise.
20569 * lra-lives.c: Likewise.
20570 * lra-remat.c: Likewise.
20571 * lra-spills.c: Likewise.
20573 * lto-cgraph.c: Likewise.
20574 * lto-streamer-out.c: Likewise.
20575 * postreload-gcse.c: Likewise.
20576 * predict.c: Likewise.
20577 * profile-count.h: Likewise.
20578 * profile.c: Likewise.
20579 * recog.c: Likewise.
20581 * reload.c: Likewise.
20582 * reload1.c: Likewise.
20583 * reorg.c: Likewise.
20584 * resource.c: Likewise.
20585 * rtl.def: Likewise.
20587 * rtlanal.c: Likewise.
20588 * sched-deps.c: Likewise.
20589 * sched-ebb.c: Likewise.
20590 * sched-rgn.c: Likewise.
20591 * sel-sched-ir.c: Likewise.
20592 * sel-sched.c: Likewise.
20593 * shrink-wrap.c: Likewise.
20594 * simplify-rtx.c: Likewise.
20595 * symtab.c: Likewise.
20596 * target.def: Likewise.
20597 * toplev.c: Likewise.
20598 * tree-call-cdce.c: Likewise.
20599 * tree-cfg.c: Likewise.
20600 * tree-complex.c: Likewise.
20601 * tree-core.h: Likewise.
20602 * tree-eh.c: Likewise.
20603 * tree-inline.c: Likewise.
20604 * tree-loop-distribution.c: Likewise.
20605 * tree-nrv.c: Likewise.
20606 * tree-profile.c: Likewise.
20607 * tree-sra.c: Likewise.
20608 * tree-ssa-alias.c: Likewise.
20609 * tree-ssa-dce.c: Likewise.
20610 * tree-ssa-dom.c: Likewise.
20611 * tree-ssa-forwprop.c: Likewise.
20612 * tree-ssa-loop-im.c: Likewise.
20613 * tree-ssa-loop-ivcanon.c: Likewise.
20614 * tree-ssa-loop-ivopts.c: Likewise.
20615 * tree-ssa-loop-niter.c: Likewise.
20616 * tree-ssa-phionlycprop.c: Likewise.
20617 * tree-ssa-phiopt.c: Likewise.
20618 * tree-ssa-propagate.c: Likewise.
20619 * tree-ssa-threadedge.c: Likewise.
20620 * tree-ssa-threadupdate.c: Likewise.
20621 * tree-ssa-uninit.c: Likewise.
20622 * tree-ssanames.c: Likewise.
20623 * tree-streamer-out.c: Likewise.
20624 * tree.c: Likewise.
20625 * tree.h: Likewise.
20626 * vr-values.c: Likewise.
20628 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20630 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20631 (ix86_split_xorsign): Ditto.
20632 * config/i386/i386.c (ix86_expand_xorsign): New function.
20633 (ix86_split_xorsign): Ditto.
20634 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20635 (xorsign<mode>3): New expander.
20636 (xorsign<mode>3_1): New insn_and_split pattern.
20637 * config/i386/sse.md (xorsign<mode>3): New expander.
20639 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20641 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20642 (*tablejump_sp64): Likewise.
20643 (*tablejump<P:mode>): ...this.
20644 (*call_address_sp32): Merge into...
20645 (*call_address_sp64): Likewise.
20646 (*call_address<P:mode>): ...this.
20647 (*call_symbolic_sp32): Merge into...
20648 (*call_symbolic_sp64): Likewise.
20649 (*call_symbolic<P:mode>): ...this.
20650 (call_value): Remove constraint and add predicate.
20651 (*call_value_address_sp32): Merge into...
20652 (*call_value_address_sp64): Likewise.
20653 (*call_value_address<P:mode>): ...this.
20654 (*call_value_symbolic_sp32): Merge into...
20655 (*call_value_symbolic_sp64): Likewise.
20656 (*call_value_symbolic<P:mode>): ...this.
20657 (*sibcall_symbolic_sp32): Merge into...
20658 (*sibcall_symbolic_sp64): Likewise.
20659 (*sibcall_symbolic<P:mode>): ...this.
20660 (sibcall_value): Remove constraint and add predicate.
20661 (*sibcall_value_symbolic_sp32): Merge into...
20662 (*sibcall_value_symbolic_sp64): Likewise.
20663 (*sibcall_value_symbolic<P:mode>): ...this.
20664 (window_save): Minor tweak.
20665 (*branch_sp32): Merge into...
20666 (*branch_sp64): Likewise.
20667 (*branch<P:mode>): ...this.
20669 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20670 James Clarke <jrtc27@jrtc27.com>
20673 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20674 consistently in TLS address generation and adjust code to the renaming
20675 of patterns. Mark calls to __tls_get_addr as const.
20676 * config/sparc/sparc.md (tgd_hi22): Turn into...
20677 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20678 (tgd_lo10): Turn into...
20679 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20680 (tgd_add32): Merge into...
20681 (tgd_add64): Likewise.
20682 (tgd_add<P:mode>): ...this and use Pmode throughout.
20683 (tldm_hi22): Turn into...
20684 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20685 (tldm_lo10): Turn into...
20686 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20687 (tldm_add32): Merge into...
20688 (tldm_add64): Likewise.
20689 (tldm_add<P:mode>): ...this and use Pmode throughout.
20690 (tldm_call32): Merge into...
20691 (tldm_call64): Likewise.
20692 (tldm_call<P:mode>): ...this and use Pmode throughout.
20693 (tldo_hix22): Turn into...
20694 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20695 (tldo_lox10): Turn into...
20696 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20697 (tldo_add32): Merge into...
20698 (tldo_add64): Likewise.
20699 (tldo_add<P:mode>): ...this and use Pmode throughout.
20700 (tie_hi22): Turn into...
20701 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20702 (tie_lo10): Turn into...
20703 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20704 (tie_ld64): Use DImode throughout.
20705 (tie_add32): Merge into...
20706 (tie_add64): Likewise.
20707 (tie_add<P:mode>): ...this and use Pmode throughout.
20708 (tle_hix22_sp32): Merge into...
20709 (tle_hix22_sp64): Likewise.
20710 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20711 (tle_lox22_sp32): Merge into...
20712 (tle_lox22_sp64): Likewise.
20713 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20714 (*tldo_ldub_sp32): Merge into...
20715 (*tldo_ldub_sp64): Likewise.
20716 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20717 (*tldo_ldub1_sp32): Merge into...
20718 (*tldo_ldub1_sp64): Likewise.
20719 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20720 (*tldo_ldub2_sp32): Merge into...
20721 (*tldo_ldub2_sp64): Likewise.
20722 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20723 (*tldo_ldsb1_sp32): Merge into...
20724 (*tldo_ldsb1_sp64): Likewise.
20725 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20726 (*tldo_ldsb2_sp32): Merge into...
20727 (*tldo_ldsb2_sp64): Likewise.
20728 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20729 (*tldo_ldub3_sp64): Use DImode throughout.
20730 (*tldo_ldsb3_sp64): Likewise.
20731 (*tldo_lduh_sp32): Merge into...
20732 (*tldo_lduh_sp64): Likewise.
20733 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20734 (*tldo_lduh1_sp32): Merge into...
20735 (*tldo_lduh1_sp64): Likewise.
20736 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20737 (*tldo_ldsh1_sp32): Merge into...
20738 (*tldo_ldsh1_sp64): Likewise.
20739 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20740 (*tldo_lduh2_sp64): Use DImode throughout.
20741 (*tldo_ldsh2_sp64): Likewise.
20742 (*tldo_lduw_sp32): Merge into...
20743 (*tldo_lduw_sp64): Likewise.
20744 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20745 (*tldo_lduw1_sp64): Use DImode throughout.
20746 (*tldo_ldsw1_sp64): Likewise.
20747 (*tldo_ldx_sp64): Likewise.
20748 (*tldo_stb_sp32): Merge into...
20749 (*tldo_stb_sp64): Likewise.
20750 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20751 (*tldo_sth_sp32): Merge into...
20752 (*tldo_sth_sp64): Likewise.
20753 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20754 (*tldo_stw_sp32): Merge into...
20755 (*tldo_stw_sp64): Likewise.
20756 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20757 (*tldo_stx_sp64): Use DImode throughout.
20759 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20761 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20762 check configure option to set BTI and Return Address Signing.
20763 * configure.ac: Add --enable-standard-branch-protection and
20764 --disable-standard-branch-protection.
20765 * configure: Regenerated.
20766 * doc/install.texi: Document the same.
20768 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20769 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20771 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20772 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20773 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20775 * config/aarch64/aarch64-bti-insert.c: New file.
20776 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20778 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20780 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20781 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20782 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20783 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20785 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20787 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20788 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20789 Disable bti for -mbranch-protection=none.
20790 (aarch64_handle_standard_branch_protection): Enable bti for
20791 -mbranch-protection=standard.
20792 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20793 -mbranch-protection.
20794 (aarch64_bti_enabled): Check if bti is enabled.
20795 * config/aarch64/aarch64.opt: Declare target variable.
20796 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20798 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20800 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20801 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20802 (aarch64_expand_epilogue): Likewise.
20803 (aarch64_output_mi_thunk): Likewise.
20804 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20805 TAILCALL_ADDR_REGS to x16 and x17.
20806 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20808 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20810 * config/aarch64/aarch64-option-extensions.def: Define
20811 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20812 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20813 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20814 (AARCH64_FL_PREDRES): New.
20815 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20816 AARCH64_FL_PREDRES by default.
20817 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20819 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20821 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20823 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20824 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20825 * doc/invoke.texi: Document ARMv8.5-A.
20827 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20829 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20830 (xorsign<mode>3): Likewise.
20832 2019-01-09 Jelinek <jakub@redhat.com>
20834 PR middle-end/88758
20835 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20836 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20838 PR rtl-optimization/88331
20839 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20840 not currently_expanding_to_rtl.
20842 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20844 * doc/invoke.texi (-Os): Remove trailing spaces.
20845 (-finline-functions): Remove reference to -O2.
20847 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20849 PR rtl-optimization/79593
20850 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20852 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20853 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20855 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20858 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20862 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20863 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20865 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20868 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20869 ix86_avx_u128_mode_entry.
20871 2019-01-08 Martin Liska <mliska@suse.cz>
20873 PR tree-optimization/88753
20874 * tree-switch-conversion.c (switch_conversion::build_one_array):
20875 Come up with local variable constructor. Convert first to
20876 type of constructor values.
20878 2019-01-08 Richard Biener <rguenther@suse.de>
20880 PR tree-optimization/86554
20881 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20882 rpo_avail): Move earlier.
20883 (visit_nary_op): When value-numbering to expressions
20884 with different overflow behavior make sure there's an
20885 available expression on the path.
20887 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20889 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20890 aarch64_parse_branch_protection,
20891 struct aarch64_branch_protect_type,
20892 aarch64_handle_no_branch_protection,
20893 aarch64_handle_standard_branch_protection,
20894 aarch64_validate_mbranch_protection,
20895 aarch64_handle_pac_ret_protection,
20896 aarch64_handle_attr_branch_protection,
20897 accepted_branch_protection_string,
20898 aarch64_pac_ret_subtypes,
20899 aarch64_branch_protect_types,
20900 aarch64_handle_pac_ret_leaf): Define.
20901 (aarch64_override_options_after_change_1, aarch64_override_options):
20902 Add check for accepted_branch_protection_string.
20903 (aarch64_option_save): Save accepted_branch_protection_string.
20904 (aarch64_option_restore): Save accepted_branch_protection_string.
20905 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20906 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20907 msign-return-address.
20908 * doc/invoke.texi: Add mbranch-protection.
20910 2019-01-08 Alan Modra <amodra@gmail.com>
20913 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20914 Delete "unknownp" parameter. Adjust callers. Handle
20915 CONST_INT, PLUS, MINUS, and MULT.
20916 (attr_value_aligned): Renamed from or_attr_value.
20917 (min_attr_value): Return INT_MIN for unhandled rtl case..
20918 (min_fn): ..and translate to INT_MAX here.
20919 (write_length_unit_log): Modify to cope without "unknown".
20920 (write_attr_value): Handle IF_THEN_ELSE.
20922 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20924 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20925 optimization for masked stores.
20927 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20929 PR middle-end/88567
20930 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20931 output vector directly to duplicate_and_interleave instead of
20932 going through a temporary. Postpone insertion of ctor_seq to
20933 the end of the loop.
20935 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20938 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20939 unsigned_p. Handle signed and unsigned overflow correction as
20941 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20943 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20945 (add<mode>3_compareV_imm): Make this callable for expanding.
20946 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20947 aarch64_plus_operand for operand 2.
20948 (subv<GPI:mode>_insn): New insn pattern.
20949 (subv<GPI:mode>_imm): Likewise.
20950 (negv<GPI:mode>3): New expand pattern.
20951 (negv<GPI:mode>_insn): New insn pattern.
20952 (negv<GPI:mode>_cmp_only): Likewise.
20953 (cmpv<GPI:mode>_insn): Likewise.
20954 (subvti4): Use register_operand for operand 1. Update call to
20955 aarch64_expand_subvti.
20956 (usubvti4): Likewise.
20957 (negvti3): New expand pattern.
20958 (negdi_carryout): New insn pattern.
20959 (negvdi_carryinV): New insn pattern.
20960 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20961 version the named version.
20962 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20964 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20966 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20968 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20969 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20970 (sub<mode>3_carryinCV): Delete.
20971 (sub<GPI:mode>3_carryinV): New expand pattern.
20972 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20974 2019-01-07 Richard Biener <rguenther@suse.de>
20976 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20977 of tree_operand_hash.
20979 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20981 PR tree-optimization/88598
20982 * tree.h (single_nonzero_element): Declare.
20983 * tree.c (single_nonzero_element): New function.
20984 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20985 if I is the only nonzero element of CST.
20987 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20989 PR tree-optimization/88598
20990 * tree.h (initializer_each_zero_or_onep): Declare.
20991 * tree.c (initializer_each_zero_or_onep): New function.
20992 (signed_or_unsigned_type_for): Handle float types too.
20993 (unsigned_type_for, signed_type_for): Update comments accordingly.
20994 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20995 x & { 0 or -1, 0 or -1, ... }.
20997 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20999 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
21000 with x86_64-pc-linux-gnu.
21002 2019-01-07 Tom de Vries <tdevries@suse.de>
21005 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
21007 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
21010 2019-01-07 Jakub Jelinek <jakub@redhat.com>
21012 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
21013 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
21014 TARGET_AVX512F as condition.
21017 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
21018 const_not_ok_for_debug_p target hook.
21019 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
21020 on UNSPEC and subexpressions thereof if all subexpressions of the
21021 UNSPEC are CONSTANT_P.
21023 PR tree-optimization/88676
21024 * tree-ssa-phiopt.c (two_value_replacement): New function.
21025 (tree_ssa_phiopt_worker): Call it.
21028 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
21029 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
21032 * tree-vect-generic.c: Include insn-config.h and recog.h.
21033 (expand_vector_piecewise): Add defaulted ret_type argument,
21034 if non-NULL, use that in preference to type for the result type.
21035 (expand_vector_parallel): Formatting fix.
21036 (do_vec_conversion, do_vec_narrowing_conversion,
21037 expand_vector_conversion): New functions.
21038 (expand_vector_operations_1): Call expand_vector_conversion
21039 for VEC_CONVERT ifn calls.
21040 * internal-fn.def (VEC_CONVERT): New internal function.
21041 * internal-fn.c (expand_VEC_CONVERT): New function.
21042 * fold-const-call.c (fold_const_vec_convert): New function.
21043 (fold_const_call): Use it for CFN_VEC_CONVERT.
21044 * doc/extend.texi (__builtin_convertvector): Document.
21046 2019-01-07 Tom de Vries <tdevries@suse.de>
21048 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
21049 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
21050 vector_red_partition, vector_red_sym): New global variables.
21051 (nvptx_option_override): Initialize vector_red_sym.
21052 (nvptx_declare_function_name): Restore red_partition register.
21053 (nvptx_file_end): Emit code to declare the vector reduction variables.
21054 (nvptx_output_red_partition): New function.
21055 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
21056 large vector reductions.
21057 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
21058 (nvptx_init_builtins): Add VECTOR_ADDR.
21059 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
21060 Handle nvptx_expand_shared_addr.
21061 (nvptx_get_shared_red_addr): Add vector argument and handle large
21063 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
21065 (nvptx_goacc_reduction_init): Likewise.
21066 (nvptx_goacc_reduction_fini): Likewise.
21067 (nvptx_goacc_reduction_teardown): Likewise.
21068 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
21069 init,fini,teardown}.
21070 (nvptx_init_axis_predicate): Initialize vector_red_partition.
21071 (nvptx_set_current_function): Init vector_red_partition.
21072 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
21073 (nvptx_red_partition): New insn.
21074 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
21076 2019-01-07 Tom de Vries <tdevries@suse.de>
21079 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
21082 2019-01-07 Tom de Vries <tdevries@suse.de>
21084 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
21085 (nvptx_option_override): Init oacc_bcast_partition.
21086 (nvptx_init_oacc_workers): New function.
21087 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
21088 (nvptx_needs_shared_bcast): New function.
21089 (nvptx_find_par): Generalize to enable vectors to use shared-memory
21090 to propagate state.
21091 (nvptx_shared_propagate): Initialize vector bcast partition and
21092 synchronization state.
21093 (nvptx_single): Generalize to enable vectors to use shared-memory
21094 to propagate state.
21095 (nvptx_process_pars): Likewise.
21096 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
21097 * config/nvptx/nvptx.h (struct machine_function): Add
21098 bcast_partition and sync_bar members.
21100 2019-01-07 Tom de Vries <tdevries@suse.de>
21102 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
21103 (nvptx_apply_dim_limits): New function.
21104 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
21107 2019-01-07 Tom de Vries <tdevries@suse.de>
21109 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
21110 as late as possible.
21112 2019-01-07 Tom de Vries <tdevries@suse.de>
21114 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
21115 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
21116 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
21117 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
21118 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
21120 2019-01-07 Tom de Vries <tdevries@suse.de>
21122 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
21124 2019-01-07 Tom de Vries <tdevries@suse.de>
21126 * omp-offload.c (oacc_get_min_dim): New function.
21127 * omp-offload.h (oacc_get_min_dim): Declare.
21129 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
21132 * config/i386/i386.c (function_value_ms_64): Return small sturct in
21133 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
21135 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21139 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
21141 * ipa-inline.c (edge_badness): Use inlined_time instead of
21142 inline_summaries->get.
21144 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21146 * opts.c (enable_fdo_optimizations): Enable
21147 version-loops-for-strides, loop-interchange, unrol-and-jam
21148 and tree-loop-distribution.
21149 * invoke.texi: Document newly enabled options.
21151 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21153 * doc/invoke.texi (max-inline-insns-small): New parameters.
21154 * ipa-inline.c (want_early_inline_function_p): simplify.
21155 (want_inline_small_function_p): Fix pasto from previous patch;
21156 use max-inline-insns-small bound.
21157 * params.def (max-inline-insns-small): New param.
21158 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
21159 variables correctly.
21161 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21163 * doc/invoke.texi: Document max-inline-insns-size,
21164 uninlined-function-insns, uninlined-function-time,
21165 uninlined-thunk-insns and uninlined-thunk-time.
21166 * params.def: Add max-inline-insns-size,
21167 uninlined-function-insns, uninlined-function-time,
21168 uninlined-thunk-insns and uninlined-thunk-time.
21169 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
21171 * ipa-inline.c (can_inline_edge_by_limits_p,
21172 want_inline_small_function_p): Use new parameters.
21174 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21176 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
21178 2019-01-05 Jakub Jelinek <jakub@redhat.com>
21180 PR middle-end/82564
21182 * expr.c (expand_assignment): For calls returning VLA structures
21183 if to_rtx is not a MEM, force it into a stack temporary.
21186 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
21187 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
21188 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
21189 subexpressions of both operands.
21190 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
21191 subrtxes are CONSTANT_P.
21192 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
21193 2018-11-09 changes.
21195 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
21197 * params.def (hot-bb-count-ws-permille): Set to 990.
21199 2019-01-04 Martin Sebor <msebor@redhat.com>
21202 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
21205 2019-01-04 Martin Sebor <msebor@redhat.com>
21208 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
21210 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21212 * gdbinit.in: Turn off pagination for the skip commands, restore
21213 it to previous state afterwards.
21215 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21218 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
21219 of GET_MODE (opN) as modes of the libcall arguments.
21221 2019-01-04 Jan Beulich <jbeulich@suse.com>
21223 * config/i386/sse.md
21224 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
21225 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
21226 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21227 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21228 avx512f_vmcmp<mode>3<round_saeonly_name>,
21229 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
21230 avx512f_maskcmp<mode>3,
21231 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21232 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21233 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21234 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21235 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21236 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21237 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21238 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21239 <avx512>_testm<mode>3<mask_scalar_merge_name>,
21240 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
21241 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
21242 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
21243 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
21244 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
21245 avx512cd_maskb_vec_dup<mode>,
21246 avx512cd_maskw_vec_dup<mode>,
21247 avx512dq_fpclass<mode><mask_scalar_merge_name>,
21248 avx512dq_vmfpclass<mode>,
21249 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
21252 2019-01-03 Martin Sebor <msebor@redhat.com>
21254 PR tree-optimization/88659
21255 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
21257 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
21259 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
21260 unaligned vsx and avoid lxvd2x/stxvd2x.
21261 (gen_lvx_v4si_move): New function.
21263 2019-01-03 Tom de Vries <tdevries@suse.de>
21265 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
21266 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
21268 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
21270 2019-01-03 Tom de Vries <tdevries@suse.de>
21272 * config/nvptx/nvptx.c (struct offload_attrs): New.
21273 (populate_offload_attrs): New function. Factor mask extraction out of
21274 nvptx_reorg. Add extraction of dimensions.
21275 (nvptx_reorg): Use populate_offload_attrs.
21277 2019-01-03 Tom de Vries <tdevries@suse.de>
21279 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
21280 cases for oacc_min_dims_p and routine_p. Add asserts for
21281 oacc_default_dims_p and offload_region_p.
21283 2019-01-03 Tom de Vries <tdevries@suse.de>
21285 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
21286 factored out of ...
21287 (nvptx_goacc_validate_dims): ... here.
21289 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21291 PR tree-optimization/85574
21292 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
21294 (struct ssa_equip_hash_traits): Declare.
21295 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
21297 2019-01-03 Jakub Jelinek <jakub@redhat.com>
21300 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
21301 change it to qualified_type.
21303 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21305 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
21306 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
21308 2019-01-02 Martin Sebor <msebor@redhat.com>
21309 Jeff Law <law@redhat.com>
21311 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
21312 (get_range_strlen_tree): Update appropriately.
21314 * gimple-fold.h (get_range_strlen): Drop unused last argument.
21316 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
21317 rather than set_range_info.
21318 * tree-ssa-strlen.c (set_strlen_range): Extracted from
21319 maybe_set_strlen_range. Handle potentially boundary crossing
21320 cases more conservatively.
21321 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
21322 Call set_strlen_range.
21323 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
21325 PR middle-end/88663
21326 * gimple-fold.c (get_range_strlen): Update prototype to no longer
21327 need the flexp argument.
21328 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
21329 from calls to get_range_strlen. Update comments. Just update
21330 VAL for an unterminated const char array and let the reset of the
21331 code handle it normally. No longer try to set *flexp. Adjust
21333 (get_range_strlen): Update for the new get_range_strlen API.
21334 (get_maxval_strlen): Similarly.
21335 (gimple_fold_builtin_strlen): Handle update meaning of return value
21336 from get_range_strlen.
21337 * gimple-ssa-sprintf.c (get_string_length): Update for the new
21338 get_range_strlen API.
21340 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
21343 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21344 false at WPA time when body was removed.
21346 2019-01-02 Martin Liska <mliska@suse.cz>
21348 PR tree-optimization/88650
21349 * predict.c (set_even_probabilities): Calculate probability
21350 remainer only when really used.
21352 2019-01-02 Richard Biener <rguenther@suse.de>
21354 PR middle-end/88651
21355 * tree-data-ref.c (analyze_subscript_affine_affine): Use
21356 widest_ints when mangling max_stmt_execution results.
21358 2019-01-02 Richard Biener <rguenther@suse.de>
21360 PR tree-optimization/88621
21361 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
21362 bitfields when canoncalizing.
21364 2019-01-02 Richard Biener <rguenther@suse.de>
21367 * config/i386/x86-tune-costs.h (intel_cost): Adjust
21368 cost of cheap SSE instruction.
21370 2019-01-02 Richard Biener <rguenther@suse.de>
21373 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
21374 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
21376 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
21377 set after UIDs before splitting them.
21379 2019-01-01 Martin Sebor <msebor@redhat.com>
21380 Jeff Law <law@redhat.com>
21382 * gimple-fold.c (get_range_strlen_tree): Record if the computed
21383 length is optimistic. If it is, then arrange to compute the
21384 conservative length as well.
21386 * gimple-fold.h (get_range_strlen): Update prototype.
21387 * builtins.c (check_access): Update call to get_range_strlen to use
21388 c_strlen_data pointer. Change various variable accesses to instead
21389 pull data from the c_strlen_data structure.
21390 (check_strncat_sizes, expand_builtin_strncat): Likewise.
21391 * calls.c (maybe_warn_nonstring_arg): Likewise.
21392 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
21393 minimum length if maximum lengh is unknown.
21394 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
21395 that used c_strlen, it's no longer needed. Restructure slightly.
21396 (format_string): Set unlikely range appropriately.
21397 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
21399 (get_range_strlen): Accept c_strlen_data pointer for external
21400 call sites as well. Pass through to call to internal get_range_strlen.
21401 Adjust minlen, maxlen and maxbound as needed.
21402 (get_maxval_strlen): Update comments.
21403 (gimple_fold_builtin_strlen): Update call to get_range_strlen
21404 to use c_strlen_data pointer. Change variable accesses to instead
21405 use c_strlen_data data members.
21407 * gimple-fold.c (get_range_strlen): Update prototype.
21408 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
21409 local variables. Use pdata to return information to caller.
21410 Update calls to get_range_strlen. Update pdata->maxbound.
21411 (get_range_strlen -- static version): Similarly.
21412 (get_range_strlen -- extern version): Update for internal
21413 get_range_strlen API change. Convert to external data format.
21414 (get_maxval_strlen): Similarly.
21416 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
21418 * coverage.c (get_coverage_counts): Use current_function_decl.
21419 * profile.c (read_thunk_profile): New function.
21420 (branch_prob): Add THUNK parameter.
21421 * tree-profile.c (tree_profiling): Handle thunks.
21422 * value-prof.c (init_node_map): Handle thunks.
21423 * value-prof.h (branch_prob): Upate prototype.
21424 (read_thunk_profile): Declare.
21426 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21428 Update copyright years.
21430 * gcc.c (process_command): Update copyright notice dates.
21431 * gcov-dump.c (print_version): Ditto.
21432 * gcov.c (print_version): Ditto.
21433 * gcov-tool.c (print_version): Ditto.
21434 * gengtype.c (create_file): Ditto.
21435 * doc/cpp.texi: Bump @copying's copyright year.
21436 * doc/cppinternals.texi: Ditto.
21437 * doc/gcc.texi: Ditto.
21438 * doc/gccint.texi: Ditto.
21439 * doc/gcov.texi: Ditto.
21440 * doc/install.texi: Ditto.
21441 * doc/invoke.texi: Ditto.
21443 Copyright (C) 2019 Free Software Foundation, Inc.
21445 Copying and distribution of this file, with or without modification,
21446 are permitted in any medium without royalty provided the copyright
21447 notice and this notice are preserved.