1 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
8 * opt-functions.awk (integer_range_info): Make sure values are in
9 numeric context before operating with them.
11 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13 * genemit.c (gen_split): Print the filename and line number where the
14 splitter (or peephole2) was defined, to the dump file.
16 2019-09-07 Jakub Jelinek <jakub@redhat.com>
18 PR tree-optimization/91665
19 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
20 incompatible with the type of PHI result.
22 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
25 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
26 gen_unaligned_storedi for 4-byte aligned addresses.
28 2019-09-06 Jim Wilson <jimw@sifive.com>
30 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
33 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
35 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
37 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
39 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
40 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
42 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
45 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
46 cost of SSE->integer and integer->SSE moves from 2 to 6.
49 2019-09-06 Jakub Jelinek <jakub@redhat.com>
51 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
52 before testing TYPE_TRANSPARENT_AGGR.
53 * calls.c (initialize_argument_information, load_register_parameters):
56 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
58 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
62 2019-09-06 Martin Liska <mliska@suse.cz>
64 * doc/match-and-simplify.texi: Separate tuples with ;.
66 2019-09-06 Martin Liska <mliska@suse.cz>
69 * Makefile.in: Remove tlink.o.
70 * collect2.c (do_link): New function isolated
73 * collect2.h (do_tlink): Remove declaration of do_tlink.
74 * doc/extend.texi: Remove documentation of -frepo.
75 * doc/invoke.texi: Likewise.
76 * doc/sourcebuild.texi: Remove cleanup-repo-files.
79 2019-09-05 Jakub Jelinek <jakub@redhat.com>
80 Jim Wilson <jimw@sifive.com>
83 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
84 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
85 paradoxical_subreg_p (operands[0]).
86 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
87 use as intermediate value.
89 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
91 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
92 (sync_compare_and_swap<mode>_insn): Likewise.
94 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
97 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
98 without movmisalign optab.
100 2019-09-05 Jakub Jelinek <jakub@redhat.com>
105 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
106 types, use type of their first field instead of type of
109 2019-09-05 Richard Biener <rguenther@suse.de>
111 PR rtl-optimization/91656
112 * postreload-gcse.c (record_last_mem_set_info): Revert addition
115 2019-09-05 Richard Biener <rguenther@suse.de>
118 * tree-inline.c (declare_return_variable): Mark the return
119 slot as addressable after building an address of it.
121 2019-09-05 Arnaud Charlet <charlet@adacore.com>
123 * doc/install.texi: Update and clarify requirements to build GNAT.
125 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
128 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
129 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
130 call to be in memory.
131 (pass_expand::execute): Call discover_nonconstant_array_refs before
132 setting currently_expanding_to_rtl.
134 2019-09-04 Caroline Tice <cmtice@google.com>
136 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
139 2019-09-04 Marek Polacek <polacek@redhat.com>
141 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
143 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
146 * config/i386/i386.c (inline_secondary_memory_needed): Return true
147 for QI and HImode moves between SSE and general registers.
149 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
152 * doc/invoke.texi: Document -Wenum-conversion.
154 2019-09-04 Richard Biener <rguenther@suse.de>
156 PR rtl-optimization/36262
157 * postreload-gcse.c: Include intl.h and gcse.h.
158 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
159 to avoid linear list walk.
160 (record_last_mem_set_info): Gate off if not computing transparentness.
161 (get_bb_avail_insn): If transparentness isn't computed give up
163 (gcse_after_reload_main): Skip compute_transp and extended PRE
164 if gcse_or_cprop_is_too_expensive says so.
166 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
168 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
170 (msp430_select_section): Handle decls with the "noinit" attribute with
171 default_elf_select_section.
172 Handle SECCAT_RODATA_MERGE_* section types with
173 default_elf_select_section.
174 Add comments about handling of unsupported section types.
175 (msp430_section_type_flags): Remove handling of the noinit section.
177 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
179 * config/msp430/msp430.c (msp430_attr): Remove warnings about
180 conflicting msp430-specific attributes.
181 (msp430_section_attr): Likewise.
182 Add warnings about conflicts with generic "noinit" and "section"
184 Fix grammar in -mlarge error message.
185 (msp430_data_attr): Rename to msp430_persist_attr.
186 Add warnings about conflicts with generic "noinit" and "section"
188 Add warning for when variable is not initialized.
189 Chain conditionals which prevent the attribute being added.
190 (ATTR_EXCL): New helper.
191 (attr_reent_exclusions): New exclusion table.
192 (attr_naked_exclusions): Likewise.
193 (attr_crit_exclusions): Likewise.
194 (attr_lower_exclusions): Likewise.
195 (attr_upper_exclusions): Likewise.
196 (attr_either_exclusions): Likewise.
197 (attr_persist_exclusions): Likewise.
198 (msp430_attribute_table): Update with exclusion rules.
199 (msp430_output_aligned_decl_common): Don't output common symbol if decl
202 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
204 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
205 (msp430_handle_generic_attribute): New function.
206 * doc/tm.texi: Regenerate.
207 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
208 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
209 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
210 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
212 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
214 PR tree-optimization/91504
215 * match.pd: Add ((~a & b) ^a) --> (a | b).
217 2019-09-03 Jakub Jelinek <jakub@redhat.com>
220 * config/i386/i386-expand.c (split_double_mode): If there is more than
221 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
222 already split matching MEM operand instead of calling adjust_address
225 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
227 * config.gcc: Obsolete spu target. Remove references to spu.
228 * configure.ac: Remove references to spu.
229 * configure: Regenerate.
230 * config/spu/: Remove directory.
231 * common/config/spu/: Remove directory.
233 * doc/extend.texi: Remove references to spu.
234 * doc/invoke.texi: Likewise.
235 * doc/md.texi: Likewise.
236 * doc/sourcebuild.texi: Likewise.
238 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
243 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
244 and SSA_NAME referring to CONSTANT_P correctly.
246 2019-09-03 Richard Biener <rguenther@suse.de>
248 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
249 (vn_nary_op_insert): Likewise.
250 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
251 (vn_nary_op_lookup): Likewise.
252 (vn_nary_op_insert): Likewise.
254 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
256 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
257 (*op0, 1) instead of XEXP (*op1, 0).
259 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
261 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
262 (aarch64_fjcvtzs): New define_insn.
263 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
264 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
266 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
267 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
268 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
269 __ARM_FEATURE_JCVT where appropriate.
270 * config/aarch64/arm_acle.h (__jcvt): Define.
272 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
274 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
275 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
276 (aarch64_<frintnzs_op><mode>): New define_insn.
277 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
278 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
279 __ARM_FEATURE_FRINT when appropriate.
280 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
281 frint32x, frint64z, frint64x.
282 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
283 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
284 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
285 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
286 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
287 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
288 * config/aarch64/iterators.md (VSFDF): Define.
289 (FRINTNZX): Likewise.
290 (frintnzs_op): Likewise.
292 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
294 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
295 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
297 * config/aarch64/aarch64-tune.md: Regenerated.
298 * doc/invoke.texi: Document the new processors.
300 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
302 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
306 (sve2-sm4): Likewise.
309 (svebitperm): Likewise.
311 2019-09-03 Jakub Jelinek <jakub@redhat.com>
312 Richard Biener <rguenther@suse.de>
314 PR tree-optimization/91597
315 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
316 BIT_AND_EXPR optimization for pointers, even if both operand
317 ranges don't include NULL, the result can be NULL.
319 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
322 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
323 (non_mem_decl_p): ...this.
324 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
325 (expand_assignment): Call mem_ref_referes_to_non_mem_p
326 unconditionally as before.
328 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
331 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
332 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
333 * tree.def (LTGT_EXPR): Likewise.
334 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
336 2019-09-02 Jakub Jelinek <jakub@redhat.com>
339 * fold-const.c (range_check_type): For enumeral and boolean
340 type, pass 1 to type_for_size langhook instead of
341 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
342 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
343 (build_range_check): Don't call unsigned_type_for for pointer types.
344 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
345 range_check_type result.
347 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
349 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
350 (replace_ref): Do not replace a chain of only two candidates which are
351 valid memory references.
353 2019-09-02 Martin Liska <mliska@suse.cz>
355 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
356 Bail out when we'll end up with the same number of clusters as
358 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
359 (jump_table_cluster::can_be_handled): Remove the guard
360 as it's already handled in ::is_enabled. Allocate output
361 after early bail out.
363 2019-09-02 Martin Liska <mliska@suse.cz>
365 PR gcov-profile/91601
366 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
367 (path_contains_zero_or_negative_cycle_arc): ... this and handle
369 (circuit): Handle also negative edges as they can happen
372 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
375 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
376 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
377 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
379 2019-09-01 Jakub Jelinek <jakub@redhat.com>
382 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
383 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
384 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
388 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
389 GIMPLE_ASM TREE_LIST operands.
391 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
393 * doc/generic.texi (Unary and Binary Expressions): Mark up
394 an instance of TYPE_MIN.
396 2019-08-31 Stafford Horne <shorne@gmail.com>
398 * config/or1k/constraints.md (t): New constraint.
399 * config/or1k/or1k.h (GOT_REGS): New register class.
400 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
402 2019-08-30 Jim Wilson <jimw@sifive.com>
404 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
405 and -fpic and -mplt then disable -msave-restore and warn.
407 2019-08-30 Martin Sebor <msebor@redhat.com>
410 * tree-ssa-strlen.c (handle_store): Use a fallback location if
411 the statement doesn't have one.
412 * gimple-pretty-print.c (percent_G_format): Same.
415 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
416 before using them to validate MEM_REF offset.
418 2019-08-30 Marek Polacek <polacek@redhat.com>
420 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
422 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
424 * config/arm/arm.md (unaligned_loaddi,
425 unaligned_storedi): New unspec insn patterns.
426 * config/arm/neon.md (unaligned_storev8qi): Likewise.
427 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
428 and unaligned_storedi for 4-byte aligned memory.
429 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
430 4-byte aligned memory.
432 2019-08-30 Martin Jambor <mjambor@suse.cz>
434 tree-optimization/91579
435 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
436 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
438 (arg_needs_copy_p): Removed.
439 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
441 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
443 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
445 * config/i386/i386-features.c
446 (general_scalar_chain::compute_convert_gain):
447 Correct cost for double-word shifts.
448 (general_scalar_to_vector_candidate_p): Reject count operands
449 greater or equal to mode bitsize.
451 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
453 * config/i386/i386.c (inline_secondary_memory_needed): Return true
454 for moves between SSE and non-general registers and between
455 mask and non-general registers.
456 (ix86_register_move_cost): Remove stalled comment.
458 2019-08-29 Richard Biener <rguenther@suse.de>
460 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
461 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
463 2019-08-29 Richard Biener <rguenther@suse.de>
466 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
467 Do not emit scalar copies for debug-insns, instead replace
468 their uses with the reg copy used in the chain or reset them
469 if there is a reaching definition outside of the chain as well.
471 2019-08-29 Jakub Jelinek <jakub@redhat.com>
474 * config/i386/i386-expand.c (expand_vec_perm_movs,
475 expand_vec_perm_blend, expand_vec_perm_vpermil,
476 expand_vec_perm_pshufb, expand_vec_perm_1,
477 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
478 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
479 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
480 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
481 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
482 comments - replace ix86_expand_vec_perm_builtin_1 with
483 ix86_expand_vec_perm_const_1.
484 (expand_vec_perm2_vperm2f128_vblend): New function.
485 (ix86_expand_vec_perm_const_1): New forward declaration. Call
486 expand_vec_perm2_vperm2f128_vblend as last resort.
487 (canonicalize_perm): Formatting fix.
489 PR tree-optimization/91351
490 * tree-cfg.c (generate_range_test): Use range_check_type instead of
492 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
493 range_check_type returns NULL.
494 * tree-switch-conversion.c (switch_conversion::build_one_array):
495 Use range_check_type instead of unsigned_type_for, don't perform
496 linear opt if it returns NULL.
497 (bit_test_cluster::find_bit_tests): Formatting fix.
498 (bit_test_cluster::emit): Use range_check_type instead of
500 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
503 2019-08-29 Richard Biener <rguenther@suse.de>
505 PR tree-optimization/91568
506 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
507 (vect_update_max_nunits): Add overload for poly_uint64.
508 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
509 (vect_build_slp_tree): Record max_nunits into the subtree
510 and merge it upwards.
511 (vect_print_slp_tree): Print max_nunits.
513 2019-08-28 Marek Polacek <polacek@redhat.com>
515 Implement P1152R4: Deprecating some uses of volatile.
517 * doc/invoke.texi: Document -Wvolatile.
519 2019-08-28 Marek Polacek <polacek@redhat.com>
521 PR c++/91360 - Implement C++20 P1143R2: constinit.
522 * doc/invoke.texi: Document -Wc++20-compat.
524 2019-08-28 Martin Sebor <msebor@redhat.com>
526 PR tree-optimization/91457
527 * builtins.c (component_size): New function.
528 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
529 * builtins.h (compute_objsize): Add argument.
530 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
531 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
532 (vrp_prop::check_mem_ref): Same.
533 (vrp_prop::search_for_addr_array): Set no-warning bit.
534 (check_array_bounds): Same.
536 2019-08-28 Martin Sebor <msebor@redhat.com>
539 * opts-common.c (option_enabled): Correct checking for language
542 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
544 * config/i386/i386.c (ix86_register_move_cost): Do not
545 limit the cost of moves to/from XMM register to minimum 8.
547 2019-08-28 Martin Jambor <mjambor@suse.cz>
550 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
551 checking assert a normal assert to test it really is redundant.
552 * ipa-prop.c (compute_complex_assign_jump_func): Removed
554 (update_jump_functions_after_inlining): Removed combining unary
555 arithmetic operations with an ancestor jump function.
556 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
559 2019-08-28 Richard Biener <rguenther@suse.de>
561 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
564 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
565 Richard Biener <rguenther@suse.de>
567 * expr.c (expand_assignment): Handle misaligned DECLs.
568 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
569 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
571 (assign_parm_setup_stack): Allocate properly aligned stack slots.
572 * varasm.c (build_constant_desc): Align constants of misaligned types.
573 * config/arm/predicates.md (aligned_operand): New predicate.
574 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
575 aligned_operand to check restrictions on memory addresses.
576 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
577 * config/arm/vec-common.md (mov<VALL>): Likewise.
579 2019-08-28 Jakub Jelinek <jakub@redhat.com>
582 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
583 V_128 iterator instead of VI_128.
585 2019-08-28 Martin Liska <mliska@suse.cz>
587 PR tree-optimization/90970
588 * builtins.c (check_access): Remove assignment to maxread
589 as it hasn't been used since when it was introduced in r255755.
591 2019-08-27 Martin Sebor <msebor@redhat.com>
593 PR tree-optimization/91567
594 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
596 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
599 2019-08-27 Jeff Law <law@redhat.com>
601 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
602 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
604 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
607 * config/i386/i386-features.c (convert_scalars_to_vector):
608 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
609 crtl->stack_realign_processed. Update crtl->drap_reg by calling
610 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
611 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
613 2019-08-27 Richard Biener <rguenther@suse.de>
615 * config/i386/i386-features.h
616 (general_scalar_chain::~general_scalar_chain): Add.
617 (general_scalar_chain::insns_conv): New bitmap.
618 (general_scalar_chain::n_sse_to_integer): New.
619 (general_scalar_chain::n_integer_to_sse): Likewise.
620 (general_scalar_chain::make_vector_copies): Adjust signature.
621 * config/i386/i386-features.c
622 (general_scalar_chain::general_scalar_chain): Outline,
623 initialize new members.
624 (general_scalar_chain::~general_scalar_chain): New.
625 (general_scalar_chain::mark_dual_mode_def): Record insns
626 we need to insert conversions at and count them.
627 (general_scalar_chain::compute_convert_gain): Account
628 for conversion instructions at chain boundary.
629 (general_scalar_chain::make_vector_copies): Generate a single
630 copy for a def by a specific insn.
631 (general_scalar_chain::convert_registers): First populate
632 defs_map, then make copies at out-of chain insns.
634 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
636 * config/arm/arm.md (stack_protect_set_insn): Add security-related
638 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
640 2019-08-27 Martin Liska <mliska@suse.cz>
642 * cgraph.c (cgraph_node::remove): Remove dead assignment before
644 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
645 Enclose in anonymous namespace.
646 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
647 hard_register initialization in braces.
648 * tree-vrp.h (value_range_base::supports_type_p): Return false
649 for function with boolean return type.
651 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
653 * config/i386/i386.c (emit_i387_cw_initialization)
654 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
656 2019-08-26 Martin Sebor <msebor@redhat.com>
659 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
660 (sprintf_dom_walker): Remove class.
661 (get_int_range): Make argument const.
662 (directive::fmtfunc, directive::set_precision): Same.
664 (build_intmax_type_nodes): Same.
665 (adjust_range_for_overflow): Same.
666 (format_floating): Same.
667 (format_character): Same.
668 (format_string): Same.
669 (format_plain): Same.
670 (get_int_range): Cast away constness.
671 (format_integer): Same.
672 (get_string_length): Call get_range_strlen_dynamic. Handle
673 null lendata.maxbound.
674 (should_warn_p): Adjust argument scope qualifier.
676 (format_directive): Same.
677 (parse_directive): Same.
678 (is_call_safe): Same.
679 (try_substitute_return_value): Same.
680 (sprintf_dom_walker::handle_printf_call): Rename...
681 (handle_printf_call): ...to this. Initialize target to host charmap
682 here instead of in pass_sprintf_length::execute.
683 (struct call_info): Make global.
684 (sprintf_dom_walker::compute_format_length): Make global.
685 (sprintf_dom_walker::handle_gimple_call): Same.
686 * passes.def (pass_sprintf_length): Replace with pass_strlen.
687 * print-rtl.c (print_pattern): Reduce the number of spaces to
688 avoid -Wformat-truncation.
689 * tree-pass.h (make_pass_warn_printf): New function.
690 * tree-ssa-strlen.c (strlen_optimize): New variable.
691 (get_string_length): Add comments.
692 (get_range_strlen_dynamic): New function.
693 (check_and_optimize_call): New function.
694 (handle_integral_assign): New function.
695 (strlen_check_and_optimize_stmt): Factor code out into
696 strlen_check_and_optimize_call and handle_integral_assign.
697 (strlen_dom_walker::evrp): New member.
698 (strlen_dom_walker::before_dom_children): Use evrp member.
699 (strlen_dom_walker::after_dom_children): Use evrp member.
700 (printf_strlen_execute): New function.
701 (pass_strlen::gate): Update to handle printf calls.
702 (dump_strlen_info): New function.
703 (pass_data_warn_printf): New variable.
704 (pass_warn_printf): New class.
705 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
706 (handle_printf_call): Same.
707 * tree-vrp.c (value_range_base::type): Adjust assertion.
708 * vr-values.c (vr_values::update_value_range): Use type of the first
709 argument rather than the second.
711 2019-08-26 Richard Biener <rguenther@suse.de>
713 * config/i386/i386-features.c (general_remove_non_convertible_regs):
715 (convert_scalars_to_vector): Do not call it.
717 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
718 Uros Bizjak <ubizjak@gmail.com>
720 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
721 CASE_MATHFN_FLOATN for roundeven.
722 * config/i386/i386.c (ix86_i387_mode_needed): Add case
724 (ix86_mode_needed): Likewise.
725 (ix86_mode_after): Likewise.
726 (ix86_mode_entry): Likewise.
727 (ix86_mode_exit): Likewise.
728 (ix86_emit_mode_set): Likewise.
729 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
730 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
731 (ix86_entity): Add I387_ROUNDEVEN.
732 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
733 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
734 (define_int_iterator): Likewise.
735 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
736 (define_constant): Define ROUND_ROUNDEVEN mode.
737 (define_attr): Add roundeven mode for i387_cw.
738 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
739 * internal-fn.def (ROUNDEVEN): New builtin function.
740 * optabs.def (roundeven_optab): New optab.
742 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
744 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
746 * builtins.def: Added function definitions for roundeven function
748 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
749 function call. Adjust condition for floor, ceil, trunc and round.
750 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
751 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
752 (integer_valued_real_call_p): Added case for roundeven function.
753 * real.c (is_even): New function. Returns true if real number is even,
754 otherwise returns false.
755 (is_halfway_below): New function. Returns true if real number is
756 halfway between two integers, else return false.
757 (real_roundeven): New function. Round real number to nearest integer,
758 rounding halfway cases towards even.
759 * real.h (real_value): Added descriptive comments. Added function
760 declaration for roundeven function.
761 * doc/extend.texi (Other Builtins): List roundeven variants among
762 functions which can be handled as builtins.
764 2019-08-26 Richard Biener <rguenther@suse.de>
768 * config/i386/i386-features.h (general_scalar_chain::defs_map):
770 (general_scalar_chain::replace_with_subreg): Remove.
771 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
772 (general_scalar_chain::convert_reg): Adjust signature.
773 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
774 iterate over all defs of a reg.
775 (general_scalar_chain::replace_with_subreg): Remove.
776 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
777 (general_scalar_chain::make_vector_copies): Populate defs_map,
778 place copy only after defs that are used as vectors in the chain.
779 (general_scalar_chain::convert_reg): Emit a copy for a specific
780 def in a specific instruction.
781 (general_scalar_chain::convert_op): All reg uses are converted here.
782 (general_scalar_chain::convert_insn): Emit copies for scalar
783 uses of defs here. Replace uses with the copies we created.
784 Replace and convert the def. Adjust REG_DEAD notes, remove
785 REG_EQUIV/EQUAL notes.
786 (general_scalar_chain::convert_registers): Only handle copies
789 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
791 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
793 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
795 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
796 Add nop_convert case.
797 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
798 Fold all statements if requested.
799 * tree-ssa-propagate.h (class substitute_and_fold_engine):
800 Allow to fold all statements.
801 * tree-vrp.c (class vrp_folder):
802 Let substitute_and_fold_engine fold all statements.
804 2019-08-26 Richard Biener <rguenther@suse.de>
806 PR tree-optimization/91526
807 * passes.def: Note that after late FRE we do TODO_update_address_taken.
808 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
809 TODO_update_address_taken.
811 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
813 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
816 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
818 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
819 machine mode for unspec_volatile operand.
821 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
823 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
824 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
825 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
826 (prefer_neon_for_64bits): Remove.
827 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
828 (tune_params): Remove PREF_NEON_64_FALSE uses.
829 (arm_option_override): Remove prefer_neon selection code.
830 (arm_print_tune_info): Remove prefer_neon_for_64bits.
831 * gcc/config/arm/arm-protos.h (tune_params): Remove
832 prefer_neon_for_64bits.
833 (prefer_neon_for_64bits): Remove.
835 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
838 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
839 and issue any diagnostics needed before collecting the pre-PCH
842 2019-08-23 Jakub Jelinek <jakub@redhat.com>
845 * common.opt (fexcess-precision=): Add Optimization flag. Use
846 flag_excess_precision variable instead of
847 flag_excess_precision_cmdline.
848 * flags.h (class target_flag_state): Remove x_flag_excess_precision
850 (flag_excess_precision): Don't define.
851 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
852 flag_excess_precision_cmdline. Remove comment.
853 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
854 and x_flag_excess_precision instead of
855 frontend_set_flag_excess_precision_cmdline and
856 x_flag_excess_precision_cmdline.
857 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
858 x_flag_excess_precision_cmdline.
859 * toplev.c (init_excess_precision): Remove.
860 (lang_dependent_init_target): Don't call it.
862 2019-08-23 Martin Liska <mliska@suse.cz>
864 * lto-wrapper.c (run_gcc): When setting jobserver
865 set also parallel to 1. This was done so before r273908.
867 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
869 * config/arm/arm-cpus.in (cortex-m35p): New entry.
870 (cortex-a76ae): Likewise.
871 (cortex-a77): Likewise
872 * config/arm/arm-tables.opt: Regenerate.
873 * config/arm/arm-tune.md: Likewise.
874 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
875 cortex-a77 CPU options.
877 2019-08-23 Martin Liska <mliska@suse.cz>
879 * profile.c (instrument_values): Do not set
881 * tree-profile.c (gimple_gen_interval_profiler): Remove
883 (gimple_gen_pow2_profiler): Likewise.
884 (gimple_gen_topn_values_profiler): Likewise.
885 (gimple_gen_ic_profiler): Likewise.
886 (gimple_gen_time_profiler): Likewise.
887 (gimple_gen_average_profiler): Likewise.
888 (gimple_gen_ior_profiler): Likewise.
889 * value-prof.c (dump_histogram_value): Use default
890 in switch statement instead of HIST_TYPE_MAX.
891 (stream_in_histogram_value): Likewise.
892 (gimple_duplicate_stmt_histograms): Do not
893 use NULL for implicitly set arguments.
894 (gimple_divmod_values_to_profile): Do not use
896 (gimple_indirect_call_to_profile): Likewise.
897 (gimple_find_values_to_profile): Use implicit
898 function call arguments.
899 * value-prof.h (gimple_alloc_histogram_value):
901 (gimple_gen_interval_profiler): Remove last argument.
902 (gimple_gen_pow2_profiler): Likewise.
903 (gimple_gen_topn_values_profiler): Likewise.
904 (gimple_gen_ic_profiler): Likewise.
905 (gimple_gen_time_profiler): Likewise.
906 (gimple_gen_average_profiler): Likewise.
907 (gimple_gen_ior_profiler): Likewise.
909 2019-08-22 Martin Sebor <msebor@redhat.com>
912 * builtins.c (c_strlen): Rename argument and introduce new local.
913 Set no-warning bit on original argument.
914 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
915 Fold empty and zero constructors into empty strings.
916 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
917 for missing initializers.
918 * tree.c (build_string_literal): Handle optional argument.
919 * tree.h (build_string_literal): Add defaulted argument.
920 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
921 no-warning bit on original expression.
923 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
926 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
928 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
930 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
931 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
932 (darn): Use an unspec_volatile, and UNSPECV_DARN.
934 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
936 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
937 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
938 * config/rs6000/rs6000.md (unspec): ... here.
939 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
940 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
941 cmpeqb, *cmpeqb_internal): Delete, move to...
942 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
943 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
944 cmpeqb, *cmpeqb_internal): ... here.
946 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
948 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
949 intrinsics if __ARM_FP.
950 Use __ARM_FEATURE_CRC32 ifdef guard.
952 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
954 * config/arm/arm.md (neon_for_64bits): Remove.
955 (avoid_neon_for_64bits): Remove.
956 (arm_adddi3): Always split early.
957 (arm_subdi3): Always split early.
958 (negdi2): Remove Neon expansion.
959 (split zero_extend): Split before reload.
960 (split sign_extend): Split before reload.
962 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
964 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
965 (qhs_extenddi_cstr): Likewise.
966 * config/arm/arm.md (ashldi3): Always expand early.
969 (zero_extend<mode>di2): Remove Neon variants.
970 (extend<mode>di2): Likewise.
971 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
972 (signed_shift_di3_neon): Likewise.
973 (unsigned_shift_di3_neon): Likewise.
974 (ashrdi3_neon_imm_noclobber): Likewise.
975 (lshrdi3_neon_imm_noclobber): Likewise.
976 (<shift>di3_neon): Likewise.
977 (split extend): Remove DI extend split patterns.
979 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
981 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
982 (split not): Add DImode not splitter.
983 (anddi3): Remove pattern.
984 (anddi3_insn): Likewise.
985 (anddi_zesidi_di): Likewise.
986 (anddi_sesdi_di): Likewise.
987 (anddi_notdi_di): Likewise.
988 (anddi_notzesidi_di): Likewise.
989 (anddi_notsesidi_di): Likewise.
991 (iordi3_insn): Likewise.
992 (iordi_zesidi_di): Likewise.
993 (iordi_sesidi_di): Likewise.
995 (xordi3_insn): Likewise.
996 (xordi_sesidi_di): Likewise.
997 (xordi_zesidi_di): Likewise.
998 (one_cmpldi2): Likewise.
999 (one_cmpldi2_insn): Likewise.
1000 * config/arm/constraints.md: Remove De, Df, Dg constraints.
1001 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
1003 (iwmmxt_xordi3): Likewise.
1004 (iwmmxt_anddi3): Likewise.
1005 * config/arm/neon.md (orndi3_neon): Remove pattern.
1006 (anddi_notdi_di): Likewise.
1007 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
1008 (arm_iordi_operand_neon): Likewise.
1009 (arm_xordi_operand_neon): Likewise.
1010 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
1011 (iordi_notzesidi_di): Likewise.
1012 (iordi_notdi_zesidi): Likewise.
1013 (iordi_notsesidi_di): Likewise.
1015 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
1017 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
1019 (iorsi3_compare0_scratch): Likewise.
1021 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
1023 * config/aarch64/aarch64-simd-builtins.def:
1026 * config/aarch64/aarch64-simd.md:
1027 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
1028 (aarch64_st1x4<VALLDIF:mode>): Likewise.
1029 (aarch64_ld1_x4_<mode>): Likewise.
1030 (aarch64_st1_x4_<mode>): Likewise.
1031 * config/aarch64/arm_neon.h:
1032 (vld1_s8_x4): New function.
1033 (vld1q_s8_x4): Likewise.
1034 (vld1_s16_x4): Likewise.
1035 (vld1q_s16_x4): Likewise.
1036 (vld1_s32_x4): Likewise.
1037 (vld1q_s32_x4): Likewise.
1038 (vld1_u8_x4): Likewise.
1039 (vld1q_u8_x4): Likewise.
1040 (vld1_u16_x4): Likewise.
1041 (vld1q_u16_x4): Likewise.
1042 (vld1_u32_x4): Likewise.
1043 (vld1q_u32_x4): Likewise.
1044 (vld1_f16_x4): Likewise.
1045 (vld1q_f16_x4): Likewise.
1046 (vld1_f32_x4): Likewise.
1047 (vld1q_f32_x4): Likewise.
1048 (vld1_p8_x4): Likewise.
1049 (vld1q_p8_x4): Likewise.
1050 (vld1_p16_x4): Likewise.
1051 (vld1q_p16_x4): Likewise.
1052 (vld1_s64_x4): Likewise.
1053 (vld1_u64_x4): Likewise.
1054 (vld1_p64_x4): Likewise.
1055 (vld1q_s64_x4): Likewise.
1056 (vld1q_u64_x4): Likewise.
1057 (vld1q_p64_x4): Likewise.
1058 (vld1_f64_x4): Likewise.
1059 (vld1q_f64_x4): Likewise.
1060 (vst1_s8_x4): Likewise.
1061 (vst1q_s8_x4): Likewise.
1062 (vst1_s16_x4): Likewise.
1063 (vst1q_s16_x4): Likewise.
1064 (vst1_s32_x4): Likewise.
1065 (vst1q_s32_x4): Likewise.
1066 (vst1_u8_x4): Likewise.
1067 (vst1q_u8_x4): Likewise.
1068 (vst1_u16_x4): Likewise.
1069 (vst1q_u16_x4): Likewise.
1070 (vst1_u32_x4): Likewise.
1071 (vst1q_u32_x4): Likewise.
1072 (vst1_f16_x4): Likewise.
1073 (vst1q_f16_x4): Likewise.
1074 (vst1_f32_x4): Likewise.
1075 (vst1q_f32_x4): Likewise.
1076 (vst1_p8_x4): Likewise.
1077 (vst1q_p8_x4): Likewise.
1078 (vst1_p16_x4): Likewise.
1079 (vst1q_p16_x4): Likewise.
1080 (vst1_s64_x4): Likewise.
1081 (vst1_u64_x4): Likewise.
1082 (vst1_p64_x4): Likewise.
1083 (vst1q_s64_x4): Likewise.
1084 (vst1q_u64_x4): Likewise.
1085 (vst1q_p64_x4): Likewise.
1086 (vst1_f64_x4): Likewise.
1087 (vst1q_f64_x4): Likewise.
1089 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1091 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
1093 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1094 Richard Sandiford <richard.sandiford@arm.com>
1097 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
1098 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
1100 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1103 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
1104 in reg if it fails aarch64_plus_operand predicate.
1106 2019-08-21 Richard Biener <rguenther@suse.de>
1108 PR tree-optimization/91482
1109 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
1110 BUILT_IN_ASSUME_ALIGNED calls.
1112 2019-08-21 Richard Biener <rguenther@suse.de>
1116 * config/i386/i386-features.c
1117 (general_scalar_chain::make_vector_copies): Copy stack temporary
1118 rtx when using it multiple times.
1119 (general_scalar_chain::convert_reg): Likewise.
1121 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1123 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
1125 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
1127 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
1128 catch more redundant zero initialization cases.
1129 (dse_dom_walker::dse_optimize_stmt): Likewise.
1131 2019-08-20 Richard Biener <rguenther@suse.de>
1134 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
1135 by collect2 when targetm.have_ctors_dtors which avoids dragging
1136 in temporary filenames from LTO input objects.
1138 2019-08-20 Richard Biener <rguenther@suse.de>
1140 PR tree-optimization/37242
1141 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
1142 to (T)a + (T)b if we know that a + b does not overflow.
1144 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
1146 PR rtl-optimization/91347
1147 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
1148 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
1150 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1152 * calls.h (function_arg_info): Add a pass_by_reference field,
1153 defaulting to false.
1154 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
1155 when applying pass-by-reference semantics.
1156 (initialize_argument_information): Likewise.
1157 (emit_library_call_value_1): Likewise.
1158 * function.c (assign_parm_data_one): Remove passed_pointer field.
1159 (assign_parm_find_data_types): Don't set it.
1160 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
1161 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
1162 arg.pass_by_reference instead of passed_pointer.
1164 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1166 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
1167 into a single function_arg_info, updating its fields when we
1168 apply pass-by-reference and promotion semantics. Use the
1169 function_arg_info to track the mode rather than keeping it in
1170 a separate local variable.
1171 (initialize_argument_information): Likewise. Base the final
1172 arg_to_skip on this new function_arg_info rather than creating
1173 a new one from scratch.
1175 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1177 * function.c (assign_parm_data_one): Replace passed_type,
1178 promoted_mode and named_arg with a function_arg_info field.
1179 (assign_parm_find_data_types): Remove local variables and
1180 assign directly to "data". Make data->passed_mode shadow
1181 data->arg.mode until promotion, then assign the promoted
1182 mode to data->arg.mode.
1183 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
1184 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
1185 (assign_parm_remove_parallels, assign_parm_setup_block_p)
1186 (assign_parm_setup_block, assign_parm_setup_reg)
1187 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
1188 arg.mode instead of promoted_mode, arg.type instead of passed_type
1189 and arg.named instead of named_arg. Use data->arg for
1190 function_arg_info structures that had the field values passed_type,
1191 promoted_mode and named_arg. Base other function_arg_infos on
1192 data->arg, changing the necessary properties.
1194 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1196 * calls.h (apply_pass_by_reference_rules): Declare.
1197 * calls.c (apply_pass_by_reference_rules): New function.
1198 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
1199 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
1200 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1201 * function.c (assign_parm_find_data_types): Likewise.
1202 * var-tracking.c (prepare_call_arguments): Likewise.
1204 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1206 * target.def (must_pass_in_stack): Take a function_arg_info instead
1207 of a mode and a type.
1208 * doc/tm.texi: Regenerate.
1209 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
1210 instead of a mode and a type.
1211 (must_pass_in_stack_var_size_or_pad): Likewise.
1212 * calls.c (must_pass_in_stack_var_size): Likewise.
1213 (must_pass_in_stack_var_size_or_pad): Likewise.
1214 (initialize_argument_information): Update call to
1215 targetm.calls.must_pass_in_stack.
1216 (must_pass_va_arg_on_stack): Likewise.
1217 * function.c (assign_parm_find_entry_rtl): Likewise.
1218 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
1219 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1220 (alpha_function_arg_advance): Likewise.
1221 * config/cr16/cr16.c (cr16_function_arg): Likewise.
1222 (cr16_function_arg_advance): Likewise.
1223 * config/cris/cris.c (cris_pass_by_reference): Likewise.
1224 (cris_arg_partial_bytes): Likewise.
1225 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1226 * config/lm32/lm32.c (lm32_function_arg): Likewise.
1227 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
1228 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
1229 * config/mips/mips.c (mips_pass_by_reference): Likewise.
1230 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
1231 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
1232 * config/sh/sh.c (sh_pass_by_reference): Likewise.
1233 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1234 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1235 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
1236 instead of a mode and a type.
1237 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
1238 (fr30_num_arg_regs): Likewise.
1239 (fr30_setup_incoming_varargs): Update calls accordingly.
1240 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1241 (fr30_function_arg_advance): Likewise.
1242 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
1243 instead of a mode and a type.
1244 * config/gcn/gcn.c (num_arg_regs): Likewise.
1245 (gcn_function_arg, gcn_function_arg_advance): Update calls to
1246 num_arg_regs and targetm.calls.must_pass_in_stack.
1247 (gcn_arg_partial_bytes): Likewise.
1248 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
1249 function_arg_info instead of a mode and a type.
1250 (classify_argument): Update call accordingly.
1251 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
1252 function_arg_info instead of a mode and a type.
1253 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
1255 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
1256 (rs6000_parm_needs_stack): Update call accordingly.
1257 (setup_incoming_varargs): Likewise.
1259 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1261 * target.def (callee_copies): Take a function_arg_info instead
1262 of a mode, type and named flag.
1263 * doc/tm.texi: Regenerate.
1264 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
1265 instead of a mode, type and named flag.
1266 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1267 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1268 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1269 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
1270 instead of a mode, type and named flag.
1271 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1272 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1273 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1274 * calls.h (reference_callee_copied): Take a function_arg_info
1275 instead of a mode, type and named flag.
1276 * calls.c (reference_callee_copied): Likewise.
1277 (initialize_argument_information): Update call accordingly.
1278 (emit_library_call_value_1): Likewise.
1279 * function.c (gimplify_parameters): Likewise.
1280 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
1281 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
1282 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
1283 * config/c6x/c6x.c (c6x_callee_copies): Delete.
1284 (TARGET_CALLEE_COPIES): Define to
1285 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1286 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
1287 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1288 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1289 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
1290 instead of a mode, type and named flag.
1291 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
1292 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1293 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1294 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
1295 * config/msp430/msp430.c (msp430_callee_copies): Delete.
1296 (TARGET_CALLEE_COPIES): Define to
1297 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1298 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
1299 instead of a mode, type and named flag.
1300 * config/sh/sh.c (sh_callee_copies): Likewise.
1301 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
1302 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1303 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1305 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1307 * target.def (function_arg_advance): Take a function_arg_info instead
1308 of a mode, type and named flag.
1309 * doc/tm.texi: Regenerate.
1310 * targhooks.h (default_function_arg_advance): Take a function_arg_info
1311 instead of a mode, type and named flag.
1312 * targhooks.c (default_function_arg_advance): Likewise.
1313 * calls.c (initialize_argument_information): Update call to
1314 targetm.calls.function_arg_advance.
1315 (emit_library_call_value_1): Likewise.
1316 * dse.c (get_call_args): Likewise.
1317 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1318 * function.c (assign_parms, gimplify_parameters): Likewise.
1319 * var-tracking.c (prepare_call_arguments): Likewise.
1320 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
1321 function_arg_info instead of a mode, type and named flag.
1322 (aarch64_setup_incoming_varargs): Update call accordingly.
1323 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
1324 function_arg_info instead of a mode, type and named flag.
1325 (alpha_setup_incoming_varargs): Update call accordingly.
1326 * config/arc/arc.c (arc_function_arg_advance): Take a
1327 function_arg_info instead of a mode, type and named flag.
1328 (arc_setup_incoming_varargs): Update call accordingly.
1329 * config/arm/arm.c (arm_function_arg_advance): Take a
1330 function_arg_info instead of a mode, type and named flag.
1331 (cmse_func_args_or_return_in_stack): Update call accordingly.
1332 (arm_function_ok_for_sibcall): Likewise.
1333 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1334 * config/avr/avr.c (avr_function_arg_advance): Take a
1335 function_arg_info instead of a mode, type and named flag.
1336 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
1337 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
1338 (c6x_call_saved_register_used): Update call accordingly.
1339 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
1340 function_arg_info instead of a mode, type and named flag.
1341 * config/cris/cris.c (cris_function_arg_advance): Likewise.
1342 * config/csky/csky.c (csky_function_arg_advance): Likewise.
1343 (csky_setup_incoming_varargs): Update call accordingly.
1344 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
1345 function_arg_info instead of a mode, type and named flag.
1346 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
1347 * config/frv/frv.c (frv_function_arg_advance): Likewise.
1348 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
1349 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
1350 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
1351 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1352 (ix86_setup_incoming_varargs): Update call accordingly.
1353 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
1354 function_arg_info instead of a mode, type and named flag.
1355 (ia64_setup_incoming_varargs): Update call accordingly.
1356 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
1357 function_arg_info instead of a mode, type and named flag.
1358 (iq2000_expand_prologue): Update call accordingly.
1359 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
1360 function_arg_info instead of a mode, type and named flag.
1361 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
1362 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
1363 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1364 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
1365 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1367 (microblaze_expand_prologue): Update call accordingly.
1368 * config/mips/mips.c (mips_function_arg_advance): Take a
1369 function_arg_info instead of a mode, type and named flag.
1370 (mips_setup_incoming_varargs): Update call accordingly.
1371 (mips_output_args_xfer): Likewise.
1372 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
1373 function_arg_info instead of a mode, type and named flag.
1374 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
1375 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
1376 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
1377 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
1378 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
1379 (nios2_setup_incoming_varargs): Update call accordingly.
1380 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
1381 function_arg_info instead of a mode, type and named flag.
1382 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
1383 * config/pa/pa.c (pa_function_arg_advance): Likewise.
1384 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
1385 * config/pru/pru.c (pru_function_arg_advance): Likewise.
1386 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
1387 (riscv_setup_incoming_varargs): Update call accordingly.
1388 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
1389 function_arg_info instead of a mode, type and named flag.
1390 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
1392 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
1393 (rs6000_parm_needs_stack): Update call accordingly.
1394 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
1395 instead of a mode, type and named flag.
1396 * config/s390/s390.c (s390_function_arg_advance): Likewise.
1397 (s390_call_saved_register_used): Update call accordingly.
1398 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
1399 instead of a mode, type and named flag.
1400 (sh_output_mi_thunk): Update call accordingly.
1401 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
1402 function_arg_info instead of a mode, type and named flag.
1403 * config/spu/spu.c (spu_function_arg_advance): Likewise.
1404 (spu_setup_incoming_varargs): Update call accordingly.
1405 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
1406 function_arg_info instead of a mode, type and named flag.
1407 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
1408 (tilegx_setup_incoming_varargs): Update call accordingly.
1409 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
1410 function_arg_info instead of a mode, type and named flag.
1411 (tilegx_setup_incoming_varargs): Update call accordingly.
1412 * config/v850/v850.c (v850_function_arg_advance): Take a
1413 function_arg_info instead of a mode, type and named flag.
1414 * config/vax/vax.c (vax_function_arg_advance): Likewise.
1415 * config/visium/visium.c (visium_function_arg_advance): Likewise.
1416 (visium_setup_incoming_varargs): Update call accordingly.
1417 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
1418 function_arg_info instead of a mode, type and named flag.
1420 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1422 * target.def (function_arg, function_incoming_arg): Take a
1423 function_arg_info instead of a mode, tree and named flag.
1424 * doc/tm.texi: Regenerate.
1425 * targhooks.h (default_function_arg): Take a function_arg_info
1426 instead of a mode, tree and named flag.
1427 (default_function_incoming_arg): Likewise.
1428 * targhooks.c (default_function_arg): Likewise.
1429 (default_function_incoming_arg): Likewise.
1430 * calls.h (function_arg_info::end_marker_p): New function.
1431 (function_arg_info::end_marker): Likewise.
1432 * calls.c (prepare_call_address, initialize_argument_information)
1433 (expand_call, emit_library_call_value_1): Update calls to
1434 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
1435 * dse.c: Include calls.h.
1436 (get_call_args): Update call to targetm.calls.function_arg.
1437 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1438 * var-tracking.c (prepare_call_arguments): Likewise.
1439 * function.c (assign_parm_find_entry_rtl): Update call to
1440 targetm.calls.function_incoming_arg.
1441 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
1442 function_arg_info instead of a mode, tree and named flag.
1443 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1444 * config/arc/arc.c (arc_function_arg): Likewise.
1445 * config/arm/arm.c (arm_function_arg): Likewise.
1446 (cmse_func_args_or_return_in_stack): Update call accordingly.
1447 (arm_function_ok_for_sibcall): Likewise.
1448 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1449 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
1450 instead of a mode, tree and named flag.
1451 * config/bfin/bfin.c (bfin_function_arg): Likewise.
1452 * config/c6x/c6x.c (c6x_function_arg): Likewise.
1453 (c6x_call_saved_register_used): Update call accordingly.
1454 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
1455 instead of a mode, tree and named flag.
1456 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
1457 (cris_function_arg_1): Likewise.
1458 * config/csky/csky.c (csky_function_arg): Likewise.
1459 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
1460 * config/fr30/fr30.c (fr30_function_arg): Likewise.
1461 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
1462 (frv_function_arg_1): Likewise.
1463 * config/ft32/ft32.c (ft32_function_arg): Likewise.
1464 * config/gcn/gcn.c (gcn_function_arg): Likewise.
1465 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1466 * config/i386/i386.c (ix86_function_arg): Likewise.
1467 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1468 (ia64_function_arg_1): Likewise.
1469 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1470 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1472 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1473 instead of a mode, tree and named flag.
1474 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1475 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1476 * config/m68k/m68k.c (m68k_function_arg): Likewise.
1477 * config/mcore/mcore.c (mcore_function_arg): Likewise.
1478 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
1479 (microblaze_expand_prologue): Update call accordingly.
1480 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
1481 instead of a mode, tree and named flag.
1482 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
1483 (mmix_function_arg_1): Likewise.
1484 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
1485 * config/moxie/moxie.c (moxie_function_arg): Likewise.
1486 * config/msp430/msp430.c (msp430_function_arg): Likewise.
1487 * config/nds32/nds32.c (nds32_function_arg): Likewise.
1488 * config/nios2/nios2.c (nios2_function_arg): Likewise.
1489 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
1490 (nvptx_function_incoming_arg): Likewise.
1491 * config/or1k/or1k.c (or1k_function_arg): Likewise.
1492 * config/pa/pa.c (pa_function_arg): Likewise.
1493 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1494 * config/pru/pru.c (pru_function_arg): Likewise.
1495 * config/riscv/riscv.c (riscv_function_arg): Likewise.
1496 * config/rl78/rl78.c (rl78_function_arg): Likewise.
1497 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
1498 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
1499 (rs6000_parm_needs_stack): Update call accordingly.
1500 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
1501 instead of a mode, tree and named flag.
1502 * config/s390/s390.c (s390_function_arg): Likewise.
1503 (s390_call_saved_register_used): Update call accordingly.
1504 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
1505 instead of a mode, tree and named flag.
1506 (sh_output_mi_thunk): Update call accordingly.
1507 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
1508 (sparc_function_incoming_arg): Take a function_arg_info instead of
1509 a mode, tree and named flag.
1510 * config/spu/spu.c (spu_function_arg): Likewise.
1511 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1512 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
1513 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
1514 * config/v850/v850.c (v850_function_arg): Likewise.
1515 * config/vax/vax.c (vax_function_arg): Likewise.
1516 * config/visium/visium.c (visium_function_arg): Likewise.
1517 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
1518 (xtensa_function_incoming_arg): Likewise.
1520 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1522 * target.def (setup_incoming_varargs): Take a function_arg_info
1523 instead of a mode and tree.
1524 * doc/tm.texi: Regenerate.
1525 * targhooks.h (default_setup_incoming_varargs): Take a
1526 function_arg_info instead of a mode and tree.
1527 * targhooks.c (default_setup_incoming_varargs): Likewise.
1528 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
1529 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1530 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1531 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
1532 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
1533 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1534 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
1535 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
1537 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1538 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1539 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
1540 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1541 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1542 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1543 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1544 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1545 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1546 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1547 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1548 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1549 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1550 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1551 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1552 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1553 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1554 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1555 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1556 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1557 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1558 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1559 * function.c (assign_parms_setup_varargs): Update call to
1560 targetm.calls.setup_incoming_varargs.
1562 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1564 * target.def (pass_by_reference): Take a function_arg_info instead
1565 of a mode, type and named flag.
1566 * doc/tm.texi: Regenerate.
1567 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1569 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1570 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1571 function_arg_info instead of a mode, type and named flag.
1572 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1573 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1574 mode, type and named flag.
1575 * calls.c (pass_by_reference): Likewise.
1576 (pass_va_arg_by_reference): Update call accordingly.
1577 (initialize_argument_information): Likewise.
1578 (emit_library_call_value_1): Likewise.
1579 * function.c (assign_parm_find_data_types): Likewise.
1580 * var-tracking.c (prepare_call_arguments): Likewise.
1581 * stor-layout.c: Include calls.h.
1582 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1583 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1584 function_arg_info instead of a mode, type and named flag.
1585 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1586 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1587 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1588 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1589 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1590 (c6x_call_saved_register_used): Update call to pass_by_reference.
1591 * config/cris/cris.c (cris_pass_by_reference): Take a
1592 function_arg_info instead of a mode, type and named flag.
1593 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1594 function_arg_info instead of a mode, type and named flag.
1595 (epiphany_arg_partial_bytes): Update call accordingly.
1596 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1597 function_arg_info instead of a mode, type and named flag.
1598 (ft32_arg_partial_bytes): Update call accordingly.
1599 * config/i386/i386.c (ix86_pass_by_reference): Take a
1600 function_arg_info instead of a mode, type and named flag.
1601 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1602 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1603 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1604 (m32r_return_in_memory): Update call accordingly.
1605 * config/mips/mips.c (mips_pass_by_reference): Take a
1606 function_arg_info instead of a mode, type and named flag.
1607 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1608 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1609 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1610 (moxie_arg_partial_bytes): Update call accordingly.
1611 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1612 function_arg_info instead of a mode, type and named flag.
1613 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1614 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1615 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1616 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1617 (riscv_return_in_memory): Update call accordingly.
1618 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1619 function_arg_info instead of a mode, type and named flag.
1620 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1621 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1622 * config/s390/s390.c (s390_pass_by_reference): Take a
1623 function_arg_info instead of a mode, type and named flag.
1624 (s390_call_saved_register_used): Update call accordingly.
1625 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1626 instead of a mode, type and named flag.
1627 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1628 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1629 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1630 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1631 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1632 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1634 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1636 * target.def (arg_partial_bytes): Take a function_arg_info instead
1637 of a mode, type and named flag.
1638 * doc/tm.texi: Regenerate.
1639 * target.h (function_arg_info): Declare.
1640 * calls.h (function_arg_info): New class.
1641 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1642 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1643 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1644 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1645 * calls.c (initialize_argument_information): Update call to
1646 targetm.calls.partial_bytes.
1647 (emit_library_call_value_1): Likewise.
1648 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1649 * function.c (assign_parm_find_entry_rtl): Likewise.
1650 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1651 function_arg_info instead of a mode, type and named flag.
1652 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1653 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1654 (cmse_func_args_or_return_in_stack): Update accordingly.
1655 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1656 function_arg_info instead of a mode, type and named flag.
1657 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1658 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1659 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1660 * config/fr30/fr30.c: Include calls.h.
1661 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1662 type and named flag.
1663 * config/frv/frv.c: Include calls.h.
1664 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1665 type and named flag.
1666 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1667 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1668 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1669 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1670 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1671 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1672 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1674 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1675 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1676 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1677 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1678 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1679 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1680 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1681 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1682 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1683 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1684 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1685 (rs6000_parm_needs_stack): Update call accordingly.
1686 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1687 function_arg_info instead of a mode, type and named flag.
1688 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1689 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1691 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1693 * calls.h (must_pass_va_arg_in_stack): Declare.
1694 * calls.c (must_pass_va_arg_in_stack): New function.
1695 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1696 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1697 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1699 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1701 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1703 * calls.h (pass_va_arg_by_reference): Declare.
1704 * calls.c (pass_va_arg_by_reference): New function.
1705 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1706 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1707 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1708 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1709 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1710 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1711 (mips_gimplify_va_arg_expr): Likewise.
1712 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1713 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1714 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1715 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1716 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1717 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1718 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1719 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1720 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1721 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1722 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1724 2019-08-20 Richard Biener <rguenther@suse.de>
1727 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1728 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1729 (convert_scalars_to_vector): Add timode_p parameter and use it
1730 to guard TImode-only operation.
1731 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1732 (pass_stv::execute): Pass down timode_p.
1734 2019-08-20 Lili Cui <lili.cui@intel.com>
1736 * common/config/i386/i386-common.c
1737 (processor_names): Add tigerlake and cooperlake.
1738 (processor_alias_table): Add tigerlake and cooperlake.
1739 * config.gcc: Add -march=tigerlake and cooperlake.
1740 * config/i386/driver-i386.c
1741 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1742 Add "has_avx" to classify processor.
1743 * config/i386/i386-builtins.c (processor_model) :
1744 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1745 (arch_names_table): Add tigerlake and cooperlake.
1746 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1747 and PROCESSOR_COOPERLAKE.
1748 * config/i386/i386-c.c
1749 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1750 * config/i386/i386-options.c
1751 (m_TIGERLAKE) : Define.
1752 (m_COOPERLAKE) : Ditto.
1753 (m_CORE_AVX512): Ditto.
1754 (processor_cost_table): Add cascadelake.
1755 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1756 * config/i386/i386.h
1757 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1758 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1759 (PTA_MOVDIRI): Ditto.
1760 (PTA_MOVDIR64B): Ditto.
1761 (PTA_COOPERLAKE) : Ditto.
1762 (PTA_TIGERLAKE) : Ditto.
1763 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1764 * doc/extend.texi: Add tigerlake and cooperlake.
1765 * doc/invoke.texi: Add tigerlake and cooperlake.
1767 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1769 * doc/install.texi (Specific, alpha): Remove note to use
1770 binutils 2.11.2 or later.
1772 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1775 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1778 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1780 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1781 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1782 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1783 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1784 * config/aarch64/constraints.md (Dt): New constraint
1785 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1787 2019-08-19 Richard Biener <rguenther@suse.de>
1789 PR tree-optimization/91403
1790 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1791 cases we can handle with tail-recursion...
1792 (follow_ssa_edge_expr): ... here. Do so.
1794 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1797 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1798 implemented for -fsanitize=kernel-address, and merge check logic
1799 with -fsanitize=address.
1801 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1803 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1804 for cpu and machine. Factor 64/32b builtins.
1806 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1808 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1809 gone, point to sourceforge.net.
1811 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1813 * doc/ux.texi (User Experience Guidelines): Update reference.
1815 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1817 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1820 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1822 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1823 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1825 2019-08-16 Martin Sebor <msebor@redhat.com>
1827 * tree.def (TYPE_SIZE): Clarify.
1828 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1830 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1832 PR tree-optimization/91109
1833 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1834 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1835 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1837 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1839 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1840 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1841 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1842 (uavg<mode>3_ceil): New expander.
1843 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1844 mode iterator when creating CONST1_RTX.
1845 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1846 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1847 mode iterator for const1_operand predicate.
1849 2019-08-16 Richard Biener <rguenther@suse.de>
1851 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1852 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1854 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1855 (analyze_evolution_in_loop): Likewise.
1856 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1857 (follow_ssa_edge_expr): ... here. Refactor code.
1859 2019-08-16 Richard Biener <rguenther@suse.de>
1862 * config/i386/i386-features.c
1863 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1865 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1868 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1869 only if subst_name matches curr_attr string.
1871 2019-08-16 Richard Biener <rguenther@suse.de>
1873 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1874 stmt at gsi_p, instead replace it with a NOP removed later.
1875 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1876 that became dead because of that.
1878 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1880 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1881 for which we can't represent a range.
1882 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1884 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1885 Set VR_UNDEFINED if type is not supported.
1886 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1887 * tree-vrp.c (value_range_base::check): Assert that a varying has
1889 (value_range_base::equal_p): Early bail for undefines.
1890 (value_range_base::set_varying): Accept a type.
1891 (value_range::set_varying): Same.
1892 (value_range_base::type): VARYING can have a type, while UNDEFINE
1894 (value_range_base::dump): Print type for VARYING nodes.
1895 (value_range_base::set): Add type to VARYING.
1896 (extract_range_from_multiplicative_op): Pass type to set_varying.
1897 (extract_range_from_binary_expr): Same.
1898 (value_range_base::intersect_helper): Same.
1899 (value_range_base::union_helper): Same.
1900 (value_range_base::normalize_symbolics): Same.
1901 (determine_value_range_1): Same.
1902 * tree-vrp.h (class value_range_base): Add type to set_varying.
1903 Add prototype for dump(void).
1904 Add prototype for supports_type_p.
1905 (class value_range): Add type to set_varying.
1906 Add prototype for dump(void).
1907 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1909 (vr_values::get_lattice_entry): Set varying even if propagation
1911 Pass type to set_varying.
1912 (vr_values::get_value_range): Remove vr_const_varying.
1913 Reallocate the lattice if needed.
1914 (vr_values::update_value_range): Pass type to set_varying.
1915 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1916 (vr_values::extract_range_from_binary_expr): Same.
1917 (vr_values::extract_range_from_unary_expr): Same.
1918 (vr_values::extract_range_from_cond_expr): Same.
1919 (vr_values::check_for_binary_op_overflow): Same.
1920 (vr_values::extract_range_basic): Same.
1921 (vr_values::extract_range_from_assignment): Same.
1922 (vr_values::vr_values): Increase size of num_vr_values.
1923 (vr_values::extract_range_from_phi_node): Pass type to
1926 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1929 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1930 for costs of hard register moves.
1931 (ix86_register_move_cost): Likewise.
1932 * config/i386/i386.h (processor_costs): Move costs of hard
1933 register moves to hard_register. Add int_load, int_store,
1934 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1935 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1936 for costs of RTL expressions.
1937 * config/i386/x86-tune-costs.h: Move costs of hard register
1938 moves to hard_register. Duplicate int_load, int_store,
1939 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1940 sse_load, sse_store for costs of RTL expressions.
1942 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1944 * target.def (setup_incoming_vararg_bounds): Remove.
1945 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1946 * doc/tm.texi: Regenerate.
1947 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1948 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1949 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1950 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1952 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1954 MSP430: Fix lines over 80 characters long in
1955 config/msp430/*.{c,h} files
1957 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1958 specifier in string.
1959 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1960 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1961 redundant old comment.
1962 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1963 Split line more than 80 characters long.
1964 * config/msp430/msp430.c (msp430_option_override): Likewise.
1965 (msp430_return_in_memory): Likewise.
1966 (msp430_gimplify_va_arg_expr): Likewise.
1967 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1968 (msp430_legitimate_constant): Likewise.
1969 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1970 (msp430_attr): Likewise.
1971 (msp430_data_attr): Likewise.
1972 (msp430_start_function): Likewise.
1973 (gen_prefix): Likewise.
1974 (msp430_init_sections): Likewise.
1975 (msp430_select_section): Likewise.
1976 (msp430_function_section): Likewise.
1977 (msp430_unique_section): Likewise.
1978 (msp430_output_aligned_decl_common): Likewise.
1979 (msp430_do_not_relax_short_jumps): Likewise.
1980 (msp430_init_builtins): Likewise.
1981 (msp430_expand_delay_cycles): Likewise.
1982 (msp430_expand_prologue): Likewise.
1983 (msp430_expand_epilogue): Likewise.
1984 (msp430_expand_helper): Likewise.
1985 (msp430_split_movsi): Likewise.
1986 (msp430_print_operand): Likewise.
1987 (msp430_return_addr_rtx): Likewise.
1988 (msp430x_extendhisi): Likewise.
1989 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1990 (ASM_SPEC): Likewise.
1991 Remove very obvious comments.
1992 (LIB_SPEC): Split line more than 80 characters long.
1993 (EH_RETURN_HANDLER_RTX): Likewise.
1994 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1996 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1998 MSP430: Fix whitespace errors and incorrect indentation in
1999 config/msp430/*.{c,h} files
2001 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
2002 (msp430_select_hwmult_lib): Likewise.
2003 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
2004 (msp430_extract_mcu_data): Likewise.
2005 (struct t_msp430_mcu_data): Likewise.
2006 * config/msp430/msp430.c (struct machine_function): Remove whitespace
2007 before left square bracket.
2008 (msp430_option_override): Fix indentation.
2009 (msp430_hard_regno_nregs_with_padding): Likewise.
2010 (msp430_initial_elimination_offset): Likewise.
2011 (msp430_special_register_convention_p): Remove whitespace before left
2012 square bracket and after exclamation mark.
2013 (msp430_evaluate_arg): Likewise.
2014 (msp430_callee_copies): Fix indentation.
2015 (msp430_gimplify_va_arg_expr): Likewise.
2016 (msp430_function_arg_advance): Remove whitespace before left square
2018 (reg_ok_for_addr): Likewise.
2019 (msp430_preserve_reg_p): Likewise.
2020 (msp430_compute_frame_info): Likewise.
2021 (msp430_asm_output_addr_const_extra): Add space between function name
2022 and open parenthesis.
2023 (has_section_name): Fix indentation.
2024 (msp430_attr): Remove trailing whitespace.
2025 (msp430_section_attr): Likewise.
2026 (msp430_data_attr): Likewise.
2027 (struct msp430_attribute_table): Fix comment and whitespace.
2028 (msp430_start_function): Remove whitespace before left square bracket.
2029 Add space between function name and open parenthesis.
2030 (msp430_select_section): Remove trailing whitespace.
2031 (msp430_section_type_flags): Remove trailing whitespace.
2032 (msp430_unique_section): Remove space before closing parenthesis.
2033 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
2034 (msp430_builtins): Remove whitespace before left square bracket.
2035 (msp430_init_builtins): Fix indentation.
2036 (msp430_expand_prologue): Remove whitespace before left square bracket.
2037 Remove space before closing parenthesis.
2038 (msp430_expand_epilogue): Remove whitespace before left square bracket.
2039 (msp430_split_movsi): Remove space before closing parenthesis.
2040 (helper_function_name_mappings): Fix indentation.
2041 (msp430_use_f5_series_hwmult): Fix whitespace.
2042 (use_32bit_hwmult): Likewise.
2043 (msp430_no_hwmult): Likewise.
2044 (msp430_output_labelref): Remove whitespace before left square bracket.
2045 (msp430_print_operand_raw): Likewise.
2046 (msp430_print_operand_addr): Likewise.
2047 (msp430_print_operand): Add two spaces after '.' in comment.
2048 Fix trailing whitespace.
2049 (msp430x_extendhisi): Fix indentation.
2050 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
2052 (PC_REGNUM): Likewise.
2053 (STACK_POINTER_REGNUM): Likewise.
2054 (CC_REGNUM): Likewise.
2056 2019-08-15 Richard Biener <rguenther@suse.de>
2059 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
2061 (general_scalar_chain::make_vector_copies): Use it.
2063 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2065 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
2067 2019-08-15 Martin Liska <mliska@suse.cz>
2069 * tree-ssa-dce.c (propagate_necessity): We can't reach now
2070 operators with no arguments.
2071 (eliminate_unnecessary_stmts): Likewise here.
2073 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
2075 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
2076 <case COMPARE>: Revert 2019-08-14 change.
2077 (convertible_comparison_p): Revert 2019-08-14 change. Return false
2078 for (TARGET_64BIT || mode != DImode).
2080 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
2082 * tree-vrp.c (value_range_base::set): Merge in code from
2083 value_range_base::set_and_canonicalize.
2084 Enforce canonicalization at set time.
2085 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
2086 (value_range_base::set_undefined): Inline call to set().
2087 (value_range_base::set_varying): Same.
2088 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
2089 (vrp_val_max): New argument handle_pointers.
2090 (vrp_val_min): Same.
2091 (ranges_from_anti_range): Same.
2092 (extract_range_into_wide_ints): Use tree argument instead of sign
2094 (extract_range_from_multiplicative_op): Take in tree type instead
2095 of precision and sign. Adapt function for canonicalized ranges.
2096 (extract_range_from_binary_expr): Pass type to
2097 extract_range_from_multiplicative_op.
2098 Adapt for canonicalized ranges.
2099 (extract_range_from_unary_expr): Same.
2100 (value_range_base::intersect_helper): Adjust for canonicalized
2102 (value_range_base::union_helper): Same.
2103 (value_range_base::normalize_symbolics): New.
2104 * tree-vrp.h (class value_range_base): Remove
2105 set_and_canonicalize.
2106 New prototype for normalize_symbolics.
2107 (class value_range): Remove set_and_canonicalize.
2108 (vrp_val_min): Adjust prototype.
2109 (vrp_val_max): Same.
2111 (vr_values::extract_range_for_var_from_comparison_expr): Call set
2112 instead of set_and_canonicalize.
2114 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2117 * tree-vect-stmts.c (vectorizable_call): Check that the function
2118 is a BUILT_IN_MD function before passing it to
2119 targetm.vectorize.builtin_md_vectorized_function.
2121 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2123 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
2124 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
2125 (aarch64_select_early_remat_modes): Use it.
2127 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2129 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
2130 16 for SVE predicates even if they are fixed-length.
2132 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2134 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
2135 operand order match the MOV /Z alias.
2137 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2139 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
2140 the vector pattern as an aarch64_svpattern argument. Update the
2141 overloaded caller accordingly.
2142 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
2143 (aarch64_output_sve_vector_inc_dec): Likewise.
2145 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2147 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
2148 multiplication case, try to compute VG * (lowest set bit) directly
2149 rather than always basing the multiplication on VG. Use
2150 expand_mult for the multiplication if we can.
2152 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2154 * config/aarch64/aarch64-protos.h
2155 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
2156 (aarch64_sve_inc_dec_immediate_p): Rename to...
2157 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2158 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
2159 (aarch64_output_sve_scalar_inc_dec): Declare.
2160 (aarch64_output_sve_inc_dec_immediate): Rename to...
2161 (aarch64_output_sve_vector_inc_dec): ...this.
2162 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
2163 (aarch64_output_sve_scalar_inc_dec): New functions.
2164 (aarch64_output_sve_addvl_addpl): Remove the base and offset
2165 arguments. Only handle true ADDVL and ADDPL instructions;
2166 don't emit an INC or DEC.
2167 (aarch64_sve_inc_dec_immediate_p): Rename to...
2168 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2169 (aarch64_output_sve_inc_dec_immediate): Rename to...
2170 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
2171 aarch64_sve_vector_inc_dec_immediate_p.
2172 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
2173 (aarch64_sve_plus_immediate): New predicates.
2174 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
2175 rather than aarch64_sve_addvl_addpl_immediate.
2176 (aarch64_sve_inc_dec_immediate): Rename to...
2177 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
2178 aarch64_sve_vector_inc_dec_immediate_p.
2179 (aarch64_sve_add_operand): Update accordingly.
2180 * config/aarch64/constraints.md (Uai): New constraint.
2181 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
2182 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
2183 operand into a register if it satisfies aarch64_sve_plus_immediate.
2184 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
2185 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
2186 * config/aarch64/aarch64-sve.md (add<mode>3): Call
2187 aarch64_output_sve_vector_inc_dec instead of
2188 aarch64_output_sve_inc_dec_immediate.
2190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2192 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
2193 (UNSPEC_REVW): New constants.
2194 (elem_bits): New mode attribute.
2195 (SVE_INT_UNARY): New int iterator.
2196 (optab): Handle UNSPEC_REV[BHW].
2197 (sve_int_op): New int attribute.
2198 (min_elem_bits): Handle VNx16QI and the predicate modes.
2199 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
2200 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
2201 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
2202 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
2203 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
2204 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
2205 unspecs based on the total width of the reversed data.
2206 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
2207 reinterpret followed by a subreg on big-endian targets.
2209 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2210 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2212 * config/aarch64/aarch64-sve.md
2213 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
2214 alternatives in which one of the inputs is in the same register
2217 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2219 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
2220 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
2222 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2224 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
2225 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
2227 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2228 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2230 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
2231 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
2232 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
2234 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2235 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2237 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
2238 Add an alternative that uses reversed shifts.
2240 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2242 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
2245 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2247 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
2248 a commutativity marker.
2250 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2251 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2253 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
2254 (aarch64_prepare_sve_cond_int_fma): Declare.
2255 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
2256 (aarch64_prepare_sve_int_fma): New functions.
2257 (aarch64_prepare_sve_cond_int_fma): Likewise.
2258 * config/aarch64/aarch64-sve.md
2259 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
2260 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
2261 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
2262 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
2263 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
2264 (*madd<mode>): Rename to...
2265 (*fma<mode>4): ...this.
2266 (*msub<mode>): Rename to...
2267 (*fnma<mode>4): ...this.
2269 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2270 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2272 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
2273 Print 2.0 naturally.
2274 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
2275 * config/aarch64/predicates.md
2276 (aarch64_sve_float_negated_arith_immediate): New predicate,
2277 renamed from aarch64_sve_float_arith_with_sub_immediate.
2278 (aarch64_sve_float_arith_with_sub_immediate): Test for both
2279 positive and negative constants.
2280 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
2281 or an aarch64_sve_float_arith_with_sub_immediate.
2282 * config/aarch64/constraints.md (vsN): Use
2283 aarch64_sve_float_negated_arith_immediate.
2284 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
2286 (sve_pred_fp_rhs2_immediate): New int attribute.
2287 * config/aarch64/aarch64-sve.md
2288 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
2289 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
2290 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
2291 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
2292 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
2293 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
2295 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2296 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2298 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
2299 (*aarch64_cond_abd<SVE_F:mode>_3)
2300 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
2302 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2303 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2305 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
2306 (*aarch64_cond_<su>abd<mode>_any): New patterns.
2308 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2309 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2311 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
2312 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
2313 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2314 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
2316 * optabs.h (create_convert_operand_from): Expand comment.
2317 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
2318 when mapping scalar rtxes to vector operands.
2319 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
2320 ashiftrt and lshiftrt.
2321 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
2322 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
2323 (*cond_<optab><mode>_any_const): New patterns.
2325 2019-08-15 Martin Liska <mliska@suse.cz>
2328 * cgraph.c (cgraph_node::remove): When setting
2329 n->origin = NULL for all nested functions, reset
2332 2019-08-15 Martin Liska <mliska@suse.cz>
2334 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
2337 2019-08-15 Martin Liska <mliska@suse.cz>
2340 * passes.c (order): Remove.
2341 (uid_hash_t): Likewise).
2342 (remove_cgraph_node_from_order): Remove from set
2343 of pointers (cgraph_node *).
2344 (insert_cgraph_node_to_order): New.
2345 (duplicate_cgraph_node_to_order): New.
2346 (do_per_function_toporder): Register all 3 cgraph hooks.
2347 Skip removed_nodes now as we know about all of them.
2349 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
2351 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
2352 <case E_V8QImode>: Use vector_set path for
2353 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2354 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
2355 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2357 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2359 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
2361 2019-08-14 Martin Sebor <msebor@redhat.com>
2363 PR tree-optimization/91294
2364 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
2365 source length as exact.
2367 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2369 * doc/extend.texi: Add "noinit" attribute documentation.
2370 * doc/sourcebuild.texi: Add noinit effective target documentation.
2371 * varasm.c (default_section_type_flags): Add support for "noinit"
2373 (default_elf_select_section): Add support for "noinit" attribute.
2374 * config/msp430/msp430.c (msp430_attribute_table): Remove
2377 2019-08-14 Richard Biener <rguenther@suse.de>
2378 Uroš Bizjak <ubizjak@gmail.com>
2381 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
2383 (scalar_chain::smode): New member.
2384 (scalar_chain::vmode): Likewise.
2385 (dimode_scalar_chain): Rename to...
2386 (general_scalar_chain): ... this.
2387 (general_scalar_chain::general_scalar_chain): Take mode arguments.
2388 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
2389 base with TImode and V1TImode.
2390 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
2391 (general_scalar_chain::vector_const_cost): Adjust for SImode
2393 (general_scalar_chain::compute_convert_gain): Likewise. Add
2394 {S,U}{MIN,MAX} support.
2395 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
2396 (general_scalar_chain::make_vector_copies): Likewise. Handle
2397 non-DImode chains appropriately.
2398 (general_scalar_chain::convert_reg): Likewise.
2399 (general_scalar_chain::convert_op): Likewise.
2400 (general_scalar_chain::convert_insn): Likewise. Add
2401 fatal_insn_not_found if the result is not recognized.
2402 (convertible_comparison_p): Pass in the scalar mode and use that.
2403 (general_scalar_to_vector_candidate_p): Likewise. Rename from
2404 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
2405 (scalar_to_vector_candidate_p): Remove by inlining into single
2407 (general_remove_non_convertible_regs): Rename from
2408 dimode_remove_non_convertible_regs.
2409 (remove_non_convertible_regs): Remove by inlining into single caller.
2410 (convert_scalars_to_vector): Handle SImode and DImode chains
2411 in addition to TImode chains.
2412 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
2413 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
2414 (*<maxmin>di3_doubleword): Likewise.
2416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2417 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2419 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
2420 (*cond_bic<mode>_any): New patterns.
2422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2424 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
2425 take the equivalent mask, as well as a bit count.
2426 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
2427 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
2428 (aarch64_sve_pred_and_operand): New predicates.
2429 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
2431 * config/aarch64/aarch64-sve.md
2432 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
2433 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
2435 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2437 * config/aarch64/aarch64-sve.md
2438 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2439 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
2442 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2443 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2445 * config/aarch64/aarch64-sve.md
2446 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
2447 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
2449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2450 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2452 * config/aarch64/aarch64-sve.md
2453 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
2454 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
2456 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2458 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
2459 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
2462 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2463 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2465 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
2467 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2468 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2470 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2471 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2472 (aarch64_print_operand): Add support for %I.
2473 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2474 Bitcast floating-point constants to the corresponding integer constant.
2475 (aarch64_float_const_representable_p): Handle vectors as well
2477 (aarch64_expand_sve_vcond): Make sure that the operands are valid
2478 for the new vcond_mask_<mode><vpred> expander.
2479 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
2480 test aarch64_float_const_representable_p.
2481 (aarch64_sve_reg_or_dup_imm): New predicate.
2482 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
2483 gen_vcond_mask_<mode><vpred> instead of
2484 gen_aarch64_sve_dup<mode>_const.
2485 (vcond_mask_<mode><vpred>): Turn into a define_expand that
2486 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
2487 for operands 1 and 2 respectively. Force operand 2 into a
2488 register if operand 1 is a register. Fold old define_insn...
2489 (aarch64_sve_dup<mode>_const): ...and this define_insn...
2490 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
2491 floating-point constants that can be moved as integers. Add
2492 alternatives for MOV /M and FMOV /M.
2493 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
2494 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
2495 1 and 2 respectively.
2496 * config/aarch64/constraints.md (Ufc): Handle vectors as well
2498 (vss): New constraint.
2500 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2502 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
2503 (aarch64_sve_float_maxmin_operand): New predicates.
2504 * config/aarch64/constraints.md (vsB): New constraint.
2506 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
2507 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
2509 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
2510 Use aarch64_sve_float_maxmin_operand for operand 2.
2511 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
2512 Add alternatives for the constant forms.
2514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2516 * config/aarch64/constraints.md (vsb): New constraint.
2517 (vsm): Generalize description.
2518 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
2520 (sve_imm_con): Handle smax, smin, umax and umin.
2521 (sve_imm_prefix): New code attribute.
2522 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
2523 (aarch64_sve_vsb_operand): New predicates.
2524 (aarch64_sve_mul_immediate): Rename to...
2525 (aarch64_sve_vsm_immediate): ...this.
2526 (aarch64_sve_mul_operand): Rename to...
2527 (aarch64_sve_vsm_operand): ...this.
2528 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
2529 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
2530 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
2531 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
2532 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
2533 add movprfx support for the immediate alternatives.
2534 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
2536 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
2539 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2541 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
2542 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
2543 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
2545 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2547 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2548 (optab, sve_int_op): Handle them.
2549 * config/aarch64/aarch64-sve.md: Expand comment.
2551 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2553 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2554 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2555 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2557 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2559 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2560 (aarch64_expand_sve_const_pred_trn): New functions.
2561 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2562 use the above functions when the parameter is true.
2563 (aarch64_expand_sve_const_pred): Update call accordingly.
2564 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2566 (@aarch64_sve_<perm_insn><mode>): ...this.
2568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2570 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2572 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2573 (aarch64_sve_emit_int_cmp): New functions.
2574 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2575 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2576 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2577 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2578 (UNSPEC_PRED_Z): New unspec.
2579 (set_clobber_cc_nzc): Delete.
2580 * config/aarch64/aarch64-sve.md: Add a block comment about
2582 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2583 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2584 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2586 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2587 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2588 check for compatible predicates.
2589 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2590 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2591 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2594 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2596 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2597 * config/aarch64/aarch64-sve.md: Add a section describing it.
2598 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2599 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2600 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2601 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2602 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2603 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2604 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2605 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2606 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2607 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2608 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2609 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2610 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2611 (aarch64_evpc_rev_local): Update accordingly.
2613 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2615 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2617 (SVE_BHSI, SVE_SDI): Tweak comment.
2618 (SVE_HSDI): Likewise. Fix definition.
2619 (SVE_SDF): New mode iterator.
2620 (elem_bits): New mode attribute.
2621 (SVE_COND_FCVT): New int iterator.
2622 * config/aarch64/aarch64-sve.md
2623 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2624 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2625 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2626 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2627 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2628 ...these new patterns.
2629 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2630 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2631 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2633 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2634 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2635 ...these new patterns.
2636 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2637 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2638 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2639 ...this new pattern.
2640 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2641 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2642 ...this new pattern.
2643 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2645 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2647 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2648 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2649 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2651 (optab, su): Handle them.
2652 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2653 * config/aarch64/aarch64-sve.md
2654 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2655 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2656 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2657 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2658 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2659 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2660 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2661 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2662 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2664 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2665 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2666 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2667 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2668 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2669 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2670 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2671 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2672 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2673 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2674 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2675 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2676 of UNSPEC_FLOAT_CONVERT.
2677 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2678 aarch64_sve_extend<mode><Vwide>2.
2680 2019-08-14 Richard Biener <rguenther@suse.de>
2683 * config/i386/i386-features.c
2684 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2685 individual instruction gain. Fix reg-reg copy GRP cost. Use
2686 ix86_cost->sse_op for vector instruction costs.
2688 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2690 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2691 (cmp_op): Handle it.
2692 (SVE_COND_FP_CMP): Rename to...
2693 (SVE_COND_FP_CMP_I0): ...this.
2694 (SVE_FP_CMP): Remove.
2695 * config/aarch64/aarch64-sve.md
2696 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2697 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2698 using unspecs to represent the comparison.
2699 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2700 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2702 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2703 (aarch64_unspec_cond_code): Move after integer code. Handle
2705 (aarch64_emit_sve_predicated_cond): Replace with...
2706 (aarch64_emit_sve_fp_cond): ...this new function.
2707 (aarch64_emit_sve_or_conds): Replace with...
2708 (aarch64_emit_sve_or_fp_conds): ...this new function.
2709 (aarch64_emit_sve_inverted_cond): Replace with...
2710 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2711 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2713 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2715 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2716 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2717 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2718 SVE_HSD instead of SVE_SD.
2720 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2721 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2723 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2725 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2727 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2728 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2729 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2730 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2731 (*div<SVE_F:mode>3): Generalize to...
2732 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2734 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2735 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2737 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2739 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2741 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2743 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2745 * config/aarch64/aarch64-sve.md: Add a block comment about the
2746 handling of predicated FP operations.
2747 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2748 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2749 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2750 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2751 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2753 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2754 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2756 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2757 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2758 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2759 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2760 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2761 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2762 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2763 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2764 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2765 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2766 strictness operands. Use aarch64_sve_pred_dominates_p to check
2767 whether the predicate on the conditional operation is suitable
2768 for merging. Split patterns into the canonical equal-predicate form.
2769 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2770 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2772 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2773 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2775 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2776 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2777 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2779 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2780 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2783 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2784 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2786 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2787 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2788 actually has, rather than relying on REG_EQUAL notes.
2789 Make the insn operand order match the SVE operand order.
2790 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2791 the SVE operand order.
2793 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2795 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2796 (aarch64_emit_set_immediate): Likewise.
2797 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2798 (aarch64_pfalse_reg): Likewise.
2799 (aarch64_convert_sve_data_to_pred): New function.
2800 (aarch64_sve_move_pred_via_while): Take an optional target register
2801 and the required register mode.
2802 (aarch64_expand_sve_const_pred_1): New function.
2803 (aarch64_expand_sve_const_pred): Likewise.
2804 (aarch64_expand_mov_immediate): Build an all-true predicate
2805 if the significant bits of the immediate are all true. Use
2806 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2807 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2808 before register allocation.
2809 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2810 a VNx16BI PTRUE when splitting the memory alternative.
2811 (vec_duplicate<mode>): Update accordingly.
2812 (*pred_cmp<cmp_op><mode>): Rename to...
2813 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2817 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2818 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2819 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2820 (UNSPEC_PTEST): New unspec.
2821 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2822 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2823 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2824 * config/aarch64/aarch64-sve.md: Add a new section describing the
2825 handling of UNSPEC_PTEST.
2826 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2827 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2828 (ptest_ptrue<mode>): Replace with...
2829 (aarch64_ptest<mode>): ...this new pattern.
2830 (cbranch<mode>4): Update after above changes.
2831 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2833 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2834 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2835 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2837 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2840 * builtins.c (builtin_with_linkage_p): New function.
2841 * builtins.h (builtin_with_linkage_p): New function.
2842 * symtab.c (write_symbol): Remove redundant assert.
2843 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2844 Remove FIXME and use builtin_with_linkage_p.
2846 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2849 * tree-core.h (function_decl::function_code): Change type to
2851 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2852 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2853 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2854 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2856 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2857 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2858 (fndecl_built_in_p): Change the type of the "name" argument to
2860 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2861 after check for DECL_BUILT_IN_CLASS.
2862 * cgraphclones.c (build_function_decl_skip_args): Use
2863 set_decl_built_in_function.
2864 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2865 * ipa-split.c (split_function): Likewise.
2866 * langhooks.c (add_builtin_function_common): Likewise.
2867 * omp-simd-clone.c (simd_clone_create): Likewise.
2868 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2869 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2870 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2872 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2873 instead of DECL_FUNCTION_CODE.
2874 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2875 instead of DECL_FUNCTION_CODE.
2876 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2877 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2878 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2879 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2880 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2881 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2882 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2883 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2884 (alpha_gimple_fold_builtin): Likewise.
2885 * config/arc/arc.c (arc_expand_builtin): Likewise.
2886 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2887 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2888 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2889 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2890 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2891 * config/frv/frv.c (frv_expand_builtin): Likewise.
2892 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2893 (gcn_expand_builtin): Likewise.
2894 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2895 (fold_builtin_cpu): Likewise.
2896 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2897 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2898 (ix86_gimple_fold_builtin): Likewise.
2899 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2900 (ia64_expand_builtin): Likewise.
2901 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2902 * config/mips/mips.c (mips_expand_builtin): Likewise.
2903 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2904 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2905 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2906 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2907 * config/pa/pa.c (pa_expand_builtin): Likewise.
2908 * config/pru/pru.c (pru_expand_builtin): Likewise.
2909 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2910 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2912 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2913 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2914 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2915 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2916 (rs6000_builtin_reciprocal): Likewise.
2917 * config/rx/rx.c (rx_expand_builtin): Likewise.
2918 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2919 * config/s390/s390.c (s390_expand_builtin): Likewise.
2920 * config/sh/sh.c (sh_expand_builtin): Likewise.
2921 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2922 (sparc_fold_builtin): Likewise.
2923 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2924 * config/spu/spu.c (spu_expand_builtin): Likewise.
2925 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2926 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2927 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2928 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2929 (xtensa_expand_builtin): Likewise.
2931 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2934 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2935 before the DECL_FUNCTION_CODE.
2936 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2937 to check for a BUILT_IN_ALLOCA call.
2938 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2939 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2940 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2941 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2942 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2943 for BUILT_IN_NORMAL functions.
2944 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2945 test for BUILT_IN_TM_ABORT.
2946 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2947 to check for a BUILT_IN_STACK_RESTORE call.
2948 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2949 * tree-ssa-threadedge.c
2950 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2951 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2952 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2953 test for a BUILT_IN_NORMAL call instead of a negative test for
2954 an internal function call.
2956 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2958 * tree.h (build_vector_a_then_b): Declare.
2959 * tree.c (build_vector_a_then_b): New function.
2960 * fold-const-call.c (fold_while_ult): Likewise.
2961 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2962 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2963 (aarch64_svpattern): New enum.
2964 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2965 constants through aarch64_expand_mov_immediate.
2966 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2967 than general_operand as the predicate for operand 1.
2968 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2969 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2971 (simd_immediate_info::simd_immediate_info): New overload that
2972 takes a scalar_int_mode and an svpattern.
2973 (simd_immediate_info::u): Add a "pattern" field.
2974 (svpattern_token): New function.
2975 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2976 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2977 (aarch64_sve_move_pred_via_while): New functions.
2978 (aarch64_expand_mov_immediate): Try using
2979 aarch64_sve_move_pred_via_while for predicates that contain N ones
2980 followed by M zeros but that do not correspond to a VLnnn pattern.
2981 (aarch64_sve_pred_valid_immediate): New function.
2982 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2983 with PTRUE and PFALSE.
2984 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2987 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2989 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2991 (darwin_override_options): Likewise.
2992 * config/darwin.h: Likewise.
2993 * config/darwin.opt: Likewise.
2994 * config/i386/i386.c (output_pic_addr_const): Likewise.
2995 * config/rs6000/darwin.h: Likewise.
2996 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2997 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2998 ... this TARGET_MACHO_SYMBOL_STUBS.
2999 (FUNCTION_PROFILER):Likewise.
3000 * config/i386/i386.h: Likewise.
3002 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3004 * config/i386/i386-expand.c (ix86_expand_vector_extract)
3005 <case E_V2SImode>: Use vec_extr path for
3006 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3007 <case E_V8QImode>: Ditto.
3008 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
3009 Use SWI48 mode iterator. Use %k to output operand 0.
3010 (*mmx_pextrw): New insn pattern.
3011 (*mmx_pextrb): Ditto.
3012 (*mmx_pextrb_zext): Ditto.
3014 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
3016 * target.def (libc_has_function, libc_has_fast_function): Improve
3017 documentation strings.
3018 * doc/tm.texi: Regenerate.
3020 2019-08-13 Caroline Tice <cmtice@google.com>
3023 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
3024 vtv_end.o or vtv_end_preinit.o files if !static.
3026 2019-08-13 Olivier Hainque <hainque@adacore.com>
3028 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
3030 2019-08-13 Olivier Hainque <hainque@adacore.com>
3032 * rtlanal.c (tablejump_casesi_pattern): New function, to
3033 determine if a tablejump insn is a casesi dispatcher. Extracted
3034 from patch_jump_insn.
3035 * rtl.h (tablejump_casesi_pattern): Declare.
3036 * cfgrtl.c (patch_jump_insn): Use it.
3037 * dwarf2cfi.c (create_trace_edges): Use it.
3039 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3042 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
3043 operand is larger than a long int.
3045 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3047 * machmode.h (opt_mode::else_mode): New function.
3048 (opt_mode::else_blk): Use it.
3049 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
3050 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
3051 (aarch64_gen_stepped_int_parallel): Likewise.
3052 (aarch64_stepped_int_parallel_p): Likewise.
3053 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3055 * config/aarch64/aarch64.c
3056 (aarch64_expand_sve_widened_duplicate): Delete.
3057 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
3058 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
3059 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3060 argument. Use early returns in the !CONST_INT_P handling.
3061 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
3062 than handling some inline.
3063 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
3065 (aarch64_simd_container_mode): ...here.
3066 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
3067 (aarch64_sve_ld1rq_operand_p): New functions.
3068 * config/aarch64/predicates.md (descending_int_parallel)
3069 (aarch64_sve_ld1rq_operand): New predicates.
3070 * config/aarch64/constraints.md (UtQ): New constraint.
3071 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
3072 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
3073 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
3074 (@aarch64_sve_reinterpret<mode>): New expander.
3075 (*aarch64_sve_reinterpret<mode>): New pattern.
3076 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
3077 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
3078 (*sve_ld1rq<Vesize>): Replace with...
3079 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
3081 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3083 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
3086 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3088 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
3089 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
3090 (msp430_check_path_for_devices): New.
3091 (parse_devices_csv_1): New.
3092 (parse_devices_csv): New.
3093 (msp430_extract_mcu_data): Try to find devices.csv and search for the
3094 MCU data in devices.csv before using the hard-coded data.
3095 Warn if devices.csv isn't found and the MCU wasn't found in the
3096 hard-coded data either.
3097 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
3098 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
3099 Search for devices.csv on -I and -L paths.
3100 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
3101 msp430_set_driver_var.
3102 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
3104 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
3105 searched for devices.csv.
3106 (mwarn-devices-csv): Document option.
3108 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3110 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
3111 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
3112 Use a single Dn alternative instead of separate Dz and Dm
3113 alternatives. Use aarch64_output_sve_move_immediate.
3114 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
3116 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
3118 (aarch64_output_sve_mov_immediate): Handle predicate modes.
3119 (aarch64_output_ptrue): Delete.
3121 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3123 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
3125 (simd_immediate_info::value, simd_immediate_info::step)
3126 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
3128 (simd_immediate_info::u): ...this new union.
3129 (simd_immediate_info::simd_immediate_info): Update accordingly.
3130 (aarch64_output_simd_mov_immediate): Likewise.
3131 (aarch64_output_sve_mov_immediate): Likewise.
3133 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3135 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
3137 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
3138 (msp430_select_cpu): New spec function.
3139 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
3141 * config/msp430/msp430-devices.c: New file.
3142 * config/msp430/msp430-devices.h: New file.
3143 * config/msp430/msp430.c: Remove msp430_mcu_data.
3144 (msp430_option_override): Use msp430_extract_mcu_data to extract
3146 (msp430_use_f5_series_hwmult): Likewise.
3147 (use_32bit_hwmult): Likewise.
3148 (msp430_no_hwmult): Likewise.
3149 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
3151 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
3153 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
3154 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
3155 Remove hard-coded MCU multilib data.
3157 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3159 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
3160 based on the mode instead of testing properties of it.
3162 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3164 * doc/md.texi: Document the x and y constraints for AArch64.
3165 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
3166 (FP_LO8_REGS): New reg_class.
3167 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
3168 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
3169 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
3170 * config/aarch64/predicates.md (aarch64_simd_register): Use
3171 FP_REGNUM_P instead of checking the classes manually.
3172 * config/aarch64/constraints.md (y): New constraint.
3174 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3176 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
3177 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
3178 * config/aarch64/aarch64-simd.md
3179 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
3180 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
3181 from the asm template.
3182 * config/aarch64/aarch64-sve.md
3183 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
3184 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
3185 from the asm template.
3186 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
3187 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
3188 from the asm template.
3189 * config/aarch64/aarch64-simd-builtins.def: Update comment.
3191 2019-08-13 Martin Liska <mliska@suse.cz>
3193 * value-prof.c (gimple_ic_transform): Add new line.
3194 Print details with MSG_NOTE.
3196 2019-08-13 Martin Liska <mliska@suse.cz>
3198 * doc/invoke.texi: Document automatic detection of jobserver.
3199 * lto-wrapper.c (run_gcc): Detect jobserver always.
3201 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3203 * config/i386/i386-expand.c (ix86_expand_vector_set)
3204 <case E_V2SImode>: Use vec_merge path for
3205 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3206 <case E_V8QImode>: Ditto.
3207 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
3208 (*mmx_pinsrb): Ditto.
3210 2019-08-12 Jakub Jelinek <jakub@redhat.com>
3214 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
3215 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
3216 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
3217 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
3218 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
3220 2019-08-12 Richard Biener <rguenther@suse.de>
3223 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
3226 2019-08-12 Richard Biener <rguenther@suse.de>
3229 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
3230 lang_mask option, always use CL_DRIVER.
3231 (get_options_from_collect_gcc_options): Adjust.
3232 (find_and_merge_options): Likewise.
3233 (run_gcc): Likewise.
3235 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3237 * ipa-predicate.c (add_condition): Restore inverted test.
3239 2019-08-10 Jakub Jelinek <jakub@redhat.com>
3241 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
3242 (enum omp_clause_device_type_kind): New enum.
3243 (struct tree_omp_clause): Add subcode.device_type_kind.
3244 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
3245 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3246 for device_type clause.
3247 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
3248 * tree-pretty-print.c (dump_omp_clause): Likewise.
3251 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
3254 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
3256 * reload1.c (finish_spills): Do not check ira_conflicts_p when
3257 handling spilled pseudos.
3259 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3262 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
3263 to preserve the contents of the original insns.
3265 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3267 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
3268 (addsi3_compare_op2): Likewise.
3270 2019-08-09 Martin Liska <mliska@suse.cz>
3272 * alias.c (alias_ptr_types_compatible_p): Strengten
3273 type comparison in LTO mode.
3275 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
3278 * tree-tailcall.c (find_tail_calls): Reject calls that might
3279 read from an escaped RESULT_DECL.
3281 2019-08-09 Martin Liska <mliska@suse.cz>
3283 * doc/invoke.texi: Document the option value.
3284 * lto-wrapper.c (run_gcc): Set auto_parallel
3285 only with -flto=auto.
3287 2019-08-09 Martin Liska <mliska@suse.cz>
3289 * opts.c (common_handle_option): Error for an invalid argument
3292 2019-08-09 Martin Liska <mliska@suse.cz>
3294 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
3295 use dump_printf to report optimization.
3296 (sem_variable::merge): Likwise.
3297 (sem_item_optimizer::merge_classes): Use dump_printf to report
3300 2019-08-09 Martin Liska <mliska@suse.cz>
3302 * value-prof.c (gimple_divmod_fixed_value_transform):
3303 Use dump_printf_loc.
3304 (gimple_mod_pow2_value_transform): Likewise.
3305 (gimple_mod_subtract_transform): Likewise.
3306 (init_node_map): Likewise.
3307 (gimple_ic_transform): Likewise.
3308 (gimple_stringops_transform): Likewise.
3310 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3312 * doc/extend.texi: Add const qualifier to ld intrinsics.
3314 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3316 * config/rs6000/dfp.md (D64_D128): Rename to ...
3317 (DDTD): ... this, throughout.
3318 (dfp_suffix): Rename to ...
3319 (q): ... this, throughout.
3321 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3323 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
3324 (dfp_suffix): Ditto.
3325 (adddd3, addtd3): Merge to ...
3326 (add<mode>3 for D64_D128): ... this.
3327 (subdd3, subtd3): Merge to ...
3328 (sub<mode>3 for D64_D128): ... this.
3329 (muldd3, multd3): Merge to ...
3330 (mul<mode>3 for D64_D128): ... this.
3331 (divdd3, divtd3): Merge to ...
3332 (div<mode>3 for D64_D128): ... this.
3333 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
3334 (*cmp<mode>_internal1 for D64_D128): ... this.
3335 (ftruncdd2, ftrunctd2): Merge to ...
3336 (ftrunc<mode>2 for D64_D128): ... this.
3337 (fixdddi2, fixtddi2): Merge to ...
3338 (fix<mode>di2 for D64_D128): ... this.
3340 2019-08-08 Jim Wilson <jimw@sifive.com>
3343 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
3344 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
3345 Pass into recursive call.
3346 (riscv_flatten_aggregate_argument): New arg. Pass to
3347 riscv_flatten_aggregate_field.
3348 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
3349 riscv_flatten_aggregate_argument twice, with false and true as last
3350 arg. Process result twice. Compare results and warn if different.
3351 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
3353 2019-08-08 Martin Liska <mliska@suse.cz>
3356 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
3357 * lto-wrapper.c (jobserver_active_p): Likewise.
3359 2019-08-08 Martin Liska <mliska@suse.cz>
3361 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
3362 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
3363 (create_version_clone_with_body): Likewise.
3365 2019-08-08 Jakub Jelinek <jakub@redhat.com>
3367 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
3368 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
3369 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
3370 GOVD_EXPLICIT flags.
3371 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
3372 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
3373 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
3374 call install_var_field with mask 11 instead of 3.
3375 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
3376 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
3378 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3380 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
3381 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
3383 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3385 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
3386 MOVPRFX alternatives. Make the GPR alternatives more expensive
3389 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3391 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
3392 Disparage the GPR alternative relative to the FPR one.
3393 Fix handling of 8-bit and 16-bit FPR values.
3395 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3397 * config/aarch64/iterators.md (BITWISEV): Delete.
3398 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
3399 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
3400 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3401 UNSPEC_FMINNMV, UNSPEC_FMINV.
3402 (bit_reduc_op): Delete.
3403 (sve_int_op): New int attribute.
3404 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3405 UNSPEC_FMINNMV, UNSPEC_FMINV.
3406 * config/aarch64/aarch64-sve.md
3407 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3408 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3409 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
3410 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
3411 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
3412 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
3414 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
3415 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
3416 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
3417 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
3418 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
3421 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3423 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
3424 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
3425 (fms<mode>4, *fms<mode>4): Replace with...
3426 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3427 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
3428 Use unspecs instead of rtx codes.
3429 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
3430 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
3432 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3434 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
3436 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
3437 * config/aarch64/aarch64-sve.md
3438 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
3439 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
3440 use a single unspec for the rhs.
3441 (*<su><maxmin><mode>3): Delete.
3442 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
3444 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3446 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
3447 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
3448 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
3449 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
3450 (optab, sve_fp_op): Handle them.
3451 (SVE_FP_UNARY): Delete.
3452 (optab): Remove sqrt entry.
3453 (sve_fp_op): Remove neg, abs and sqrt entries.
3454 (SVE_COND_FP_UNARY): New int iterator.
3455 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
3456 (*<frint_pattern><mode>2): Delete.
3457 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3458 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3459 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3460 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3462 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3464 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
3466 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3468 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3469 (UNSPEC_COND_FADD): ...this.
3470 (UNSPEC_COND_SUB): Rename to...
3471 (UNSPEC_COND_FSUB): ...this.
3472 (UNSPEC_COND_MUL): Rename to...
3473 (UNSPEC_COND_FMUL): ...this.
3474 (UNSPEC_COND_DIV): Rename to...
3475 (UNSPEC_COND_FDIV): ...this.
3476 (UNSPEC_COND_MAX): Rename to...
3477 (UNSPEC_COND_FMAXNM): ...this.
3478 (UNSPEC_COND_MIN): Rename to...
3479 (UNSPEC_COND_FMINNM): ...this.
3480 (UNSPEC_COND_LT): Rename to...
3481 (UNSPEC_COND_FCMLT): ...this.
3482 (UNSPEC_COND_LE): Rename to...
3483 (UNSPEC_COND_FCMLE): ...this.
3484 (UNSPEC_COND_EQ): Rename to...
3485 (UNSPEC_COND_FCMEQ): ...this.
3486 (UNSPEC_COND_NE): Rename to...
3487 (UNSPEC_COND_FCMNE): ...this.
3488 (UNSPEC_COND_GE): Rename to...
3489 (UNSPEC_COND_FCMGE): ...this.
3490 (UNSPEC_COND_GT): Rename to...
3491 (UNSPEC_COND_FCMGT): ...this.
3492 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
3493 (sve_fp_op_rev): Update accordingly.
3494 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
3496 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3498 * config/aarch64/aarch64-sve.md: Reorganize contents and add
3500 * config/aarch64/check-sve-md.awk: New file.
3501 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
3502 (insn-conditions.md): Depend on it.
3504 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
3507 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
3508 (*negsi2_cmpz_zext): Ditto.
3510 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3512 * config/aarch64/iterators.md (commutative): Remove.
3514 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
3517 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
3518 processing COLLECT_GCC_OPTIONS.
3519 (run_gcc): Likewise.
3521 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3523 PR tree-optimization/91109
3524 * lra-remat.c (update_scratch_ops): Remove assignment of the
3527 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3529 * data-streamer.h (streamer_write_poly_uint64): Declare.
3530 (streamer_read_poly_uint64): Likewise.
3531 * data-streamer-in.c (streamer_read_poly_uint64): New function.
3532 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
3533 * ipa-predicate.h (condition::size): Turn into a poly_int64.
3534 (add_condition): Take a poly_int64 size.
3535 * ipa-predicate.c (add_condition): Likewise.
3536 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
3537 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
3538 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
3539 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
3540 condition::size as a poly_int64.
3541 (unmodified_parm_1): Take a poly_int64 size pointer.
3542 (unmodified_parm): Likewise.
3543 (unmodified_parm_or_parm_agg_item): Likewise.
3544 (set_cond_stmt_execution_predicate): Update accordingly.
3545 (set_switch_stmt_execution_predicate): Likewise.
3546 (will_be_nonconstant_expr_predicate): Likewise.
3547 (will_be_nonconstant_predicate): Likewise.
3548 (inline_read_section): Stream condition::size as a poly_int.
3549 (ipa_fn_summary_write): Likewise.
3551 2019-08-07 Martin Liska <mliska@suse.cz>
3553 * fold-const.c (twoval_comparison_p): Replace int
3554 with bool as a return type.
3555 (simple_operand_p): Likewise.
3556 (operand_equal_p): Replace int with bool as a return type.
3557 * fold-const.h (operand_equal_p): Likewise.
3559 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3561 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3562 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3563 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3564 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3565 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3566 * tree-pretty-print.c (dump_omp_clause): Likewise.
3567 * tree-nested.c (convert_nonlocal_omp_clauses,
3568 convert_local_omp_clauses): Likewise.
3569 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3571 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3572 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3573 clause with array or reference to array types, no matter what type
3574 except for reference it has.
3576 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3578 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3580 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3582 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3583 (arch_canonicalize): Support rv32g and rv64g and fix error
3586 2019-08-06 Martin Liska <mliska@suse.cz>
3588 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3589 and DECL_IS_OPERATOR_DELETE_P.
3591 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3593 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3594 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3595 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3596 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3597 (gimplify_omp_for): Don't do C++ random access iterator clause
3598 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3599 don't predetermine the artificial iterator in case of C++ random
3600 access iterators as lastprivate, but private. For OMP_LOOP, force
3601 bind expr around simd body and force for_pre_body before the
3602 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3603 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3604 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3605 diff var of C++ random access iterators. Handle
3606 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3607 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3608 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3609 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3610 * omp-low.c (lower_rec_input_clauses): For
3611 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3612 variables instead of default constructing them.
3613 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3614 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3615 is_taskloop_ctx check from the assert to the guarding condition.
3617 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3619 * config/riscv/multilib-generator: (canonical_order): New.
3620 (arch_canonicalize): Dito.
3621 Apply arch_canonicalize for alts.
3623 2019-08-05 Martin Sebor <msebor@redhat.com>
3625 * doc/extend.texi (Common Variable Attributes): Document alias
3628 2019-08-05 Marek Polacek <polacek@redhat.com>
3630 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3631 * doc/invoke.texi: Document -Wcomma-subscript.
3633 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3635 * tree-core.h (tree_function_decl): Make function_code an
3636 independent field. Group the remaining bitfields into bytes
3637 and move decl_type so that it contines to be at a byte boundary.
3638 Leave 12 bits for future expansion.
3640 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3642 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3643 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3644 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3647 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3649 * gimple.h (gimple_move_vops): Declare.
3650 * gimple.c (gimple_move_vops): New function
3651 * gimple-fold.c (replace_call_with_call_and_fold)
3652 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3653 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3654 (gimple_fold_call): Use it.
3655 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3656 * tree-call-cdce.c (use_internal_fn): Likewise.
3657 * tree-if-conv.c (predicate_load_or_store): Likewise.
3658 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3659 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3660 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3661 (update_call_from_tree): Likewise.
3662 * tree-vect-stmts.c (vectorizable_load): Likewise.
3663 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3665 2019-08-05 Martin Liska <mliska@suse.cz>
3668 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3670 (eliminate_unnecessary_stmts): Likewise.
3672 2019-08-05 Richard Biener <rguenther@suse.de>
3675 * fold-const.c (get_array_ctor_element_at_index): Create
3676 offset_ints according to the sign of the index type and treat
3677 that as signed if it is obviously so.
3679 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3682 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3683 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3684 _mm256_storeu2_m128i): New function.
3686 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3688 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3689 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3691 2019-08-05 Alan Modra <amodra@gmail.com>
3694 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3695 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3697 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3699 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3700 bug that was fixed in Tcl 8.6.1.
3702 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3704 * config/rs6000/future.md: New file.
3705 * config/rs6000/rs6000.md: Include future.md.
3706 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3708 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3710 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3711 check to use targetm.slow_unaligned_access instead.
3713 * function.c (assign_param_data_one): Remove unused data members.
3715 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3717 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3718 build_distinct_type_copy.
3719 (simd_clone_adjust_argument_types): Ditto.
3720 (simd_clone_adjust): Call build_distinct_type_copy here.
3721 (expand_simd_clones): Ditto.
3723 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3726 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3728 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3730 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3731 from 'const void *'.
3732 (sort_locs_in_loop_postorder_cmp): Likewise.
3734 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3736 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3737 (hot-bb-count-ws-permille): Likewise.
3738 (hot-bb-frequency-fraction): Likewise.
3739 (unlikely-bb-count-fraction): Likewise.
3740 * params.def (hot-bb-count-fraction): Rework description.
3741 (hot-bb-count-ws-permille): Likewise.
3742 (hot-bb-frequency-fraction): Likewise.
3743 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3744 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3746 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3749 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3752 2019-08-02 Richard Biener <rguenther@suse.de>
3754 * vec.h (vec::sort): Add gcc_qsort_r support.
3755 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3756 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3757 to gcc_qsort_r style callback.
3758 (sort_locs_in_loop_postorder_cmp): Likewise.
3759 (analyze_memory_references): Use gcc_sort_r interfaces.
3760 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3762 2019-08-02 Martin Liska <mliska@suse.cz>
3765 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3766 to detect working job server.
3767 (driver::detect_jobserver): Test whether jobserver
3768 is active from GCC driver. That will prevent situation where
3769 GCC is invoked from a LD plugin and the linker already uses
3770 file descriptors suggested by make. That leads to a wrong
3772 * gcc.h (driver): Add detect_jobserver.
3773 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3774 not scanning for --jobserver-auth prefix.
3776 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3778 PR tree-optimization/91201
3779 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3780 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3783 2019-08-01 Martin Sebor <msebor@redhat.com>
3786 * tree.c (type_initializer_zero_p): Define.
3787 * tree.h (type_initializer_zero_p): New function.
3789 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3791 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3793 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3795 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3796 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3797 * predict.c (maybe_hot_count_p): Likewise.
3798 (maybe_hot_bb_p): Tweak comment.
3799 (maybe_hot_edge_p): Likewise.
3800 (probably_never_executed): Likewise. Minor tweak.
3801 (probably_never_executed_bb_p): Likewise.
3802 (unlikely_executed_edge_p): Likewise.
3803 (probably_never_executed_edge_p): Likewise.
3804 (optimize_function_for_size_p): Likewise.
3805 (optimize_function_for_speed_p): Likewise.
3806 (function_optimization_type): Likewise.
3807 (optimize_bb_for_size_p): Likewise.
3808 (optimize_bb_for_speed_p): Likewise.
3809 (bb_optimization_type): Likewise.
3810 (optimize_edge_for_size_p): Likewise.
3811 (optimize_edge_for_speed_p): Likewise.
3812 (optimize_insn_for_size_p): Likewise.
3813 (optimize_insn_for_speed_p): Likewise.
3814 (optimize_loop_for_size_p): Likewise.
3815 (optimize_loop_for_speed_p): Likewise.
3816 (optimize_loop_nest_for_speed_p): Likewise.
3817 (optimize_loop_nest_for_size_p): Likewise.
3818 (predictable_edge_p): Likewise.
3819 (handle_missing_profiles): Minor tweak.
3821 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3823 * config/rs6000/predicates.md (pcrel_external_address): Update
3826 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3829 * config/i386/mmx.md (usadv8qi): New expander.
3831 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3834 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3835 with reserved names that are in a system header.
3837 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3839 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3840 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3841 (*vec_extractv2si_0_zext): Ditto.
3842 (*vec_extractv2si_1): Add (rm,x) alternative.
3843 (*vec_extractv2si_1_zext): New insn pattern.
3844 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3847 2019-08-01 Richard Biener <rguenther@suse.de>
3849 * domwalk.c (bb_postorder): Remove static variable.
3850 (cmp_bb_postorder): Adjust.
3851 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3852 (dom_walker::walk): Adjust.
3854 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3856 * sort.cc (sort_r_ctx): New struct.
3857 (reorder23): Make templated on context type.
3859 (cmp1): Ditto. Adjust signature.
3862 [CHECKING_P] (cmp2to3): New static function. Use it...
3863 (gcc_qsort) [CHECKING_P]: ...here.
3864 (gcc_sort_r): New function.
3865 * system.h (sort_r_cmp_fn): New function typedef.
3866 (qsort_chk): Adjust signature.
3867 (gcc_sort_r): Declare.
3868 * vec.c (qsort_chk_error): Adjust.
3869 (qsort_chk): Adjust.
3871 2019-08-01 Richard Biener <rguenther@suse.de>
3873 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3874 (compute_antic): Localize it here.
3876 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3878 * common/config/riscv/riscv-common.c: Check -march string ends
3881 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3883 * ipa-devirt.c (type_warning_cmp): Make static.
3884 (decl_warning_cmp): Ditto.
3886 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3889 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3891 use of deleted rs6000_dejagnu_cpu_index variable.
3892 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3893 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3894 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3895 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3896 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3897 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3899 2019-07-31 Richard Biener <rguenther@suse.de>
3901 PR tree-optimization/91280
3902 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3903 Decompose MEM_REF manually for offset handling.
3905 2019-07-31 Richard Biener <rguenther@suse.de>
3907 PR tree-optimization/91293
3908 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3911 2019-07-31 Matt Thomas <matt@3am-software.com>
3912 Nick Hudson <nick@nthcliff.demon.co.uk>
3913 Matthew Green <mrg@eterna.com.au>
3914 Maya Rashish <coypu@sdf.org>
3916 * config.gcc (hppa*-*-netbsd*): New target.
3917 * config/pa/pa-netbsd.h: New file.
3918 * config/pa/pa32-netbsd.h: New file.
3920 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3922 PR tree-optimization/91201
3923 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3925 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3927 * config/gcn/gcn-valu.md
3928 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3929 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3930 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3931 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3932 struct ilist. Add nops for delayeduse insns.
3933 * config/gcn/gcn.md (delayeduse): New attribute.
3934 (*movbi): Remove s_waitcnt from stores.
3935 (*mov<mode>_insn): Likewise.
3936 (*movti_insn): Likewise. Add delayeduse attribute.
3937 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3938 (atomic_store<mode>): Remove or adjust s_waitcnt.
3940 2019-07-31 Richard Biener <rguenther@suse.de>
3942 * vr-values.h (vr_values::swap_vr_value): New.
3943 (vr_values::free_value_range): likewise.
3944 * vr-values.c (vr_values::swap_vr_value): Implement.
3945 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3946 Do not return a range or take a var.
3947 (evrp_range_analyzer::stack): Change back to recording a non-const
3949 * gimple-ssa-evrp-analyze.c
3950 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3952 (evrp_range_analyzer::pop_to_marker): Adjust.
3953 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3954 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3955 no longer needed value-range.
3957 2019-07-31 Martin Liska <mliska@suse.cz>
3959 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3960 have size and (or) alignment as 2nd and later arguments.
3961 Mark all of them as necessary.
3963 2019-07-31 Richard Biener <rguenther@suse.de>
3965 PR tree-optimization/91178
3966 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3969 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3971 PR tree-optimization/91201
3972 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3973 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3975 (reduc_plus_scal_<mode>): Improve formatting by introducing
3978 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3980 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3981 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3982 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3983 (aarch64_init_tme_builtins): New.
3984 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3985 (aarch64_expand_builtin_tme): New.
3986 (aarch64_expand_builtin): Handle TME builtins.
3987 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3988 __ARM_FEATURE_TME when enabled.
3989 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3990 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3992 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3993 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3995 (tstart, ttest, tcommit, tcancel): New instructions.
3996 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3997 (__tcancel, __ttest): New.
3998 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3999 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
4000 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
4001 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
4002 * config/arm/types.md: Add new tme type attr.
4003 * doc/invoke.texi: Document "tme".
4005 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
4007 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
4008 warn_unused_result attribute.
4009 (cmse_check_address_range): Add warn_unused_result attribute.
4011 2019-07-31 Richard Biener <rguenther@suse.de>
4013 PR tree-optimization/91257
4014 * tree-vrp.c (union_ranges): Unify equality and less tests
4015 by using compare_values. Re-order cheap tests first.
4017 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4020 * gimplify.c (gimplify_omp_for): If for class iterator on
4021 distribute parallel for there is no data sharing clause
4022 on inner_for_stmt, look for private clause on combined
4023 parallel too and if found, move it to inner_for_stmt.
4025 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
4027 * lra-int.h (lra_operand_data): Remove early_clobber field.
4028 (lra_insn_reg): Likewise.
4029 * lra.c (debug_operand_data): Update accordingly.
4030 (setup_operand_alternative): Likewise.
4031 (new_insn_reg): Likewise. Remove early_clobber parameter.
4032 (collect_non_operand_hard_regs): Update call accordingly.
4033 Don't assign to lra_insn_reg::early_clobber.
4034 (add_regs_to_insn_regno_info): Remove early_clobber parameter
4035 and update calls to new_insn_reg.
4036 (lra_update_insn_regno_info): Update calls accordingly.
4037 * lra-constraints.c (update_and_check_small_class_inputs): Take the
4038 alternative number as a parameter and test whether the operand
4039 is earlyclobbered in that particular alternative.
4040 (process_alt_operands): Update call accordingly. Use per-alternative
4041 checks for earyclobber here too.
4042 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
4043 against zero for IRA_UNKNOWN_ALT.
4045 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4047 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
4049 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
4051 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
4052 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4054 2019-07-30 Martin Liska <mliska@suse.cz>
4057 * cgraph.c (cgraph_edge::make_direct): Use
4058 edge->indirect_unknown_callee as edge->resolve_speculation can
4059 deallocate edge which is this pointer.
4061 2019-07-30 Richard Biener <rguenther@suse.de>
4063 PR tree-optimization/91257
4064 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
4066 2019-07-30 Martin Liska <mliska@suse.cz>
4068 * doc/invoke.texi: Document new behavior.
4069 * lto-wrapper.c (cpuset_popcount): New function
4070 is a copy of libgomp/config/linux/proc.c.
4071 (init_num_threads): Likewise.
4072 (run_gcc): Automatically detect core count for -flto.
4073 (jobserver_active_p): New function.
4075 2019-07-30 Richard Biener <rguenther@suse.de>
4077 PR tree-optimization/91257
4078 * bitmap.h (bitmap_ior_into_and_free): Declare.
4079 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
4080 whether to add the unliked element to the freelist.
4081 (bitmap_list_insert_element_after): Add defaulted param for
4082 an already allocated element.
4083 (bitmap_ior_into_and_free): New function.
4084 * tree-ssa-structalias.c (condense_visit): Reduce the
4085 ponts-to and edge bitmaps of the SCC members in a
4086 logarithmic fashion rather than all to one.
4088 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
4090 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
4091 parameter. When nonnull, make sure that the addition or subtraction
4092 has the same condition.
4093 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
4094 for CFN_COND_MUL too.
4096 2019-07-30 Richard Biener <rguenther@suse.de>
4098 PR tree-optimization/91291
4099 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
4102 2019-07-30 Jakub Jelinek <jakub@redhat.com>
4105 * omp-low.c (global_nonaddressable_vars): New variable.
4106 (use_pointer_for_field): For global decls, if they are non-addressable,
4107 remember it in the global_nonaddressable_vars bitmap, if they are
4108 addressable and in the global_nonaddressable_vars bitmap, ignore their
4109 TREE_ADDRESSABLE bit.
4110 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
4111 vars in global_nonaddressable_vars bitmap.
4112 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
4115 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
4116 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
4117 comparison to unsigned HOST_WIDE_INT before shifting it left.
4119 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4121 * config/i386/i386.md (movstrict<mode>): Use register_operand
4122 predicate for operand 0. Add expander condition. Assert that
4123 operand 0 is a SUBREG RTX.
4124 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
4125 Update operand constraints and insn condition.
4126 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
4127 (zero_extendqihi2_and): Do not call gen_movstrictqi.
4128 (*setcc_qi_slp): Use register_operand predicate for operand 0.
4129 Update operand 0 constraints.
4130 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
4132 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4134 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
4135 when -m{code,data}-region are used without -mlarge.
4136 * config/msp430/msp430.c (msp430_option_override): Error when a
4137 non-default code or data region is used without -mlarge.
4138 (msp430_section_attr): Emit a warning and do not add upper/lower/either
4139 attributes when they are used without -mlarge.
4141 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4144 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
4146 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4149 * wide-int.h (generic_wide_int::sext_elt): New function.
4150 * inchash.h (hash::add_wide_int): Use it instead of elt.
4152 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4154 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
4156 * config/arm/arm.md (<crc_variant>): Rename to...
4157 (arm_<crc_variant>): ... This.
4158 (<cdp>): Rename to...
4159 (arm_<cdp>): ... This.
4160 (<ldc>): Rename to...
4161 (arm_<ldc>): ... This.
4162 (<stc>): Rename to...
4163 (arm_<stc>): ... This.
4164 (<mcr>): Rename to...
4165 (arm_<mcr>): ... This.
4166 (<mrc>): Rename to...
4167 (arm_<mrc>): ... This.
4168 (<mcrr>): Rename to...
4169 (arm_<mcrr>): ... This.
4170 (<mrrc>): Rename to...
4171 (arm_<mrrc>): ... This.
4173 2019-07-29 Richard Biener <rguenther@suse.de>
4175 PR tree-optimization/91257
4176 * tree-ssa-sccvn.h (struct vn_avail): New.
4177 (struct vn_ssa_aux): Add avail member.
4178 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
4179 member, add m_avail_freelist one.
4180 (rpo_elim::~rpo_elim): Remove.
4181 (rpo_elim::eliminate_avail): Adjust to new avail tracking
4183 (rpo_elim::eliminate_push_avail): Likewise.
4184 (do_unwind): Likewise.
4185 (do_rpo_vn): Likewise.
4187 2019-07-29 Richard Biener <rguenther@suse.de>
4189 PR tree-optimization/91257
4190 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
4191 most cases, instead call compare_values which handles the
4192 symbolic ranges we handle specially.
4193 (compare_values_warnv): Do not call operand_less_p but open-code
4194 the effective fold calls. Avoid converting so much.
4196 2019-07-29 Martin Liska <mliska@suse.cz>
4198 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
4199 remove LHS of operator new call. It's handled latter.
4201 2019-07-29 Richard Biener <rguenther@suse.de>
4203 PR tree-optimization/91267
4204 * vr-values.c (vr_values::update_value_range): Add early return
4205 for effectively VARYING lattice entry.
4207 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4210 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
4211 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
4212 necessary if keep_all_vdefs_p is true.
4213 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
4214 that keep_all_vdefs_p is false.
4215 (mark_all_reaching_defs_necessary): Likewise.
4216 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
4218 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4220 * common.opt (Og): Change the initial value of flag_dse to 0.
4221 * opts.c (default_options_table): Move OPT_ftree_dse from
4222 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
4223 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
4224 entry before the OPT_ftree_sra entry.
4225 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
4226 of flags disabled by Og.
4228 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4230 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
4233 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4235 * doc/sourcebuild.texi (check-function-bodies): Document.
4237 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4239 * simplify-rtx.c (simplify_const_unary_operation): Fold a
4240 VEC_DUPLICATE of a fixed-length vector even if the result
4241 is variable-length. Likewise fold a duplicate of a
4242 variable-length vector if the variable-length vector is
4243 itself a duplicate of a fixed-length sequence.
4244 (test_vector_ops_duplicate): Test more cases.
4246 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4248 * vector-builder.h (vector_builder): Add a shape template parameter.
4249 (vector_builder::new_unary_operation): New function, generalizing
4250 the old tree_vector_builder function.
4251 (vector_builder::new_binary_operation): Likewise.
4252 (vector_builder::binary_encoded_nelts): Likewise.
4253 * int-vector-builder.h (int_vector_builder): Update template
4254 parameters to vector_builder.
4255 (int_vector_builder::shape_nelts): New function.
4256 * rtx-vector-builder.h (rtx_vector_builder): Update template
4257 parameters to vector_builder.
4258 (rtx_vector_builder::shape_nelts): New function.
4259 (rtx_vector_builder::nelts_of): Likewise.
4260 (rtx_vector_builder::npatterns_of): Likewise.
4261 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
4262 * tree-vector-builder.h (tree_vector_builder): Update template
4263 parameters to vector_builder.
4264 (tree_vector_builder::shape_nelts): New function.
4265 (tree_vector_builder::nelts_of): Likewise.
4266 (tree_vector_builder::npatterns_of): Likewise.
4267 (tree_vector_builder::nelts_per_pattern_of): Likewise.
4268 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
4269 (tree_vector_builder::new_binary_operation): Delete.
4270 (tree_vector_builder::binary_encoded_nelts): Likewise.
4271 * simplify-rtx.c: Include rtx-vector-builder.h.
4272 (distributes_over_addition_p): New function.
4273 (simplify_const_unary_operation)
4274 (simplify_const_binary_operation): Generalize handling of vector
4275 constants to include variable-length vectors.
4276 (test_vector_ops_series): Add more tests.
4278 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
4281 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
4282 than INDENTIFIER_POINTER.
4284 2019-07-28 Martin Liska <mliska@suse.cz>
4287 * cgraph.c (symbol_table::create_edge): Always allocate
4289 (symbol_table::free_edge): Store summary_id to
4290 edge_released_summary_ids if != -1;
4291 * cgraph.h (NEXT_FREE_NODE): Remove.
4292 (SET_NEXT_FREE_NODE): Likewise.
4293 (NEXT_FREE_EDGE): Likewise.
4294 (symbol_table::release_symbol): Store summary_id to
4295 cgraph_released_summary_ids if != -1;
4296 (symbol_table::allocate_cgraph_symbol): Always allocate
4299 2019-07-28 Alan Modra <amodra@gmail.com>
4301 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
4304 2019-07-28 Alan Modra <amodra@gmail.com>
4307 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
4309 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
4310 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
4311 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
4313 2019-07-28 Alan Modra <amodra@gmail.com>
4316 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
4317 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
4318 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
4319 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
4320 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
4321 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
4322 in asm_default spec.
4323 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
4324 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
4326 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4328 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
4330 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4333 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
4334 * config/aarch64/aarch64-option-extensions.def: Add new comments
4335 and restore easier to read options.
4337 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4339 * convert.c (convert_to_real_1): Move part of conversion code...
4340 * match.pd: ...To here.
4342 2019-07-26 Martin Jambor <mjambor@suse.cz>
4345 * ipa-inline-transform.c (check_speculations_1): New function.
4346 (push_all_edges_in_set_to_vec): Likewise.
4347 (check_speculations): Use check_speculations_1, new parameter
4349 (inline_call): Pass new_edges to check_speculations.
4350 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
4352 (speculation_useful_p): Early return true if edge is inlined, remove
4353 later checks for inline_failed.
4355 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
4357 PR rtl-optimization/91223
4358 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
4359 matching with INOUT operand.
4361 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4363 * stmt.c (expand_case): Try to narrow the index type if it's larger
4364 than a word. Tidy up.
4366 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4368 * cif-code.def (NEVER_CALL): New code.
4369 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
4370 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
4372 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
4374 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
4375 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4377 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4379 * ipa-devirt.c (add_type_duplicate): Fix return value.
4381 2019-07-25 Richard Biener <rguenther@suse.de>
4383 * tree-vrp.c (extract_range_from_multiplicative_op): Add
4384 type parameter and use it instead of guessing expression
4385 type from the first operand.
4386 (extract_range_from_binary_expr): Pass expr_type down.
4388 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4390 * config/arm/arm.md (SATrev): Change to code attribute.
4391 (*satsi_<SAT:code>): Adjust for the above.
4392 (*satsi_<SAT:code>_shift): Likewise.
4394 2019-07-25 Richard Biener <rguenther@suse.de>
4396 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
4397 Make value_range * temporary const.
4398 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
4400 (evrp_range_analyzer::record_ranges_from_): Likewise.
4401 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
4402 deal with having recorded a const one.
4403 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
4404 Return a const value_range *.
4405 (evrp_range_analyzer::pop_value_range): Likewise.
4406 (evrp_range_analyzer::stack): Record const value_range *s.
4407 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
4409 * gimple-ssa-sprintf.c (get_int_range): Likewise.
4410 (format_integer): Likewise.
4411 (sprintf_dom_walker::handle_gimple_call): Likewise.
4412 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
4413 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
4414 (vrp_prop::get_value_range): Adjust.
4415 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
4416 modifying the lattice in-place.
4417 (vrp_prop::visit_stmt): Likewise.
4418 * vr-values.c (vr_values::get_lattice_entry): New private method.
4419 (vr_values::get_value_range): Wrap it and return a const
4421 (vr_values::set_def_to_varying): New.
4422 (vr_values::set_defs_to_varying): Use it.
4423 (vr_values::update_value_range): Likewise.
4424 (vr_values::vrp_stmt_computes_nonzero): Adjust.
4425 (values::op_with_constant_singleton_va): Likewise.
4426 (vr_values::extract_range_for_var_from_co): Likewise.
4427 (vr_values::extract_range_from_ssa_name): Likewise.
4428 (vr_values::extract_range_from_cond_expr): Likewise.
4429 (vr_values::extract_range_basic): Likewise.
4430 (compare_ranges): Take const value_range *, adjust.
4431 (compare_range_with_value): Likewise.
4432 (vrp_valueize): Adjust.
4433 (vrp_valueize_1): Likewise.
4434 (vr_values::get_vr_for_comparison): Return a const value_range *.
4435 (vr_values::compare_name_with_value): Adjust.
4436 (vr_values::compare_names): Likewise.
4437 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4439 (vr_values::vrp_evaluate_conditional): Likewise.
4440 (find_case_label_ranges): Take a const value_range *.
4441 (vr_values::vrp_visit_switch_stmt): Adjust.
4442 (vr_values::extract_range_from_phi_node): Likewise.
4443 (vr_values::simplify_div_or_mod_using_ran): Likewise.
4444 (vr_values::simplify_abs_using_ranges): Likewise.
4445 (test_for_singularity): Take a const value_range *.
4446 (range_fits_type_p): Likewise.
4447 (vr_values::simplify_cond_using_ranges_1): Adjust.
4448 (vr_values::simplify_cond_using_ranges_2): Likewise.
4449 (vr_values::simplify_switch_using_ranges): Likewise.
4450 (vr_values::simplify_float_conversion_usi): Likewise.
4451 (vr_values::two_valued_val_range_p): Likewise.
4452 * vr-values.h (vr_values::get_value_range): Return a const
4454 (vr_values::set_def_to_varying): New.
4455 (vr_values::get_lattice_entry): New private method.
4456 (vr_values::get_vr_for_comparison): Return a const value_range *.
4458 2019-07-25 Martin Liska <mliska@suse.cz>
4459 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
4462 * common.opt: Add -fallocation-dce
4463 * gimple.c (gimple_call_operator_delete_p): New.
4464 * gimple.h (gimple_call_operator_delete_p): Likewise.
4465 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
4466 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4467 DECL_IS_OPERATOR_DELETE_P.
4468 (mark_all_reaching_defs_necessary_1): Likewise.
4469 (propagate_necessity): Likewise.
4470 (eliminate_unnecessary_stmts): Handle
4471 gimple_call_operator_delete_p.
4472 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4473 Add packing of OPERATOR_DELETE.
4474 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4476 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
4477 (DECL_SET_IS_OPERATOR_DELETE): New.
4478 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
4480 2019-07-25 Martin Liska <mliska@suse.cz>
4482 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
4483 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
4484 * coverage.c (coverage_begin_function): Likewise.
4485 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
4486 * gimple.c (gimple_call_nonnull_result_p): Likewise.
4487 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
4488 (sem_item::hash_referenced_symbol_properties): Likewise.
4489 * lto-streamer-out.c (hash_tree): Likewise.
4490 * predict.c (expr_expected_value_1): Likewise.
4491 * tree-inline.c (expand_call_inline): Likewise.
4492 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
4493 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
4494 * tree-core.h (enum function_decl_type): New enum.
4495 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
4496 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
4497 (set_function_decl_type): Likewise.
4498 (DECL_IS_OPERATOR_NEW_P): New.
4499 (DECL_SET_IS_OPERATOR_NEW): Likewise.
4500 (DECL_LAMBDA_FUNCTION): Likewise.
4501 (DECL_LAMBDA_FUNCTION_P): Likewise.
4502 (DECL_IS_OPERATOR_NEW): Remove.
4503 (DECL_SET_LAMBDA_FUNCTION): Likewise.
4505 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
4507 * ipa-profile.c (get_most_common_single_value): Use
4508 get_nth_most_common_value.
4509 * profile.c (sort_hist_value): New function.
4510 (compute_value_histograms): Call sort_hist_value to sort the
4511 values after loading from disk.
4512 * value-prof.c (get_most_common_single_value): Rename to ...
4513 get_nth_most_common_value. Add input params n, return
4514 the n_th value and count.
4515 (gimple_divmod_fixed_value_transform): Use
4516 get_nth_most_common_value.
4517 (gimple_ic_transform): Likewise.
4518 (gimple_stringops_transform): Likewise.
4519 * value-prof.h (get_most_common_single_value): Add input params
4522 2019-07-25 Richard Biener <rguenther@suse.de>
4524 PR tree-optimization/91236
4525 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4526 size of CONSTRUCTOR write. Fix buffer size we pass to
4529 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4531 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
4532 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
4535 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4537 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
4538 explicitly disabled with --disable-initfini-array.
4540 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4542 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
4545 2019-07-24 Martin Sebor <msebor@redhat.com>
4547 PR tree-optimization/91183
4548 PR tree-optimization/86688
4549 * builtins.c (compute_objsize): Handle MEM_REF.
4550 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4551 (get_min_string_length): Remove.
4552 (count_nonzero_bytes): New function.
4553 (handle_char_store): Rename...
4554 (handle_store): to this. Handle multibyte stores via integer types.
4555 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4558 2019-07-24 Martin Sebor <msebor@redhat.com>
4561 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4562 (diagnostic_report_diagnostic): Same.
4563 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4564 (diagnostic_context::lang_mask): New data member.
4565 * ipa-pure-const.c (suggest_attribute): Use
4566 lang_hooks.option_lang_mask ().
4567 * opts-common.c (option_enabled): Handle new argument.
4568 (get_option_state): Pass an additional argument.
4569 * opts.c (print_filtered_help): Print supported languages for
4570 unsupported options. Adjust printing of current state.
4571 * opts.h (option_enabled): Add argument.
4572 * toplev.c (print_switch_values): Use lang_mask.
4573 (general_init): Set global_dc->lang_mask.
4575 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4578 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4580 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4582 * cgraphunit.c (symbol_table::compile): Start and stop
4583 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4584 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4586 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4588 * gimplify.c (flag_instrument_functions_exclude_p): Include
4589 namespace/class information in the printable name.
4590 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4591 to tokens entered into the vector.
4593 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4595 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4596 (get_static_chain): Call it instead of build_simple_mem_ref.
4597 (get_frame_field): Likewise.
4598 (get_nonlocal_debug_decl): Likewise.
4599 (convert_nonlocal_reference_op): Likewise.
4601 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4603 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4605 (arc_compute_frame_size): Millicode is disabled when compiling
4607 (arc_return_address_register): Likewise.
4608 (arc_compute_function_type): Likewise.
4609 (arc_compute_frame_size): Likewise.
4610 (secondary_reload_info): Likewise.
4611 (arc_get_unalign): Likewise.
4612 (arc_can_use_return_insn): Declare.
4613 * config/arc/arc.c (AUX_LP_START): Define
4614 (AUX_LP_END): Likewise.
4615 (arc_frame_info): Update gmask member to 64-bit datum.
4616 (GMASK_LEN): Update.
4617 (arc_compute_function_type): Make it static, move it forward.
4618 (arc_must_save_register): Update, consider the extra regs.
4619 (arc_compute_millicode_save_restore_regs): Update to use the 64
4621 (arc_compute_frame_size): Likewise.
4622 (arc_enter_leave_p): Likewise.
4623 (arc_save_callee_saves): Likewise.
4624 (arc_restore_callee_saves): Likewise.
4625 (arc_save_callee_enter): Likewise.
4626 (arc_restore_callee_leave): Likewise.
4627 (arc_save_callee_milli): Likewise.
4628 (arc_restore_callee_milli): Likewise.
4629 (arc_expand_prologue): Add new interrupt handling.
4630 (arc_return_address_register): Make it static, move it forward.
4631 (arc_expand_epilogue): Add new interrupt handling.
4632 (arc_get_unalign): Delete.
4633 (arc_epilogue_uses): Make sure we do not remove the extra
4634 saved/restored registers when interrupt.
4635 (arc_can_use_return_insn): New function.
4636 (push_reg): Likewise.
4637 (pop_reg): Likewise.
4638 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4640 (arc_restore_callee_saves): Likewise, but restoring.
4641 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4642 (R33_REG): Likewise.
4643 (R34_REG): Likewise.
4644 (R35_REG): Likewise.
4645 (R36_REG): Likewise.
4646 (R37_REG): Likewise.
4647 (R38_REG): Likewise.
4648 (R39_REG): Likewise.
4649 (R45_REG): Likewise.
4650 (R46_REG): Likewise.
4651 (R47_REG): Likewise.
4652 (R48_REG): Likewise.
4653 (R49_REG): Likewise.
4654 (R50_REG): Likewise.
4655 (R51_REG): Likewise.
4656 (R52_REG): Likewise.
4657 (R53_REG): Likewise.
4658 (R54_REG): Likewise.
4659 (R55_REG): Likewise.
4660 (R56_REG): Likewise.
4661 (R58_REG): Likewise.
4662 (type): Add rtie attribute.
4663 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4664 (movsi_insn): Accept moves to lp_count.
4665 (rtie): Update pattern.
4666 (simple_return): Simplify it, don't use this pattern as a return
4668 (arc600_rtie): New pattern.
4669 (p_return_i): Clean up.
4671 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4673 * config/arc/predicates.md (move_src_operand): Consider lp_count
4676 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4678 * config/s390/predicates.md (addv_const_operand): New predicate.
4679 * config/s390/s390-modes.def (CCO): New condition code mode.
4680 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4681 (s390_branch_condition_mask): Likewise.
4682 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4683 ("mulv<mode>4"): New expanders.
4684 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4685 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4686 pattern definitions.
4688 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4691 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4692 (define_predicates): Add entry for uniform_vector_p.
4693 (vec_same_elem_p): New match pattern.
4695 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4698 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4699 * config/i386/darwin32-biarch.h .. to here.
4700 * config/i386/darwin64-biarch.h: Adjust comments.
4701 * config/rs6000/darwin32-biarch.h: Likewise.
4702 * config/rs6000/darwin64-biarch.h: Likewise.
4703 * config.gcc: Missed commit from r273746
4704 (*-*-darwin*): Don't include CPU t-darwin here.
4705 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4706 an error message if i686-darwin configuration is attempted for
4709 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4712 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4713 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4714 an error message if i686-darwin configuration is attempted for
4716 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4717 (powerpc-*-darwin*): Use biarch files where needed.
4718 (powerpc64-*-darwin*): Likewise.
4719 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4720 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4722 * config/i386/darwin32-biarch.h: New.
4723 * config/i386/darwin64.h: Rename.
4724 * config/i386/darwin64-biarch.h: To this.
4725 * config/i386/t-darwin: Rename.
4726 * config/i386/t-darwin32-biarch: To this.
4727 * config/i386/t-darwin64: Rename.
4728 * config/i386/t-darwin64-biarch: To this.
4729 * config/rs6000/darwin32-biarch.h: New.
4730 * config/rs6000/darwin64.h: Rename.
4731 * config/rs6000/darwin64-biarch.h: To this.
4732 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4734 * config/rs6000/t-darwin8: Rename.
4735 * config/rs6000/t-darwin32-biarch: To this.
4736 * config/rs6000/t-darwin64 Rename.
4737 * config/rs6000/t-darwin64-biarch: To this.
4739 2019-07-23 Martin Sebor <msebor@redhat.com>
4741 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4743 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4745 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4746 (rh): New alias for it.
4748 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4750 * gdbhooks.py: Pass replace=True to
4751 gdb.printing.register_pretty_printer.
4753 2019-07-23 Richard Biener <rguenther@suse.de>
4756 * lto-streamer-in.c (input_function): Drop inline-entry markers
4757 that ended up with an unknown location block.
4759 2019-07-23 Richard Biener <rguenther@suse.de>
4761 PR tree-optimization/83518
4762 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4763 init from a constant even when partial defs are already recorded.
4765 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4767 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4768 * config/i386/znver1.md: Enable patterns for znver2 and add store
4769 variants which use extra AGU unit.
4771 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4773 * config/i386/i386-options.c (ix86_option_override_internal): Default
4774 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4775 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4778 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4780 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4781 (znver2_costs): Update 256 bit SSE costs and multiplication.
4783 2019-07-23 Jan Beulich <jbeulich@suse.com>
4785 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4786 Require only AVX512F.
4787 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4788 alternative expanding to vpternlog.
4790 2019-07-23 Martin Liska <mliska@suse.cz>
4792 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4793 to -flto in dwarf producer string.
4795 2019-07-23 Richard Biener <rguenther@suse.de>
4797 * tree-cfg.c (label_for_bb): Remove global var.
4798 (main_block_label): Take label_for_bb as argument.
4799 (cleanup_dead_labels_eh): Likewise, adjust.
4800 (cleanup_dead_labels): Adjust.
4802 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4804 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4805 Configurations): Add documentation for __builtin_mtfsf.
4807 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4809 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4810 * config/riscv/riscv.c (riscv_constant_alignment): Use
4811 riscv_align_data_type.
4812 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4813 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4814 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4815 * config/riscv/riscv.opt (malign-data): New.
4816 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4818 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4820 * cgraph.c (dump_graphviz): New function.
4821 * cgraph.h (dump_graphviz): New function.
4822 * symtab.c (dump_graphviz): New function.
4824 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4826 * config/aarch64/aarch64-simd.md
4827 (*aarch64_simd_sra<mode>): New.
4828 * config/aarch64/iterators.md
4829 (SHIFTRT): New iterator.
4830 (sra_op): New attribute.
4832 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4834 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4835 callee-saved regs R4->R10 in an interrupt function that calls another
4838 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4840 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4841 (_mm_blendv_epi8): New.
4843 2019-07-22 Richard Biener <rguenther@suse.de>
4845 PR tree-optimization/91221
4846 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4847 restrict partial-def handling of empty constructors and
4848 memset to refs with known offset.
4850 2019-07-22 Jan Beulich <jbeulich@suse.com>
4852 * config/i386/sse.md (ternlogsuffix): New.
4853 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4855 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4857 2019-07-22 Martin Liska <mliska@suse.cz>
4859 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4861 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4863 2019-07-22 Martin Liska <mliska@suse.cz>
4865 * lto-section-in.c (lto_get_section_data):
4866 Use new function get_compression.
4867 * lto-streamer-out.c (produce_lto_section): Use
4868 set_compression to encode compression algorithm.
4869 * lto-streamer.h (struct lto_section): Do not
4870 use bitfields in the format.
4872 2019-07-22 Martin Liska <mliska@suse.cz>
4875 * opts-common.c (decode_cmdline_option): Decode
4876 argument of -Werror and check it for a wrong language.
4877 * opts-global.c (complain_wrong_lang): Remove such case.
4879 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4881 * config/arc/arc.c (prepare_move_operands): Always use an
4882 intermediate register when storing a TLS symbols.
4884 2019-07-22 Stafford Horne <shorne@gmail.com>
4886 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4889 2019-07-22 Stafford Horne <shorne@gmail.com>
4891 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4892 and munordered-float validations.
4893 * config/or1k/constraints.md (d): New register constraint.
4894 * config/or1k/predicates.md (fp_comparison_operator): New.
4895 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4897 (or1k_expand_compare): Normalize unordered comparisons.
4898 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4899 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4900 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4901 * config/or1k/or1k.md (type): Add fpu.
4902 (fpu): New instruction reservation.
4903 (F, f, fr, fi, FI, FOP, fop): New.
4904 (<fop><F:mode>3): New ALU instruction definition.
4905 (float<fi><F:mode>2): New conversion instruction definition.
4906 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4907 (fpcmpcc): New code iterator.
4908 (*sf_fp_insn): New instruction definition.
4909 (cstore<F:mode>4): New expand definition.
4910 (cbranch<F:mode>4): New expand definition.
4911 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4912 munordered-float): New options.
4913 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4916 2019-07-22 Stafford Horne <shorne@gmail.com>
4918 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4919 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4920 documenation to be more clear.
4921 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4923 * config/or1k/or1k.opt (mrori): New option.
4924 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4925 msfimm, mshftimm): Rewrite documentation to be more clear.
4926 * config/or1k/or1k.md (insn_support): Add ror and rori.
4927 (enabled): Add conditions for ror and rori.
4928 (rotrsi3): Replace condition for shftimm with ror and rori.
4930 2019-07-22 Stafford Horne <shorne@gmail.com>
4933 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4934 (extend<mode>si2): Update predicate.
4935 * config/or1k/predicates.md (volatile_mem_operand): New.
4936 (reg_or_mem_operand): New.
4938 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4940 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4941 * config/rs6000/rs6000-call.c: ... to here.
4943 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4945 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4948 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4950 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4952 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4954 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4956 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4958 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4959 (any_memory_operand): New predicate.
4960 (reg_or_mem_operand): Use it.
4962 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4965 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4967 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4969 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4970 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4972 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4974 * tree.def (OMP_LOOP): New tree code.
4975 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4976 (enum omp_clause_bind_kind): New enum.
4977 (struct tree_omp_clause): Add subcode.bind_kind.
4978 * tree.h (OMP_LOOP_CHECK): Rename to ...
4979 (OMP_LOOPING_CHECK): ... this.
4980 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4981 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4982 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4983 (OMP_CLAUSE_BIND_KIND): Define.
4984 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4985 bind clause entries.
4986 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4987 * tree-pretty-print.c (dump_omp_clause): Likewise.
4988 (dump_generic_node): Handle OMP_LOOP.
4989 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4990 (in_omp_construct): New variable.
4991 (is_gimple_stmt): Handle OMP_LOOP.
4992 (gimplify_scan_omp_clauses): For lastprivate don't set
4993 check_non_private if code == OMP_LOOP. For reduction clause
4994 on OMP_LOOP combined with parallel or teams propagate as shared
4995 on the combined construct. Handle OMP_CLAUSE_BIND.
4996 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4997 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4998 for constructs from a loop construct to gimplify_scan_omp_clauses.
4999 Don't predetermine iterator linear on OMP_SIMD from loop construct.
5000 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
5001 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
5002 to match the implicit ORT_TARGET construct around whole body.
5003 Temporarily clear in_omp_construct when processing body.
5004 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
5005 etc. temporarily set in_omp_construct when processing body.
5006 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
5007 * omp-low.c (struct omp_context): Add loop_p.
5008 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
5009 in that the original var might be private.
5010 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
5011 (check_omp_nesting_restrictions): Adjust nesting restrictions for
5012 addition of loop construct.
5013 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
5015 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
5016 lastprivate non-addressable iterator of a collapse(1) simd.
5018 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
5020 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
5023 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
5025 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
5026 refer to default conditions. Warn for the 'y' spec which is ignored
5029 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
5031 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
5032 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5033 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5034 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5035 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5036 init_cumulative_args, rs6000_promote_function_mode,
5037 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5038 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5039 rs6000_function_arg_boundary, rs6000_parm_offset,
5040 rs6000_parm_start, rs6000_arg_size,
5041 rs6000_darwin64_record_arg_advance_flush,
5042 rs6000_darwin64_record_arg_advance_recurse,
5043 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5044 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5045 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5046 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5047 rs6000_finish_function_arg, rs6000_function_arg,
5048 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5049 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5050 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5051 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5052 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5053 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5054 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5055 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5056 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5057 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5058 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5059 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5060 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5061 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5062 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5063 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5064 get_element_number, altivec_expand_vec_set_builtin,
5065 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5066 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5067 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5068 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5069 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5070 rs6000_expand_builtin, rs6000_vector_type,
5071 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5072 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5073 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
5075 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
5076 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5077 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5078 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5079 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5080 init_cumulative_args, rs6000_promote_function_mode,
5081 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5082 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5083 rs6000_function_arg_boundary, rs6000_parm_offset,
5084 rs6000_parm_start, rs6000_arg_size,
5085 rs6000_darwin64_record_arg_advance_flush,
5086 rs6000_darwin64_record_arg_advance_recurse,
5087 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5088 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5089 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5090 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5091 rs6000_finish_function_arg, rs6000_function_arg,
5092 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5093 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5094 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5095 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5096 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5097 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5098 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5099 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5100 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5101 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5102 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5103 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5104 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5105 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5106 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5107 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5108 get_element_number, altivec_expand_vec_set_builtin,
5109 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5110 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5111 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5112 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5113 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5114 rs6000_expand_builtin, rs6000_vector_type,
5115 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5116 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5117 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
5118 to here from rs6000.c.
5119 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
5120 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
5121 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
5122 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
5123 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
5124 rs6000_return_in_memory, rs6000_return_in_msb,
5125 rs6000_pass_by_reference, setup_incoming_varargs,
5126 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
5127 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
5128 rs6000_function_arg_padding, rs6000_function_arg,
5129 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
5130 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
5131 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
5132 rs6000_passes_long_double, rs6000_passes_vector,
5133 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
5134 altivec_builtin_mask_for_load) Add declarations.
5135 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
5136 * config/config.gcc: Add new source file rs6000-call.c to garbage
5137 collector and extra_objs.
5139 2019-07-19 Jeff Law <law@redhat.com>
5141 PR tree-optimization/86061
5142 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
5143 strncpy. Drop some trivial dead code.
5144 (maybe_trim_memstar_call): Handle strncpy.
5146 2019-07-19 Richard Biener <rguenther@suse.de>
5148 PR tree-optimization/91211
5149 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5150 memset encoding size.
5152 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
5155 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
5157 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
5160 * ipa-inline.c (recursive_inlining): Fix limits check.
5162 2019-07-19 Richard Biener <rguenther@suse.de>
5164 PR tree-optimization/91200
5165 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
5166 no PHI nodes in middle-bb.
5168 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
5170 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
5172 * config/aarch64/aarch64-option-extensions.def: Likewise.
5174 2019-07-19 Jakub Jelinek <jakub@redhat.com>
5177 * function.c (insert_temp_slot_address): Store into the hash table
5178 a copy of address to avoid RTL sharing issues.
5180 2019-07-19 Richard Biener <rguenther@suse.de>
5182 PR tree-optimization/91207
5184 2019-07-17 Richard Biener <rguenther@suse.de>
5186 PR tree-optimization/91178
5187 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5188 loads with a gap larger than the vector size always use
5190 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5191 avoid loading vectors that are only contained in the gap
5192 and thus are not needed.
5194 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5196 * config/i386/i386.md (*addqi_2_slp): Remove.
5197 (*<code>qi_2_slp): Ditto.
5199 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
5201 * config/rs6000/predicates.md (prefixed_mem_operand): Call
5202 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
5203 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
5204 Rename function from rs6000_prefixed_address.
5205 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5207 (TARGET_TOC): Likewise.
5208 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5210 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5212 (TARGET_TOC): Likewise.
5213 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5215 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5217 (TARGET_TOC): Likewise.
5218 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5219 check to require -mcmodel=medium for pc-relative addressing.
5220 (create_TOC_reference): Add assertion for TARGET_TOC.
5221 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
5223 (rs6000_emit_move): Likewise.
5224 (TOC_alias_set): Rename TOC alias set static variable from 'set'
5226 (get_TOC_alias_set): Likewise.
5227 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
5229 (rs6000_can_eliminate): Likewise.
5230 (rs6000_prefixed_address_mode_p): Rename function from
5231 rs6000_prefixed_address.
5232 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
5233 TARGET_HAS_TOC and not pc-relative.
5234 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
5235 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5237 (TARGET_TOC): Likewise.
5238 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5241 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5244 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
5245 for operand 0. Do not use (match_dup) to match operand 1 with
5246 operand 0. Add check in insn constraint that either input operand
5247 matches operand 0. Use SWI12 mode iterator to also handle
5249 (*and<mode>_1_slp): Ditto.
5250 (*<code>qi_1_slp): Ditto.
5251 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
5252 Do not use (match_dup) to match operand 1 with operand 0. Add
5253 check in insn constraint that operand 1 matches operand 0.
5254 Use SWI12 mode iterator to also handle HImode operands.
5255 (*ashl<mode>3_1_slp): Ditto.
5256 (*<shift_insn><mode>3_1_slp): Ditto.
5257 (*<rotate_insn><mode>3_1_slp): Ditto.
5259 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5261 * config/arm/arm-builtins.c
5262 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
5263 (arm_expand_unop_builtin): Likewise.
5264 * config/arm/crypto.md
5265 (crypto_sha1h): Convert from define_insn to define_expand.
5266 (crypto_<crypto_pattern>): Likewise.
5267 (crypto_sha1h_lb): New define_insn.
5268 (crypto_<crypto_pattern>_lb): Likewise.
5270 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5273 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
5274 (vsha1cq_u32): Likewise.
5275 (vsha1pq_u32): Likewise.
5276 (vsha1mq_u32): Likewise.
5277 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
5279 (crypto_sha1c): Correct vec select.
5280 (crypto_sha1m): Likewise.
5281 (crypto_sha1p): Likewise.
5283 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
5285 * config/arm/predicates.md (arm_borrow_operation): New predicate.
5286 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
5287 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
5288 (subdi_zesidi_zesidi): Likewise.
5289 (negdi2_compare, negdi2_insn): Likewise.
5290 (negdi_extensidi): Likewise.
5291 (negdi_zero_extendsidi): Likewise.
5292 (arm_cmpdi_insn): Likewise.
5293 (subsi3_carryin): Use arm_borrow_operation.
5294 (subsi3_carryin_const): Likewise.
5295 (subsi3_carryin_const0): Likewise.
5296 (subsi3_carryin_compare): Likewise.
5297 (subsi3_carryin_compare_const): Likewise.
5298 (subsi3_carryin_compare_const0): Likewise.
5299 (subsi3_carryin_shift): Likewise.
5300 (rsbsi3_carryin_shift): Likewise.
5301 (negsi2_carryin_compare): Likewise.
5303 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
5305 PR tree-optimization/91137
5306 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
5307 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
5308 Init, use and fini the above new field.
5309 (determine_base_object_1): New function.
5310 (determine_base_object): Reimplement using walk_tree.
5312 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
5314 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
5315 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
5316 CLEANUP_FORCE_FAST_DCE is set.
5317 * ifcvt.c (rest_of_handle_if_conversion): Pass
5318 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
5319 if-conversion succeeded.
5321 2019-07-18 Richard Biener <rguenther@suse.de>
5323 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
5324 branches to make code less indented.
5326 2019-07-17 Alexandre Oliva <oliva@adacore.com>
5329 * attribs.c (decls_mismatched_attributes): Simplify the logic
5330 that avoids duplicates and false positives.
5332 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
5334 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
5335 data into data section when generating PIC code.
5336 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
5337 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
5338 generating code for SOM targets earlier than HP-UX 11. Otherwise,
5339 return 2 for SOM and 0 for other targets.
5341 2019-07-17 Jeff Law <law@redhat.com>
5343 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
5344 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
5345 avoid unexpected switch statement fallthru.
5347 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5349 * config/i386/i386.md (*add<dwi>3_doubleword):
5350 Remove redundant constraints.
5351 (*add<mode>_1): Ditto.
5354 (*addqi_1_slp): Ditto.
5355 (*add<mode>_2): Ditto.
5356 (*addv<mode>4): Ditto.
5357 (*sub<dwi>3_doubleword): Ditto.
5358 (*sub<mode>_1): Ditto.
5359 (*subqi_1_slp): Ditto.
5360 (*sub<mode>_2): Ditto.
5361 (*subv<mode>4): Ditto.
5362 (*sub<mode>_3): Ditto.
5363 (@add<mode>3_carry): Ditto.
5364 (@sub<mode>3_carry): Ditto.
5365 (*add<mode>3_cc_overflow_1): Ditto.
5366 (*add<mode>3_zext_cc_overflow_2): Ditto.
5368 (*and<mode>_1): Ditto.
5370 (*andqi_1_slp): Ditto.
5372 (*andqi_2_maybe_si): Ditto.
5373 (*and<mode>_2): Ditto.
5374 (*andqi_2_slp): Ditto.
5375 (*<code><mode>_1): Ditto.
5376 (*<code>qi_1): Ditto.
5377 (*<code>qi_1_slp): Ditto.
5378 (*<code><mode>_2): Ditto.
5379 (*<code>qi_2_slp): Ditto.
5381 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
5383 * alias.c (record_component_aliases): Do not simplify pointed-to
5386 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5388 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
5389 partial reg stall on alternative 2.
5391 2019-07-17 Richard Biener <rguenther@suse.de>
5393 PR tree-optimization/91178
5394 * tree-ssa.c (release_defs_bitset): Iterate from higher to
5395 lower SSA names to avoid quadratic behavior in the common case.
5396 * tree-data-ref.c (split_constant_offset): Add limit argument
5397 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5398 (split_constant_offset_1): Add limit argument and use it to
5399 limit SSA def walking. Optimize the common plus/minus case.
5401 2019-07-17 Richard Biener <rguenther@suse.de>
5403 PR tree-optimization/91178
5404 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5405 loads with a gap larger than the vector size always use
5407 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5408 avoid loading vectors that are only contained in the gap
5409 and thus are not needed.
5411 2019-07-17 Richard Biener <rguenther@suse.de>
5413 PR tree-optimization/91180
5414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
5415 computation for memset partial defs.
5417 2019-07-17 Jakub Jelinek <jakub@redhat.com>
5419 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
5420 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
5421 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
5422 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
5423 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
5424 * omp-grid.c (grid_process_grid_body,
5425 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
5426 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
5427 == GF_OMP_FOR_KIND_SIMD.
5428 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
5429 check_omp_nesting_restrictions, scan_omp_1_stmt,
5430 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
5431 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
5432 omp_find_scan): Likewise.
5433 * omp-expand.c (expand_omp_for): Likewise.
5434 * omp-general.c (omp_extract_for_data): Likewise.
5436 PR tree-optimization/91157
5437 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
5438 a vector boolean with scalar mode.
5439 (expand_vector_condition): Handle first operand being a vector boolean
5441 (expand_vector_operations_1): For comparisons, don't bail out early
5442 if the return type is vector boolean with scalar mode, but comparison
5443 operand type is not.
5445 2019-07-17 Richard Biener <rguenther@suse.de>
5447 PR tree-optimization/91181
5448 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
5451 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
5453 * config/i386/i386.md (*testdi_1): Match CCZmode for
5454 constants that might have the SImode sign bit set.
5455 (*testqi_1_maybe_si): Remove "!" constraint modifier.
5456 Use correct constraints for pentium pairing.
5457 (*test<mode>_1): Ditto.
5459 2019-07-16 Jeff Law <law@redhat.com>
5461 PR rtl-optimization/91173
5462 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
5463 SSA_NAME with a constant value, fold its value into the offset
5464 and clear the base before calling gen_addr_rtx.
5466 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5468 PR rtl-optimization/91164
5469 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5470 invalidate dominance info.
5472 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5474 * read-md.h (md_reader::record_potential_iterator_use): Add a
5475 file_location parameter.
5476 * read-rtl.c (attribute_use::loc): New field.
5477 (map_attr_string): Take a file_location parameter. Report cases
5478 in which attributes map to multiple distinct values.
5479 (apply_attribute_uses): Update call accordingly.
5480 (md_reader::handle_overloaded_name): Likewise.
5481 (md_reader::apply_iterator_to_string): Likewise. Skip empty
5483 (record_attribute_use): Take a file_location parameter.
5484 Initialize attribute_use::loc.
5485 (md_reader::record_potential_iterator_use): Take a file_location
5486 parameter. Update call to record_attribute_use.
5487 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
5488 (rtx_reader::read_rtx_code): Likewise.
5489 (rtx_reader::read_rtx_operand): Likewise. Record a location
5490 for implicitly-expanded empty strings.
5492 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5494 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
5495 Use file_location instead of separate fields.
5496 (md_reader::set_md_ptr_loc): Take a file_location instead of a
5497 separate filename and line number.
5498 * read-md.c (ptr_loc): As above.
5499 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
5500 (md_reader::fprint_md_ptr_loc): Likewise.
5501 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
5502 instead of a separate filename and line number.
5503 (md_reader::read_string): Update call accordingly.
5505 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5507 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
5508 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5509 leaving the choice between SFDF and P implicit.
5510 (*mov<mode>_update2): Likewise.
5511 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
5512 rather than leaving the choice betweem IBM128 and GPR implicit.
5513 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
5514 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
5516 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
5517 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
5518 * config/rs6000/vsx.md
5519 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
5520 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
5521 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
5522 and VSX_EXTRACT_I implicit.
5524 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5526 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
5527 Explicitly use <MOVEP1:MODE> for the mode attribute.
5529 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
5532 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
5534 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
5537 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
5540 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
5542 * config/i386/i386.md (@test<mode>_ccno_1):
5543 Rename from test<mode>_ccno_1.
5544 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
5545 (*testqi_1_maybe_si): Remove modrm attribute.
5546 (*test<mode>_1): Ditto.
5547 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5548 gen_test_ccno_1 and gen_extend_insn.
5550 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5552 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5555 2019-07-15 Richard Biener <rguenther@suse.de>
5558 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5559 node make sure to replace all uses with something valid.
5561 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5563 PR tree-optimization/88497
5564 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5565 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5566 function undistribute_bitref_for_vector.
5567 (undistribute_bitref_for_vector): New function.
5568 (cleanup_vinfo_map): Likewise.
5569 (sort_by_mach_mode): Likewise.
5571 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5573 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5574 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5575 and testdi_ccno_1 using SWI48 mode attribute.
5576 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5577 x86_64_szext_general_operand.
5578 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5579 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5580 instead of genera_operand mode attribute.
5582 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5584 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5585 fopen and fclose to their respective types.
5586 (DotFn.invoke): Ditto.
5588 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5590 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5591 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5592 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5593 (array_index_predicate): Remove.
5594 (analyze_function_body): Account cost for variable ofsetted array
5596 (estimate_node_size_and_time): Do not compute array index hint.
5597 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5598 (inline_read_section): Do not read array index hint.
5599 (ipa_fn_summary_write): Do not write array index hint.
5600 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5601 * ipa-cp.c (hint_time_bonus): Remove.
5602 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5603 (ipa_fnsummary): Remove array_index.
5604 * ipa-inline.c (want_inline_small_function_p): Do not use
5606 (edge_badness): Likewise.
5607 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5609 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5612 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5613 superfluous "builtin function" phrasing.
5615 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5617 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5619 (aliasing_component_refs_walk): Break out from ...
5620 (aliasing_component_refs_p): ... here.
5622 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5625 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5626 "builtin function" phrasing.
5628 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5631 * recog.h (temporary_volatile_ok): New class.
5632 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5633 volatile_ok temporarily to true using temporary_volatile_ok.
5634 * expr.c (emit_block_move_via_cpymem): Likewise.
5635 * optabs.c (maybe_legitimize_operand): Likewise.
5637 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5639 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5640 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5641 uses inside of order(concurrent) constructs.
5642 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5643 OMP_CLAUSE_ORDER is seen.
5644 * omp-low.c (struct omp_context): Add order_concurrent member.
5645 (scan_sharing_clauses): Set ctx->order_concurrent if
5646 OMP_CLAUSE_ORDER is seen.
5647 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5648 of simd order(concurrent). Diagnose constructs not allowed inside of
5649 for order(concurrent).
5650 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5651 complaining about static double setjmp (double); or class static
5652 methods or non-global namespace setjmps.
5653 (omp_runtime_api_call): New function.
5654 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5655 order(concurrent) loops.
5657 2019-07-12 Martin Sebor <msebor@redhat.com>
5659 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5660 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5661 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5662 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5664 2019-07-12 Jan Hubicka <jh@suse.cz>
5666 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5667 (indirect_refs_may_alias_p): ... here.
5668 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5669 mem refs in the access paths.
5671 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5673 PR tree-optimization/89430
5674 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5675 store elimination for local variable without address escape.
5677 2019-07-12 Jeff Law <law@redhat.com>
5679 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5680 for the ".far" section.
5682 2019-07-12 Richard Biener <rguenther@suse.de>
5684 PR tree-optimization/91145
5685 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5688 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5690 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5691 rather than this_state as the lowering context for the ELSE
5692 seq in a GIMPLE_EH_ELSE.
5694 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5696 * vector-builder.h (vector_builder::elt): Allow already-supplied
5697 elements to be read back before building is complete.
5699 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5701 PR rtl-optimization/91136
5702 * df-core.c (ACCESSING REFS): Fix typos in comment.
5703 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5704 the beginning of the block to the initial set of live registers.
5706 2019-07-12 Richard Biener <rguenther@suse.de>
5708 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5709 * fold-const.c (get_array_ctor_element_at_index): Add
5710 ctor_idx output parameter informing the caller where in
5711 the constructor the element was (not) found. Add early exit
5712 for when the ctor is sorted.
5713 * gimple-fold.c (fold_array_ctor_reference): Support constant
5714 folding across multiple array elements.
5716 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5718 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5719 doesn't have location, set the current location to the function's end.
5721 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5723 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5724 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5725 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5726 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5727 * config/aarch64/aarch64-simd.md
5728 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5729 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5730 * config/aarch64/aarch64-sve.md
5731 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5732 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5734 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5736 * doc/md.texi: Document that @ patterns can have different
5737 numbers of operands.
5738 * genemit.c (handle_overloaded_gen): Handle this case.
5739 * genopinit.c (handle_overloaded_gen): Likewise.
5740 * gensupport.c (replace_operands_with_dups): Iterate over
5741 the new rtx's format rather than the old one's.
5743 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5745 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5746 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5747 order clause entries.
5748 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5749 * tree-pretty-print.c (dump_omp_clause): Likewise.
5750 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5752 * omp-low.c (scan_sharing_clauses): Likewise.
5753 * tree-nested.c (convert_nonlocal_omp_clauses,
5754 convert_local_omp_clauses): Likewise.
5756 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5758 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5759 fallthrough target of current basic block isn't the placed
5762 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5765 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5766 (_mm512_storeu_epi64): Likewise.
5767 (_mm512_loadu_epi32): Likewise.
5768 (_mm512_storeu_epi32): Likewise.
5769 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5770 (_mm_storeu_epi64): Likewise.
5771 (_mm256_storeu_epi32): Likewise.
5772 (_mm_storeu_epi32): Likewise.
5774 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5776 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5778 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5780 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5783 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5786 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5787 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5788 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5789 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5790 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5791 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5793 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5794 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5795 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5797 (sse2_cvttpd2dq<mask_name>): Change into ...
5798 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5799 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5800 (*sse2_cvtpd2dq<mask_name>): Change into ...
5801 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5802 Add "C" constraint to const0_operand.
5803 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5804 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5808 * config/i386/i386-builtin-types.def
5809 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5810 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5811 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5812 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5813 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5814 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5815 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5816 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5817 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5818 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5819 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5820 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5821 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5822 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5823 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5824 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5825 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5826 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5827 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5828 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5829 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5830 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5831 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5832 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5833 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5834 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5835 __builtin_ia32_vpdpbusd_v4si_maskz,
5836 __builtin_ia32_vpdpbusds_v16si_mask,
5837 __builtin_ia32_vpdpbusds_v16si_maskz,
5838 __builtin_ia32_vpdpbusds_v8si_mask,
5839 __builtin_ia32_vpdpbusds_v8si_maskz,
5840 __builtin_ia32_vpdpbusds_v4si_mask,
5841 __builtin_ia32_vpdpbusds_v4si_maskz,
5842 __builtin_ia32_vpdpwssd_v16si_mask,
5843 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5844 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5845 __builtin_ia32_vpdpwssd_v4si_maskz,
5846 __builtin_ia32_vpdpwssds_v16si_mask,
5847 __builtin_ia32_vpdpwssds_v16si_maskz,
5848 __builtin_ia32_vpdpwssds_v8si_mask,
5849 __builtin_ia32_vpdpwssds_v8si_maskz,
5850 __builtin_ia32_vpdpwssds_v4si_mask,
5851 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5852 suffixed types rather than *_INT.
5853 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5854 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5855 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5856 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5857 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5858 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5860 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5862 * tree-vrp.c (intersect_ranges): If we know the intersection is
5863 empty, there is no need to conservatively add anything else to
5866 2019-07-11 Richard Biener <rguenther@suse.de>
5869 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5870 when the object is volatile and we have not cleared it even though
5871 there are no nonzero elements.
5873 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5875 * config/rs6000/predicates.md (cint34_operand): Update
5876 SIGNED_34BIT_OFFSET_P call.
5877 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5878 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5879 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5880 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5881 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5883 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5884 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5885 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5886 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5887 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5889 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5891 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5892 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5893 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5894 (DEF_MIN_OSX_VERSION): New.
5896 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5898 * fold-const.c (fold_relational_const): Fix folding of
5899 vector-to-scalar NE_EXPRs.
5900 (test_vector_folding): Add more tests.
5902 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5905 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5906 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5907 (vec_setv2di_internal): Reexpress as...
5908 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5909 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5910 rather than gen_neon_vset_lane<mode>.
5912 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5915 * lra-constraints.c (process_alt_operands): Don't match user
5916 defined regs only if they are early clobbers.
5918 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5920 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5922 2019-07-10 Richard Biener <rguenther@suse.de>
5924 PR tree-optimization/91126
5925 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5926 native encoding offset for BYTES_BIG_ENDIAN.
5927 (vn_reference_lookup_3): Likewise.
5929 2019-07-10 Richard Biener <rguenther@suse.de>
5931 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5932 LHS whenever possible.
5934 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5936 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5937 from ...; work also on duplicated types.
5938 (nonoverlapping_component_refs_since_match): ... here
5939 (ncr_type_uid): Break out from ...
5940 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5942 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5943 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5945 2019-07-09 Martin Sebor <msebor@redhat.com>
5947 PR tree-optimization/90989
5948 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5949 optimization to just single character stores.
5951 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5953 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5954 Swap operands only once.
5956 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5958 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5959 for both call instructions.
5961 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5963 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5964 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5966 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5968 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5969 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5970 function from rs6000-logue.c back to rs6000.c.
5971 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5973 2019-07-09 Martin Sebor <msebor@redhat.com>
5976 * auto-profile.c: Change class-key of PODs to struct and others
5978 * basic-block.h: Same.
5979 * bitmap.c (bitmap_alloc): Same.
5981 * builtins.c (expand_builtin_prefetch): Same.
5982 (expand_builtin_interclass_mathfn): Same.
5983 (expand_builtin_strlen): Same.
5984 (expand_builtin_mempcpy_args): Same.
5985 (expand_cmpstr): Same.
5986 (expand_builtin___clear_cache): Same.
5987 (expand_ifn_atomic_bit_test_and): Same.
5988 (expand_builtin_thread_pointer): Same.
5989 (expand_builtin_set_thread_pointer): Same.
5990 * caller-save.c (setup_save_areas): Same.
5991 (replace_reg_with_saved_mem): Same.
5992 (insert_restore): Same.
5993 (insert_save): Same.
5994 (add_used_regs): Same.
5995 * cfg.c (get_bb_copy): Same.
5996 (set_loop_copy): Same.
5999 * cfgexpand.c (alloc_stack_frame_space): Same.
6000 (add_stack_var): Same.
6001 (add_stack_var_conflict): Same.
6002 (add_scope_conflicts_1): Same.
6003 (update_alias_info_with_stack_vars): Same.
6004 (expand_used_vars): Same.
6005 * cfghooks.c (redirect_edge_and_branch_force): Same.
6006 (delete_basic_block): Same.
6008 (make_forwarder_block): Same.
6009 (force_nonfallthru): Same.
6010 (duplicate_block): Same.
6011 (lv_flush_pending_stmts): Same.
6013 * cfgloop.c (flow_loops_cfg_dump): Same.
6014 (flow_loop_nested_p): Same.
6015 (superloop_at_depth): Same.
6016 (get_loop_latch_edges): Same.
6017 (flow_loop_dump): Same.
6018 (flow_loops_dump): Same.
6019 (flow_loops_free): Same.
6020 (flow_loop_nodes_find): Same.
6021 (establish_preds): Same.
6022 (flow_loop_tree_node_add): Same.
6023 (flow_loop_tree_node_remove): Same.
6024 (flow_loops_find): Same.
6025 (find_subloop_latch_edge_by_profile): Same.
6026 (find_subloop_latch_edge_by_ivs): Same.
6027 (mfb_redirect_edges_in_set): Same.
6028 (form_subloop): Same.
6029 (merge_latch_edges): Same.
6030 (disambiguate_multiple_latches): Same.
6031 (disambiguate_loops_with_multiple_latches): Same.
6032 (flow_bb_inside_loop_p): Same.
6034 (get_loop_body_with_size): Same.
6035 (get_loop_body): Same.
6036 (fill_sons_in_loop): Same.
6037 (get_loop_body_in_dom_order): Same.
6038 (get_loop_body_in_custom_order): Same.
6039 (release_recorded_exits): Same.
6040 (get_loop_exit_edges): Same.
6041 (num_loop_branches): Same.
6042 (remove_bb_from_loops): Same.
6043 (find_common_loop): Same.
6044 (delete_loop): Same.
6045 (cancel_loop): Same.
6046 (verify_loop_structure): Same.
6047 (loop_preheader_edge): Same.
6048 (loop_exit_edge_p): Same.
6049 (single_exit): Same.
6050 (loop_exits_to_bb_p): Same.
6051 (loop_exits_from_bb_p): Same.
6052 (get_loop_location): Same.
6053 (record_niter_bound): Same.
6054 (get_estimated_loop_iterations_int): Same.
6055 (max_stmt_executions_int): Same.
6056 (likely_max_stmt_executions_int): Same.
6057 (get_estimated_loop_iterations): Same.
6058 (get_max_loop_iterations): Same.
6059 (get_max_loop_iterations_int): Same.
6060 (get_likely_max_loop_iterations): Same.
6061 * cfgloop.h (simple_loop_desc): Same.
6065 (loop_iterator::next): Same.
6066 (loop_outermost): Same.
6067 * cfgloopanal.c (mark_irreducible_loops): Same.
6068 (num_loop_insns): Same.
6069 (average_num_loop_insns): Same.
6070 (expected_loop_iterations_unbounded): Same.
6071 (expected_loop_iterations): Same.
6072 (mark_loop_exit_edges): Same.
6073 (single_likely_exit): Same.
6074 * cfgloopmanip.c (fix_bb_placement): Same.
6075 (fix_bb_placements): Same.
6076 (remove_path): Same.
6077 (place_new_loop): Same.
6079 (scale_loop_frequencies): Same.
6080 (scale_loop_profile): Same.
6081 (create_empty_if_region_on_edge): Same.
6082 (create_empty_loop_on_edge): Same.
6085 (fix_loop_placements): Same.
6086 (copy_loop_info): Same.
6087 (duplicate_loop): Same.
6088 (duplicate_subloops): Same.
6089 (loop_redirect_edge): Same.
6090 (can_duplicate_loop_p): Same.
6091 (duplicate_loop_to_header_edge): Same.
6092 (mfb_keep_just): Same.
6093 (has_preds_from_loop): Same.
6094 (create_preheader): Same.
6095 (create_preheaders): Same.
6096 (lv_adjust_loop_entry_edge): Same.
6097 (loop_version): Same.
6098 * cfgloopmanip.h: Same.
6100 * cgraphbuild.c: Same.
6101 * combine.c (make_extraction): Same.
6102 * config/i386/i386-features.c: Same.
6103 * config/i386/i386-features.h: Same.
6104 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
6105 (ix86_emit_outlined_ms2sysv_restore): Same.
6106 (ix86_noce_conversion_profitable_p): Same.
6107 (ix86_init_cost): Same.
6108 (ix86_simd_clone_usable): Same.
6109 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
6111 * coretypes.h: Same.
6112 * data-streamer-in.c (string_for_index): Change class-key of PODs
6113 to struct and others to class.
6114 (streamer_read_indexed_string): Same.
6115 (streamer_read_string): Same.
6116 (bp_unpack_indexed_string): Same.
6117 (bp_unpack_string): Same.
6118 (streamer_read_uhwi): Same.
6119 (streamer_read_hwi): Same.
6120 (streamer_read_gcov_count): Same.
6121 (streamer_read_wide_int): Same.
6122 * data-streamer.h (streamer_write_bitpack): Same.
6123 (bp_unpack_value): Same.
6124 (streamer_write_char_stream): Same.
6125 (streamer_write_hwi_in_range): Same.
6126 (streamer_write_record_start): Same.
6127 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
6128 (add_cross_iteration_register_deps): Same.
6129 (build_intra_loop_deps): Same.
6130 * df-core.c (df_analyze): Same.
6131 (loop_post_order_compute): Same.
6132 (loop_inverted_post_order_compute): Same.
6133 * df-problems.c (df_rd_alloc): Same.
6134 (df_rd_simulate_one_insn): Same.
6135 (df_rd_local_compute): Same.
6136 (df_rd_init_solution): Same.
6137 (df_rd_confluence_n): Same.
6138 (df_rd_transfer_function): Same.
6140 (df_rd_dump_defs_set): Same.
6141 (df_rd_top_dump): Same.
6142 (df_lr_alloc): Same.
6143 (df_lr_reset): Same.
6144 (df_lr_local_compute): Same.
6146 (df_lr_confluence_n): Same.
6148 (df_lr_top_dump): Same.
6149 (df_lr_verify_transfer_functions): Same.
6150 (df_live_alloc): Same.
6151 (df_live_reset): Same.
6152 (df_live_init): Same.
6153 (df_live_confluence_n): Same.
6154 (df_live_finalize): Same.
6155 (df_live_free): Same.
6156 (df_live_top_dump): Same.
6157 (df_live_verify_transfer_functions): Same.
6158 (df_mir_alloc): Same.
6159 (df_mir_reset): Same.
6160 (df_mir_init): Same.
6161 (df_mir_confluence_n): Same.
6162 (df_mir_free): Same.
6163 (df_mir_top_dump): Same.
6164 (df_word_lr_alloc): Same.
6165 (df_word_lr_reset): Same.
6166 (df_word_lr_init): Same.
6167 (df_word_lr_confluence_n): Same.
6168 (df_word_lr_free): Same.
6169 (df_word_lr_top_dump): Same.
6170 (df_md_alloc): Same.
6171 (df_md_simulate_one_insn): Same.
6172 (df_md_reset): Same.
6175 (df_md_top_dump): Same.
6176 * df-scan.c (df_insn_delete): Same.
6177 (df_insn_rescan): Same.
6178 (df_notes_rescan): Same.
6179 (df_sort_and_compress_mws): Same.
6180 (df_install_mws): Same.
6181 (df_refs_add_to_chains): Same.
6182 (df_ref_create_structure): Same.
6183 (df_ref_record): Same.
6184 (df_def_record_1): Same.
6185 (df_find_hard_reg_defs): Same.
6186 (df_uses_record): Same.
6187 (df_get_conditional_uses): Same.
6188 (df_get_call_refs): Same.
6189 (df_recompute_luids): Same.
6190 (df_get_entry_block_def_set): Same.
6191 (df_entry_block_defs_collect): Same.
6192 (df_get_exit_block_use_set): Same.
6193 (df_exit_block_uses_collect): Same.
6194 (df_mws_verify): Same.
6195 (df_bb_verify): Same.
6196 * df.h (df_scan_get_bb_info): Same.
6197 * doc/tm.texi: Same.
6198 * dse.c (record_store): Same.
6200 * emit-rtl.c (const_fixed_hasher::equal): Same.
6201 (set_mem_attributes_minus_bitpos): Same.
6202 (change_address): Same.
6203 (adjust_address_1): Same.
6204 (offset_address): Same.
6206 * except.c (dw2_build_landing_pads): Same.
6207 (sjlj_emit_dispatch_table): Same.
6208 * explow.c (allocate_dynamic_stack_space): Same.
6209 (emit_stack_probe): Same.
6210 (probe_stack_range): Same.
6211 * expmed.c (store_bit_field_using_insv): Same.
6212 (store_bit_field_1): Same.
6213 (store_integral_bit_field): Same.
6214 (extract_bit_field_using_extv): Same.
6215 (extract_bit_field_1): Same.
6216 (emit_cstore): Same.
6217 * expr.c (emit_block_move_via_cpymem): Same.
6218 (expand_cmpstrn_or_cmpmem): Same.
6219 (set_storage_via_setmem): Same.
6220 (emit_single_push_insn_1): Same.
6221 (expand_assignment): Same.
6222 (store_constructor): Same.
6223 (expand_expr_real_2): Same.
6224 (expand_expr_real_1): Same.
6227 * function.c (try_fit_stack_local): Same.
6228 (assign_stack_local_1): Same.
6229 (assign_stack_local): Same.
6230 (cut_slot_from_list): Same.
6231 (insert_slot_to_list): Same.
6232 (max_slot_level): Same.
6233 (move_slot_to_level): Same.
6234 (temp_address_hasher::equal): Same.
6235 (remove_unused_temp_slot_addresses): Same.
6236 (assign_temp): Same.
6237 (combine_temp_slots): Same.
6238 (update_temp_slot_address): Same.
6239 (preserve_temp_slots): Same.
6242 * gcc-rich-location.h: Same.
6244 * genattrtab.c (check_attr_test): Same.
6245 (check_attr_value): Same.
6246 (convert_set_attr_alternative): Same.
6247 (convert_set_attr): Same.
6249 (copy_boolean): Same.
6250 (get_attr_value): Same.
6251 (expand_delays): Same.
6252 (make_length_attrs): Same.
6254 (make_alternative_compare): Same.
6255 (simplify_test_exp): Same.
6256 (tests_attr_p): Same.
6257 (get_attr_order): Same.
6258 (clear_struct_flag): Same.
6260 (compares_alternatives_p): Same.
6263 (find_attrs_to_cache): Same.
6264 (write_test_expr): Same.
6265 (walk_attr_value): Same.
6266 (write_attr_get): Same.
6267 (eliminate_known_true): Same.
6268 (write_insn_cases): Same.
6269 (write_attr_case): Same.
6270 (write_attr_valueq): Same.
6271 (write_attr_value): Same.
6272 (write_dummy_eligible_delay): Same.
6273 (next_comma_elt): Same.
6275 (make_internal_attr): Same.
6276 (copy_rtx_unchanging): Same.
6277 (gen_insn_reserv): Same.
6278 (check_tune_attr): Same.
6279 (make_automaton_attrs): Same.
6281 * genextract.c (gen_insn): Same.
6282 (VEC_char_to_string): Same.
6283 * genmatch.c (print_operand): Same.
6285 (parser::parse_operation): Same.
6286 (parser::parse_capture): Same.
6287 (parser::parse_c_expr): Same.
6288 (parser::parse_simplify): Same.
6290 * genoutput.c (output_operand_data): Same.
6291 (output_get_insn_name): Same.
6292 (compare_operands): Same.
6293 (place_operands): Same.
6294 (process_template): Same.
6295 (validate_insn_alternatives): Same.
6296 (validate_insn_operands): Same.
6298 (note_constraint): Same.
6299 * genpreds.c (write_one_predicate_function): Same.
6300 (add_constraint): Same.
6301 (process_define_register_constraint): Same.
6302 (write_lookup_constraint_1): Same.
6303 (write_lookup_constraint_array): Same.
6304 (write_insn_constraint_len): Same.
6305 (write_reg_class_for_constraint_1): Same.
6306 (write_constraint_satisfied_p_array): Same.
6307 * genrecog.c (optimize_subroutine_group): Same.
6308 * gensupport.c (process_define_predicate): Same.
6309 (queue_pattern): Same.
6310 (remove_from_queue): Same.
6311 (process_rtx): Same.
6312 (is_predicable): Same.
6313 (change_subst_attribute): Same.
6314 (subst_pattern_match): Same.
6315 (alter_constraints): Same.
6316 (alter_attrs_for_insn): Same.
6317 (shift_output_template): Same.
6318 (alter_output_for_subst_insn): Same.
6319 (process_one_cond_exec): Same.
6321 (process_define_cond_exec): Same.
6322 (mnemonic_htab_callback): Same.
6323 (gen_mnemonic_attr): Same.
6324 (read_md_rtx): Same.
6326 * gimple-loop-interchange.cc (dump_reduction): Same.
6327 (dump_induction): Same.
6328 (loop_cand::~loop_cand): Same.
6329 (free_data_refs_with_aux): Same.
6330 (tree_loop_interchange::interchange_loops): Same.
6331 (tree_loop_interchange::map_inductions_to_loop): Same.
6332 (tree_loop_interchange::move_code_to_inner_loop): Same.
6333 (compute_access_stride): Same.
6334 (compute_access_strides): Same.
6335 (proper_loop_form_for_interchange): Same.
6336 (tree_loop_interchange_compute_ddrs): Same.
6337 (prune_datarefs_not_in_loop): Same.
6338 (prepare_data_references): Same.
6339 (pass_linterchange::execute): Same.
6340 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
6341 (unroll_jam_possible_p): Same.
6343 (adjust_unroll_factor): Same.
6344 (tree_loop_unroll_and_jam): Same.
6345 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
6346 (loop_versioning::expensive_stmt_p): Same.
6347 (loop_versioning::version_for_unity): Same.
6348 (loop_versioning::dump_inner_likelihood): Same.
6349 (loop_versioning::find_per_loop_multiplication): Same.
6350 (loop_versioning::analyze_term_using_scevs): Same.
6351 (loop_versioning::record_address_fragment): Same.
6352 (loop_versioning::analyze_expr): Same.
6353 (loop_versioning::analyze_blocks): Same.
6354 (loop_versioning::prune_conditions): Same.
6355 (loop_versioning::merge_loop_info): Same.
6356 (loop_versioning::add_loop_to_queue): Same.
6357 (loop_versioning::decide_whether_loop_is_versionable): Same.
6358 (loop_versioning::make_versioning_decisions): Same.
6359 (loop_versioning::implement_versioning_decisions): Same.
6360 * gimple-ssa-evrp-analyze.c
6361 (evrp_range_analyzer::record_ranges_from_phis): Same.
6362 * gimple-ssa-store-merging.c (split_store::split_store): Same.
6363 (count_multiple_uses): Same.
6364 (split_group): Same.
6365 (imm_store_chain_info::output_merged_store): Same.
6366 (pass_store_merging::process_store): Same.
6367 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
6368 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
6370 (alloca_call_type): Same.
6371 (pass_walloca::execute): Same.
6372 * gimple-streamer-in.c (input_phi): Same.
6373 (input_gimple_stmt): Same.
6374 * gimple-streamer.h: Same.
6375 * godump.c (go_force_record_alignment): Same.
6376 (go_format_type): Same.
6377 (go_output_type): Same.
6378 (go_output_fndecl): Same.
6379 (go_output_typedef): Same.
6380 (keyword_hash_init): Same.
6381 (find_dummy_types): Same.
6382 * graph.c (draw_cfg_nodes_no_loops): Same.
6383 (draw_cfg_nodes_for_loop): Same.
6384 * hard-reg-set.h (hard_reg_set_iter_next): Same.
6386 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
6387 * hsa-dump.c (dump_hsa_cfun): Same.
6388 * hsa-gen.c (gen_function_def_parameters): Same.
6389 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
6390 * input.c (dump_line_table_statistics): Same.
6393 * internal-fn.c (get_multi_vector_move): Same.
6394 (expand_load_lanes_optab_fn): Same.
6395 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
6396 (expand_GOMP_SIMT_EXIT): Same.
6397 (expand_GOMP_SIMT_LAST_LANE): Same.
6398 (expand_GOMP_SIMT_ORDERED_PRED): Same.
6399 (expand_GOMP_SIMT_VOTE_ANY): Same.
6400 (expand_GOMP_SIMT_XCHG_BFLY): Same.
6401 (expand_GOMP_SIMT_XCHG_IDX): Same.
6402 (expand_addsub_overflow): Same.
6403 (expand_neg_overflow): Same.
6404 (expand_mul_overflow): Same.
6405 (expand_call_mem_ref): Same.
6406 (expand_mask_load_optab_fn): Same.
6407 (expand_scatter_store_optab_fn): Same.
6408 (expand_gather_load_optab_fn): Same.
6409 * ipa-cp.c (ipa_get_parm_lattices): Same.
6410 (print_all_lattices): Same.
6411 (ignore_edge_p): Same.
6412 (build_toporder_info): Same.
6413 (free_toporder_info): Same.
6414 (push_node_to_stack): Same.
6415 (ipcp_lattice<valtype>::set_contains_variable): Same.
6416 (set_agg_lats_to_bottom): Same.
6417 (ipcp_bits_lattice::meet_with): Same.
6418 (set_single_call_flag): Same.
6419 (initialize_node_lattices): Same.
6420 (ipa_get_jf_ancestor_result): Same.
6421 (ipcp_verify_propagated_values): Same.
6422 (propagate_scalar_across_jump_function): Same.
6423 (propagate_context_across_jump_function): Same.
6424 (propagate_bits_across_jump_function): Same.
6425 (ipa_vr_operation_and_type_effects): Same.
6426 (propagate_vr_across_jump_function): Same.
6427 (set_check_aggs_by_ref): Same.
6428 (set_chain_of_aglats_contains_variable): Same.
6429 (merge_aggregate_lattices): Same.
6430 (agg_pass_through_permissible_p): Same.
6431 (propagate_aggs_across_jump_function): Same.
6432 (call_passes_through_thunk_p): Same.
6433 (propagate_constants_across_call): Same.
6434 (devirtualization_time_bonus): Same.
6435 (good_cloning_opportunity_p): Same.
6436 (context_independent_aggregate_values): Same.
6437 (gather_context_independent_values): Same.
6438 (perform_estimation_of_a_value): Same.
6439 (estimate_local_effects): Same.
6440 (value_topo_info<valtype>::add_val): Same.
6441 (add_all_node_vals_to_toposort): Same.
6442 (value_topo_info<valtype>::propagate_effects): Same.
6443 (ipcp_propagate_stage): Same.
6444 (ipcp_discover_new_direct_edges): Same.
6445 (same_node_or_its_all_contexts_clone_p): Same.
6446 (cgraph_edge_brings_value_p): Same.
6447 (gather_edges_for_value): Same.
6448 (create_specialized_node): Same.
6449 (find_more_scalar_values_for_callers_subset): Same.
6450 (find_more_contexts_for_caller_subset): Same.
6451 (copy_plats_to_inter): Same.
6452 (intersect_aggregates_with_edge): Same.
6453 (find_aggregate_values_for_callers_subset): Same.
6454 (cgraph_edge_brings_all_agg_vals_for_node): Same.
6455 (decide_about_value): Same.
6456 (decide_whether_version_node): Same.
6457 (spread_undeadness): Same.
6458 (identify_dead_nodes): Same.
6459 (ipcp_store_vr_results): Same.
6460 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
6461 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
6462 (redirect_to_unreachable): Same.
6463 (edge_set_predicate): Same.
6464 (evaluate_conditions_for_known_args): Same.
6465 (evaluate_properties_for_edge): Same.
6466 (ipa_fn_summary_t::duplicate): Same.
6467 (ipa_call_summary_t::duplicate): Same.
6468 (dump_ipa_call_summary): Same.
6469 (ipa_dump_fn_summary): Same.
6470 (eliminated_by_inlining_prob): Same.
6471 (set_cond_stmt_execution_predicate): Same.
6472 (set_switch_stmt_execution_predicate): Same.
6473 (compute_bb_predicates): Same.
6474 (will_be_nonconstant_expr_predicate): Same.
6475 (phi_result_unknown_predicate): Same.
6476 (analyze_function_body): Same.
6477 (compute_fn_summary): Same.
6478 (estimate_edge_devirt_benefit): Same.
6479 (estimate_edge_size_and_time): Same.
6480 (estimate_calls_size_and_time): Same.
6481 (estimate_node_size_and_time): Same.
6482 (remap_edge_change_prob): Same.
6483 (remap_edge_summaries): Same.
6484 (ipa_merge_fn_summary_after_inlining): Same.
6485 (ipa_fn_summary_generate): Same.
6486 (inline_read_section): Same.
6487 (ipa_fn_summary_read): Same.
6488 (ipa_fn_summary_write): Same.
6489 * ipa-fnsummary.h: Same.
6490 * ipa-hsa.c (ipa_hsa_read_section): Same.
6491 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
6492 * ipa-icf.c (sem_function::param_used_p): Same.
6493 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
6494 * ipa-inline.c (edge_badness): Same.
6495 (inline_small_functions): Same.
6496 * ipa-polymorphic-call.c
6497 (ipa_polymorphic_call_context::stream_out): Same.
6498 * ipa-predicate.c (predicate::remap_after_duplication): Same.
6499 (predicate::remap_after_inlining): Same.
6500 (predicate::stream_out): Same.
6501 * ipa-predicate.h: Same.
6502 * ipa-profile.c (ipa_profile_read_summary): Same.
6503 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
6504 (count_formal_params): Same.
6505 (ipa_dump_param): Same.
6506 (ipa_alloc_node_params): Same.
6507 (ipa_print_node_jump_functions_for_edge): Same.
6508 (ipa_print_node_jump_functions): Same.
6509 (ipa_load_from_parm_agg): Same.
6510 (get_ancestor_addr_info): Same.
6511 (ipa_compute_jump_functions_for_edge): Same.
6512 (ipa_analyze_virtual_call_uses): Same.
6513 (ipa_analyze_stmt_uses): Same.
6514 (ipa_analyze_params_uses_in_bb): Same.
6515 (update_jump_functions_after_inlining): Same.
6516 (try_decrement_rdesc_refcount): Same.
6517 (ipa_impossible_devirt_target): Same.
6518 (update_indirect_edges_after_inlining): Same.
6519 (combine_controlled_uses_counters): Same.
6520 (ipa_edge_args_sum_t::duplicate): Same.
6521 (ipa_write_jump_function): Same.
6522 (ipa_write_indirect_edge_info): Same.
6523 (ipa_write_node_info): Same.
6524 (ipa_read_edge_info): Same.
6525 (ipa_prop_read_section): Same.
6526 (read_replacements_section): Same.
6527 * ipa-prop.h (ipa_get_param_count): Same.
6528 (ipa_get_param): Same.
6529 (ipa_get_type): Same.
6530 (ipa_get_param_move_cost): Same.
6531 (ipa_set_param_used): Same.
6532 (ipa_get_controlled_uses): Same.
6533 (ipa_set_controlled_uses): Same.
6534 (ipa_get_cs_argument_count): Same.
6535 * ipa-pure-const.c (analyze_function): Same.
6536 (pure_const_read_summary): Same.
6538 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
6539 * ipa-split.c (test_nonssa_use): Same.
6540 (dump_split_point): Same.
6541 (dominated_by_forbidden): Same.
6542 (split_part_set_ssa_name_p): Same.
6543 (find_split_points): Same.
6544 * ira-build.c (finish_loop_tree_nodes): Same.
6545 (low_pressure_loop_node_p): Same.
6546 * ira-color.c (ira_reuse_stack_slot): Same.
6548 * ira.c (setup_reg_equiv): Same.
6549 (print_insn_chain): Same.
6551 * loop-doloop.c (doloop_condition_get): Same.
6553 (record_reg_sets): Same.
6554 (doloop_optimize): Same.
6555 * loop-init.c (loop_optimizer_init): Same.
6556 (fix_loop_structure): Same.
6557 * loop-invariant.c (merge_identical_invariants): Same.
6558 (compute_always_reached): Same.
6560 (may_assign_reg_p): Same.
6561 (find_invariants_bb): Same.
6562 (find_invariants_body): Same.
6563 (replace_uses): Same.
6564 (can_move_invariant_reg): Same.
6565 (free_inv_motion_data): Same.
6566 (move_single_loop_invariants): Same.
6567 (change_pressure): Same.
6568 (mark_ref_regs): Same.
6569 (calculate_loop_reg_pressure): Same.
6570 * loop-iv.c (biv_entry_hasher::equal): Same.
6571 (iv_extend_to_rtx_code): Same.
6572 (check_iv_ref_table_size): Same.
6573 (clear_iv_info): Same.
6574 (latch_dominating_def): Same.
6575 (iv_get_reaching_def): Same.
6576 (iv_constant): Same.
6582 (get_biv_step): Same.
6584 (analyzed_for_bivness_p): Same.
6586 (iv_analyze_biv): Same.
6587 (iv_analyze_expr): Same.
6588 (iv_analyze_def): Same.
6589 (iv_analyze_op): Same.
6591 (iv_analyze_result): Same.
6593 (eliminate_implied_conditions): Same.
6594 (simplify_using_initial_values): Same.
6595 (shorten_into_mode): Same.
6596 (canonicalize_iv_subregs): Same.
6597 (determine_max_iter): Same.
6598 (check_simple_exit): Same.
6599 (find_simple_exit): Same.
6600 (get_simple_loop_desc): Same.
6601 * loop-unroll.c (report_unroll): Same.
6602 (decide_unrolling): Same.
6603 (unroll_loops): Same.
6604 (loop_exit_at_end_p): Same.
6605 (decide_unroll_constant_iterations): Same.
6606 (unroll_loop_constant_iterations): Same.
6607 (compare_and_jump_seq): Same.
6608 (unroll_loop_runtime_iterations): Same.
6609 (decide_unroll_stupid): Same.
6610 (unroll_loop_stupid): Same.
6611 (referenced_in_one_insn_in_loop_p): Same.
6612 (reset_debug_uses_in_loop): Same.
6613 (analyze_iv_to_split_insn): Same.
6614 * lra-eliminations.c (lra_debug_elim_table): Same.
6615 (setup_can_eliminate): Same.
6617 (lra_get_elimination_hard_regno): Same.
6618 (lra_eliminate_regs_1): Same.
6619 (eliminate_regs_in_insn): Same.
6620 (update_reg_eliminate): Same.
6621 (init_elimination): Same.
6622 (lra_eliminate): Same.
6624 * lra-lives.c (initiate_live_solver): Same.
6625 * lra-remat.c (create_remat_bb_data): Same.
6626 * lra-spills.c (lra_spill): Same.
6627 * lra.c (lra_set_insn_recog_data): Same.
6628 (lra_set_used_insn_alternative_by_uid): Same.
6629 (init_reg_info): Same.
6630 (expand_reg_info): Same.
6631 * lto-cgraph.c (output_symtab): Same.
6632 (read_identifier): Same.
6633 (get_alias_symbol): Same.
6635 (input_varpool_node): Same.
6638 (input_cgraph_1): Same.
6640 (input_symtab): Same.
6641 (input_offload_tables): Same.
6642 (output_cgraph_opt_summary): Same.
6643 (input_edge_opt_summary): Same.
6644 (input_cgraph_opt_section): Same.
6645 * lto-section-in.c (lto_free_raw_section_data): Same.
6646 (lto_create_simple_input_block): Same.
6647 (lto_free_function_in_decl_state_for_node): Same.
6648 * lto-streamer-in.c (lto_tag_check_set): Same.
6649 (lto_location_cache::revert_location_cache): Same.
6650 (lto_location_cache::input_location): Same.
6651 (lto_input_location): Same.
6652 (stream_input_location_now): Same.
6653 (lto_input_tree_ref): Same.
6654 (lto_input_eh_catch_list): Same.
6655 (input_eh_region): Same.
6656 (lto_init_eh): Same.
6657 (make_new_block): Same.
6659 (fixup_call_stmt_edges): Same.
6660 (input_struct_function_base): Same.
6661 (input_function): Same.
6662 (lto_read_body_or_constructor): Same.
6663 (lto_read_tree_1): Same.
6664 (lto_read_tree): Same.
6665 (lto_input_scc): Same.
6666 (lto_input_tree_1): Same.
6667 (lto_input_toplevel_asms): Same.
6668 (lto_input_mode_table): Same.
6669 (lto_reader_init): Same.
6670 (lto_data_in_create): Same.
6671 * lto-streamer-out.c (output_cfg): Same.
6672 * lto-streamer.h: Same.
6673 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6674 (generate_prolog_epilog): Same.
6675 (mark_loop_unsched): Same.
6676 (dump_insn_location): Same.
6677 (loop_canon_p): Same.
6678 (sms_schedule): Same.
6679 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6680 (expand_omp_for_generic): Same.
6681 (expand_omp_for_static_nochunk): Same.
6682 (expand_omp_for_static_chunk): Same.
6683 (expand_omp_simd): Same.
6684 (expand_omp_taskloop_for_inner): Same.
6685 (expand_oacc_for): Same.
6686 (expand_omp_atomic_pipeline): Same.
6687 (mark_loops_in_oacc_kernels_region): Same.
6688 * omp-offload.c (oacc_xform_loop): Same.
6689 * omp-simd-clone.c (simd_clone_adjust): Same.
6690 * optabs-query.c (get_traditional_extraction_insn): Same.
6691 * optabs.c (expand_vector_broadcast): Same.
6692 (expand_binop_directly): Same.
6693 (expand_twoval_unop): Same.
6694 (expand_twoval_binop): Same.
6695 (expand_unop_direct): Same.
6696 (emit_indirect_jump): Same.
6697 (emit_conditional_move): Same.
6698 (emit_conditional_neg_or_complement): Same.
6699 (emit_conditional_add): Same.
6700 (vector_compare_rtx): Same.
6701 (expand_vec_perm_1): Same.
6702 (expand_vec_perm_const): Same.
6703 (expand_vec_cond_expr): Same.
6704 (expand_vec_series_expr): Same.
6705 (maybe_emit_atomic_exchange): Same.
6706 (maybe_emit_sync_lock_test_and_set): Same.
6707 (expand_atomic_compare_and_swap): Same.
6708 (expand_atomic_load): Same.
6709 (expand_atomic_store): Same.
6710 (maybe_emit_op): Same.
6711 (valid_multiword_target_p): Same.
6712 (create_integer_operand): Same.
6713 (maybe_legitimize_operand_same_code): Same.
6714 (maybe_legitimize_operand): Same.
6715 (create_convert_operand_from_type): Same.
6716 (can_reuse_operands_p): Same.
6717 (maybe_legitimize_operands): Same.
6718 (maybe_gen_insn): Same.
6719 (maybe_expand_insn): Same.
6720 (maybe_expand_jump_insn): Same.
6721 (expand_insn): Same.
6722 * optabs.h (create_expand_operand): Same.
6723 (create_fixed_operand): Same.
6724 (create_output_operand): Same.
6725 (create_input_operand): Same.
6726 (create_convert_operand_to): Same.
6727 (create_convert_operand_from): Same.
6730 * predict.c (optimize_insn_for_speed_p): Same.
6731 (optimize_loop_for_size_p): Same.
6732 (optimize_loop_for_speed_p): Same.
6733 (optimize_loop_nest_for_speed_p): Same.
6734 (get_base_value): Same.
6735 (predicted_by_loop_heuristics_p): Same.
6736 (predict_extra_loop_exits): Same.
6737 (predict_loops): Same.
6738 (predict_paths_for_bb): Same.
6739 (predict_paths_leading_to): Same.
6740 (propagate_freq): Same.
6741 (pass_profile::execute): Same.
6743 * profile-count.c (profile_count::differs_from_p): Same.
6744 (profile_probability::differs_lot_from_p): Same.
6745 * profile-count.h: Same.
6746 * profile.c (branch_prob): Same.
6747 * regrename.c (free_chain_data): Same.
6748 (mark_conflict): Same.
6749 (create_new_chain): Same.
6750 (merge_overlapping_regs): Same.
6751 (init_rename_info): Same.
6752 (merge_chains): Same.
6753 (regrename_analyze): Same.
6754 (regrename_do_replace): Same.
6755 (scan_rtx_reg): Same.
6756 (record_out_operands): Same.
6757 (build_def_use): Same.
6758 * regrename.h: Same.
6760 * reload1.c (init_reload): Same.
6761 (maybe_fix_stack_asms): Same.
6762 (copy_reloads): Same.
6763 (count_pseudo): Same.
6764 (count_spilled_pseudo): Same.
6766 (find_reload_regs): Same.
6767 (select_reload_regs): Same.
6768 (spill_hard_reg): Same.
6769 (fixup_eh_region_note): Same.
6770 (set_reload_reg): Same.
6771 (allocate_reload_reg): Same.
6772 (compute_reload_subreg_offset): Same.
6773 (reload_adjust_reg_for_icode): Same.
6774 (emit_input_reload_insns): Same.
6775 (emit_output_reload_insns): Same.
6776 (do_input_reload): Same.
6777 (inherit_piecemeal_p): Same.
6779 * sanopt.c (maybe_get_dominating_check): Same.
6780 (maybe_optimize_ubsan_ptr_ifn): Same.
6781 (can_remove_asan_check): Same.
6782 (maybe_optimize_asan_check_ifn): Same.
6783 (sanopt_optimize_walker): Same.
6784 * sched-deps.c (add_dependence_list): Same.
6785 (chain_to_prev_insn): Same.
6786 (add_insn_mem_dependence): Same.
6787 (create_insn_reg_set): Same.
6788 (maybe_extend_reg_info_p): Same.
6789 (sched_analyze_reg): Same.
6790 (sched_analyze_1): Same.
6791 (get_implicit_reg_pending_clobbers): Same.
6792 (chain_to_prev_insn_p): Same.
6793 (deps_analyze_insn): Same.
6794 (deps_start_bb): Same.
6795 (sched_free_deps): Same.
6797 (init_deps_reg_last): Same.
6799 * sched-ebb.c: Same.
6800 * sched-int.h: Same.
6801 * sched-rgn.c (add_branch_dependences): Same.
6802 (concat_insn_mem_list): Same.
6804 (sched_rgn_compute_dependencies): Same.
6805 * sel-sched-ir.c (reset_target_context): Same.
6806 (copy_deps_context): Same.
6807 (init_id_from_df): Same.
6808 (has_dependence_p): Same.
6809 (change_loops_latches): Same.
6810 (bb_top_order_comparator): Same.
6811 (make_region_from_loop_preheader): Same.
6812 (sel_init_pipelining): Same.
6813 (get_loop_nest_for_rgn): Same.
6814 (make_regions_from_the_rest): Same.
6815 (sel_is_loop_preheader_p): Same.
6816 * sel-sched-ir.h (inner_loop_header_p): Same.
6817 (get_all_loop_exits): Same.
6819 * sese.c (sese_build_liveouts): Same.
6820 (sese_insert_phis_for_liveouts): Same.
6821 * sese.h (defined_in_sese_p): Same.
6822 * sreal.c (sreal::stream_out): Same.
6824 * streamer-hooks.h: Same.
6825 * target-globals.c (save_target_globals): Same.
6826 * target-globals.h: Same.
6829 * targhooks.c (default_has_ifunc_p): Same.
6830 (default_empty_mask_is_expensive): Same.
6831 (default_init_cost): Same.
6832 * targhooks.h: Same.
6834 * tree-affine.c (aff_combination_mult): Same.
6835 (aff_combination_expand): Same.
6836 (aff_combination_constant_multiple_p): Same.
6837 * tree-affine.h: Same.
6838 * tree-cfg.c (build_gimple_cfg): Same.
6839 (replace_loop_annotate_in_block): Same.
6840 (replace_uses_by): Same.
6842 (dump_cfg_stats): Same.
6843 (gimple_duplicate_sese_region): Same.
6844 (gimple_duplicate_sese_tail): Same.
6845 (move_block_to_fn): Same.
6846 (replace_block_vars_by_duplicates): Same.
6847 (move_sese_region_to_fn): Same.
6848 (print_loops_bb): Same.
6850 (print_loops): Same.
6852 (debug_loops): Same.
6854 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6855 (chrec_fold_multiply_poly_poly): Same.
6856 (chrec_evaluate): Same.
6857 (chrec_component_in_loop_num): Same.
6858 (reset_evolution_in_loop): Same.
6859 (is_multivariate_chrec): Same.
6860 (chrec_contains_symbols): Same.
6861 (nb_vars_in_chrec): Same.
6862 (chrec_convert_1): Same.
6863 (chrec_convert_aggressive): Same.
6864 * tree-chrec.h: Same.
6865 * tree-core.h: Same.
6866 * tree-data-ref.c (dump_data_dependence_relation): Same.
6867 (canonicalize_base_object_address): Same.
6868 (data_ref_compare_tree): Same.
6869 (prune_runtime_alias_test_list): Same.
6870 (get_segment_min_max): Same.
6871 (create_intersect_range_checks): Same.
6872 (conflict_fn_no_dependence): Same.
6873 (object_address_invariant_in_loop_p): Same.
6874 (analyze_ziv_subscript): Same.
6875 (analyze_siv_subscript_cst_affine): Same.
6876 (analyze_miv_subscript): Same.
6877 (analyze_overlapping_iterations): Same.
6878 (build_classic_dist_vector_1): Same.
6879 (add_other_self_distances): Same.
6880 (same_access_functions): Same.
6881 (build_classic_dir_vector): Same.
6882 (subscript_dependence_tester_1): Same.
6883 (subscript_dependence_tester): Same.
6884 (access_functions_are_affine_or_constant_p): Same.
6885 (get_references_in_stmt): Same.
6886 (loop_nest_has_data_refs): Same.
6887 (graphite_find_data_references_in_stmt): Same.
6888 (find_data_references_in_bb): Same.
6889 (get_base_for_alignment): Same.
6890 (find_loop_nest_1): Same.
6891 (find_loop_nest): Same.
6892 * tree-data-ref.h (dr_alignment): Same.
6893 (ddr_dependence_level): Same.
6894 * tree-if-conv.c (fold_build_cond_expr): Same.
6895 (add_to_predicate_list): Same.
6896 (add_to_dst_predicate_list): Same.
6897 (phi_convertible_by_degenerating_args): Same.
6898 (idx_within_array_bound): Same.
6899 (all_preds_critical_p): Same.
6900 (pred_blocks_visited_p): Same.
6901 (predicate_bbs): Same.
6902 (build_region): Same.
6903 (if_convertible_loop_p_1): Same.
6904 (is_cond_scalar_reduction): Same.
6905 (predicate_scalar_phi): Same.
6906 (remove_conditions_and_labels): Same.
6907 (combine_blocks): Same.
6908 (version_loop_for_if_conversion): Same.
6909 (versionable_outer_loop_p): Same.
6910 (ifcvt_local_dce): Same.
6911 (tree_if_conversion): Same.
6912 (pass_if_conversion::gate): Same.
6913 * tree-if-conv.h: Same.
6914 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6915 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6917 (stmt_has_scalar_dependences_outside_loop): Same.
6918 (copy_loop_before): Same.
6919 (create_bb_after_loop): Same.
6920 (const_with_all_bytes_same): Same.
6921 (generate_memset_builtin): Same.
6922 (generate_memcpy_builtin): Same.
6923 (destroy_loop): Same.
6924 (build_rdg_partition_for_vertex): Same.
6925 (compute_access_range): Same.
6926 (data_ref_segment_size): Same.
6927 (latch_dominated_by_data_ref): Same.
6928 (compute_alias_check_pairs): Same.
6929 (fuse_memset_builtins): Same.
6930 (finalize_partitions): Same.
6931 (find_seed_stmts_for_distribution): Same.
6932 (prepare_perfect_loop_nest): Same.
6933 * tree-parloops.c (lambda_transform_legal_p): Same.
6934 (loop_parallel_p): Same.
6935 (reduc_stmt_res): Same.
6936 (add_field_for_name): Same.
6937 (create_call_for_reduction_1): Same.
6938 (replace_uses_in_bb_by): Same.
6939 (transform_to_exit_first_loop_alt): Same.
6940 (try_transform_to_exit_first_loop_alt): Same.
6941 (transform_to_exit_first_loop): Same.
6943 (gen_parallel_loop): Same.
6944 (gather_scalar_reductions): Same.
6945 (get_omp_data_i_param): Same.
6946 (try_create_reduction_list): Same.
6947 (oacc_entry_exit_single_gang): Same.
6948 (parallelize_loops): Same.
6949 * tree-pass.h: Same.
6950 * tree-predcom.c (determine_offset): Same.
6951 (last_always_executed_block): Same.
6952 (split_data_refs_to_components): Same.
6953 (suitable_component_p): Same.
6954 (valid_initializer_p): Same.
6955 (find_looparound_phi): Same.
6956 (insert_looparound_copy): Same.
6957 (add_looparound_copies): Same.
6958 (determine_roots_comp): Same.
6959 (predcom_tmp_var): Same.
6960 (initialize_root_vars): Same.
6961 (initialize_root_vars_store_elim_1): Same.
6962 (initialize_root_vars_store_elim_2): Same.
6963 (finalize_eliminated_stores): Same.
6964 (initialize_root_vars_lm): Same.
6965 (remove_stmt): Same.
6966 (determine_unroll_factor): Same.
6967 (execute_pred_commoning_cbck): Same.
6968 (base_names_in_chain_on): Same.
6969 (combine_chains): Same.
6970 (pcom_stmt_dominates_stmt_p): Same.
6971 (try_combine_chains): Same.
6972 (prepare_initializers_chain_store_elim): Same.
6973 (prepare_initializers_chain): Same.
6974 (prepare_initializers): Same.
6975 (prepare_finalizers_chain): Same.
6976 (prepare_finalizers): Same.
6977 (insert_init_seqs): Same.
6978 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6979 (compute_overall_effect_of_inner_loop): Same.
6980 (add_to_evolution_1): Same.
6981 (add_to_evolution): Same.
6982 (follow_ssa_edge_binary): Same.
6983 (follow_ssa_edge_expr): Same.
6984 (backedge_phi_arg_p): Same.
6985 (follow_ssa_edge_in_condition_phi_branch): Same.
6986 (follow_ssa_edge_in_condition_phi): Same.
6987 (follow_ssa_edge_inner_loop_phi): Same.
6988 (follow_ssa_edge): Same.
6989 (analyze_evolution_in_loop): Same.
6990 (analyze_initial_condition): Same.
6991 (interpret_loop_phi): Same.
6992 (interpret_condition_phi): Same.
6993 (interpret_rhs_expr): Same.
6994 (interpret_expr): Same.
6995 (interpret_gimple_assign): Same.
6996 (analyze_scalar_evolution_1): Same.
6997 (analyze_scalar_evolution): Same.
6998 (analyze_scalar_evolution_for_address_of): Same.
6999 (get_instantiated_value_entry): Same.
7000 (loop_closed_phi_def): Same.
7001 (instantiate_scev_name): Same.
7002 (instantiate_scev_poly): Same.
7003 (instantiate_scev_binary): Same.
7004 (instantiate_scev_convert): Same.
7005 (instantiate_scev_not): Same.
7006 (instantiate_scev_r): Same.
7007 (instantiate_scev): Same.
7008 (resolve_mixers): Same.
7009 (initialize_scalar_evolutions_analyzer): Same.
7010 (scev_reset_htab): Same.
7012 (derive_simple_iv_with_niters): Same.
7013 (simple_iv_with_niters): Same.
7014 (expression_expensive_p): Same.
7015 (final_value_replacement_loop): Same.
7016 * tree-scalar-evolution.h (block_before_loop): Same.
7017 * tree-ssa-address.h: Same.
7018 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
7019 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
7020 (record_edge_info): Same.
7021 * tree-ssa-live.c (var_map_base_fini): Same.
7022 (remove_unused_locals): Same.
7023 * tree-ssa-live.h: Same.
7024 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
7025 (pass_ch_vect::execute): Same.
7026 (pass_ch::process_loop_p): Same.
7027 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
7028 (movement_possibility): Same.
7029 (outermost_invariant_loop): Same.
7031 (determine_max_movement): Same.
7032 (invariantness_dom_walker::before_dom_children): Same.
7033 (move_computations): Same.
7034 (may_move_till): Same.
7035 (force_move_till_op): Same.
7036 (force_move_till): Same.
7037 (memref_free): Same.
7038 (record_mem_ref_loc): Same.
7039 (set_ref_stored_in_loop): Same.
7040 (mark_ref_stored): Same.
7041 (sort_bbs_in_loop_postorder_cmp): Same.
7042 (sort_locs_in_loop_postorder_cmp): Same.
7043 (analyze_memory_references): Same.
7044 (mem_refs_may_alias_p): Same.
7045 (find_ref_loc_in_loop_cmp): Same.
7046 (rewrite_mem_ref_loc::operator): Same.
7047 (first_mem_ref_loc_1::operator): Same.
7048 (sm_set_flag_if_changed::operator): Same.
7049 (execute_sm_if_changed_flag_set): Same.
7051 (hoist_memory_references): Same.
7052 (ref_always_accessed::operator): Same.
7053 (refs_independent_p): Same.
7054 (record_dep_loop): Same.
7055 (ref_indep_loop_p_1): Same.
7056 (ref_indep_loop_p): Same.
7057 (can_sm_ref_p): Same.
7058 (find_refs_for_sm): Same.
7059 (loop_suitable_for_sm): Same.
7060 (store_motion_loop): Same.
7061 (store_motion): Same.
7062 (fill_always_executed_in): Same.
7063 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
7064 (estimated_unrolled_size): Same.
7065 (loop_edge_to_cancel): Same.
7066 (remove_exits_and_undefined_stmts): Same.
7067 (remove_redundant_iv_tests): Same.
7068 (unloop_loops): Same.
7069 (estimated_peeled_sequence_size): Same.
7070 (try_peel_loop): Same.
7071 (canonicalize_loop_induction_variables): Same.
7072 (canonicalize_induction_variables): Same.
7073 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
7075 (stmt_after_inc_pos): Same.
7076 (contains_abnormal_ssa_name_p): Same.
7077 (niter_for_exit): Same.
7080 (find_givs_in_bb): Same.
7081 (find_induction_variables): Same.
7082 (find_interesting_uses_cond): Same.
7083 (outermost_invariant_loop_for_expr): Same.
7084 (idx_find_step): Same.
7085 (add_candidate_1): Same.
7086 (add_iv_candidate_derived_from_uses): Same.
7087 (alloc_use_cost_map): Same.
7088 (prepare_decl_rtl): Same.
7089 (generic_predict_doloop_p): Same.
7090 (computation_cost): Same.
7091 (determine_common_wider_type): Same.
7092 (get_computation_aff_1): Same.
7093 (get_use_type): Same.
7094 (determine_group_iv_cost_address): Same.
7096 (difference_cannot_overflow_p): Same.
7097 (may_eliminate_iv): Same.
7098 (determine_set_costs): Same.
7099 (cheaper_cost_pair): Same.
7100 (compare_cost_pair): Same.
7101 (iv_ca_cand_for_group): Same.
7102 (iv_ca_recount_cost): Same.
7103 (iv_ca_set_remove_invs): Same.
7104 (iv_ca_set_no_cp): Same.
7105 (iv_ca_set_add_invs): Same.
7106 (iv_ca_set_cp): Same.
7107 (iv_ca_add_group): Same.
7109 (iv_ca_compare_deps): Same.
7110 (iv_ca_delta_reverse): Same.
7111 (iv_ca_delta_commit): Same.
7112 (iv_ca_cand_used_p): Same.
7113 (iv_ca_delta_free): Same.
7117 (iv_ca_extend): Same.
7118 (iv_ca_narrow): Same.
7119 (iv_ca_prune): Same.
7120 (cheaper_cost_with_cand): Same.
7121 (iv_ca_replace): Same.
7122 (try_add_cand_for): Same.
7123 (get_initial_solution): Same.
7124 (try_improve_iv_set): Same.
7125 (find_optimal_iv_set_1): Same.
7126 (create_new_iv): Same.
7127 (rewrite_use_compare): Same.
7128 (remove_unused_ivs): Same.
7129 (determine_scaling_factor): Same.
7130 * tree-ssa-loop-ivopts.h: Same.
7131 * tree-ssa-loop-manip.c (create_iv): Same.
7132 (compute_live_loop_exits): Same.
7133 (add_exit_phi): Same.
7134 (add_exit_phis): Same.
7135 (find_uses_to_rename_use): Same.
7136 (find_uses_to_rename_def): Same.
7137 (find_uses_to_rename_in_loop): Same.
7138 (rewrite_into_loop_closed_ssa): Same.
7139 (check_loop_closed_ssa_bb): Same.
7140 (split_loop_exit_edge): Same.
7142 (ip_normal_pos): Same.
7143 (copy_phi_node_args): Same.
7144 (gimple_duplicate_loop_to_header_edge): Same.
7145 (can_unroll_loop_p): Same.
7146 (determine_exit_conditions): Same.
7147 (scale_dominated_blocks_in_loop): Same.
7148 (niter_for_unrolled_loop): Same.
7149 (tree_transform_and_unroll_loop): Same.
7150 (rewrite_all_phi_nodes_with_iv): Same.
7151 * tree-ssa-loop-manip.h: Same.
7152 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
7153 (number_of_iterations_ne): Same.
7154 (assert_no_overflow_lt): Same.
7155 (assert_loop_rolls_lt): Same.
7156 (number_of_iterations_lt): Same.
7157 (adjust_cond_for_loop_until_wrap): Same.
7158 (tree_simplify_using_condition): Same.
7159 (simplify_using_initial_conditions): Same.
7160 (simplify_using_outer_evolutions): Same.
7161 (loop_only_exit_p): Same.
7162 (ssa_defined_by_minus_one_stmt_p): Same.
7163 (number_of_iterations_popcount): Same.
7164 (number_of_iterations_exit): Same.
7165 (find_loop_niter): Same.
7166 (finite_loop_p): Same.
7167 (chain_of_csts_start): Same.
7168 (get_val_for): Same.
7169 (loop_niter_by_eval): Same.
7170 (derive_constant_upper_bound_ops): Same.
7171 (do_warn_aggressive_loop_optimizations): Same.
7172 (record_estimate): Same.
7173 (get_cst_init_from_scev): Same.
7174 (record_nonwrapping_iv): Same.
7175 (idx_infer_loop_bounds): Same.
7176 (infer_loop_bounds_from_ref): Same.
7177 (infer_loop_bounds_from_array): Same.
7178 (infer_loop_bounds_from_pointer_arith): Same.
7179 (infer_loop_bounds_from_signedness): Same.
7180 (bound_index): Same.
7181 (discover_iteration_bound_by_body_walk): Same.
7182 (maybe_lower_iteration_bound): Same.
7183 (estimate_numbers_of_iterations): Same.
7184 (estimated_loop_iterations): Same.
7185 (estimated_loop_iterations_int): Same.
7186 (max_loop_iterations): Same.
7187 (max_loop_iterations_int): Same.
7188 (likely_max_loop_iterations): Same.
7189 (likely_max_loop_iterations_int): Same.
7190 (estimated_stmt_executions_int): Same.
7191 (max_stmt_executions): Same.
7192 (likely_max_stmt_executions): Same.
7193 (estimated_stmt_executions): Same.
7194 (stmt_dominates_stmt_p): Same.
7195 (nowrap_type_p): Same.
7196 (loop_exits_before_overflow): Same.
7197 (scev_var_range_cant_overflow): Same.
7198 (scev_probably_wraps_p): Same.
7199 (free_numbers_of_iterations_estimates): Same.
7200 * tree-ssa-loop-niter.h: Same.
7201 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
7202 (idx_analyze_ref): Same.
7203 (analyze_ref): Same.
7204 (gather_memory_references_ref): Same.
7205 (mark_nontemporal_store): Same.
7206 (emit_mfence_after_loop): Same.
7207 (may_use_storent_in_loop_p): Same.
7208 (mark_nontemporal_stores): Same.
7209 (should_unroll_loop_p): Same.
7210 (volume_of_dist_vector): Same.
7211 (add_subscript_strides): Same.
7212 (self_reuse_distance): Same.
7213 (insn_to_prefetch_ratio_too_small_p): Same.
7214 * tree-ssa-loop-split.c (split_at_bb_p): Same.
7215 (patch_loop_exit): Same.
7216 (find_or_create_guard_phi): Same.
7217 (easy_exit_values): Same.
7218 (connect_loop_phis): Same.
7219 (connect_loops): Same.
7220 (compute_new_first_bound): Same.
7222 (tree_ssa_split_loops): Same.
7223 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
7224 (is_maybe_undefined): Same.
7225 (tree_may_unswitch_on): Same.
7226 (simplify_using_entry_checks): Same.
7227 (tree_unswitch_single_loop): Same.
7228 (tree_unswitch_loop): Same.
7229 (tree_unswitch_outer_loop): Same.
7230 (empty_bb_without_guard_p): Same.
7231 (used_outside_loop_p): Same.
7232 (get_vop_from_header): Same.
7233 (hoist_guard): Same.
7234 * tree-ssa-loop.c (gate_oacc_kernels): Same.
7235 (get_lsm_tmp_name): Same.
7236 * tree-ssa-loop.h: Same.
7237 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
7238 (build_and_add_sum): Same.
7239 (no_side_effect_bb): Same.
7241 (linearize_expr): Same.
7242 (should_break_up_subtract): Same.
7243 (linearize_expr_tree): Same.
7244 * tree-ssa-scopedtables.c: Same.
7245 * tree-ssa-scopedtables.h: Same.
7246 * tree-ssa-structalias.c (condense_visit): Same.
7247 (label_visit): Same.
7248 (dump_pred_graph): Same.
7249 (perform_var_substitution): Same.
7250 (move_complex_constraints): Same.
7251 (remove_preds_and_fake_succs): Same.
7252 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
7253 (determine_bb_domination_status): Same.
7254 (duplicate_thread_path): Same.
7255 (thread_through_all_blocks): Same.
7256 * tree-ssa-threadupdate.h: Same.
7257 * tree-streamer-in.c (streamer_read_string_cst): Same.
7258 (input_identifier): Same.
7259 (unpack_ts_type_common_value_fields): Same.
7260 (unpack_ts_block_value_fields): Same.
7261 (unpack_ts_translation_unit_decl_value_fields): Same.
7262 (unpack_ts_omp_clause_value_fields): Same.
7263 (streamer_read_tree_bitfields): Same.
7264 (streamer_alloc_tree): Same.
7265 (lto_input_ts_common_tree_pointers): Same.
7266 (lto_input_ts_vector_tree_pointers): Same.
7267 (lto_input_ts_poly_tree_pointers): Same.
7268 (lto_input_ts_complex_tree_pointers): Same.
7269 (lto_input_ts_decl_minimal_tree_pointers): Same.
7270 (lto_input_ts_decl_common_tree_pointers): Same.
7271 (lto_input_ts_decl_non_common_tree_pointers): Same.
7272 (lto_input_ts_decl_with_vis_tree_pointers): Same.
7273 (lto_input_ts_field_decl_tree_pointers): Same.
7274 (lto_input_ts_function_decl_tree_pointers): Same.
7275 (lto_input_ts_type_common_tree_pointers): Same.
7276 (lto_input_ts_type_non_common_tree_pointers): Same.
7277 (lto_input_ts_list_tree_pointers): Same.
7278 (lto_input_ts_vec_tree_pointers): Same.
7279 (lto_input_ts_exp_tree_pointers): Same.
7280 (lto_input_ts_block_tree_pointers): Same.
7281 (lto_input_ts_binfo_tree_pointers): Same.
7282 (lto_input_ts_constructor_tree_pointers): Same.
7283 (lto_input_ts_omp_clause_tree_pointers): Same.
7284 (streamer_read_tree_body): Same.
7285 * tree-streamer.h: Same.
7286 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
7287 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
7288 (vect_analyze_possibly_independent_ddr): Same.
7289 (vect_analyze_data_ref_dependence): Same.
7290 (vect_compute_data_ref_alignment): Same.
7291 (vect_enhance_data_refs_alignment): Same.
7292 (vect_analyze_data_ref_access): Same.
7293 (vect_check_gather_scatter): Same.
7294 (vect_find_stmt_data_reference): Same.
7295 (vect_create_addr_base_for_vector_ref): Same.
7296 (vect_setup_realignment): Same.
7297 (vect_supportable_dr_alignment): Same.
7298 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
7299 (adjust_phi_and_debug_stmts): Same.
7300 (vect_set_loop_mask): Same.
7301 (add_preheader_seq): Same.
7302 (vect_maybe_permute_loop_masks): Same.
7303 (vect_set_loop_masks_directly): Same.
7304 (vect_set_loop_condition_masked): Same.
7305 (vect_set_loop_condition_unmasked): Same.
7306 (slpeel_duplicate_current_defs_from_edges): Same.
7307 (slpeel_add_loop_guard): Same.
7308 (slpeel_can_duplicate_loop_p): Same.
7309 (create_lcssa_for_virtual_phi): Same.
7311 (vect_update_ivs_after_vectorizer): Same.
7312 (vect_gen_vector_loop_niters_mult_vf): Same.
7313 (slpeel_update_phi_nodes_for_loops): Same.
7314 (slpeel_update_phi_nodes_for_guard1): Same.
7315 (find_guard_arg): Same.
7316 (slpeel_update_phi_nodes_for_guard2): Same.
7317 (slpeel_update_phi_nodes_for_lcssa): Same.
7318 (vect_do_peeling): Same.
7319 (vect_create_cond_for_alias_checks): Same.
7320 (vect_loop_versioning): Same.
7321 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
7322 (vect_inner_phi_in_double_reduction_p): Same.
7323 (vect_analyze_scalar_cycles_1): Same.
7324 (vect_fixup_scalar_cycles_with_patterns): Same.
7325 (vect_get_loop_niters): Same.
7326 (bb_in_loop_p): Same.
7327 (vect_get_max_nscalars_per_iter): Same.
7328 (vect_verify_full_masking): Same.
7329 (vect_compute_single_scalar_iteration_cost): Same.
7330 (vect_analyze_loop_form_1): Same.
7331 (vect_analyze_loop_form): Same.
7332 (vect_active_double_reduction_p): Same.
7333 (vect_analyze_loop_operations): Same.
7334 (neutral_op_for_slp_reduction): Same.
7335 (vect_is_simple_reduction): Same.
7336 (vect_model_reduction_cost): Same.
7337 (get_initial_def_for_reduction): Same.
7338 (get_initial_defs_for_reduction): Same.
7339 (vect_create_epilog_for_reduction): Same.
7340 (vectorize_fold_left_reduction): Same.
7341 (vectorizable_reduction): Same.
7342 (vectorizable_induction): Same.
7343 (vectorizable_live_operation): Same.
7344 (loop_niters_no_overflow): Same.
7345 (vect_get_loop_mask): Same.
7346 (vect_transform_loop_stmt): Same.
7347 (vect_transform_loop): Same.
7348 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
7349 (vect_determine_precisions): Same.
7350 (vect_pattern_recog_1): Same.
7351 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
7352 * tree-vect-stmts.c (stmt_vectype): Same.
7353 (process_use): Same.
7354 (vect_init_vector_1): Same.
7355 (vect_truncate_gather_scatter_offset): Same.
7356 (get_group_load_store_type): Same.
7357 (vect_build_gather_load_calls): Same.
7358 (vect_get_strided_load_store_ops): Same.
7359 (vectorizable_simd_clone_call): Same.
7360 (vectorizable_store): Same.
7361 (permute_vec_elements): Same.
7362 (vectorizable_load): Same.
7363 (vect_transform_stmt): Same.
7364 (supportable_widening_operation): Same.
7365 * tree-vectorizer.c (vec_info::replace_stmt): Same.
7366 (vec_info::free_stmt_vec_info): Same.
7367 (vect_free_loop_info_assumptions): Same.
7368 (vect_loop_vectorized_call): Same.
7369 (set_uid_loop_bbs): Same.
7370 (vectorize_loops): Same.
7371 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
7372 * tree.c (add_tree_to_fld_list): Same.
7373 (fld_type_variant_equal_p): Same.
7374 (fld_decl_context): Same.
7375 (fld_incomplete_type_of): Same.
7376 (free_lang_data_in_binfo): Same.
7377 (need_assembler_name_p): Same.
7378 (find_decls_types_r): Same.
7379 (get_eh_types_for_runtime): Same.
7380 (find_decls_types_in_eh_region): Same.
7381 (find_decls_types_in_node): Same.
7382 (assign_assembler_name_if_needed): Same.
7383 * value-prof.c (stream_out_histogram_value): Same.
7384 * value-prof.h: Same.
7385 * var-tracking.c (use_narrower_mode): Same.
7386 (prepare_call_arguments): Same.
7387 (vt_expand_loc_callback): Same.
7388 (resolve_expansions_pending_recursion): Same.
7389 (vt_expand_loc): Same.
7390 * varasm.c (const_hash_1): Same.
7391 (compare_constant): Same.
7392 (tree_output_constant_def): Same.
7393 (simplify_subtraction): Same.
7394 (get_pool_constant): Same.
7395 (output_constant_pool_2): Same.
7396 (output_constant_pool_1): Same.
7397 (mark_constants_in_pattern): Same.
7398 (mark_constant_pool): Same.
7399 (get_section_anchor): Same.
7400 * vr-values.c (compare_range_with_value): Same.
7401 (vr_values::extract_range_from_phi_node): Same.
7402 * vr-values.h: Same.
7403 * web.c (unionfind_union): Same.
7406 2019-07-09 Martin Sebor <msebor@redhat.com>
7409 * align.h: Change class-key from class to struct and vice versa
7410 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
7411 * alloc-pool.h: Same.
7412 * asan.c (shadow_mem_size): Same.
7413 * auto-profile.c: Same.
7414 * basic-block.h: Same.
7416 * cfgexpand.c (set_rtl): Same.
7417 (expand_one_stack_var_at): Same.
7421 * config/i386/i386.h: Same.
7422 * df-problems.c (df_print_bb_index): Same.
7424 * df.h (df_single_use): Same.
7425 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
7426 (layout::annotation_line_showed_range_p): Same.
7427 (get_printed_columns): Same.
7428 (correction::ensure_terminated): Same.
7429 (line_corrections::~line_corrections): Same.
7432 * dump-context.h: Same.
7434 * dwarf2out.c: Same.
7435 * edit-context.c: Same.
7436 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
7438 * function.c (assign_stack_local): Same.
7441 * gcov.c (block_info::block_info): Same.
7442 * genattrtab.c: Same.
7443 * genextract.c: Same.
7444 * genmatch.c (comparison_code_p): Same.
7445 (id_base::id_base): Same.
7446 (decision_tree::print): Same.
7447 * genoutput.c: Same.
7448 * genpreds.c (write_one_predicate_function): Same.
7449 * genrecog.c (validate_pattern): Same.
7450 (find_operand_positions): Same.
7451 (optimize_subroutine_group): Same.
7452 (merge_pattern_transition::merge_pattern_transition): Same.
7453 (merge_pattern_info::merge_pattern_info): Same.
7454 (merge_state_result::merge_state_result): Same.
7455 (merge_into_state): Same.
7456 * gensupport.c: Same.
7457 * gensupport.h: Same.
7458 * ggc-common.c (init_ggc_heuristics): Same.
7459 * ggc-tests.c (test_union): Same.
7460 * gimple-loop-interchange.cc (dump_induction): Same.
7461 * gimple-loop-versioning.cc: Same.
7462 * gimple-match.h (gimple_match_cond::any_else): Same.
7463 * gimple-ssa-backprop.c: Same.
7464 * gimple-ssa-sprintf.c: Same.
7465 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
7467 (store_immediate_info::store_immediate_info): Same.
7468 (merged_store_group::apply_stores): Same.
7469 (get_location_for_stmts): Same.
7470 * gimple-ssa-strength-reduction.c: Same.
7471 * gimple-ssa-warn-alloca.c: Same.
7472 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7473 * godump.c (go_type_decl): Same.
7474 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7476 * hash-set-tests.c (test_set_of_strings): Same.
7478 * hsa-common.h: Same.
7479 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
7480 * input.c (assert_loceq): Same.
7483 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
7484 * ipa-fnsummary.h: Same.
7485 * ipa-inline.h: Same.
7487 * ipa-split.c (visit_bb): Same.
7488 * ira-int.h (minmax_set_iter_next): Same.
7489 * loop-invariant.c: Same.
7491 * lra-eliminations.c: Same.
7493 * lra-lives.c (mark_regno_dead): Same.
7494 * lra-remat.c: Same.
7495 * lra-spills.c: Same.
7496 * lto-streamer.h: Same.
7497 * mem-stats.h: Same.
7498 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
7499 * omp-low.c (omp_clause_aligned_alignment): Same.
7500 * optabs-query.h (get_vcond_eq_icode): Same.
7502 * opts.c (wrap_help): Same.
7504 * predict.c (predict_paths_leading_to_edge): Same.
7505 * pretty-print.h: Same.
7506 * profile-count.h: Same.
7508 * read-rtl-function.c: Same.
7511 * regrename.c: Same.
7512 * regrename.h: Same.
7515 * rtl.h (costs_add_n_insns): Same.
7517 * sched-int.h: Same.
7518 * sel-sched-ir.h: Same.
7520 * sese.h (vec_find): Same.
7522 * target-globals.h: Same.
7523 * tree-affine.c (aff_combination_find_elt): Same.
7524 * tree-affine.h: Same.
7525 * tree-data-ref.h: Same.
7526 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
7527 * tree-predcom.c: Same.
7528 * tree-scalar-evolution.c (find_var_scev_info): Same.
7529 * tree-ssa-alias.h: Same.
7530 * tree-ssa-ccp.c: Same.
7531 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
7532 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
7533 (rewrite_mem_refs): Same.
7534 (execute_sm_if_changed): Same.
7535 (hoist_memory_references): Same.
7536 * tree-ssa-loop-ivopts.c (operator<=): Same.
7537 * tree-ssa-loop.h: Same.
7538 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
7539 * tree-ssa-structalias.c: Same.
7540 * tree-switch-conversion.h (cluster::cluster): Same.
7541 (simple_cluster::simple_cluster): Same.
7542 * tree-vect-patterns.c (type_conversion_p): Same.
7543 * tree-vectorizer.c (dump_stmt_cost): Same.
7544 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
7545 * tree.c (protected_set_expr_location): Same.
7546 * tree.h (desired_pro_or_demotion_p): Same.
7547 (fndecl_built_in_p): Same.
7548 * unique-ptr-tests.cc: Same.
7549 * var-tracking.c (delete_variable_part): Same.
7550 * varasm.c (assemble_real): Same.
7551 (tree_output_constant_def): Same.
7553 * wide-int-bitmask.h: Same.
7554 * wide-int.h (decompose): Same.
7556 2019-07-09 Richard Biener <rguenther@suse.de>
7558 PR tree-optimization/91114
7559 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7560 find a vector type isn't fatal.
7562 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7564 * config/aarch64/aarch64-simd.md
7565 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7566 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7567 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7568 (*aarch64_crypto_aese_fused,
7569 *aarch64_crypto_aesd_fused): Update to new definition.
7570 * config/aarch64/aarch64.c
7571 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7573 2019-07-09 Richard Biener <rguenther@suse.de>
7575 * gimple-match.h (gimple_match_op::resimplify): New.
7576 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7577 gimple_resimplify4, gimple_resimplify5): Remove.
7578 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7579 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7581 (gimple_match_op::resimplify): New.
7582 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7583 according to availability. Use gimple_match_op::resimplify.
7585 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7587 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7589 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7591 * config/arm/crypto.md:
7592 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7593 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7594 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7595 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7597 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7598 * config/arm/aarch-common-protos.h
7599 (aarch_crypto_can_dual_issue): Remove.
7600 * config/arm/aarch-common.c
7601 (aarch_crypto_can_dual_issue): Likewise.
7602 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7603 * config/arm/cortex-a53.md: Likewise.
7604 * config/arm/cortex-a57.md: Likewise.
7605 * config/arm/iterators.md:
7606 (CRYPTO_BINARY): Redefine.
7607 (CRYPTO_UNARY): Removed.
7608 (CRYPTO_AES, CRYPTO_AESMC): New.
7610 2019-07-09 Richard Biener <rguenther@suse.de>
7612 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7613 (vn_reference_lookup_3): If the main ref has no access path recorded
7614 but orig_ref has use it to do access-path based disambiguation.
7615 (vn_reference_lookup_pieces): Adjust.
7616 (vn_reference_lookup): Pass down original ref if we valueized.
7618 2019-07-09 Martin Liska <mliska@suse.cz>
7620 * doc/extend.texi: Document influence on loop
7623 2019-07-09 Martin Liska <mliska@suse.cz>
7625 * lto-compress.c (lto_normalized_zstd_level): Do not use
7626 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7627 of libzstd. One can use 0 as a default compression level.
7629 2019-07-09 Martin Liska <mliska@suse.cz>
7631 * doc/invoke.texi: Add link from -fprofile-dir option.
7632 Use better wording for 'gcno filename'.
7634 2019-07-08 Martin Sebor <msebor@redhat.com>
7638 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7640 (args_loc_t): New type.
7641 (args_loc_t, locmap_t): same.
7642 (diag_returned_locals): New function.
7643 (is_addr_local): Same.
7644 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7645 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7646 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7648 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7650 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7651 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7652 and casts in offset when different, both through gimple stmts
7653 and through trees. Rewritten using loops to minimize code duplication
7656 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7658 * emit-rtl.c (set_insn_locations): New function moved from...
7659 * function.c (set_insn_locations): ...here.
7660 * ira-emit.c (emit_moves): Propagate location of the first instruction
7661 to the inserted move instructions.
7662 * reg-stack.c (compensate_edge): Set the location if the sequence is
7663 inserted on the edge.
7664 * rtl.h (set_insn_locations): Declare.
7666 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7668 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7669 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7672 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7674 PR rtl-optimization/88233
7675 * common.opt (fsplit-wide-types-early): New option.
7676 * common/config/rs6000/rs6000-common.c
7677 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7679 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7680 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7681 flag_split_wide_types_early.
7682 (pass_data_lower_subreg3): New.
7683 (pass_lower_subreg3): New.
7684 (make_pass_lower_subreg3): New.
7685 * passes.def (pass_lower_subreg2): Move after the loop passes.
7686 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7687 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7688 the pass pipeline; its previous place is taken by ...
7689 (make_pass_lower_subreg3): ... this.
7691 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7693 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7694 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7696 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7698 * config/s390/constraints.md: Add new jsc constraint.
7699 * config/s390/predicates.md: New predicates.
7700 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7701 * config/s390/s390.c (s390_valid_shift_count): New function.
7702 (print_shift_count_operand): Use s390_valid_shift_count.
7703 (print_operand): Likewise.
7704 * config/s390/s390.md: Use new predicate.
7705 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7706 * config/s390/vector.md: Use new predicate.
7708 2019-07-08 Andrew Waterman <andrew@sifive.com>
7709 Jim Wilson <jimw@sifive.com>
7711 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7712 bitsize instead of BITS_PER_WORD.
7714 2019-07-08 Martin Liska <mliska@suse.cz>
7716 * collect2.c (defined): Revert to before r254460.
7717 (scan_prog_file): Revert to before r254460.
7719 2019-07-08 Richard Biener <rguenther@suse.de>
7721 PR tree-optimization/83518
7722 * tree-ssa-sccvn.c: Include splay-tree.h.
7723 (struct pd_range, struct pd_data): New.
7724 (struct vn_walk_cb_data): Add data to track partial definitions.
7725 (vn_walk_cb_data::~vn_walk_cb_data): New.
7726 (vn_walk_cb_data::push_partial_def): New.
7727 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7728 (vn_reference_lookup_2): When partial defs are registered give up.
7729 (vn_reference_lookup_3): Track partial defs for memset and
7730 constructor zeroing and for defs from constants.
7732 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7734 * doc/install.texi (bootstrap-Og): Document.
7736 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7738 * config/riscv/pic.md (*local_pic_load_s<mode>)
7739 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7740 referenced by <mode>, giving...
7741 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7742 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7743 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7744 use <X:MODE> for the mode attribute.
7746 2019-07-07 Jeff Law <law@redhat.com>
7748 PR tree-optimization/91090
7749 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7750 in handling of ranges to simplify switch statements.
7752 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7754 * config/darwin.c (darwin_override_options): Make a final check on PIC
7757 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7759 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7762 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7765 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7766 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7767 instead of matching them to "l" output operands.
7769 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7771 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7772 and check whether addr.reg is nonnull before using it.
7774 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7776 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7777 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7778 variable(s). For conditional lastprivate look through outer
7779 GIMPLE_OMP_SCAN context.
7780 (lower_omp_1): For conditional lastprivate look through outer
7781 GIMPLE_OMP_SCAN context.
7783 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7784 member to combined_into_simd_safelen1.
7785 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7786 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7787 clauses if ctx->combined_into_simd_safelen1 put statements after the
7788 predicate conditionalized block rather than into it.
7790 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7792 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7794 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7795 Make the choice of <mode> explicit, giving...
7796 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7798 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7800 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7801 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7803 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7804 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7805 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7806 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7807 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7808 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7809 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7810 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7811 (*avx512f_scatterdi<mode>): Likewise.
7812 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7814 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7816 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7817 specify the mode iterator referenced by <mode>, giving...
7818 (*push1_h8300hs_<QHI:mode>): ...this.
7820 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7822 * config/gcn/gcn-valu.md
7823 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7824 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7825 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7826 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7827 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7828 but using the _exec comparison patterns.
7829 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7830 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7831 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7832 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7833 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7834 but using the _exec comparison patterns.
7836 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7838 * config/arm/sync.md
7839 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7840 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7841 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7842 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7845 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7847 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7848 (maybe_lookup_ctx): Add forward declaration.
7849 (omp_find_scan): Likewise. Walk into body of simd if composited
7850 with worksharing loop.
7851 (scan_omp_simd_scan): New function.
7852 (scan_omp_1_stmt): Call it.
7853 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7854 ctx->for_simd_scan_phase.
7855 (lower_rec_input_clauses): Do much less work for inscan reductions
7856 in ctx->for_simd_scan_phase is_simd regions.
7857 (lower_omp_scan): Set is_simd also on simd constructs composited
7858 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7859 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7860 emit their body after in simd constructs composited with worksharing
7862 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7864 * omp-low.c (omp_find_scan): Make static.
7865 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7866 the second loop, var2 represents the first partial sum and so needs
7867 to go before rprivb[ivar].
7869 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7871 * config/rs6000/rs6000-logue.c: Remove unused code.
7873 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7875 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7877 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7880 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7881 check with a frame laid out check.
7883 2019-07-05 Richard Biener <rguenther@suse.de>
7885 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7886 when comparing against a store with possibly the same value.
7888 2019-07-05 Richard Biener <rguenther@suse.de>
7890 PR tree-optimization/91091
7891 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7892 (walk_non_aliased_vuses): Likewise.
7893 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7894 (get_continuation_for_phi): New tbaa_p parameter and pass
7896 (walk_non_aliased_vuses): Likewise.
7897 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7898 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7899 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7901 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7902 (adjust_offsets_for_equal_base_address): New function.
7903 (vn_reference_lookup_3): Use it to catch more base equivalences.
7904 Handle and pass down tbaa_p flag.
7905 (vn_reference_lookup_pieces): Adjust.
7906 (vn_reference_lookup): Remove alias-set altering, instead pass
7907 down false as tbaa_p.
7909 2019-07-05 Richard Biener <rguenther@suse.de>
7911 PR tree-optimization/91091
7912 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7913 accesses can happen with -fno-strict-aliasing.
7915 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7917 * tree-ssa-alias.c (alias_stats): Add
7918 nonoverlapping_component_refs_since_match_p_must_overlap.
7919 (dump_alias_stats): Print it.
7920 (nonoverlapping_component_refs_since_match_p): Add early exit.
7921 (nonoverlapping_component_refs_p): Do not account early exit.
7923 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7925 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7926 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7927 (emit_eh_dispatch): Delete.
7928 (lower_catch): Emit the eh_dispatch manually and set the location of
7929 the first catch statement onto it.
7930 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7931 (lower_eh_dispatch): Propagate location.
7932 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7933 (eliminate_build): Likewise.
7935 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7937 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7938 phi nodes if possible.
7939 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7940 location info on the newly created statement.
7941 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7942 newly created increment if needed.
7944 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7947 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7948 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7949 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7950 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7951 ctx->add_safelen1 is set.
7953 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7954 GOMP_loop_start at the start of second worksharing loop in a scan.
7955 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7956 worksharing loop in a scan even if there are conditional lastprivates,
7957 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7959 2019-07-04 Jan Hubicka <jh@suse.cz>
7961 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7962 Fix check for match in the ref walk.
7964 2019-07-04 Martin Liska <mliska@suse.cz>
7966 * tree-ssa-loop-niter.c
7967 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7968 (estimate_numbers_of_iterations):
7969 Support __builtin_expect_with_probability for analysis
7970 of # of loop iterations.
7972 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7974 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7975 * except.c: Likewise.
7976 * expr.c (expand_expr_real_1): Reject it.
7977 * gimplify.c (gimplify_expr): Gimplify it, within
7979 * tree-dump.c (dequeue_and_dump): Dump it.
7980 * tree-pretty-print.c (dump_generic_node): Likewise.
7981 * tree.c (block_may_fallthru): Handle it.
7982 * tree.def (EH_ELSE_EXPR): Introduce it.
7983 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7984 with GIMPLE_EH_ELSE as try/finally/else.
7986 2019-07-04 Richard Biener <rguenther@suse.de>
7989 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7990 parameter whether to disable GC collection.
7991 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7993 (execute_all_ipa_transforms): Likewise and pass it down.
7994 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7995 collection from applying IPA transforms.
7996 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7997 from applying IPA transforms.
7999 2019-07-04 Richard Biener <rguenther@suse.de>
8001 PR tree-optimization/90911
8002 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
8003 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
8004 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8005 scalar_loop_scaling.
8006 (vect_transform_loop): Scale scalar loop profile if needed.
8007 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
8008 the loop copy from if-conversion adjust edge probabilities
8009 and scale the vectorized loop body profile, queue the scalar
8010 profile for updating after peeling.
8012 2019-07-04 Jan Hubicka <jh@suse.cz>
8014 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
8015 parameters; return early for must-alias.
8016 (indirect_ref_may_alias_decl_p): Likewise; when establishing
8017 outer types match, try nonoverlapping_component_refs
8018 if must-alias is not obvious.
8019 (indirect_refs_may_alias_p): Likewise.
8020 (refs_may_alias_p_2): Likewise.
8022 2019-07-04 Richard Biener <rguenther@suse.de>
8024 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
8026 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
8028 (struct vn_walk_cb_data): New callback data struct.
8029 (vn_reference_lookup_2): Adjust.
8030 (vn_reference_lookup_3): Likewise.
8031 (vn_reference_lookup_pieces): Likewise.
8032 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
8033 (visit_reference_op_load): Adjust.
8035 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8037 PR tree-optimization/91063
8038 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
8039 stmt from stmts sequence before calling vect_init_vector_1.
8042 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8045 * fwprop.c (reg_single_def_p): New function.
8046 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
8047 (forward_propagate_into): New parameter reg_prop_only
8048 with default value false.
8049 Propagate def's src into loop only if SET_SRC and SET_DEST
8050 of def_set have single definitions.
8051 Likewise if reg_prop_only is set to true.
8052 (fwprop): New param fwprop_addr_p.
8053 Integrate fwprop_addr into fwprop.
8054 (fwprop_addr): Remove.
8055 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
8057 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
8058 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
8059 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
8061 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8063 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
8064 in worksharing loop scans.
8066 PR tree-optimization/91074
8067 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
8070 PR rtl-optimization/90756
8071 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
8074 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
8076 * config/aarch64/aarch64.md: Remove redundant constraints from
8077 define_expand but keep some patterns untouched if they are
8078 specially selected by TARGET_SECONDARY_RELOAD hook.
8079 * config/aarch64/aarch64-sve.md: Likewise.
8080 * config/aarch64/atomics.md: Remove redundant constraints from
8082 * config/aarch64/aarch64-simd.md: Likewise.
8084 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8086 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
8087 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
8088 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
8090 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
8093 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8095 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
8096 (STARTFILE_SPEC): Split crt3 into a separate spec.
8097 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
8098 (DARWIN_CRT2_SPEC): New.
8099 (DARWIN_CRT3_SPEC): New.
8100 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
8101 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
8102 (DARWIN_CRT3_SPEC): New.
8104 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
8106 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
8107 Change the RTL attribute "length" from "4" to "*" to allow the
8108 length attribute to be adjusted automatically for prefixed load,
8109 store, and add immediate instructions.
8110 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
8112 (extendsi<mode>2, EXTSI iterator): Likewise.
8113 (movsi_internal1): Likewise.
8114 (movsi_from_sf): Likewise.
8115 (movdi_from_sf_zero_ext): Likewise.
8116 (mov<mode>_internal): Likewise.
8117 (movcc_internal1, QHI iterator): Likewise.
8118 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
8119 (movsf_from_si): Likewise.
8120 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
8121 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
8122 (mov<mode>, FMOVE128 iterator): Likewise.
8123 (movdi_internal64): Likewise.
8124 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
8126 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
8127 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
8128 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
8129 (vsx_splat_v4sf): Likewise.
8131 2019-07-03 Mark Wielaard <mark@klomp.org>
8134 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
8135 DW_AT_addr_base if there is actually a .debug_addr section with
8137 (output_addr_table): Add DWARF5 table header generation here after
8138 checking there are actually any addresses from...
8139 (dwarf2out_finish): ...here.
8141 2019-07-03 Richard Biener <rguenther@suse.de>
8144 * match.pd (vec_perm -> bit_insert): Fix element read from
8147 2019-07-03 Martin Liska <mliska@suse.cz>
8149 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
8150 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
8152 * generic-match-head.c: Include dbgcnt.h.
8153 * gimple-match-head.c: Likewise.
8155 2019-07-03 Martin Liska <mliska@suse.cz>
8157 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
8158 (GCOV_COUNTER_V_TOPN): New.
8159 (GCOV_COUNTER_V_INDIR): Use _topn.
8160 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
8161 (GCOV_TOPN_VALUES): New.
8162 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
8163 (GCOV_TOPN_VALUES_COUNTERS): New.
8164 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
8166 (gimple_init_gcov_profiler): Rename variables from one_value
8168 (gimple_gen_one_value_profiler): Remove.
8169 (gimple_gen_topn_values_profiler): New function.
8170 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
8171 names instead of SINGLE_VALUE.
8172 (stream_out_histogram_value): Likewise.
8173 (stream_in_histogram_value): Likewise.
8174 (get_most_common_single_value): Likewise.
8175 (gimple_divmod_fixed_value_transform): Likewise.
8176 (gimple_stringops_transform): Likewise.
8177 (gimple_divmod_values_to_profile): Likewise.
8178 (gimple_stringops_values_to_profile): Likewise.
8179 (gimple_find_values_to_profile): Likewise.
8180 * value-prof.h (enum hist_type): Rename to TOPN.
8181 (gimple_gen_one_value_profiler): Remove.
8182 (gimple_gen_topn_values_profiler): New.
8184 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
8186 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
8187 if it has the DW_AT_data_member_location attribute.
8189 2019-07-03 Richard Biener <rguenther@suse.de>
8191 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
8194 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
8196 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
8197 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
8198 (tlsdesc_small_sve_<mode>): Likewise.
8200 2019-07-03 Martin Liska <mliska@suse.cz>
8202 * Makefile.in: Define ZSTD_LIB.
8203 * common.opt: Adjust compression level
8204 to support also zstd levels.
8205 * config.in: Regenerate.
8206 * configure: Likewise.
8207 * configure.ac: Add --with-zstd and --with-zstd-include options
8209 * doc/install.texi: Mention zstd dependency.
8210 * gcc.c: Print supported LTO compression algorithms.
8211 * lto-compress.c (lto_normalized_zstd_level): Likewise.
8212 (lto_compression_zstd): Likewise.
8213 (lto_uncompression_zstd): Likewise.
8214 (lto_end_compression): Dispatch in between zlib and zstd.
8215 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
8216 (lto_uncompression_zlib): Make it static.
8217 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
8218 * lto-section-in.c (lto_get_section_data): Pass info
8219 about used compression.
8220 * lto-streamer-out.c: By default use zstd when possible.
8221 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
8222 (TV_IPA_LTO_COMPRESS): Likewise for compression.
8224 2019-07-03 Martin Liska <mliska@suse.cz>
8226 * lto-section-in.c (lto_get_section_data): Add "lto" section.
8227 * lto-section-out.c (lto_destroy_simple_output_block): Never
8228 compress LTO_section_lto section.
8229 * lto-streamer-out.c (produce_asm): Do not set major_version
8231 (lto_output_toplevel_asms): Likewise.
8232 (produce_lto_section): New function.
8233 (lto_output): Call produce_lto_section.
8234 (lto_write_mode_table): Do not set major_version and
8236 (produce_asm_for_decls): Likewise.
8237 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
8239 (struct lto_header): Remove.
8240 (struct lto_section): New struct.
8241 (struct lto_simple_header): Do not inherit from lto_header.
8242 (struct lto_file_decl_data): Add lto_section_header field.
8244 2019-07-03 Martin Liska <mliska@suse.cz>
8246 * lra-eliminations.c (eliminate_regs_in_insn): Remove
8248 * reg-stack.c (check_asm_stack_operands): Likewise.
8249 * tree-ssa-structalias.c (create_function_info_for): Likewise.
8250 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8251 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
8254 2019-07-03 Martin Liska <mliska@suse.cz>
8256 PR tree-optimization/90892
8257 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
8258 in string constants.
8260 2019-07-03 Martin Liska <mliska@suse.cz>
8263 * multiple_target.c (create_dispatcher_calls): Add to comdat
8264 group only if set for ifunc.
8266 2019-07-03 Martin Liska <mliska@suse.cz>
8269 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
8270 Define local_object_name in outer scope in order to handle
8271 use-after-scope issue.
8273 2019-07-03 Martin Liska <mliska@suse.cz>
8275 * common.opt: Add fprofile-note.
8276 * coverage.c (coverage_init): Append the option
8278 * doc/invoke.texi: Document -fprofile-note.
8280 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8282 PR tree-optimization/91033
8283 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
8284 vect_analyze_data_refs): Add bool * arguments.
8285 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
8286 if failure is due to scatter/gather, set *fatal to false if non-NULL.
8287 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8288 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
8289 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
8290 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
8291 vect_analyze_data_refs caller.
8293 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
8295 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
8296 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
8297 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
8298 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8299 OMP_CLAUSE__SCANTEMP_ entry.
8300 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
8301 * tree-pretty-print.c (dump_omp_clause): Likewise.
8302 * tree-nested.c (convert_nonlocal_omp_clauses,
8303 convert_local_omp_clauses): Likewise.
8304 * omp-general.h (struct omp_for_data): Add have_scantemp and
8305 have_nonctrl_scantemp members.
8306 * omp-general.c (omp_extract_for_data): Initialize them.
8307 * omp-low.c (struct omp_context): Add scan_exclusive member.
8308 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
8309 result again with GF_OMP_FOR_KIND_MASK. Initialize also
8310 ctx->scan_exclusive.
8311 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
8312 of !ctx->scan_inclusive.
8313 (lower_rec_input_clauses): Simplify gimplification of dtors using
8314 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
8315 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
8316 loops. Don't add barrier for reduction_omp_orig_ref if
8317 ctx->scan_??xclusive.
8318 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
8319 (lower_omp_scan): Use ctx->scan_exclusive instead
8320 of !ctx->scan_inclusive. Handle worksharing loops with inscan
8321 reductions. Use new_vard != new_var instead of repeated
8322 omp_is_reference calls.
8323 (omp_find_scan, lower_omp_for_scan): New functions.
8324 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
8326 * omp-expand.c (expand_omp_scantemp_alloc): New function.
8327 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
8328 and fd->have_scantemp.
8330 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
8331 on worksharing loop propagate it as shared clause to containing
8334 * omp-expand.c (expand_omp_for_static_nochunk,
8335 expand_omp_for_static_chunk): For nowait worksharing loop with
8336 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
8339 2019-07-02 qing zhao <qing.zhao@oracle.com>
8341 PR preprocessor/90581
8342 * doc/cppopts.texi: Add document for -fmax-include-depth.
8343 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
8345 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
8347 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
8348 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
8349 (mmx_packssdw): Ditto.
8350 (mmx_punpckhbw): Ditto.
8351 (mmx_punpcklbw): Ditto.
8352 (mmx_punpckhwd): Ditto.
8353 (mmx_punpcklwd): Ditto.
8354 (mmx_punpckhdq): Ditto.
8355 (mmx_punpckldq): Ditto.
8356 (*vec_dupv4hi): Ditto.
8357 (*vec_dupv2si): Ditto.
8358 (mmx_pmovmskb): Ditto.
8359 * config/i386/sse.md (sse_cvtpi2ps): Use
8360 TARGET_SSE2 && SSE_REG_P in split condition.
8361 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
8362 TARGET_SSSE3 && SSE_REGNO_P in split condition.
8363 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
8364 (ssse3_pshufbv8qi3): Ditto.
8365 (ssse3_palignrdi): Ditto.
8367 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
8369 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
8370 with inlined save and restore.
8372 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
8374 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
8375 to be inserted on single successor edge of the entry block. Then call
8376 commit_edge_insertions instead of inserting the instructions manually.
8377 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
8378 RTL expansion and rebuild jump labels chain.
8380 2019-07-02 Richard Biener <rguenther@suse.de>
8382 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
8384 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8386 * tree.c (build_common_tree_nodes): Initialize them.
8387 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8388 Make declarations comments.
8389 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
8390 chrec_known): Remove definitions.
8391 (initialize_scalar_evolutions_analyzer): Remove.
8392 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
8393 * tree-streamer.c (preload_common_nodes): Do not preload
8394 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
8396 2019-07-02 Jan Hubicka <jh@suse.cz>
8398 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
8401 2019-07-02 Jan Hubicka <jh@suse.cz>
8403 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
8405 (nonoverlapping_component_refs_since_match_p): ... this one;
8406 handle also non-decl bases; return -1 if search gave up.
8407 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
8408 nonoverlapping_component_refs_of_decl_p_no_alias to
8409 nonoverlapping_component_refs_since_match_p_may_alias,
8410 nonoverlapping_component_refs_since_match_p_no_alias.
8411 (dump_alias_stats): Update dumping.
8412 (aliasing_matching_component_refs_p): Break out from ...;
8413 dispatch to nonoverlapping_component_refs_for_decl_p
8414 and nonoverlapping_component_refs_since_match_p.
8415 (aliasing_component_refs_p): ... here; call
8416 nonoverlapping_component_refs_p in scenarios where we can not
8417 precisely determine base match.
8418 (decl_refs_may_alias_p): Use
8419 nonoverlapping_component_refs_since_match_p.
8420 (indirect_ref_may_alias_decl_p): Do not call
8421 nonoverlapping_component_refs_p.
8422 (indirect_refs_may_alias_p): Likewise.
8424 2019-07-02 Jan Hubicka <jh@suse.cz>
8426 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
8427 to clobber of return value.
8429 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8431 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
8432 for is_neon_type instructions that have not already been categorized.
8434 2019-07-02 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/58483
8437 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
8438 for MEM_REF base hashing.
8439 (equal_mem_array_ref_p): Likewise for base comparison.
8441 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8443 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
8445 (signbit<mode>2): Use that name. Simplify.
8447 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
8450 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
8451 Tune heuristic from PR71016 to allow MIN / MAX.
8453 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8455 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
8457 (abs<mode>2): Use that name. Simplify.
8459 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8461 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
8463 (neg<mode>2): Use that name. Simplify.
8465 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8467 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8469 (abs<mode>2): Use that name. Simplify.
8471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8473 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8475 (neg<mode>2): Use that name. Simplify.
8477 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
8479 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
8480 ("enabled" attribute): Handle sse_noavx isa attribute.
8481 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
8482 Use TARGET_SSE && SSE_REGNO_P in split condition.
8483 (*vec_dupv2sf): Ditto.
8485 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8487 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
8489 (floatsi<mode>2): Use that name. Simplify.
8491 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8493 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
8495 (extenddf<mode>2_vsx): Make this a parameterized name.
8496 (extenddf<mode>2): Use those names. Simplify.
8498 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8500 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
8502 (eh_return): Use that name. Simplify.
8504 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8506 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
8507 (doloop_end): Use that name. Simplify.
8509 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8511 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
8513 (indirect_jump): Use that name. Simplify.
8515 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8517 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
8519 (abs<mode>2): Use that name. Simplify.
8521 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8523 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
8525 (fix_trunc<mode>si2): Use that name. Simplify.
8527 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8529 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
8530 (allocate_stack): Use that name. Simplify.
8532 2019-07-01 Martin Sebor <msebor@redhat.com>
8535 * hash-map.h (hash_map::put): On insertion invoke element ctor.
8536 (hash_map::get_or_insert): Same. Reformat comment.
8537 * hash-set.h (hash_set::add): On insertion invoke element ctor.
8538 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8539 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8540 * hash-table.h (hash_table::operator=): Prevent copy assignment.
8541 (hash_table::hash_table (const hash_table&)): Use copy ctor
8542 instead of assignment to copy elements.
8544 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
8545 John David Anglin <danglin@gcc.gnu.org>
8548 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8549 using saved frame pointer.
8551 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8554 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8555 Add frame clobber and schedule blockage.
8557 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8559 * doc/invoke.texi (Link Options): Further editorial changes to
8560 -flinker-output docs.
8562 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8564 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8565 Load both operands of a PLUS into registers separately.
8567 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8569 * config/s390/vector.md: Fix shift count operand printing.
8571 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8573 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8575 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8577 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8578 Use recog_data to test for an output operand.
8580 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8582 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8583 exclude any others that are disparaged or that are bound to need
8585 (ira_get_dup_out_num): Expand comment.
8587 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8589 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8590 constraint string for each operand/alternative combo. Only handle
8591 '%' at the start of constraint strings, and look for it outside
8594 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8596 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8597 alternative_mask instead of HARD_REG_SET to represent a
8598 bitmask of alternatives.
8599 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8600 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8602 2019-07-01 Martin Liska <mliska@suse.cz>
8604 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8605 use () for a constructor call.
8606 (test_applying_fixits_line_out_of_range): Likewise.
8607 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8609 (free_page): Likewise.
8611 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8613 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8614 parameter names to match usage (no functional change).
8615 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8617 2019-07-01 Richard Biener <rguenther@suse.de>
8619 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8621 (pass_fre::execute): Honor it.
8622 * passes.def: Adjust pass_fre invocations to allow iterating,
8623 add non-iterating pass_fre before late threading/dom.
8625 2019-07-01 Richard Biener <rguenther@suse.de>
8627 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8628 TARGET_MEM_REF handling to also handle address-taken ones.
8630 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8632 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8633 hardware attributes): Document avx512vp2intersect.
8635 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8637 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8638 (abs<mode>2): New expander.
8639 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8640 Use CODE_FOR_ssse3_absv8qi2.
8641 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8642 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8644 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8646 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8647 to sse, sse_noavx and avx. Update all uses.
8649 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8651 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8652 (*mmx_<plusminus_insn><mode>3): Ditto.
8653 (*mmx_mulv4hi3"): Ditto.
8654 (*mmx_smulv4hi3_highpart): Ditto.
8655 (*mmx_umulv4hi3_highpart): Ditto.
8656 (*mmx_pmaddwd): Ditto.
8657 (*sse2_umulv1siv1di3): Ditto.
8658 (*mmx_<code>v4hi3): Ditto.
8659 (*mmx_<code>v8qi3): Ditto.
8660 (mmx_ashr<mode>3): Ditto.
8661 ("mmx_<shift_insn><mode>3): Ditto.
8662 (*mmx_eq<mode>3): Ditto.
8663 (mmx_gt<mode>3): Ditto.
8664 (mmx_andnot<mode>3): Ditto.
8665 (*mmx_<code><mode>3): Ditto.
8666 (*mmx_pinsrw): Ditto.
8667 (*mmx_pextrw): Ditto.
8668 (mmx_pshufw_1): Ditto.
8669 (*mmx_uavgv8qi3): Ditto.
8670 (*mmx_uavgv4hi3): Ditto.
8671 ("mmx_psadbw): Ditto.
8672 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8673 (sse_cvttps2pi): Ditto.
8674 (ssse3_pmaddubsw): Ditto.
8675 (*ssse3_pmulhrswv4hi3): Ditto.
8676 (ssse3_psign<mode>3): Ditto.
8678 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8680 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8681 adjustment for bit-fields to all aggregate types.
8683 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8685 * config/rs6000/predicates.md (pcrel_address): Use
8686 SYMBOL_REF_LOCAL_P to determine if a label is local.
8687 (pcrel_external_address): New predicate.
8688 (non_prefixed_mem_operand): Delete, predicate not used.
8689 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8690 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8692 (SYMBOL_REF_PCREL_P): Likewise.
8695 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8697 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8698 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8699 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8701 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8703 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8704 override on extra_headers.
8706 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8708 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8709 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8711 (darwin_driver_init): Likewise.
8713 2019-06-28 Jan Beulich <jbeulich@suse.com>
8715 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8716 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8717 Eliminate redundant alternative.
8719 2019-06-28 Jan Beulich <jbeulich@suse.com>
8721 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8722 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8725 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8727 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8728 having a lower cost regardless of the speed option.
8730 2019-06-28 Jan Beulich <jbeulich@suse.com>
8732 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8733 vector_operand plus, on both alternatives, "Bm" constraint.
8735 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8737 * config/arm/arm.md: Remove redundant constraints from
8738 define_expand but leave reload_inm and reload_outm patterns
8739 untouched since they need special constraints to work.
8740 * config/arm/arm-fixed.md: Remove redundant constraints from
8742 * config/arm/iwmmxt.md: Likewise.
8743 * config/arm/neon.md: Likewise.
8744 * config/arm/sync.md: Likewise.
8745 * config/arm/thumb1.md: Likewise.
8746 * config/arm/vec-common.md: Likewise.
8748 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8750 * doc/install.texi: Document --disable-tm-clone-registry.
8752 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8755 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8758 PR tree-optimization/91010
8759 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8760 return true. Otherwise, don't call operand_equal_p if offset1 or
8761 offset2 is NULL and just return false.
8763 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8765 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8766 user-specified float mode choice for kernel mode code.
8768 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8770 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8773 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8775 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8776 use longcall for 64b code.
8778 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8780 * builtins.c (get_memory_rtx): Fix comment.
8781 * optabs.def (movmem_optab): Change to cpymem_optab.
8782 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8783 (emit_block_move_hints): Change movmem to cpymem.
8784 * defaults.h: Change movmem to cpymem.
8785 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8786 (default_use_by_pieces_infrastructure_p): Ditto.
8787 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8788 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8790 * config/aarch64/aarch64.h: Change movmem to cpymem.
8791 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8792 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8793 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8795 * config/arc/arc-protos.h: Change movmem to cpymem.
8796 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8797 * config/arc/arc.h: Change movmem to cpymem in comment.
8798 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8799 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8800 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8801 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8802 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8803 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8804 * config/avr/avr-protos.h: Change movmem to cpymem.
8805 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8806 avr_out_movmem): Change movmem to cpymem.
8807 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8808 Change movmem to cpymem.
8809 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8810 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8811 Change movmem to cpymem.
8812 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8813 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8814 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8815 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8816 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8817 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8818 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8819 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8820 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8821 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8822 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8823 expand_small_cpymem_or_setmem,
8824 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8825 expand_set_or_cpymem_constant_prologue,
8826 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8827 * config/i386/i386-protos.h: Change movmem to cpymem.
8828 * config/i386/i386.h: Change movmem to cpymem in comment.
8829 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8830 (setmem<mode>): Change expansion function name.
8831 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8832 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8833 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8834 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8835 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8836 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8837 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8839 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8840 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8841 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8842 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8843 Change movmem to cpymem.
8844 * config/mips/mips.h: Change movmem to cpymem.
8845 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8846 * config/nds32/nds32-memory-manipulation.c
8847 (nds32_expand_movmemsi_loop_unknown_size,
8848 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8849 nds32_expand_movmemsi_unroll,
8850 nds32_expand_movmemsi): Change movmem to cpymem.
8851 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8852 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8853 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8854 (pa_adjust_insn_length): Change call to compute_movmem_length.
8855 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8856 movmemdi, movmemdi_prereload,
8857 movmemdi_postreload): Change movmem to cpymem.
8858 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8859 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8860 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8861 * config/riscv/riscv.h: Change movmem to cpymem.
8862 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8863 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8864 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8866 * config/s390/s390-protos.h: Change movmem to cpymem.
8867 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8868 s390_expand_insv): Change movmem to cpymem.
8869 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8870 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8871 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8872 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8873 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8874 for nonexistent function.
8875 * config/vax/vax.h: Change movmem to cpymem in comment.
8876 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8877 * config/visium/visium.h: Change movmem to cpymem in comment.
8878 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8879 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8880 * doc/md.texi: Change movmem to cpymem and update description to match.
8881 * doc/rtl.texi: Change movmem to cpymem.
8882 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8883 * doc/tm.texi: Regenerate.
8885 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8888 -fvariable-expansion-in-unroller by default.
8889 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8892 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8895 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8896 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8898 * config.gcc(rs6000-*-*): Define target_gtfiles.
8900 2019-06-27 Jan Hubicka <jh@suse.cz>
8902 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8903 (add_type_duplicate): When odr hash is not allocated, to nothing.
8904 (odr_based_tbaa_p): New function.
8905 (set_type_canonical_for_odr_type): New function.
8906 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8907 set_type_canonical_for_odr_type): New.
8908 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8909 ODR based TBAA are not equivalent to non-ODR types.
8911 2019-06-27 Martin Liska <mliska@suse.cz>
8913 PR tree-optimization/90974
8914 PR rtl-optimization/90975
8915 PR rtl-optimization/90976
8917 PR tree-optimization/91017
8918 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8920 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8921 initial commit of IRA.
8922 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8924 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8925 Remove unused mode1.
8926 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8929 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8932 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8933 instead of register_operand for operands[1], add m to its constraints
8934 if operands[2] uses "C" constraint. Ensure in condition that if
8935 operands[2] is not 0, then operands[1] is not a MEM. For last two
8936 alternatives, use unaligned loads instead of aligned if operands[1] is
8939 2019-06-27 Martin Liska <mliska@suse.cz>
8941 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8943 * bt-load.c (move_btr_def): Likewise.
8944 * builtins.c (expand_builtin_apply_args_1): Likewise.
8945 (expand_builtin_apply): Likewise.
8946 * cfgexpand.c (expand_asm_stmt): Likewise.
8947 (construct_init_block): Likewise.
8948 * cfghooks.c (verify_flow_info): Likewise.
8949 * cfgloopmanip.c (remove_path): Likewise.
8950 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8951 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8952 * combine.c (simplify_if_then_else): Likewise.
8953 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8954 (choose_basereg): Likewise.
8955 (ix86_expand_prologue): Likewise.
8956 (ix86_preferred_output_reload_class): Likewise.
8957 * cselib.c (cselib_record_sets): Likewise.
8958 * df-scan.c (df_scan_alloc): Likewise.
8959 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8960 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8961 * emit-rtl.c (try_split): Likewise.
8962 * graphite-scop-detection.c (assign_parameter_index_in_region):
8964 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8965 * ira-color.c (setup_profitable_hard_regs): Likewise.
8966 * ira.c (rtx_moveable_p): Likewise.
8967 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8968 * read-rtl.c (read_subst_mapping): Likewise.
8969 * regrename.c (scan_rtx): Likewise.
8970 * reorg.c (fill_slots_from_thread): Likewise.
8971 * tree-inline.c (tree_function_versioning): Likewise.
8972 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8973 * tree-ssa-sink.c (statement_sink_location): Likewise.
8974 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8975 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8976 (vect_create_epilog_for_reduction): Likewise.
8977 * tree.c (build_nonstandard_integer_type): Likewise.
8979 2019-06-27 Richard Biener <rguenther@suse.de>
8981 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8983 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8985 PR tree-optimization/89772
8986 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8987 out-of-bound accesses checking.
8989 2019-06-27 Martin Liska <mliska@suse.cz>
8991 PR tree-optimization/91014
8992 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8993 when LHS is NULL_TREE.
8995 2019-06-27 Martin Liska <mliska@suse.cz>
8997 * symbol-summary.h (traverse): Pass
8998 argument a to the call of callback.
8999 (gt_ggc_mx): Mark arguments as unused.
9000 (gt_pch_nx): Likewise.
9002 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
9005 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
9008 2019-06-26 Jeff Law <law@redhat.com>
9010 PR tree-optimization/90883
9011 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
9012 (delete_dead_or_redundant_assignment): Likewise.
9014 PR tree-optimization/90883
9015 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
9016 * tree-ssa-dse.c: Update various comments to distinguish between
9017 dead and redundant stores.
9018 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
9019 (dse_optimize_redundant_stores): New function.
9020 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
9021 Distinguish between dead and redundant calls in dump output. All
9023 (delete_dead_or_redundant_assignment): Similarly for assignments.
9024 (dse_optimize_stmt): Handle _CHK variants. For statements which
9025 store 0 into multiple memory locations, try to prove a subsequent
9028 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
9031 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
9032 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
9034 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9036 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
9037 (branch_islands): New extern.
9038 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
9039 * config/rs6000/rs6000.c: .. here.
9041 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9043 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
9044 (powerpc*-*-*) ... to here.
9046 2019-06-26 Jeff Law <law@redhat.com>
9048 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
9049 memcpy, memmove and memset builtins.
9050 (maybe_trim_memstar_call): Likewise.
9052 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9054 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
9056 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9058 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9060 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9062 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
9064 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
9066 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
9069 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9071 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
9073 2019-06-26 Richard Biener <rguenther@suse.de>
9076 * tree-inline.c (remap_ssa_name): Copy SSA range info.
9078 2019-06-26 Richard Biener <rguenther@suse.de>
9080 * lto-streamer.h (lto_bitmap_alloc): Remove.
9081 (lto_bitmap_free): Likewise.
9082 * lto-streamer.c (lto_bitmap_alloc): Remove.
9083 (lto_bitmap_free): Likewise.
9084 (lto_obstack): Likewise.
9085 (lto_obstack_initialized): Likewise.
9086 * lto-streamer-out.c (lto_output): Use own obstack for local
9087 bitmap, free it consistently.
9089 2019-06-26 Jakub Jelinek <jakub@redhat.com>
9092 * config/i386/sse.md
9093 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
9094 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
9095 insns if operands[2] is misaligned_operand.
9097 2019-06-26 Li Jia He <helijia@linux.ibm.com>
9099 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
9101 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
9104 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9106 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
9108 2019-06-26 Martin Liska <mliska@suse.cz>
9110 PR tree-optimization/90973
9111 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
9112 epilogue_cost_vec instead of prologue_cost_vec for
9115 2019-06-26 Martin Liska <mliska@suse.cz>
9117 * bb-reorder.c (connect_better_edge_p): Add missing else
9118 statement in the middle of if-else statements.
9120 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
9121 H.J. Lu <hongjiu.lu@intel.com>
9122 Olga Makhotina <olga.makhotina@intel.com>
9124 * common/config/i386/i386-common.c
9125 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
9126 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
9127 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
9128 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
9129 (ix86_handle_option): Handle -mavx512vp2intersect.
9130 * config/i386/avx512vp2intersectintrin.h: New.
9131 * config/i386/avx512vp2intersectvlintrin.h: New.
9132 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
9133 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9135 * config/i386/i386-builtin-types.def: Add new types.
9136 * config/i386/i386-builtin.def: Add new builtins.
9137 * config/i386/i386-builtins.c: (enum processor_features): Add
9138 F_AVX512VP2INTERSECT.
9139 (static const _isa_names_table isa_names_table): Ditto.
9140 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9141 __AVX512VP2INTERSECT__.
9142 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
9143 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
9144 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
9145 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
9146 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
9147 * config/i386/i386-options.c (ix86_target_string): Add
9148 -mavx512vp2intersect.
9149 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
9150 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
9151 P2HImode and P2QImode.
9152 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
9153 number for P2QImode and P2HImode.
9154 (ix86_regmode_natural_size): New function.
9155 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
9156 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
9157 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
9158 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
9159 * config/i386/i386.opt: Add -mavx512vp2intersect.
9160 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
9161 avx512vp2intersectvlintrin.h.
9162 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
9163 (define_mode_iterator VI48_AVX512VP2VL): New.
9164 (avx512vp2intersect_2intersect<mode>,
9165 avx512vp2intersect_2intersectv16si): New define_insn patterns.
9166 * config.gcc: Add avx512vp2intersectvlintrin.h and
9167 avx512vp2intersectintrin.h to extra_headers.
9168 * doc/invoke.texi: Document -mavx512vp2intersect.
9170 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
9172 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
9174 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
9176 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
9177 savres_routine_syms, savres_routine_name, morestack_ref,
9178 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9179 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9180 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9181 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9182 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9183 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9184 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9185 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9186 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9187 get_stack_clash_protection_probe_interval,
9188 get_stack_clash_protection_guard_size,
9189 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9190 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9191 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9192 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9193 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9194 gen_frame_mem_offset, rs6000_savres_routine_name,
9195 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9196 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9197 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9198 rs6000_global_entry_point_prologue_needed_p,
9199 rs6000_get_separate_components, rs6000_components_for_bb,
9200 rs6000_disqualify_components, rs6000_emit_prologue_components,
9201 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9202 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9203 rs6000_output_savres_externs, rs6000_output_function_prologue,
9204 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9205 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9206 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9207 rs6000_output_function_epilogue, gen_add3_const,
9208 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9209 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9211 (machine_function): Moved to rs6000.h.
9212 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
9214 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
9215 savres_routine_syms, savres_routine_name, morestack_ref,
9216 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9217 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9218 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9219 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9220 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9221 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9222 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9223 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9224 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9225 get_stack_clash_protection_probe_interval,
9226 get_stack_clash_protection_guard_size,
9227 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9228 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9229 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9230 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9231 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9232 gen_frame_mem_offset, rs6000_savres_routine_name,
9233 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9234 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9235 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9236 rs6000_global_entry_point_prologue_needed_p,
9237 rs6000_get_separate_components, rs6000_components_for_bb,
9238 rs6000_disqualify_components, rs6000_emit_prologue_components,
9239 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9240 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9241 rs6000_output_savres_externs, rs6000_output_function_prologue,
9242 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9243 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9244 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9245 rs6000_output_function_epilogue, gen_add3_const,
9246 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9247 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9248 to here from rs6000.c.
9249 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
9250 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
9251 quad_address_offset_p) Moved to here from rs6000.c.
9252 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
9253 * config/config.gcc: Add new source file rs6000-logue.c to garbage
9256 2019-06-25 Martin Liska <mliska@suse.cz>
9258 * hash-table.c (hashtab_chk_error): Move here from ...
9259 * hash-table.h (hashtab_chk_error): ... here.
9261 2019-06-25 Martin Liska <mliska@suse.cz>
9263 PR tree-optimization/90978
9264 * df-scan.c (df_update_entry_block_defs): Remove dead else
9266 (df_update_exit_block_uses): Likewise.
9268 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
9269 Andrew Stubbs <ams@codesourcery.com>
9271 * config.gcc (thread_file): Set to gcn for AMD GCN.
9272 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
9273 (TARGET_EMUTLS_VAR_INIT): New hook.
9275 2019-06-25 Martin Jambor <mjambor@suse.cz>
9278 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
9280 2019-06-25 Richard Biener <rguenther@suse.de>
9282 PR tree-optimization/90930
9283 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
9284 into parallel form in the last pass instance.
9286 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
9288 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
9289 (arc_legitimize_pic_address): Simplify and cleanup the function.
9290 (SYMBOLIC_CONST): Remove.
9291 (prepare_pic_move): Likewise.
9292 (prepare_move_operands): Handle complex mov cases here.
9293 (arc_legitimize_address_0): Remove call to
9294 arc_legitimize_pic_address.
9295 (arc_legitimize_address): Remove call to
9296 arc_legitimize_tls_address.
9297 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
9298 (movhi_insn): Likewise.
9300 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9302 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
9304 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
9305 format of "__intN" types for UINTMAX_TYPE.
9306 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
9307 format of "__intN" types for SIZETYPE.
9308 * tree.c (build_common_tree_nodes): Accept "__intN__"
9309 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
9310 * doc/invoke.texi: Document that __intN__ disables pedantic
9313 2019-06-25 Jan Hubicka <jh@suse.cz>
9315 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
9316 base2_alias_set is non-zero before doing TBAA based disambiguation.
9318 2019-06-25 Martin Liska <mliska@suse.cz>
9320 PR tree-optimization/90973
9321 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
9322 of prologue and epilogue.
9324 2019-06-24 Jan Hubicka <jh@suse.cz>
9326 * ipa-utils.h (type_with_linkage_p): Verify that type is
9328 (odr_type_p): Remove extra return.
9329 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
9330 hash STRING_FLAG only for arrays and integers.
9331 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
9333 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9335 * print-tree.c (print_node): Print cxx-odr-p
9337 * tree.c (need_assembler_name_p): Also check that type
9339 (verify_type_variant): Update verification of SRING_FLAG;
9340 also check CXX_ODR_P.
9341 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
9342 (TYPE_STRING_FLAG): Use it.
9343 (TYPE_CXX_ODR_P): New macro.
9344 * dwarf2out.c (gen_array_type_die): First check that type
9345 is an array and then test string flag.
9347 2019-06-24 Richard Biener <rguenther@suse.de>
9349 PR tree-optimization/90972
9350 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
9351 in common code, dealing with STRING_CST properly.
9353 2019-06-24 Richard Biener <rguenther@suse.de>
9355 PR tree-optimization/90930
9356 PR tree-optimization/90316
9357 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
9360 2019-06-24 Martin Sebor <msebor@redhat.com>
9362 * tree-pretty-print.h: Remove unnecessary punctuation characters
9364 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
9366 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
9368 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
9369 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
9370 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
9372 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9374 * config/rs6000/darwin.h: Handle GCC target pragma.
9376 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9378 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
9380 2019-06-22 Jeff Law <law@redhat.com>
9382 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9384 2019-06-22 Jan Hubicka <jh@suse.cz>
9386 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
9387 give up on bitfields; continue searching for different refs
9390 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9392 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9393 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
9394 containing the offset as possible simd lane access. Look through
9395 widening conversion. Move the
9396 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
9398 2019-06-21 Richard Biener <rguenther@suse.de>
9400 PR tree-optimization/90930
9401 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
9402 flag on new stmts to avoid re-processing them.
9404 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
9406 PR c++/90875 - added -Wswitch-outside-range option
9407 * doc/invoke.texi (Wswitch-outside-range): Document.
9409 2019-06-21 Jeff Law <law@redhat.com>
9411 PR tree-optimization/90949
9412 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
9413 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
9415 2019-06-21 Richard Biener <rguenther@suse.de>
9418 * dwarf2out.c (prune_unused_types_walk): Always consider
9419 function-local extern declarations as used.
9421 2019-06-21 Richard Biener <rguenther@suse.de>
9423 PR tree-optimization/90913
9424 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
9425 the scalar variant of if-conversion versioning.
9427 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9429 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
9430 create another "omp scan inscan exclusive" array if
9431 !ctx->scan_inclusive.
9432 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
9433 (lower_omp_scan): Likewise.
9434 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
9435 2-bit bitfield for simd_lane_access_p member.
9436 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
9437 aux == (void *)-4 as simd lane access.
9438 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
9439 comment with permutations to show the canonical permutation order.
9440 (vectorizable_scan_store): Handle exclusive scan.
9441 (vectorizable_store): Call vectorizable_scan_store even for
9442 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
9444 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9445 "omp simd array" arrays with one byte elements.
9447 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
9449 * config/alpha/alpha.md (@unaligned_store<mode>):
9450 Rename from unaligned_store<mode>.
9451 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
9452 * config/alpha/sync.md (@load_locked_<mode>): Rename
9453 from load_locked_<mode>.
9454 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
9455 (@atomic_compare_and_swap<mode>_1): Rename
9456 from atomic_compare_and_swap<mode>_1.
9457 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
9458 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
9459 Use gen_reload_in_aligned and gen_unaligned_store.
9460 (emit_load_locked): Remove.
9461 (emit_store_conditional): Ditto.
9462 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
9463 (alpha_split_compare_and_swap): Ditto.
9464 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
9465 (alpha_split_compare_and_swap_12): Use gen_load_locked
9466 and gen_store_conditional.
9467 (alpha_split_atomic_exchange): Ditto.
9468 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9469 (alpha_split_atomic_exchange_12): Use gen_load_locked
9470 and gen_store_conditional.
9472 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9474 * config/aarch64/aarch64-errata.h: New file.
9475 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9476 (CA53_ERR_843419_SPEC): Delete.
9477 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
9478 * config/aarch64/aarch64-linux.h: Likewise.
9479 * config/aarch64/aarch64-netbsd.h: Likewise.
9480 * config/aarch64/aarch64-freebsd.h: Likewise.
9482 2019-06-20 Marek Polacek <polacek@redhat.com>
9484 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
9486 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
9488 * config/rs6000/rs6000.md (isa attribute): Add support for
9489 for a future processor.
9491 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
9494 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
9495 standard scalar operation pattern for V2DF.
9496 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
9497 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9498 (*ieee_<ieee_maxmin><mode>3): Likewise.
9499 (vec_setv2df_0): Likewise.
9501 2019-06-20 Jan Hubicka <jh@suse.cz>
9503 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
9504 parameter; it has no use in gimple memory model.
9505 (indirect_ref_may_alias_decl_p): Update.
9507 2019-06-20 Martin Liska <mliska@suse.cz>
9509 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
9512 2019-06-20 Jakub Jelinek <jakub@redhat.com>
9514 * tree-vect-stmts.c (enum scan_store_kind): New type.
9515 (scan_store_can_perm_p): Change last argument from int * to
9516 vec<enum scan_store_kind> *, record precisely which permutations
9517 need whole vector left shift or that plus VEC_COND_EXPR.
9518 (vectorizable_scan_store): Adjust caller, use whole vector left shift
9519 and additional VEC_COND_EXPR only for those iterations that need it.
9521 2019-06-20 Alexandre Oliva <oliva@adacore.com>
9523 * config.gcc: Fix ARM --with-fpu checking and error message.
9525 2019-06-19 Marek Polacek <polacek@redhat.com>
9527 PR c++/60364 - noreturn after first decl not diagnosed.
9528 * attribs.c (get_attribute_namespace): No longer static.
9529 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
9531 (attr_noreturn_exclusions): Make it extern.
9532 * attribs.h (get_attribute_namespace): Declare.
9533 * tree-inline.c (function_attribute_inlinable_p): Use
9536 2019-06-19 Martin Sebor <msebor@redhat.com>
9538 PR tree-optimization/90626
9539 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
9541 PR tree-optimization/90626
9542 * tree-ssa-strlen.c (strxcmp_unequal): New function.
9543 (handle_builtin_string_cmp): Call it.
9545 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9547 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9548 and DARWIN_NOPIE_SPEC.
9549 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9550 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9551 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9552 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9553 (DARWIN_EXPORT_DYNAMIC): Delete.
9554 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9555 and pie options processing to darwin.h.
9556 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9558 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9560 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9561 in computing the number of options to be moved.
9563 2019-06-19 Maya Rashish <coypu@sdf.org>
9565 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9566 (CLEAR_INSN_CACHE) Use it.
9568 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9570 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9572 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9575 * builtins.c (expand_builtin_setjmp_setup): Save
9576 hard_frame_pointer_rtx.
9577 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9579 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9581 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9583 (remove_reg_equal_offset_note): Remove unused function.
9584 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9586 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9587 (arc_builtin_setjmp_frame_value): Remove function.
9588 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9589 (avr_builtin_setjmp_frame_value): Remove function.
9590 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9591 (ix86_builtin_setjmp_frame_value): Remove function.
9592 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9593 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9594 (sparc_builtin_setjmp_frame_value): Remove function.
9595 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9596 (vax_builtin_setjmp_frame_value): Remove function.
9597 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9598 pointer if has_nonlocal_label.
9600 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9602 * doc/md.texi: Document vec_shl_<mode> pattern.
9603 * optabs.def (vec_shl_optab): New optab.
9604 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9605 argument, if == vec_shl_optab, check for left whole vector shift
9606 pattern rather than right shift.
9607 (expand_vec_perm_const): Add vec_shl_optab support.
9608 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9610 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9611 can be handled by vec_shl_optab.
9612 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9613 (check_scan_store): Use it.
9614 (vectorizable_scan_store): If target can't do normal permutations,
9615 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9617 * config/i386/sse.md (vec_shl_<mode>): New expander.
9619 * omp-low.c (lower_rec_input_clauses): Handle references properly
9621 (lower_omp_scan): Likewise.
9623 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9625 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9626 mem_mode is BLKmode.
9628 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9631 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9632 pointer adjustment for the case of no callee-saved registers and
9633 stack frame bigger than 128 bytes.
9635 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9638 * omp-low.c (check_omp_nesting_restrictions): Handle
9639 GF_OMP_TARGET_KIND_OACC_DECLARE.
9641 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9643 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9644 (@add<mode>3_carry): Rename from add<mode>3_carry.
9645 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9646 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9647 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9648 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9649 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9650 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9651 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9652 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9653 (cmpstrnsi): Use gen_cmp_1.
9654 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9655 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9656 (@umonitor_<mode>): Rename from umonitor_<mode>.
9657 * config/i386/i386-expand.c (ix86_expand_copysign):
9658 Use gen_copysign3_const and gen_copysign3_var.
9659 (ix86_expand_xorsign): Use gen_xorsign3_1.
9660 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9661 gen_sub3_carry_ccgz and gen_cmp1.
9662 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9663 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9664 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9665 (ix86_split_lshr): Ditto.
9666 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9668 2019-06-18 Jason Merrill <jason@redhat.com>
9670 * tree.c (build_constructor): Add MEM_STAT_DECL.
9672 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9674 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9675 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9676 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9677 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9678 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9679 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9680 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9681 Use CC_NZC instead of CC.
9682 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9683 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9684 (aarch64_print_operand): Handle E_CC_NZCmode.
9685 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9686 of gen_set_clobber_cc.
9688 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9690 * config/aarch64/aarch64-sve.md: Tabify file.
9692 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9694 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9695 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9696 * config/aarch64/aarch64-sve.md: Use it.
9698 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9700 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9701 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9702 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9703 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9704 (aarch64_expand_sve_vec_cmp_int): Use it.
9705 (aarch64_expand_sve_vec_cmp_float): Likewise.
9706 * config/aarch64/aarch64-sve.md: Likewise throughout.
9708 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9709 Kugan Vivekanandarajah <kuganv@linaro.org>
9711 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9712 (*cond_<optab><mode>_z): Fold into...
9713 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9714 operand 4 can be tied to operand 0 (either inherently or via RA).
9716 2019-06-18 Richard Biener <rguenther@suse.de>
9719 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9720 as if optimized away.
9722 2019-06-18 Tom de Vries <tdevries@suse.de>
9724 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9725 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9726 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9728 (define_insn "@set_softstack_<mode>"): ... this.
9729 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9730 (define_insn "@omp_simt_enter_<mode>"): ... this.
9731 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9732 (define_insn "@omp_simt_exit_<mode>"): ... this.
9734 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9736 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9737 vf parameter. Restore the previous iv step of nscalars_step,
9738 but give it iv_type rather than compare_type. Tweak code order
9739 to match the comments.
9740 (vect_set_loop_condition_masked): Update accordingly.
9741 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9742 for iv_precision. Tweak comment formatting.
9744 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9746 * config/darwin.c: Strip trailing whitespace.
9748 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9750 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9751 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9753 2019-06-18 Martin Jambor <mjambor@suse.cz>
9756 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9757 caller does not have flag_ipa_cp set.
9759 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9761 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9762 from "*fold_left_plus_<mode>", updated operands order.
9763 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9764 * internal-fn.c (mask_fold_left_direct): New define.
9765 (expand_mask_fold_left_optab_fn): Likewise.
9766 (direct_mask_fold_left_optab_supported_p): Likewise.
9767 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9768 * optabs.def (mask_fold_left_plus_optab): New optab.
9769 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9770 masked internal_fn for a reduction ifn.
9771 (vectorize_fold_left_reduction): Add support for masking reductions.
9773 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9776 * target.def (predict_doloop_p): New hook.
9777 * targhooks.h (default_predict_doloop_p): New declaration.
9778 * targhooks.c (default_predict_doloop_p): New function.
9779 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9780 * doc/tm.texi: Regenerate.
9781 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9782 (TARGET_PREDICT_DOLOOP_P): New macro.
9783 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9785 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9787 * omp-low.c (struct omp_context): Add scan_inclusive field.
9788 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9790 (struct omplow_simd_context): Add lastlane member.
9791 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9792 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9794 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9795 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9796 (lower_omp_scan): New function.
9797 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9798 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9799 check 3rd argument if present rather than 2nd.
9800 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9801 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9803 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9804 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9806 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9807 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9808 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9810 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9811 IFN_GOMP_SIMD_LANE argument.
9812 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9813 encoded ->aux value.
9814 * tree-vect-stmts.c: Include attribs.h.
9815 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9816 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9818 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9819 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9821 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9824 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9825 (*nabs<mode>2_1): Ditto.
9826 (nabs sse-reg splitter): New splitter.
9827 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9829 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9832 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9835 2019-06-17 Tom de Vries <tdevries@suse.de>
9837 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9838 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9839 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9841 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9843 (define_insn "omp_simt_enter_insn"): Rename to ...
9844 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9845 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9846 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9847 gen_omp_simt_enter_si.
9848 (define_expand "omp_simt_exit"): New.
9849 (define_insn "omp_simt_exit"): Rename to ...
9850 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9853 2019-06-17 Matthew Green <mrg@eterna.com.au>
9854 Maya Rashish <coypu@sdf.org>
9856 * config.gcc (aarch64*-*-netbsd*): New target.
9857 * config/aarch64/aarch64-netbsd.h: New file.
9858 * config/aarch64/t-aarch64-netbsd: Likewise.
9860 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9862 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9863 the access path from base to first VIEW_CONVERT_EXPR or
9866 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9868 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9869 access path on BIT_FIELD_REFs.
9871 2019-06-17 Martin Liska <mliska@suse.cz>
9874 * ipa-utils.h (odr_type_p): Remove dead code.
9876 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9878 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9879 alternative Solaris 11.4 format.
9880 * configure: Regenerate.
9882 2019-06-17 Tom de Vries <tdevries@suse.de>
9884 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9885 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9887 (define_insn "call_value_insn"): Rename to ...
9888 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9890 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9893 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9896 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9897 frame clobbers and schedule block.
9898 (builtin_longjmp): Likewise.
9900 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9902 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9903 describe how to perform MSPABI compliant 64-bit shift.
9904 * config/msp430/msp430.md (ashldi3): New define_expand.
9905 (ashrdi3): New define_expand.
9906 (lshrdi3): New define_expand.
9908 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9910 * doc/sourcebuild.texi: Document new effective target keyword
9913 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9915 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9916 indirect_refs_may_alias_p): Revert accidental commits.
9918 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9919 at the end of structures.
9921 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9923 * config/darwin.c (machopic_indirect_call_target): Use renamed
9924 darwin_picsymbol_stubs to decide on output.
9925 (darwin_override_options): Handle darwin_picsymbol_stubs.
9926 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9927 (LD64_VERSION): Revise default.
9928 * config/darwin.opt: (mpic-symbol-stubs): New option.
9929 (darwin_picsymbol_stubs): New variable.
9930 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9931 rename to TARGET_MACHO_PICSYM_STUBS.
9932 * config/i386/i386.c (output_pic_addr_const): Likewise.
9933 * config/i386/i386.h Likewise.
9934 * config/rs6000/darwin.h: Likewise.
9935 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9936 darwin_picsymbol_stubs.
9938 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9940 * config/darwin.opt (prebind, noprebind, seglinkedit,
9941 noseglinkedit): Add RejectNegative.
9943 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9945 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9946 in my previous patch.
9948 2019-06-16 Tom de Vries <tdevries@suse.de>
9950 PR tree-optimization/89376
9951 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9953 2019-06-15 Maya Rashish <coypu@sdf.org>
9955 * doc/invoke.texi (Spec Files): Update location of the
9958 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9960 * doc/extend.texi (Common Function Attributes): Clarify
9961 no_sanitize. Fix grammar.
9963 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9965 * tree-ssa-alias.c (alias_stats): Add
9966 nonoverlapping_component_refs_p_may_alias,
9967 nonoverlapping_component_refs_p_no_alias,
9968 nonoverlapping_component_refs_of_decl_p_may_alias,
9969 nonoverlapping_component_refs_of_decl_p_no_alias.
9970 (dump_alias_stats): Dump them.
9971 (nonoverlapping_component_refs_of_decl_p): Add stats.
9972 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9975 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9977 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9978 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9980 (*anddi3_doubleword): Split before reload. Merge with
9981 anddi->zext pre-reload splitter.
9982 (*andndi3_doubleword): Split before reload.
9983 (*<code>di3_doubleword): Ditto.
9984 (*one_cmpldi2_doubleword): Ditto.
9986 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9989 * gimplify.c: Include omp-offload.h and context.h.
9990 (gimplify_bind_expr): Add "omp declare target" attributes
9991 to static block scope variables inside of target region or target
9994 2019-06-15 Tom de Vries <tdevries@suse.de>
9996 PR tree-optimization/90009
9997 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9998 Return NULL if bb contains IFN_UNIQUE.
10000 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
10002 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
10003 (un): New define_mode_attr.
10004 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
10005 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
10006 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
10008 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
10010 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
10012 * config/darwin.opt: Add RejectNegative where needed, reorder
10013 and add minimal functional descriptions.
10015 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10017 PR rtl-optimization/90765
10018 * calls.c (update_stack_alignment_for_call): New function.
10019 (expand_call): Call update_stack_alignment_for_call when
10020 outgoing parameter is passed in the stack.
10021 (emit_library_call_value_1): Likewise.
10022 * function.c (locate_and_pad_parm): Don't update
10023 stack_alignment_needed and preferred_stack_boundary.
10025 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10028 * config/i386/i386-features.c
10029 (dimode_scalar_chain::compute_convert_gain): Replace
10030 mmxsse_to_integer with sse_to_integer.
10031 * config/i386/i386.c (ix86_register_move_cost): Verify that
10032 moves between MMX and non-MMX units require secondary memory.
10033 Correct costs of moves between SSE and integer units.
10034 * config/i386/i386.h (processor_costs): Rename cost of moving
10035 SSE register to integer to sse_to_integer. Rename cost of
10037 2019-06-14 Matt Thomas <matt@3am-software.com>
10038 Matthew Green <mrg@eterna.com.au>
10039 Nick Hudson <skrll@netbsd.org>
10040 Maya Rashish <coypu@sdf.org>
10041 Richard Earnshaw <rearnsha@arm.com>
10043 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
10044 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
10045 * config/arm/netbsd-eabi.h: New file.
10046 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
10048 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
10049 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
10050 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
10051 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
10053 2019-06-14 Richard Biener <rguenther@suse.de>
10055 * tree-loop-distribution.c (classify_partition): Return
10056 whether a reduction appeared in all partitions and do not
10057 stop builtin detection because of this.
10058 (distribute_loop): Sort a non-builtin partition last if
10059 there's a reduction in all partitions and make sure the
10060 partition prevailing as last is not a builtin.
10062 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
10065 * ipa-prop.c (add_to_agg_contents_list): New function.
10066 (clobber_by_agg_contents_list_p): Likewise.
10067 (extract_mem_content): Likewise.
10068 (get_place_in_agg_contents_list): Delete.
10069 (determine_known_aggregate_parts): Renamed from
10070 determine_locally_known_aggregate_parts. New parameter
10073 2019-06-13 Martin Sebor <msebor@redhat.com>
10075 PR tree-optimization/90662
10076 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
10079 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10082 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
10083 dbase is not TARGET_MEM_REF.
10085 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10087 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
10089 (and<mode>3): Use gen_extend_insn instead of indirect functions.
10090 Do not generate DImode extends for 32bit targets.
10091 (and->zext post-reload splitter): Use gen_extend_insn
10092 instead of indirect functions.
10093 (anddi->zext pre-reload splitter): New.
10094 (*zext<mode>_doubleword_and): Remove.
10095 (*zext<mode>_doubleword): Ditto.
10096 (*zextsi_doubleword): Dittto.
10098 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10100 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
10101 Use gen_sub3_insn instead of indirect function.
10102 (ix86_expand_ashl_const): Use gen_add2_insn instead of
10104 (ix86_adjust_counter): Ditto.
10106 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
10107 Lijia He <helijia@linux.ibm.com>
10109 PR tree-optimization/77820
10110 * tree-ssa-threadedge.c
10111 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
10113 (thread_across_edge): Add call to
10114 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
10116 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
10118 * config/darwin-driver.c (validate_macosx_version_min): New.
10119 (darwin_default_min_version): Cleanup and validate supplied version.
10120 (darwin_driver_init): Likewise and push cleaned version into opts.
10122 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10124 PR tree-optimization/90869
10125 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
10126 converts in MEM_REF referencing decl rather than view converts
10127 from decl type to MEM_REF type.
10129 2019-06-13 Richard Biener <rguenther@suse.de>
10131 PR tree-optimization/90856
10132 * tree-sra.c (build_ref_for_model): Only use
10133 build_reconstructed_reference when address-spaces are the same.
10135 2019-06-13 Jakub Jelinek <jakub@redhat.com>
10137 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
10138 wrap ei variable name in the declaration in ()s.
10139 (nvptx_single): Actually use mode_label variable. Formatting fix.
10141 2019-06-13 Richard Biener <rguenther@suse.de>
10143 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
10144 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
10145 also return the condition stmt.
10146 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
10147 loop we can version and version that, reusing the loop version
10148 created by if-conversion instead of versioning again.
10150 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
10152 * gimple-loop-versioning.cc (prune_loop_conditions): Use
10154 * tree-vrp (value_range_base::may_contain_p): Call into
10155 value_inside_range.
10156 (value_inside_range): Make private inside value_range_base class.
10157 Take min/max from *this.
10158 (range_includes_p): Remove.
10159 * tree-vrp.h (value_range_base): Add value_inside_range.
10160 (range_includes_p): Remove.
10161 (range_includes_zero_p): Call may_contain_p.
10162 * vr-values.c (compare_range_with_value): Same.
10164 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
10166 * doc/extend.texi (ARC Function Attributes): Update info.
10168 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
10170 PR tree-optimization/89713
10171 * doc/invoke.texi (-ffinite-loops): Document new option.
10172 * common.opt (-ffinite-loops): New option.
10173 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
10174 IFN_GOACC_LOOP calls as necessary.
10175 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
10177 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
10178 IFN_GOACC_LOOP call is not used.
10179 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
10181 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10184 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
10185 compare_type is not with Pmode size, we will create an IV with
10186 Pmode size with truncated use (i.e. converted to the correct type).
10187 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
10188 (vect_iv_limit_for_full_masking): New. Factored out of
10189 vect_set_loop_condition_masked.
10190 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
10191 (vect_iv_limit_for_full_masking): Declare.
10193 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10196 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
10197 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
10198 (get_alias_ptr_type_for_ptr_address): Likewise.
10199 (add_iv_candidate_for_use): Add scaled index candidate if useful.
10200 * tree-ssa-address.c (preferred_mem_scale_factor): New.
10201 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
10204 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10206 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
10208 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
10210 * common/config/pru/pru-common.c: New file.
10211 * config.gcc: Add PRU target.
10212 * config/pru/alu-zext.md: New file.
10213 * config/pru/constraints.md: New file.
10214 * config/pru/predicates.md: New file.
10215 * config/pru/pru-opts.h: New file.
10216 * config/pru/pru-passes.c: New file.
10217 * config/pru/pru-pragma.c: New file.
10218 * config/pru/pru-protos.h: New file.
10219 * config/pru/pru.c: New file.
10220 * config/pru/pru.h: New file.
10221 * config/pru/pru.md: New file.
10222 * config/pru/pru.opt: New file.
10223 * config/pru/t-pru: New file.
10224 * doc/extend.texi: Document PRU pragmas.
10225 * doc/invoke.texi: Document PRU-specific options.
10226 * doc/md.texi: Document PRU asm constraints.
10228 2019-06-12 Martin Sebor <msebor@redhat.com>
10230 PR middle-end/90676
10231 * tree-pretty-print.c (dump_mem_ref): New function. Include
10232 MEM_REF type in output when different size than operand.
10233 (dump_generic_node): Move code to dump_mem_ref and call it.
10235 2019-06-12 Martin Sebor <msebor@redhat.com>
10237 PR tree-optimization/90662
10238 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
10241 2019-06-12 Tom de Vries <tdevries@suse.de>
10243 PR tree-optimization/90009
10244 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
10246 2019-06-12 Martin Liska <mliska@suse.cz>
10248 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
10250 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
10251 * mem-stats.h (mem_alloc_description::mem_alloc_description):
10252 Do not sanitize created maps.
10254 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
10256 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
10257 value_range::singleton_p.
10258 * tree-vrp.c (value_range_constant_singleton): Remove.
10259 * tree-vrp.h (value_range_constant_singleton): Remove.
10260 * vr-values.c (vr_values::singleton): Use
10261 value_range::singleton_p.
10263 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10266 * cfgexpand.c (align_local_variable): Add really_expand argument,
10267 don't SET_DECL_ALIGN if it is false.
10268 (add_stack_var): Add really_expand argument, pass it through to
10269 align_local_variable.
10270 (expand_one_stack_var_1): Pass true as really_expand to
10271 align_local_variable.
10272 (expand_one_ssa_partition): Pass true as really_expand to
10274 (expand_one_var): Pass really_expand through to add_stack_var.
10276 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10278 * config/arm/iterators.md (VABAL): New int iterator.
10279 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
10280 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
10281 UNSPEC_VABAL_U values.
10283 2019-06-12 Martin Liska <mliska@suse.cz>
10285 * value-prof.c (stream_out_histogram_value): Only first value
10288 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10291 * symtab.c (symtab_node::set_section): Allow being called on aliases
10292 as long as they aren't analyzed yet.
10294 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
10296 * config/mips/mips.c (mips_final_postscan_insn): Modify call
10297 to `mips_set_text_contents_type' to indicate whether a
10298 non-debug insn follows.
10300 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
10302 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
10303 enabling -mpcrel by default.
10304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
10305 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
10306 that the test against -mcpu=future is done first. Then test if
10307 -mprefixed-addr is on for -mpcrel.
10308 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
10310 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10313 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
10314 instead of and.u%d.
10316 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10318 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
10320 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
10322 PR c++/90449 - add -Winaccessible-base option.
10323 * doc/invoke.texi (Winaccessible-base): Document.
10325 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10327 PR tree-optimization/62041
10328 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
10330 2019-06-11 Jason Merrill <jason@redhat.com>
10332 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
10333 * tree.c (get_tree_code_name): Likewise.
10334 * print-tree.c (print_node): Only briefly print a node with an
10337 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10340 * trans-mem.c (tm_memopt_compute_available): Add assertion
10341 that blocks is not empty. Formatting fix.
10343 2019-06-11 Martin Liska <mliska@suse.cz>
10346 * hash-table.h: Extend create_gcc, add one parameter
10347 that is passed into hash_table::hash_table.
10349 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
10351 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
10353 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10354 Emit clobber also for non-sse operations.
10355 (ix86_split_fp_absneg_operator): New function.
10356 * config/i386/i386.md (SSEMODEF): New mode iterator.
10357 (ssevecmodef): New mode attribute.
10358 (<code>tf2): Use absneg code iterator.
10359 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
10360 Add three-operand AVX alternatives.
10361 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
10362 Use absneg code iterator and X87MODEF mode iterator.
10363 (absneg fp_reg non-sse splitter): Call absneg code iterator
10364 and X87MODEF mode iterator.
10365 (absneg general_reg non-sse splitter): Use absneg code iterator
10366 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
10367 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
10368 code iterator. Add three-operand AVX alternative.
10369 (absneg sse_reg splitter): Use absneg code iterator
10370 and SSEMODEF mode iterator. Handle AVX operands.
10371 (absneg fp_reg splitter): Use absneg code iterator
10372 and MODEF mode iterator.
10373 (absneg general_reg splitter): Merge splitters using MODEF mode
10374 iterator. Use absneg code iterator. Call
10375 ix86_split_fp_absneg_operator.
10376 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
10377 Do not enable for non-sse modes before reload.
10378 (CSGNMODE): Remove.
10379 (CSGNVMODE): Ditto.
10380 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
10381 ssevecmodef mode attribute instaed of CSGNVMODE.
10382 (copysign<mode>3_const): Ditto.
10383 (copysign<mode>3_var): Ditto.
10384 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
10385 Use absneg code iterator. Simplify code using std::swap.
10386 * config/i386/predicates.md (absneg_operator): Remove.
10388 2019-06-10 Martin Sebor <msebor@redhat.com>
10390 * gimple-fold.c (get_range_strlen): Update comment that didn't
10391 make it into r267503 or related commits.
10393 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
10395 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
10396 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
10398 2019-06-10 Jakub Jelinek <jakub@redhat.com>
10400 * tree.def (OMP_SCAN): New tree code.
10401 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
10402 OMP_CLAUSE_EXCLUSIVE.
10403 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
10404 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
10405 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
10406 OMP_CLAUSE_{IN,EX}CLUSIVE.
10407 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10408 * tree-nested.c (convert_nonlocal_reference_stmt,
10409 convert_local_reference_stmt, convert_gimple_call): Handle
10411 * tree-pretty-print.c (dump_omp_clause): Handle
10412 OMP_CLAUSE_{IN,EX}CLUSIVE.
10413 (dump_generic_node): Handle OMP_SCAN.
10414 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
10415 * gimple.h (gomp_scan): New type.
10416 (is_a_helper <gomp_scan *>::test,
10417 is_a_helper <const gomp_scan *>::test): New templates.
10418 (gimple_build_omp_scan): Declare.
10419 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
10420 gimple_omp_scan_set_clauses): New inline functions.
10421 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
10422 * gimple.c (gimple_build_omp_scan): New function.
10423 (gimple_copy): Handle GIMPLE_OMP_SCAN.
10424 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
10425 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
10426 GIMPLE_OMP_TASKGROUP.
10427 (dump_gimple_omp_scan): New function.
10428 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
10429 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
10430 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
10431 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
10432 (is_gimple_stmt): Handle OMP_SCAN.
10433 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
10434 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10435 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
10436 mentioned in nested #pragma omp scan. Handle
10437 OMP_CLAUSE_{IN,EX}CLUSIVE.
10438 (gimplify_expr): Handle OMP_SCAN.
10439 * omp-low.c (check_omp_nesting_restrictions): For parent context,
10440 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
10442 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
10445 2019-06-10 Martin Liska <mliska@suse.cz>
10447 * ipa-cp.c (ignore_edge_p): New function.
10448 (build_toporder_info): Use it.
10449 * ipa-inline.c (ignore_edge_p): New function.
10450 (inline_small_functions): Use it.
10451 * ipa-pure-const.c (ignore_edge_for_nothrow):
10452 Verify opt_for_fn for caller and callee.
10453 (ignore_edge_for_pure_const): Likewise.
10454 * ipa-reference.c (ignore_edge_p): Extend to check
10456 * ipa-utils.c (searchc): Refactor.
10457 * ipa-utils.h: Fix coding style.
10459 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10461 * config/arc/arc.c (arc_rtx_costs): Update costs.
10463 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10465 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
10466 (arc_split_ior): Likewise.
10467 (arc_check_mov_const): Likewise.
10468 (arc_split_mov_const): Likewise.
10469 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10470 (arc_rtx_costs): Replace check Crr with Cax constraint.
10471 (prepare_move_operands): Cleanup, remove unused code.
10472 (arc_split_ior): New function.
10473 (arc_check_ior_const): Likewise.
10474 (arc_split_mov_const): Likewise.
10475 (arc_check_mov_const): Likewise.
10476 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
10477 in define_insn_and_split pattern.
10478 (iorsi3): Likewise.
10479 (mulsi3_v2): Add new matching variant.
10480 (andsi3_i): Cleanup pattern.
10481 (rotrsi3_cnt1): Update pattern.
10482 (rotrsi3_cnt8): New pattern.
10483 (ashlsi2_cnt8): Likewise.
10484 (ashlsi2_cnt16): Likewise.
10485 * config/arc/constraints.md (C0p): Update constraint.
10487 (C0x): New pattern.
10488 (Cax): New pattern.
10490 2019-06-10 Martin Liska <mliska@suse.cz>
10492 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
10493 Update coding style.
10494 (sem_item_optimizer::dump_cong_classes):
10495 Print how many items are in a non-singular class. Improve
10498 2019-06-10 Martin Liska <mliska@suse.cz>
10500 * value-prof.c (dump_histogram_value): Change dump format.
10501 (gimple_mod_subtract_transform): Remove legacy comment.
10503 2019-06-10 Martin Liska <mliska@suse.cz>
10505 * value-prof.c (dump_histogram_value): Print histogram values
10508 2019-06-10 Martin Liska <mliska@suse.cz>
10510 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
10511 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
10512 * ipa-profile.c (ipa_profile_generate_summary):
10513 Use get_most_common_single_value.
10514 * tree-profile.c (gimple_init_gcov_profiler):
10515 Instrument with __gcov_one_value_profiler_v2
10516 and __gcov_indirect_call_profiler_v4.
10517 * value-prof.c (dump_histogram_value):
10518 Print all values for HIST_TYPE_SINGLE_VALUE.
10519 (stream_out_histogram_value): Update assert for
10521 (stream_in_histogram_value): Set number of
10522 counters for HIST_TYPE_SINGLE_VALUE.
10523 (get_most_common_single_value): New.
10524 (gimple_divmod_fixed_value_transform):
10525 Use get_most_common_single_value.
10526 (gimple_ic_transform): Likewise.
10527 (gimple_stringops_transform): Likewise.
10528 (gimple_find_values_to_profile): Set number
10529 of counters for HIST_TYPE_SINGLE_VALUE.
10530 * value-prof.h (get_most_common_single_value): New.
10532 2019-06-10 Martin Liska <mliska@suse.cz>
10534 * hash-map.h: Pass default value to hash_table ctor.
10535 * hash-table.h: Add default value to call of a ctor.
10537 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
10539 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
10540 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
10542 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
10545 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10546 Call pa_output_function_label.
10547 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10548 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10549 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10551 (pa_linux_output_function_prologue): Declare.
10552 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10553 (pa_output_function_label): New.
10554 (pa_output_function_prologue): Revise to use pa_output_function_label.
10555 (pa_linux_output_function_prologue): New.
10556 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10558 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10560 * tree-vrp.h (value_range_base::intersect): New.
10561 (value_range::intersect_helper): Move from here...
10562 (value_range_base::intersect_helper): ...to here.
10563 * tree-vrp.c (value_range::intersect_helper): Rename to...
10564 (value_range_base::intersect_helper): ...this, and rewrite to
10565 return a value instead of modifying THIS in place.
10566 Also, move equivalence handling...
10567 (value_range::intersect): ...here, while calling intersect_helper.
10568 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10570 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10572 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10574 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10576 * Makefile.in (genprogerr): Add condmd.
10577 (genprog): Remove it here.
10579 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10581 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10583 2019-06-07 Richard Biener <rguenther@suse.de>
10586 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10587 that appear after user labels.
10589 2019-06-07 Martin Liska <mliska@suse.cz>
10591 * cselib.c (cselib_init): Disable hash table
10593 * hash-set.h: Pass new default argument to m_table.
10594 * hash-table.c: Add global variable with hash table
10595 sanitization limit.
10596 * hash-table.h (Allocator>::hash_table): Add new argument
10598 (hashtab_chk_error): New.
10599 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10600 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10601 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10603 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10605 * common.opt (flto-odr-type-merging): Ignore.
10606 * invoke.texi (-flto-odr-type-merging): Remove.
10607 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10608 (can_be_vtable_hashed_p): Remove.
10609 (hash_odr_vtable): Remove.
10610 (odr_vtable_hasher::hash): Remove.
10611 (types_same_for_odr): Remove.
10612 (types_odr_comparable): Remove.
10613 (odr_vtable_hasher::equal): Remove.
10614 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10615 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10616 (get_odr_type): Do not use vtable hash.
10617 (dump_odr_type): Remove commented out code.
10618 (build_type_inheritance_graph): Do not allocate vtable hash.
10619 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10620 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10621 (odr_type_p): Likewise.
10622 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10625 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10627 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10628 immediately after same_types_for_tbaa_p returns -1 and continue
10629 looking for possible exact match; if matching types are arrays
10630 watch for partial overlaps.
10631 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10632 (indirect_refs_may_alias_p): Do type based disambiguation first;
10635 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10637 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10639 2019-06-07 Martin Liska <mliska@suse.cz>
10641 * doc/invoke.texi: Remove param.
10642 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10644 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10645 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10646 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10647 * profile.c (instrument_values): Remove
10648 HIST_TYPE_INDIR_CALL_TOPN.
10649 * tree-profile.c (init_ic_make_global_vars):
10650 Always build __gcov_indirect_call only.
10651 (gimple_init_gcov_profiler): Remove usage
10652 of PARAM_INDIR_CALL_TOPN_PROFILE.
10653 (gimple_gen_ic_profiler): Likewise.
10654 * value-prof.c (dump_histogram_value): Likewise.
10655 (stream_in_histogram_value): Likewise.
10656 (gimple_indirect_call_to_profile): Likewise.
10657 (gimple_find_values_to_profile): Likewise.
10658 * value-prof.h (enum hist_type): Likewise.
10660 2019-06-07 Martin Liska <mliska@suse.cz>
10662 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10665 2019-06-07 Martin Liska <mliska@suse.cz>
10667 PR tree-optimization/78902
10668 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10669 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10670 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10671 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10672 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10673 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10674 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10675 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10676 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10677 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10678 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10679 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10680 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10682 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10683 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10684 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10685 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10686 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10687 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10688 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10689 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10690 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10691 warn_unused_result attribute.
10692 (BUILT_IN_STRDUP): Likewise.
10693 (BUILT_IN_STRNDUP): Likewise.
10694 (BUILT_IN_ALLOCA): Likewise.
10695 (BUILT_IN_CALLOC): Likewise.
10696 (BUILT_IN_MALLOC): Likewise.
10697 (BUILT_IN_REALLOC): Likewise.
10699 2019-06-06 Jim Wilson <jimw@sifive.com>
10702 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10703 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10704 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10706 2019-06-06 Martin Sebor <msebor@redhat.com>
10708 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10709 (handle_builtin_malloc): Remove trailing spaces.
10710 (handle_builtin_memset): Same.
10711 (handle_builtin_memcmp): Same.
10712 (compute_string_length): Same.
10713 (determine_min_objsize): Same.
10714 (handle_builtin_string_cmp): Same.
10715 (handle_char_store): Same. Break up excessively long line.
10717 2019-06-06 Martin Jambor <mjambor@suse.cz>
10719 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10722 2019-06-06 Martin Jambor <mjambor@suse.cz>
10724 * tree-sra.c (struct access): New field grp_same_access_path.
10725 (dump_access): Dump it.
10726 (build_reconstructed_reference): New function.
10727 (build_ref_for_model): Use it if possible.
10728 (path_comparable_for_same_access): New function.
10729 (same_access_path_p): Likewise.
10730 (sort_and_splice_var_accesses): Set the new flag.
10731 (analyze_access_subtree): Likewise.
10732 (propagate_subaccesses_across_link): Propagate zero value of the new
10733 flag down the access tree.
10735 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10737 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10738 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10739 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10740 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10743 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10745 PR tree-optimization/90332
10746 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10747 Handle VALS containing two vectors.
10748 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10750 (@aarch64_combinez<mode>): ... This.
10751 (*aarch64_combinez_be<mode>): Rename to...
10752 (@aarch64_combinez_be<mode>): ... This.
10753 (vec_init<mode><Vhalf>): New define_expand.
10754 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10756 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10758 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10759 library functions only when not optimizing for size.
10760 (ashlsi3): Likewise.
10761 (ashrhi3): Likewise.
10762 (ashrsi3): Likewise.
10763 (lshrhi3): Likewise.
10764 (lshrsi3): Likewise.
10766 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10768 PR rtl-optimization/88751
10769 * ira.c (ira): Use the number of the actually referenced registers
10770 when calculating the threshold.
10772 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10774 * configure: Regenerate.
10776 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10778 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10779 register if it is in memory, so the shift can be emulated with a rotate
10781 (ashrhi3): Likewise.
10782 (lshrhi3): Likewise.
10784 2019-06-06 Martin Liska <mliska@suse.cz>
10786 PR tree-optimization/87954
10787 * match.pd: Simplify mult where both arguments are 0 or 1.
10789 2019-06-06 Richard Biener <rguenther@suse.de>
10791 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10792 put equivalences on UNDEFINED ranges.
10793 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10794 Make sure to drop defs of stmts added during simplification
10797 2019-06-06 Richard Biener <rguenther@suse.de>
10799 * tree-ssa-structalias.c: Include tree-cfg.h.
10800 (make_heapvar): Do not make heap vars artificial.
10801 (find_func_aliases_for_builtin_call): Handle stack allocation
10803 (find_func_aliases): Delay processing of simple enough returns
10805 (set_uids_in_ptset): Adjust.
10806 (find_what_var_points_to): Likewise.
10807 (solve_constraints): Do not dump points-to sets here.
10808 (compute_points_to_sets): Post-process return statements,
10809 amending the escaped solution. Dump points-to sets afterwards.
10810 (ipa_pta_execute): Dump points-to sets.
10812 2019-06-06 Martin Liska <mliska@suse.cz>
10815 * doc/install.texi: Fix HTML headers and
10816 titles for 'Installing GCC' pages.
10818 2019-06-06 Martin Liska <mliska@suse.cz>
10820 * ipa-icf-gimple.h (dump_message_1): Remove.
10821 (dump_message): Likewise.
10822 (return_false_with_message_1): Print also file.
10823 (return_false_with_msg): Likewise.
10824 (return_with_result): Likewise.
10825 (return_with_debug): Likewise.
10826 * ipa-icf.c (sem_function::equals_private): Remove call
10829 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10831 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10832 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10833 memory operand for it.
10834 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10836 2019-06-05 Martin Sebor <msebor@redhat.com>
10838 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10839 Adjust quoting and hyphenation.
10840 * convert.c (convert_to_real_1): Same.
10841 * gcc.c (driver_wrong_lang_callback): Same.
10842 (driver::handle_unrecognized_options): Same.
10843 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10844 * opts-common.c (cmdline_handle_error): Same.
10845 (read_cmdline_option): Same.
10846 * opts-global.c (complain_wrong_lang): Same.
10847 (print_ignored_options): Same.
10848 (handle_common_deferred_options): Same.
10849 * pretty-print.h: Same.
10850 * print-rtl.c (debug_bb_n_slim): Same.
10851 * sched-rgn.c (make_pass_sched_fusion): Same.
10852 * tree-cfg.c (verify_gimple_assign_unary): Same.
10853 (verify_gimple_label): Same.
10854 * tree-ssa-operands.c (verify_ssa_operands): Same.
10855 * varasm.c (do_assemble_alias): Same.
10856 (assemble_alias): Same.
10858 2019-06-05 Richard Henderson <rth@twiddle.net>
10860 * config/alpha/alpha.c (direct_return): Move down after
10861 struct machine_function definition; use saved frame_size;
10863 (struct machine_function): Add sa_mask, sa_size, frame_size.
10864 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10865 (alpha_compute_frame_layout): ... new function.
10866 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10867 (alpha_initial_elimination_offset): Use saved sa_size.
10868 (alpha_vms_initial_elimination_offset): Likewise.
10869 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10870 (alpha_expand_prologue): Use saved frame data. Merge integer
10871 and fp register save loops.
10872 (alpha_expand_epilogue): Likewise.
10873 (alpha_start_function): Use saved frame data.
10874 * config/alpha/alpha-protos.h (direct_return): Update.
10875 (alpha_sa_size): Remove.
10877 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10879 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10880 multiplication by a power-of-two value.
10881 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10882 and turn the modulo operation into a masking operation.
10884 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10887 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10888 with VOIDmode inner operands.
10890 2019-06-05 Richard Biener <rguenther@suse.de>
10892 PR middle-end/90726
10893 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10894 turn an expression graph into a tree.
10896 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10898 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10900 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10901 treat it like explicit monotonic schedule modifier.
10902 (expand_omp_for): Initialize has_lastprivate_conditional.
10903 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10906 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10907 references, lookup in in hash map MEM_REF operand instead of the
10909 (lower_omp_1): When looking for lastprivate conditional assignments,
10910 handle MEM_REFs with REFERENCE_TYPE operands.
10912 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10913 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10914 and references a VLA. Handle references to non-VLAs if is_simd
10915 all privatization clauses like reductions.
10916 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10917 If omp_is_reference, use always omp simd arrays and set
10918 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10919 fails, emit reference initialization.
10921 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10924 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10925 _mm_mask_fpclass_sd_mask): New intrinsics.
10926 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10927 * config/i386/i386-builtin.def
10928 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10930 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10931 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10932 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10933 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10934 case QI_FTYPE_V2SF_INT): Ditto.
10935 * config/i386/sse.md
10936 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10937 Extended to insnstructions with mask operands.
10939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10941 * config/rs6000/constraints.md (define_register_constraint "wp"):
10943 (define_register_constraint "wq"): Delete.
10944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10945 (rs6000_init_hard_regno_mode_ok): Adjust.
10946 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10947 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10948 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10949 (define_mode_attr VSa): Delete.
10950 (define_mode_attr VSisa): New.
10951 (rest of file): Adjust.
10952 * doc/md.texi (Machine Constraints): Adjust.
10954 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10956 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10957 (define_attr "enabled"): Handle those new isa values.
10959 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10961 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10962 (define_mode_attr VSr5): Delete.
10963 (define_mode_attr VStype_sqrt): Delete.
10964 (define_mode_iterator VSX_SPDP): Delete.
10965 (define_mode_attr VS_spdp_res): Delete.
10966 (define_mode_attr VS_spdp_insn): Delete.
10967 (define_mode_attr VS_spdp_type): Delete.
10968 (*vsx_sqrt<mode>2): Adjust.
10969 (vsx_<VS_spdp_insn>): Delete, split to...
10970 (vsx_xscvdpsp): ... this. New. And...
10971 (vsx_xvcvspdp): ... this. New. And...
10972 (vsx_xvcvdpsp): ... this. New.
10974 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10976 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10978 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10979 (rest of file): Adjust.
10981 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10983 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10984 (vsx_extract_<mode>_var): Ditto.
10986 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10988 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10991 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10993 * config/rs6000/constraints.md (define_register_constraint "ww"):
10995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10996 (rs6000_init_hard_regno_mode_ok): Adjust.
10997 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10998 RS6000_CONSTRAINT_ww.
10999 * config/rs6000/rs6000.md: Adjust.
11000 * config/rs6000/vsx.md: Adjust.
11001 * doc/md.texi (Machine Constraints): Adjust.
11003 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11005 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
11006 (define_mode_attr sd): New.
11007 (define_mode_attr s): New.
11008 (define_mode_attr Ftrad): Delete.
11009 (define_mode_attr Fvsx): Delete.
11010 (define_mode_attr Fs): Delete.
11011 (rest of file): Use the new mode attributes.
11012 * config.rs6000/vsx.md: Use the new mode attributes.
11014 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11016 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
11019 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11021 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
11022 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
11023 used with VSX_B, VSX_D, or VSX_F, with just "wa".
11025 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
11028 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
11029 C++ with strict ANSI requirements.
11031 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
11033 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
11034 computations when step is 1.
11036 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11038 * config/rs6000/constraints.md (define_register_constraint "wf"):
11040 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11041 (rs6000_init_hard_regno_mode_ok): Adjust.
11042 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11043 RS6000_CONSTRAINT_wf.
11044 * config/rs6000/rs6000.md: Adjust.
11045 * config/rs6000/vsx.md: Adjust.
11046 * doc/md.texi (Machine Constraints): Adjust.
11048 2019-06-04 Andrew Pinski <apinski@marvell.com>
11050 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
11053 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11055 * config/rs6000/constraints.md (define_register_constraint "wd"):
11057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11058 (rs6000_init_hard_regno_mode_ok): Adjust.
11059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11060 RS6000_CONSTRAINT_wd.
11061 * config/rs6000/rs6000.md: Adjust.
11062 * config/rs6000/vsx.md: Adjust.
11063 * doc/md.texi (Machine Constraints): Adjust.
11065 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11067 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
11068 (rest of file): Adjust.
11070 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11072 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
11073 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
11074 (vsx_splat_<mode>_reg): Adjust.
11076 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11078 * config/rs6000/constraints.md (define_register_constraint "ws"):
11080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11081 (rs6000_init_hard_regno_mode_ok): Adjust.
11082 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11083 RS6000_CONSTRAINT_ws.
11084 * config/rs6000/rs6000.md: Adjust.
11085 * config/rs6000/vsx.md: Adjust.
11086 * doc/md.texi (Machine Constraints): Adjust.
11088 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11090 * config/rs6000/constraints.md (define_register_constraint "wv"):
11092 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11093 (rs6000_init_hard_regno_mode_ok): Adjust.
11094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11095 RS6000_CONSTRAINT_wv.
11096 * config/rs6000/rs6000.md: Adjust.
11097 * config/rs6000/vsx.md: Adjust.
11098 * doc/md.texi (Machine Constraints): Adjust.
11100 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11102 * config/rs6000/constraints.md (define_register_constraint "wi"):
11104 (define_register_constraint "wt"): Delete.
11105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11106 (rs6000_init_hard_regno_mode_ok): Adjust.
11107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11108 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
11109 * config/rs6000/rs6000.md: Adjust.
11110 * config/rs6000/vsx.md: Adjust.
11111 * doc/md.texi (Machine Constraints): Adjust.
11113 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11115 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
11117 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
11118 default_elf_asm_output_external.
11120 2019-06-04 Martin Liska <mliska@suse.cz>
11122 * ipa-icf.c (INCLUDE_LIST): Remove.
11123 (sem_item_optimizer::execute): Remove call to init_wpa.
11124 * ipa-icf.h (init_wpa): Remove.
11126 2019-06-04 Jakub Jelinek <jakub@redhat.com>
11128 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
11129 conditional on combined for simd.
11130 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
11132 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
11133 constructs, don't remove lastprivate_conditional_map, but instead set
11134 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
11135 to parent construct temporaries.
11136 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
11137 like !ctx->lastprivate_conditional_map.
11138 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
11139 use up->outer context instead of up.
11140 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
11141 gimple_omp_for_combined_p.
11142 (expand_omp_for_static_nochunk): Likewise.
11143 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
11144 probably moved over into expand_omp_for_generic rather than being copied
11147 2019-06-04 Martin Liska <mliska@suse.cz>
11149 * value-prof.c (dump_histogram_value): Fix typo.
11150 (gimple_mod_subtract_transform): Likewise.
11152 2019-06-04 Richard Biener <rguenther@suse.de>
11154 PR middle-end/90726
11155 * tree-chrec.c (chrec_contains_symbols): Add to visited.
11156 (tree_contains_chrecs): Likewise.
11157 (chrec_contains_symbols_defined_in_loop): Move here and avoid
11158 exponential behaivor from ...
11159 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11161 (expression_expensive_p): Avoid exponential behavior and compute
11162 expanded size, rejecting any expansion.
11163 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
11164 (idx_contains_abnormal_ssa_name_p): Likewise.
11165 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
11166 (contains_abnormal_ssa_name_p): Simplify and use
11167 walk_tree_without_duplicates.
11169 2019-06-04 Richard Biener <rguenther@suse.de>
11171 PR tree-optimization/90738
11173 2019-06-03 Richard Biener <rguenther@suse.de>
11175 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11176 full reference tree and record in ref->ref.
11177 (vn_reference_lookup_3): Pass in original ref to
11178 ao_ref_init_from_vn_reference.
11179 (vn_reference_lookup): Likewise.
11180 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11181 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11182 Handle non-decl bases in the original reference.
11184 2019-06-04 Martin Liska <mliska@suse.cz>
11186 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
11187 number of references.
11188 (sem_item_optimizer::do_congruence_step):
11189 (sem_item_optimizer::worklist_push): Dump how references
11191 (sem_item_optimizer::worklist_pop): Use heap.
11192 (sem_item_optimizer::process_cong_reduction): Likewise.
11193 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
11195 2019-06-04 Martin Liska <mliska@suse.cz>
11197 * ipa-icf.h (struct sem_usage_pair_hash): New.
11198 (sem_usage_pair_hash::hash): Likewise.
11199 (sem_usage_pair_hash::equal): Likewise.
11200 (struct sem_usage_hash): Likewise.
11201 * ipa-icf.c (sem_item::sem_item): Initialize
11202 referenced_by_count.
11203 (sem_item::add_reference): Register a reference
11204 in ref_map and not in target->usages.
11205 (sem_item::setup): Remove initialization of
11207 (sem_item::~sem_item): Remove usage of dead vectors.
11208 (sem_item::dump): Remove dump of references.
11209 (sem_item_optimizer::sem_item_optimizer): Initialize
11211 (sem_item_optimizer::read_section): Remove useless
11213 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
11214 (sem_item_optimizer::build_graph): Pass m_references
11215 to ::add_reference.
11216 (sem_item_optimizer::verify_classes): Remove usage of dead
11218 (sem_item_optimizer::traverse_congruence_split): Return true
11219 when a class is split.
11220 (sem_item_optimizer::do_congruence_step_for_index): Use
11221 hash_map for look up of (sem_item *, index). That brings
11222 significant speed up.
11223 (sem_item_optimizer::do_congruence_step): Return true
11224 when a split is done.
11225 (congruence_class::is_class_used): Use referenced_by_count.
11227 2019-06-04 Alan Modra <amodra@gmail.com>
11230 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
11233 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11235 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
11236 * config/rs6000/rs6000.c (direct_move_p): Adjust.
11237 (rs6000_secondary_reload_simple_move): Adjust.
11238 (rs6000_opt_masks): Neuter the "mfpgpr" option.
11239 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
11240 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
11243 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
11244 (floatunssi<mode>2_lfiwzx): Adjust.
11245 (fix_trunc<mode>si2_stfiwx): Adjust.
11246 (fixuns_trunc<mode>si2_stfiwx): Adjust.
11247 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
11248 (mfpgpr): Mark as deprecated.
11249 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
11250 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
11251 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
11253 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11255 * config/rs6000/constraints.md (define_register_constraint "wg"):
11257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11258 RS6000_CONSTRAINT_wg.
11259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11260 (rs6000_init_hard_regno_mode_ok): Adjust.
11261 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
11262 Delete "wg" alternatives.
11263 * doc/md.texi (Machine Constraints): Adjust.
11265 2019-06-03 Alan Modra <amodra@gmail.com>
11267 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
11268 (get_uncond_jump_length): Assert length less than INT_MAX and
11271 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11273 PR middle-end/64242
11274 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
11276 (expand_builtin_nonlocal_goto): Likewise.
11278 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11280 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
11281 (aarch64_asm_output_external): Declare.
11282 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
11283 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
11284 (aarch64_asm_output_alias): New.
11285 (aarch64_asm_output_external): New.
11286 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
11287 (ASM_OUTPUT_EXTERNAL): Define.
11289 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
11290 * tree-vrp.h (value_range_base::nonzero_p): New.
11291 (value_range_base::set_nonnull): Rename to...
11292 (value_range_base::set_nonzero): ...this.
11293 (value_range_base::set_null): Rename to...
11294 (value_range_base::set_zero): ...this.
11295 (value_range::set_nonnull): Remove.
11296 (value_range::set_null): Remove.
11297 * tree-vrp.c (range_is_null): Remove.
11298 (range_is_nonnull): Remove.
11299 (extract_range_from_binary_expr): Use value_range_base::*zero_p
11300 instead of range_is_*null.
11301 (extract_range_from_unary_expr): Same.
11302 (value_range_base::set_nonnull): Rename to...
11303 (value_range_base::set_nonzero): ...this.
11304 (value_range::set_nonnull): Remove.
11305 (value_range_base::set_null): Rename to...
11306 (value_range_base::set_zero): ...this.
11307 (value_range::set_null): Remove.
11308 (extract_range_from_binary_expr): Rename set_*null uses to
11310 (extract_range_from_unary_expr): Same.
11311 (union_helper): Same.
11312 * vr-values.c (get_value_range): Use set_*zero instead of
11314 (vr_values::extract_range_from_binary_expr): Same.
11315 (vr_values::extract_range_basic): Same.
11317 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11320 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
11322 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11324 * config/aarch64/iterators.md (MAX_OPP): New code attr.
11325 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
11327 (aarch64_<su>abd<mode>_3): ... This.
11328 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
11330 2019-06-03 Richard Biener <rguenther@suse.de>
11332 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11333 full reference tree and record in ref->ref.
11334 (vn_reference_lookup_3): Pass in original ref to
11335 ao_ref_init_from_vn_reference.
11336 (vn_reference_lookup): Likewise.
11337 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11338 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11339 Handle non-decl bases in the original reference.
11341 2019-06-03 Martin Liska <mliska@suse.cz>
11343 * doc/generic.texi: Remove Java Trees.
11345 2019-06-03 Martin Liska <mliska@suse.cz>
11347 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
11348 returns 0 when operands are equal.
11350 2019-06-03 Richard Biener <rguenther@suse.de>
11352 PR tree-optimization/90716
11353 * tree-loop-distribution.c (destroy_loop): Process blocks in
11356 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11359 * vector-builder.h (vector_builder::count_dups): New method.
11360 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
11362 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
11363 (vec_init<mode><Vel>): New pattern.
11364 * config/aarch64/aarch64.c (emit_insr): New function.
11365 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
11366 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
11367 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
11368 (aarch64_sve_expand_vector_init): Define two overloaded functions.
11370 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11372 PR tree-optimization/90681
11373 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
11374 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
11375 special case for SLP, but fail on non-groupped loads.
11377 2019-06-03 Martin Liska <mliska@suse.cz>
11379 * cfg.c (debug): Use TDF_DETAILS for debug and
11380 print edge info only once.
11382 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
11385 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
11387 2019-06-01 Martin Sebor <msebor@redhat.com>
11389 PR middle-end/90694
11390 * tree-pretty-print.c (dump_generic_node): Add parentheses.
11392 2019-05-31 Jan Hubicka <jh@suse.cz>
11394 * alias.c: Include ipa-utils.h.
11395 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
11396 * ipa-devirt.c (prevailing_odr_type): New.
11397 * ipa-utils.h (previaling_odr_type): Declare.
11399 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
11400 Hongtao Liu <hongtao.liu@intel.com>
11403 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
11404 NOTE_INSN_DELETED_LABEL check.
11406 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
11407 Robert Suchanek <robert.suchanek@mips.com>
11409 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
11410 and 3rd operands of the fmadd/fmsub/maddv builtin.
11412 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11414 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
11415 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11416 on OMP_SIMD if not nested inside of worksharing loop that also has
11417 lastprivate conditional clause for the same decl.
11418 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
11419 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
11421 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
11423 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
11425 (lower_lastprivate_clauses): Likewise.
11426 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
11427 calling lower_rec_input_clauses.
11428 (lower_omp_for): Likewise.
11429 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
11430 clause on simd construct.
11431 * omp-expand.c (expand_omp_simd): Initialize cond_var if
11432 OMP_CLAUSE__CONDTEMP_ clause is present.
11434 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
11437 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
11440 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
11441 TEX_D32, TEX_D64 or TEX_D128.
11443 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11445 * match.pd (~(vec?cst1:cst2)): New transformation.
11447 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11449 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
11450 ((size_t)(A /[ex] B) CMP C): New transformation.
11452 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
11454 * doc/md.texi: Document define_insn_and_rewrite.
11455 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
11456 * gensupport.c (queue_elem): Update comment.
11457 (replace_operands_with_dups): New function.
11458 (gen_rewrite_sequence): Likewise.
11459 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
11460 * read-rtl.c (apply_subst_iterator): Likewise.
11461 (add_condition_to_rtx, named_rtx_p): Likewise.
11462 (rtx_reader::read_rtx_operand): Likewise.
11463 * config/aarch64/aarch64-sve.md
11464 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
11465 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
11466 define_insn_and_rewrite.
11467 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11468 Remove separate define_split.
11470 2019-05-31 Jan Hubicka <jh@suse.cz>
11472 * tree-ssa-alias.c (type_has_components_p): New function.
11473 (aliasing_component_refs_p): Use it.
11475 2019-05-31 Martin Liska <mliska@suse.cz>
11477 * gdbhooks.py: Add const_tree to TreePrinter.
11479 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
11482 * common.opt (feliminate-unused-debug-symbols): Enable by default.
11483 * doc/invoke.texi (Debugging Options): Document new default of
11484 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
11486 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11488 PR tree-optimization/90671
11489 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
11490 template_block used to be empty on the first call, don't use
11491 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
11492 seq with bb_seq and set it with set_bb_seq.
11494 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
11496 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
11498 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11499 Michael Meissner <meissner@linux.ibm.com>
11501 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
11502 (prefixed_mem_operand): Likewise.
11503 (non_prefixed_mem_operand): Likewise.
11504 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
11506 * config/rs6000/rs6000.c (print_operand_address): Handle
11507 PC-relative addresses.
11508 (mode_supports_prefixed_address_p): New function.
11509 (rs6000_prefixed_address): New function.
11510 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
11511 (SYMBOL_REF_PCREL_P): Likewise.
11513 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11515 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
11516 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
11517 (gimplify_omp_for): If worksharing loop with lastprivate conditional
11518 is nested inside of parallel region, add _condtemp_ clause to both.
11519 * tree-nested.c (convert_nonlocal_omp_clauses,
11520 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
11522 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
11524 * omp-general.c (omp_extract_for_data): Compute it.
11525 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
11526 (lower_rec_input_clauses): Likewise.
11527 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
11528 clause is already present, just add one further one after it.
11529 (lower_lastprivate_clauses): Handle cond_ptr with array type.
11530 (lower_send_shared_vars): Clear _condtemp_ vars.
11531 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
11532 or section or taskgroup.
11533 * omp-expand.c (determine_parallel_type): Disallow combining only if
11534 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
11535 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
11536 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11537 expand_omp_for_static_chunk, expand_omp_for): Use
11538 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
11539 determine if a special set of API routines are needed and if condtemp
11540 needs to be initialized, while always initialize cond_var if
11541 fd->lastprivate_conditional is non-zero.
11543 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11544 Michael Meissner <meissner@linux.ibm.com>
11546 * config/rs6000/constraints.md (eI): New constraint.
11547 * config/rs6000/predicates.md (cint34_operand): New predicate.
11548 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11549 (SIGNED_34BIT_OFFSET_P): Likewise.
11550 * doc/md.texi (eI): Document constraint.
11552 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11554 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11556 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11557 Michael Meissner <meissner@linux.ibm.com>
11559 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11560 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11561 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11562 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11563 (OTHER_FUTURE_MASKS): Likewise.
11564 (POWERPC_MASKS): Likewise.
11565 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11566 specified without -mprefixed-addr or -mcpu=future. Error if
11567 -mprefixed-addr is specified without -mcpu=future.
11568 (rs6000_opt_masks): Add entry for prefixed-addr.
11569 * rs6000.opt (mprefixed-addr): New option.
11571 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11573 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11574 cfun->is_thunk check.
11576 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11578 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11581 2019-05-30 Martin Liska <mliska@suse.cz>
11583 * gdbinit.in: Fix 'ptc' command. Add trt
11584 that prints TREE_TYPE($).
11586 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11587 Alan Modra <amodra@gmail.com>
11589 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11591 (rs6000_indirect_call_template_1): ...and here.
11592 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11593 plt16_ha, plt16_lo, mtctr indirect calls. Use
11594 rs6000_pltseq_enum.
11595 (rs6000_decl_ok_for_sibcall): New function.
11596 (rs6000_function_ok_for_sibcall): Refactor.
11597 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11598 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11599 when pcrel. Reorganize.
11600 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11601 * rs6000.h (rs6000_pltseq_enum): New enum.
11602 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11603 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11604 (*pltseq_plt16_ha): Likewise.
11605 (*pltseq_plt16_lo): Likewise.
11606 (*pltseq_mtctr): Likewise.
11607 (*pltseq_plt_pcrel): New insn.
11608 (*call_local_aix): Handle @notoc calls.
11609 (*call_value_local_aix): Likewise.
11610 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11611 (*call_value_nonlocal_aix): Likewise.
11612 (*call_indirect_pcrel): New insn.
11613 (*call_value_indirect_pcrel): Likewise.
11615 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11617 * config/i386/sse.md (*save_multiple<mode>): Rename from
11618 save_multiple<mode>.
11619 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11620 (*restore_multiple_and_return<mode>): Rename from
11621 restore_multiple_and_return<mode>.
11622 (*restore_multiple_leave_return<mode>): Rename from
11623 restore_multiple_leave_return<mode>.
11625 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11627 * config.gcc (rx-*-linux*): New target.
11628 * config/rx/elf.opt: New file.
11629 * config/rx/linux.h: Likewise.
11630 * config/rx/t-linux: Likewise.
11631 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11633 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11634 (ASM_APP_OFF): Likewise.
11635 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11638 2019-05-29 Jan Hubicka <jh@suse.cz>
11640 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11641 variants are pointer equivalent.
11643 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11645 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11646 * config/aarch64/aarch64-sve2.md: New file.
11647 (<u>avg<mode>3_floor): New pattern.
11648 (<u>avg<mode>3_ceil): Likewise.
11649 (*<sur>h<addsub><mode>): Likewise.
11650 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11651 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11653 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11656 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11657 for var_opt_string printing. In cl_optimization_print_diff, print
11658 (null) instead of invoking undefined behavior if one of the
11659 var_opt_string pointers is NULL and use && instead of first || in the
11660 guarding condition. For var_target_other options, handle const char *
11661 target variables similarly to const char * optimize node variables.
11663 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11665 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11666 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11667 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11668 Add autib1716 and pacib1716 initialisation.
11669 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11670 for autib1716 and pacib1716.
11671 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11672 aarch64_post_cfi_startproc): Define.
11673 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11674 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11675 aarch64_handle_pac_ret_protection): Set default sign key to A.
11676 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11677 aarch64_expand_prologue): Add check for b-key.
11678 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11679 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11680 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11681 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11682 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11683 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11684 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11685 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11686 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11687 pauth_hint_num_a with pauth_hint_num.
11688 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11689 pauth_hint_num_a with pauth_hint_num.
11690 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11691 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11692 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11693 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11694 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11695 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11696 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11697 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11698 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11699 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11700 UNSPEC_AUTIA1716 respectively.
11701 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11702 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11703 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11704 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11705 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11706 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11708 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11710 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11711 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11712 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11713 explicit clause on combined parallel into implicit shared clause.
11714 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11715 and firstprivate if the decl has one too from combined parallel to
11716 the worksharing construct.
11718 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11719 Michael Meissner <meissner@linux.ibm.com>
11721 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11723 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11725 * rtl.h (LABEL_REF_P): New #define.
11727 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11729 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11731 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11733 * internal-fn.c: Marked mask_load_direct as vectorizable.
11734 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11735 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11736 combined even if masks different with allow_slp_p param.
11737 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11738 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11739 dissolve SLP-only vectorizable groups when SLP has been discarded.
11740 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11741 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11743 (vect_build_slp_tree_1): Fixed comment typo.
11744 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11745 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11746 loads for SLP only.
11747 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11749 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11751 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11753 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11754 Remove obsolete use_thunk reference.
11755 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11756 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11757 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11758 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11759 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11760 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11761 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11762 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11763 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11765 2019-05-28 Nathan Sidwell <nathan@acm.org>
11767 * tree.h (IDENTIFIER_ANON_P): New.
11768 (anon_aggrname_format, anon_aggname_p): Don't declare.
11769 (make_anon_name): Declare.
11770 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11771 (hash_tree): Likewise.
11772 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11773 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11774 (anon_cnt, make_anon_name): New.
11776 2019-05-28 Martin Liska <mliska@suse.cz>
11779 * opts-global.c (decode_options): Print help for all
11780 help_option_arguments.
11781 * opts.c (print_help): Add new argument.
11782 (common_handle_option): Remember all values into
11783 help_option_arguments.
11784 * opts.h (print_help): Add new argument.
11786 2019-05-28 Martin Liska <mliska@suse.cz>
11789 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11790 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11791 (func_checker::compare_bb): Call compare_loops.
11793 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11795 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11796 on sections construct.
11797 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11799 (lower_omp_sections): Handle lastprivate conditional.
11800 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11801 lastprivate_conditional_map.
11802 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11804 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11805 critical, taskgroup and section regions when looking for a region
11806 with non-NULL lastprivate_conditional_map.
11808 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11810 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11811 (*ix86_gen_sub3): Ditto.
11812 (*ix86_gen_sub3_carry): Ditto.
11813 (*ix86_gen_one_cmpl2): Ditto.
11814 (*ix86_gen_andsp): Ditto.
11815 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11816 (gen_and2_insn): New static function.
11817 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11818 Use gen_add3_insn instead of ix86_gen_add3.
11819 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11820 instead of ix86_gen_add3.
11821 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11822 Use gen_sub3_insn instead of ix86_gen_sub3.
11823 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11824 instead of ix86_gen_add3.
11825 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11826 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11827 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11828 * config/i386/i386-options.c (ix86_option_override_internal):
11829 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11830 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11832 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11834 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11835 and DW_OP_GNU_const_index opcodes.
11837 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11839 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11841 2019-05-27 Richard Biener <rguenther@suse.de>
11843 PR tree-optimization/90637
11844 * tree-ssa-sink.c (statement_sink_location): Honor the
11845 computed sink location for single-uses.
11847 2019-05-27 Richard Biener <rguenther@suse.de>
11849 PR middle-end/90610
11850 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11853 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11855 * config/i386/i386.md (@sub<mode>3_carry): Rename
11856 from sub<mode>3_carry.
11857 (@leave_<mode>): New expander.
11858 (*leave): Rename from leave.
11859 (*leave_rex64): Rename from leave_rex64.
11860 (@monitorx_<mode>): Rename from monitorx_<mode>.
11861 (@clzero_<mode>): Rename from clzero_<mode>.
11862 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11863 from sse3_monitor_<mode>.
11864 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11865 (*ix86_gen_leave): Ditto.
11866 (*ix86_gen_monitor): Ditto.
11867 (*ix86_gen_monitorx): Ditto.
11868 (*ix86_gen_clzero): Ditto.
11869 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11870 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11871 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11872 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11873 Use gen_sse3_monitor instead of ix86_gen_monitor.
11874 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11875 instead of ix86_gen_monitorx.
11876 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11877 instead of ix86_gen_clzero.
11878 * config/i386/i386-options.c (ix86_option_override_internal):
11879 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11880 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11882 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11884 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11885 Rename from tls_global_dynamic_64_<mode>.
11886 (@tls_local_dynamic_base_64_<mode>): Rename from
11887 tls_local_dynamic_base_64_<mode>.
11888 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11889 Remove indirect function.
11890 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11891 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11892 instead of ix86_gen_tls_global_dynamic_64.
11893 Use gen_tls_local_dynamic_base_64 instead of
11894 ix86_gen_tls_local_dynamic_base_64.
11895 * config/i386/i386-options.c (ix86_option_override_internal):
11896 Do not initialize ix86_gen_tls_global_dynamic_64 and
11897 ix86_gen_tls_local_dynamic_base_64.
11899 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11901 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11902 Rename from pro_epilogue_adjust_stack_<mode>_add.
11903 (@pro_epilogue_adjust_stack_sub_<mode>)
11904 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11905 (@allocate_stack_worker_probe_<mode>):
11906 Rename from allocate_stack_worker_probe_<mode>.
11907 (allocate_stack): Use gen_allocate_stack_worker_probe.
11908 (probe_stack): Use gen_probe_stack_1.
11909 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11910 (@adjust_stack_and_probe_<mode>): Rename from
11911 adjust_stack_and_probe<mode>.
11912 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11913 (stack_protect_set): Use gen_stack_protect_set_1.
11914 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11915 (stack_protect_test): Use gen_stack_protect_test_1.
11916 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11917 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11918 Remove indirect function.
11919 (*ix86_gen_adjust_stack_and_probe): Ditto.
11920 (*ix86_gen_probe_stack_range): Ditto.
11921 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11922 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11923 (ix86_adjust_stack_and_probe_stack_clash): Use
11924 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11925 (ix86_adjust_stack_and_probe): Ditto.
11926 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11927 of ix86_gen_probe_stack_range.
11928 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11929 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11930 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11931 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11932 CODE_FOR_stack_protect_test_{si,di}.
11933 * config/i386/i386-options.c (ix86_option_override_internal):
11934 Do not initialize ix86_gen_allocate_stack_worker,
11935 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11937 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11939 * doc/invoke.texi (Link Options): Many editorial changes around
11942 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11944 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11945 pre-Solaris 11 referene and most Studio compiler details.
11947 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11950 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11951 DImode to SImode in floating-point registers on 64-bit target.
11952 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11953 register_operand in xmpyu patterns.
11955 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11957 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11958 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11959 OMP_CLAUSE__REDUCTEMP_.
11960 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11961 OMP_CLAUSE__CONDTEMP_.
11962 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11963 * tree-pretty-print.c (dump_omp_clause): Likewise.
11964 * tree-nested.c (convert_nonlocal_omp_clauses,
11965 convert_local_omp_clauses): Likewise.
11966 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11967 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11968 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11970 (gimplify_omp_for): Warn and disable conditional modifier from
11971 lastprivate on loop iterators.
11972 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11974 * omp-general.c (omp_extract_for_data): Initialize it.
11975 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11977 (delete_omp_context): Delete it.
11978 (lower_lastprivate_conditional_clauses): New function.
11979 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11980 handle lastprivate conditional clauses.
11981 (lower_reduction_clauses): Add CLIST argument, emit it into
11982 the critical section if any.
11983 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11984 lower_reduction_clauses callers.
11985 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11986 to lower_lastprivate_clauses.
11987 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11988 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11989 clist into a critical section if not emitted there already by
11990 lower_reduction_clauses.
11991 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11993 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11994 conditional variables.
11995 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11997 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11998 expand_omp_for_static_chunk): Handle lastprivate conditional.
11999 (expand_omp_for): Handle fd.lastprivate_conditional like
12002 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12004 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
12005 kernel does not exit cleanly.
12006 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
12008 2019-05-24 Jason Merrill <jason@redhat.com>
12011 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12013 2019-05-24 Richard Biener <rguenther@suse.de>
12016 * tree-loop-distribution.c (struct partition): Add location
12018 (partition_alloc): Initialize all fields.
12019 (generate_memset_builtin): Use the location recorded in the
12020 partition for the generated call.
12021 (generate_memcpy_builtin): Likewise.
12022 (classify_partition): Record the location of a single store
12023 as location for the partition.
12025 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12027 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
12030 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
12033 * common/config/aarch64/aarch64-common.c
12034 (aarch64_rewrite_selected_cpu): Change local temporary variable
12035 type from unsigned long to uint64_t.
12036 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
12037 aarch64_get_extension_string_for_isa_flags): Change declaration to
12038 match new definition by replacing unsigned long with uint64_t.
12040 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12043 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
12044 gen_attr_type just once instead of 4-7 times. Formatting fixes.
12045 Handle stack_protect_test_<mode> codegen similarly to corresponding
12048 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
12050 * config/i386/darwin.h: Reject -mfentry*.
12051 * doc/sourcebuild.texi: Document mfentry target support.
12053 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12055 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
12056 Rename to rs6000_global_entry_point_prologue_needed_p. Return
12057 false for PC-relative functions.
12058 (rs6000_output_function_prologue): Change called function name to
12059 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
12060 name,1" for PC-relative functions.
12061 (rs6000_elf_declare_function_name): Change called function name to
12062 rs6000_global_entry_point_prologue_needed_p.
12064 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
12067 * config/i386/i386.c (gen_rtx_cost):
12068 Use ix86_tune_cost instead of ix86_cost.
12070 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12071 Michael Meissner <meissner@linux.ibm.com>
12072 Segher Boessenkool <segher@kernel.crashing.org>
12074 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
12076 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
12077 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
12078 (rs6000_fndecl_pcrel_p): Likewise.
12079 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
12080 error if -mpcrel is requested without -mcpu=future.
12081 (rs6000_opt_masks): Add entry for pcrel.
12082 (rs6000_fndecl_pcrel_p): New function.
12083 (rs6000_pcrel_p): Likewise.
12084 * config/rs6000/rs6000.opt (mpcrel): New option.
12085 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
12087 2019-05-23 Jan Hubicka <jh@suse.cz>
12088 Martin Liska <mliska@suse.cz>
12090 PR tree-optimization/90576
12091 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
12093 (aliasing_component_refs_p): Fix three way size compare conditional;
12094 give up earlier in case we can not decide on equivalence.
12096 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12097 Michael Meissner <meissner@linux.ibm.com>
12098 Segher Boessenkool <segher@kernel.crashing.org>
12100 * config.gcc: Add future cpu.
12101 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
12102 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
12104 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
12105 (RS6000_CPU): New instantiation for future cpu.
12106 * config/rs6000/rs6000-opts.h (enum processor_type): Add
12108 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
12109 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
12110 * config/rs6000/rs6000-tables.opt: Regenerate.
12111 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
12112 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
12113 (rs6000_machine_from_flags): Handle future cpu.
12114 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
12115 PROCESSOR_POWER9 for now.
12116 (rs6000_adjust_cost): Likewise.
12117 (rs6000_issue_rate): Likewise.
12118 (rs6000_register_move_cost): Likewise.
12119 (rs6000_opt_masks): Add entry for future.
12120 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
12121 (MASK_FUTURE): New #define.
12122 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
12123 * config/rs6000/rs6000.opt (mfuture): New target option.
12124 * doc/invoke.texi (mcpu): Add future cpu.
12126 2019-05-23 Martin Liska <mliska@suse.cz>
12129 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
12130 operation points to a temporary (pointed via tree_to_wide_ref)
12131 that is out of scope after the &.
12133 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
12136 * doc/extend.texi (Function Names): Add missing word.
12138 2019-05-23 Richard Biener <rguenther@suse.de>
12140 PR tree-optimization/88440
12141 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
12143 * tree-loop-distribution.c (generate_memset_builtin): Fold the
12145 (generate_memcpy_builtin): Likewise.
12146 (distribute_loop): Pass in whether to only distribute patterns.
12147 (prepare_perfect_loop_nest): Also allow size optimization.
12148 (pass_loop_distribution::execute): When optimizing a loop
12149 nest for size allow pattern replacement.
12151 2019-05-23 Jakub Jelinek <jakub@redhat.com>
12154 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
12157 2019-05-23 Martin Liska <mliska@suse.cz>
12160 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
12161 expression similarly to gimplify_decl_expr.
12163 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12165 * cse.c (cse_dump_path): s/dump_file/f.
12167 2019-05-22 David Malcolm <dmalcolm@redhat.com>
12170 * diagnostic-format-json.cc: Include "selftest.h".
12171 (json_from_expanded_location): Only add "file" key for non-NULL
12173 (json_from_location_range): Don't add "start" and "finish"
12174 children if they are UNKNOWN_LOCATION.
12175 (selftest::test_unknown_location): New selftest.
12176 (selftest::test_bad_endpoints): New selftest.
12177 (selftest::diagnostic_format_json_cc_tests): New function.
12178 * json.cc (json::object::get): New function.
12179 (selftest::test_object_get): New selftest.
12180 (selftest::json_cc_tests): Call it.
12181 * json.h (json::object::get): New decl.
12182 * selftest-run-tests.c (selftest::run_tests): Call
12183 selftest::diagnostic_format_json_cc_tests.
12184 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
12187 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12188 Andrew Stubbs <amd@codesourcery.com>
12190 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
12191 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
12192 (kernel): Rename to...
12193 (main_kernel): ... this.
12194 (load_image): Load _init_array and _fini_array kernels.
12195 (run): Add argument for kernel to run.
12196 (main): Run init_array_kernel before main_kernel, and
12197 fini_array_kernel after.
12198 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
12199 amdgpu_hsa_kernel attribute on functions.
12200 (gcn_disable_constructors): Delete.
12201 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
12202 * config/gcn/crt0.c (size_t): Define.
12203 (_init_array, _fini_array): New.
12204 (__preinit_array_start, __preinit_array_end,
12205 __init_array_start, __init_array_end,
12206 __fini_array_start, __fini_array_end): Declare weak references.
12208 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
12210 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
12212 2019-05-22 Jason Merrill <jason@redhat.com>
12214 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12216 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
12219 * config/i386/i386-options.c (ix86_init_machine_status): Set
12220 stack_frame_required to true.
12221 * config/i386/i386.c (ix86_get_frame_size): New function.
12222 (ix86_frame_pointer_required): Replace get_frame_size with
12223 ix86_get_frame_size.
12224 (ix86_compute_frame_layout): Likewise.
12225 (ix86_find_max_used_stack_alignment): Changed to void. Set
12226 stack_frame_required.
12227 (ix86_finalize_stack_frame_flags): Always call
12228 ix86_find_max_used_stack_alignment. Replace get_frame_size with
12229 ix86_get_frame_size.
12230 * config/i386/i386.h (machine_function): Add stack_frame_required.
12232 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
12234 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
12236 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
12238 * common/config/aarch64/aarch64-common.c
12239 (struct aarch64_option_extension, struct processor_name_to_arch,
12240 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
12241 aarch64_contains_opt,
12242 aarch64_get_extension_string_for_isa_flags): Change type of
12243 variables storing flags to uint64_t.
12244 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
12245 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
12246 * config/aarch64/aarch64.c (struct processor,
12247 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
12248 aarch64_validate_march, aarch64_override_options,
12249 aarch64_option_print, aarch64_handle_attr_isa_flags,
12250 aarch64_declare_function_name, aarch64_start_file): Make flag
12251 variables uint64_t.
12252 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
12253 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
12254 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
12255 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
12256 * config/aarch64/driver-aarch64.c
12257 (struct aarch64_arch_extension, struct aarch64_core_data,
12258 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
12259 flag variables uint64_t.
12260 * doc/invoke.texi: Add documentation for new arguments.
12262 2019-05-22 Richard Biener <rguenther@suse.de>
12264 * alias.c (ao_ref_from_mem): Move stack-slot sharing
12266 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
12268 2019-05-22 Martin Liska <mliska@suse.cz>
12271 * doc/extend.texi: Document the change.
12273 2019-05-22 Richard Biener <rguenther@suse.de>
12275 PR tree-optimization/90450
12276 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
12277 (mem_ref_hasher::equal): Check it.
12278 (mem_ref_alloc): Initialize it.
12279 (gather_mem_refs_stmt): Set it.
12281 2019-05-22 Richard Biener <rguenther@suse.de>
12283 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
12285 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
12288 2019-05-22 Alan Modra <amodra@gmail.com>
12290 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
12291 (ASM_CPU_SPEC): Conditionally add -many.
12292 * config/rs6000/rs6000.c (rs6000_machine): New static var.
12293 (rs6000_machine_from_flags, emit_asm_machine): New functions..
12294 (rs6000_file_start): ..extracted from here, and modified to
12296 (rs6000_output_function_prologue): Emit .machine as necessary.
12298 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
12300 PR middle-end/90553
12301 * ira-lives.c (process_bb_node_lives): Consider defs
12302 for a call insn to be die before the call, not after.
12304 * function.c (assign_parm_setup_block): Raise alignment of
12305 stacked parameter only for STRICT_ALIGNMENT targets.
12307 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12309 * config/rs6000/constraints.md (define_register_constraint "wz"):
12311 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12312 RS6000_CONSTRAINT_wz.
12313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12314 (rs6000_init_hard_regno_mode_ok): Adjust.
12315 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
12316 * doc/md.texi (Machine Constraints): Adjust.
12318 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12320 * config/rs6000/constraints.md (define_register_constraint "wl"):
12322 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12323 RS6000_CONSTRAINT_wl.
12324 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12325 (rs6000_init_hard_regno_mode_ok): Adjust.
12326 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
12327 * doc/md.texi (Machine Constraints): Adjust.
12329 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12331 * config/rs6000/constraints.md (define_register_constraint "wm"):
12333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12334 RS6000_CONSTRAINT_wm.
12335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12336 (rs6000_init_hard_regno_mode_ok): Adjust.
12337 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
12338 * doc/md.texi (Machine Constraints): Adjust.
12340 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12342 * config/rs6000/constraints.md (define_register_constraint "wk"):
12344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12345 RS6000_CONSTRAINT_wk.
12346 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12347 (rs6000_init_hard_regno_mode_ok): Adjust.
12348 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
12349 * doc/md.texi (Machine Constraints): Adjust.
12351 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12353 * config/rs6000/constraints.md (define_register_constraint "wj"):
12355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12356 RS6000_CONSTRAINT_wj.
12357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12358 (rs6000_init_hard_regno_mode_ok): Adjust.
12359 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
12361 * config/rs6000/vsx.md: Ditto.
12362 * doc/md.texi (Machine Constraints): Adjust.
12364 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12366 * config/rs6000/constraints.md (define_register_constraint "wh"):
12368 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12369 RS6000_CONSTRAINT_wh.
12370 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12371 (rs6000_init_hard_regno_mode_ok): Adjust.
12372 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
12373 * doc/md.texi (Machine Constraints): Adjust.
12375 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12378 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12379 Avoid calling gen_lowpart with CONST operand.
12381 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
12383 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
12384 field template_last_to_copy.
12385 (ssa_create_duplicates): Set it, and use it. Attempt to
12386 preserve more debug stmts.
12388 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12390 * config/i386/sse.md (VF1_AVX2): New mode iterator.
12391 (signbit<mode>2): New expander
12393 2019-05-21 James Clarke <jrtc27@jrtc27.com>
12396 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
12397 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
12399 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12401 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
12402 %ebx and %ecx bafore calling cpuid with leaf 1 or
12403 non-constant leaf argument.
12405 2019-05-21 Alan Modra <amodra@gmail.com>
12408 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
12409 power9 direct move cost.
12411 2019-05-21 Richard Biener <rguenther@suse.de>
12413 PR middle-end/90510
12414 * fold-const.c (fold_read_from_vector): New function.
12415 * fold-const.h (fold_read_from_vector): Declare.
12416 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
12417 single-element insert permutations. Canonicalize selector
12418 further and fix issue with last commit.
12420 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12422 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
12423 parameter with default value false to declaration.
12424 (split_edges_for_insertion): New inline function. Wrapper for
12425 split_critical_edges with for_edge_insertion_p = true.
12426 * tree-cfg.c (split_critical_edges): Don't split non-critical
12427 edges if for_edge_insertion_p is false. Fix whitespace.
12428 * tree-ssa-pre.c (pass_pre::execute): Call
12429 split_edges_for_insertion instead of split_critical_edges.
12430 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
12431 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
12432 (pass_data_sink_code): Update function name in the comment.
12434 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12436 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
12437 around is_value_included_in that knows how to handle BIT_AND_EXPR.
12438 (is_pred_expr_subset_of): Use the new function. Handle more cases where
12439 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
12442 2019-05-21 Martin Liska <mliska@suse.cz>
12444 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
12446 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
12447 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
12449 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12451 (rs6000_function_arg): Likewise.
12452 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
12453 (rs6000_expand_ternop_builtin): Use interval syntax.
12454 (get_element_number): Likewise.
12455 (altivec_expand_builtin): Likewise.
12456 (rs6000_get_function_versions_dispatcher): Quote target_clones.
12458 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12462 * function.h (struct function): Add calls_eh_return member.
12463 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
12464 gimplifying __builtin_eh_return call.
12465 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
12467 (expand_call_inline): Or in src_cfun->calls_eh_return into
12468 dst_cfun->calls_eh_return.
12469 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12470 cfun->calls_eh_return.
12471 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12472 * lto-streamer-out.c (output_struct_function_base): Write
12475 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
12477 PR rtl-optimization/43147
12478 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
12479 IX86_BUILTIN_SHUFPD.
12481 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12483 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
12484 (refs_may_alias_p_1): ... here; update stats.
12485 (refs_may_alias_p): Do not update stats here.
12487 2019-05-20 Richard Biener <rguenther@suse.de>
12489 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
12490 doesn't produce pointers.
12491 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
12492 the first operand points to.
12494 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12496 * tree-ssa-alias.c (compare_sizes): New function.
12497 (sompare_type_sizes): New function
12498 (aliasing_component_refs_p): Use it.
12499 (indirect_ref_may_alias_decl_p): Likewise.
12501 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12503 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
12505 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12507 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
12508 (LIBLSAN_EARLY_SPEC): Likewise.
12509 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
12511 2019-05-20 Martin Liska <mliska@suse.cz>
12513 * config/i386/i386.c (ix86_libc_has_fast_function):
12514 Add ATTRIBUTE_UNUSED for the argument.
12516 2019-05-20 Richard Biener <rguenther@suse.de>
12518 * gimple-match-head.c: Include vec-perm-indices.h.
12519 * generic-match-head.c: Likewise.
12520 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
12522 * fold-const.c (fold_vec_perm): Export.
12523 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
12524 (match.pd): ...here.
12526 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12528 * cfgloop.h (struct loop): Add simdlen member.
12529 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
12530 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
12531 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
12532 as new argument to autovectorize_vector_sizes target hook. If
12533 loop->simdlen, pick up vector size where the vectorization factor
12534 is equal to loop->simd, and if there is none, fall back to the first
12536 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
12538 * omp-low.c (omp_clause_aligned_alignment): Likewise.
12539 * omp-general.c (omp_max_vf): Likewise.
12540 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
12541 * tree-vect-slp.c (vect_slp_bb): Likewise.
12542 * target.def (autovectorize_vector_sizes): Add ALL argument and
12544 * doc/tm.texi: Adjust documentation.
12545 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12546 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12547 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12549 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12550 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12551 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12552 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12553 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12554 preferred vector size is not 512-bit or 256-bit, just put those
12555 unpreferred ones last.
12557 2019-05-20 Martin Liska <mliska@suse.cz>
12559 * targhooks.c (default_libc_has_fast_function): New function.
12560 * targhooks.h (default_libc_has_fast_function): Likewise.
12562 2019-05-20 Martin Liska <mliska@suse.cz>
12564 PR middle-end/90263
12565 * builtins.c (expand_builtin_memory_copy_args): When having a
12566 target with fast mempcpy implementation do now use memcpy.
12567 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12568 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12569 * doc/tm.texi: Likewise.
12570 * doc/tm.texi.in: Likewise.
12572 * expr.c (emit_block_move_hints): Add 2 new arguments.
12573 * expr.h (emit_block_move_hints): Bail out when libcall
12574 to memcpy would be used.
12576 2019-05-20 Martin Liska <mliska@suse.cz>
12578 * profile-count.c: Add vertical spacing in order
12579 to separate functions.
12580 * profile-count.h: Likewise.
12582 2019-05-20 Martin Liska <mliska@suse.cz>
12584 * profile-count.h: Do not use full qualified
12586 * profile-count.c (profile_count::to_frequency): Likewise.
12588 2019-05-20 Martin Liska <mliska@suse.cz>
12590 * profile-count.h (enum profile_quality): Use capital letters
12591 for enum value names. Use the adjusted names.
12592 * profile-count.c: Use the adjusted names.
12594 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12596 * config/rs6000/constraints.md (define_register_constraint "wH"):
12598 (define_register_constraint "wI"): Delete.
12599 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12600 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12601 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12602 (rs6000_init_hard_regno_mode_ok): Adjust.
12603 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12604 resp. "d", or with "wa" as appropriate, all with "p8v".
12605 * config/rs6000/vsx.md: Ditto.
12606 * doc/md.texi (Machine Constraints): Adjust.
12608 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12610 * config/rs6000/constraints.md (define_register_constraint "wy"):
12612 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12613 RS6000_CONSTRAINT_wy.
12614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12615 (rs6000_init_hard_regno_mode_ok): Adjust.
12616 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12617 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12618 (define_mode_attr Fisa): New.
12619 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12620 * doc/md.texi (Machine Constraints): Adjust.
12622 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12624 * config/rs6000/constraints.md (define_register_constraint "wu"):
12626 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12627 RS6000_CONSTRAINT_wu.
12628 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12629 (rs6000_init_hard_regno_mode_ok): Adjust.
12630 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12632 (define_mode_attr Fa): Delete.
12633 * config/rs6000/vsx.md: Ditto.
12634 * doc/md.texi (Machine Constraints): Adjust.
12636 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12638 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12640 (define_register_constraint "wK"): Delete.
12641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12642 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12644 (rs6000_init_hard_regno_mode_ok): Adjust.
12645 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12646 Replace "wK" constraint by "wH" with "p9v".
12647 * config/rs6000/vsx.md: Ditto.
12648 * doc/md.texi (Machine Constraints): Adjust.
12650 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12652 * config/rs6000/constraints.md (define_register_constraint "wb"):
12654 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12655 RS6000_CONSTRAINT_wb.
12656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12657 (rs6000_init_hard_regno_mode_ok): Adjust.
12658 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12659 * config/rs6000/vsx.md: Ditto.
12660 * doc/md.texi (Machine Constraints): Adjust.
12662 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12664 * config/rs6000/constraints.md (define_register_constraint "wo"):
12666 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12667 RS6000_CONSTRAINT_wo.
12668 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12669 (rs6000_init_hard_regno_mode_ok): Adjust.
12670 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12671 * config/rs6000/altivec.md: Ditto.
12672 * doc/md.texi (Machine Constraints): Adjust.
12674 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12676 * config/darwin-c.c (darwin_register_objc_includes): Do not
12677 prepend the sysroot when building gnu-runtime header search
12680 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12682 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12683 instead of direct output of the asm.
12685 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12687 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12688 argument to be type bool (was int before).
12689 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12690 at first use. Use type bool for some variables. Fix a theoretical
12691 eh_return bug for svr4.
12693 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12695 * config/rs6000/rs6000.md (isa): New attribute.
12696 (enabled): New attribute.
12698 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12700 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12701 assemble_start_function and assemble_end_function.
12703 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12705 PR middle-end/89433
12706 * omp-general.c (oacc_verify_routine_clauses): Change formal
12707 parameters. Add checking if already marked with an OpenACC
12708 'routine' directive. Adjust all users.
12710 PR middle-end/89433
12711 * omp-general.c (oacc_build_routine_dims): Move some of its
12713 (oacc_verify_routine_clauses): ... this new function.
12714 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12716 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12718 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12719 formating of picbase labels to match other ports.
12721 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12723 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12724 in the generated code.
12726 2019-05-16 Martin Sebor <msebor@redhat.com>
12728 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12729 identifiers, keywords, operators, and types in diagnostics. Correct
12730 quoting, spelling, and sentence capitalization issues.
12731 (expand_builtin_atomic_is_lock_free): Same.
12732 (fold_builtin_next_arg): Same.
12733 * cfgexpand.c (expand_one_var): Same.
12734 (tree_conflicts_with_clobbers_p): Same.
12735 (expand_asm_stmt): Same.
12736 (verify_loop_structure): Same.
12737 * cgraphunit.c (process_function_and_variable_attributes): Same.
12738 * collect-utils.c (collect_execute): Same.
12739 * collect2.c (maybe_run_lto_and_relink): Same.
12740 (is_lto_object_file): Same.
12741 (scan_prog_file): Same.
12742 * convert.c (convert_to_real_1): Same.
12743 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12744 * except.c (verify_eh_tree): Same.
12745 * gcc.c (execute): Same.
12746 (eval_spec_function): Same.
12747 (run_attempt): Same.
12748 (driver::set_up_specs): Same.
12749 (compare_debug_auxbase_opt_spec_function): Same.
12750 * gcov-tool.c (unlink_gcda_file): Same.
12752 (do_rewrite): Same.
12753 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12754 * gimplify.c (gimplify_asm_expr): Same.
12755 (gimplify_adjust_omp_clauses): Same.
12756 * hsa-gen.c (gen_hsa_addr_insns): Same.
12757 (gen_hsa_insns_for_load): Same.
12758 (gen_hsa_cmp_insn_from_gimple): Same.
12759 (gen_hsa_insns_for_operation_assignment): Same.
12760 (gen_get_level): Same.
12761 (gen_hsa_alloca): Same.
12762 (omp_simple_builtin::generate): Same.
12763 (gen_hsa_atomic_for_builtin): Same.
12764 (gen_hsa_insns_for_call): Same.
12765 * input.c (dump_location_info): Same.
12766 * ipa-devirt.c (compare_virtual_tables): Same.
12767 * ira.c (ira_setup_eliminable_regset): Same.
12768 * lra-assigns.c (lra_assign): Same.
12769 * lra-constraints.c (lra_constraints): Same.
12770 * lto-streamer-in.c (lto_input_mode_table): Same.
12771 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12772 (merge_and_complain): Same.
12773 (compile_offload_image): Same.
12774 (compile_images_for_offload_targets): Same.
12775 (debug_objcopy): Same.
12778 * opts.c (print_specific_help): Same.
12779 (parse_no_sanitize_attribute): Same.
12780 (print_help): Same.
12781 (handle_param): Same.
12782 * plugin.c (add_new_plugin): Same.
12783 (parse_plugin_arg_opt): Same.
12784 (try_init_one_plugin): Same.
12785 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12786 operators, and types in diagnostics. Correct quoting and spelling
12788 * read-rtl-function.c (parse_edge_flag_token): Same.
12789 (function_reader::parse_enum_value): Same.
12790 * reg-stack.c (check_asm_stack_operands): Same.
12791 * regcprop.c (validate_value_data): Same.
12792 * sched-rgn.c (make_pass_sched_fusion): Same.
12793 * stmt.c (check_unique_operand_names): Same.
12794 * targhooks.c (default_target_option_pragma_parse): Same.
12795 * tlink.c (recompile_files): Same.
12796 * toplev.c (process_options): Same.
12797 (do_compile): Same.
12798 * trans-mem.c (diagnose_tm_1): Same.
12799 (ipa_tm_scan_irr_block): Same.
12800 (ipa_tm_diagnose_transaction): Same.
12801 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12802 format a tree code name in a diagnostic.
12803 (verify_types_in_gimple_min_lval): Same.
12804 (verify_types_in_gimple_reference): Same.
12805 (verify_gimple_call): Same.
12806 (verify_gimple_assign_unary): Same.
12807 (verify_gimple_assign_binary): Same.
12808 (verify_gimple_assign_ternary): Same.
12809 (verify_gimple_assign_single): Same.
12810 (verify_gimple_switch): Same.
12811 (verify_gimple_label): Same.
12812 (verify_gimple_phi): Same.
12813 (verify_gimple_in_seq): Same.
12814 (verify_eh_throw_stmt_node): Same.
12815 (collect_subblocks): Same.
12816 (gimple_verify_flow_info): Same.
12817 (do_warn_unused_result): Same.
12818 * tree-inline.c (expand_call_inline): Same.
12819 * tree-into-ssa.c (update_ssa): Same.
12820 * tree.c (tree_int_cst_elt_check_failed): Same.
12821 (tree_vec_elt_check_failed): Same.
12822 (omp_clause_operand_check_failed): Same.
12823 (verify_type_variant): Same.
12824 (verify_type): Same.
12825 * value-prof.c (verify_histograms): Same.
12826 * varasm.c (assemble_start_function): Same.
12828 2019-05-16 Martin Sebor <msebor@redhat.com>
12830 * config/i386/i386-expand.c (get_element_number): Quote keywords
12831 and other internal names in diagnostics. Adjust other diagnostic
12832 formatting issues noted by -Wformat-diag.
12833 * config/i386/i386-features.c
12834 (ix86_mangle_function_version_assembler_name): Same.
12835 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12836 * config/i386/i386.c (ix86_function_type_abi): Same.
12837 (ix86_function_ms_hook_prologue): Same.
12838 (classify_argument): Same.
12839 (ix86_expand_prologue): Same.
12840 (ix86_md_asm_adjust): Same.
12841 (ix86_memmodel_check): Same.
12843 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12845 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12846 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12849 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12852 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12853 intrinsics without SSE/SSE2/SSSE3.
12854 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12856 (*mmx_uavgv8qi3): Likewise.
12858 2019-05-17 Richard Biener <rguenther@suse.de>
12860 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12861 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12863 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12865 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12866 vec_sldw insn pattern.
12868 2019-05-17 Richard Biener <rguenther@suse.de>
12870 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12872 2019-05-17 Martin Liska <mliska@suse.cz>
12875 * toplev.c (output_stack_usage): With LTO and sanitizer it
12876 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12877 has no file location.
12879 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12882 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12883 sz0 is equal to sz1, instead return false in that case.
12885 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12886 has non-constant expression, force sctx.lane and use two
12887 argument IFN_GOMP_SIMD_LANE instead of single argument.
12888 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12889 two argument IFN_GOMP_SIMD_LANE without lhs.
12890 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12892 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12894 (LOOP_REQUIRES_VERSIONING): Or in
12895 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12896 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12898 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12899 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12900 from simd if clause if needed.
12902 2019-05-16 Richard Biener <rguenther@suse.de>
12904 * tree-affine.c (expr_to_aff_combination): New function split
12906 (tree_to_aff_combination): ... here.
12907 (aff_combination_expand): Avoid building a GENERIC tree.
12909 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12911 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12912 assemble_start_function and assemble_end_function calls.
12913 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12914 assemble_start_function and assemble_end_function.
12915 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12916 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12917 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12918 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12919 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12920 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12921 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12922 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12923 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12924 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12925 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12926 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12928 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12929 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12930 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12931 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12932 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12933 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12934 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12935 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12936 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12937 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12938 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12939 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12940 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12941 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12943 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12944 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12945 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12947 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12949 * tree-ssa-alias.c (alias_stats): Add
12950 aliasing_component_refs_p_may_alias and
12951 aliasing_component_refs_p_no_alias.
12952 (dump_alias_stats): Print aliasing_component_refs_p stats.
12953 (aliasing_component_refs_p): Update stats.
12955 2019-05-16 Martin Liska <mliska@suse.cz>
12958 * multiple_target.c (expand_target_clones): Do not allow
12959 target_clones being used with a symbol that is an alias.
12961 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12963 PR tree-optimization/90394
12964 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12965 positives rather than ICE for cases where (code2 == NE_EXPR
12966 && code1 == BIT_AND_EXPR).
12968 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12971 * tree-core.h (struct tree_decl_common): Document
12972 decl_nonshareable_flag for PARM_DECLs.
12973 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12974 * calls.c (expand_call): Don't try tail call if caller
12975 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12976 passed on the stack and callee needs to pass any arguments on the
12978 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12979 else if instead of series of mutually exclusive ifs. Handle
12980 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12981 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12983 * lto-streamer.h (LTO_major_version): Bump to 9.
12985 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12987 PR tree-optimization/90106
12988 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12989 new parameter as new internal function call, also move it to new
12991 (use_internal_fn): Pass internal function call to
12992 shrink_wrap_one_built_in_call_with_conds.
12994 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12996 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12998 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12999 safelen_int and set loop->dont_vectorize.
13001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13004 * config/i386/i386-builtin.def: Enable MMX intrinsics with
13006 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13008 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
13009 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
13010 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
13013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13016 * config/i386/mmx.md (*vec_dupv2sf): Changed to
13017 define_insn_and_split to support SSE emulation.
13018 (*vec_extractv2sf_0): Likewise.
13019 (*vec_extractv2sf_1): Likewise.
13020 (*vec_extractv2si_0): Likewise.
13021 (*vec_extractv2si_1): Likewise.
13022 (*vec_extractv2si_zext_mem): Likewise.
13023 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
13024 (vec_extractv2sf_1 splitter): Likewise.
13025 (vec_extractv2sfsf): Likewise.
13026 (vec_setv2si): Likewise.
13027 (vec_extractv2si_1 splitter): Likewise.
13028 (vec_extractv2sisi): Likewise.
13029 (vec_setv4hi): Likewise.
13030 (vec_extractv4hihi): Likewise.
13031 (vec_setv8qi): Likewise.
13032 (vec_extractv8qiqi): Likewise.
13033 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13034 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
13035 (vec_extractv2sisi): Likewise.
13036 (vec_extractv4hihi): Likewise.
13037 (vec_extractv8qiqi): Likewise.
13038 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13039 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
13040 (vec_initv2sisi): Likewise.
13041 (vec_initv4hihi): Likewise.
13042 (vec_initv8qiqi): Likewise.
13043 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
13044 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
13045 (vec_setv4hi): Likewise.
13046 (vec_setv8qi): Likewise.
13048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13051 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
13052 TARGET_MMX_WITH_SSE.
13053 (MMXMODE:*mov<mode>_internal): Likewise.
13054 (MMXMODE:movmisalign<mode>): Likewise.
13056 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
13059 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
13060 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
13061 (sse2_cvtpd2pi): Ditto.
13062 (sse2_cvttpd2pi): Ditto.
13063 (*vec_concatv2sf_sse4_1): Ditto.
13064 (*vec_concatv2sf_sse): Ditto.
13065 (*vec_concatv2si_sse4_1): Ditto.
13066 (*vec_concatv2si): Ditto.
13067 (*vec_concatv4si_0): Ditto.
13068 (*vec_concatv2di_0): Ditto.
13070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13073 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
13075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13078 * config/i386/sse.md (ssse3_palignrdi): Changed to
13079 define_insn_and_split to support SSE emulation.
13081 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13084 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
13086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13089 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
13090 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13096 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
13097 or TARGET_MMX_WITH_SSE.
13098 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
13100 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13103 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
13105 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13108 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
13109 Changed to define_insn_and_split to support SSE emulation.
13111 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13114 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
13115 Changed to define_insn_and_split to support SSE emulation.
13117 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13120 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
13121 (*mmx_<emms>): This.
13122 (mmx_<emms>): New expander.
13124 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13127 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
13129 (*sse2_umulv1siv1di3): Add SSE2 emulation.
13131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13134 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
13136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13139 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
13141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13144 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
13145 TARGET_MMX_WITH_SSE.
13146 (*mmx_uavgv4hi3): Add SSE emulation.
13148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13151 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
13152 and TARGET_MMX_WITH_SSE.
13153 (*mmx_uavgv8qi3): Add SSE emulation.
13155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13158 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
13159 maskmovdqu for __MMX_WITH_SSE__.
13161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13164 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
13165 TARGET_MMX and TARGET_MMX_WITH_SSE.
13166 (*mmx_umulv4hi3_highpart): Add SSE emulation.
13168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13171 * config/i386/mmx.md (mmx_pmovmskb): Changed to
13172 define_insn_and_split to support SSE emulation.
13174 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13177 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
13178 and TARGET_MMX_WITH_SSE.
13179 (mmx_<code>v8qi3): Likewise.
13180 (smaxmin:<code>v4hi3): New.
13181 (umaxmin:<code>v8qi3): Likewise.
13182 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
13183 (umaxmin:*mmx_<code>v8qi3): Likewise.
13185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13188 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
13189 TARGET_MMX_WITH_SSE.
13190 (*mmx_pinsrw): Add SSE emulation.
13192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13195 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
13197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13200 * config/i386/sse.md (sse_cvtpi2ps): Changed to
13201 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13204 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13207 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
13208 (sse_cvttps2pi): Likewise.
13210 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13213 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
13214 TARGET_MMX_WITH_SSE.
13215 (mmx_pshufw_1): Add SSE emulation.
13216 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
13217 TARGET_MMX_WITH_SSE to support SSE emulation.
13219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13222 * config/i386/constraints.md (Yw): New constraint.
13223 * config/i386/mmx.md (*vec_dupv2si): Changed to
13224 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
13225 support SSE emulation.
13227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13230 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
13231 TARGET_MMX_WITH_SSE.
13232 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13234 (mmx_gt<mode>3): Likewise.
13236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13239 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
13240 TARGET_MMX_WITH_SSE. Add SSE support.
13242 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13245 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
13246 TARGET_MMX_WITH_SSE.
13247 (any_logic:<code><mode>3): New.
13248 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
13251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13254 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
13255 TARGET_MMX_WITH_SSE. Add SSE emulation.
13256 (mmx_<shift_insn><mode>3): Likewise.
13257 (ashr<mode>3): New.
13258 (<shift_insn><mode>3): Likewise.
13260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13263 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
13264 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
13266 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13269 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
13270 TARGET_MMX_WITH_SSE.
13271 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
13274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13277 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
13278 TARGET_MMX_WITH_SSE.
13280 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13286 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
13287 (plusminus:mmx_<plusminus_insn><mode>3): Check
13288 TARGET_MMX_WITH_SSE.
13289 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
13290 (<plusminus_insn><mode>3): New.
13291 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
13292 (*mmx_<plusminus_insn><mode>3): Likewise.
13294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13297 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
13298 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
13300 * config/i386/mmx.m (mmx_punpckhbw): Changed to
13301 define_insn_and_split to support SSE emulation.
13302 (mmx_punpcklbw): Likewise.
13303 (mmx_punpckhwd): Likewise.
13304 (mmx_punpcklwd): Likewise.
13305 (mmx_punpckhdq): Likewise.
13306 (mmx_punpckldq): Likewise.
13308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13309 Uros Bizjak <ubizjak@gmail.com>
13312 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
13314 (ix86_split_mmx_pack): Likewise.
13315 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
13317 (ix86_split_mmx_pack): Likewise.
13318 * config/i386/i386.md (mmx_isa): New.
13319 (enabled): Also check mmx_isa.
13320 * config/i386/mmx.md (any_s_truncate): New code iterator.
13321 (s_trunsuffix): New code attr.
13322 (mmx_packsswb): Removed.
13323 (mmx_packssdw): Likewise.
13324 (mmx_packuswb): Likewise.
13325 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
13326 MMX packsswb/packuswb with SSE2.
13327 (mmx_packssdw): Likewise.
13328 * config/i386/predicates.md (register_mmxmem_operand): New.
13330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13333 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13334 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
13335 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
13336 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
13337 (ix86_vector_mode_supported_p): Likewise.
13338 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
13340 2019-05-15 Martin Liska <mliska@suse.cz>
13342 PR middle-end/90478
13343 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13344 Check for overflow.
13346 2019-05-15 Richard Biener <rguenther@suse.de>
13348 * tree-into-ssa.c (pass_build_ssa::execute): Run
13349 update_address_taken before going into SSA.
13351 2019-05-15 Richard Biener <rguenther@suse.de>
13353 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
13354 as __BIT_FIELD_REF with type with -gimple.
13356 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
13358 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
13359 semantically equivalent branches (left over after prior refactorings).
13361 2019-05-15 Richard Biener <rguenther@suse.de>
13363 PR tree-optimization/88828
13364 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
13367 2019-05-14 Richard Biener <rguenther@suse.de>
13369 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
13370 as __VIEW_CONVERT with -gimple.
13372 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13375 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
13378 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13380 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
13381 define_split to become a define_insn_and_split.
13383 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13385 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
13387 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
13388 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
13389 (sibcall_epilogue): Adjust.
13390 (epilogue): Adjust.
13392 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13394 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
13395 to unsupported ones.
13396 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
13397 * config.host: Likewise.
13398 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
13399 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
13400 __svr4__]: Remove "brand" fallback.
13401 [!KSTAT_DATA_STRING]: Remove.
13402 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
13404 (comdat_group): Likewise.
13405 (set_have_as_tls): Likewise.
13406 (gcc_cv_target_dl_iterate_phdr): Likewise.
13407 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
13408 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
13409 * configure: Regenerate.
13410 * doc/install.texi: Simplify Solaris target triplets.
13411 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
13412 (Specific, *-*-solaris2*): Document Solaris 10 removal.
13413 Remove Solaris 10 references.
13414 Remove obsolete Solaris bug reference.
13415 (Specific, sparc-sun-solaris2.10): Remove.
13417 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
13419 * config/i386/i386.md (any_div): New code iterator.
13420 (paired_mod): New code attribute.
13421 (sgnprefix): Handle DIV and UDIV RTXes.
13423 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
13424 and udivmod<mode>4 patterns using any_div code iterator.
13425 (divmod splitters): Macroize splitters using any_div code iterator.
13426 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
13427 (*udivmodsi4_pow2_zext_2): Ditto.
13428 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
13429 and *udivmod<mode>4_noext patterns using any_div code iterator.
13430 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
13431 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
13432 patterns using any_div code iterator.
13433 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
13434 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
13435 patterns using any_div code iterator.
13436 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
13437 udivmodhiqi3 patterns using any_extend code iterator.
13439 2019-05-14 Richard Biener <rguenther@suse.de>
13440 H.J. Lu <hongjiu.lu@intel.com>
13442 PR tree-optimization/88828
13443 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
13444 permuting in a single non-constant element not extracted
13447 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13449 * internal-fn.def (SIGNBIT): New.
13450 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
13452 (signbitv4sf2): Likewise.
13454 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
13457 * config/mips/mips.c (mips_split_move): Skip forward SRC into
13458 next insn when the SRC reg is dead.
13460 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
13462 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
13463 (alloc_cand_and_find_basis): Ditto.
13464 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
13465 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
13466 (create_add_imm_cand, slsr_process_cast): Ditto.
13467 (slsr_process_copy, replace_mult_candidate): Ditto.
13468 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13469 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13470 (pass_strength_reduction::execute): Init the first NULL element.
13472 2019-05-13 Nathan Sidwell <nathan@acm.org>
13474 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13475 (run_attempt): Reformat line break.
13477 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
13480 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
13481 data registers in sibcall epilogues.
13482 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13484 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
13487 * configure.ac (--enable-frame-pointer):
13488 Disable by default for cygwin and mingw.
13489 * configure: Regenerate.
13491 2019-05-13 Nathan Sidwell <nathan@acm.org>
13493 * dwarf2out.c (breakout_comdat_types): Move comment to correct
13495 (const_ok_for_output_1): Balance parens around #if/#else/#endif
13496 (gen_member_die): Move abstract origin check earlier. Only VARs
13497 can be static_inline_p. Simplify splicing control flow.
13499 2019-05-13 Richard Biener <rguenther@suse.de>
13501 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
13503 (vect_build_slp_tree_1): Likewise.
13505 2019-05-13 Richard Biener <rguenther@suse.de>
13507 PR tree-optimization/90402
13508 * tree-if-conv.c (tree_if_conversion): Value number only
13509 the loop body by making the latch an exit of the region
13511 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
13513 (do_rpo_vn): Deal with multiple edges into the entry block
13514 that are not backedges inside the region by skipping PHIs
13515 of the entry block.
13517 2019-05-13 Richard Biener <rguenther@suse.de>
13519 PR tree-optimization/90316
13520 * tree-ssa-pre.c (insert_aux): Fold into ...
13521 (insert): ... this function. Use a RPO walk to reduce the
13522 number of required iterations.
13524 2019-05-13 Martin Liska <mliska@suse.cz>
13526 PR tree-optimization/90416
13527 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
13528 string instead of passing the second part as va_arg argument.
13530 2019-05-13 Martin Liska <mliska@suse.cz>
13532 PR gcov-profile/90380
13533 * gcov.c (handle_cycle): Do not support zero cycle count,
13534 it should not be possible.
13535 (path_contains_zero_cycle_arc): New function.
13536 (circuit): Ignore zero cycle arc counts.
13538 2019-05-13 Martin Liska <mliska@suse.cz>
13540 PR gcov-profile/90380
13541 * gcov.c (enum loop_type): Remove the enum and
13543 (handle_cycle): Assert that we should not reach
13545 (circuit): Use loop_found instead of a tri-state loop_type.
13546 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13549 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13552 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13553 (ix86_output_indirect_branch_via_reg): Use output mechanism
13554 accounting for __USER_LABEL_PREFIX__.
13555 (ix86_output_indirect_branch_via_push): Likewise.
13556 (ix86_output_function_return): Likewise.
13557 (ix86_output_indirect_function_return): Likewise.
13559 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13561 * doc/md.texi: Document use of code attributes in rtx patterns.
13562 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13563 * read-rtl.c (find_code): Split out search loops into...
13564 (maybe_find_code): ...this new function.
13565 (check_code_iterator): Make the error message more informative.
13566 (check_code_attribute): New function.
13567 (rtx_reader::rtx_alloc_for_name): Likewise.
13568 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13569 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13570 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13571 <max_opp> directly as an rtx code instead of via a match_operator.
13572 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13573 (<su>abd<mode>_3): Update accordingly.
13575 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13577 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13578 is given, print the state of the EH "save world" computation for
13581 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13584 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13585 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13587 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13589 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13590 Use pinsrd for TARGET_SSE4_1.
13591 * config/i386/sse.md (movdi_to_sse): Ditto.
13593 2019-05-10 Richard Biener <rguenther@suse.de>
13595 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13596 (do_rpo_vn): Initialize next_value_id.
13598 2019-05-10 Martin Liska <mliska@suse.cz>
13600 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13603 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13605 PR tree-optimization/90385
13606 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13607 arguments of the exit phis.
13610 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13611 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13613 (copy_tree_body_r): Likewise.
13614 (copy_fn): Set id.do_not_fold to true.
13616 2019-05-10 Martin Liska <mliska@suse.cz>
13618 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13619 Reapply changes from r269790.
13621 2019-05-10 Martin Liska <mliska@suse.cz>
13623 PR middle-end/90340
13624 * doc/invoke.texi: New params.
13625 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13626 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13627 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13629 * tree-switch-conversion.h (struct jump_table_cluster):
13632 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13634 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13636 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13638 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13640 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13642 PR rtl-optimization/88879
13643 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13645 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13648 * config/arm/arm.c (callee_saved_reg_p): Move before
13649 thumb_find_work_register.
13650 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13651 thumb_find_work_register. Only call df_get_live_out once.
13652 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13653 (thumb_find_work_register): Use
13654 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13655 algorithms to locate a spare call clobbered reg.
13657 2019-05-09 Martin Liska <mliska@suse.cz>
13659 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13660 and MAX_EXPR in GIMPLE FE format.
13662 2019-05-09 Martin Liska <mliska@suse.cz>
13664 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13665 * gimple-pretty-print.c (dump_gimple_bb_header):
13667 (pp_cfg_jump): Dump edge probability.
13668 * profile-count.c (profile_quality_as_string): Simplify
13669 with a static array.
13670 (parse_profile_quality): New function.
13671 (profile_count::dump): Simplify with a static array.
13672 (profile_count::from_gcov_type): Add new argument.
13673 * profile-count.h (parse_profile_quality): Likewise.
13674 * predict.h (set_hot_bb_threshold): New.
13675 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13677 * predict.c (get_hot_bb_threshold): Set from the new param.
13678 (set_hot_bb_threshold): New.
13680 2019-05-09 Richard Biener <rguenther@suse.de>
13682 PR tree-optimization/90395
13683 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13684 rewrite vector stores that throw internally.
13686 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13688 * cif-code.def (CHKP): Remove.
13691 * configure.ac (--enable-frame-pointer): Disable by default for
13693 * configure: Regenerate.
13695 2019-05-09 Alan Modra <amodra@gmail.com>
13698 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13699 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13700 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13701 cost for general <-> vsx when direct moves are available.
13702 Cost union classes at minimal cost for any reg in the class.
13703 Correct calculation for moves between vsx, float, and altivec.
13704 Don't return a low cost for moves between special regs. Don't
13705 use hard coded register numbers.
13706 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13707 (rs6000_ira_change_pseudo_allocno_class): New function.
13708 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13709 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13711 (movsi_internal1): Don't disparage vector alternatives.
13712 (mov<mode>_internal): Likewise, excepting alternative that
13714 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13715 we <- b alternative.
13717 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13720 PR tree-optimization/89060
13721 * tree-ssa-live.h (live_vars_map): New typedef.
13722 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13723 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13724 (struct compute_live_vars_data): New type.
13725 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13726 live_vars_at_stmt, destroy_live_vars): New functions.
13727 * tree-tailcall.c: Include tree-ssa-live.h.
13728 (live_vars, live_vars_vec): New global variables.
13729 (find_tail_calls): Perform variable life analysis before punting.
13730 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13731 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13733 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13734 Perform variable life analysis to select variables that really need
13736 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13737 instead set id->eh_landing_pad_dest and assert it is the same.
13738 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13740 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13741 Richard Earnshaw <rearnsha@arm.com>
13744 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13746 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13747 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13748 register if both the epilogue and prologue can use call-clobbered
13750 (thumb1_unexpanded_epilogue): Use
13751 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13752 picking temporaries for restoring high regs to match that of the
13753 prologue where possible.
13754 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13755 the list of work registers. Detect if the return address is still live
13756 at the end of the prologue and avoid using it for a work register if so.
13757 If the return address is not live, add LR to the list of pushable regs
13758 after the first pass.
13760 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13762 PR tree-optimization/90078
13763 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13764 (INFTY): Increase the value for infinite cost.
13765 (struct comp_cost): Promote type of members to int64_t.
13766 (infinite_cost): Don't set complexity in initialization.
13767 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13768 overflows to infinite_cost.
13769 (adjust_setup_cost): Promote type of parameter and cost computation
13771 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13773 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13774 cost computation to int64_t.
13775 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13776 int64_t's format specifier in dump.
13778 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13780 PR tree-optimization/90240
13781 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13782 with respect to scaling factor pre-computed for each basic block.
13783 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13784 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13785 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13786 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13787 live range for array of loop's basic blocks. Cleanup aux field of
13788 loop's basic blocks.
13790 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13792 PR tree-optimization/90356
13793 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13795 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13797 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13798 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13799 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13800 (ix86_handle_option): Handle -mavx512bf16.
13801 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13803 * config/i386/avx512bf16vlintrin.h: New.
13804 * config/i386/avx512bf16intrin.h: New.
13805 * config/i386/cpuid.h (bit_AVX512BF16): New.
13806 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13807 * config/i386/i386-builtin-types.def: Add new types.
13808 * config/i386/i386-builtin.def: Add new builtins.
13809 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13811 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13812 (ix86_option_override_internal): Handle BF16.
13813 (ix86_valid_target_attribute_inner_p): Ditto.
13814 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13815 * config/i386/i386-builtin.c (enum processor_features): Add
13817 (static const _isa_names_table isa_names_table): Ditto.
13818 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13819 (PTA_AVX512BF16): Ditto.
13820 * config/i386/i386.opt: Add -mavx512bf16.
13821 * config/i386/immintrin.h: Include avx512bf16intrin.h
13822 and avx512bf16vlintrin.h.
13823 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13824 avx512f_cvtneps2bf16_<mode><mask_name>,
13825 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13826 * config/i386/subst.md (mask_half): Add new subst.
13827 * doc/invoke.texi: Document -mavx512bf16.
13829 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13831 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13832 Delete declaration.
13833 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13834 (rs6000_debug_legitimize_reload_address): Delete.
13835 (rs6000_legitimize_reload_address_ptr): Delete.
13836 (rs6000_option_override_internal): Adjust.
13837 (mem_operand_gpr): Adjust comment.
13838 (legitimate_lo_sum_address_p): Ditto.
13839 (rs6000_legitimize_reload_address): Delete.
13840 (rs6000_debug_legitimize_reload_address): Delete.
13841 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13843 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13846 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13847 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13848 to compute vector element selector for both constant and variable
13851 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13853 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13854 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13855 ashrdi3_cvt using SWI48 mode iterator.
13857 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13859 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13860 (aarch64_<su>abd<mode>_3): Likewise.
13861 (*aarch64_<su>abd<mode>_3): New define_insn.
13862 (<sur>sad<vsi2qi>): New define_expand.
13863 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13864 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13865 (build_vect_cond_expr): Likewise.
13867 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13869 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13870 clobbers outside of accessible_reg_set.
13871 * config/i386/i386.c (ix86_conditional_register_usage):
13872 Disable register sets by clearing corresponding bits in
13873 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13874 call_used_regs and don't clear corresponding reg_names array members.
13876 2019-05-07 Richard Biener <rguenther@suse.de>
13878 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13879 not specified still compute a comp_vectype for invariant
13882 2019-05-07 Richard Biener <rguenther@suse.de>
13884 PR tree-optimization/90316
13885 * tree-ssa-pre.c (translate_vuse_through_block): When
13886 same_valid is NULL do not bother to search for a virtual
13888 (phi_translate_1): When operands changed we cannot keep
13889 the same value-number so do not bother to ask whether
13890 that's possible from translate_vuse_through_block.
13892 2019-05-07 Martin Liska <mliska@suse.cz>
13894 * bitmap.c (bitmap_register): Come up with
13895 alloc_descriptor_max_uid and assign it for
13897 (register_overhead): Use get_descriptor as
13899 (release_overhead): New.
13900 (bitmap_elem_to_freelist): Call it.
13901 (bitmap_elt_clear_from): Likewise.
13902 (bitmap_obstack_free): Likewise.
13903 (bitmap_move): Sensitively release memory.
13904 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13905 (bitmap_initialize): Initialize alloc_descriptor to zero.
13906 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13908 2019-05-07 Richard Biener <rguenther@suse.de>
13910 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13911 we build a SLP node. Remove max_size and limiting.
13912 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13914 2019-05-07 Richard Biener <rguenther@suse.de>
13916 PR tree-optimization/90316
13917 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13918 limit by reference.
13919 (walk_non_aliased_vuses): Take walking limit argument.
13920 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13921 walking if it is reached instead of just counting.
13922 (get_continuation_for_phi): Likewise.
13923 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13924 limiting to the callback.
13925 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13926 (vn_reference_lookup_3): Likewise.
13927 (vn_reference_lookup_pieces): Likewise.
13928 (vn_reference_lookup): Likewise.
13929 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13930 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13931 (avail_exprs_stack::lookup_avail_expr): Likewise.
13933 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13935 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13936 for comparaible types in the second direction even if first one
13937 hits incomparable type.
13939 2019-05-07 Richard Biener <rguenther@suse.de>
13942 * lto-wrapper.c (debug_objcopy): Use the original filename
13943 including archive offset for the filename used for -save-temps.
13945 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13947 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13950 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13951 Hongtao Liu <hongtao.liu@intel.com>
13955 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13956 Modified, original implementation isn't correct.
13958 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13960 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13961 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13962 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13963 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13964 (FRAME_POINTER_REGNUM): Change numbering.
13965 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13966 (alt_reg_names): Adjust.
13967 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13969 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13970 (DWARF_FRAME_REGISTERS): Delete.
13971 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13972 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13974 (REG_ALLOC_ORDER): Adjust.
13975 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13976 (REG_CLASS_CONTENTS): Adjust.
13977 (RETURN_ADDR_RTX): Change comment.
13978 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13980 (REGISTER_NAMES): Adjust.
13981 (ADDITIONAL_REGISTER_NAMES): Adjust.
13982 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13984 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13986 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13988 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13989 (DWARF_FRAME_REGISTERS): Adjust.
13990 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13992 (REG_ALLOC_ORDER): Adjust.
13993 (enum reg_class): Delete SPR_REGS.
13994 (REG_CLASS_NAMES): Delete SPR_REGS.
13995 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13996 (REGISTER_NAMES): Adjust.
13997 (ADDITIONAL_REGISTER_NAMES): Adjust.
13998 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13999 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
14000 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
14001 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
14002 (htm_spr_regno): Delete.
14003 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
14005 (rs6000_dbx_register_number): Adjust.
14007 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14009 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
14011 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14013 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
14014 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
14016 2019-05-06 Jakub Jelinek <jakub@redhat.com>
14018 PR tree-optimization/88709
14019 PR tree-optimization/90271
14020 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
14021 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
14022 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
14024 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
14025 of the store merging group is larger than
14026 PARAM_STORE_MERGING_MAX_SIZE parameter.
14027 (split_group): Add bzero_first argument. If set, always emit first
14028 the first store which must be = {} of the whole area and then for the
14029 rest of the stores consider all zero bytes as paddings.
14030 (imm_store_chain_info::output_merged_store): Check if first store
14031 is = {} of the whole area and if yes, determine which setting of
14032 bzero_first for split_group gives smaller number of stores. Adjust
14033 split_group callers.
14034 (lhs_valid_for_store_merging_p): Allow decls.
14035 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
14037 (pass_store_merging::process_store): Likewise.
14039 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
14042 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14043 handling of V1TImode.
14045 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
14048 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
14049 and enable_frame_pointer ...
14050 * configure.ac: ... here. Update help strings for
14051 --enable-frame-pointer.
14052 * configure: Regenerate.
14053 * config/i386/i386-options.c (ix86_option_override_internal): Remove
14054 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
14055 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
14056 (USE_X86_64_FRAME_POINTER): Ditto.
14058 2019-05-06 Martin Liska <mliska@suse.cz>
14060 * config.gcc: Append to target_gtfiles and fix indentation.
14062 2019-05-06 Richard Biener <rguenther@suse.de>
14064 PR tree-optimization/90358
14065 * tree-vect-stmts.c (get_group_load_store_type): Properly
14066 detect unused upper half of load.
14067 (vectorizable_load): Likewise.
14069 2019-05-06 Richard Biener <rguenther@suse.de>
14071 PR tree-optimization/88828
14072 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
14073 (simplify_vector_constructor): ...here. Handle constants in
14076 2019-05-06 Richard Biener <rguenther@suse.de>
14078 PR tree-optimization/90328
14079 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
14080 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
14081 is valid in the loop nest before using it.
14082 (initialize_data_dependence_relation): Adjust.
14083 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
14084 loop as loop-nest to dr_may_alias_p.
14086 2019-05-06 Richard Biener <rguenther@suse.de>
14088 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
14090 2019-05-06 Richard Biener <rguenther@suse.de>
14092 PR tree-optimization/90316
14093 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
14094 compute target on demand.
14095 (get_continuation_for_phi): Remove code walking stmts to
14096 get to a target virtual operand which could end up being
14099 2019-05-06 Martin Liska <mliska@suse.cz>
14102 * config/i386/i386-options.c (ix86_option_override_internal): Error only
14103 when -mabi is selected to a non-default version.
14105 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
14106 Martin Liska <mliska@suse.cz>
14108 * Makefile.in: Add lto-dump.texi.
14109 * cgraph.h: Add new functions get_visibility_string and
14110 get_symtab_type_string.
14111 * doc/gcc.texi: Include lto-dump section.
14112 * doc/lto-dump.texi: New file.
14113 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
14114 (parse_dump_option): Factor out this function.
14115 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
14116 (parse_dump_option): Export the function.
14117 * symtab.c (symtab_node::get_visibility_string): New function.
14118 (symtab_node::get_symtab_type_string): Likewise.
14120 2019-05-06 Martin Liska <mliska@suse.cz>
14122 * config/i386/i386-builtins.c: New file.
14123 * config/i386/i386-builtins.h: New file.
14124 * config/i386/i386-expand.c: New file.
14125 * config/i386/i386-expand.h: New file.
14126 * config/i386/i386-features.c: New file.
14127 * config/i386/i386-features.h: New file.
14128 * config/i386/i386-options.c: New file.
14129 * config/i386/i386-options.h: New file.
14130 * config.gcc: Add new files into extra_objs and
14132 * config/i386/i386.c: Split content of the file
14133 into newly introduced files.
14134 * config/i386/i386.h: Declare common variables
14136 * config/i386/t-i386: Define dependencies for new files.
14138 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
14141 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
14142 Restrict 'all' variant to 32-bit configurations.
14143 (unaligned_loadhiu): Likewise.
14144 (unaligned_storehi): Likewise.
14145 (unaligned_storesi): Likewise.
14146 (unaligned_loadhis): Disable when compiling for thumb1.
14148 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
14150 PR tree-optimization/90269
14151 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
14154 2019-05-03 Martin Liska <mliska@suse.cz>
14156 * hash-map.h: Add is_empty function.
14157 * hash-set.h: Likewise.
14158 * hash-table.h: Likewise.
14159 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
14160 elements () == 0 (and similar usages).
14161 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
14162 * gimplify.c (gimplify_bind_expr): Likewise.
14163 (gimplify_switch_expr): Likewise.
14164 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
14165 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
14166 * postreload-gcse.c (dump_hash_table): Likewise.
14167 (gcse_after_reload_main): Likewise.
14168 * predict.c (combine_predictions_for_bb): Likewise.
14169 * tree-parloops.c (reduction_phi): Likewise.
14170 (separate_decls_in_region): Likewise.
14171 (transform_to_exit_first_loop): Likewise.
14172 (gen_parallel_loop): Likewise.
14173 (gather_scalar_reductions): Likewise.
14174 (try_create_reduction_list): Likewise.
14175 * var-tracking.c (dump_vars): Likewise.
14176 (emit_notes_for_changes): Likewise.
14177 (vt_emit_notes): Likewise.
14179 2019-05-03 Richard Biener <rguenther@suse.de>
14181 PR tree-optimization/90316
14182 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
14185 2019-05-03 Richard Biener <rguenther@suse.de>
14187 * tree-vect-stmts.c (get_group_load_store_type): Avoid
14188 peeling for gaps by loading only lower halves of vectors
14190 (vectorizable_load): Likewise.
14192 2019-05-03 Richard Biener <rguenther@suse.de>
14194 PR middle-end/89518
14195 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
14197 2019-05-03 Richard Biener <rguenther@suse.de>
14199 PR middle-end/87314
14200 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
14201 Handle STRING_CST vs DECL or STRING_CST.
14203 2019-05-03 Richard Biener <rguenther@suse.de>
14205 PR tree-optimization/88963
14206 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
14207 vector loads feeding only BIT_FIELD_REFs to component
14208 loads. Rewrite stores fed by CONSTRUCTORs to component
14211 2019-05-03 Jakub Jelinek <jakub@redhat.com>
14213 * opts.h (finish_options): Remove lang_mask argument.
14214 (print_help, help_option_argument): Declare.
14215 * opts.c (print_help): Remove forward declaration, no longer static.
14216 (finish_options): Remove lang_mask argument, don't call print_help
14218 * opts-global.c (decode_options): Adjust finish_option caller, call
14221 PR tree-optimization/90303
14222 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
14223 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
14225 2019-05-03 Richard Biener <rguenther@suse.de>
14227 PR tree-optimization/89698
14228 * gimple-fold.c (canonicalize_constructor_val): Early out
14229 for constants, handle unfolded INTEGER_CSTs as they appear in
14230 C++ virtual table ctors.
14232 2019-05-03 Richard Biener <rguenther@suse.de>
14234 * passes.c (execute_function_todo): Remove dead code.
14236 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14238 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
14239 the internal register number, for any "real" register.
14241 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14243 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
14244 correct numbers for TFHAR, TFIAR, TEXASR.
14246 2019-05-02 Richard Biener <rguenther@suse.de>
14248 PR tree-optimization/89653
14249 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
14250 update-address-taken before the pass.
14251 * passes.def (pass_tree_loop_init): Put comment before it.
14253 2019-05-02 Richard Biener <rguenther@suse.de>
14255 PR tree-optimization/89509
14256 * tree-ssa-structalias.c (compute_dependence_clique): Look
14257 at the first subvar when determining whether it is restrict.
14259 2019-05-02 Richard Biener <rguenther@suse.de>
14261 PR tree-optimization/90273
14262 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
14263 useless debug stmts.
14265 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14267 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
14269 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
14271 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
14272 VEC_COND_EXPR be inserted to emulate a conditional internal function.
14273 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
14274 (vectorizable_reduction): Use the functions above to vectorize in a
14275 fully masked loop codes that don't have a conditional internal
14278 2019-05-02 Martin Liska <mliska@suse.cz>
14280 * cgraphclones.c: Call valid_attribute_p with 1 for
14282 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
14283 it's for target attribute.
14284 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
14285 Add new boolean argument.
14286 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
14288 (ix86_valid_target_attribute_tree): Pass target_clone_attr
14289 to ix86_valid_target_attribute_inner_p.
14290 (ix86_valid_target_attribute_p): Pass flags argument to
14291 ix86_valid_target_attribute_inner_p.
14292 (get_builtin_code_for_version): Use 0 as it's target attribute.
14294 2019-05-02 Martin Liska <mliska@suse.cz>
14296 * gcc.c (process_command): Add dummy file only
14298 * opts-global.c (decode_options): Pass lang_mask.
14299 * opts.c (print_help): New function.
14300 (finish_options): Print --help if help_option_argument
14302 (common_handle_option): Factor out content of OPT__help_
14304 * opts.h (finish_options): Add new argument.
14306 2019-05-02 Martin Liska <mliska@suse.cz>
14309 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
14310 With -minline-all-stringops use inline expansion using 4B loop.
14311 * doc/invoke.texi: Document the change of
14312 -minline-all-stringops.
14314 2019-05-01 Jeff Law <law@redhat.com>
14316 PR tree-optimization/88797
14317 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
14318 PHI feeds a conditional on the RHS of an assignment.
14320 2019-04-30 Andrew Waterman <andrew@sifive.com>
14321 Jim Wilson <jimw@sifive.com>
14323 * config/riscv/constraints.md (L): New.
14324 * config/riscv/predicates.md (lui_operand): New.
14325 (sfb_alu_operand): New.
14326 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
14327 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
14328 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
14329 * config/riscv/risc.md (type): Add sfb_alu.
14330 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
14331 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
14332 (branch_zero<mode>): Delete.
14333 (mov<mode>cc): New.
14334 (mov<GPR:mode><X:mode>cc): Likewise.
14335 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
14337 2019-04-30 Nathan Sidwell <nathan@acm.org>
14339 * tree.h (MARK_TS_EXP): New.
14341 2019-04-30 Martin Liska <mliska@suse.cz>
14343 * opts.c (enable_warning_as_error): Provide hints
14344 for unknown options.
14346 2019-04-30 Martin Liska <mliska@suse.cz>
14349 * doc/invoke.texi: Add missing dash for gas-locview-support
14350 and gno-as-locview-support.
14352 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14355 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
14356 whitespace at the start of target attribute string.
14358 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14361 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14362 Define __ARM_FEATURE_ATOMICS.
14364 2019-04-30 Martin Liska <mliska@suse.cz>
14366 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
14367 into built_in_function enum. Remove code for endp == 2 and
14368 use BUILT_IN_* constants.
14369 (gimple_fold_builtin): Call the function with fcode.
14371 2019-04-30 Martin Liska <mliska@suse.cz>
14373 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
14374 DECL_FUNCTION_CODE into ix86_builtins enum before
14375 the switch statement.
14377 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14379 PR tree-optimization/89475
14380 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
14383 2019-04-30 Martin Liska <mliska@suse.cz>
14385 PR translation/90274
14386 * opts.c (print_filtered_help): Wrap string in _(...).
14388 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
14390 PR tree-optimization/90240
14392 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14394 PR tree-optimization/90078
14395 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14396 checks for infinite_cost overflow.
14398 2019-04-29 Jeff Law <law@redhat.com>
14400 * passes.def: Move -Wrestrict pass after copy propagation.
14402 2019-04-29 Maya Rashish <coypu@sdf.org>
14404 * config.gcc (default_gnu_indirect_function): Default to yes
14405 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
14406 sparc*-*-netbsd*, x86_64-*-netbsd*.
14408 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
14410 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
14411 where cond2 is NE_EXPR.
14412 (is_value_included_in): Update comment.
14414 2019-04-29 Richard Biener <rguenther@suse.de>
14416 PR tree-optimization/90278
14417 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
14418 EH on comparison simplification.
14420 2019-04-29 Jason Merrill <jason@redhat.com>
14422 PR c++/82081 - tail call optimization breaks noexcept
14423 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
14424 nothrow function to a might-throw function into a tail call.
14426 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
14428 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
14429 (DDR_INNER_LOOP): Likewise.
14430 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
14431 (initialize_data_dependence_relation): Likewise.
14432 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
14434 2019-04-29 Jakub Jelinek <jakub@redhat.com>
14436 PR rtl-optimization/90257
14437 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
14441 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14445 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14448 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14451 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14453 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14455 2019-04-29 Richard Biener <rguenther@suse.de>
14457 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
14460 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
14462 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
14463 varasm.h, and netbsd-protos.h.
14465 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
14468 * config/i386/i386-protos.h (ix86_data_alignment): Change
14469 the second argument type to unsigned int.
14470 * config/i386/i386.c (ix86_data_alignment): Change "align"
14471 argument type to unsigned int.
14473 2019-04-27 Martin Liska <mliska@suse.cz>
14475 PR middle-end/90258
14476 * opt-suggestions.c (option_proposer::build_option_suggestions):
14477 When get_valid_option_values returns empty values, add the
14478 misspelling candidate.
14480 2019-04-26 Jim Wilson <jimw@sifive.com>
14482 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
14484 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
14485 Pass orig_mode to riscv_build_integer.
14486 (riscv_split_integer): Pass mode to riscv_move_integer.
14487 (riscv_legitimize_const_move): Likewise.
14488 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
14489 promoted_mode. Replace force_reg call with code to load constant into
14490 promoted reg and then subreg it for the store.
14491 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
14492 riscv_move_integer.
14494 2018-04-26 Eugene Sharygin <eush@ispras.ru>
14496 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
14499 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
14501 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
14502 commentary about the encoding of precision.
14504 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
14506 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
14507 * config/i386/t-freebsd64: New file.
14508 * config.gcc: Add the t-freebsd64 for multilib support.
14510 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
14512 * doc/extend.texi (vector_size): Add missing comma after @xref.
14514 2019-04-25 Jakub Jelinek <jakub@redhat.com>
14516 * BASE-VER: Set to 10.0.0.
14518 2019-04-25 Richard Biener <rguenther@suse.de>
14520 PR middle-end/89765
14521 * gimplify.c (gimplify_expr): Avoid turning a lvalue
14522 VIEW_CONVERT_EXPR into one operating on an rvalue.
14524 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
14527 * config/i386/i386.c (feature_priority): Moved to file scope.
14528 (processor_features): Likewise.
14529 (processor_model): Likewise.
14530 (_arch_names_table): Likewise.
14531 (arch_names_table): Likewise.
14532 (_feature_list): Removed.
14533 (feature_list): Likewise.
14534 (_isa_names_table): Moved to file scope. Add priority.
14535 (isa_names_table): Likewise.
14536 (get_builtin_code_for_version): Replace feature_list with
14537 isa_names_table. Update error message for P_ZERO priority.
14539 2019-04-25 Richard Biener <rguenther@suse.de>
14541 * tree-pass.h (make_pass_phi_only_cprop): Remove.
14542 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
14544 2019-04-24 Jeff Law <law@redhat.com>
14546 PR tree-optimization/90037
14547 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14548 * passes.def: Replace all instance of phi-only cprop with the
14549 lattice propagator. Move propagation pass from after erroneous
14550 path isolation to before erroneous path isolation.
14551 * tree-ssa-phionlycprop.c: Remove.
14553 2019-04-24 Richard Biener <rguenther@suse.de>
14555 PR middle-end/90213
14556 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14557 by size and BITS_PER_UNIT on poly-wide-ints.
14559 2019-04-25 Richard Biener <rguenther@suse.de>
14561 PR middle-end/90194
14562 * match.pd: Add pattern to simplify view-conversion of an
14565 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14567 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14568 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14569 for Go on 32 bit AIX.
14570 * config/rs6000/aix72.h: Likewise.
14572 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14575 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14576 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14578 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14581 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14582 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14583 for restored hard frame pointer.
14584 (s390_sched_dependencies_evaluation): Implement new target hook.
14585 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14587 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14589 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14590 * config/arc/arc.c (arc_init): Cleanup warning message.
14591 (arc_override_options): Likewise.
14593 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14596 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14597 a register if both if_true and if_false are MEMs.
14599 PR tree-optimization/90208
14600 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14601 after labels of new_bb, not before them.
14603 PR tree-optimization/90211
14604 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14605 which are not SSA_NAMEs.
14607 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14609 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14611 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14613 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14615 PR rtl-optimization/87979
14616 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14619 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14621 PR rtl-optimization/84032
14622 * modulo-sched.c (ps_insn_find_column): Change condition so that
14623 branch will always be the last insn in a row inside partial
14626 2019-04-23 Richard Biener <rguenther@suse.de>
14629 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14630 dest_single_pred_p argument.
14631 (remove_forwarder_block): Adjust.
14632 (remove_forwarder_block_with_phi): Likewise.
14634 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14635 Bernd Edlinger <bernd.edlinger@hotmail.de>
14636 Jakub Jelinek <jakub@redhat.com>
14639 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14640 if used with general-regs-only.
14641 (arm_conditional_register_usage): Don't add non-general regs if
14643 (arm_valid_target_attribute_rec): Handle general-regs-only.
14644 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14646 (TARGET_HARD_FLOAT_SUB): Define.
14647 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14648 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14649 (TARGET_REALLY_IWMMXT2): Likewise.
14650 * config/arm/arm.opt: Add -mgeneral-regs-only.
14651 * doc/extend.texi: Document ARM general-regs-only target.
14652 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14654 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14656 PR tree-optimization/90078
14657 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14658 checks for infinite_cost overflow.
14660 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14662 PR tree-optimization/90021
14663 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14664 and check univariate against it.
14665 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14666 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14668 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14672 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14675 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14678 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14680 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14682 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14684 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14685 names using operand format, rather than hard-wired.
14686 (speculation_barrier): Likewise.
14688 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14690 PR tree-optimization/88055
14691 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14692 (gen_one_condition): Use it if !HONOR_NANS.
14694 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14696 PR middle-end/90139
14697 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14698 assign_temp instead of gen_reg_rtx.
14700 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14702 PR translation/90118
14703 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14704 Add missing space before %<.
14706 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14708 PR rtl-optimization/87871
14709 * ira-lives.c (make_object_dead): Don't add conflicts to
14710 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14712 2019-04-18 Martin Sebor <msebor@redhat.com>
14714 PR middle-end/89797
14715 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14716 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14717 assuming type size fits in SHWI.
14719 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14722 * ipa-inline.c (flatten_function): New parameter UPDATE.
14723 (ipa_inline, early_inliner): Use it.
14725 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14727 * fold-const.c (int_const_binop): Return early on failure.
14729 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14731 PR middle-end/85164
14732 * combine.c (force_int_to_mode): Cast the argument rather than
14733 the result of known_alignment.
14734 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14736 2019-04-18 Richard Biener <rguenther@suse.de>
14739 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14741 (remove_forwarder_block): ... here.
14742 (remove_forwarder_block_with_phi): Also move debug stmts here.
14744 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14746 PR translation/79183
14747 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14748 inform where appropriate.
14750 2019-04-18 Richard Biener <rguenther@suse.de>
14752 * tree.c (get_qualified_type): Put found type variants at the
14753 head of the variant list.
14755 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14757 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14759 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14762 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14763 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14764 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14765 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14766 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14768 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14770 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14771 even for allocno's with no conflicts.
14772 (print_conflicts): Print an extra newline.
14774 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14776 * auto-inc-dec.c (attempt_change): Set the alignment of the
14777 temporary memory to that of the original.
14779 2019-04-17 Joao Moreira <jmoreira@suse.de>
14781 * targhooks.c (default_print_patchable_function_entry): Emit
14782 __patchable_function_entries section with writable flags to allow
14783 relocation resolution.
14785 2019-04-17 Jonny Grant <jg@jguk.org>
14787 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14789 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14791 PR middle-end/90095
14792 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14793 on lowpart SUBREGs.
14795 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14797 * config/arc/arc.c (arc_init): Format diagnostic string.
14798 (arc_override_options): Likewise.
14799 (check_if_valid_regno_const): Likewise.
14800 (arc_reorg): Likewise.
14802 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14805 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14807 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14809 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14810 (*movdi_update1): Use Pmode.
14811 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14812 (movdi_<mode>_update_stack): Rename to ...
14813 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14815 (*movsi_update1): Use Pmode.
14816 (*movsi_update2): Use Pmode.
14817 (movsi_update): Rename to ...
14818 (movsi_<mode>_update): ... this. Use Pmode.
14819 (movsi_update_stack): Fix condition.
14820 (*movhi_update1): Use Pmode. Fix argument to
14821 avoiding_indexed_address_p.
14822 (*movhi_update2): Ditto.
14823 (*movhi_update3): Ditto.
14824 (*movhi_update4): Ditto.
14825 (*movqi_update1): Ditto.
14826 (*movqi_update2): Ditto.
14827 (*movqi_update3): Ditto.
14828 (*movsf_update1, *movdf_update1): Merge, rename to...
14829 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14830 avoiding_indexed_address_p. Add "size" attribute.
14831 (*movsf_update2, *movdf_update2): Merge, rename to...
14832 (*mov<mode>_update2): This. Ditto.
14833 (*movsf_update3): Use Pmode. Fix argument to
14834 avoiding_indexed_address_p.
14835 (*movsf_update4): Ditto.
14836 (allocate_stack): Simplify condition. Adjust pattern names.
14838 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14841 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14842 whitespace at the start of target attribute string.
14844 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14847 * config/rs6000/power9.md: Add store forwarding bypass.
14849 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14852 * valtrack.c (dead_debug_insert_temp): Reset debug references
14853 to the return value of a call being removed.
14855 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14857 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14858 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14859 implement target hook.
14860 (arc_memory_move_cost): New function.
14861 (TARGET_REGISTER_MOVE_COST): Define.
14862 (TARGET_MEMORY_MOVE_COST): Likewise.
14863 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14864 (MEMORY_MOVE_COST): Likewise.
14866 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14868 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14869 (sibcall_value_insn): Likewise.
14870 * config/arc/constraints.md (Rs5): Remove.
14872 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14874 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14875 for last two fake registers.
14876 (arc_conditional_register_usage): Make sure fake frame and arg
14877 pointer regs are in general regs class.
14878 (FRAME_POINTER_MASK): Remove.
14879 (RETURN_ADDR_MASK): Remove.
14880 (arc_must_save_register): Use hard frame regnum.
14881 (frame_restore_reg): Use hard_frame_pointer_rtx.
14882 (arc_save_callee_saves): Likewise.
14883 (arc_restore_callee_saves): Likewise.
14884 (arc_save_callee_enter): Likewise.
14885 (arc_restore_callee_leave): Likewise.
14886 (arc_save_callee_milli): Likewise.
14887 (arc_eh_return_address_location): Likewise.
14888 (arc_check_multi): Use hard frame regnum.
14889 (arc_can_eliminate): Likewise.
14890 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14891 for register allocator.
14892 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14893 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14894 (FRAME_POINTER_REGNUM): Change it to a fake register.
14895 (HARD_FRAME_POINTER_REGNUM): Defined.
14896 (ARG_POINTER_REGNUM): Change it to a new fake register.
14897 (ELIMINABLE_REGS): Update.
14898 (REGISTER_NAMES): Update names.
14899 * config/arc/arc.md (LP_START): Remove.
14900 (LP_END): Likewise.
14901 (shift_si3_loop): Update pattern.
14903 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14905 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14906 to avoid delay slot scheduling.
14907 (arc_must_save_register): Don't save SP.
14908 * config/arc/arc.md (stack_tie): Remove.
14909 (UNSPEC_ARC_STKTIE): Likewise.
14911 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14912 Shiva Chen <shiva0217@gmail.com>
14914 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14915 code gen with large shift amount.
14917 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14919 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14922 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14925 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14926 print -m64/-mx32/-m32 if it is true.
14927 (ix86_debug_options, ix86_function_specific_print): Pass true as
14928 ADD_ABI_P to ix86_target_string.
14929 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14930 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14931 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14933 PR rtl-optimization/90082
14934 * dce.c (can_delete_call): New function.
14935 (deletable_insn_p, mark_insn): Use it.
14937 PR tree-optimization/90090
14938 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14940 (is_division_by_square): Likewise. Formatting fix.
14942 2019-04-16 Richard Biener <rguenther@suse.de>
14944 PR tree-optimization/56049
14945 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14946 equality check if alias-set zero will prevail.
14948 2019-04-15 Jeff Law <law@redhat.com>
14950 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14951 size and alignment as unsigned.
14953 2019-04-15 Richard Biener <rguenther@suse.de>
14956 * tree-loop-distribution.c (destroy_loop): Preserve correct
14959 2019-04-15 Richard Biener <rguenther@suse.de>
14961 PR tree-optimization/90071
14962 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14963 abnormal operands from def stmts.
14965 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14967 PR rtl-optimization/89794
14968 * combine.c (count_auto_inc): New function.
14969 (try_combine): Count how many auto_inc expressions there were in the
14970 original instructions. Ensure we have the same number in the new
14971 instructions. Remove the code that tried to ensure auto_inc side
14972 effects on i1 and i0 are not lost.
14974 2019-04-15 Richard Biener <rguenther@suse.de>
14977 * tree.h (auto_var_p): Declare.
14978 * tree.c (auto_var_p): New function, split out from ...
14979 (auto_var_in_fn_p): ... here.
14980 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14982 (new_var_info): Initialize it.
14983 (set_uids_in_ptset): Also set the shadow variable uid if required.
14984 (ipa_pta_execute): Postprocess points-to solutions assigning
14985 shadow variable uids for locals that may reach their containing
14986 function recursively.
14987 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14988 assert but instead check whether the points-to solution is
14991 2019-04-15 Martin Jambor <mjambor@suse.cz>
14994 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14997 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14999 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
15001 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
15002 Kito Cheng <kito.cheng@gmail.com>
15003 Shiva Chen <shiva0217@gmail.com>
15005 * config/nds32/nds32-md-auxiliary.c
15006 (nds32_legitimize_pic_address): Use new PIC pattern.
15007 (nds32_legitimize_tls_address): Use new TLS pattern.
15008 (nds32_output_symrel): New.
15009 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
15010 (nds32_alloc_relax_group_id): Ditto.
15011 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
15012 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
15014 (nds32_group_tls_insn): Ditto.
15015 (nds32_group_float_insns): Ditto.
15016 * config/nds32/nds32.md (tls_le): New.
15019 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
15021 * configure: Add nds32 target for dwarf2 debug_line checking.
15022 * configure.ac: Regenerated.
15024 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
15027 * ipa-devirt.c (skip_in_fields_list_p): New.
15028 (odr_types_equivalent_p): Use it.
15030 2019-04-13 Jakub Jelinek <jakub@redhat.com>
15033 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
15034 instead of strncmp when checking for thumb and arm. Formatting fixes.
15036 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
15038 * doc/install.texi: Document --with-target-system-zlib.
15040 2019-04-12 Martin Sebor <msebor@redhat.com>
15046 * targhooks.c (default_vector_alignment): Avoid assuming
15047 argument fits in SHWI.
15048 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
15049 a shift expression.
15050 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
15052 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15054 PR rtl-optimization/89965
15055 * dce.c: Include rtl-iter.h.
15056 (struct check_argument_load_data): New type.
15057 (check_argument_load): New function.
15058 (find_call_stack_args): Check for loads from stack slots still tracked
15059 in sp_bytes and punt if any is found.
15061 * config/mips/loongson-mmiintrin.h: Fix up #error message.
15063 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
15065 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
15066 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
15068 2019-04-12 Martin Liska <mliska@suse.cz>
15070 PR middle-end/89970
15071 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
15073 (separate_attrs): Handle multiple 'default's.
15074 (expand_target_clones): Rework error handling code.
15076 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
15079 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
15080 mode of vector rather than mode of destination for move instruction.
15081 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
15082 Use QI inner mode with V16QI vector mode.
15084 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15087 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
15088 "invalid %%t operand" in output_operand_lossage message.
15090 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
15092 * config/s390/predicates.md (permute_pattern_operand): New
15094 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
15095 operand for the permute pattern.
15096 ("*vec_perm<mode>"): New insn definition.
15097 ("bswap<mode>"): Generate the permute pattern operand in the
15098 expander and perform the operand reloads for pre arch13 level
15100 ("*bswap<mode>_emu"): Rename to ...
15101 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
15102 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
15103 Add the USE operand for the permute pattern.
15104 ("*vec_set_bswap_vec<mode>"): Likewise.
15106 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15109 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
15110 and gcc_unreachable if it fails, just call tree_to_uhwi which
15111 verifies that too. Test TREE_CHAIN instead of list_length > 1.
15112 Start warning message with a lower-case letter. Formatting fixes.
15114 PR rtl-optimization/90026
15115 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
15116 successors, look for BARRIERs inside of the whole BB_FOOTER chain
15117 rather than just at the start of it. If e->src BB_FOOTER is not NULL
15118 in cfglayout mode, use emit_barrier_after_bb.
15120 2018-04-11 Steve Ellcey <sellcey@marvell.com>
15122 PR rtl-optimization/87763
15123 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
15126 2019-04-11 Tom de Vries <tdevries@suse.de>
15128 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
15129 max macro using statement expression.
15131 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
15133 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
15134 * xcoffout.c (xcoff_private_rodata_section_name): Define.
15135 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
15136 read_only_private_data_section using xcoff_private_rodata_section_name.
15137 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
15139 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
15142 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
15144 2019-04-11 Jakub Jelinek <jakub@redhat.com>
15146 PR rtl-optimization/89965
15147 * dce.c (sp_based_mem_offset): New function.
15148 (find_call_stack_args): Use sp_based_mem_offset.
15150 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
15152 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
15154 2019-04-11 Richard Biener <rguenther@suse.de>
15156 PR tree-optimization/90020
15157 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
15158 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
15159 * tree-ssa-pre.c (compute_avail): Use it to not put
15160 possibly trapping references after a call that might not
15161 return into EXP_GEN.
15162 * gcse.c (compute_hash_table_work): Do not elide
15163 marking a block containing a call if the call might not
15166 2019-04-11 Richard Biener <rguenther@suse.de>
15168 PR tree-optimization/90018
15169 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
15170 Test both SLP and interleaving variants.
15172 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
15174 * config/s390/8561.md: New file.
15175 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15176 Add arch13 cpu model.
15177 * config/s390/s390-opts.h (enum processor_type): Likewise.
15178 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
15179 (s390_get_unit_mask): Likewise.
15180 (s390_is_fpd): Likewise.
15181 (s390_is_fxd): Likewise.
15182 * config/s390/s390.h (s390_tune_attr): Likewise.
15183 * config/s390/s390.md: Include arch13 pipeline description.
15184 * config/s390/s390.opt: Add arch13.
15186 2018-04-10 Steve Ellcey <sellcey@marvell.com>
15188 PR rtl-optimization/87763
15189 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
15191 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
15193 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
15195 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
15196 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
15197 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
15198 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
15200 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
15202 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
15203 "Although" in -fipa-icf documentation.
15205 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
15206 of using multiple -g options.
15208 2019-04-10 Martin Liska <mliska@suse.cz>
15210 PR gcov-profile/89959
15211 * doc/gcov.texi: Make documentation of -x option
15214 2019-04-10 Richard Biener <rguenther@suse.de>
15216 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
15218 (DR_GROUP_SAME_DR_STMT): Remove.
15219 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
15220 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
15221 replace with assert.
15222 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
15223 (vect_record_grouped_load_vectors): Remove unreachable code.
15225 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
15228 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
15229 obsolete reference to N.
15231 2019-04-10 Jakub Jelinek <jakub@redhat.com>
15233 PR middle-end/90025
15234 * expr.c (store_expr): Set properly size on the MEM passed to
15238 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
15239 with strlen in between hostsz-3 and hostsz-1 inclusive when no
15240 translation is needed, and when translation is needed, only append
15241 ... if the string length is hostsz or more bytes long. Avoid using
15244 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
15247 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
15248 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
15250 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
15251 differences directly.
15252 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
15254 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15256 PR translation/90011
15257 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15259 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
15261 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15262 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
15263 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
15264 trailing space from -gsplit-dwarf diagnostics.
15266 PR tree-optimization/89998
15267 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
15268 instead of integer_type_node if possible, don't add ranges if return
15269 type is not compatible with int.
15270 * gimple-fold.c (gimple_fold_builtin_sprintf,
15271 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
15274 2019-04-09 Martin Liska <mliska@suse.cz>
15276 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
15277 * doc/install.texi: Document the new config.
15279 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
15281 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
15282 use gimple_expr_type for load and store calls. Skip over the
15283 condition argument in a conditional internal function.
15284 Protect use of TREE_INT_CST_LOW.
15286 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15289 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
15290 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
15291 trailing period from it too.
15293 2019-04-08 wu yuan <wuyuan5@huawei.com>
15295 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
15296 * config/aarch64/aarch64.md : Add "tsv110.md"
15297 * config/aarch64/tsv110.md: New file.
15299 2019-04-08 Richard Biener <rguenther@suse.de>
15301 PR tree-optimization/90006
15302 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15305 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
15308 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
15310 (fma_root_node): Likewise.
15311 (func_fma_steering): Likewise.
15313 2019-04-08 Jakub Jelinek <jakub@redhat.com>
15315 PR rtl-optimization/89865
15316 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
15318 PR rtl-optimization/89865
15319 * config/i386/i386.md
15320 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
15321 numbers not to clash with the additional operands[4].
15322 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
15323 with extra register copy in the middle.
15325 2019-04-08 Martin Liska <mliska@suse.cz>
15327 PR gcov-profile/89961
15328 * doc/gcov.texi: Document data_file.
15329 * gcov.c (generate_results): Add data_info into JSON output.
15331 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
15333 PR tree-optimization/89725
15334 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
15335 loop's chrec as invariant symbol.
15336 * tree-chrec.h (chrec_contains_symbols): New parameter.
15337 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
15338 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
15339 function of loops not in DDR's loop_nest.
15340 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
15342 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
15345 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
15348 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
15351 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15352 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
15354 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
15356 * sched-deps.c (sched_macro_fuse_insns): Check return value of
15357 targetm.fixed_condition_code_regs.
15359 2019-04-05 Richard Biener <rguenther@suse.de>
15363 * tree-cfgcleanup.c (remove_forwarder_block): Always move
15364 debug bind stmts but reset them if they are not valid at the
15367 2019-04-05 Martin Liska <mliska@suse.cz>
15369 PR translation/89936
15370 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
15371 order to wrap keywords or arguments.
15372 * collect2.c (main): Likewise.
15373 (scan_prog_file): Likewise.
15374 (scan_libraries): Likewise.
15375 * common/config/riscv/riscv-common.c
15376 (riscv_subset_list::parsing_subset_version): Likewise.
15377 (riscv_subset_list::parse_std_ext): Likewise.
15378 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15380 * config/arm/arm.c (arm_option_override): Likewise.
15381 * config/cris/cris.c (cris_print_operand): Likewise.
15382 * config/darwin-c.c (darwin_pragma_options): Likewise.
15383 (darwin_pragma_unused): Likewise.
15384 (darwin_pragma_ms_struct): Likewise.
15385 * config/ft32/ft32.c (ft32_print_operand): Likewise.
15386 * config/i386/i386.c (print_reg): Likewise.
15387 (ix86_print_operand): Likewise.
15388 * config/i386/xm-djgpp.h: Likewise.
15389 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
15390 * config/m32c/m32c.c (m32c_option_override): Likewise.
15391 * config/msp430/msp430.c (msp430_option_override): Likewise.
15392 * config/nds32/nds32.c (nds32_option_override): Likewise.
15393 * config/nvptx/mkoffload.c (main): Likewise.
15394 * config/rx/rx.c (rx_print_operand): Likewise.
15395 (valid_psw_flag): Likewise.
15396 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
15397 (vms_pragma_nomember_alignment): Likewise.
15398 (vms_pragma_extern_model): Likewise.
15399 * lto-wrapper.c (compile_offload_image): Likewise.
15400 * omp-offload.c (oacc_parse_default_dims): Likewise.
15401 * symtab.c (symtab_node::verify_base): Likewise.
15402 * tlink.c (recompile_files): Likewise.
15403 (start_tweaking): Likewise.
15404 * tree-profile.c (parse_profile_filter): Likewise.
15406 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
15408 PR tree-optimization/89956
15409 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
15410 multiple negates of the same value.
15412 2019-04-04 Martin Sebor <msebor@redhat.com>
15414 PR middle-end/89957
15415 PR middle-end/89911
15416 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
15417 have the same precision since the function crashes otherwise.
15418 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
15419 has non-zero arguments.
15421 2019-04-04 Martin Sebor <msebor@redhat.com>
15423 PR middle-end/89934
15424 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
15425 out if the number of arguments is less than expected.
15427 2019-04-04 Jeff Law <law@redhat.com>
15429 PR rtl-optimization/89399
15430 * ree.c (combine_set_extension): Use single_set rather than
15431 digging into PATTERN for items on the candidate list.
15432 (combine_reaching_defs): Likewise.
15434 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
15436 PR rtl-optimization/46590
15437 * loop-invariant.c (find_defs): Move df_remove_problem and
15438 df_process_deferred_rescans to move_invariants.
15439 Move df_live_add_problem and df_live_set_all_dirty calls
15440 to move_invariants.
15441 (move_invariants): Likewise.
15442 (move_loop_invariants): Likewise, making the df_live calls
15443 conditional on -O. Remove the problem again if we added it
15446 2019-04-03 qing zhao <qing.zhao@oracle.com>
15448 PR tree-optimization/89730
15449 * ipa-inline.c (can_inline_edge_p): Delete the checking for
15450 -flive-patching=inline-only-static.
15451 (can_inline_edge_by_limits_p): Add the checking for
15452 -flive-patching=inline-only-static and grant always_inline
15453 even when -flive-patching=inline-only-static is specified.
15455 2019-04-03 Jeff Law <law@redhat.com>
15457 PR rtl-optimization/81025
15458 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
15460 2019-04-03 Richard Biener <rguenther@suse.de>
15462 PR tree-optimization/84101
15463 * tree-vect-stmts.c: Include explow.h for hard_function_value,
15464 regs.h for hard_regno_nregs.
15465 (cfun_returns): New helper.
15466 (vect_model_store_cost): When vectorizing a store to a decl
15467 we return and the function ABI returns in a multi-reg location
15468 account for the possible spilling that will happen.
15470 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15472 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15473 displacement addresses for vector mode operands.
15475 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
15477 * config/arc/arc.c (GMASK_LEN): Define.
15478 (arc_restore_callee_saves): Restore first blink when
15481 2019-04-03 Sudakshina Das <sudi.das@arm.com>
15483 * doc/extend.texi: Add deprecated comment on sign-return-address
15484 function attribute and add mbranch-protection.
15485 * doc/invoke.texi: Add bti to the options for mbranch-protection.
15487 2019-04-03 Richard Biener <rguenther@suse.de>
15490 * lto-wrapper.c (run_gcc): Avoid implicit rules making
15491 the all target phony.
15493 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
15497 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
15498 Return false for variable DImode shifts.
15499 (dimode_scalar_chain::compute_convert_gain): Do not handle
15500 register count operand in variable DImode shifts.
15501 (dimode_scalar_chain::make_vector_copies): Remove support to copy
15502 count argument of a variable shift instruction to a vector register.
15503 (dimode_scalar_chain::convert_reg): Remove support to convert
15504 count argument of a variable shift instruction.
15506 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15508 PR rtl-optimization/84206
15509 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
15510 iterating over loop headers.
15512 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15514 PR rtl-optimization/85876
15515 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
15516 beyond the original fence.
15518 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
15520 * config.gcc: Mark spu* targets as deprecated/obsolete.
15522 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15524 * config/s390/s390-builtin-types.def: New builtin function type
15525 definitions. Remove unused types.
15526 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
15527 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
15528 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
15529 overloaded builtins.
15530 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
15531 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
15532 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
15533 (vec_double, vec_signed, vec_unsigned): Define to use the new
15534 overloaded builtins.
15535 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
15538 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15540 * config/s390/s390-builtin-types.def: New builtin function type
15542 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
15543 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
15544 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
15545 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15546 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15547 constant definitions.
15548 * config/s390/vecintrin.h (vec_search_string_cc)
15549 (vec_search_string_until_zero_cc): New builtin name definitions.
15550 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15552 ("vec_vstrs<mode>"): New insn definition.
15554 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15556 * config/s390/s390-builtin-types.def: Add new builtin function
15558 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15559 New overloaded builtins.
15560 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15562 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15563 (UNSPEC_VEC_SLDBYTE): ... this.
15564 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15565 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15567 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15568 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15569 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15573 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15574 New insn definition.
15575 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15576 * config/s390/vector.md (V_HW_HSD): ... here.
15578 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15580 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15581 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15582 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15583 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15584 New insn definitions.
15586 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15588 * config/s390/s390-builtin-types.def: Add new builtin function type.
15589 * config/s390/s390-builtins.def: Add overloaded builtin
15590 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15591 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15592 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15593 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15594 ("eltswap<mode>"): New expander.
15595 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15598 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15600 * config/s390/s390-builtin-types.def: Add new builtin function types.
15601 * config/s390/s390-builtins.def: Add overloaded builtin
15602 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15604 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15605 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15606 ("bswap<mode>"): New expander.
15607 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15609 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15611 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15612 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15613 vector builtin version number in __VEC__.
15615 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15617 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15619 (SFSI): New mode attribute.
15620 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15621 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15623 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15624 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15625 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15626 ("floatsi<mode>2"): Add wcefb instruction.
15628 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15630 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15631 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15633 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15634 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15635 support 32 bit fp-int conversions. Rename to ...
15636 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15637 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15638 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15639 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15644 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15645 if-then-else constructs if we can use the select instruction.
15646 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15648 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15650 * config/s390/s390.md ("*popcountdi_arch13_cc")
15651 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15653 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15654 Append _z196 to make it ...
15655 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15656 ("popcounthi2_z196"): ... this.
15657 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15658 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15660 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15662 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15663 certain compares for arch13 in order to make use of the condition
15664 code result produced by the new instructions.
15665 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15666 nxrk, and nxgrk instruction patterns.
15667 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15668 (inv_no): Add new code iterator together with some attributes.
15669 ("*andc_split_<mode>"): Disable splitter for arch13.
15670 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15671 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15672 ("*<ANDOR:bitops_name>c<GPR:mode>")
15673 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15674 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15675 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15676 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15678 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15680 * common/config/s390/s390-common.c (processor_flags_table): New
15682 * config.gcc: Support arch13 with the --with-arch= configure flag.
15683 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15684 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15685 * config/s390/s390.c (s390_get_sched_attrmask)
15686 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15687 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15688 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15689 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15690 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15692 * config/s390/s390.opt: Support arch13 as processor type in
15693 command line options.
15695 2019-04-02 Martin Liska <mliska@suse.cz>
15697 PR translation/89912
15698 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15699 Fix param description of graphite-max-arrays-per-scop.
15701 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15703 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15704 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15705 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15707 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15709 PR rtl-optimization/85412
15710 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15711 sel_sched_region_1, not after.
15713 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15715 PR rtl-optimization/86928
15716 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15717 compute_live if necessary.
15718 (sel_redirect_edge_and_branch): Likewise.
15720 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15722 PR rtl-optimization/89865
15723 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15724 register if it is a part of small class.
15726 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15728 PR rtl-optimization/87273
15729 * sel-sched-ir.c (merge_fences): Remove assert.
15731 2019-04-01 Richard Biener <rguenther@suse.de>
15733 PR tree-optimization/46590
15734 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15735 (dom_walker::m_reachability): Add in place of...
15736 (dom_walker::m_skip_unreachable_blocks): ...this.
15737 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15738 Move complex initialization ...
15739 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15740 lazily and initialize edge flags on each invocation.
15741 (dom_walker::bb_reachable): Use m_reachability.
15743 2019-04-01 Martin Liska <mliska@suse.cz>
15746 * opt-suggestions.c (option_proposer::build_option_suggestions):
15747 Add variant without any argument in order to provide better
15750 2019-04-01 Richard Biener <rguenther@suse.de>
15753 * gimple.c: Include langhooks.h.
15754 (gimple_get_alias_set): Treat enumeral types as the underlying
15757 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15758 Eric Botcazou <ebotcazou@adacore.com>
15760 PR rtl-optimization/89862
15761 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15762 that operates on the full registers for WORD_REGISTER_OPERATIONS
15765 2019-03-29 Jim Wilson <jimw@sifive.com>
15767 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15768 Clear MASK_RVC and then set if C subset supported.
15770 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15773 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15774 non-addressable complit into its initializer if it is volatile.
15776 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15778 * opts-common.c (integral_argument): Set errno properly in one case.
15780 2019-03-29 Martin Liska <mliska@suse.cz>
15782 * doc/invoke.texi: Remove -Wchkp from documentation.
15784 2019-03-29 Martin Liska <mliska@suse.cz>
15786 * dbgcnt.c (print_limit_reach): New function.
15789 2019-03-29 Martin Liska <mliska@suse.cz>
15791 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15792 (dbg_cnt_process_opt): Parse first tokens aas
15793 dbg_cnt_process_single_pair is also using strtok.
15795 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15797 PR rtl-optimization/87485
15798 * function.c (expand_function_end): Move stack_protect_epilogue
15799 before loading of return value into hard register(s).
15801 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15803 PR middle-end/89621
15804 * tree-inline.h (struct copy_body_data): Add
15805 dont_remap_vla_if_no_change flag.
15806 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15807 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15808 and remap_type_2 returns false.
15809 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15810 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15811 only from where it is copied to nested contexts.
15813 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15816 * config/i386/i386.md (RMW operation with LEA peephole):
15817 Use LEAMODE mode attribute instead of SWI mode iterator for
15820 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15823 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15824 Also process XEXP (src, 0) of a shift insn.
15826 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15828 PR middle-end/89725
15829 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15830 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15832 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15834 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15836 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15837 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15838 immediately after first one with df_analyze in between, but rather
15839 process all bbs, queueing ones that need second pass in a worklist,
15840 df_analyze, process queued debug insn changes and if second pass is
15841 needed, process bbs from worklist, df_analyze, process queued debug
15844 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15845 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15846 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15848 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15851 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15854 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15857 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15858 function for 32-bit MS_ABI.
15859 (function_value_ms_32): New function.
15861 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15863 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15864 (movdi): Call gen_movdi_symbol_save_scc.
15865 (gen_movdi_symbol_save_scc): New insn and split.
15867 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15869 PR rtl-optimization/89313
15870 * function.c (matching_constraint_num): New static function.
15871 (match_asm_constraints_1): Use it. Fixup white space and comment.
15872 Don't replace inputs with non-matching constraints which conflict
15873 with early clobber outputs.
15875 2019-03-27 Jeff Law <law@redhat.com>
15877 PR rtl-optimization/87761
15878 PR rtl-optimization/89826
15879 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15881 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15882 note problem to get REG_DEAD/REG_UNUSED notes updated.
15884 2019-03-27 Richard Biener <rguenther@suse.de>
15886 PR tree-optimization/89463
15887 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15888 queue edges to remove.
15889 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15890 dead stmts. Delay edge removal until PHIs are removed to
15891 make debug-stmt creation not confused by seemingly degenerate
15894 2019-03-27 Alan Modra <amodra@gmail.com>
15896 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15898 * config/rs6000/darwin.h: Likewise.
15899 * config/rs6000/rs6000.c: Likewise.
15901 2019-03-27 Alan Modra <amodra@gmail.com>
15903 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15904 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15906 2019-03-26 Andrew Waterman <andrew@sifive.com>
15907 Jim Wilson <jimw@sifive.com>
15909 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15910 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15911 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15912 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15913 (generic_alu): Add auipc to type list.
15914 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15915 (riscv_microarchitecture): Declare.
15916 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15917 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15919 (riscv_microarchitecture): New.
15920 (sifive_7_tune_info): New.
15921 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15922 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15924 (riscv_store_data_bypass_p): New.
15925 (riscv_option_override): Set riscv_microarchitecture from
15926 cpu->microarchitecture.
15927 * config/riscv/riscv.md: Include sifive-7.md.
15930 (auipc<mode>): Change type to auipc.
15931 (restore_stack_nonlocal): New.
15932 * config/riscv/sifive-7.md: New.
15933 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15935 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15938 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15939 Also process XEXP (src, 0) of a shift insn.
15941 2019-03-26 Richard Biener <rguenther@suse.de>
15943 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15944 (copy_debug_stmt): Likewise.
15945 (expand_call_inline): Likewise.
15946 (copy_bb): Avoid redundant lookup & set of gimple_block.
15947 * gimple-low.c (lower_gimple_return): Likewise.
15948 (lower_builtin_setjmp): Likewise.
15950 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15952 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15953 is constant 0, turn into static const data member initialized to false.
15954 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15955 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15957 2019-03-26 Jason Merrill <jason@redhat.com>
15958 Jakub Jelinek <jakub@redhat.com>
15960 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15962 (mem_alloc_description::release_object_overhead): Fix comment typos.
15963 * hash-table.h (hash_table::~hash_table): Call
15964 release_instance_overhead only if m_entries is non-NULL, otherwise
15965 call unregister_descriptor.
15967 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15969 PR tree-optimization/81740
15970 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15971 In case of outer loop vectorization, check for backward dependence
15972 at the inner loop if outer loop dependence is reversed.
15974 2019-03-26 Alan Modra <amodra@gmail.com>
15976 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15977 rs6000_vector_mem init. Correct wI and wJ comment.
15979 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15981 PR rtl-optimization/88347
15982 PR rtl-optimization/88423
15983 * sched-deps.c (sched_analyze_insn): Take into account that for
15984 tablejumps the barrier appears after a label and a jump_table_data.
15986 2019-03-25 Martin Sebor <msebor@redhat.com>
15989 * c-common.c (check_user_alignment): Rename local. Correct maximum
15990 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15991 convert it to UHWI when it fits.
15993 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15996 * dwarf2out.c (premark_used_variables): New function.
15997 (prune_unused_types_walk): Do not mark not premarked external
15999 (prune_unused_types): Call premark_used_variables.
16001 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
16003 PR rtl-optimization/89676
16004 * lra-constraints.c (curr_insn_transform): Do match reload for
16005 early clobbers when the match was successful only for different
16008 2019-03-25 Martin Sebor <msebor@redhat.com>
16010 * doc/extend.texi (Common Type Attributes): Document vector_size.
16011 (Common Variable Attributes): Mention size constraint. Correct
16013 (Vector Extensions): Use @dfn when defining bas type. Clarify
16014 base type and size constraints.
16016 2019-03-25 Richard Biener <rguenther@suse.de>
16018 PR tree-optimization/89789
16019 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
16020 changes from non-undefined back to undefined.
16022 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
16024 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
16025 heap string and a gc string, but since this variable is unknown to
16026 ggc the gc string might get reused and corrupted. Fixed by always
16027 using a heap string.
16029 2019-03-25 Richard Biener <rguenther@suse.de>
16031 PR tree-optimization/89779
16032 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
16033 to remove IV defs, delay actual removal.
16034 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
16035 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
16036 very end, properly also reset loop control IV information.
16038 2019-03-25 Richard Biener <rguenther@suse.de>
16040 PR tree-optimization/89802
16041 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
16042 move EH data to folded stmt.
16044 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16046 * config/s390/s390-builtin-types.def: Remove few unused types and
16047 fix sort order for others.
16049 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16051 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
16052 expected and found types with -mdebug during builtin matching.
16054 2019-03-25 Richard Biener <rguenther@suse.de>
16056 PR middle-end/89790
16057 * fold-const.c (operand_equal_p): Revert last change with
16060 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
16062 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
16063 notes for the result of the __tls_get_addr calls.
16064 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
16066 2019-03-24 Jeff Law <law@redhat.com>
16068 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
16070 PR rtl-optimization/87761
16071 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
16072 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
16074 (pass_cprop_hardreg::execute): Add df note problem and defer insn
16075 rescans. Reprocess blocks as needed, calling df_analyze before
16076 reprocessing. Always call df_analyze before fixing up debug bind
16079 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
16081 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
16084 2019-03-22 Andrew Pinski <apinski@marvell.com>
16086 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
16087 attrribute for uxtw.
16089 2019-03-26 Jeff Law <law@redhat.com>
16091 PR rtl-optimization/87761
16092 * config/mips/mips-protos.h (mips_split_move): Add new argument.
16093 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
16094 (mips_split_move): Accept new INSN argument. Try to forward SRC
16095 into the next instruction.
16096 (mips_split_move_insn): Pass INSN through to mips_split_move.
16098 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
16100 PR rtl-optimization/89676
16101 * lra-constraints.c (curr_insn_transform): Do match reload for
16102 early clobbers even if the match was successful.
16104 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16107 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
16109 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
16111 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
16113 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16115 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
16116 <avx512>_fmsub_<mode>_mask3<round_name>,
16117 <avx512>_fnmadd_<mode>_mask3<round_name>,
16118 <avx512>_fnmsub_<mode>_mask3<round_name>,
16119 avx512f_vmfmadd_<mode>_mask3<round_name>,
16120 avx512f_vmfmsub_<mode>_mask3<round_name>,
16121 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
16122 instead of register_operand and %v instead of v for match_operand 1.
16123 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
16124 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
16125 <round_nimm_predicate> instead of register_operand and %v instead of v
16126 for match_operand 1.
16128 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
16129 <avx512>_fmadd_<mode>_mask3<round_name>,
16130 <avx512>_fmsub_<mode>_mask<round_name>,
16131 <avx512>_fmsub_<mode>_mask3<round_name>,
16132 <avx512>_fnmadd_<mode>_mask<round_name>,
16133 <avx512>_fnmadd_<mode>_mask3<round_name>,
16134 <avx512>_fnmsub_<mode>_mask<round_name>,
16135 <avx512>_fnmsub_<mode>_mask3<round_name>,
16136 <avx512>_fmaddsub_<mode>_mask<round_name>,
16137 <avx512>_fmaddsub_<mode>_mask3<round_name>,
16138 <avx512>_fmsubadd_<mode>_mask<round_name>,
16139 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
16140 <round_nimm_predicate> instead of nonimmediate_operand.
16141 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
16142 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
16143 Use register_operand instead of <round_nimm_predicate> for the
16144 operand that needs to match output.
16145 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
16146 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
16147 Likewise. Formatting fixes.
16150 * config/i386/i386.c (enum ix86_builtins): Remove
16151 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
16152 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
16153 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
16154 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
16155 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
16156 __builtin_ia32_vfmsubss3_mask3): New builtins.
16157 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
16158 avx512f_vmfmadd_<mode>_mask3<round_name>,
16159 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
16160 *avx512f_vmfmsub_<mode>_mask<round_name>,
16161 avx512f_vmfmsub_<mode>_mask3<round_name>,
16162 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
16163 *avx512f_vmfnmadd_<mode>_mask<round_name>,
16164 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
16165 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
16166 *avx512f_vmfnmsub_<mode>_mask<round_name>,
16167 avx512f_vmfnmsub_<mode>_mask3<round_name>,
16168 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
16169 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
16170 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
16171 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
16172 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
16173 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
16174 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
16175 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
16176 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
16177 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
16178 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
16179 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
16180 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
16181 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
16182 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
16183 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
16184 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
16185 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
16186 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
16187 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
16188 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
16189 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
16191 2019-03-21 Martin Sebor <msebor@redhat.com>
16193 PR tree-optimization/89350
16194 * builtins.c (compute_objsize): Also ignore offsets whose upper
16196 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
16197 (builtin_memref::builtin_memref): Initialize new member.
16198 Allow EXPR to be null.
16199 (builtin_memref::extend_offset_range): Replace local with a member.
16200 Avoid assuming pointer offsets are unsigned.
16201 (builtin_memref::set_base_and_offset): Determine base object
16202 before computing offset range.
16203 (builtin_access::builtin_access): Handle memset.
16204 (builtin_access::generic_overlap): Replace local with a member.
16205 (builtin_access::strcat_overlap): Same.
16206 (builtin_access::overlap): Same.
16207 (maybe_diag_overlap): Same.
16208 (maybe_diag_access_bounds): Same.
16209 (wrestrict_dom_walker::check_call): Handle memset.
16210 (check_bounds_or_overlap): Same.
16212 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
16213 Jakub Jelinek <jakub@redhat.com>
16216 * tree.c (fld_type_variant, fld_incomplete_type_of,
16217 fld_process_array_type): Call fld->pset.add and don't call
16218 add_tree_to_fld_list if it returns true.
16219 (free_lang_data_in_type): Similarly with self-recursive call. Purge
16220 non-marked types from TYPE_NEXT_VARIANT list.
16221 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
16223 2019-03-21 Jakub Jelinek <jakub@redhat.com>
16225 * hash-table.h (hash_table): Add Lazy template parameter defaulted
16226 to false, if true, don't alloc_entries during construction, but defer
16227 it to the first method that needs m_entries allocated.
16228 (hash_table::hash_table, hash_table::~hash_table,
16229 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
16230 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
16231 hash_table::clear_slot, hash_table::traverse_noresize,
16232 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
16233 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
16235 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
16236 NO_INSERT instead of find_with_hash.
16237 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
16238 hash_set::m_table): Add Lazy to template params of hash_table.
16239 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
16240 * attribs.c (test_attribute_exclusions): Likewise.
16241 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
16242 hash_set. Add tests for hash_set with Lazy = true.
16244 2019-03-21 Richard Biener <rguenther@suse.de>
16246 PR tree-optimization/89779
16247 * tree.c (tree_nop_conversion): Consolidate and fix defensive
16248 checks with respect to released SSA names now having error_mark_node
16250 * fold-const.c (operand_equal_p): Likewise.
16252 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
16255 * config/s390/s390.c (global_not_special_regno_p): Move to make it
16257 (s390_optimize_register_info): Use global_not_special_regno_p to
16258 check for global regs.
16260 2019-03-20 Jakub Jelinek <jakub@redhat.com>
16263 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
16264 update this_alternative nor this_alternative_set.
16266 2019-03-19 Jim Wilson <jimw@sifive.com>
16269 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
16270 align, size, offset. Use them to handle a BLKmode reference. Update
16272 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
16274 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16276 PR rtl-optimization/89768
16277 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
16278 instead of GEN_INT.
16279 (unroll_loop_runtime_iterations): Likewise.
16281 2019-03-19 Martin Sebor <msebor@redhat.com>
16283 PR tree-optimization/89644
16284 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
16285 rather than endptr as an indicator of nul-termination.
16287 PR tree-optimization/89644
16288 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
16289 arrays in determining sequence sizes in strncpy and stpncpy.
16291 2019-03-19 Martin Liska <mliska@suse.cz>
16293 PR middle-end/89737
16294 * predict.c (combine_predictions_for_bb): Empty likely_edges and
16295 unlikely_edges if there's an edge that belongs to both these sets.
16297 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
16300 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
16301 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
16302 go via a stack temporary.
16304 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16307 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
16308 instead of gen_rtx_SUBREG.
16309 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
16311 2019-03-19 Richard Biener <rguenther@suse.de>
16314 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
16316 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
16320 * tree.c (free_lang_data_in_decl): Do not free context of C++
16323 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16326 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
16327 subs for the first alternative except when operands[3] is 1.
16330 * gimplify.c (gimplify_asm_expr): For output argument with
16331 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
16334 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
16336 PR rtl-optimization/89753
16337 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16338 explicit unrolling factor even more robust.
16340 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16343 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
16344 compensation use x2 += 1 instead of x2 -= -1 and when honoring
16345 signed zeros, do another copysign after the compensation.
16347 2019-03-18 Martin Sebor <msebor@redhat.com>
16349 PR tree-optimization/89720
16350 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
16351 more conservatively, the same as anti-range.
16353 2019-03-18 Richard Biener <rguenther@suse.de>
16355 PR middle-end/88945
16356 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
16357 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
16358 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
16359 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
16361 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
16363 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
16364 Extend queue to 1024 entries.
16365 Add "consumed" field.
16366 (gomp_print_output): Remove print_index parameter.
16367 Add final parameter.
16368 Change limit to unsigned.
16369 Use consumed field to implement circular buffer.
16370 Detect interrupted print in final pass.
16371 Flush output at the end.
16372 (run): Update gomp_print_output usage.
16373 (main): Initialize kernargs->output_data.consumed.
16375 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
16377 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
16378 calculation of the minimum number of scalar iterations for
16379 fully-predicated loops.
16381 2019-03-18 Martin Jambor <mjambor@suse.cz>
16383 PR tree-optimization/89546
16384 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
16385 any propagation to its children took place.
16387 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
16390 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
16391 parameter, and make use of it.
16392 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
16394 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16396 * config/arc/arc.opt (mcode-density-frame): Get the inital value
16397 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
16398 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16399 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16400 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
16401 match what the ops is doing.
16402 (push_multi_fp_blink): Likewise.
16403 * config/arc/arc.c (arc_override_options): Enable enter/leave when
16404 compiling for size and elf target.
16405 (arc_save_callee_enter): Adjust note to match what enter/leave
16408 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16410 * config/arc/arc.md (tst_movb): Fix constraint.
16412 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16414 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
16416 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16418 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
16419 * config/arc/arc.c (arc_conditional_register_usage): Remove all
16420 reg_alloc_order references.
16421 (size_alloc_order): Define.
16422 (arc_adjust_reg_alloc_order): New function.
16423 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
16425 (ADJUST_REG_ALLOC_ORDER): Define.
16426 (HONOR_REG_ALLOC_ORDER): Likewise.
16428 2019-03-18 Richard Biener <rguenther@suse.de>
16431 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
16432 loads and stores a bit more.
16434 2019-03-18 Richard Biener <rguenther@suse.de>
16437 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
16438 load pessimization to stores as well.
16440 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
16442 PR middle-end/86979
16443 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
16444 successor, use NULL as its av set.
16446 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
16448 PR rtl-optimization/89721
16449 * lra-constraints (invariant_p): Return false if side_effects_p holds.
16451 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
16454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16455 When handling vec_extract, use modular arithmetic to allow
16456 constant selectors greater than vector length.
16457 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
16458 V1TImode vectors to have constant selector values greater than 0.
16459 Use modular arithmetic to compute vector index.
16460 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16461 index for in-memory vectors. Correct code generation for
16462 in-register vectors.
16463 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
16466 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16470 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16473 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16476 * tree.c (inchash::add_expr): Strip any location wrappers.
16477 * fold-const.c (operand_equal_p): Move stripping of location wrapper
16478 after hash verification.
16481 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
16482 SIGN_EXTEND and ZERO_EXTEND.
16484 2019-03-14 Jason Merrill <jason@redhat.com>
16485 Jakub Jelinek <jakub@redhat.com>
16487 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
16488 than if is_empty (*slot).
16489 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
16490 existing elt and for elt removal.
16491 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
16492 of already removed elt.
16494 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
16497 * config/i386/i386.c (remove_partial_avx_dependency): Handle
16498 REG_EH_REGION note.
16500 2019-03-14 Martin Liska <mliska@suse.cz>
16503 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
16505 2019-03-14 Richard Biener <rguenther@suse.de>
16508 * config/i386/i386.c (make_resolver_func): Properly set
16509 DECL_CONTEXT on the RESULT_DECL.
16510 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
16512 2019-03-14 Richard Biener <rguenther@suse.de>
16514 * gimple-pretty-print.c: Include cfgloop.h.
16515 (dump_gimple_phi): Adjust.
16516 (dump_gimple_bb_header): Dump loop header for GIMPLE.
16517 (pp_cfg_jump): Adjust.
16518 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
16519 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
16520 (lower_phi_internal_fn): Remove.
16521 (verify_gimple_call): Remove IFN_PHI special-casing.
16522 (dump_function_to_file): Dump IL state.
16523 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
16524 done to deal with PHI nodes being present in non-SSA state.
16526 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16529 * multiple_target.c (create_dispatcher_calls): Change
16530 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
16531 In the node->iterate_referring loop, push *ref rather than ref, call
16532 ref->remove_reference () and always pass 0 to iterate_referring.
16534 PR rtl-optimization/89679
16535 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
16536 would contain a paradoxical SUBREG.
16538 2019-03-14 Richard Biener <rguenther@suse.de>
16540 PR tree-optimization/89710
16541 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
16544 2019-03-14 Martin Liska <mliska@suse.cz>
16546 * coverage.c (coverage_begin_function): Stream also
16548 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16549 documentation about function declaration location.
16550 * gcov-dump.c (tag_function): Print whole range
16551 of function declaration.
16552 * gcov.c (struct function_info): Add end_column field.
16553 (function_info::function_info): Initialize it.
16554 (output_json_intermediate_file): Output {start,end}_column
16556 (read_graph_file): Read end_column.
16558 2019-03-14 Richard Biener <rguenther@suse.de>
16560 PR middle-end/89698
16561 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16562 that the access types are similar.
16564 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16566 PR tree-optimization/89703
16567 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16568 aren't compatible also with builtin_decl_explicit. Check pure
16569 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16570 and BUILT_IN_STPNCPY{,_CHK}.
16572 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16575 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16576 addr32 prefix to VSIB address for X32.
16577 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16579 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16580 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16581 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16582 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16583 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16584 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16585 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16586 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16587 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16588 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16589 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16590 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16591 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16592 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16593 (*avx512f_scatterdi<mode>): Likewise.
16595 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16598 * lra-constraints.c (inherit_in_ebb): Update
16599 potential_reload_hard_regs along with live_hard_regs.
16601 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16604 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16606 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16608 2019-03-13 Martin Sebor <msebor@redhat.com>
16610 PR tree-optimization/89662
16611 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16614 2019-03-13 Richard Biener <rguenther@suse.de>
16616 PR middle-end/89677
16617 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16618 throw FP expressions at tree-affine.
16620 2019-03-14 Richard Biener <rguenther@suse.de>
16622 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16623 dump negative integer constants using _Literal (type) -num.
16625 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16627 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16628 nonlocal_value member.
16630 PR middle-end/88588
16631 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16632 (ipa_simd_modify_function_body): Handle PHIs.
16634 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16636 * config/s390/s390.c (s390_option_override_internal): Use more
16637 aggressive inlining parameters.
16639 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16641 * config/s390/3906.md: New file.
16642 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16643 (LONGRUNNING_THRESHOLD): Remove.
16644 (MAX_SCHED_MIX_SCORE): Decrease.
16645 (MAX_SCHED_MIX_DISTANCE): Decrease.
16646 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16647 (struct s390_sched_state): New struct to hold scheduling state.
16648 (S390_SCHED_STATE_NORMAL): Remove.
16649 (S390_SCHED_STATE_CRACKED): Remove.
16650 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16651 (s390_get_sched_attrmask): Use new attribute.
16652 (s390_get_unit_mask): Use new units.
16653 (s390_is_fpd): New function.
16654 (s390_is_fxd): New function.
16655 (s390_is_longrunning): New function.
16656 (s390_sched_score): Use new functions.
16657 (s390_sched_reorder): Likewise.
16658 (s390_sched_variable_issue): Rework and use new functions.
16659 (s390_sched_init): Use new functions.
16660 * config/s390/s390.h (s390_tune_attr): Add z14.
16661 * config/s390/s390.md: Add z14.
16663 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16665 * config/s390/2964.md: Update pipeline description.
16666 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16667 (LONGRUNNING_THRESHOLD): Remove.
16668 (LATENCY_FACTOR): Remove.
16669 (s390_get_unit_mask): Add unit.
16670 (s390_sched_score): Use fxd/fpd.
16671 (s390_sched_variable_issue): Use fxd/fpd.
16673 2019-03-12 Martin Liska <mliska@suse.cz>
16675 * config/i386/i386.c: Reword an error message.
16677 2019-03-12 Martin Jambor <mjambor@suse.cz>
16679 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16680 terminate with newline.
16682 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16685 * config/s390/s390.md (tabort): Use %wd instead of
16686 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16687 letters and periods.
16688 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16689 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16692 PR middle-end/89663
16693 * builtins.c (expand_builtin_int_roundingfn,
16694 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16695 gcc_unreachable if validate_arglist fails.
16697 2019-03-12 Richard Biener <rguenther@suse.de>
16699 PR tree-optimization/89664
16700 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16701 free the occurance tree after the early out.
16703 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16705 PR middle-end/89655
16707 * vr-values.c (vr_values::update_value_range): If
16708 old_vr->varying_p (), don't update it, make new_vr also VARYING
16711 2019-03-11 Martin Liska <mliska@suse.cz>
16713 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16714 Fix double string quoting.
16716 2019-03-11 Martin Liska <mliska@suse.cz>
16718 * collect-utils.c (collect_wait): Wrap apostrophes
16719 in gcc internal format with %'.
16720 * collect2.c (main): Likewise.
16721 (scan_prog_file): Likewise.
16722 (scan_libraries): Likewise.
16723 * config/i386/i386.c (ix86_expand_call): Likewise.
16724 (ix86_handle_interrupt_attribute): Likewise.
16725 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16726 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16727 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16728 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16729 * symtab.c (symtab_node::verify_base): Likewise.
16730 * tree-cfg.c (verify_gimple_label): Likewise.
16731 * tree.c (verify_type_variant): Likewise.
16733 2019-03-11 Martin Liska <mliska@suse.cz>
16735 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16736 in a string format message and fix GNU coding style.
16737 (expand_builtin_set_thread_pointer): Likewise.
16738 * common/config/aarch64/aarch64-common.c
16739 (aarch64_rewrite_selected_cpu): Likewise.
16740 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16741 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16742 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16743 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16744 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16745 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16746 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16747 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16748 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16749 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16751 * common/config/riscv/riscv-common.c
16752 (riscv_subset_list::parsing_subset_version): Likewise.
16753 (riscv_subset_list::parse_std_ext): Likewise.
16754 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16755 (riscv_subset_list::parse): Likewise.
16756 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16757 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16758 (aarch64_override_options_internal): Likewise.
16759 (aarch64_validate_mcpu): Likewise.
16760 (aarch64_validate_march): Likewise.
16761 (aarch64_validate_mtune): Likewise.
16762 (aarch64_override_options): Likewise.
16763 * config/alpha/alpha.c (alpha_option_override): Likewise.
16764 * config/arc/arc.c (arc_init): Likewise.
16765 (parse_mrgf_banked_regs_option): Likewise.
16766 (arc_override_options): Likewise.
16767 (arc_expand_builtin_aligned): Likewise.
16768 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16769 (arm_expand_builtin): Likewise.
16770 * config/arm/arm.c (arm_option_check_internal): Likewise.
16771 (arm_configure_build_target): Likewise.
16772 (arm_option_override): Likewise.
16773 (arm_options_perform_arch_sanity_checks): Likewise.
16774 (arm_handle_cmse_nonsecure_entry): Likewise.
16775 (arm_handle_cmse_nonsecure_call): Likewise.
16776 (arm_tls_referenced_p): Likewise.
16777 (thumb1_expand_prologue): Likewise.
16778 * config/avr/avr.c (avr_option_override): Likewise.
16779 * config/bfin/bfin.c (bfin_option_override): Likewise.
16780 * config/c6x/c6x.c (c6x_option_override): Likewise.
16781 * config/cr16/cr16.c (cr16_override_options): Likewise.
16782 * config/cris/cris.c (cris_option_override): Likewise.
16783 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16784 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16785 * config/darwin.c (darwin_override_options): Likewise.
16786 * config/frv/frv.c (frv_expand_builtin): Likewise.
16787 * config/h8300/h8300.c (h8300_option_override): Likewise.
16788 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16789 (ix86_option_override_internal): Likewise.
16790 (warn_once_call_ms2sysv_xlogues): Likewise.
16791 (ix86_expand_prologue): Likewise.
16792 (split_stack_prologue_scratch_regno): Likewise.
16793 (ix86_warn_parameter_passing_abi): Likewise.
16794 * config/ia64/ia64.c (fix_range): Likewise.
16795 * config/m68k/m68k.c (m68k_option_override): Likewise.
16796 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16797 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16798 (mips_set_compression_mode): Likewise.
16799 * config/mmix/mmix.c (mmix_option_override): Likewise.
16800 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16801 * config/msp430/msp430.c (msp430_option_override): Likewise.
16802 * config/nds32/nds32.c (nds32_option_override): Likewise.
16803 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16804 (nios2_option_override): Likewise.
16805 (nios2_expand_custom_builtin): Likewise.
16806 * config/nvptx/mkoffload.c (main): Likewise.
16807 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16808 * config/pa/pa.c (fix_range): Likewise.
16809 (pa_option_override): Likewise.
16810 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16811 (riscv_option_override): Likewise.
16812 * config/rl78/rl78.c (rl78_option_override): Likewise.
16813 * config/rs6000/aix61.h: Likewise.
16814 * config/rs6000/aix71.h: Likewise.
16815 * config/rs6000/aix72.h: Likewise.
16816 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16817 * config/rs6000/freebsd64.h: Likewise.
16818 * config/rs6000/linux64.h: Likewise.
16819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16820 (rs6000_expand_zeroop_builtin): Likewise.
16821 (rs6000_expand_mtfsb_builtin): Likewise.
16822 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16823 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16824 (rs6000_invalid_builtin): Likewise.
16825 (rs6000_expand_split_stack_prologue): Likewise.
16826 * config/rs6000/rtems.h: Likewise.
16827 * config/rx/rx.c (valid_psw_flag): Likewise.
16828 (rx_expand_builtin): Likewise.
16829 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16830 * config/s390/s390.c (s390_expand_builtin): Likewise.
16831 (s390_function_profiler): Likewise.
16832 (s390_option_override_internal): Likewise.
16833 (s390_option_override): Likewise.
16834 * config/sh/sh.c (sh_option_override): Likewise.
16835 (sh_builtin_saveregs): Likewise.
16836 (sh_fix_range): Likewise.
16837 * config/sh/vxworks.h: Likewise.
16838 * config/sparc/sparc.c (sparc_option_override): Likewise.
16839 * config/spu/spu.c (spu_option_override): Likewise.
16840 (fix_range): Likewise.
16841 * config/visium/visium.c (visium_option_override): Likewise.
16842 (visium_handle_interrupt_attr): Likewise.
16843 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16844 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16845 (dbg_cnt_process_opt): Likewise.
16846 * dwarf2out.c (output_dwarf_version): Likewise.
16847 * except.c (expand_eh_return): Likewise.
16848 * gcc.c (defined): Likewise.
16849 (driver_handle_option): Likewise.
16850 (process_command): Likewise.
16851 (compare_files): Likewise.
16852 (driver::prepare_infiles): Likewise.
16853 (driver::do_spec_on_infiles): Likewise.
16854 (driver::maybe_run_linker): Likewise.
16855 * omp-offload.c (oacc_parse_default_dims): Likewise.
16856 * opts-global.c (handle_common_deferred_options): Likewise.
16857 * opts.c (parse_sanitizer_options): Likewise.
16858 (common_handle_option): Likewise.
16859 (enable_warning_as_error): Likewise.
16860 * passes.c (enable_disable_pass): Likewise.
16861 * plugin.c (parse_plugin_arg_opt): Likewise.
16862 (default_plugin_dir_name): Likewise.
16863 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16864 (default_pch_valid_p): Likewise.
16865 * toplev.c (init_asm_output): Likewise.
16866 (process_options): Likewise.
16867 (toplev::run_self_tests): Likewise.
16868 * tree-cfg.c (verify_gimple_call): Likewise.
16869 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16870 (tree_inlinable_function_p): Likewise.
16871 * var-tracking.c (vt_find_locations): Likewise.
16873 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16875 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16876 only on the else branch.
16878 2019-03-11 Martin Liska <mliska@suse.cz>
16880 * gcov.c (output_intermediate_json_line): Print function
16882 (output_json_intermediate_file): Add new argument.
16883 * doc/gcov.texi: Document the change.
16885 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16887 PR rtl-optimization/89588
16888 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16889 explicit unrolling factor more robust.
16891 2019-03-11 Richard Biener <rguenther@suse.de>
16893 PR tree-optimization/89649
16894 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16895 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16896 on the prolog and epilog loops.
16897 (vect_loop_versioning): Return copy of loop.
16898 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16899 on the non-vectorized version of the loop.
16901 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16904 * config/i386/sse.md (*vec_extractv2di_0_sse):
16905 Add (=r,x) alternative and corresponding splitter.
16907 2019-03-10 Martin Jambor <mjambor@suse.cz>
16909 PR tree-optimization/85762
16910 PR tree-optimization/87008
16911 PR tree-optimization/85459
16912 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16913 it points to if there is a type changing MEM_REF. Adjust all callers.
16914 (build_accesses_from_assign): Disable total scalarization if
16915 contains_vce_or_bfcref_p returns true through the new parameter, for
16918 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16921 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16922 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16925 * common.opt (fdiagnostics-show-labels,
16926 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16927 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16928 gas-locview-support, ginline-points, ginternal-reset-location-views):
16929 Terminate description text with a dot.
16930 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16931 * config/mcore/mcore.opt (m210, m340): Likewise.
16932 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16933 mnops=): Start description text with a capital letter.
16934 * config/arc/arc.opt (msize-level=): Likewise.
16935 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16936 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16937 mnewlib): Likewise.
16938 * config/ft32/ft32.opt (msim): Likewise.
16939 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16940 (mnodiv, mnopm): Terminate description text with a dot.
16941 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16943 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16945 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16948 PR rtl-optimization/89634
16949 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16950 are modified in BB_END (e->src) instruction.
16952 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16955 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16956 messages more amenable to translation, and improve wording.
16958 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16960 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16961 ud- and du-chains between phases.
16963 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16966 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16967 instead of POLY_INT_CST.
16969 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16971 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16974 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16979 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16980 (_mm_storeu_si64): Ditto.
16982 2019-03-08 Martin Liska <mliska@suse.cz>
16985 * config/i386/i386.c (ix86_option_override_internal): Disable
16986 jump tables when retpolines are used.
16988 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16991 * ipa-split.c (execute_split_functions): Do not split
16992 'noinline' or 'section' function.
16994 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16997 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16998 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16999 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
17002 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
17003 from diagnostics. Formatting fixes.
17006 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
17007 warn_odr diagnostics.
17010 * lra-constraints.c (process_alt_operands): Avoid one space before
17011 " at the end of line and another after " on another line in a string
17013 * attribs.c (handle_dll_attribute): Likewise.
17014 * config/avr/avr-devices.c (avr_texinfo): Likewise.
17016 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
17017 warning_at or inform messages in G_() if there is no ?:.
17019 PR tree-optimization/89550
17020 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
17021 returned true. Formatting fixes.
17022 (expand_builtin_strnlen): Formatting fixes.
17023 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
17024 if warning_at returned true.
17025 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
17027 2019-03-08 Richard Biener <rguenther@suse.de>
17029 PR middle-end/89578
17030 * cfgloop.h (struct loop): Add owned_clique field.
17031 * cfgloopmanip.c (copy_loop_info): Copy it.
17032 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
17034 * tree-inline.c (copy_loops): Remap owned_clique.
17035 * lto-streamer-in.c (input_cfg): Stream owned_clique.
17036 * lto-streamer-out.c (output_cfg): Likewise.
17038 2019-03-08 Jakub Jelinek <jakub@redhat.com>
17041 * config/darwin.c: Include intl.h.
17042 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
17043 composing the message out of two separate parts.
17045 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17048 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
17049 doesn't start with a capital letter and doesn't end with a dot.
17050 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
17051 with a capital letter.
17052 (ix86_mangle_function_version_assembler_name): Likewise.
17053 (ix86_generate_version_dispatcher_body): Likewise.
17054 (fold_builtin_cpu): Likewise.
17055 (get_builtin_code_for_version): Likewise. Remove extraneous space.
17056 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
17057 translators, wrap full type name in %qs.
17059 PR translation/79999
17060 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
17061 depend clause with source (or sink) modifier.
17062 * omp-expand.c (expand_omp_ordered_sink): Likewise.
17065 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
17066 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
17067 (avx512f_load<mode>_mask): New define_expand.
17068 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
17069 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
17070 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
17071 __builtin_ia32_movess_mask): New builtins.
17072 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
17073 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
17074 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
17075 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
17077 2019-03-07 Martin Jambor <mjambor@suse.cz>
17080 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
17081 for extern inline functions.
17083 2019-03-07 Martin Jambor <mjambor@suse.cz>
17086 * cgraph.h (cgraph_node): New inline method former_thunk_p.
17087 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
17088 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
17089 have multiple callees. At the end check if declarations match as
17090 opposed to cgraph_nodes.
17092 2019-03-07 Martin Liska <mliska@suse.cz>
17094 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
17095 which is equivalent to searching for this in clones chain.
17096 * symtab.c (symtab_node::verify_base): Similarly compare ASM
17097 names with a neighbour and special case first node in a chain.
17099 2019-01-25 Jason Merrill <jason@redhat.com>
17101 PR c++/80916 - spurious "static but not defined" warning.
17102 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
17103 for an internal symbol with DECL_EXTERNAL.
17105 2019-04-07 Richard Biener <rguenther@suse.de>
17107 PR middle-end/89618
17108 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
17109 * tree-inline.c (copy_loops): Simplify.
17111 2019-03-07 Martin Liska <mliska@suse.cz>
17113 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
17115 2019-03-07 Richard Biener <rguenther@suse.de>
17117 PR tree-optimization/89595
17118 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
17119 stmt iterator as reference, take boolean output parameter to
17120 indicate whether the stmt was removed and thus the iterator
17122 (dom_opt_dom_walker::before_dom_children): Re-iterate over
17123 stmts created by folding.
17125 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17128 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
17131 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
17133 PR rtl-optimization/88845
17134 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
17136 * lra.c (remove_scratches_1): New function.
17137 (remove_scratches): Use it.
17138 (lra_emit_move): Likewise.
17140 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
17142 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
17143 unaligned_access variable.
17144 * config/arc/arc.c (arc_override_options): Set unaligned access
17145 default on for HS CPUs.
17146 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
17148 2019-03-06 Martin Liska <mliska@suse.cz>
17150 PR gcov-profile/89577
17151 * doc/gcov.texi: Prefer to use --coverage.
17152 * doc/sourcebuild.texi: Likewise.
17154 2019-03-02 Jason Merrill <jason@redhat.com>
17156 PR c++/86485 - -Wmaybe-unused with empty class ?:
17157 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
17159 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17162 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
17165 PR middle-end/89590
17166 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
17167 exactly one argument.
17169 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17170 Richard Sandiford <richard.sandiford@arm.com>
17172 PR tree-optimization/89570
17173 * match.pd (vec_cond into cond_op simplification): Don't use
17174 get_conditional_internal_fn, use as_internal_fn (cond_op).
17176 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
17179 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
17180 to decide when to split off a non-zero offset from a symbol.
17181 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
17182 in function symbols.
17184 2019-03-05 Richard Biener <rguenther@suse.de>
17186 PR tree-optimization/89594
17187 * tree-if-conv.c (pass_if_conversion::execute): Handle
17188 case where .LOOP_VECTORIZED_FUNCTION was removed.
17190 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17193 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
17194 instead alloca it only when needed with the needed size.
17196 PR tree-optimization/89570
17197 * match.pd (vec_cond into cond_op simplification): Guard with
17198 vectorized_internal_fn_supported_p test and #if GIMPLE.
17200 PR tree-optimization/89566
17201 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
17202 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
17203 Punt if get_user_idx_format succeeds, but idx_format argument is
17204 not provided or doesn't have pointer type, or if idx_args is above
17205 number of provided arguments.
17207 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
17209 PR tree-optimization/89437
17210 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
17212 2019-03-04 Richard Biener <rguenther@suse.de>
17214 PR middle-end/89572
17215 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
17218 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
17220 PR tree-optimization/89487
17221 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
17222 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
17223 (distribute_loop): Don't do runtime alias check if there is non-
17224 addressable data reference.
17225 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
17226 is a register variable.
17228 2019-03-02 Jakub Jelinek <jakub@redhat.com>
17231 * config/arm/arm.md (cmpsi2_addneg): Use
17232 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
17233 If operands[2] is 0 or INT_MIN, force use of subs.
17234 (*compare_scc splitter): Use gen_int_mode.
17235 (*negscc): Likewise.
17236 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
17238 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
17239 Monk Chiang <sh.chiang04@gmail.com>
17241 * common/config/riscv/riscv-common.c: Include sstream.
17242 (riscv_subset_list::to_string): New.
17243 (riscv_arch_str): Likewise.
17244 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
17245 * config.in: Regen.
17246 * config/riscv/riscv-protos.h (riscv_arch_str): New.
17247 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
17248 (riscv_emit_attribute): New.
17249 (riscv_file_start): Emit attribute if needed.
17250 (riscv_option_override): Init riscv_emit_attribute_p.
17251 * config/riscv/riscv.opt (mriscv-attribute): New option.
17252 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
17253 * configure: Regen.
17254 * doc/install.texi: Document --with-riscv-attribute.
17255 * doc/invoke.texi: Document -mriscv-attribute.
17257 * common/config/riscv/riscv-common.c:
17258 Include config/riscv/riscv-protos.h.
17259 (INCLUDE_STRING): Defined.
17260 (RISCV_DONT_CARE_VERSION): Defined.
17261 (riscv_subset_t): Declare.
17262 (riscv_subset_t::riscv_subset_t): New.
17263 (riscv_subset_list): Declare.
17264 (riscv_subset_list::riscv_subset_list): New.
17265 (riscv_subset_list::~riscv_subset_list): Likewise.
17266 (riscv_subset_list::parsing_subset_version): Likewise.
17267 (riscv_subset_list::parse_std_ext): Likewise.
17268 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17269 (riscv_subset_list::add): Likewise.
17270 (riscv_subset_list::lookup): Likewise.
17271 (riscv_subset_list::xlen): Likewise.
17272 (riscv_subset_list::parse): Likewise.
17273 (riscv_supported_std_ext): Likewise.
17274 (current_subset_list): Likewise.
17275 (riscv_parse_arch_string): Using riscv_subset_list::parse to
17278 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
17280 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17281 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
17282 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
17284 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
17286 PR rtl-optimization/85899
17287 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
17288 fallthru edges leading to the exit block.
17290 2019-03-01 Tamar Christina <tamar.christina@arm.com>
17293 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
17294 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
17296 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
17298 PR tree-optimization/89535
17299 * tree-vect-stmts.c (vectorizable_call): Record the vector types
17300 for each operand. Calculate the fallback choice for mask operands
17301 and pass it to vect_get_vec_def_for_operand.
17303 2019-03-01 Richard Biener <rguenther@suse.de>
17305 PR middle-end/89541
17306 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
17307 get virtual operands.
17308 (get_expr_operands): Handle CONST_DECL like other decls.
17310 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17312 PR middle-end/89503
17313 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
17314 on DECL_P and EXPR_P.
17316 2019-03-01 Richard Biener <rguenther@suse.de>
17318 PR middle-end/89497
17319 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
17320 argument, defaulted to zero.
17321 * passes.c (execute_function_todo): Pass down SSA update flags
17322 to cleanup_tree_cfg.
17323 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
17324 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
17326 (cleanup_tree_cfg): Get and pass down SSA update flags.
17328 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17331 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
17332 early_lto_debug argument.
17334 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
17336 PR tree-optimization/89536
17337 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
17338 only whether bit #0 of the value is 0 instead of the entire value.
17340 2019-02-28 Marek Polacek <polacek@redhat.com>
17342 PR c++/87068 - missing diagnostic with fallthrough statement.
17343 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
17344 at the end of a seq, save its location to walk_stmt_info.
17345 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
17348 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
17351 * tree.c (find_atomic_core_type): Move ahead in file.
17352 (check_base_type): Correctly compare alignments of atomic types.
17354 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
17357 * config/i386/i386.c (get_builtin_code_for_version): Identify
17358 Westmere from PCLMUL, instead of AES.
17360 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17363 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
17364 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
17367 2019-02-28 Tamar Christina <tamar.christina@arm.com>
17370 * config/aarch64/aarch64-option-extensions.def: Document it.
17371 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
17374 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17377 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
17378 builtins if they don't have a single scalar floating point argument.
17381 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
17383 PR rtl-optimization/89490
17384 * varasm.c (get_block_for_section): Bail out for mergeable sections.
17385 (default_use_anchors_for_symbol_p, output_object_block): Assert the
17386 block section is not mergeable.
17388 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17391 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
17392 old define_insn to ...
17393 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
17394 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
17395 Rename old define_insn to ...
17396 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
17397 (thumb2_casesi_internal_pic): New define_expand. Rename old
17399 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
17400 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
17401 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
17403 2019-02-27 Richard Biener <rguenther@suse.de>
17406 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
17408 2019-02-27 Richard Biener <rguenther@suse.de>
17410 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
17413 2019-02-27 Richard Biener <rguenther@suse.de>
17416 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
17417 parameter, prefix section name with .gnu.debuglto_ if true.
17418 (dwarf2out_finish): Pass false to output_comdat_type_unit.
17419 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
17421 2019-02-27 Richard Biener <rguenther@suse.de>
17424 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
17425 rather than on use_debug_types, doing what output_die does.
17426 (value_format): Likewise.
17428 2019-02-27 Martin Jambor <mjambor@suse.cz>
17429 Martin Sebor <msebor@redhat.com>
17431 * doc/invoke.texi (Warning Options): Reword description of
17432 -Wno-absolute-value.
17434 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17436 PR tree-optimization/89280
17437 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
17438 builtin_setjmp_setup_bb): New functions.
17439 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
17440 When visiting __builtin_setjmp_setup block, queue in special
17441 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
17442 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
17443 from visited after the loop if they don't have any visited successor
17446 2018-02-26 Steve Ellcey <sellcey@marvell.com>
17448 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
17450 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
17452 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17455 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
17456 with types other than sizetype/ssizetype.
17458 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17460 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
17461 (enum sparc_processor_type): ...this.
17462 (enum sparc_code_model_type): New enumeration type.
17463 (enum sparc_memory_model_type): Tweak comments.
17464 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
17466 (mcmodel): Use sparc_code_model enumeration and variable.
17467 (sparc_code_model): New enumeration.
17468 (mdebug): Add Undocumented marker.
17469 * config/sparc/sparc.h (enum cmodel): Delete.
17470 (sparc_cmodel): Likewise.
17471 (TARGET_CM_MEDLOW): Adjust to above renaming.
17472 (TARGET_CM_MEDMID): Likewise.
17473 (TARGET_CM_MEDANY): Likewise.
17474 (TARGET_CM_EMBMEDANY): Likewise.
17475 * config/sparc/sparc.c (sparc_cmodel): Delete.
17476 (sparc_option_override): Remove string/value mapping support for the
17477 code model. Move code and memory model support to after the handling
17478 of target flags. Do private machine setup last.
17479 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
17480 (sparc_legitimize_reload_address): Likewise.
17481 (sparc_output_mi_thunk): Likewise.
17482 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
17484 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17486 PR tree-optimization/89500
17487 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
17488 (handle_builtin_strlen): Remove noncst_bound variable. Always
17489 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
17490 cst if the first cst bytes starting at x are known to be non-zero,
17491 even if the string is not zero terminated. Don't try to modify
17492 *si for strnlen. Update strlen_to_stridx only for strlen or if
17493 we can prove strnlen returns the same value as strlen would.
17495 2019-02-26 Martin Liska <mliska@suse.cz>
17497 * alloc-pool.h (struct pool_usage): Remove extra
17499 * bitmap.h (struct bitmap_usage): Likewise.
17500 * ggc-common.c (struct ggc_usage): Likewise.
17501 * mem-stats.h (struct mem_usage): Likewise.
17502 (mem_alloc_description::dump): Print dash lines
17503 here and repeat header at the end of a table report.
17504 It's then more readable.
17505 * tree-phinodes.c (phinodes_print_statistics): Make
17506 horizontal alignment.
17507 * tree-ssanames.c (ssanames_print_statistics): Likewise.
17508 * vec.c (struct vec_usage): Remove extra print_dash_line.
17509 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
17511 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
17513 * doc/extend.texi (__builtin_object_size):
17514 Use @pxref instead of @xref inside parenthesis.
17515 (__builtin_has_attribute): Add missing comma after @xref.
17516 (__builtin_object_size): Ditto.
17517 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
17519 2019-02-26 Jeff Law <law@redhat.com>
17521 PR rtl-optimization/87761
17522 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
17523 detect obviously dead insns and delete them.
17525 2019-02-26 Richard Biener <rguenther@suse.de>
17527 PR tree-optimization/89505
17528 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
17529 to handle restrict pointed-to vars with multiple subvars
17532 2019-02-26 Richard Biener <rguenther@suse.de>
17534 PR tree-optimization/89489
17535 * tree-parloops.c (create_loop_fn): Copy over last_clique.
17537 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17539 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
17540 and move around comment.
17541 <BIT_AND_EXPR>: Likewise.
17542 <BIT_NOT_EXPR>: Add specific handling for boolean types.
17544 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17547 * config/i386/i386.c (remove_partial_avx_dependency): Call
17548 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17549 after changing possibly many instructions to use that pseudo. Fix up
17550 insertion of v4sf_const0 setter at the start of bb.
17552 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17555 * doc/extend.texi (Variadic Pointer Args): New section.
17557 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17558 Martin Sebor <msebor@gmail.com>
17560 * common.opt (Wattribute-alias): Likewise.
17561 * doc/invoke.texi (Option Summary): List general form of
17562 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17563 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17564 Add cross-references.
17565 (-Wattribute-alias): Rewrite and correct default. Mention
17566 considered attributes (same as for -Wmissing-attributes).
17568 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17570 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17571 (_mm_cvtpd_ps): Likewise.
17572 (_mm_cvttpd_epi32): Likewise.
17575 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17576 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17579 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17581 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17584 * common/config/aarch64/aarch64-common.c
17585 (struct aarch64_option_extension): Add is_synthetic.
17586 (all_extensions): Use it.
17587 (TARGET_OPTION_INIT_STRUCT): Define hook.
17588 (struct gcc_targetm_common): Moved to end.
17589 (all_extensions_by_on): New.
17590 (opt_ext_cmp, typedef opt_ext): New.
17591 (aarch64_option_init_struct): New.
17592 (aarch64_contains_opt): New.
17593 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17594 * config/aarch64/aarch64-option-extensions.def
17595 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17596 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17597 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17598 Set is_synthetic to false.
17599 (crypto): Set is_synthetic to true.
17600 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17603 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17605 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17606 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17607 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17608 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17609 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17610 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17611 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17612 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17614 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17615 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17616 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17617 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17618 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17619 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17620 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17621 vfmlsl_laneq_high_f16): ... To this.
17622 * config/arm/neon.md: Update comments.
17624 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17626 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17627 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17628 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17629 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17630 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17631 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17632 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17633 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17635 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17636 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17637 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17638 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17639 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17640 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17641 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17642 vfmlslq_laneq_high_f16): ... To this.
17644 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17646 PR rtl-optimization/86096
17647 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17648 comparing mw_order values.
17650 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17653 * config/arm/arm.md (*subsi3_carryin_const): Use
17654 arm_neg_immediate_operand predicate instead of
17655 arm_not_immediate_operand, "L" constraint instead of "K" and
17656 print it using %n2 instead of %B2.
17657 (*subsi3_carryin_const0): New define_insn.
17658 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17659 instead of arm_not_operand and "I" constraint instead of "K" and
17660 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17661 another match_operand and in the condition check that it is negation
17663 (*subsi3_carryin_compare_const0): New define_ins.
17664 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17665 *subsi3_carryin_const.
17666 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17667 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17670 * config/arm.vfp.md (*negdf2_vfp): Use
17671 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17672 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17674 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17676 PR rtl-optimization/89445
17677 * simplify-rtx.c (simplify_ternary_operation): Don't use
17678 simplify_merge_mask on operands that may trap.
17679 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17680 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17681 second operand is CONST_VECTOR, check if any element could be zero.
17682 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17683 their operands can trap.
17685 2019-02-23 Martin Sebor <msebor@redhat.com>
17687 * gimple-ssa-sprintf.c (target_strtol): Rename...
17688 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17689 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17690 check for range error.
17692 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17695 * opts-common.c (prune_options): Also prune joined switches
17696 with Negative and RejectNegative.
17697 * config/i386/i386.opt (march=): Add Negative(march=).
17698 (mtune=): Add Negative(mtune=).
17699 * doc/options.texi: Document Negative used together with Joined
17700 and RejectNegative.
17702 2019-02-22 Martin Sebor <msebor@redhat.com>
17704 * doc/extend.texi (Other Builtins): Add
17705 __builtin_is_constant_evaluated.
17707 2019-02-22 Richard Biener <rguenther@suse.de>
17709 PR tree-optimization/87609
17710 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17712 2019-02-22 Jeff Law <law@redhat.com>
17714 PR rtl-optimization/87761
17715 * config/mips/mips.md: Add new combiner pattern to recognize
17716 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17718 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17721 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17722 destination register in peepholes generating patterns for ADDS/SUBS.
17723 (add<mode>3_compare0,
17724 *addsi3_compare0_uxtw, add<mode>3_compareC,
17725 add<mode>3_compareV_imm, add<mode>3_compareV,
17726 *adds_<optab><ALLX:mode>_<GPI:mode>,
17727 *subs_<optab><ALLX:mode>_<GPI:mode>,
17728 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17729 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17730 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17731 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17732 sub<mode>3_compare1): Allow stack pointer for source register.
17733 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17735 2019-02-22 Martin Sebor <msebor@redhat.com>
17737 PR tree-optimization/88993
17738 PR tree-optimization/88853
17739 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17741 (sprintf_dom_walker::call_info::is_string_func): New helper.
17742 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17743 for formatted string functions.
17744 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17746 2019-02-22 Martin Sebor <msebor@redhat.com>
17749 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17750 unreachable subexpressions.
17752 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17753 Hongtao Liu <hongtao.liu@intel.com>
17754 Sunil K Pandey <sunil.k.pandey@intel.com>
17757 * config/i386/i386-passes.def: Add
17758 pass_remove_partial_avx_dependency.
17759 * config/i386/i386-protos.h
17760 (make_pass_remove_partial_avx_dependency): New.
17761 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17763 (pass_data_remove_partial_avx_dependency): New.
17764 (pass_remove_partial_avx_dependency): Likewise.
17765 (make_pass_remove_partial_avx_dependency): Likewise.
17766 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17767 (*extendsfdf2): Add avx_partial_xmm_update.
17768 (truncdfsf2): Likewise.
17769 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17770 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17772 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17774 PR middle-end/85598
17775 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17778 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17781 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17782 (PTA_SKYLAKE): Add PTA_AES.
17783 (PTA_GOLDMONT): Likewise.
17785 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17787 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17788 instruction if enabled.
17789 (aarch64_override_options): Remove reference to return address key.
17791 2019-02-22 Richard Biener <rguenther@suse.de>
17793 PR tree-optimization/89440
17794 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17795 not necessary assert.
17797 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17800 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17801 (oacc_replace_fn_attrib_attr): ... this new function.
17802 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17803 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17805 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17807 * config/arm/arm-cpus.in (ares): Rename to...
17808 (neoverse-n1): ... This. Add ares as alias.
17809 * config/arm/arm-tables.opt: Regenerate.
17810 * config/arm/arm-tune.md: Likewise.
17811 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17813 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17815 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17816 * config/aarch64/aarch64-tune.md: Regenerate.
17817 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17819 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17821 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17822 (neoversen1_tunings): ... This.
17823 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17824 (neoverse-n1): New CPU.
17825 * config/aarch64/aarch64-tune.md: Regenerate.
17826 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17828 2019-02-22 Richard Biener <rguenther@suse.de>
17830 PR middle-end/87609
17831 * cfghooks.h (dependence_hash): New typedef.
17832 (struct copy_bb_data): New type.
17833 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17834 (duplicate_block): Likewise.
17835 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17836 (copy_bbs): Create and pass down copy_bb_data.
17837 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17838 (rtl_duplicate_bb): Likewise.
17839 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17840 remap dependence info.
17842 2019-02-22 Richard Biener <rguenther@suse.de>
17844 PR tree-optimization/87609
17845 * tree-core.h (tree_base): Document special clique values.
17846 * tree-inline.c (remap_dependence_clique): Do not use the
17847 special clique value of one.
17848 (maybe_set_dependence_info): Use clique one.
17849 (clear_dependence_clique): New callback.
17850 (compute_dependence_clique): Clear clique one from all refs
17851 before assigning it (again).
17853 2019-02-21 Martin Sebor <msebor@redhat.com>
17855 * doc/extend.texi (__clear_cache): Correct signature.
17857 2019-02-21 Ian Lance Taylor <iant@golang.org>
17860 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17861 than output_constant_def.
17862 (add_constant_to_table): New static function.
17863 (output_constant_def): Call add_constant_to_table.
17864 (tree_output_constant_def): Likewise.
17866 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17869 * builtins.c (fold_builtin_arith_overflow): If first two args are
17870 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17873 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17876 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17877 error for -mindirect-branch/-mfunction-return with incompatible
17880 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17883 * constraints.md (q): Remove.
17884 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17887 2019-02-21 Martin Jambor <mjambor@suse.cz>
17890 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17891 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17892 (omp_adjust_for_condition): ...here. Added necessary parameters.
17893 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17894 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17895 proper values to new parameters of omp_adjust_for_condition.
17897 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17899 PR middle-end/89412
17900 * expr.c (expand_assignment): If result is a MEM, use change_address
17901 instead of simplify_gen_subreg.
17903 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17904 David Malcolm <dmalcolm@redhat.com>
17906 PR middle-end/89091
17907 * fold-const.c (decode_field_reference): Return NULL_TREE if
17908 lang_hooks.types.type_for_size returns NULL. Check it before
17909 overwriting *exp_. Use return NULL_TREE instead of return 0.
17911 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17913 PR middle-end/88074
17914 PR middle-end/89415
17915 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17918 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17921 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17922 TARGET_SSE in addition to TARGET_SSE_MATH.
17924 (ix86_excess_precision): Ditto.
17925 (ix86_float_exceptions_rounding_supported_p): Ditto.
17926 (use_rsqrt_p): Ditto.
17927 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17929 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17932 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17933 linenum_arith_t when determining if two adjacent line spans are
17934 close enough to merge.
17935 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17936 lines within each line_span.
17938 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17941 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17942 paradoxical SUBREGS.
17944 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17947 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17948 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17949 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17952 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17954 * config/gcn/gcn.c (print_operand): Fix typo.
17956 2019-02-19 Richard Biener <rguenther@suse.de>
17958 PR middle-end/88074
17959 * toplev.c (do_compile): Initialize mpfr's exponent range
17960 based on available float modes.
17962 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17964 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17965 as long as the epilogue isn't completed.
17967 2019-02-18 Martin Sebor <msebor@redhat.com>
17969 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17970 __has_cpp_attribute, and __has_include.
17972 2019-02-18 Martin Sebor <msebor@redhat.com>
17974 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17976 2019-02-18 Martin Sebor <msebor@redhat.com>
17978 PR middle-end/89294
17979 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17981 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17983 2019-02-18 Richard Biener <rguenther@suse.de>
17985 PR tree-optimization/89296
17986 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17987 of no-warning flag to cases that might emit the bogus warning.
17989 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17992 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17994 * config/arm/vfp.md (*movdi_vfp): Likewise.
17995 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17996 "q" constraint for operands[0].
17999 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
18000 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
18001 pattern in a temporary buffer.
18002 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
18003 than 64-operands[2].
18006 * config/s390/s390.c (s390_indirect_branch_attrvalue,
18007 s390_indirect_branch_settings): Define unconditionally.
18008 (s390_set_current_function): Likewise, but guard the whole body except
18009 the s390_indirect_branch_settings call with
18010 #if S390_USE_TARGET_ATTRIBUTE.
18011 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
18013 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
18014 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
18015 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
18016 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
18017 HOST_WIDE_INT_1U instead of 1ULL.
18018 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
18019 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
18020 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
18021 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
18023 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
18026 2019-02-18 Martin Jambor <mjambor@suse.cz>
18028 PR tree-optimization/89209
18029 * tree-sra.c (create_access_replacement): New optional parameter
18030 reg_tree. Use it as a type if non-NULL and access type is not of
18032 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
18033 to create_access_replacement.
18034 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
18035 Check lacc is non-NULL before attempting to re-create it on the RHS.
18037 2019-02-18 Martin Liska <mliska@suse.cz>
18040 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
18042 (symbol_table::free_edge): Recycle m_summary_id.
18043 * cgraph.h (get_summary_id): New.
18044 (symbol_table::release_symbol): Set m_summary_id to -1
18046 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
18047 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
18048 function_summary to fast_function_summary.
18049 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
18050 * ipa-pure-const.c (class funct_state_summary_t):
18051 Switch from function_summary to fast_function_summary.
18052 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
18053 (class ipa_ref_opt_summary_t): Switch from function_summary
18054 to fast_function_summary.
18055 * symbol-summary.h (class function_summary_base): New class
18056 that is created from base of former function_summary.
18057 (function_summary_base::unregister_hooks): New.
18058 (class function_summary): Inherit from function_summary_base.
18059 (class call_summary_base): New class
18060 that is created from base of former call_summary.
18061 (class call_summary): Inherit from call_summary_base.
18062 (struct is_same): New.
18063 (class fast_function_summary): New summary class.
18064 (class fast_call_summary): New summary class.
18065 * vec.h (vec_safe_grow_cleared): New function.
18067 2019-02-18 Martin Liska <mliska@suse.cz>
18069 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
18070 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
18071 * doc/tm.texi: Document new target hook.
18072 * doc/tm.texi.in: Likewise.
18073 * target.def: Add new target macro.
18074 * gcc.c (find_fortran_preinclude_file): Do not search multilib
18077 2019-02-17 Alan Modra <amodra@gmail.com>
18080 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
18081 output reg on add insn.
18082 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
18084 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18087 * config/i386/sse.md (ssedoublemode): Remove V4HI.
18088 (PMULHRSW): Likewise.
18089 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
18091 (ssse3_pmulhrswv4hi3): New expander.
18093 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18095 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
18096 MMX. Add isa attribute.
18098 2019-02-16 Jakub Jelinek <jakub@redhat.com>
18100 PR rtl-optimization/66152
18101 * builtins.h (c_readstr): Declare.
18102 * builtins.c (c_readstr): Remove forward declaration. Add
18103 null_terminated_p argument, if false, read all bytes from the
18104 string instead of stopping after '\0'.
18105 * expr.c (string_cst_read_str): New function.
18106 (store_expr): Use string_cst_read_str instead of
18107 builtin_strncpy_read_str. Try to store by pieces the whole
18108 exp_len first, and only if that fails, split it up into
18109 store by pieces followed by clear_storage. Formatting fix.
18111 * config/i386/i386.md (*movqi_internal): Remove static from
18112 buf variable. Use output_asm_insn (buf, operands); return "";
18113 instead of return buf;.
18114 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
18115 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
18116 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
18118 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18120 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
18121 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
18122 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
18123 (CC1_SPEC): Likewise.
18124 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
18126 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18128 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
18129 the base address on 64-bit strict-alignment platforms.
18131 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
18133 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
18135 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18137 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
18139 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
18141 PR rtl-optimization/88308
18142 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
18143 on copied instruction.
18145 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18147 * final.c (insn_current_reference_address): Replace test on JUMP_P
18148 with test on jump_to_label_p.
18149 * config/visium/visium-passes.def: New file.
18150 * config/visium/t-visium (PASSES_EXTRA): Define.
18151 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
18152 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
18153 (TRAMPOLINE_ALIGNMENT): Define.
18154 * config/visium/visium.c (visium_option_override): Do not register
18155 the machine-specific reorg pass here.
18156 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
18158 (output_branch): Adjust threshold for long branch instruction.
18159 * config/visium/visium.md (cpu): Move around.
18160 (length): Adjust for the GR6.
18162 2019-02-15 Richard Biener <rguenther@suse.de>
18163 Jakub Jelinek <jakub@redhat.com>
18165 PR tree-optimization/89278
18166 * tree-loop-distribution.c: Include tree-eh.h.
18167 (generate_memset_builtin, generate_memcpy_builtin): Call
18168 rewrite_to_non_trapping_overflow on builtin->size before passing it
18169 to force_gimple_operand_gsi.
18171 2019-02-15 Jakub Jelinek <jakub@redhat.com>
18174 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
18176 * opth-gen.awk: Likewise.
18178 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18180 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
18181 Enable MMX, SSE and SSE2 by default.
18182 * config/i386/i386.c (ix86_option_override_internal): Do not
18183 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
18185 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18187 PR rtl-optimization/89354
18188 * combine.c (make_extraction): Punt if extraction_mode is narrower
18191 2019-02-14 Maya Rashish <coypu@sdf.org>
18193 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
18194 * config/netbsd-d.c: New file.
18195 * config/t-netbsd: Add netbsd-d.o
18197 2018-02-14 Steve Ellcey <sellcey@marvell.com>
18199 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
18200 affects_type_identity to true for aarch64_vector_pcs.
18201 (aarch64_comp_type_attributes): New function.
18202 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
18204 2019-02-14 Tamar Christina <tamar.christina@arm.com>
18207 * config/arm/iterators.md (ANY64): Add V4HF.
18209 2019-02-14 Martin Liska <mliska@suse.cz>
18211 PR rtl-optimization/89242
18212 * dce.c (delete_unmarked_insns): Call free_dominance_info we
18213 process a transformation.
18215 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18217 PR tree-optimization/89314
18218 * fold-const.c (fold_binary_loc): Cast strlen argument to
18219 const char * before dereferencing it. Formatting fixes.
18221 PR middle-end/89284
18222 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
18224 2019-02-13 Ian Lance Taylor <iant@golang.org>
18226 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
18227 and set current index for other optimizations.
18229 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
18231 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
18232 nonimmediate_operand as operand 2 predicate.
18233 (vec_set<VF2_512_256:mode>_0): Ditto.
18234 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
18235 (*vec_concatv2si): Remove alternative 2.
18236 (*vec_concatv4si_0): Use vm constraint for alternative 0.
18237 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
18238 (vec_concatv2di): Split alternatives 4,5,6 to ...
18239 (*vec_concatv2di_0) ... new pattern.
18241 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
18244 * config/arm/arm.c (ldm_stm_operation_p) Set
18245 addr_reg_in_reglist correctly for first register.
18246 (load_multiple_sequence): Remove dead base check.
18247 (gen_ldm_seq): Correctly set write_back for Thumb-1.
18249 2019-02-13 Tamar Christina <tamar.christina@arm.com>
18252 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
18253 Expose as @aarch64_pred_mov.
18254 * config/aarch64/aarch64.c (aarch64_classify_address):
18255 Use expand_insn which legitimizes operands.
18257 2019-02-13 Martin Liska <mliska@suse.cz>
18259 * builtins.h (expand_builtin_with_bounds): Remove declaration.
18260 * calls.c (struct arg_data): Remove special_slot, pointer_arg
18261 and pointer_offset fields.
18262 (initialize_argument_information): Remove usage of dead
18264 * cgraph.h (struct cgraph_thunk_info): Remove
18265 add_pointer_bounds_args.
18266 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
18268 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
18270 * config/i386/i386.c (ix86_function_arg_advance): Remove
18272 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
18273 (def_builtin): Remove usage of dead fields.
18274 (ix86_add_new_builtins): Likewise.
18275 * ipa-fnsummary.c (compute_fn_summary): Likewise.
18276 * ipa-icf.c (sem_function::equals_wpa): Likewise.
18277 (sem_function::init): Likewise.
18278 (sem_variable::merge): Likewise.
18279 * ipa-visibility.c (function_and_variable_visibility): Likewise.
18280 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
18281 * lto-cgraph.c (lto_output_node): Likewise.
18282 (lto_output_varpool_node): Likewise.
18283 (input_node): Likewise.
18284 (input_varpool_node): Likewise.
18285 * lto-streamer-out.c (lto_output): Likewise.
18286 * tree-inline.c (expand_call_inline): Remove usage of
18288 * tree-inline.h (struct copy_body_data): Likewise.
18289 * varpool.c (varpool_node::dump): Likewise.
18291 2019-02-13 Jakub Jelinek <jakub@redhat.com>
18293 PR middle-end/89303
18294 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
18295 into pt->vars_contains_escaped_heap instead of setting
18296 pt->vars_contains_escaped_heap to it.
18298 PR middle-end/89281
18299 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
18300 INTVAL (size), compare it to GET_MODE_MASK instead of
18301 1 << GET_MODE_BITSIZE.
18304 * config/i386/predicates.md (x86_64_immediate_operand): Allow
18305 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
18308 2019-02-13 Martin Liska <mliska@suse.cz>
18311 * cfgrtl.c (remove_barriers_from_footer): New function.
18312 (try_redirect_by_replacing_jump): Use it.
18313 (cfg_layout_redirect_edge_and_branch): Likewise.
18315 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18317 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
18318 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
18319 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
18320 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
18321 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
18322 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
18324 * config/rs6000/rs6000.c (builtin_function_type)
18325 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
18326 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
18327 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
18328 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
18329 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
18331 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
18333 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
18334 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
18336 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
18339 * config/i386/i386.md (*movoi_internal_avx): Revert revision
18340 268678 and revision 268657.
18341 (*movti_internal): Likewise.
18343 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
18346 * config/s390/s390.c (s390_decompose_address): Update comment.
18347 (s390_check_qrst_address): Reject invalid address forms after
18350 2019-02-12 Martin Liska <mliska@suse.cz>
18353 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
18354 we need default values of funct_state for a function that
18357 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
18359 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
18360 the object to pick the size of stores on strict-alignment platforms.
18362 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
18363 (*movdi_insn_sp32): Likewise.
18364 (*movdi_insn_sp64): Likewise.
18366 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
18369 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
18370 types that needs constructiong.
18371 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
18373 2019-02-12 Richard Biener <rguenther@suse.de>
18375 PR tree-optimization/89253
18376 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
18377 duplicate the loop.
18379 2019-02-11 David Malcolm <dmalcolm@redhat.com>
18382 * input.c (selftest::test_line_offset_overflow): New selftest.
18383 (selftest::input_c_tests): Call it.
18385 2019-02-11 Martin Sebor <msebor@redhat.com>
18387 PR tree-optimization/88771
18388 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
18389 when -Wstringop-overflow is set.
18390 (builtin_memref::builtin_memref): Adjust excessive upper bound
18391 only when lower bound is not excessive.
18392 (maybe_diag_overlap): Detect and diagnose excessive bounds via
18393 -Wstringop-ovefflow.
18394 (maybe_diag_offset_bounds): Rename...
18395 (maybe_diag_access_bounds): ...to this.
18396 (check_bounds_or_overlap): Adjust for name change above.
18398 2019-02-11 Martin Sebor <msebor@redhat.com>
18401 * builtins.c (max_object_size): Move from here...
18402 * builtins.h (max_object_size): ...and here...
18403 * tree.c (max_object_size): ...to here...
18404 * tree.h (max_object_size): ...and here.
18406 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
18408 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
18409 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
18410 for correct semantics.
18412 2019-02-11 Alan Modra <amodra@gmail.com>
18414 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
18415 -mlongcall and -mpltseq.
18416 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
18417 (RS/6000 and PowerPC Options <-mpltseq>): Document.
18418 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
18419 * config/rs6000/sysv4.opt (mpltseq): New option.
18420 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
18421 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
18422 support is lacking. Don't allow -mpltseq with -mbss-plt.
18423 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
18424 -mpltseq given for ELFv1.
18425 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
18426 Only use UNSPEC_PLTSEQ for inline PLT calls.
18427 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
18428 use UNSPEC_PLTSEQ for inline PLT calls.
18429 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
18430 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
18431 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
18432 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18433 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18434 (pltseq_mtctr_<mode>): Likewise.
18436 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18438 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
18440 * configure: Regenerate.
18442 2019-02-11 Jakub Jelinek <jakub@redhat.com>
18445 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
18448 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18450 * function.c (assign_parm_setup_block): Use the stored
18451 size, not the passed size, when allocating stack-space,
18452 also for a parameter with alignment larger than
18453 MAX_SUPPORTED_STACK_ALIGNMENT.
18455 2019-02-11 Martin Liska <mliska@suse.cz>
18458 * ipa-cp.c (build_toporder_info): Remove usage of a param.
18459 * ipa-inline.c (inline_small_functions): Likewise.
18460 * ipa-pure-const.c (propagate_pure_const): Likewise.
18461 (propagate_nothrow): Likewise.
18462 * ipa-reference.c (propagate): Likewise.
18463 * ipa-utils.c (struct searchc_env): Remove unused field.
18464 (searchc): Always search across AVAIL_INTERPOSABLE.
18465 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
18466 the only called IPA pure const can properly not propagate
18467 across interposable boundary.
18468 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18470 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18472 * config/nds32/nds32.md (call_internal, call_value_internal,
18473 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18475 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18477 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
18480 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
18482 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
18485 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18487 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
18489 2019-02-10 Jakub Jelinek <jakub@redhat.com>
18491 PR tree-optimization/89268
18492 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
18493 if preds is non-NULL.
18495 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18498 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
18501 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18503 * config/nds32/nds32.md (trap): New pattern.
18505 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18507 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
18510 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18512 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
18515 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18517 * ipa-visibility.c (localize_node): Also do not localize
18518 LDPR_PREVAILING_DEF_IRONLY_EXP.
18520 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18523 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
18524 instead of type_with_linkage.
18526 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18529 * params.def (uninlined-function-insns, uninlined-function-time,
18530 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
18531 bound so we don't get overflows.
18533 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18535 * config/rs6000/rs6000-string.c (expand_compare_loop,
18536 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
18539 2019-02-09 Jakub Jelinek <jakub@redhat.com>
18541 PR middle-end/89246
18542 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18543 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
18544 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18546 2019-02-09 Alan Modra <amodra@gmail.com>
18549 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18550 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18553 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18555 PR middle-end/88560
18556 * lra-constraints.c (process_alt_operands): Don't increase reject
18557 for memory when offset memory is required.
18559 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18561 * config/s390/vector.md: Implement vector copysign.
18563 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18565 * expr.c (expand_constructor): Correct indentations.
18567 2019-02-08 Richard Biener <rguenther@suse.de>
18569 PR tree-optimization/89247
18570 * tree-if-conv.c: Include tree-cfgcleanup.h.
18571 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18572 (tree_if_conversion): Pass through predicate vector.
18573 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18574 inline, see if any if-converted loops we refrece in
18575 LOOP_VECTORIZED calls vanished and fixup.
18576 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18578 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18580 * config/s390/constraints.md (jdd): New constraint.
18582 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18585 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18586 upper 16 vector registers without TARGET_AVX512VL.
18587 (*movti_internal): Likewise.
18589 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18591 PR rtl-optimization/89234
18592 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18593 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18594 (copy_reg_eh_region_note_backward): Likewise.
18596 2019-02-08 Richard Biener <rguenther@suse.de>
18598 PR middle-end/89223
18599 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18600 doesn't fit in HWI.
18601 (analyze_subscript_affine_affine): Handle failure from
18602 initialize_matrix_A.
18604 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18606 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18609 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18611 PR tree-optimization/86637
18612 PR tree-optimization/89235
18613 * tree-vect-loop.c (optimize_mask_stores): Add an
18614 auto_purge_vect_location sentinel to ensure that vect_location is
18616 * tree-vectorizer.c
18617 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18618 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18619 to ensure that vect_location is purged on exit.
18620 (pass_slp_vectorize::execute): Likewise, replacing the manual
18622 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18624 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18626 * config/aarch64/iterators.md (max_opp): New code_attr.
18627 (USMAX): New code iterator.
18628 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18629 (aarch64_smax): Likewise.
18630 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18631 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18634 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18637 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18638 for TARGET_AVX512VL.
18639 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18641 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18643 * config/s390/s390-builtin-types.def: Add new types.
18644 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18645 (s390_vec_xlw4): Make the memory operand into a const pointer.
18646 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18648 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18649 a new vector type with the alignment of the scalar memory operand.
18651 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18652 Jakub Jelinek <jakub@redhat.com>
18655 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18656 arm_count_ldrdstrd_insns): New declarations.
18657 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18659 (valid_operands_ldrd_strd): New function.
18660 (arm_count_ldrdstrd_insns): New function.
18661 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18662 sets instead of single DImode set and define new insns to match this.
18664 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18666 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18667 Make it a C initializer.
18669 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18672 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18674 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18676 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18677 Use neon_dot<q> for type.
18678 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18680 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18682 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18683 Use neon_dot<q> for type.
18684 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18685 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18687 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18689 PR rtl-optimization/89225
18690 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18693 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18695 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18696 after restoring registers saved to allocate the frame on Windows.
18698 2019-02-06 Richard Biener <rguenther@suse.de>
18700 PR tree-optimization/89182
18701 * graphite.h (cached_scalar_evolution_in_region): Declare.
18702 * graphite.c (struct seir_cache_key): New.
18703 (struct sese_scev_hash): Likewise.
18704 (seir_cache): New global.
18705 (cached_scalar_evolution_in_region): New function.
18706 (graphite_transform_loops): Allocate and release seir_cache.
18707 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18708 cached_scalar_evolution_in_region.
18709 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18711 (scop_detection::graphite_can_represent_expr: Use
18712 cached_scalar_evolution_in_region.
18713 (scop_detection::stmt_simple_for_scop_p): Likewise.
18714 (find_params_in_bb): Likewise.
18715 (gather_bbs::before_dom_children): Likewise.
18716 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18717 (add_loop_constraints): Likewise.
18719 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18721 PR middle-end/89210
18722 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18723 operand to new_unary_operation only if both element types are integral
18724 and it isn't a widening conversion. Return NULL_TREE if
18725 new_unary_operation failed.
18727 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18730 * config/s390/s390.md: Remove load and test FP splitter.
18732 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18735 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18736 expand_compare_loop, expand_block_compare_gpr,
18737 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18738 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18739 #include "profile-count.h" and "predict.h" for types and functions
18740 needed to work with REG_BR_PROB notes.
18742 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18745 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18746 for the long branch case.
18748 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18751 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18752 can throw, non-call exceptions are enabled and we can't delete
18753 dead exceptions or alter cfg. Set must_clean if
18754 delete_insn_and_edges returns true, don't set it blindly for calls.
18755 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18757 PR rtl-optimization/89195
18758 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18759 of the original MEM.
18761 2019-02-05 Martin Liska <mliska@suse.cz>
18763 PR gcov-profile/89000
18764 * gcov.c (function_summary): Remove argument.
18765 (file_summary): New function.
18766 (print_usage): Replace tabs with spaces.
18767 (generate_results): Use new function file_summary.
18769 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18772 * optabs.c (prepare_cmp_insn): Pass x and y to
18773 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18775 2019-02-05 Richard Biener <rguenther@suse.de>
18777 PR middle-end/89150
18778 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18779 (struct bitmap_element): Drop chain_prev so we properly recurse on
18780 the prev member, supporting tree views.
18781 (struct bitmap_head): GTY skip the obstack member.
18783 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18786 * doc/extend.texi (Vector Extensions): Add an example of using vector
18787 types together with x86 intrinsics.
18789 2019-02-04 Alan Modra <amodra@gmail.com>
18791 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18792 str[] size to 160, and comment.
18794 2019-02-04 Alan Modra <amodra@gmail.com>
18796 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18797 (rs6000_pltseq_template): Guard output of TLS markers with
18798 TARGET_TLS_MARKERS.
18799 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18800 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18801 to use inline PLT sequences.
18802 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18803 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18804 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18806 2019-02-04 Martin Liska <mliska@suse.cz>
18809 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18810 out when ipa_fn_summaries does not contain entry for callee.
18812 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18814 * config/sparc/sparc.h: Remove superfluous blank lines.
18815 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18816 (got_register_rtx): ...this.
18817 (sparc_got): Adjust to above renaming.
18818 (sparc_tls_got): Likewise.
18819 (sparc_delegitimize_address): Likewise.
18820 (sparc_output_mi_thunk): Likewise.
18821 (sparc_init_pic_reg): Likewise.
18822 (save_local_or_in_reg_p): Fix test on the GOT register.
18823 (USE_HIDDEN_LINKONCE): Move around.
18824 (get_pc_thunk_name): Likewise.
18825 (gen_load_pcrel_sym): Likewise.
18826 (load_got_register): Likewise.
18828 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18830 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18831 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18833 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18835 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18836 into consideration.
18838 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18840 * config.gcc (with_nds32_lib, glibc):
18841 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18842 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18843 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18845 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18848 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18849 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18850 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18851 (*rcpsf2_sse): Ditto.
18852 (*rsqrtsf2_sse): Ditto.
18853 (sse4_1_round<mode<2): Ditto.
18855 2019-02-03 Richard Biener <rguenther@suse.de>
18858 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18861 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18863 PR middle-end/87887
18864 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18865 Punt with warning on aggregate return or argument types. Ignore
18866 type/mode checking for uniform arguments.
18868 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18870 * combine.c (try_combine): Do not print "Can't combine" messages unless
18871 printing failed combination attempts.
18873 2019-02-01 Martin Jambor <mjambor@suse.cz>
18876 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18877 segment and global segment variables before making them static.
18879 2019-02-01 Martin Jambor <mjambor@suse.cz>
18881 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18882 missed optimization dump with dump_enabled_p.
18884 2019-02-01 Richard Biener <rguenther@suse.de>
18886 PR middle-end/88597
18887 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18888 the instantiate cache.
18889 (instantiate_scev_binary): Elide second operand procesing
18890 if equal to the first.
18891 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18892 (chrec_contains_undetermined): Likewise.
18893 (tree_contains_chrecs): Likewise.
18895 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18897 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18899 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18901 PR tree-optimization/89143
18902 * wide-int-range.h (wide_int_range_absu): Declare.
18903 * wide-int-range.cc (wide_int_range_absu): New function.
18904 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18906 PR tree-optimization/88107
18907 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18908 instead of assertion that eh_region_outermost is non-NULL, if it
18909 is NULL, set *ALL to true and return NULL.
18910 (move_sese_region_to_fn): Adjust caller, if all is set, call
18911 duplicate_eh_regions with NULL region.
18913 2019-02-01 Richard Biener <rguenth@suse.de>
18915 PR rtl-optimization/88593
18916 * mode-switching.c (optimize_mode_switching): Free dominators before
18917 calling cleanup_cfg.
18919 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18921 PR tree-optimization/88932
18922 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18924 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18926 PR middle-end/89137
18927 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18928 bogus clang warning.
18930 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18933 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18934 alternative to avoid partial SSE register stall for TARGET_AVX.
18935 (truncdfsf2): Ditto.
18936 (sse4_1_round<mode>2): Ditto.
18938 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18940 PR tree-optimization/89008
18941 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18942 process anything of the form X * 0.
18944 2019-01-31 Richard Biener <rguenther@suse.de>
18946 PR tree-optimization/89135
18947 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18948 with abnormal preds.
18950 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18953 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18954 always_inline callees into no_sanitize_address callers.
18956 2019-01-31 Richard Biener <rguenther@suse.de>
18958 PR rtl-optimization/89115
18959 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18961 2019-01-30 Martin Sebor <msebor@redhat.com>
18964 * doc/extend.texi (cast to a union): Correct and expand.
18966 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18968 PR rtl-optimization/87246
18969 * lra-constraints.c (simplify_operand_subreg): Reload memory
18970 in subreg if the address became invalid.
18972 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18975 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18976 Disable for little-endian.
18978 2019-01-30 Richard Biener <rguenther@suse.de>
18980 PR rtl-optimization/89115
18981 * opts.c (default_options_optimization): Reduce
18982 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18983 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18986 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18988 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18989 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18990 type of vector element when vec_extract is implemented by direct
18993 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18995 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18997 2019-01-30 Richard Biener <rguenther@suse.de>
18999 PR tree-optimization/89111
19000 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
19001 canonicalization to appropriately sized access types.
19003 2019-01-30 Jakub Jelinek <jakub@redhat.com>
19006 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
19007 for arguments to functions that are TU-local and shouldn't be
19008 referenced by assembly.
19010 2019-01-30 Ulrich Drepper <drepper@redhat.com>
19012 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
19015 2019-01-29 Martin Sebor <msebor@redhat.com>
19018 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
19020 2019-01-29 Jakub Jelinek <jakub@redhat.com>
19024 * omp-simd-clone.c (simd_clone_clauses_extract)
19025 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
19026 OMP_CLAUSE_ALIGNED_ALIGNMENT.
19028 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
19030 * config.gcc: Force .init_array for ARC.
19032 2019-01-29 Richard Biener <rguenther@suse.de>
19035 * dwarf2out.c (collect_skeleton_dies): New helper.
19036 (copy_decls_for_unworthy_types): Call it.
19037 (build_abbrev_table): Assert we do not try to replace
19038 DW_AT_signature refs with local refs.
19040 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19042 PR middle-end/89002
19043 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
19044 for lastprivate/linear IV, push gimplify context around gimplify_assign
19045 and, if it needed any temporaries, pop it into a gimple bind around the
19048 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19050 * common.opt (-Wattribute-alias): Remove "no-" from name.
19051 Make -Wattribute-alias command line option and
19052 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
19054 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19057 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
19058 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
19060 (bmi2): Add missing @opindex.
19061 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
19062 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
19063 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
19064 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
19065 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
19066 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
19067 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
19068 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
19069 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
19070 xsavec, xsaveopt and xsaves options.
19072 2019-01-28 Richard Biener <rguenther@suse.de>
19075 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
19078 2019-01-28 Richard Biener <rguenther@suse.de>
19080 PR tree-optimization/88739
19081 * tree-cfg.c (verify_types_in_gimple_reference): Verify
19082 BIT_FIELD_REFs only are applied to mode-precision operands
19083 when they are integral.
19084 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
19085 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
19086 BIT_FIELD_REFs of non-mode-precision integral operands.
19088 2019-01-27 Jakub Jelinek <jakub@redhat.com>
19091 * config/i386/sse.md
19092 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
19093 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
19094 first constants in pairs are multiples of 2. Formatting fixes.
19095 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
19096 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
19097 first constants in each quadruple are multiples of 4. Formatting fixes.
19099 2019-01-26 Martin Jambor <mjambor@suse.cz>
19102 * tree-inline.c: Include tree-cfgcleanup.h.
19103 (delete_unreachable_blocks_update_callgraph): Move...
19104 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
19105 ...here, make externally visible, make second argument bool, adjust
19107 * tree-cfgcleanup.c: Include cgraph.h.
19108 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
19110 * ipa-prop.c: Include tree-cfgcleanup.h.
19111 (ipcp_transform_function): Call
19112 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
19114 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
19116 PR rtl-optimization/88846
19117 * ira.c (process_set_for_memref_referenced_p): New.
19118 (memref_referenced_p): Add new param. Use
19119 process_set_for_memref_referenced_p. Add new switch cases.
19120 (memref_used_between_p): Pass new arg to memref_referenced_p.
19122 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
19125 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
19126 argument ABI_BREAK. Set to true if the calculated alignment has
19127 changed in gcc-9. Check bit-fields for their base type alignment.
19128 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
19129 (aarch64_function_arg_boundary): Likewise.
19130 (aarch64_gimplify_va_arg_expr): Likewise.
19132 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19134 PR middle-end/89037
19135 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
19136 instead of accessing TREE_INT_CST_ELT directly.
19138 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
19140 * doc/sourcebuild.texi (Environment attributes): Add fenv and
19141 fenv_exceptions description.
19143 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
19145 PR rtl-optimization/87763
19146 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
19147 Allow SUBREG when matching CC_NZmode compare.
19149 2019-01-25 Richard Biener <rguenther@suse.de>
19151 PR tree-optimization/89049
19152 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
19153 Look at the pattern stmt to determine if the stmt is vectorized.
19155 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19157 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
19158 (pred_mov<mode>): Handle all-register forms using both a new
19159 alternative and a split.
19161 2019-01-25 Richard Biener <rguenther@suse.de>
19163 PR tree-optimization/86865
19164 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19165 Reject non-do-while loops.
19167 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
19169 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
19170 * config/rs6000/constraints.md (Q constraint): Use REG_P.
19171 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
19172 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19173 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
19174 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19175 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
19176 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
19177 vlogical_operand, gpc_reg_operand, int_reg_operand,
19178 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
19179 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
19180 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
19181 (save_world_operation, restore_world_operation, lmw_operation,
19182 stmw_operation): Use MEM_P and REG_P.
19183 (tie_operand): Use MEM_P.
19184 (vrsave_operation, crsave_operation): Use REG_P.
19185 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
19186 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
19187 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
19188 (call_operand): Use HARD_REGISTER_P.
19189 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
19191 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
19192 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
19193 quad_aligned_load_p, replace_swapped_aligned_store,
19194 recombine_lvx_pattern, replace_swapped_aligned_load,
19195 recombine_stvx_pattern): Use MEM_P.
19196 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
19197 Use MEM_P and SYMBOL_REF_P.
19198 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
19199 (insn_is_swappable_p): Use REG_P and MEM_P.
19200 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
19201 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
19203 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
19204 Use CONST_DOUBLE_P.
19205 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
19207 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
19208 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
19209 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
19210 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
19212 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19213 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
19214 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
19215 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
19216 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
19217 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
19218 rs6000_split_logical_di): Use CONST_INT_P.
19219 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
19220 REG_P and SYMBOL_REF_P.
19221 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
19222 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
19223 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
19224 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
19225 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
19226 (small_data_operand, print_operand_address): Use CONST_INT_P and
19228 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
19229 (rs6000_init_hard_regno_mode_ok, direct_move_p):
19230 Use HARD_REGISTER_NUM_P.
19231 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
19232 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
19233 SUBREG_P and SYMBOL_REF_P.
19234 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
19235 and HARD_REGISTER_NUM_P.
19236 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
19238 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
19239 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
19241 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
19242 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
19243 find_addr_reg): Use REG_P.
19244 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
19245 (rs6000_emit_le_vsx_move): Use SUBREG_P.
19246 (offsettable_ok_by_alignment, constant_pool_expr_p,
19247 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
19248 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
19249 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
19250 rs6000_assemble_integer, create_TOC_reference,
19251 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
19252 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
19253 (rs6000_split_vec_extract_var): Use reg_or_subregno.
19254 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19255 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19256 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19257 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19258 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
19259 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
19260 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
19261 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
19262 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
19263 and cbranch<mode>4): Use CONST_INT_P.
19264 (multiple define_splits): Use REG_P and SUBREG_P.
19265 (define_expands call, call_value): Use MEM_P.
19266 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
19267 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
19268 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
19269 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
19270 and HARD_REGISTER_NUM_P.
19271 (multiple define_splits): Use HARD_REGISTER_NUM_P.
19273 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
19275 PR rtl-optimization/88948
19276 * rtl.h (prepare_copy_insn): New prototype.
19277 * gcse.c (prepare_copy_insn): New function, split out from
19278 process_insert_insn.
19279 (process_insert_insn): Use prepare_copy_insn.
19280 * store-motion.c (replace_store_insn): Use prepare_copy_insn
19281 instead of gen_move_insn.
19283 2019-01-24 Jakub Jelinek <jakub@redhat.com>
19286 * config/i386/i386.c (ix86_pic_register_p): Return true for
19287 UNSPEC_SET_GOT too.
19289 PR tree-optimization/88964
19290 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
19291 punt if HONOR_SNANS (chrec).
19293 PR middle-end/89015
19294 * tree-nested.c (convert_nonlocal_reference_stmt,
19295 convert_local_reference_stmt, convert_tramp_reference_stmt,
19296 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
19297 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
19298 or GIMPLE_OMP_TASK.
19300 PR tree-optimization/89027
19301 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
19302 for "omp simd array" variables.
19304 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
19307 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
19308 force the alignment of m_val.
19310 2019-01-24 Richard Biener <rguenther@suse.de>
19313 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
19314 When in "legacy" debug mode make sure to reset self-origins.
19316 2019-01-24 Martin Liska <mliska@suse.cz>
19318 PR gcov-profile/88994
19319 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
19320 result will be always smaller or equal to the original.
19321 * gcov.c (mangle_name): Fix else branch where we should
19322 also copy to PTR and shift the pointer.
19324 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19326 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
19327 * vr-values.c (find_case_label_ranges): Fix a comment typo.
19329 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
19331 * common/config/i386/i386-common.c
19332 (OPTION_MASK_ISA_ENQCMD_SET,
19333 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
19334 (ix86_handle_option): Handle -menqcmd.
19335 * config.gcc (enqcmdintrin.h): New header file.
19336 * config/i386/cpuid.h (bit_ENQCMD): New bit.
19337 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19339 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
19341 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
19342 __builtin_ia32_enqcmds): New builtins.
19343 * config/i386/i386-c.c (__ENQCMD__): New macro.
19344 * config/i386/i386-option.c (ix86_target_string): Add
19346 (ix86_valid_target_attribute_inner_p): Likewise.
19347 * config/i386/i386-expand.c
19348 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
19349 IX86_BUILTIN_ENQCMDS.
19350 * config/i386/i386.h (TARGET_ENQCMD): New.
19351 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
19352 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
19353 (movdir64b_<mode>): Parameterize to enable share expansion code
19354 with ENQCMD in function ix86_expand_builtin.
19355 * config/i386/i386.opt: Add -menqcmd.
19356 * config/i386/immintrin.h: Include enqcmdintrin.h.
19357 * config/i386/enqcmdintrin.h: New intrinsic file.
19358 * doc/invoke.texi: Add -menqcmd.
19360 2019-01-23 Bin Cheng <bin.cheng@arm.com>
19361 Steve Ellcey <sellcey@marvell.com>
19364 * recog.c (address_operand): Return false on wrong mode for address.
19365 (constrain_operands): Check for mode with 'p' constraint.
19367 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
19370 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
19371 Disparage MMX alternative.
19372 (sse2_cvtpd2pi): Ditto.
19373 (sse2_cvttpd2pi): Ditto.
19375 2019-01-23 David Malcolm <dmalcolm@redhat.com>
19378 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
19379 use-after-free of the result of
19380 aarch64_get_extension_string_for_isa_flags.
19382 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19385 * doc/extend.texi: Document break and continue behavior in
19386 statement expressions.
19388 2019-01-23 Richard Biener <rguenther@suse.de>
19390 PR tree-optimization/89008
19391 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
19392 not leave another stray operand.
19394 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19396 * BASE-VER: Bump to 9.0.1.
19398 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
19400 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
19401 thunk that returns by reference, use the type of the return object
19402 of the thunk instead of that of the alias to build the dereference.
19404 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
19406 * config/arc/atomic.md: Add operand to DMB instruction.
19408 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19410 PR tree-optimization/88964
19411 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
19412 build_zero_cst instead of build_int_cst. Return false for loop
19413 invariants which honor signed zeros.
19415 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
19417 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
19419 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19422 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
19423 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
19424 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
19426 PR middle-end/88968
19427 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
19428 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
19431 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
19432 Disable for little endian.
19434 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19437 * config/arm/arm.c (arm_needs_double_word_align): Check
19438 DECL_BIT_FIELD_TYPE.
19440 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
19441 H.J. Lu <hongjiu.lu@intel.com>
19444 * config/i386/i386-builtin.def: Add mask2 to all builtin
19445 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
19447 * config/i386/i386.c (BDESC): Add mask2 to the definition.
19448 (BDESC_FIRST): Likewise.
19449 (define_builtin): Add an argument for mask2. Updated to handle
19450 both ix86_isa_flags and ix86_isa_flags2.
19451 (define_builtin_const): Likewise.
19452 (define_builtin_pure): Likewise.
19453 (define_builtin2): Deleted.
19454 (define_builtin_const2): Likewise.
19455 (builtin_description): Add a member, mask2.
19456 (bdesc_*): Add mask2 to builtin initializations.
19457 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
19458 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
19460 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
19462 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
19465 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
19468 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19471 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19472 alignment is dominated by a bitfield with 64-bit aligned base type.
19473 (arm_function_arg): Emit a warning if the alignment has changed since
19474 earlier GCC releases.
19475 (arm_function_arg_boundary): Likewise.
19476 (arm_setup_incoming_varargs): Likewise.
19478 2019-01-22 Richard Biener <rguenther@suse.de>
19480 PR tree-optimization/88862
19481 * graphite-scop-detection.c
19482 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
19484 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
19486 * doc/extend.tex (AMD GCN Function Attributes): New section.
19487 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
19488 * doc/invoke.texi (AMD GCN Options): New section.
19489 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
19491 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
19493 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
19494 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
19496 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19498 PR tree-optimization/88044
19499 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
19500 is false in the first iteration, but !every_iteration, return false
19501 instead of true with niter->niter zero.
19503 PR rtl-optimization/88904
19504 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
19505 any nonequal registers before processing BB_END (b).
19508 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
19510 (expand_binop_directly, expand_doubleword_clz,
19511 expand_doubleword_popcount, expand_ctz, expand_ffs,
19512 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
19514 PR rtl-optimization/49429
19516 PR rtl-optimization/86334
19518 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
19519 addressable from here...
19520 (emit_block_op_via_libcall): ... to here.
19522 2019-01-22 Richard Biener <rguenther@suse.de>
19524 * tree-vect-loop.c (vect_analyze_loop_operations): Use
19525 auto_vec for cost vector to fix memleak.
19526 (vectorize_fold_left_reduction): Properly gather SLP defs.
19527 (vectorizable_comparison): Do not swap operands to properly
19530 2019-01-22 Alan Modra <amodra@gmail.com>
19533 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
19534 stays a reg. Allow a const_int.
19535 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
19536 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
19537 (IS_NOMARK_TLSGETADDR): Define.
19538 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
19539 (rs6000_output_tlsargs): New function.
19540 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
19541 __tls_get_addr call takes an arg.
19542 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
19543 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
19545 (call_value_nonlocal_sysv): ..or here, delete split.
19546 (tls_gdld_nomark): Delete.
19547 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19548 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19549 (call_value_nonlocal_sysv): Likewise.
19550 (call_value_nonlocal_sysv_secure): Likewise.
19551 (call_value_nonlocal_aix): Likewise.
19552 (call_value_indirect_aix): Likewise.
19553 (call_value_indirect_elfv2): Likewise.
19554 (call_value_local32, call_value_local64): Disable for no-mark tls.
19555 (call_value_local_aix): Likewise.
19557 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19560 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19561 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19563 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19565 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19566 string contents as hash_map keys.
19568 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19571 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19572 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19573 instead of TYPE_ALIGN.
19574 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19575 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19576 pointer from TYPE_STUB_DECL.
19578 2019-01-21 Richard Biener <rguenther@suse.de>
19580 PR tree-optimization/88934
19581 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19582 at the possibly non-constant operand.
19583 (vect_get_constant_vectors): Adjust.
19585 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19588 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19589 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19590 instead of _X86INTRIN_H_INCLUDED.
19591 * onfig/i386/clwbintrin.h: Likewise.
19592 * config/i386/pkuintrin.h: Likewise.
19593 * config/i386/prfchwintrin.h: Likewise.
19594 * config/i386/rdseedintrin.h: Likewise.
19595 * config/i386/wbnoinvdintrin.h: Likewise.
19596 * config/i386/xsavecintrin.h: Likewise.
19597 * config/i386/xsavesintrin.h: Likewise.
19598 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19599 * config/i386/xsaveintrin.h: Likewise.
19600 * config/i386/xsaveoptintrin.h: Likewise.
19601 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19602 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19603 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19604 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19605 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19606 * config/i386/immintrin.h: Here.
19608 2019-01-20 Martin Jambor <mjambor@suse.cz>
19611 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19612 with aa_walk_budget.
19613 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19614 aa_walk_budget_p parameter.
19615 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19616 walk. Updated all callers.
19617 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19618 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19620 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19621 parameter info. Extract info from fbi. Pass fbi to recursive calls
19622 and to unmodified_parm.
19623 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19624 info, updated call to will_be_nonconstant_expr_predicate.
19625 (param_change_prob): New parameter fbi, limit AA walking.
19626 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19627 calls to various above functions.
19628 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19629 parameter. Use it to limit AA walking.
19630 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19631 fbi, limit AA walk.
19632 (detect_type_change): New parameter fbi, pass it on to
19633 detect_type_change_from_memory_writes.
19634 (detect_type_change_ssa): Likewise.
19635 (aa_overwalked): Removed.
19636 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19637 accordingly, adjust to the neew AA limiting scheme.
19638 (parm_ref_data_preserved_p): Likewise.
19639 (ipa_compute_jump_functions_for_edge): Adjust call to
19641 (ipa_analyze_call_uses): Likewise.
19642 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19643 (ipa_analyze_node): Initialize aa_walk_budget.
19644 (ipcp_transform_function): Likewise.
19645 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19646 to get_dynamic_type.
19648 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19650 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19651 outside of #if CHECKING_P code.
19653 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19655 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19656 New function, split out from...
19657 (loop_versioning::analyze_stride): ...here.
19658 (loop_versioning::find_per_loop_multiplication): Use gassign.
19659 (loop_versioning::analyze_term_using_scevs): Return a success code.
19660 (loop_versioning::analyze_arbitrary_term): New function.
19661 (loop_versioning::analyze_address_fragment): Use
19662 analyze_arbitrary_term if all else fails.
19664 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19667 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19670 2019-01-18 Richard Biener <rguenther@suse.de>
19672 PR tree-optimization/88903
19673 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19674 scalar stmts a SLP shift amount is composed of when detecting
19677 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19680 * config/arm/arm-cpus.in (mp): New feature.
19681 (sec): New feature.
19682 (fgroup ARMv7ve): Add mp and sec features.
19683 (arch armv7-a): Add options to allow mp and sec extensions.
19684 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19685 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19686 extenstions to the base architecture.
19687 (cpu cortex-a8): Add sec extension to the base architecture.
19688 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19689 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19690 variants down to the base v7-a varaint.
19691 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19692 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19693 of permitted extensions for -march=armv7-a and for
19694 -mcpu=generic-armv7-a.
19696 2019-01-18 Martin Liska <mliska@suse.cz>
19698 * params.def: Fix comment.
19699 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19701 (gimple_gen_ic_func_profiler): Likewise.
19703 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19705 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19706 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19707 and put in error checks for stack protector guard options.
19708 (aarch64_stack_protect_guard): New.
19709 (TARGET_STACK_PROTECT_GUARD): Define.
19710 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19711 (reg_stack_protect_address<mode>): New.
19712 (stack_protect_set): Adjust for SSP_GLOBAL.
19713 (stack_protect_test): Likewise.
19714 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19715 (-mstack-protector-guard): Likewise.
19716 (-mstack-protector-guard-offset): Likewise.
19718 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19720 PR tree-optimization/86214
19721 * tree-inline.h (struct copy_body_data): Add
19722 add_clobbers_to_eh_landing_pads member.
19723 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19724 (copy_edges_for_bb): Call it if EH edge destination is <
19725 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19726 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19727 if flag_stack_reuse != SR_NONE and clear it afterwards.
19729 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19732 * doc/install.texi (with-multilib-list): Document for aarch64.
19734 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19737 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19738 (("..."))) with ("...").
19740 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19742 * doc/extend.texi (Built-in Functions for Memory Model Aware
19743 Atomic Operations): Document atomic fetch and nand.
19745 2019-01-18 Martin Liska <mliska@suse.cz>
19746 Richard Biener <rguenther@suse.de>
19748 PR middle-end/88587
19749 * cgraph.h (create_version_clone_with_body): Add new argument
19751 * cgraphclones.c (cgraph_node::create_version_clone): Add
19752 DECL_ATTRIBUTES to a newly created decl. And call
19753 valid_attribute_p so that proper cl_target_optimization_node
19754 is set for the newly created declaration.
19755 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19757 (expand_target_clones): Do not call valid_attribute_p, it must
19759 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19762 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19765 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19766 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19767 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19769 2019-01-17 Martin Sebor <msebor@redhat.com>
19771 PR middle-end/88273
19772 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19773 Handle anti-ranges the same as no range at all.
19775 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19777 * config/aarch64/aarch64.c (cgraph.h): New include.
19778 (intl.h): New include.
19779 (supported_simd_type): New function.
19780 (currently_supported_simd_type): Ditto.
19781 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19782 (aarch64_simd_clone_adjust): Ditto.
19783 (aarch64_simd_clone_usable): Ditto.
19784 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19785 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19786 (TARGET_SIMD_CLONE_USABLE): Ditto.
19787 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19788 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19791 2019-01-17 Martin Sebor <msebor@redhat.com>
19793 PR tree-optimization/88800
19794 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19795 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19796 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19797 redundant argument. Add new argument and issue diagnostics under
19798 its control. Detect out-of-bounds access even with warnings
19800 (check_bounds_or_overlap): Change return type. Add argument.
19801 (wrestrict_dom_walker::check_call): Adjust.
19802 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19803 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19804 check_bounds_or_overlap's return value.
19805 (handle_builtin_stxncpy): Same.
19806 (handle_builtin_strcat): Same.
19808 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19809 Kwok Cheung Yeung <kcy@codesourcery.com>
19810 Julian Brown <julian@codesourcery.com>
19811 Tom de Vries <tom@codesourcery.com>
19813 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19815 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19817 * doc/sourcebuild.texi: Document dg-require-effective-target
19818 llvm_binutils and offload_gcn.
19820 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19821 Kwok Cheung Yeung <kcy@codesourcery.com>
19822 Julian Brown <julian@codesourcery.com>
19823 Tom de Vries <tom@codesourcery.com>
19825 * doc/sourcebuild.texi: Document dg-required-effective-target
19828 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19829 Kwok Cheung Yeung <kcy@codesourcery.com>
19830 Julian Brown <julian@codesourcery.com>
19831 Tom de Vries <tom@codesourcery.com>
19832 Jan Hubicka <hubicka@ucw.cz>
19833 Martin Jambor <mjambor@suse.cz>
19835 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19836 * configure.ac: Check for dlopen.
19837 * configure: Regenerate.
19839 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19840 Kwok Cheung Yeung <kcy@codesourcery.com>
19841 Julian Brown <julian@codesourcery.com>
19842 Tom de Vries <tom@codesourcery.com>
19843 Jan Hubicka <hubicka@ucw.cz>
19844 Martin Jambor <mjambor@suse.cz>
19846 * common/config/gcn/gcn-common.c: New file.
19847 * config/gcn/driver-gcn.c: New file.
19848 * config/gcn/gcn-builtins.def: New file.
19849 * config/gcn/gcn-hsa.h: New file.
19850 * config/gcn/gcn-modes.def: New file.
19851 * config/gcn/gcn-opts.h: New file.
19852 * config/gcn/gcn-passes.def: New file.
19853 * config/gcn/gcn-protos.h: New file.
19854 * config/gcn/gcn-run.c: New file.
19855 * config/gcn/gcn-tree.c: New file.
19856 * config/gcn/gcn.c: New file.
19857 * config/gcn/gcn.h: New file.
19858 * config/gcn/gcn.opt: New file.
19859 * config/gcn/t-gcn-hsa: New file.
19861 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19862 Kwok Cheung Yeung <kcy@codesourcery.com>
19863 Julian Brown <julian@codesourcery.com>
19864 Tom de Vries <tom@codesourcery.com>
19865 Jan Hubicka <hubicka@ucw.cz>
19866 Martin Jambor <mjambor@suse.cz>
19868 * config/gcn/constraints.md: New file.
19869 * config/gcn/gcn-valu.md: New file.
19870 * config/gcn/gcn.md: New file.
19871 * config/gcn/predicates.md: New file.
19873 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19875 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19876 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19877 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19878 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19880 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19883 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19884 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19885 it and document registers.
19887 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19889 * config/aarch64/aarch64.c (ares_tunings): Define.
19890 * config/aarch64/aarch64-cores.def (ares): Use the above.
19892 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19896 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19898 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19899 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19900 (_mm512_maskz_fixupimm_round_pd): Ditto.
19901 (_mm512_fixupimm_round_ps): Ditto.
19902 (_mm512_maskz_fixupimm_round_ps): Ditto.
19903 (_mm_fixupimm_round_sd): Ditto.
19904 (_mm_maskz_fixupimm_round_sd): Ditto.
19905 (_mm_fixupimm_round_ss): Ditto.
19906 (_mm_maskz_fixupimm_round_ss): Ditto.
19907 (_mm512_fixupimm_pd): Ditto.
19908 (_mm512_maskz_fixupimm_pd): Ditto.
19909 (_mm512_fixupimm_ps): Ditto.
19910 (_mm512_maskz_fixupimm_ps): Ditto.
19911 (_mm_fixupimm_sd): Ditto.
19912 (_mm_maskz_fixupimm_sd): Ditto.
19913 (_mm_fixupimm_ss): Ditto.
19914 (_mm_maskz_fixupimm_ss): Ditto.
19915 (_mm512_mask_fixupimm_round_pd): Update builtin.
19916 (_mm512_mask_fixupimm_round_ps): Ditto.
19917 (_mm_mask_fixupimm_round_sd): Ditto.
19918 (_mm_mask_fixupimm_round_ss): Ditto.
19919 (_mm512_mask_fixupimm_pd): Ditto.
19920 (_mm512_mask_fixupimm_ps): Ditto.
19921 (_mm_mask_fixupimm_sd): Ditto.
19922 (_mm_mask_fixupimm_ss): Ditto.
19923 * config/i386/avx512vlintrin.h:
19924 (_mm256_fixupimm_pd): Update parameters and builtin.
19925 (_mm256_maskz_fixupimm_pd): Ditto.
19926 (_mm256_fixupimm_ps): Ditto.
19927 (_mm256_maskz_fixupimm_ps): Ditto.
19928 (_mm_fixupimm_pd): Ditto.
19929 (_mm_maskz_fixupimm_pd): Ditto.
19930 (_mm_fixupimm_ps): Ditto.
19931 (_mm_maskz_fixupimm_ps): Ditto.
19932 (_mm256_mask_fixupimm_pd): Update builtin.
19933 (_mm256_mask_fixupimm_ps): Ditto.
19934 (_mm_mask_fixupimm_pd): Ditto.
19935 (_mm_mask_fixupimm_ps): Ditto.
19936 * config/i386/i386-builtin-types.def: Add new types and remove
19938 * config/i386/i386-builtin.def: Update builtin definitions.
19939 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19940 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19941 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19942 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19943 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19944 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19945 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19946 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19947 * config/i386/subst.md:
19948 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19949 (round_saeonly_sd_mask_op4): Ditto.
19950 (round_saeonly_expand_operand5): Ditto.
19951 (round_saeonly_expand): Update.
19953 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19957 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19959 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19960 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19961 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19962 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19963 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19964 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19965 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19967 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19971 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19974 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19975 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19976 instead of UNSPEC_FIXUPIMM.
19978 2019-01-17 Richard Biener <rguenther@suse.de>
19981 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19982 and friends for the LTO part of debug info.
19984 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19986 PR tree-optimization/86214
19987 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19990 PR rtl-optimization/88870
19991 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19992 throw if we can't alter the cfg or delete dead exceptions.
19993 (mark_insn): Don't call find_call_stack_args for such calls.
19995 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19997 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19998 prototypes for vec_st.
19999 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
20000 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
20001 mainly on signed/unsigned long long and double.
20003 2019-01-16 David Malcolm <dmalcolm@redhat.com>
20006 * combine.c (delete_noop_moves): Convert to "bool" return,
20007 returning true if any edges are eliminated.
20008 (combine_instructions): Also return true if delete_noop_moves
20011 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20013 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
20014 correct max nunits for endian swap.
20015 (aarch64_expand_fcmla_builtin): Correct subreg code.
20016 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20017 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
20020 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
20022 * config/alpha/alpha.c (alpha_gimplify_va_arg):
20023 Handle split indirect COMPLEX_TYPE arguments.
20025 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
20028 * config/aarch64/aarch64-modes.def: Add comment about how the carry
20029 bit is set by add and compare.
20030 (CC_ADC): New CC_MODE.
20031 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
20032 to cache the code and mode of X. Adjust the shape of a CC_Cmode
20033 comparison. Add detection for CC_ADCmode.
20034 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
20036 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
20037 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
20038 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
20039 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
20040 to eliminate the need for zero-extending the operands.
20041 (add<mode>3_compareC_imm): Delete. Merge into ...
20042 (add<mode>3_compareC): ... this. Restructure the comparison to
20043 eliminate the need for zero-extending the operands.
20044 (add<mode>3_carryin): Use LTU for the overflow detection.
20045 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
20046 Reexpress comparison for overflow.
20047 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
20048 (add<mode>3_carryinC): Likewise.
20049 (add<mode>3_carryinV): Use LTU for carry between partials.
20050 * config/aarch64/predicates.md (aarch64_carry_operation): Update
20051 handling of CC_Cmode and add CC_ADCmode.
20052 (aarch64_borrow_operation): Likewise.
20054 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20056 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
20057 Remove patternmode.
20058 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
20059 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20060 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
20061 Remove endianness conversion.
20063 2019-01-16 Martin Liska <mliska@suse.cz>
20065 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
20067 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
20069 * gcc.c (add_sysrooted_hdrs_prefix): New function.
20070 (path_prefix_reset): Move up in the source file.
20071 (find_fortran_preinclude_file): Make complex search for the
20072 fortran header files.
20074 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
20076 * godump.c (go_output_typedef): When outputting a typedef, refer
20077 to the underlying type by its name and not its structure.
20079 2019-01-15 David Malcolm <dmalcolm@redhat.com>
20082 * tree.c (build_function_type): Assert that arg_types is not
20085 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
20087 PR inline-asm/52813
20088 * doc/extend.texi: Document that listing the stack pointer in the
20089 clobber list of an asm is a deprecated feature.
20090 * common.opt (Wdeprecated): Moved from c-family/c.opt.
20091 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
20092 warning instead of an error for clobbers of the stack pointer.
20093 Add a note explaining why.
20095 2019-01-15 Richard Biener <rguenther@suse.de>
20098 * dwarf2out.c (gen_member_die): Do not generate inheritance
20101 2019-01-15 Richard Biener <rguenther@suse.de>
20103 PR tree-optimization/88855
20104 * tree-if-conv.c (combine_blocks): Collect
20105 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
20107 2019-01-15 Tom de Vries <tdevries@suse.de>
20110 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
20111 lhs == NULL_TREE for gang-level reduction.
20113 2019-01-15 Richard Biener <rguenther@suse.de>
20114 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20117 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
20118 return true if SSA_NAME is already marked in visited bitmap.
20119 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
20121 2019-01-15 Jakub Jelinek <jakub@redhat.com>
20123 PR tree-optimization/88775
20124 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
20125 equal == 0 equality pointer comparisons some more if compared in
20126 integral types and either one points to an automatic var and the
20127 other to a global, or we can prove at least one points to the middle
20128 or both point to start or both point to end.
20130 2019-01-14 Andi Kleen <ak@linux.intel.com>
20132 * Makefile.in: Lower autofdo sampling rate by 10x.
20133 * Makefile.tpl: Dito.
20135 2019-01-14 Tom Honermann <tom@honermann.net>
20137 * defaults.h: Define CHAR8_TYPE.
20139 2019-01-14 Martin Sebor <msebor@redhat.com>
20142 * doc/extend.texi (Darwin Format Checks): Clarify.
20144 2019-01-14 Richard Biener <rguenther@suse.de>
20146 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
20147 whether we are in (simplify ...) or (match ...) context.
20149 2019-01-14 Jakub Jelinek <jakub@redhat.com>
20151 PR rtl-optimization/88796
20152 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
20153 * cfgexpand.c (stack_protect_prologue): Initialize
20154 crtl->stack_protect_guard_decl.
20155 * function.c (stack_protect_epilogue): Use it instead of calling
20156 targetm.stack_protect_guard again.
20157 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
20158 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
20159 crtl->stack_protect_guard_decl.
20160 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
20161 on the returned MEM_EXPR.
20163 2019-01-12 Tom de Vries <tdevries@suse.de>
20165 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
20166 vector length using -fopenacc-dim.
20168 2019-01-12 Tom de Vries <tdevries@suse.de>
20170 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
20171 lengths into account.
20173 2019-01-12 Svante Signell <svante.signell@gmail.com>
20175 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
20176 (TARGET_CAN_SPLIT_STACK): Define.
20177 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
20179 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20181 * params.def (inline-unit-growth): Set to 40.
20183 2019-01-12 Jakub Jelinek <jakub@redhat.com>
20185 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
20187 2019-01-12 Tom de Vries <tdevries@suse.de>
20189 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
20190 region calling vector-partitionable routine, set default_vector_length
20193 2019-01-12 Tom de Vries <tdevries@suse.de>
20195 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
20196 variable default_vector_length.
20198 2019-01-12 Tom de Vries <tdevries@suse.de>
20200 PR middle-end/88703
20201 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
20202 from oacc_default_dims, as oacc_validate_dims would do it, and apply
20205 2019-01-12 Tom de Vries <tdevries@suse.de>
20207 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
20208 (nvptx_goacc_validate_dims): Add used parameter.
20209 * doc/tm.texi: Regenerate.
20210 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
20211 argument to call to targetm.goacc.validate_dims.
20212 (default_goacc_validate_dims): Add used
20214 * target.def (validate_dims): Add used parameter in DEFHOOK.
20215 * targhooks.h (default_goacc_validate_dims): Add used parameter.
20217 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20219 PR middle-end/85956
20221 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
20223 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
20224 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
20225 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
20226 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
20228 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
20230 PR rtl-optimization/87305
20232 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
20233 for little endian pseudos used as paradoxical subreg.
20235 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20237 PR tree-optimization/88693
20238 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
20239 for STRING_CSTs that don't contain any NUL characters in the first
20240 TREE_STRING_LENGTH bytes.
20242 2019-01-11 Alan Modra <amodra@gmail.com>
20246 * genattrtab.c (min_fn): Don't translate values.
20247 (min_attr_value): Return INT_MAX when the value can't be calculated.
20248 Return minimum among any values that can be calculated.
20249 (max_attr_value): Adjust.
20251 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20253 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
20255 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20257 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20258 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
20259 (aarch64_return_call_with_max_clobbers): New function.
20260 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
20261 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
20263 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
20264 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
20265 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
20266 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
20267 * cselib.c (cselib_process_insn): Add argument to
20268 targetm.hard_regno_call_part_clobbered call.
20269 * ira-conflicts.c (ira_build_conflicts): Ditto.
20270 * ira-costs.c (ira_tune_allocno_costs): Ditto.
20271 * lra-constraints.c (inherit_reload_reg): Ditto.
20272 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
20273 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
20274 argument. Call targetm.return_call_with_max_clobbers.
20275 Add argument to targetm.hard_regno_call_part_clobbered call.
20276 (calls_have_same_clobbers_p): New function.
20277 (process_bb_lives): Add call_insn and last_call_insn variables.
20278 Pass call_insn to check_pseudos_live_through_calls.
20279 Modify if stmt to check targetm.return_call_with_max_clobbers.
20280 Update setting of flush variable.
20281 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
20283 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
20284 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
20285 targetm.hard_regno_call_part_clobbered call.
20286 * reginfo.c (choose_hard_reg_mode): Ditto.
20287 * regrename.c (check_new_reg_p): Ditto.
20288 * reload.c (find_equiv_reg): Ditto.
20289 * reload1.c (emit_reload_insns): Ditto.
20290 * sched-deps.c (deps_analyze_insn): Ditto.
20291 * sel-sched.c (init_regs_for_mode): Ditto.
20292 (mark_unavailable_hard_regs): Ditto.
20293 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
20294 * target.def (hard_regno_call_part_clobbered): Add insn argument.
20295 (return_call_with_max_clobbers): New target function.
20296 * doc/tm.texi: Regenerate.
20297 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
20298 * hooks.c (hook_bool_uint_mode_false): Change to
20299 hook_bool_insn_uint_mode_false.
20300 * hooks.h (hook_bool_uint_mode_false): Ditto.
20302 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20304 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20305 (aarch64_remove_extra_call_preserved_regs): New function.
20306 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
20307 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
20308 * doc/tm.texi: Regenerate.
20309 * final.c (get_call_reg_set_usage): Call new hook.
20310 * target.def (remove_extra_call_preserved_regs): New hook.
20311 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
20312 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
20314 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20317 * passes.c (finish_optimization_passes): Call print_combine_total_stats
20318 inside of pass_combine_1 dump rather than pass_profile_1.
20320 2019-01-11 Tom de Vries <tdevries@suse.de>
20322 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
20323 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
20324 (PTX_NUM_PER_WORKER_BARRIERS): Define.
20325 (nvptx_apply_dim_limits): Prevent vector_length 64 and
20328 2019-01-11 Tom de Vries <tdevries@suse.de>
20330 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
20332 2019-01-11 Jan Beulich <jbeulich@suse.com>
20334 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
20335 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
20336 sse2_cvtsi2sd): Add {l}.
20337 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
20340 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20343 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
20345 (*float<floatunssuffix>v2div2sf2): New define_insn.
20346 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
20347 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
20348 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
20349 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
20350 match_operands with "const0_operand" "C".
20352 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20354 * config/aarch64/aarch64-builtins.c
20355 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
20356 (aarch64_init_simd_builtins): ...Here
20358 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
20360 PR rtl-optimization/87305
20362 (setup_live_pseudos_and_spill_after_risky_transforms): Check
20363 allocation for big endian pseudos used as paradoxical subregs and
20364 spill them if it is wrong.
20365 * lra-constraints.c (lra_constraints): Add a comment.
20367 2019-01-10 Richard Biener <rguenther@suse.de>
20369 PR tree-optimization/88792
20370 * tree-ssa-pre.c (get_representative_for): Do not return a
20373 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20375 PR middle-end/84877
20377 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
20378 (assign_parm_setup_block): Do the argument slot realignment here
20381 2019-01-10 Stefan Agner <stefan@agner.ch>
20384 * config/arm/arm.c (arm_option_override_internal): Force
20385 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
20387 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20390 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
20393 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20395 * config/arm/arm-builtins.c
20396 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
20397 (MAC_LANE_PAIR_QUALIFIERS): New.
20398 (arm_expand_builtin_args): Use it.
20399 (arm_expand_builtin_1): Likewise.
20400 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
20401 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
20402 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
20403 * config/arm/arm_neon.h:
20404 (vcadd_rot90_f16): New.
20405 (vcaddq_rot90_f16): New.
20406 (vcadd_rot270_f16): New.
20407 (vcaddq_rot270_f16): New.
20410 (vcmla_lane_f16): New.
20411 (vcmla_laneq_f16): New.
20412 (vcmlaq_lane_f16): New.
20413 (vcmlaq_laneq_f16): New.
20414 (vcmla_rot90_f16): New.
20415 (vcmlaq_rot90_f16): New.
20416 (vcmla_rot90_lane_f16): New.
20417 (vcmla_rot90_laneq_f16): New.
20418 (vcmlaq_rot90_lane_f16): New.
20419 (vcmlaq_rot90_laneq_f16): New.
20420 (vcmla_rot180_f16): New.
20421 (vcmlaq_rot180_f16): New.
20422 (vcmla_rot180_lane_f16): New.
20423 (vcmla_rot180_laneq_f16): New.
20424 (vcmlaq_rot180_lane_f16): New.
20425 (vcmlaq_rot180_laneq_f16): New.
20426 (vcmla_rot270_f16): New.
20427 (vcmlaq_rot270_f16): New.
20428 (vcmla_rot270_lane_f16): New.
20429 (vcmla_rot270_laneq_f16): New.
20430 (vcmlaq_rot270_lane_f16): New.
20431 (vcmlaq_rot270_laneq_f16): New.
20432 (vcadd_rot90_f32): New.
20433 (vcaddq_rot90_f32): New.
20434 (vcadd_rot270_f32): New.
20435 (vcaddq_rot270_f32): New.
20438 (vcmla_lane_f32): New.
20439 (vcmla_laneq_f32): New.
20440 (vcmlaq_lane_f32): New.
20441 (vcmlaq_laneq_f32): New.
20442 (vcmla_rot90_f32): New.
20443 (vcmlaq_rot90_f32): New.
20444 (vcmla_rot90_lane_f32): New.
20445 (vcmla_rot90_laneq_f32): New.
20446 (vcmlaq_rot90_lane_f32): New.
20447 (vcmlaq_rot90_laneq_f32): New.
20448 (vcmla_rot180_f32): New.
20449 (vcmlaq_rot180_f32): New.
20450 (vcmla_rot180_lane_f32): New.
20451 (vcmla_rot180_laneq_f32): New.
20452 (vcmlaq_rot180_lane_f32): New.
20453 (vcmlaq_rot180_laneq_f32): New.
20454 (vcmla_rot270_f32): New.
20455 (vcmlaq_rot270_f32): New.
20456 (vcmla_rot270_lane_f32): New.
20457 (vcmla_rot270_laneq_f32): New.
20458 (vcmlaq_rot270_lane_f32): New.
20459 (vcmlaq_rot270_laneq_f32): New.
20460 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
20461 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
20462 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
20463 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
20464 vcmlaq_lane270): New.
20465 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20466 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20467 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20468 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20469 (arm_option_reconfigure_globals): Use them.
20470 * config/arm/iterators.md (VDF, VQ_HSF): New.
20471 (VCADD, VCMLA): New.
20472 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20473 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20475 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20476 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
20478 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20480 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20481 Add qualifier_lane_pair_index.
20482 (emit-rtl.h): Include.
20483 (TYPES_QUADOP_LANE_PAIR): New.
20484 (aarch64_simd_expand_args): Use it.
20485 (aarch64_simd_expand_builtin): Likewise.
20486 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
20488 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
20489 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
20490 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
20491 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
20492 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
20493 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
20494 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
20495 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
20496 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
20497 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
20498 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
20499 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
20500 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
20501 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20502 Add __ARM_FEATURE_COMPLEX.
20503 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
20504 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
20505 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
20506 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20507 fcmlaq_lane270): New.
20508 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20509 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
20510 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
20511 * config/aarch64/arm_neon.h:
20512 (vcadd_rot90_f16): New.
20513 (vcaddq_rot90_f16): New.
20514 (vcadd_rot270_f16): New.
20515 (vcaddq_rot270_f16): New.
20518 (vcmla_lane_f16): New.
20519 (vcmla_laneq_f16): New.
20520 (vcmlaq_lane_f16): New.
20521 (vcmlaq_rot90_lane_f16): New.
20522 (vcmla_rot90_laneq_f16): New.
20523 (vcmla_rot90_lane_f16): New.
20524 (vcmlaq_rot90_f16): New.
20525 (vcmla_rot90_f16): New.
20526 (vcmlaq_laneq_f16): New.
20527 (vcmla_rot180_laneq_f16): New.
20528 (vcmla_rot180_lane_f16): New.
20529 (vcmlaq_rot180_f16): New.
20530 (vcmla_rot180_f16): New.
20531 (vcmlaq_rot90_laneq_f16): New.
20532 (vcmlaq_rot270_laneq_f16): New.
20533 (vcmlaq_rot270_lane_f16): New.
20534 (vcmla_rot270_laneq_f16): New.
20535 (vcmlaq_rot270_f16): New.
20536 (vcmla_rot270_f16): New.
20537 (vcmlaq_rot180_laneq_f16): New.
20538 (vcmlaq_rot180_lane_f16): New.
20539 (vcmla_rot270_lane_f16): New.
20540 (vcadd_rot90_f32): New.
20541 (vcaddq_rot90_f32): New.
20542 (vcaddq_rot90_f64): New.
20543 (vcadd_rot270_f32): New.
20544 (vcaddq_rot270_f32): New.
20545 (vcaddq_rot270_f64): New.
20549 (vcmla_lane_f32): New.
20550 (vcmla_laneq_f32): New.
20551 (vcmlaq_lane_f32): New.
20552 (vcmlaq_laneq_f32): New.
20553 (vcmla_rot90_f32): New.
20554 (vcmlaq_rot90_f32): New.
20555 (vcmlaq_rot90_f64): New.
20556 (vcmla_rot90_lane_f32): New.
20557 (vcmla_rot90_laneq_f32): New.
20558 (vcmlaq_rot90_lane_f32): New.
20559 (vcmlaq_rot90_laneq_f32): New.
20560 (vcmla_rot180_f32): New.
20561 (vcmlaq_rot180_f32): New.
20562 (vcmlaq_rot180_f64): New.
20563 (vcmla_rot180_lane_f32): New.
20564 (vcmla_rot180_laneq_f32): New.
20565 (vcmlaq_rot180_lane_f32): New.
20566 (vcmlaq_rot180_laneq_f32): New.
20567 (vcmla_rot270_f32): New.
20568 (vcmlaq_rot270_f32): New.
20569 (vcmlaq_rot270_f64): New.
20570 (vcmla_rot270_lane_f32): New.
20571 (vcmla_rot270_laneq_f32): New.
20572 (vcmlaq_rot270_lane_f32): New.
20573 (vcmlaq_rot270_laneq_f32): New.
20574 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20575 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20576 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20577 (FCADD, FCMLA): New.
20579 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20581 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20585 * config/pa/pa.c: Change "can not" to "cannot".
20586 * gimple-ssa-evrp-analyze.c: Likewise.
20587 * ipa-icf.c: Likewise.
20588 * ipa-polymorphic-call.c: Likewise.
20589 * ipa-pure-const.c: Likewise.
20590 * lra-constraints.c: Likewise.
20591 * lra-remat.c: Likewise.
20592 * reload1.c: Likewise.
20593 * reorg.c: Likewise.
20594 * tree-ssa-uninit.c: Likewise.
20596 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20600 * Makefile.in: Mechanically replace "can not" with "cannot".
20601 * alias.c: Likewise.
20602 * builtins.c: Likewise.
20603 * calls.c: Likewise.
20604 * cgraph.c: Likewise.
20605 * cgraph.h: Likewise.
20606 * cgraphclones.c: Likewise.
20607 * cgraphunit.c: Likewise.
20608 * combine-stack-adj.c: Likewise.
20609 * combine.c: Likewise.
20610 * common/config/i386/i386-common.c: Likewise.
20611 * config/aarch64/aarch64.c: Likewise.
20612 * config/alpha/sync.md: Likewise.
20613 * config/arc/arc.c: Likewise.
20614 * config/arc/predicates.md: Likewise.
20615 * config/arm/arm-c.c: Likewise.
20616 * config/arm/arm.c: Likewise.
20617 * config/arm/arm.h: Likewise.
20618 * config/arm/arm.md: Likewise.
20619 * config/arm/cortex-r4f.md: Likewise.
20620 * config/csky/csky.c: Likewise.
20621 * config/csky/csky.h: Likewise.
20622 * config/darwin-f.c: Likewise.
20623 * config/epiphany/epiphany.md: Likewise.
20624 * config/i386/i386.c: Likewise.
20625 * config/i386/sol2.h: Likewise.
20626 * config/m68k/m68k.c: Likewise.
20627 * config/mcore/mcore.h: Likewise.
20628 * config/microblaze/microblaze.md: Likewise.
20629 * config/mips/20kc.md: Likewise.
20630 * config/mips/sb1.md: Likewise.
20631 * config/nds32/nds32.c: Likewise.
20632 * config/nds32/predicates.md: Likewise.
20633 * config/pa/pa.c: Likewise.
20634 * config/rs6000/e300c2c3.md: Likewise.
20635 * config/rs6000/rs6000.c: Likewise.
20636 * config/s390/s390.h: Likewise.
20637 * config/sh/sh.c: Likewise.
20638 * config/sh/sh.md: Likewise.
20639 * config/spu/vmx2spu.h: Likewise.
20640 * cprop.c: Likewise.
20641 * dbxout.c: Likewise.
20642 * df-scan.c: Likewise.
20643 * doc/cfg.texi: Likewise.
20644 * doc/extend.texi: Likewise.
20645 * doc/fragments.texi: Likewise.
20646 * doc/gty.texi: Likewise.
20647 * doc/invoke.texi: Likewise.
20648 * doc/lto.texi: Likewise.
20649 * doc/md.texi: Likewise.
20650 * doc/objc.texi: Likewise.
20651 * doc/rtl.texi: Likewise.
20652 * doc/tm.texi: Likewise.
20654 * emit-rtl.c: Likewise.
20655 * emit-rtl.h: Likewise.
20656 * except.c: Likewise.
20657 * expmed.c: Likewise.
20658 * expr.c: Likewise.
20659 * fold-const.c: Likewise.
20660 * genautomata.c: Likewise.
20661 * gimple-fold.c: Likewise.
20662 * hard-reg-set.h: Likewise.
20663 * ifcvt.c: Likewise.
20664 * ipa-comdats.c: Likewise.
20665 * ipa-cp.c: Likewise.
20666 * ipa-devirt.c: Likewise.
20667 * ipa-fnsummary.c: Likewise.
20668 * ipa-icf.c: Likewise.
20669 * ipa-inline-transform.c: Likewise.
20670 * ipa-inline.c: Likewise.
20671 * ipa-polymorphic-call.c: Likewise.
20672 * ipa-profile.c: Likewise.
20673 * ipa-prop.c: Likewise.
20674 * ipa-pure-const.c: Likewise.
20675 * ipa-reference.c: Likewise.
20676 * ipa-split.c: Likewise.
20677 * ipa-visibility.c: Likewise.
20679 * ira-build.c: Likewise.
20680 * ira-color.c: Likewise.
20681 * ira-conflicts.c: Likewise.
20682 * ira-costs.c: Likewise.
20683 * ira-int.h: Likewise.
20684 * ira-lives.c: Likewise.
20687 * loop-invariant.c: Likewise.
20688 * loop-unroll.c: Likewise.
20689 * lower-subreg.c: Likewise.
20690 * lra-assigns.c: Likewise.
20691 * lra-constraints.c: Likewise.
20692 * lra-eliminations.c: Likewise.
20693 * lra-lives.c: Likewise.
20694 * lra-remat.c: Likewise.
20695 * lra-spills.c: Likewise.
20697 * lto-cgraph.c: Likewise.
20698 * lto-streamer-out.c: Likewise.
20699 * postreload-gcse.c: Likewise.
20700 * predict.c: Likewise.
20701 * profile-count.h: Likewise.
20702 * profile.c: Likewise.
20703 * recog.c: Likewise.
20705 * reload.c: Likewise.
20706 * reload1.c: Likewise.
20707 * reorg.c: Likewise.
20708 * resource.c: Likewise.
20709 * rtl.def: Likewise.
20711 * rtlanal.c: Likewise.
20712 * sched-deps.c: Likewise.
20713 * sched-ebb.c: Likewise.
20714 * sched-rgn.c: Likewise.
20715 * sel-sched-ir.c: Likewise.
20716 * sel-sched.c: Likewise.
20717 * shrink-wrap.c: Likewise.
20718 * simplify-rtx.c: Likewise.
20719 * symtab.c: Likewise.
20720 * target.def: Likewise.
20721 * toplev.c: Likewise.
20722 * tree-call-cdce.c: Likewise.
20723 * tree-cfg.c: Likewise.
20724 * tree-complex.c: Likewise.
20725 * tree-core.h: Likewise.
20726 * tree-eh.c: Likewise.
20727 * tree-inline.c: Likewise.
20728 * tree-loop-distribution.c: Likewise.
20729 * tree-nrv.c: Likewise.
20730 * tree-profile.c: Likewise.
20731 * tree-sra.c: Likewise.
20732 * tree-ssa-alias.c: Likewise.
20733 * tree-ssa-dce.c: Likewise.
20734 * tree-ssa-dom.c: Likewise.
20735 * tree-ssa-forwprop.c: Likewise.
20736 * tree-ssa-loop-im.c: Likewise.
20737 * tree-ssa-loop-ivcanon.c: Likewise.
20738 * tree-ssa-loop-ivopts.c: Likewise.
20739 * tree-ssa-loop-niter.c: Likewise.
20740 * tree-ssa-phionlycprop.c: Likewise.
20741 * tree-ssa-phiopt.c: Likewise.
20742 * tree-ssa-propagate.c: Likewise.
20743 * tree-ssa-threadedge.c: Likewise.
20744 * tree-ssa-threadupdate.c: Likewise.
20745 * tree-ssa-uninit.c: Likewise.
20746 * tree-ssanames.c: Likewise.
20747 * tree-streamer-out.c: Likewise.
20748 * tree.c: Likewise.
20749 * tree.h: Likewise.
20750 * vr-values.c: Likewise.
20752 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20754 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20755 (ix86_split_xorsign): Ditto.
20756 * config/i386/i386.c (ix86_expand_xorsign): New function.
20757 (ix86_split_xorsign): Ditto.
20758 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20759 (xorsign<mode>3): New expander.
20760 (xorsign<mode>3_1): New insn_and_split pattern.
20761 * config/i386/sse.md (xorsign<mode>3): New expander.
20763 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20765 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20766 (*tablejump_sp64): Likewise.
20767 (*tablejump<P:mode>): ...this.
20768 (*call_address_sp32): Merge into...
20769 (*call_address_sp64): Likewise.
20770 (*call_address<P:mode>): ...this.
20771 (*call_symbolic_sp32): Merge into...
20772 (*call_symbolic_sp64): Likewise.
20773 (*call_symbolic<P:mode>): ...this.
20774 (call_value): Remove constraint and add predicate.
20775 (*call_value_address_sp32): Merge into...
20776 (*call_value_address_sp64): Likewise.
20777 (*call_value_address<P:mode>): ...this.
20778 (*call_value_symbolic_sp32): Merge into...
20779 (*call_value_symbolic_sp64): Likewise.
20780 (*call_value_symbolic<P:mode>): ...this.
20781 (*sibcall_symbolic_sp32): Merge into...
20782 (*sibcall_symbolic_sp64): Likewise.
20783 (*sibcall_symbolic<P:mode>): ...this.
20784 (sibcall_value): Remove constraint and add predicate.
20785 (*sibcall_value_symbolic_sp32): Merge into...
20786 (*sibcall_value_symbolic_sp64): Likewise.
20787 (*sibcall_value_symbolic<P:mode>): ...this.
20788 (window_save): Minor tweak.
20789 (*branch_sp32): Merge into...
20790 (*branch_sp64): Likewise.
20791 (*branch<P:mode>): ...this.
20793 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20794 James Clarke <jrtc27@jrtc27.com>
20797 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20798 consistently in TLS address generation and adjust code to the renaming
20799 of patterns. Mark calls to __tls_get_addr as const.
20800 * config/sparc/sparc.md (tgd_hi22): Turn into...
20801 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20802 (tgd_lo10): Turn into...
20803 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20804 (tgd_add32): Merge into...
20805 (tgd_add64): Likewise.
20806 (tgd_add<P:mode>): ...this and use Pmode throughout.
20807 (tldm_hi22): Turn into...
20808 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20809 (tldm_lo10): Turn into...
20810 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20811 (tldm_add32): Merge into...
20812 (tldm_add64): Likewise.
20813 (tldm_add<P:mode>): ...this and use Pmode throughout.
20814 (tldm_call32): Merge into...
20815 (tldm_call64): Likewise.
20816 (tldm_call<P:mode>): ...this and use Pmode throughout.
20817 (tldo_hix22): Turn into...
20818 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20819 (tldo_lox10): Turn into...
20820 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20821 (tldo_add32): Merge into...
20822 (tldo_add64): Likewise.
20823 (tldo_add<P:mode>): ...this and use Pmode throughout.
20824 (tie_hi22): Turn into...
20825 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20826 (tie_lo10): Turn into...
20827 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20828 (tie_ld64): Use DImode throughout.
20829 (tie_add32): Merge into...
20830 (tie_add64): Likewise.
20831 (tie_add<P:mode>): ...this and use Pmode throughout.
20832 (tle_hix22_sp32): Merge into...
20833 (tle_hix22_sp64): Likewise.
20834 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20835 (tle_lox22_sp32): Merge into...
20836 (tle_lox22_sp64): Likewise.
20837 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20838 (*tldo_ldub_sp32): Merge into...
20839 (*tldo_ldub_sp64): Likewise.
20840 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20841 (*tldo_ldub1_sp32): Merge into...
20842 (*tldo_ldub1_sp64): Likewise.
20843 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20844 (*tldo_ldub2_sp32): Merge into...
20845 (*tldo_ldub2_sp64): Likewise.
20846 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20847 (*tldo_ldsb1_sp32): Merge into...
20848 (*tldo_ldsb1_sp64): Likewise.
20849 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20850 (*tldo_ldsb2_sp32): Merge into...
20851 (*tldo_ldsb2_sp64): Likewise.
20852 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20853 (*tldo_ldub3_sp64): Use DImode throughout.
20854 (*tldo_ldsb3_sp64): Likewise.
20855 (*tldo_lduh_sp32): Merge into...
20856 (*tldo_lduh_sp64): Likewise.
20857 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20858 (*tldo_lduh1_sp32): Merge into...
20859 (*tldo_lduh1_sp64): Likewise.
20860 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20861 (*tldo_ldsh1_sp32): Merge into...
20862 (*tldo_ldsh1_sp64): Likewise.
20863 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20864 (*tldo_lduh2_sp64): Use DImode throughout.
20865 (*tldo_ldsh2_sp64): Likewise.
20866 (*tldo_lduw_sp32): Merge into...
20867 (*tldo_lduw_sp64): Likewise.
20868 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20869 (*tldo_lduw1_sp64): Use DImode throughout.
20870 (*tldo_ldsw1_sp64): Likewise.
20871 (*tldo_ldx_sp64): Likewise.
20872 (*tldo_stb_sp32): Merge into...
20873 (*tldo_stb_sp64): Likewise.
20874 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20875 (*tldo_sth_sp32): Merge into...
20876 (*tldo_sth_sp64): Likewise.
20877 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20878 (*tldo_stw_sp32): Merge into...
20879 (*tldo_stw_sp64): Likewise.
20880 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20881 (*tldo_stx_sp64): Use DImode throughout.
20883 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20885 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20886 check configure option to set BTI and Return Address Signing.
20887 * configure.ac: Add --enable-standard-branch-protection and
20888 --disable-standard-branch-protection.
20889 * configure: Regenerated.
20890 * doc/install.texi: Document the same.
20892 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20893 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20895 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20896 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20897 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20899 * config/aarch64/aarch64-bti-insert.c: New file.
20900 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20902 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20904 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20905 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20906 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20907 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20909 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20911 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20912 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20913 Disable bti for -mbranch-protection=none.
20914 (aarch64_handle_standard_branch_protection): Enable bti for
20915 -mbranch-protection=standard.
20916 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20917 -mbranch-protection.
20918 (aarch64_bti_enabled): Check if bti is enabled.
20919 * config/aarch64/aarch64.opt: Declare target variable.
20920 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20922 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20924 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20925 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20926 (aarch64_expand_epilogue): Likewise.
20927 (aarch64_output_mi_thunk): Likewise.
20928 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20929 TAILCALL_ADDR_REGS to x16 and x17.
20930 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20932 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20934 * config/aarch64/aarch64-option-extensions.def: Define
20935 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20936 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20937 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20938 (AARCH64_FL_PREDRES): New.
20939 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20940 AARCH64_FL_PREDRES by default.
20941 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20943 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20945 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20947 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20948 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20949 * doc/invoke.texi: Document ARMv8.5-A.
20951 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20953 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20954 (xorsign<mode>3): Likewise.
20956 2019-01-09 Jelinek <jakub@redhat.com>
20958 PR middle-end/88758
20959 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20960 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20962 PR rtl-optimization/88331
20963 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20964 not currently_expanding_to_rtl.
20966 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20968 * doc/invoke.texi (-Os): Remove trailing spaces.
20969 (-finline-functions): Remove reference to -O2.
20971 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20973 PR rtl-optimization/79593
20974 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20976 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20977 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20979 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20982 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20986 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20987 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20989 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20992 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20993 ix86_avx_u128_mode_entry.
20995 2019-01-08 Martin Liska <mliska@suse.cz>
20997 PR tree-optimization/88753
20998 * tree-switch-conversion.c (switch_conversion::build_one_array):
20999 Come up with local variable constructor. Convert first to
21000 type of constructor values.
21002 2019-01-08 Richard Biener <rguenther@suse.de>
21004 PR tree-optimization/86554
21005 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
21006 rpo_avail): Move earlier.
21007 (visit_nary_op): When value-numbering to expressions
21008 with different overflow behavior make sure there's an
21009 available expression on the path.
21011 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
21013 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
21014 aarch64_parse_branch_protection,
21015 struct aarch64_branch_protect_type,
21016 aarch64_handle_no_branch_protection,
21017 aarch64_handle_standard_branch_protection,
21018 aarch64_validate_mbranch_protection,
21019 aarch64_handle_pac_ret_protection,
21020 aarch64_handle_attr_branch_protection,
21021 accepted_branch_protection_string,
21022 aarch64_pac_ret_subtypes,
21023 aarch64_branch_protect_types,
21024 aarch64_handle_pac_ret_leaf): Define.
21025 (aarch64_override_options_after_change_1, aarch64_override_options):
21026 Add check for accepted_branch_protection_string.
21027 (aarch64_option_save): Save accepted_branch_protection_string.
21028 (aarch64_option_restore): Save accepted_branch_protection_string.
21029 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
21030 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
21031 msign-return-address.
21032 * doc/invoke.texi: Add mbranch-protection.
21034 2019-01-08 Alan Modra <amodra@gmail.com>
21037 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
21038 Delete "unknownp" parameter. Adjust callers. Handle
21039 CONST_INT, PLUS, MINUS, and MULT.
21040 (attr_value_aligned): Renamed from or_attr_value.
21041 (min_attr_value): Return INT_MIN for unhandled rtl case..
21042 (min_fn): ..and translate to INT_MAX here.
21043 (write_length_unit_log): Modify to cope without "unknown".
21044 (write_attr_value): Handle IF_THEN_ELSE.
21046 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21048 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
21049 optimization for masked stores.
21051 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21053 PR middle-end/88567
21054 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
21055 output vector directly to duplicate_and_interleave instead of
21056 going through a temporary. Postpone insertion of ctor_seq to
21057 the end of the loop.
21059 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
21062 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
21063 unsigned_p. Handle signed and unsigned overflow correction as
21065 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
21067 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
21069 (add<mode>3_compareV_imm): Make this callable for expanding.
21070 (subv<GPI:mode>4): Use register_operand for operand 1. Use
21071 aarch64_plus_operand for operand 2.
21072 (subv<GPI:mode>_insn): New insn pattern.
21073 (subv<GPI:mode>_imm): Likewise.
21074 (negv<GPI:mode>3): New expand pattern.
21075 (negv<GPI:mode>_insn): New insn pattern.
21076 (negv<GPI:mode>_cmp_only): Likewise.
21077 (cmpv<GPI:mode>_insn): Likewise.
21078 (subvti4): Use register_operand for operand 1. Update call to
21079 aarch64_expand_subvti.
21080 (usubvti4): Likewise.
21081 (negvti3): New expand pattern.
21082 (negdi_carryout): New insn pattern.
21083 (negvdi_carryinV): New insn pattern.
21084 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
21085 version the named version.
21086 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
21088 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
21090 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
21092 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
21093 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
21094 (sub<mode>3_carryinCV): Delete.
21095 (sub<GPI:mode>3_carryinV): New expand pattern.
21096 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
21098 2019-01-07 Richard Biener <rguenther@suse.de>
21100 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
21101 of tree_operand_hash.
21103 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21105 PR tree-optimization/88598
21106 * tree.h (single_nonzero_element): Declare.
21107 * tree.c (single_nonzero_element): New function.
21108 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
21109 if I is the only nonzero element of CST.
21111 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21113 PR tree-optimization/88598
21114 * tree.h (initializer_each_zero_or_onep): Declare.
21115 * tree.c (initializer_each_zero_or_onep): New function.
21116 (signed_or_unsigned_type_for): Handle float types too.
21117 (unsigned_type_for, signed_type_for): Update comments accordingly.
21118 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
21119 x & { 0 or -1, 0 or -1, ... }.
21121 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
21123 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
21124 with x86_64-pc-linux-gnu.
21126 2019-01-07 Tom de Vries <tdevries@suse.de>
21129 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
21131 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
21134 2019-01-07 Jakub Jelinek <jakub@redhat.com>
21136 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
21137 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
21138 TARGET_AVX512F as condition.
21141 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
21142 const_not_ok_for_debug_p target hook.
21143 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
21144 on UNSPEC and subexpressions thereof if all subexpressions of the
21145 UNSPEC are CONSTANT_P.
21147 PR tree-optimization/88676
21148 * tree-ssa-phiopt.c (two_value_replacement): New function.
21149 (tree_ssa_phiopt_worker): Call it.
21152 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
21153 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
21156 * tree-vect-generic.c: Include insn-config.h and recog.h.
21157 (expand_vector_piecewise): Add defaulted ret_type argument,
21158 if non-NULL, use that in preference to type for the result type.
21159 (expand_vector_parallel): Formatting fix.
21160 (do_vec_conversion, do_vec_narrowing_conversion,
21161 expand_vector_conversion): New functions.
21162 (expand_vector_operations_1): Call expand_vector_conversion
21163 for VEC_CONVERT ifn calls.
21164 * internal-fn.def (VEC_CONVERT): New internal function.
21165 * internal-fn.c (expand_VEC_CONVERT): New function.
21166 * fold-const-call.c (fold_const_vec_convert): New function.
21167 (fold_const_call): Use it for CFN_VEC_CONVERT.
21168 * doc/extend.texi (__builtin_convertvector): Document.
21170 2019-01-07 Tom de Vries <tdevries@suse.de>
21172 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
21173 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
21174 vector_red_partition, vector_red_sym): New global variables.
21175 (nvptx_option_override): Initialize vector_red_sym.
21176 (nvptx_declare_function_name): Restore red_partition register.
21177 (nvptx_file_end): Emit code to declare the vector reduction variables.
21178 (nvptx_output_red_partition): New function.
21179 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
21180 large vector reductions.
21181 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
21182 (nvptx_init_builtins): Add VECTOR_ADDR.
21183 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
21184 Handle nvptx_expand_shared_addr.
21185 (nvptx_get_shared_red_addr): Add vector argument and handle large
21187 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
21189 (nvptx_goacc_reduction_init): Likewise.
21190 (nvptx_goacc_reduction_fini): Likewise.
21191 (nvptx_goacc_reduction_teardown): Likewise.
21192 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
21193 init,fini,teardown}.
21194 (nvptx_init_axis_predicate): Initialize vector_red_partition.
21195 (nvptx_set_current_function): Init vector_red_partition.
21196 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
21197 (nvptx_red_partition): New insn.
21198 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
21200 2019-01-07 Tom de Vries <tdevries@suse.de>
21203 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
21206 2019-01-07 Tom de Vries <tdevries@suse.de>
21208 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
21209 (nvptx_option_override): Init oacc_bcast_partition.
21210 (nvptx_init_oacc_workers): New function.
21211 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
21212 (nvptx_needs_shared_bcast): New function.
21213 (nvptx_find_par): Generalize to enable vectors to use shared-memory
21214 to propagate state.
21215 (nvptx_shared_propagate): Initialize vector bcast partition and
21216 synchronization state.
21217 (nvptx_single): Generalize to enable vectors to use shared-memory
21218 to propagate state.
21219 (nvptx_process_pars): Likewise.
21220 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
21221 * config/nvptx/nvptx.h (struct machine_function): Add
21222 bcast_partition and sync_bar members.
21224 2019-01-07 Tom de Vries <tdevries@suse.de>
21226 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
21227 (nvptx_apply_dim_limits): New function.
21228 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
21231 2019-01-07 Tom de Vries <tdevries@suse.de>
21233 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
21234 as late as possible.
21236 2019-01-07 Tom de Vries <tdevries@suse.de>
21238 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
21239 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
21240 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
21241 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
21242 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
21244 2019-01-07 Tom de Vries <tdevries@suse.de>
21246 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
21248 2019-01-07 Tom de Vries <tdevries@suse.de>
21250 * omp-offload.c (oacc_get_min_dim): New function.
21251 * omp-offload.h (oacc_get_min_dim): Declare.
21253 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
21256 * config/i386/i386.c (function_value_ms_64): Return small sturct in
21257 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
21259 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21263 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
21265 * ipa-inline.c (edge_badness): Use inlined_time instead of
21266 inline_summaries->get.
21268 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21270 * opts.c (enable_fdo_optimizations): Enable
21271 version-loops-for-strides, loop-interchange, unrol-and-jam
21272 and tree-loop-distribution.
21273 * invoke.texi: Document newly enabled options.
21275 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21277 * doc/invoke.texi (max-inline-insns-small): New parameters.
21278 * ipa-inline.c (want_early_inline_function_p): simplify.
21279 (want_inline_small_function_p): Fix pasto from previous patch;
21280 use max-inline-insns-small bound.
21281 * params.def (max-inline-insns-small): New param.
21282 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
21283 variables correctly.
21285 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21287 * doc/invoke.texi: Document max-inline-insns-size,
21288 uninlined-function-insns, uninlined-function-time,
21289 uninlined-thunk-insns and uninlined-thunk-time.
21290 * params.def: Add max-inline-insns-size,
21291 uninlined-function-insns, uninlined-function-time,
21292 uninlined-thunk-insns and uninlined-thunk-time.
21293 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
21295 * ipa-inline.c (can_inline_edge_by_limits_p,
21296 want_inline_small_function_p): Use new parameters.
21298 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21300 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
21302 2019-01-05 Jakub Jelinek <jakub@redhat.com>
21304 PR middle-end/82564
21306 * expr.c (expand_assignment): For calls returning VLA structures
21307 if to_rtx is not a MEM, force it into a stack temporary.
21310 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
21311 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
21312 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
21313 subexpressions of both operands.
21314 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
21315 subrtxes are CONSTANT_P.
21316 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
21317 2018-11-09 changes.
21319 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
21321 * params.def (hot-bb-count-ws-permille): Set to 990.
21323 2019-01-04 Martin Sebor <msebor@redhat.com>
21326 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
21329 2019-01-04 Martin Sebor <msebor@redhat.com>
21332 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
21334 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21336 * gdbinit.in: Turn off pagination for the skip commands, restore
21337 it to previous state afterwards.
21339 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21342 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
21343 of GET_MODE (opN) as modes of the libcall arguments.
21345 2019-01-04 Jan Beulich <jbeulich@suse.com>
21347 * config/i386/sse.md
21348 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
21349 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
21350 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21351 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21352 avx512f_vmcmp<mode>3<round_saeonly_name>,
21353 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
21354 avx512f_maskcmp<mode>3,
21355 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21356 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21357 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21358 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21359 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21360 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21361 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21362 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21363 <avx512>_testm<mode>3<mask_scalar_merge_name>,
21364 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
21365 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
21366 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
21367 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
21368 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
21369 avx512cd_maskb_vec_dup<mode>,
21370 avx512cd_maskw_vec_dup<mode>,
21371 avx512dq_fpclass<mode><mask_scalar_merge_name>,
21372 avx512dq_vmfpclass<mode>,
21373 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
21376 2019-01-03 Martin Sebor <msebor@redhat.com>
21378 PR tree-optimization/88659
21379 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
21381 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
21383 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
21384 unaligned vsx and avoid lxvd2x/stxvd2x.
21385 (gen_lvx_v4si_move): New function.
21387 2019-01-03 Tom de Vries <tdevries@suse.de>
21389 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
21390 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
21392 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
21394 2019-01-03 Tom de Vries <tdevries@suse.de>
21396 * config/nvptx/nvptx.c (struct offload_attrs): New.
21397 (populate_offload_attrs): New function. Factor mask extraction out of
21398 nvptx_reorg. Add extraction of dimensions.
21399 (nvptx_reorg): Use populate_offload_attrs.
21401 2019-01-03 Tom de Vries <tdevries@suse.de>
21403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
21404 cases for oacc_min_dims_p and routine_p. Add asserts for
21405 oacc_default_dims_p and offload_region_p.
21407 2019-01-03 Tom de Vries <tdevries@suse.de>
21409 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
21410 factored out of ...
21411 (nvptx_goacc_validate_dims): ... here.
21413 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21415 PR tree-optimization/85574
21416 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
21418 (struct ssa_equip_hash_traits): Declare.
21419 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
21421 2019-01-03 Jakub Jelinek <jakub@redhat.com>
21424 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
21425 change it to qualified_type.
21427 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21429 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
21430 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
21432 2019-01-02 Martin Sebor <msebor@redhat.com>
21433 Jeff Law <law@redhat.com>
21435 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
21436 (get_range_strlen_tree): Update appropriately.
21438 * gimple-fold.h (get_range_strlen): Drop unused last argument.
21440 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
21441 rather than set_range_info.
21442 * tree-ssa-strlen.c (set_strlen_range): Extracted from
21443 maybe_set_strlen_range. Handle potentially boundary crossing
21444 cases more conservatively.
21445 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
21446 Call set_strlen_range.
21447 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
21449 PR middle-end/88663
21450 * gimple-fold.c (get_range_strlen): Update prototype to no longer
21451 need the flexp argument.
21452 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
21453 from calls to get_range_strlen. Update comments. Just update
21454 VAL for an unterminated const char array and let the reset of the
21455 code handle it normally. No longer try to set *flexp. Adjust
21457 (get_range_strlen): Update for the new get_range_strlen API.
21458 (get_maxval_strlen): Similarly.
21459 (gimple_fold_builtin_strlen): Handle update meaning of return value
21460 from get_range_strlen.
21461 * gimple-ssa-sprintf.c (get_string_length): Update for the new
21462 get_range_strlen API.
21464 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
21467 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21468 false at WPA time when body was removed.
21470 2019-01-02 Martin Liska <mliska@suse.cz>
21472 PR tree-optimization/88650
21473 * predict.c (set_even_probabilities): Calculate probability
21474 remainer only when really used.
21476 2019-01-02 Richard Biener <rguenther@suse.de>
21478 PR middle-end/88651
21479 * tree-data-ref.c (analyze_subscript_affine_affine): Use
21480 widest_ints when mangling max_stmt_execution results.
21482 2019-01-02 Richard Biener <rguenther@suse.de>
21484 PR tree-optimization/88621
21485 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
21486 bitfields when canoncalizing.
21488 2019-01-02 Richard Biener <rguenther@suse.de>
21491 * config/i386/x86-tune-costs.h (intel_cost): Adjust
21492 cost of cheap SSE instruction.
21494 2019-01-02 Richard Biener <rguenther@suse.de>
21497 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
21498 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
21500 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
21501 set after UIDs before splitting them.
21503 2019-01-01 Martin Sebor <msebor@redhat.com>
21504 Jeff Law <law@redhat.com>
21506 * gimple-fold.c (get_range_strlen_tree): Record if the computed
21507 length is optimistic. If it is, then arrange to compute the
21508 conservative length as well.
21510 * gimple-fold.h (get_range_strlen): Update prototype.
21511 * builtins.c (check_access): Update call to get_range_strlen to use
21512 c_strlen_data pointer. Change various variable accesses to instead
21513 pull data from the c_strlen_data structure.
21514 (check_strncat_sizes, expand_builtin_strncat): Likewise.
21515 * calls.c (maybe_warn_nonstring_arg): Likewise.
21516 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
21517 minimum length if maximum lengh is unknown.
21518 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
21519 that used c_strlen, it's no longer needed. Restructure slightly.
21520 (format_string): Set unlikely range appropriately.
21521 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
21523 (get_range_strlen): Accept c_strlen_data pointer for external
21524 call sites as well. Pass through to call to internal get_range_strlen.
21525 Adjust minlen, maxlen and maxbound as needed.
21526 (get_maxval_strlen): Update comments.
21527 (gimple_fold_builtin_strlen): Update call to get_range_strlen
21528 to use c_strlen_data pointer. Change variable accesses to instead
21529 use c_strlen_data data members.
21531 * gimple-fold.c (get_range_strlen): Update prototype.
21532 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
21533 local variables. Use pdata to return information to caller.
21534 Update calls to get_range_strlen. Update pdata->maxbound.
21535 (get_range_strlen -- static version): Similarly.
21536 (get_range_strlen -- extern version): Update for internal
21537 get_range_strlen API change. Convert to external data format.
21538 (get_maxval_strlen): Similarly.
21540 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
21542 * coverage.c (get_coverage_counts): Use current_function_decl.
21543 * profile.c (read_thunk_profile): New function.
21544 (branch_prob): Add THUNK parameter.
21545 * tree-profile.c (tree_profiling): Handle thunks.
21546 * value-prof.c (init_node_map): Handle thunks.
21547 * value-prof.h (branch_prob): Upate prototype.
21548 (read_thunk_profile): Declare.
21550 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21552 Update copyright years.
21554 * gcc.c (process_command): Update copyright notice dates.
21555 * gcov-dump.c (print_version): Ditto.
21556 * gcov.c (print_version): Ditto.
21557 * gcov-tool.c (print_version): Ditto.
21558 * gengtype.c (create_file): Ditto.
21559 * doc/cpp.texi: Bump @copying's copyright year.
21560 * doc/cppinternals.texi: Ditto.
21561 * doc/gcc.texi: Ditto.
21562 * doc/gccint.texi: Ditto.
21563 * doc/gcov.texi: Ditto.
21564 * doc/install.texi: Ditto.
21565 * doc/invoke.texi: Ditto.
21567 Copyright (C) 2019 Free Software Foundation, Inc.
21569 Copying and distribution of this file, with or without modification,
21570 are permitted in any medium without royalty provided the copyright
21571 notice and this notice are preserved.