1 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4 (HARD_REG_SET::operator&): Likewise.
5 (AND_HARD_REG_SET): Delete.
6 * caller-save.c (setup_save_areas): Use "&" instead of
8 (save_call_clobbered_regs): Likewise.
9 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10 * config/m32c/m32c.c (reduce_class): Likewise.
11 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12 * final.c (get_call_reg_set_usage): Likewise.
13 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14 (setup_left_conflict_sizes_p): Likewise.
15 * ira-conflicts.c (print_allocno_conflicts): Likewise.
16 (ira_build_conflicts): Likewise.
17 * ira-costs.c (restrict_cost_classes): Likewise.
18 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
19 (setup_reg_class_relations): Likewise.
20 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
21 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
22 * resource.c (find_dead_or_set_registers): Likewise.
23 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
25 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
27 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
28 (COMPL_HARD_REG_SET): Delete.
29 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
30 of COMPL_HARD_REG_SET.
31 (try_rename_operands): Likewise.
32 * config/sh/sh.c (push_regs): Likewise.
33 * lra-assigns.c (find_hard_regno_for_1): Likewise.
34 * lra-constraints.c (contains_reg_p): Likewise.
35 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
37 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
39 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
40 * caller-save.c (save_call_clobbered_regs): Use assignment instead
42 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
43 (epiphany_conditional_register_usage): Likewise.
44 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
45 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
46 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
47 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
48 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
49 * config/mips/mips.c (mips_class_max_nregs): Likewise.
50 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
51 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
52 * config/sh/sh.c (output_stack_adjust): Likewise.
53 * final.c (collect_fn_hard_reg_usage): Likewise.
54 (get_call_reg_set_usage): Likewise.
55 * ira-build.c (ira_create_object, remove_low_level_allocnos)
56 (ira_flattening): Likewise.
57 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
58 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
59 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
60 (ira_reassign_pseudos): Likewise.
61 * ira-conflicts.c (print_allocno_conflicts): Likewise.
62 (ira_build_conflicts): Likewise.
63 * ira-costs.c (restrict_cost_classes): Likewise.
64 (setup_regno_cost_classes_by_aclass): Likewise.
65 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
66 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
67 (setup_stack_reg_pressure_class, setup_pressure_classes)
68 (setup_allocno_and_important_classes, setup_class_translate_array)
69 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
70 (ira_setup_eliminable_regset): Likewise.
71 * lra-assigns.c (find_hard_regno_for_1): Likewise.
72 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
73 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
74 (process_alt_operands, inherit_in_ebb): Likewise.
75 * lra-lives.c (process_bb_lives): Likewise.
76 * lra-spills.c (assign_spill_hard_regs): Likewise.
77 * lra.c (lra): Likewise.
78 * mode-switching.c (new_seginfo): Likewise.
79 * postreload.c (reload_combine): Likewise.
80 * reg-stack.c (straighten_stack): Likewise.
81 * reginfo.c (save_register_info, restore_register_info): Likewise.
82 (init_reg_sets_1, record_subregs_of_mode): Likewise
83 * regrename.c (create_new_chain, rename_chains): Likewise.
84 * reload1.c (order_regs_for_reload, find_reg): Likewise.
85 (find_reload_regs): Likewise.
86 * resource.c (find_dead_or_set_registers): Likewise.
87 (mark_target_live_regs): Likewise.
88 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
90 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
92 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
93 (note_pattern_stores): Declare.
94 (note_stores): Take an rtx_insn *.
95 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
96 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
97 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
98 (note_stores): Take an rtx_insn * as argument and process
99 CALL_INSN_FUNCTION_USAGE. Rename old function to...
100 (note_pattern_stores): ...this.
101 (find_first_parameter_load): Pass the insn rather than
102 its pattern to note_stores.
103 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
104 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
105 (insert_one_insn): Likewise.
106 * combine.c (combine_instructions): Likewise.
107 (likely_spilled_retval_p): Likewise.
108 (try_combine): Use note_pattern_stores instead of note_stores.
109 (record_dead_and_set_regs): Pass the insn rather than its pattern
111 (reg_dead_at_p): Likewise.
112 * config/bfin/bfin.c (workaround_speculation): Likewise.
113 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
115 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
116 instead of note_stores.
117 (frv_optimize_membar_local): Pass the insn rather than its pattern
119 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
120 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
121 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
122 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
123 (mips_reorg_process_insns): Likewise.
124 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
125 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
127 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
128 its pattern to note_stores.
129 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
131 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
132 the insn to note_stores.
133 (prescan_insns_for_dce): Update call accordingly.
134 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
136 * df-problems.c (can_move_insns_across): Likewise.
137 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
138 * function.c (assign_parm_setup_reg): Likewise.
139 * gcse-common.c (record_last_mem_set_info_common): Likewise.
140 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
141 (single_set_gcse): Likewise.
142 * ira.c (validate_equiv_mem): Likewise.
143 (update_equiv_regs): Use note_pattern_stores rather than note_stores
145 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
146 pattern to note_stores.
147 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
148 * loop-iv.c (simplify_using_initial_values): Likewise.
149 * mode-switching.c (optimize_mode_switching): Likewise.
150 * optabs.c (emit_libcall_block_1): Likewise.
151 (expand_atomic_compare_and_swap): Likewise.
152 * postreload-gcse.c (load_killed_in_block_p): Likewise.
153 (record_opr_changes): Likewise. Remove explicit handling of
154 CALL_INSN_FUNCTION_USAGE.
155 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
156 * regcprop.c (kill_clobbered_values): Likewise.
157 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
159 * regrename.c (build_def_use): Likewise.
160 * reload1.c (reload): Use note_pattern_stores instead of note_stores
161 for mark_not_eliminable.
162 (reload_as_needed): Pass the insn rather than its pattern
164 (emit_output_reload_insns): Likewise.
165 * resource.c (mark_target_live_regs): Likewise.
166 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
167 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
168 instead of note_stores.
169 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
170 its pattern to note_stores.
171 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
172 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
174 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
176 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
177 than a #define. Use a structure rather than an array as the
178 fallback definition. Remove special cases for low array sizes.
179 (const_hard_reg_set): New typedef.
180 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
181 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
182 (hard_reg_set_empty_p): Likewise.
183 (SET_HARD_REG_BIT): Use a function rather than a macro to
184 handle the case in which HARD_REG_SET is a structure.
185 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
186 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
187 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
188 (IOR_COMPL_HARD_REG_SET): Likewise.
189 (hard_reg_set_iterator::pset): Constify the pointer target.
190 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
191 of a "const HARD_REG_SET". Update the handling of non-integer
193 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
194 * reload.h: Likewise.
195 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
196 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
197 of a "const HARD_REG_SET".
198 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
199 (range_in_hard_reg_set_p): Likewise.
200 * ira-costs.c (restrict_cost_classes): Likewise.
201 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
202 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
203 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
204 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
205 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
206 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
207 take an unsigned int and open-code the HARD_REG_SET operations.
209 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
211 * Makefile.in (OBJS): Remove bt-load.o.
212 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
213 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
214 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
215 document that the option no longer does anything.
216 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
217 * target.def (branch_target_register_class): Delete.
218 (branch_target_register_callee_saved): Likewise.
219 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
220 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
221 * doc/tm.texi: Regenerate.
222 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
223 (make_pass_branch_target_load_optimize2): Likewise.
224 * passes.def (pass_branch_target_load_optimize1): Likewise.
225 (pass_branch_target_load_optimize2): Likewise.
226 * targhooks.h (default_branch_target_register_class): Likewise.
227 * targhooks.c (default_branch_target_register_class): Likewise.
228 * opt-suggestions.c (test_completion_valid_options): Remove
229 -fbtr-bb-exclusive from the list of test options.
232 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
234 * match.pd: Add flag_unsafe_math_optimizations check
235 before deciding on the widest type in a binary math operation.
237 2019-09-09 Martin Liska <mliska@suse.cz>
239 * config/i386/i386.opt: Update comment of removed
240 options that are preserved only for backward
243 2019-09-09 Jakub Jelinek <jakub@redhat.com>
246 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
250 * config/i386/avxintrin.h (__v32qs): New typedef.
251 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
254 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
256 * doc/invoke.texi (Option Summary): Cover eBPF.
257 (eBPF Options): New section.
258 * doc/extend.texi (BPF Built-in Functions): Likewise.
259 (BPF Kernel Helpers): Likewise.
261 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
263 * config.gcc: Support for bpf-*-* targets.
264 * common/config/bpf/bpf-common.c: New file.
265 * config/bpf/t-bpf: Likewise.
266 * config/bpf/predicates.md: Likewise.
267 * config/bpf/constraints.md: Likewise.
268 * config/bpf/bpf.opt: Likewise.
269 * config/bpf/bpf.md: Likewise.
270 * config/bpf/bpf.h: Likewise.
271 * config/bpf/bpf.c: Likewise.
272 * config/bpf/bpf-protos.h: Likewise.
273 * config/bpf/bpf-opts.h: Likewise.
274 * config/bpf/bpf-helpers.h: Likewise.
275 * config/bpf/bpf-helpers.def: Likewise.
277 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
279 * doc/sourcebuild.texi (Effective-Target Keywords): Document
282 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
284 * opt-functions.awk (integer_range_info): Make sure values are in
285 numeric context before operating with them.
287 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
289 * genemit.c (gen_split): Print the filename and line number where the
290 splitter (or peephole2) was defined, to the dump file.
292 2019-09-07 Jakub Jelinek <jakub@redhat.com>
294 PR tree-optimization/91665
295 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
296 incompatible with the type of PHI result.
298 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
301 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
302 gen_unaligned_storedi for 4-byte aligned addresses.
304 2019-09-06 Jim Wilson <jimw@sifive.com>
306 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
309 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
311 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
313 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
315 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
316 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
318 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
321 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
322 cost of SSE->integer and integer->SSE moves from 2 to 6.
325 2019-09-06 Jakub Jelinek <jakub@redhat.com>
327 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
328 before testing TYPE_TRANSPARENT_AGGR.
329 * calls.c (initialize_argument_information, load_register_parameters):
332 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
334 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
338 2019-09-06 Martin Liska <mliska@suse.cz>
340 * doc/match-and-simplify.texi: Separate tuples with ;.
342 2019-09-06 Martin Liska <mliska@suse.cz>
345 * Makefile.in: Remove tlink.o.
346 * collect2.c (do_link): New function isolated
349 * collect2.h (do_tlink): Remove declaration of do_tlink.
350 * doc/extend.texi: Remove documentation of -frepo.
351 * doc/invoke.texi: Likewise.
352 * doc/sourcebuild.texi: Remove cleanup-repo-files.
355 2019-09-05 Jakub Jelinek <jakub@redhat.com>
356 Jim Wilson <jimw@sifive.com>
359 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
360 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
361 paradoxical_subreg_p (operands[0]).
362 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
363 use as intermediate value.
365 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
367 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
368 (sync_compare_and_swap<mode>_insn): Likewise.
370 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
373 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
374 without movmisalign optab.
376 2019-09-05 Jakub Jelinek <jakub@redhat.com>
381 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
382 types, use type of their first field instead of type of
385 2019-09-05 Richard Biener <rguenther@suse.de>
387 PR rtl-optimization/91656
388 * postreload-gcse.c (record_last_mem_set_info): Revert addition
391 2019-09-05 Richard Biener <rguenther@suse.de>
394 * tree-inline.c (declare_return_variable): Mark the return
395 slot as addressable after building an address of it.
397 2019-09-05 Arnaud Charlet <charlet@adacore.com>
399 * doc/install.texi: Update and clarify requirements to build GNAT.
401 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
404 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
405 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
406 call to be in memory.
407 (pass_expand::execute): Call discover_nonconstant_array_refs before
408 setting currently_expanding_to_rtl.
410 2019-09-04 Caroline Tice <cmtice@google.com>
412 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
415 2019-09-04 Marek Polacek <polacek@redhat.com>
417 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
419 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
422 * config/i386/i386.c (inline_secondary_memory_needed): Return true
423 for QI and HImode moves between SSE and general registers.
425 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
428 * doc/invoke.texi: Document -Wenum-conversion.
430 2019-09-04 Richard Biener <rguenther@suse.de>
432 PR rtl-optimization/36262
433 * postreload-gcse.c: Include intl.h and gcse.h.
434 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
435 to avoid linear list walk.
436 (record_last_mem_set_info): Gate off if not computing transparentness.
437 (get_bb_avail_insn): If transparentness isn't computed give up
439 (gcse_after_reload_main): Skip compute_transp and extended PRE
440 if gcse_or_cprop_is_too_expensive says so.
442 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
444 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
446 (msp430_select_section): Handle decls with the "noinit" attribute with
447 default_elf_select_section.
448 Handle SECCAT_RODATA_MERGE_* section types with
449 default_elf_select_section.
450 Add comments about handling of unsupported section types.
451 (msp430_section_type_flags): Remove handling of the noinit section.
453 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
455 * config/msp430/msp430.c (msp430_attr): Remove warnings about
456 conflicting msp430-specific attributes.
457 (msp430_section_attr): Likewise.
458 Add warnings about conflicts with generic "noinit" and "section"
460 Fix grammar in -mlarge error message.
461 (msp430_data_attr): Rename to msp430_persist_attr.
462 Add warnings about conflicts with generic "noinit" and "section"
464 Add warning for when variable is not initialized.
465 Chain conditionals which prevent the attribute being added.
466 (ATTR_EXCL): New helper.
467 (attr_reent_exclusions): New exclusion table.
468 (attr_naked_exclusions): Likewise.
469 (attr_crit_exclusions): Likewise.
470 (attr_lower_exclusions): Likewise.
471 (attr_upper_exclusions): Likewise.
472 (attr_either_exclusions): Likewise.
473 (attr_persist_exclusions): Likewise.
474 (msp430_attribute_table): Update with exclusion rules.
475 (msp430_output_aligned_decl_common): Don't output common symbol if decl
478 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
480 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
481 (msp430_handle_generic_attribute): New function.
482 * doc/tm.texi: Regenerate.
483 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
484 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
485 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
486 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
488 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
490 PR tree-optimization/91504
491 * match.pd: Add ((~a & b) ^a) --> (a | b).
493 2019-09-03 Jakub Jelinek <jakub@redhat.com>
496 * config/i386/i386-expand.c (split_double_mode): If there is more than
497 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
498 already split matching MEM operand instead of calling adjust_address
501 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
503 * config.gcc: Obsolete spu target. Remove references to spu.
504 * configure.ac: Remove references to spu.
505 * configure: Regenerate.
506 * config/spu/: Remove directory.
507 * common/config/spu/: Remove directory.
509 * doc/extend.texi: Remove references to spu.
510 * doc/invoke.texi: Likewise.
511 * doc/md.texi: Likewise.
512 * doc/sourcebuild.texi: Likewise.
514 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
519 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
520 and SSA_NAME referring to CONSTANT_P correctly.
522 2019-09-03 Richard Biener <rguenther@suse.de>
524 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
525 (vn_nary_op_insert): Likewise.
526 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
527 (vn_nary_op_lookup): Likewise.
528 (vn_nary_op_insert): Likewise.
530 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
532 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
533 (*op0, 1) instead of XEXP (*op1, 0).
535 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
537 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
538 (aarch64_fjcvtzs): New define_insn.
539 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
540 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
542 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
543 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
544 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
545 __ARM_FEATURE_JCVT where appropriate.
546 * config/aarch64/arm_acle.h (__jcvt): Define.
548 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
550 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
551 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
552 (aarch64_<frintnzs_op><mode>): New define_insn.
553 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
554 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
555 __ARM_FEATURE_FRINT when appropriate.
556 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
557 frint32x, frint64z, frint64x.
558 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
559 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
560 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
561 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
562 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
563 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
564 * config/aarch64/iterators.md (VSFDF): Define.
565 (FRINTNZX): Likewise.
566 (frintnzs_op): Likewise.
568 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
570 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
571 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
573 * config/aarch64/aarch64-tune.md: Regenerated.
574 * doc/invoke.texi: Document the new processors.
576 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
578 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
582 (sve2-sm4): Likewise.
585 (svebitperm): Likewise.
587 2019-09-03 Jakub Jelinek <jakub@redhat.com>
588 Richard Biener <rguenther@suse.de>
590 PR tree-optimization/91597
591 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
592 BIT_AND_EXPR optimization for pointers, even if both operand
593 ranges don't include NULL, the result can be NULL.
595 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
598 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
599 (non_mem_decl_p): ...this.
600 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
601 (expand_assignment): Call mem_ref_referes_to_non_mem_p
602 unconditionally as before.
604 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
607 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
608 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
609 * tree.def (LTGT_EXPR): Likewise.
610 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
612 2019-09-02 Jakub Jelinek <jakub@redhat.com>
615 * fold-const.c (range_check_type): For enumeral and boolean
616 type, pass 1 to type_for_size langhook instead of
617 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
618 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
619 (build_range_check): Don't call unsigned_type_for for pointer types.
620 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
621 range_check_type result.
623 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
625 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
626 (replace_ref): Do not replace a chain of only two candidates which are
627 valid memory references.
629 2019-09-02 Martin Liska <mliska@suse.cz>
631 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
632 Bail out when we'll end up with the same number of clusters as
634 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
635 (jump_table_cluster::can_be_handled): Remove the guard
636 as it's already handled in ::is_enabled. Allocate output
637 after early bail out.
639 2019-09-02 Martin Liska <mliska@suse.cz>
641 PR gcov-profile/91601
642 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
643 (path_contains_zero_or_negative_cycle_arc): ... this and handle
645 (circuit): Handle also negative edges as they can happen
648 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
651 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
652 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
653 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
655 2019-09-01 Jakub Jelinek <jakub@redhat.com>
658 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
659 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
660 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
664 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
665 GIMPLE_ASM TREE_LIST operands.
667 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
669 * doc/generic.texi (Unary and Binary Expressions): Mark up
670 an instance of TYPE_MIN.
672 2019-08-31 Stafford Horne <shorne@gmail.com>
674 * config/or1k/constraints.md (t): New constraint.
675 * config/or1k/or1k.h (GOT_REGS): New register class.
676 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
678 2019-08-30 Jim Wilson <jimw@sifive.com>
680 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
681 and -fpic and -mplt then disable -msave-restore and warn.
683 2019-08-30 Martin Sebor <msebor@redhat.com>
686 * tree-ssa-strlen.c (handle_store): Use a fallback location if
687 the statement doesn't have one.
688 * gimple-pretty-print.c (percent_G_format): Same.
691 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
692 before using them to validate MEM_REF offset.
694 2019-08-30 Marek Polacek <polacek@redhat.com>
696 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
698 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
700 * config/arm/arm.md (unaligned_loaddi,
701 unaligned_storedi): New unspec insn patterns.
702 * config/arm/neon.md (unaligned_storev8qi): Likewise.
703 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
704 and unaligned_storedi for 4-byte aligned memory.
705 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
706 4-byte aligned memory.
708 2019-08-30 Martin Jambor <mjambor@suse.cz>
710 tree-optimization/91579
711 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
712 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
714 (arg_needs_copy_p): Removed.
715 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
717 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
719 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
721 * config/i386/i386-features.c
722 (general_scalar_chain::compute_convert_gain):
723 Correct cost for double-word shifts.
724 (general_scalar_to_vector_candidate_p): Reject count operands
725 greater or equal to mode bitsize.
727 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
729 * config/i386/i386.c (inline_secondary_memory_needed): Return true
730 for moves between SSE and non-general registers and between
731 mask and non-general registers.
732 (ix86_register_move_cost): Remove stalled comment.
734 2019-08-29 Richard Biener <rguenther@suse.de>
736 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
737 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
739 2019-08-29 Richard Biener <rguenther@suse.de>
742 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
743 Do not emit scalar copies for debug-insns, instead replace
744 their uses with the reg copy used in the chain or reset them
745 if there is a reaching definition outside of the chain as well.
747 2019-08-29 Jakub Jelinek <jakub@redhat.com>
750 * config/i386/i386-expand.c (expand_vec_perm_movs,
751 expand_vec_perm_blend, expand_vec_perm_vpermil,
752 expand_vec_perm_pshufb, expand_vec_perm_1,
753 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
754 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
755 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
756 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
757 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
758 comments - replace ix86_expand_vec_perm_builtin_1 with
759 ix86_expand_vec_perm_const_1.
760 (expand_vec_perm2_vperm2f128_vblend): New function.
761 (ix86_expand_vec_perm_const_1): New forward declaration. Call
762 expand_vec_perm2_vperm2f128_vblend as last resort.
763 (canonicalize_perm): Formatting fix.
765 PR tree-optimization/91351
766 * tree-cfg.c (generate_range_test): Use range_check_type instead of
768 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
769 range_check_type returns NULL.
770 * tree-switch-conversion.c (switch_conversion::build_one_array):
771 Use range_check_type instead of unsigned_type_for, don't perform
772 linear opt if it returns NULL.
773 (bit_test_cluster::find_bit_tests): Formatting fix.
774 (bit_test_cluster::emit): Use range_check_type instead of
776 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
779 2019-08-29 Richard Biener <rguenther@suse.de>
781 PR tree-optimization/91568
782 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
783 (vect_update_max_nunits): Add overload for poly_uint64.
784 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
785 (vect_build_slp_tree): Record max_nunits into the subtree
786 and merge it upwards.
787 (vect_print_slp_tree): Print max_nunits.
789 2019-08-28 Marek Polacek <polacek@redhat.com>
791 Implement P1152R4: Deprecating some uses of volatile.
793 * doc/invoke.texi: Document -Wvolatile.
795 2019-08-28 Marek Polacek <polacek@redhat.com>
797 PR c++/91360 - Implement C++20 P1143R2: constinit.
798 * doc/invoke.texi: Document -Wc++20-compat.
800 2019-08-28 Martin Sebor <msebor@redhat.com>
802 PR tree-optimization/91457
803 * builtins.c (component_size): New function.
804 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
805 * builtins.h (compute_objsize): Add argument.
806 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
807 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
808 (vrp_prop::check_mem_ref): Same.
809 (vrp_prop::search_for_addr_array): Set no-warning bit.
810 (check_array_bounds): Same.
812 2019-08-28 Martin Sebor <msebor@redhat.com>
815 * opts-common.c (option_enabled): Correct checking for language
818 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
820 * config/i386/i386.c (ix86_register_move_cost): Do not
821 limit the cost of moves to/from XMM register to minimum 8.
823 2019-08-28 Martin Jambor <mjambor@suse.cz>
826 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
827 checking assert a normal assert to test it really is redundant.
828 * ipa-prop.c (compute_complex_assign_jump_func): Removed
830 (update_jump_functions_after_inlining): Removed combining unary
831 arithmetic operations with an ancestor jump function.
832 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
835 2019-08-28 Richard Biener <rguenther@suse.de>
837 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
840 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
841 Richard Biener <rguenther@suse.de>
843 * expr.c (expand_assignment): Handle misaligned DECLs.
844 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
845 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
847 (assign_parm_setup_stack): Allocate properly aligned stack slots.
848 * varasm.c (build_constant_desc): Align constants of misaligned types.
849 * config/arm/predicates.md (aligned_operand): New predicate.
850 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
851 aligned_operand to check restrictions on memory addresses.
852 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
853 * config/arm/vec-common.md (mov<VALL>): Likewise.
855 2019-08-28 Jakub Jelinek <jakub@redhat.com>
858 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
859 V_128 iterator instead of VI_128.
861 2019-08-28 Martin Liska <mliska@suse.cz>
863 PR tree-optimization/90970
864 * builtins.c (check_access): Remove assignment to maxread
865 as it hasn't been used since when it was introduced in r255755.
867 2019-08-27 Martin Sebor <msebor@redhat.com>
869 PR tree-optimization/91567
870 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
872 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
875 2019-08-27 Jeff Law <law@redhat.com>
877 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
878 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
880 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
883 * config/i386/i386-features.c (convert_scalars_to_vector):
884 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
885 crtl->stack_realign_processed. Update crtl->drap_reg by calling
886 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
887 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
889 2019-08-27 Richard Biener <rguenther@suse.de>
891 * config/i386/i386-features.h
892 (general_scalar_chain::~general_scalar_chain): Add.
893 (general_scalar_chain::insns_conv): New bitmap.
894 (general_scalar_chain::n_sse_to_integer): New.
895 (general_scalar_chain::n_integer_to_sse): Likewise.
896 (general_scalar_chain::make_vector_copies): Adjust signature.
897 * config/i386/i386-features.c
898 (general_scalar_chain::general_scalar_chain): Outline,
899 initialize new members.
900 (general_scalar_chain::~general_scalar_chain): New.
901 (general_scalar_chain::mark_dual_mode_def): Record insns
902 we need to insert conversions at and count them.
903 (general_scalar_chain::compute_convert_gain): Account
904 for conversion instructions at chain boundary.
905 (general_scalar_chain::make_vector_copies): Generate a single
906 copy for a def by a specific insn.
907 (general_scalar_chain::convert_registers): First populate
908 defs_map, then make copies at out-of chain insns.
910 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
912 * config/arm/arm.md (stack_protect_set_insn): Add security-related
914 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
916 2019-08-27 Martin Liska <mliska@suse.cz>
918 * cgraph.c (cgraph_node::remove): Remove dead assignment before
920 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
921 Enclose in anonymous namespace.
922 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
923 hard_register initialization in braces.
924 * tree-vrp.h (value_range_base::supports_type_p): Return false
925 for function with boolean return type.
927 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
929 * config/i386/i386.c (emit_i387_cw_initialization)
930 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
932 2019-08-26 Martin Sebor <msebor@redhat.com>
935 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
936 (sprintf_dom_walker): Remove class.
937 (get_int_range): Make argument const.
938 (directive::fmtfunc, directive::set_precision): Same.
940 (build_intmax_type_nodes): Same.
941 (adjust_range_for_overflow): Same.
942 (format_floating): Same.
943 (format_character): Same.
944 (format_string): Same.
945 (format_plain): Same.
946 (get_int_range): Cast away constness.
947 (format_integer): Same.
948 (get_string_length): Call get_range_strlen_dynamic. Handle
949 null lendata.maxbound.
950 (should_warn_p): Adjust argument scope qualifier.
952 (format_directive): Same.
953 (parse_directive): Same.
954 (is_call_safe): Same.
955 (try_substitute_return_value): Same.
956 (sprintf_dom_walker::handle_printf_call): Rename...
957 (handle_printf_call): ...to this. Initialize target to host charmap
958 here instead of in pass_sprintf_length::execute.
959 (struct call_info): Make global.
960 (sprintf_dom_walker::compute_format_length): Make global.
961 (sprintf_dom_walker::handle_gimple_call): Same.
962 * passes.def (pass_sprintf_length): Replace with pass_strlen.
963 * print-rtl.c (print_pattern): Reduce the number of spaces to
964 avoid -Wformat-truncation.
965 * tree-pass.h (make_pass_warn_printf): New function.
966 * tree-ssa-strlen.c (strlen_optimize): New variable.
967 (get_string_length): Add comments.
968 (get_range_strlen_dynamic): New function.
969 (check_and_optimize_call): New function.
970 (handle_integral_assign): New function.
971 (strlen_check_and_optimize_stmt): Factor code out into
972 strlen_check_and_optimize_call and handle_integral_assign.
973 (strlen_dom_walker::evrp): New member.
974 (strlen_dom_walker::before_dom_children): Use evrp member.
975 (strlen_dom_walker::after_dom_children): Use evrp member.
976 (printf_strlen_execute): New function.
977 (pass_strlen::gate): Update to handle printf calls.
978 (dump_strlen_info): New function.
979 (pass_data_warn_printf): New variable.
980 (pass_warn_printf): New class.
981 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
982 (handle_printf_call): Same.
983 * tree-vrp.c (value_range_base::type): Adjust assertion.
984 * vr-values.c (vr_values::update_value_range): Use type of the first
985 argument rather than the second.
987 2019-08-26 Richard Biener <rguenther@suse.de>
989 * config/i386/i386-features.c (general_remove_non_convertible_regs):
991 (convert_scalars_to_vector): Do not call it.
993 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
994 Uros Bizjak <ubizjak@gmail.com>
996 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
997 CASE_MATHFN_FLOATN for roundeven.
998 * config/i386/i386.c (ix86_i387_mode_needed): Add case
1000 (ix86_mode_needed): Likewise.
1001 (ix86_mode_after): Likewise.
1002 (ix86_mode_entry): Likewise.
1003 (ix86_mode_exit): Likewise.
1004 (ix86_emit_mode_set): Likewise.
1005 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
1006 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
1007 (ix86_entity): Add I387_ROUNDEVEN.
1008 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
1009 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
1010 (define_int_iterator): Likewise.
1011 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
1012 (define_constant): Define ROUND_ROUNDEVEN mode.
1013 (define_attr): Add roundeven mode for i387_cw.
1014 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
1015 * internal-fn.def (ROUNDEVEN): New builtin function.
1016 * optabs.def (roundeven_optab): New optab.
1018 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
1020 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
1022 * builtins.def: Added function definitions for roundeven function
1024 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
1025 function call. Adjust condition for floor, ceil, trunc and round.
1026 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
1027 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
1028 (integer_valued_real_call_p): Added case for roundeven function.
1029 * real.c (is_even): New function. Returns true if real number is even,
1030 otherwise returns false.
1031 (is_halfway_below): New function. Returns true if real number is
1032 halfway between two integers, else return false.
1033 (real_roundeven): New function. Round real number to nearest integer,
1034 rounding halfway cases towards even.
1035 * real.h (real_value): Added descriptive comments. Added function
1036 declaration for roundeven function.
1037 * doc/extend.texi (Other Builtins): List roundeven variants among
1038 functions which can be handled as builtins.
1040 2019-08-26 Richard Biener <rguenther@suse.de>
1044 * config/i386/i386-features.h (general_scalar_chain::defs_map):
1046 (general_scalar_chain::replace_with_subreg): Remove.
1047 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1048 (general_scalar_chain::convert_reg): Adjust signature.
1049 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
1050 iterate over all defs of a reg.
1051 (general_scalar_chain::replace_with_subreg): Remove.
1052 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
1053 (general_scalar_chain::make_vector_copies): Populate defs_map,
1054 place copy only after defs that are used as vectors in the chain.
1055 (general_scalar_chain::convert_reg): Emit a copy for a specific
1056 def in a specific instruction.
1057 (general_scalar_chain::convert_op): All reg uses are converted here.
1058 (general_scalar_chain::convert_insn): Emit copies for scalar
1059 uses of defs here. Replace uses with the copies we created.
1060 Replace and convert the def. Adjust REG_DEAD notes, remove
1061 REG_EQUIV/EQUAL notes.
1062 (general_scalar_chain::convert_registers): Only handle copies
1063 into the chain here.
1065 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1067 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
1069 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
1071 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
1072 Add nop_convert case.
1073 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
1074 Fold all statements if requested.
1075 * tree-ssa-propagate.h (class substitute_and_fold_engine):
1076 Allow to fold all statements.
1077 * tree-vrp.c (class vrp_folder):
1078 Let substitute_and_fold_engine fold all statements.
1080 2019-08-26 Richard Biener <rguenther@suse.de>
1082 PR tree-optimization/91526
1083 * passes.def: Note that after late FRE we do TODO_update_address_taken.
1084 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
1085 TODO_update_address_taken.
1087 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1089 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
1092 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
1094 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
1095 machine mode for unspec_volatile operand.
1097 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
1099 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
1100 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
1101 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
1102 (prefer_neon_for_64bits): Remove.
1103 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
1104 (tune_params): Remove PREF_NEON_64_FALSE uses.
1105 (arm_option_override): Remove prefer_neon selection code.
1106 (arm_print_tune_info): Remove prefer_neon_for_64bits.
1107 * gcc/config/arm/arm-protos.h (tune_params): Remove
1108 prefer_neon_for_64bits.
1109 (prefer_neon_for_64bits): Remove.
1111 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
1114 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
1115 and issue any diagnostics needed before collecting the pre-PCH
1118 2019-08-23 Jakub Jelinek <jakub@redhat.com>
1121 * common.opt (fexcess-precision=): Add Optimization flag. Use
1122 flag_excess_precision variable instead of
1123 flag_excess_precision_cmdline.
1124 * flags.h (class target_flag_state): Remove x_flag_excess_precision
1126 (flag_excess_precision): Don't define.
1127 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
1128 flag_excess_precision_cmdline. Remove comment.
1129 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
1130 and x_flag_excess_precision instead of
1131 frontend_set_flag_excess_precision_cmdline and
1132 x_flag_excess_precision_cmdline.
1133 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
1134 x_flag_excess_precision_cmdline.
1135 * toplev.c (init_excess_precision): Remove.
1136 (lang_dependent_init_target): Don't call it.
1138 2019-08-23 Martin Liska <mliska@suse.cz>
1140 * lto-wrapper.c (run_gcc): When setting jobserver
1141 set also parallel to 1. This was done so before r273908.
1143 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
1145 * config/arm/arm-cpus.in (cortex-m35p): New entry.
1146 (cortex-a76ae): Likewise.
1147 (cortex-a77): Likewise
1148 * config/arm/arm-tables.opt: Regenerate.
1149 * config/arm/arm-tune.md: Likewise.
1150 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
1151 cortex-a77 CPU options.
1153 2019-08-23 Martin Liska <mliska@suse.cz>
1155 * profile.c (instrument_values): Do not set
1157 * tree-profile.c (gimple_gen_interval_profiler): Remove
1159 (gimple_gen_pow2_profiler): Likewise.
1160 (gimple_gen_topn_values_profiler): Likewise.
1161 (gimple_gen_ic_profiler): Likewise.
1162 (gimple_gen_time_profiler): Likewise.
1163 (gimple_gen_average_profiler): Likewise.
1164 (gimple_gen_ior_profiler): Likewise.
1165 * value-prof.c (dump_histogram_value): Use default
1166 in switch statement instead of HIST_TYPE_MAX.
1167 (stream_in_histogram_value): Likewise.
1168 (gimple_duplicate_stmt_histograms): Do not
1169 use NULL for implicitly set arguments.
1170 (gimple_divmod_values_to_profile): Do not use
1172 (gimple_indirect_call_to_profile): Likewise.
1173 (gimple_find_values_to_profile): Use implicit
1174 function call arguments.
1175 * value-prof.h (gimple_alloc_histogram_value):
1177 (gimple_gen_interval_profiler): Remove last argument.
1178 (gimple_gen_pow2_profiler): Likewise.
1179 (gimple_gen_topn_values_profiler): Likewise.
1180 (gimple_gen_ic_profiler): Likewise.
1181 (gimple_gen_time_profiler): Likewise.
1182 (gimple_gen_average_profiler): Likewise.
1183 (gimple_gen_ior_profiler): Likewise.
1185 2019-08-22 Martin Sebor <msebor@redhat.com>
1188 * builtins.c (c_strlen): Rename argument and introduce new local.
1189 Set no-warning bit on original argument.
1190 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
1191 Fold empty and zero constructors into empty strings.
1192 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
1193 for missing initializers.
1194 * tree.c (build_string_literal): Handle optional argument.
1195 * tree.h (build_string_literal): Add defaulted argument.
1196 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
1197 no-warning bit on original expression.
1199 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1202 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1203 and UNSPEC_DARN_RAW.
1204 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
1206 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
1207 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
1208 (darn): Use an unspec_volatile, and UNSPECV_DARN.
1210 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
1212 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
1213 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
1214 * config/rs6000/rs6000.md (unspec): ... here.
1215 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
1216 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1217 cmpeqb, *cmpeqb_internal): Delete, move to...
1218 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
1219 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
1220 cmpeqb, *cmpeqb_internal): ... here.
1222 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1224 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
1225 intrinsics if __ARM_FP.
1226 Use __ARM_FEATURE_CRC32 ifdef guard.
1228 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1230 * config/arm/arm.md (neon_for_64bits): Remove.
1231 (avoid_neon_for_64bits): Remove.
1232 (arm_adddi3): Always split early.
1233 (arm_subdi3): Always split early.
1234 (negdi2): Remove Neon expansion.
1235 (split zero_extend): Split before reload.
1236 (split sign_extend): Split before reload.
1238 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1240 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
1241 (qhs_extenddi_cstr): Likewise.
1242 * config/arm/arm.md (ashldi3): Always expand early.
1243 (ashlsi3): Likewise.
1244 (ashrsi3): Likewise.
1245 (zero_extend<mode>di2): Remove Neon variants.
1246 (extend<mode>di2): Likewise.
1247 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
1248 (signed_shift_di3_neon): Likewise.
1249 (unsigned_shift_di3_neon): Likewise.
1250 (ashrdi3_neon_imm_noclobber): Likewise.
1251 (lshrdi3_neon_imm_noclobber): Likewise.
1252 (<shift>di3_neon): Likewise.
1253 (split extend): Remove DI extend split patterns.
1255 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
1257 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
1258 (split not): Add DImode not splitter.
1259 (anddi3): Remove pattern.
1260 (anddi3_insn): Likewise.
1261 (anddi_zesidi_di): Likewise.
1262 (anddi_sesdi_di): Likewise.
1263 (anddi_notdi_di): Likewise.
1264 (anddi_notzesidi_di): Likewise.
1265 (anddi_notsesidi_di): Likewise.
1267 (iordi3_insn): Likewise.
1268 (iordi_zesidi_di): Likewise.
1269 (iordi_sesidi_di): Likewise.
1271 (xordi3_insn): Likewise.
1272 (xordi_sesidi_di): Likewise.
1273 (xordi_zesidi_di): Likewise.
1274 (one_cmpldi2): Likewise.
1275 (one_cmpldi2_insn): Likewise.
1276 * config/arm/constraints.md: Remove De, Df, Dg constraints.
1277 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
1279 (iwmmxt_xordi3): Likewise.
1280 (iwmmxt_anddi3): Likewise.
1281 * config/arm/neon.md (orndi3_neon): Remove pattern.
1282 (anddi_notdi_di): Likewise.
1283 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
1284 (arm_iordi_operand_neon): Likewise.
1285 (arm_xordi_operand_neon): Likewise.
1286 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
1287 (iordi_notzesidi_di): Likewise.
1288 (iordi_notdi_zesidi): Likewise.
1289 (iordi_notsesidi_di): Likewise.
1291 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
1293 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
1295 (iorsi3_compare0_scratch): Likewise.
1297 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
1299 * config/aarch64/aarch64-simd-builtins.def:
1302 * config/aarch64/aarch64-simd.md:
1303 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
1304 (aarch64_st1x4<VALLDIF:mode>): Likewise.
1305 (aarch64_ld1_x4_<mode>): Likewise.
1306 (aarch64_st1_x4_<mode>): Likewise.
1307 * config/aarch64/arm_neon.h:
1308 (vld1_s8_x4): New function.
1309 (vld1q_s8_x4): Likewise.
1310 (vld1_s16_x4): Likewise.
1311 (vld1q_s16_x4): Likewise.
1312 (vld1_s32_x4): Likewise.
1313 (vld1q_s32_x4): Likewise.
1314 (vld1_u8_x4): Likewise.
1315 (vld1q_u8_x4): Likewise.
1316 (vld1_u16_x4): Likewise.
1317 (vld1q_u16_x4): Likewise.
1318 (vld1_u32_x4): Likewise.
1319 (vld1q_u32_x4): Likewise.
1320 (vld1_f16_x4): Likewise.
1321 (vld1q_f16_x4): Likewise.
1322 (vld1_f32_x4): Likewise.
1323 (vld1q_f32_x4): Likewise.
1324 (vld1_p8_x4): Likewise.
1325 (vld1q_p8_x4): Likewise.
1326 (vld1_p16_x4): Likewise.
1327 (vld1q_p16_x4): Likewise.
1328 (vld1_s64_x4): Likewise.
1329 (vld1_u64_x4): Likewise.
1330 (vld1_p64_x4): Likewise.
1331 (vld1q_s64_x4): Likewise.
1332 (vld1q_u64_x4): Likewise.
1333 (vld1q_p64_x4): Likewise.
1334 (vld1_f64_x4): Likewise.
1335 (vld1q_f64_x4): Likewise.
1336 (vst1_s8_x4): Likewise.
1337 (vst1q_s8_x4): Likewise.
1338 (vst1_s16_x4): Likewise.
1339 (vst1q_s16_x4): Likewise.
1340 (vst1_s32_x4): Likewise.
1341 (vst1q_s32_x4): Likewise.
1342 (vst1_u8_x4): Likewise.
1343 (vst1q_u8_x4): Likewise.
1344 (vst1_u16_x4): Likewise.
1345 (vst1q_u16_x4): Likewise.
1346 (vst1_u32_x4): Likewise.
1347 (vst1q_u32_x4): Likewise.
1348 (vst1_f16_x4): Likewise.
1349 (vst1q_f16_x4): Likewise.
1350 (vst1_f32_x4): Likewise.
1351 (vst1q_f32_x4): Likewise.
1352 (vst1_p8_x4): Likewise.
1353 (vst1q_p8_x4): Likewise.
1354 (vst1_p16_x4): Likewise.
1355 (vst1q_p16_x4): Likewise.
1356 (vst1_s64_x4): Likewise.
1357 (vst1_u64_x4): Likewise.
1358 (vst1_p64_x4): Likewise.
1359 (vst1q_s64_x4): Likewise.
1360 (vst1q_u64_x4): Likewise.
1361 (vst1q_p64_x4): Likewise.
1362 (vst1_f64_x4): Likewise.
1363 (vst1q_f64_x4): Likewise.
1365 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1367 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
1369 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1370 Richard Sandiford <richard.sandiford@arm.com>
1373 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
1374 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
1376 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1379 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
1380 in reg if it fails aarch64_plus_operand predicate.
1382 2019-08-21 Richard Biener <rguenther@suse.de>
1384 PR tree-optimization/91482
1385 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
1386 BUILT_IN_ASSUME_ALIGNED calls.
1388 2019-08-21 Richard Biener <rguenther@suse.de>
1392 * config/i386/i386-features.c
1393 (general_scalar_chain::make_vector_copies): Copy stack temporary
1394 rtx when using it multiple times.
1395 (general_scalar_chain::convert_reg): Likewise.
1397 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1399 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
1401 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
1403 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
1404 catch more redundant zero initialization cases.
1405 (dse_dom_walker::dse_optimize_stmt): Likewise.
1407 2019-08-20 Richard Biener <rguenther@suse.de>
1410 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
1411 by collect2 when targetm.have_ctors_dtors which avoids dragging
1412 in temporary filenames from LTO input objects.
1414 2019-08-20 Richard Biener <rguenther@suse.de>
1416 PR tree-optimization/37242
1417 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
1418 to (T)a + (T)b if we know that a + b does not overflow.
1420 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
1422 PR rtl-optimization/91347
1423 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
1424 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
1426 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1428 * calls.h (function_arg_info): Add a pass_by_reference field,
1429 defaulting to false.
1430 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
1431 when applying pass-by-reference semantics.
1432 (initialize_argument_information): Likewise.
1433 (emit_library_call_value_1): Likewise.
1434 * function.c (assign_parm_data_one): Remove passed_pointer field.
1435 (assign_parm_find_data_types): Don't set it.
1436 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
1437 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
1438 arg.pass_by_reference instead of passed_pointer.
1440 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1442 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
1443 into a single function_arg_info, updating its fields when we
1444 apply pass-by-reference and promotion semantics. Use the
1445 function_arg_info to track the mode rather than keeping it in
1446 a separate local variable.
1447 (initialize_argument_information): Likewise. Base the final
1448 arg_to_skip on this new function_arg_info rather than creating
1449 a new one from scratch.
1451 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1453 * function.c (assign_parm_data_one): Replace passed_type,
1454 promoted_mode and named_arg with a function_arg_info field.
1455 (assign_parm_find_data_types): Remove local variables and
1456 assign directly to "data". Make data->passed_mode shadow
1457 data->arg.mode until promotion, then assign the promoted
1458 mode to data->arg.mode.
1459 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
1460 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
1461 (assign_parm_remove_parallels, assign_parm_setup_block_p)
1462 (assign_parm_setup_block, assign_parm_setup_reg)
1463 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
1464 arg.mode instead of promoted_mode, arg.type instead of passed_type
1465 and arg.named instead of named_arg. Use data->arg for
1466 function_arg_info structures that had the field values passed_type,
1467 promoted_mode and named_arg. Base other function_arg_infos on
1468 data->arg, changing the necessary properties.
1470 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1472 * calls.h (apply_pass_by_reference_rules): Declare.
1473 * calls.c (apply_pass_by_reference_rules): New function.
1474 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
1475 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
1476 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1477 * function.c (assign_parm_find_data_types): Likewise.
1478 * var-tracking.c (prepare_call_arguments): Likewise.
1480 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1482 * target.def (must_pass_in_stack): Take a function_arg_info instead
1483 of a mode and a type.
1484 * doc/tm.texi: Regenerate.
1485 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
1486 instead of a mode and a type.
1487 (must_pass_in_stack_var_size_or_pad): Likewise.
1488 * calls.c (must_pass_in_stack_var_size): Likewise.
1489 (must_pass_in_stack_var_size_or_pad): Likewise.
1490 (initialize_argument_information): Update call to
1491 targetm.calls.must_pass_in_stack.
1492 (must_pass_va_arg_on_stack): Likewise.
1493 * function.c (assign_parm_find_entry_rtl): Likewise.
1494 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
1495 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1496 (alpha_function_arg_advance): Likewise.
1497 * config/cr16/cr16.c (cr16_function_arg): Likewise.
1498 (cr16_function_arg_advance): Likewise.
1499 * config/cris/cris.c (cris_pass_by_reference): Likewise.
1500 (cris_arg_partial_bytes): Likewise.
1501 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1502 * config/lm32/lm32.c (lm32_function_arg): Likewise.
1503 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
1504 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
1505 * config/mips/mips.c (mips_pass_by_reference): Likewise.
1506 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
1507 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
1508 * config/sh/sh.c (sh_pass_by_reference): Likewise.
1509 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1510 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1511 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
1512 instead of a mode and a type.
1513 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
1514 (fr30_num_arg_regs): Likewise.
1515 (fr30_setup_incoming_varargs): Update calls accordingly.
1516 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1517 (fr30_function_arg_advance): Likewise.
1518 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
1519 instead of a mode and a type.
1520 * config/gcn/gcn.c (num_arg_regs): Likewise.
1521 (gcn_function_arg, gcn_function_arg_advance): Update calls to
1522 num_arg_regs and targetm.calls.must_pass_in_stack.
1523 (gcn_arg_partial_bytes): Likewise.
1524 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
1525 function_arg_info instead of a mode and a type.
1526 (classify_argument): Update call accordingly.
1527 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
1528 function_arg_info instead of a mode and a type.
1529 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
1531 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
1532 (rs6000_parm_needs_stack): Update call accordingly.
1533 (setup_incoming_varargs): Likewise.
1535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1537 * target.def (callee_copies): Take a function_arg_info instead
1538 of a mode, type and named flag.
1539 * doc/tm.texi: Regenerate.
1540 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
1541 instead of a mode, type and named flag.
1542 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1543 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1544 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1545 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
1546 instead of a mode, type and named flag.
1547 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
1548 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1549 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
1550 * calls.h (reference_callee_copied): Take a function_arg_info
1551 instead of a mode, type and named flag.
1552 * calls.c (reference_callee_copied): Likewise.
1553 (initialize_argument_information): Update call accordingly.
1554 (emit_library_call_value_1): Likewise.
1555 * function.c (gimplify_parameters): Likewise.
1556 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
1557 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
1558 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
1559 * config/c6x/c6x.c (c6x_callee_copies): Delete.
1560 (TARGET_CALLEE_COPIES): Define to
1561 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1562 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
1563 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1564 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1565 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
1566 instead of a mode, type and named flag.
1567 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
1568 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1569 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1570 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
1571 * config/msp430/msp430.c (msp430_callee_copies): Delete.
1572 (TARGET_CALLEE_COPIES): Define to
1573 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
1574 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
1575 instead of a mode, type and named flag.
1576 * config/sh/sh.c (sh_callee_copies): Likewise.
1577 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
1578 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
1579 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
1581 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1583 * target.def (function_arg_advance): Take a function_arg_info instead
1584 of a mode, type and named flag.
1585 * doc/tm.texi: Regenerate.
1586 * targhooks.h (default_function_arg_advance): Take a function_arg_info
1587 instead of a mode, type and named flag.
1588 * targhooks.c (default_function_arg_advance): Likewise.
1589 * calls.c (initialize_argument_information): Update call to
1590 targetm.calls.function_arg_advance.
1591 (emit_library_call_value_1): Likewise.
1592 * dse.c (get_call_args): Likewise.
1593 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1594 * function.c (assign_parms, gimplify_parameters): Likewise.
1595 * var-tracking.c (prepare_call_arguments): Likewise.
1596 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
1597 function_arg_info instead of a mode, type and named flag.
1598 (aarch64_setup_incoming_varargs): Update call accordingly.
1599 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
1600 function_arg_info instead of a mode, type and named flag.
1601 (alpha_setup_incoming_varargs): Update call accordingly.
1602 * config/arc/arc.c (arc_function_arg_advance): Take a
1603 function_arg_info instead of a mode, type and named flag.
1604 (arc_setup_incoming_varargs): Update call accordingly.
1605 * config/arm/arm.c (arm_function_arg_advance): Take a
1606 function_arg_info instead of a mode, type and named flag.
1607 (cmse_func_args_or_return_in_stack): Update call accordingly.
1608 (arm_function_ok_for_sibcall): Likewise.
1609 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1610 * config/avr/avr.c (avr_function_arg_advance): Take a
1611 function_arg_info instead of a mode, type and named flag.
1612 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
1613 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
1614 (c6x_call_saved_register_used): Update call accordingly.
1615 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
1616 function_arg_info instead of a mode, type and named flag.
1617 * config/cris/cris.c (cris_function_arg_advance): Likewise.
1618 * config/csky/csky.c (csky_function_arg_advance): Likewise.
1619 (csky_setup_incoming_varargs): Update call accordingly.
1620 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
1621 function_arg_info instead of a mode, type and named flag.
1622 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
1623 * config/frv/frv.c (frv_function_arg_advance): Likewise.
1624 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
1625 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
1626 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
1627 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1628 (ix86_setup_incoming_varargs): Update call accordingly.
1629 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
1630 function_arg_info instead of a mode, type and named flag.
1631 (ia64_setup_incoming_varargs): Update call accordingly.
1632 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
1633 function_arg_info instead of a mode, type and named flag.
1634 (iq2000_expand_prologue): Update call accordingly.
1635 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
1636 function_arg_info instead of a mode, type and named flag.
1637 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
1638 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
1639 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1640 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
1641 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1643 (microblaze_expand_prologue): Update call accordingly.
1644 * config/mips/mips.c (mips_function_arg_advance): Take a
1645 function_arg_info instead of a mode, type and named flag.
1646 (mips_setup_incoming_varargs): Update call accordingly.
1647 (mips_output_args_xfer): Likewise.
1648 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
1649 function_arg_info instead of a mode, type and named flag.
1650 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
1651 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
1652 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
1653 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
1654 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
1655 (nios2_setup_incoming_varargs): Update call accordingly.
1656 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
1657 function_arg_info instead of a mode, type and named flag.
1658 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
1659 * config/pa/pa.c (pa_function_arg_advance): Likewise.
1660 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
1661 * config/pru/pru.c (pru_function_arg_advance): Likewise.
1662 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
1663 (riscv_setup_incoming_varargs): Update call accordingly.
1664 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
1665 function_arg_info instead of a mode, type and named flag.
1666 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
1668 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
1669 (rs6000_parm_needs_stack): Update call accordingly.
1670 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
1671 instead of a mode, type and named flag.
1672 * config/s390/s390.c (s390_function_arg_advance): Likewise.
1673 (s390_call_saved_register_used): Update call accordingly.
1674 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
1675 instead of a mode, type and named flag.
1676 (sh_output_mi_thunk): Update call accordingly.
1677 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
1678 function_arg_info instead of a mode, type and named flag.
1679 * config/spu/spu.c (spu_function_arg_advance): Likewise.
1680 (spu_setup_incoming_varargs): Update call accordingly.
1681 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
1682 function_arg_info instead of a mode, type and named flag.
1683 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
1684 (tilegx_setup_incoming_varargs): Update call accordingly.
1685 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
1686 function_arg_info instead of a mode, type and named flag.
1687 (tilegx_setup_incoming_varargs): Update call accordingly.
1688 * config/v850/v850.c (v850_function_arg_advance): Take a
1689 function_arg_info instead of a mode, type and named flag.
1690 * config/vax/vax.c (vax_function_arg_advance): Likewise.
1691 * config/visium/visium.c (visium_function_arg_advance): Likewise.
1692 (visium_setup_incoming_varargs): Update call accordingly.
1693 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
1694 function_arg_info instead of a mode, type and named flag.
1696 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1698 * target.def (function_arg, function_incoming_arg): Take a
1699 function_arg_info instead of a mode, tree and named flag.
1700 * doc/tm.texi: Regenerate.
1701 * targhooks.h (default_function_arg): Take a function_arg_info
1702 instead of a mode, tree and named flag.
1703 (default_function_incoming_arg): Likewise.
1704 * targhooks.c (default_function_arg): Likewise.
1705 (default_function_incoming_arg): Likewise.
1706 * calls.h (function_arg_info::end_marker_p): New function.
1707 (function_arg_info::end_marker): Likewise.
1708 * calls.c (prepare_call_address, initialize_argument_information)
1709 (expand_call, emit_library_call_value_1): Update calls to
1710 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
1711 * dse.c: Include calls.h.
1712 (get_call_args): Update call to targetm.calls.function_arg.
1713 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1714 * var-tracking.c (prepare_call_arguments): Likewise.
1715 * function.c (assign_parm_find_entry_rtl): Update call to
1716 targetm.calls.function_incoming_arg.
1717 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
1718 function_arg_info instead of a mode, tree and named flag.
1719 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1720 * config/arc/arc.c (arc_function_arg): Likewise.
1721 * config/arm/arm.c (arm_function_arg): Likewise.
1722 (cmse_func_args_or_return_in_stack): Update call accordingly.
1723 (arm_function_ok_for_sibcall): Likewise.
1724 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1725 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
1726 instead of a mode, tree and named flag.
1727 * config/bfin/bfin.c (bfin_function_arg): Likewise.
1728 * config/c6x/c6x.c (c6x_function_arg): Likewise.
1729 (c6x_call_saved_register_used): Update call accordingly.
1730 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
1731 instead of a mode, tree and named flag.
1732 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
1733 (cris_function_arg_1): Likewise.
1734 * config/csky/csky.c (csky_function_arg): Likewise.
1735 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
1736 * config/fr30/fr30.c (fr30_function_arg): Likewise.
1737 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
1738 (frv_function_arg_1): Likewise.
1739 * config/ft32/ft32.c (ft32_function_arg): Likewise.
1740 * config/gcn/gcn.c (gcn_function_arg): Likewise.
1741 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1742 * config/i386/i386.c (ix86_function_arg): Likewise.
1743 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1744 (ia64_function_arg_1): Likewise.
1745 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1746 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1748 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1749 instead of a mode, tree and named flag.
1750 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1751 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1752 * config/m68k/m68k.c (m68k_function_arg): Likewise.
1753 * config/mcore/mcore.c (mcore_function_arg): Likewise.
1754 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
1755 (microblaze_expand_prologue): Update call accordingly.
1756 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
1757 instead of a mode, tree and named flag.
1758 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
1759 (mmix_function_arg_1): Likewise.
1760 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
1761 * config/moxie/moxie.c (moxie_function_arg): Likewise.
1762 * config/msp430/msp430.c (msp430_function_arg): Likewise.
1763 * config/nds32/nds32.c (nds32_function_arg): Likewise.
1764 * config/nios2/nios2.c (nios2_function_arg): Likewise.
1765 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
1766 (nvptx_function_incoming_arg): Likewise.
1767 * config/or1k/or1k.c (or1k_function_arg): Likewise.
1768 * config/pa/pa.c (pa_function_arg): Likewise.
1769 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1770 * config/pru/pru.c (pru_function_arg): Likewise.
1771 * config/riscv/riscv.c (riscv_function_arg): Likewise.
1772 * config/rl78/rl78.c (rl78_function_arg): Likewise.
1773 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
1774 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
1775 (rs6000_parm_needs_stack): Update call accordingly.
1776 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
1777 instead of a mode, tree and named flag.
1778 * config/s390/s390.c (s390_function_arg): Likewise.
1779 (s390_call_saved_register_used): Update call accordingly.
1780 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
1781 instead of a mode, tree and named flag.
1782 (sh_output_mi_thunk): Update call accordingly.
1783 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
1784 (sparc_function_incoming_arg): Take a function_arg_info instead of
1785 a mode, tree and named flag.
1786 * config/spu/spu.c (spu_function_arg): Likewise.
1787 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1788 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
1789 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
1790 * config/v850/v850.c (v850_function_arg): Likewise.
1791 * config/vax/vax.c (vax_function_arg): Likewise.
1792 * config/visium/visium.c (visium_function_arg): Likewise.
1793 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
1794 (xtensa_function_incoming_arg): Likewise.
1796 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1798 * target.def (setup_incoming_varargs): Take a function_arg_info
1799 instead of a mode and tree.
1800 * doc/tm.texi: Regenerate.
1801 * targhooks.h (default_setup_incoming_varargs): Take a
1802 function_arg_info instead of a mode and tree.
1803 * targhooks.c (default_setup_incoming_varargs): Likewise.
1804 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
1805 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1806 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1807 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
1808 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
1809 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1810 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
1811 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
1813 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1814 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1815 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
1816 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1817 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1818 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1819 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1820 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1821 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1822 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1823 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1824 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1825 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1826 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1827 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1828 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1829 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1830 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1831 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1832 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1833 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1834 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1835 * function.c (assign_parms_setup_varargs): Update call to
1836 targetm.calls.setup_incoming_varargs.
1838 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1840 * target.def (pass_by_reference): Take a function_arg_info instead
1841 of a mode, type and named flag.
1842 * doc/tm.texi: Regenerate.
1843 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1845 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1846 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1847 function_arg_info instead of a mode, type and named flag.
1848 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1849 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1850 mode, type and named flag.
1851 * calls.c (pass_by_reference): Likewise.
1852 (pass_va_arg_by_reference): Update call accordingly.
1853 (initialize_argument_information): Likewise.
1854 (emit_library_call_value_1): Likewise.
1855 * function.c (assign_parm_find_data_types): Likewise.
1856 * var-tracking.c (prepare_call_arguments): Likewise.
1857 * stor-layout.c: Include calls.h.
1858 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1859 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1860 function_arg_info instead of a mode, type and named flag.
1861 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1862 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1863 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1864 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1865 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1866 (c6x_call_saved_register_used): Update call to pass_by_reference.
1867 * config/cris/cris.c (cris_pass_by_reference): Take a
1868 function_arg_info instead of a mode, type and named flag.
1869 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1870 function_arg_info instead of a mode, type and named flag.
1871 (epiphany_arg_partial_bytes): Update call accordingly.
1872 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1873 function_arg_info instead of a mode, type and named flag.
1874 (ft32_arg_partial_bytes): Update call accordingly.
1875 * config/i386/i386.c (ix86_pass_by_reference): Take a
1876 function_arg_info instead of a mode, type and named flag.
1877 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1878 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1879 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1880 (m32r_return_in_memory): Update call accordingly.
1881 * config/mips/mips.c (mips_pass_by_reference): Take a
1882 function_arg_info instead of a mode, type and named flag.
1883 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1884 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1885 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1886 (moxie_arg_partial_bytes): Update call accordingly.
1887 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1888 function_arg_info instead of a mode, type and named flag.
1889 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1890 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1891 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1892 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1893 (riscv_return_in_memory): Update call accordingly.
1894 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1895 function_arg_info instead of a mode, type and named flag.
1896 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1897 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1898 * config/s390/s390.c (s390_pass_by_reference): Take a
1899 function_arg_info instead of a mode, type and named flag.
1900 (s390_call_saved_register_used): Update call accordingly.
1901 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1902 instead of a mode, type and named flag.
1903 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1904 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1905 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1906 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1907 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1908 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1910 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1912 * target.def (arg_partial_bytes): Take a function_arg_info instead
1913 of a mode, type and named flag.
1914 * doc/tm.texi: Regenerate.
1915 * target.h (function_arg_info): Declare.
1916 * calls.h (function_arg_info): New class.
1917 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1918 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1919 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1920 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1921 * calls.c (initialize_argument_information): Update call to
1922 targetm.calls.partial_bytes.
1923 (emit_library_call_value_1): Likewise.
1924 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1925 * function.c (assign_parm_find_entry_rtl): Likewise.
1926 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1927 function_arg_info instead of a mode, type and named flag.
1928 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1929 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1930 (cmse_func_args_or_return_in_stack): Update accordingly.
1931 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1932 function_arg_info instead of a mode, type and named flag.
1933 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1934 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1935 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1936 * config/fr30/fr30.c: Include calls.h.
1937 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1938 type and named flag.
1939 * config/frv/frv.c: Include calls.h.
1940 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1941 type and named flag.
1942 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1943 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1944 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1945 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1946 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1947 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1948 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1950 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1951 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1952 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1953 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1954 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1955 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1956 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1957 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1958 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1959 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1960 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1961 (rs6000_parm_needs_stack): Update call accordingly.
1962 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1963 function_arg_info instead of a mode, type and named flag.
1964 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1965 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1967 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1969 * calls.h (must_pass_va_arg_in_stack): Declare.
1970 * calls.c (must_pass_va_arg_in_stack): New function.
1971 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1972 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1973 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1975 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1977 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1979 * calls.h (pass_va_arg_by_reference): Declare.
1980 * calls.c (pass_va_arg_by_reference): New function.
1981 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1982 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1983 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1984 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1985 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1986 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1987 (mips_gimplify_va_arg_expr): Likewise.
1988 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1989 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1990 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1991 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1992 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1993 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1994 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1995 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1996 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1997 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1998 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2000 2019-08-20 Richard Biener <rguenther@suse.de>
2003 * config/i386/i386-features.c (general_scalar_chain::convert_op):
2004 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
2005 (convert_scalars_to_vector): Add timode_p parameter and use it
2006 to guard TImode-only operation.
2007 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
2008 (pass_stv::execute): Pass down timode_p.
2010 2019-08-20 Lili Cui <lili.cui@intel.com>
2012 * common/config/i386/i386-common.c
2013 (processor_names): Add tigerlake and cooperlake.
2014 (processor_alias_table): Add tigerlake and cooperlake.
2015 * config.gcc: Add -march=tigerlake and cooperlake.
2016 * config/i386/driver-i386.c
2017 (host_detect_local_cpu): Detect tigerlake and cooperlake.
2018 Add "has_avx" to classify processor.
2019 * config/i386/i386-builtins.c (processor_model) :
2020 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
2021 (arch_names_table): Add tigerlake and cooperlake.
2022 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
2023 and PROCESSOR_COOPERLAKE.
2024 * config/i386/i386-c.c
2025 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
2026 * config/i386/i386-options.c
2027 (m_TIGERLAKE) : Define.
2028 (m_COOPERLAKE) : Ditto.
2029 (m_CORE_AVX512): Ditto.
2030 (processor_cost_table): Add cascadelake.
2031 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
2032 * config/i386/i386.h
2033 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
2034 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2035 (PTA_MOVDIRI): Ditto.
2036 (PTA_MOVDIR64B): Ditto.
2037 (PTA_COOPERLAKE) : Ditto.
2038 (PTA_TIGERLAKE) : Ditto.
2039 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
2040 * doc/extend.texi: Add tigerlake and cooperlake.
2041 * doc/invoke.texi: Add tigerlake and cooperlake.
2043 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
2045 * doc/install.texi (Specific, alpha): Remove note to use
2046 binutils 2.11.2 or later.
2048 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2051 * function.c (assign_parm_find_stack_rtl): Use larger alignment
2054 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
2056 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
2057 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
2058 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
2059 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
2060 * config/aarch64/constraints.md (Dt): New constraint
2061 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
2063 2019-08-19 Richard Biener <rguenther@suse.de>
2065 PR tree-optimization/91403
2066 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
2067 cases we can handle with tail-recursion...
2068 (follow_ssa_edge_expr): ... here. Do so.
2070 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
2073 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
2074 implemented for -fsanitize=kernel-address, and merge check logic
2075 with -fsanitize=address.
2077 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
2079 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
2080 for cpu and machine. Factor 64/32b builtins.
2082 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
2084 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
2085 gone, point to sourceforge.net.
2087 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2089 * doc/ux.texi (User Experience Guidelines): Update reference.
2091 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
2093 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
2096 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
2098 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
2099 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
2101 2019-08-16 Martin Sebor <msebor@redhat.com>
2103 * tree.def (TYPE_SIZE): Clarify.
2104 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
2106 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2108 PR tree-optimization/91109
2109 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
2110 * lra.c (lra): Use lra_need_for_scratch_reg_p.
2111 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
2113 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
2115 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
2116 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
2117 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
2118 (uavg<mode>3_ceil): New expander.
2119 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
2120 mode iterator when creating CONST1_RTX.
2121 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
2122 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
2123 mode iterator for const1_operand predicate.
2125 2019-08-16 Richard Biener <rguenther@suse.de>
2127 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
2128 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
2130 (follow_ssa_edge_in_condition_phi_branch): Likewise.
2131 (analyze_evolution_in_loop): Likewise.
2132 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
2133 (follow_ssa_edge_expr): ... here. Refactor code.
2135 2019-08-16 Richard Biener <rguenther@suse.de>
2138 * config/i386/i386-features.c
2139 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
2141 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2144 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
2145 only if subst_name matches curr_attr string.
2147 2019-08-16 Richard Biener <rguenther@suse.de>
2149 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
2150 stmt at gsi_p, instead replace it with a NOP removed later.
2151 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
2152 that became dead because of that.
2154 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
2156 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
2157 for which we can't represent a range.
2158 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
2160 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2161 Set VR_UNDEFINED if type is not supported.
2162 * tree-ssanames.c (get_range_info): Pass type to set_varying.
2163 * tree-vrp.c (value_range_base::check): Assert that a varying has
2165 (value_range_base::equal_p): Early bail for undefines.
2166 (value_range_base::set_varying): Accept a type.
2167 (value_range::set_varying): Same.
2168 (value_range_base::type): VARYING can have a type, while UNDEFINE
2170 (value_range_base::dump): Print type for VARYING nodes.
2171 (value_range_base::set): Add type to VARYING.
2172 (extract_range_from_multiplicative_op): Pass type to set_varying.
2173 (extract_range_from_binary_expr): Same.
2174 (value_range_base::intersect_helper): Same.
2175 (value_range_base::union_helper): Same.
2176 (value_range_base::normalize_symbolics): Same.
2177 (determine_value_range_1): Same.
2178 * tree-vrp.h (class value_range_base): Add type to set_varying.
2179 Add prototype for dump(void).
2180 Add prototype for supports_type_p.
2181 (class value_range): Add type to set_varying.
2182 Add prototype for dump(void).
2183 * vr-values.c (set_value_range_to_truthvalue): Pass type to
2185 (vr_values::get_lattice_entry): Set varying even if propagation
2187 Pass type to set_varying.
2188 (vr_values::get_value_range): Remove vr_const_varying.
2189 Reallocate the lattice if needed.
2190 (vr_values::update_value_range): Pass type to set_varying.
2191 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2192 (vr_values::extract_range_from_binary_expr): Same.
2193 (vr_values::extract_range_from_unary_expr): Same.
2194 (vr_values::extract_range_from_cond_expr): Same.
2195 (vr_values::check_for_binary_op_overflow): Same.
2196 (vr_values::extract_range_basic): Same.
2197 (vr_values::extract_range_from_assignment): Same.
2198 (vr_values::vr_values): Increase size of num_vr_values.
2199 (vr_values::extract_range_from_phi_node): Pass type to
2202 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
2205 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
2206 for costs of hard register moves.
2207 (ix86_register_move_cost): Likewise.
2208 * config/i386/i386.h (processor_costs): Move costs of hard
2209 register moves to hard_register. Add int_load, int_store,
2210 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2211 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
2212 for costs of RTL expressions.
2213 * config/i386/x86-tune-costs.h: Move costs of hard register
2214 moves to hard_register. Duplicate int_load, int_store,
2215 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
2216 sse_load, sse_store for costs of RTL expressions.
2218 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2220 * target.def (setup_incoming_vararg_bounds): Remove.
2221 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
2222 * doc/tm.texi: Regenerate.
2223 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
2224 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
2225 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
2226 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
2228 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2230 MSP430: Fix lines over 80 characters long in
2231 config/msp430/*.{c,h} files
2233 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
2234 specifier in string.
2235 (msp430_select_hwmult_lib): Split line more than 80 characters long.
2236 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
2237 redundant old comment.
2238 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
2239 Split line more than 80 characters long.
2240 * config/msp430/msp430.c (msp430_option_override): Likewise.
2241 (msp430_return_in_memory): Likewise.
2242 (msp430_gimplify_va_arg_expr): Likewise.
2243 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
2244 (msp430_legitimate_constant): Likewise.
2245 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
2246 (msp430_attr): Likewise.
2247 (msp430_data_attr): Likewise.
2248 (msp430_start_function): Likewise.
2249 (gen_prefix): Likewise.
2250 (msp430_init_sections): Likewise.
2251 (msp430_select_section): Likewise.
2252 (msp430_function_section): Likewise.
2253 (msp430_unique_section): Likewise.
2254 (msp430_output_aligned_decl_common): Likewise.
2255 (msp430_do_not_relax_short_jumps): Likewise.
2256 (msp430_init_builtins): Likewise.
2257 (msp430_expand_delay_cycles): Likewise.
2258 (msp430_expand_prologue): Likewise.
2259 (msp430_expand_epilogue): Likewise.
2260 (msp430_expand_helper): Likewise.
2261 (msp430_split_movsi): Likewise.
2262 (msp430_print_operand): Likewise.
2263 (msp430_return_addr_rtx): Likewise.
2264 (msp430x_extendhisi): Likewise.
2265 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
2266 (ASM_SPEC): Likewise.
2267 Remove very obvious comments.
2268 (LIB_SPEC): Split line more than 80 characters long.
2269 (EH_RETURN_HANDLER_RTX): Likewise.
2270 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2272 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2274 MSP430: Fix whitespace errors and incorrect indentation in
2275 config/msp430/*.{c,h} files
2277 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
2278 (msp430_select_hwmult_lib): Likewise.
2279 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
2280 (msp430_extract_mcu_data): Likewise.
2281 (struct t_msp430_mcu_data): Likewise.
2282 * config/msp430/msp430.c (struct machine_function): Remove whitespace
2283 before left square bracket.
2284 (msp430_option_override): Fix indentation.
2285 (msp430_hard_regno_nregs_with_padding): Likewise.
2286 (msp430_initial_elimination_offset): Likewise.
2287 (msp430_special_register_convention_p): Remove whitespace before left
2288 square bracket and after exclamation mark.
2289 (msp430_evaluate_arg): Likewise.
2290 (msp430_callee_copies): Fix indentation.
2291 (msp430_gimplify_va_arg_expr): Likewise.
2292 (msp430_function_arg_advance): Remove whitespace before left square
2294 (reg_ok_for_addr): Likewise.
2295 (msp430_preserve_reg_p): Likewise.
2296 (msp430_compute_frame_info): Likewise.
2297 (msp430_asm_output_addr_const_extra): Add space between function name
2298 and open parenthesis.
2299 (has_section_name): Fix indentation.
2300 (msp430_attr): Remove trailing whitespace.
2301 (msp430_section_attr): Likewise.
2302 (msp430_data_attr): Likewise.
2303 (struct msp430_attribute_table): Fix comment and whitespace.
2304 (msp430_start_function): Remove whitespace before left square bracket.
2305 Add space between function name and open parenthesis.
2306 (msp430_select_section): Remove trailing whitespace.
2307 (msp430_section_type_flags): Remove trailing whitespace.
2308 (msp430_unique_section): Remove space before closing parenthesis.
2309 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
2310 (msp430_builtins): Remove whitespace before left square bracket.
2311 (msp430_init_builtins): Fix indentation.
2312 (msp430_expand_prologue): Remove whitespace before left square bracket.
2313 Remove space before closing parenthesis.
2314 (msp430_expand_epilogue): Remove whitespace before left square bracket.
2315 (msp430_split_movsi): Remove space before closing parenthesis.
2316 (helper_function_name_mappings): Fix indentation.
2317 (msp430_use_f5_series_hwmult): Fix whitespace.
2318 (use_32bit_hwmult): Likewise.
2319 (msp430_no_hwmult): Likewise.
2320 (msp430_output_labelref): Remove whitespace before left square bracket.
2321 (msp430_print_operand_raw): Likewise.
2322 (msp430_print_operand_addr): Likewise.
2323 (msp430_print_operand): Add two spaces after '.' in comment.
2324 Fix trailing whitespace.
2325 (msp430x_extendhisi): Fix indentation.
2326 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
2328 (PC_REGNUM): Likewise.
2329 (STACK_POINTER_REGNUM): Likewise.
2330 (CC_REGNUM): Likewise.
2332 2019-08-15 Richard Biener <rguenther@suse.de>
2335 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
2337 (general_scalar_chain::make_vector_copies): Use it.
2339 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2341 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
2343 2019-08-15 Martin Liska <mliska@suse.cz>
2345 * tree-ssa-dce.c (propagate_necessity): We can't reach now
2346 operators with no arguments.
2347 (eliminate_unnecessary_stmts): Likewise here.
2349 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
2351 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
2352 <case COMPARE>: Revert 2019-08-14 change.
2353 (convertible_comparison_p): Revert 2019-08-14 change. Return false
2354 for (TARGET_64BIT || mode != DImode).
2356 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
2358 * tree-vrp.c (value_range_base::set): Merge in code from
2359 value_range_base::set_and_canonicalize.
2360 Enforce canonicalization at set time.
2361 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
2362 (value_range_base::set_undefined): Inline call to set().
2363 (value_range_base::set_varying): Same.
2364 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
2365 (vrp_val_max): New argument handle_pointers.
2366 (vrp_val_min): Same.
2367 (ranges_from_anti_range): Same.
2368 (extract_range_into_wide_ints): Use tree argument instead of sign
2370 (extract_range_from_multiplicative_op): Take in tree type instead
2371 of precision and sign. Adapt function for canonicalized ranges.
2372 (extract_range_from_binary_expr): Pass type to
2373 extract_range_from_multiplicative_op.
2374 Adapt for canonicalized ranges.
2375 (extract_range_from_unary_expr): Same.
2376 (value_range_base::intersect_helper): Adjust for canonicalized
2378 (value_range_base::union_helper): Same.
2379 (value_range_base::normalize_symbolics): New.
2380 * tree-vrp.h (class value_range_base): Remove
2381 set_and_canonicalize.
2382 New prototype for normalize_symbolics.
2383 (class value_range): Remove set_and_canonicalize.
2384 (vrp_val_min): Adjust prototype.
2385 (vrp_val_max): Same.
2387 (vr_values::extract_range_for_var_from_comparison_expr): Call set
2388 instead of set_and_canonicalize.
2390 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2393 * tree-vect-stmts.c (vectorizable_call): Check that the function
2394 is a BUILT_IN_MD function before passing it to
2395 targetm.vectorize.builtin_md_vectorized_function.
2397 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2399 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
2400 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
2401 (aarch64_select_early_remat_modes): Use it.
2403 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2405 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
2406 16 for SVE predicates even if they are fixed-length.
2408 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2410 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
2411 operand order match the MOV /Z alias.
2413 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2415 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
2416 the vector pattern as an aarch64_svpattern argument. Update the
2417 overloaded caller accordingly.
2418 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
2419 (aarch64_output_sve_vector_inc_dec): Likewise.
2421 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2423 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
2424 multiplication case, try to compute VG * (lowest set bit) directly
2425 rather than always basing the multiplication on VG. Use
2426 expand_mult for the multiplication if we can.
2428 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2430 * config/aarch64/aarch64-protos.h
2431 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
2432 (aarch64_sve_inc_dec_immediate_p): Rename to...
2433 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2434 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
2435 (aarch64_output_sve_scalar_inc_dec): Declare.
2436 (aarch64_output_sve_inc_dec_immediate): Rename to...
2437 (aarch64_output_sve_vector_inc_dec): ...this.
2438 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
2439 (aarch64_output_sve_scalar_inc_dec): New functions.
2440 (aarch64_output_sve_addvl_addpl): Remove the base and offset
2441 arguments. Only handle true ADDVL and ADDPL instructions;
2442 don't emit an INC or DEC.
2443 (aarch64_sve_inc_dec_immediate_p): Rename to...
2444 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
2445 (aarch64_output_sve_inc_dec_immediate): Rename to...
2446 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
2447 aarch64_sve_vector_inc_dec_immediate_p.
2448 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
2449 (aarch64_sve_plus_immediate): New predicates.
2450 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
2451 rather than aarch64_sve_addvl_addpl_immediate.
2452 (aarch64_sve_inc_dec_immediate): Rename to...
2453 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
2454 aarch64_sve_vector_inc_dec_immediate_p.
2455 (aarch64_sve_add_operand): Update accordingly.
2456 * config/aarch64/constraints.md (Uai): New constraint.
2457 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
2458 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
2459 operand into a register if it satisfies aarch64_sve_plus_immediate.
2460 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
2461 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
2462 * config/aarch64/aarch64-sve.md (add<mode>3): Call
2463 aarch64_output_sve_vector_inc_dec instead of
2464 aarch64_output_sve_inc_dec_immediate.
2466 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2468 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
2469 (UNSPEC_REVW): New constants.
2470 (elem_bits): New mode attribute.
2471 (SVE_INT_UNARY): New int iterator.
2472 (optab): Handle UNSPEC_REV[BHW].
2473 (sve_int_op): New int attribute.
2474 (min_elem_bits): Handle VNx16QI and the predicate modes.
2475 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
2476 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
2477 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
2478 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
2479 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
2480 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
2481 unspecs based on the total width of the reversed data.
2482 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
2483 reinterpret followed by a subreg on big-endian targets.
2485 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2486 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2488 * config/aarch64/aarch64-sve.md
2489 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
2490 alternatives in which one of the inputs is in the same register
2493 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2495 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
2496 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
2498 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2500 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
2501 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
2503 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2504 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2506 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
2507 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
2508 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
2510 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2511 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2513 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
2514 Add an alternative that uses reversed shifts.
2516 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2518 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
2521 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2523 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
2524 a commutativity marker.
2526 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2527 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2529 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
2530 (aarch64_prepare_sve_cond_int_fma): Declare.
2531 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
2532 (aarch64_prepare_sve_int_fma): New functions.
2533 (aarch64_prepare_sve_cond_int_fma): Likewise.
2534 * config/aarch64/aarch64-sve.md
2535 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
2536 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
2537 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
2538 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
2539 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
2540 (*madd<mode>): Rename to...
2541 (*fma<mode>4): ...this.
2542 (*msub<mode>): Rename to...
2543 (*fnma<mode>4): ...this.
2545 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2546 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2548 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
2549 Print 2.0 naturally.
2550 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
2551 * config/aarch64/predicates.md
2552 (aarch64_sve_float_negated_arith_immediate): New predicate,
2553 renamed from aarch64_sve_float_arith_with_sub_immediate.
2554 (aarch64_sve_float_arith_with_sub_immediate): Test for both
2555 positive and negative constants.
2556 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
2557 or an aarch64_sve_float_arith_with_sub_immediate.
2558 * config/aarch64/constraints.md (vsN): Use
2559 aarch64_sve_float_negated_arith_immediate.
2560 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
2562 (sve_pred_fp_rhs2_immediate): New int attribute.
2563 * config/aarch64/aarch64-sve.md
2564 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
2565 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
2566 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
2567 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
2568 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
2569 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
2571 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2572 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2574 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
2575 (*aarch64_cond_abd<SVE_F:mode>_3)
2576 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
2578 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2579 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2581 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
2582 (*aarch64_cond_<su>abd<mode>_any): New patterns.
2584 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
2585 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2587 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
2588 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
2589 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2590 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
2592 * optabs.h (create_convert_operand_from): Expand comment.
2593 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
2594 when mapping scalar rtxes to vector operands.
2595 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
2596 ashiftrt and lshiftrt.
2597 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
2598 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
2599 (*cond_<optab><mode>_any_const): New patterns.
2601 2019-08-15 Martin Liska <mliska@suse.cz>
2604 * cgraph.c (cgraph_node::remove): When setting
2605 n->origin = NULL for all nested functions, reset
2608 2019-08-15 Martin Liska <mliska@suse.cz>
2610 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
2613 2019-08-15 Martin Liska <mliska@suse.cz>
2616 * passes.c (order): Remove.
2617 (uid_hash_t): Likewise).
2618 (remove_cgraph_node_from_order): Remove from set
2619 of pointers (cgraph_node *).
2620 (insert_cgraph_node_to_order): New.
2621 (duplicate_cgraph_node_to_order): New.
2622 (do_per_function_toporder): Register all 3 cgraph hooks.
2623 Skip removed_nodes now as we know about all of them.
2625 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
2627 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
2628 <case E_V8QImode>: Use vector_set path for
2629 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2630 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
2631 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2633 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2635 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
2637 2019-08-14 Martin Sebor <msebor@redhat.com>
2639 PR tree-optimization/91294
2640 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
2641 source length as exact.
2643 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2645 * doc/extend.texi: Add "noinit" attribute documentation.
2646 * doc/sourcebuild.texi: Add noinit effective target documentation.
2647 * varasm.c (default_section_type_flags): Add support for "noinit"
2649 (default_elf_select_section): Add support for "noinit" attribute.
2650 * config/msp430/msp430.c (msp430_attribute_table): Remove
2653 2019-08-14 Richard Biener <rguenther@suse.de>
2654 Uroš Bizjak <ubizjak@gmail.com>
2657 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
2659 (scalar_chain::smode): New member.
2660 (scalar_chain::vmode): Likewise.
2661 (dimode_scalar_chain): Rename to...
2662 (general_scalar_chain): ... this.
2663 (general_scalar_chain::general_scalar_chain): Take mode arguments.
2664 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
2665 base with TImode and V1TImode.
2666 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
2667 (general_scalar_chain::vector_const_cost): Adjust for SImode
2669 (general_scalar_chain::compute_convert_gain): Likewise. Add
2670 {S,U}{MIN,MAX} support.
2671 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
2672 (general_scalar_chain::make_vector_copies): Likewise. Handle
2673 non-DImode chains appropriately.
2674 (general_scalar_chain::convert_reg): Likewise.
2675 (general_scalar_chain::convert_op): Likewise.
2676 (general_scalar_chain::convert_insn): Likewise. Add
2677 fatal_insn_not_found if the result is not recognized.
2678 (convertible_comparison_p): Pass in the scalar mode and use that.
2679 (general_scalar_to_vector_candidate_p): Likewise. Rename from
2680 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
2681 (scalar_to_vector_candidate_p): Remove by inlining into single
2683 (general_remove_non_convertible_regs): Rename from
2684 dimode_remove_non_convertible_regs.
2685 (remove_non_convertible_regs): Remove by inlining into single caller.
2686 (convert_scalars_to_vector): Handle SImode and DImode chains
2687 in addition to TImode chains.
2688 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
2689 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
2690 (*<maxmin>di3_doubleword): Likewise.
2692 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2693 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2695 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
2696 (*cond_bic<mode>_any): New patterns.
2698 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2700 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
2701 take the equivalent mask, as well as a bit count.
2702 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
2703 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
2704 (aarch64_sve_pred_and_operand): New predicates.
2705 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
2707 * config/aarch64/aarch64-sve.md
2708 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
2709 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
2711 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2713 * config/aarch64/aarch64-sve.md
2714 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2715 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
2718 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2719 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2721 * config/aarch64/aarch64-sve.md
2722 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
2723 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
2725 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2726 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2728 * config/aarch64/aarch64-sve.md
2729 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
2730 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
2732 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2734 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
2735 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
2738 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2739 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2741 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
2743 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2744 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2746 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2747 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2748 (aarch64_print_operand): Add support for %I.
2749 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2750 Bitcast floating-point constants to the corresponding integer constant.
2751 (aarch64_float_const_representable_p): Handle vectors as well
2753 (aarch64_expand_sve_vcond): Make sure that the operands are valid
2754 for the new vcond_mask_<mode><vpred> expander.
2755 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
2756 test aarch64_float_const_representable_p.
2757 (aarch64_sve_reg_or_dup_imm): New predicate.
2758 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
2759 gen_vcond_mask_<mode><vpred> instead of
2760 gen_aarch64_sve_dup<mode>_const.
2761 (vcond_mask_<mode><vpred>): Turn into a define_expand that
2762 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
2763 for operands 1 and 2 respectively. Force operand 2 into a
2764 register if operand 1 is a register. Fold old define_insn...
2765 (aarch64_sve_dup<mode>_const): ...and this define_insn...
2766 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
2767 floating-point constants that can be moved as integers. Add
2768 alternatives for MOV /M and FMOV /M.
2769 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
2770 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
2771 1 and 2 respectively.
2772 * config/aarch64/constraints.md (Ufc): Handle vectors as well
2774 (vss): New constraint.
2776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2778 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
2779 (aarch64_sve_float_maxmin_operand): New predicates.
2780 * config/aarch64/constraints.md (vsB): New constraint.
2782 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
2783 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
2785 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
2786 Use aarch64_sve_float_maxmin_operand for operand 2.
2787 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
2788 Add alternatives for the constant forms.
2790 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2792 * config/aarch64/constraints.md (vsb): New constraint.
2793 (vsm): Generalize description.
2794 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
2796 (sve_imm_con): Handle smax, smin, umax and umin.
2797 (sve_imm_prefix): New code attribute.
2798 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
2799 (aarch64_sve_vsb_operand): New predicates.
2800 (aarch64_sve_mul_immediate): Rename to...
2801 (aarch64_sve_vsm_immediate): ...this.
2802 (aarch64_sve_mul_operand): Rename to...
2803 (aarch64_sve_vsm_operand): ...this.
2804 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
2805 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
2806 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
2807 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
2808 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
2809 add movprfx support for the immediate alternatives.
2810 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
2812 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
2815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2817 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
2818 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
2819 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
2821 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2823 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2824 (optab, sve_int_op): Handle them.
2825 * config/aarch64/aarch64-sve.md: Expand comment.
2827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2829 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2830 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2831 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2835 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2836 (aarch64_expand_sve_const_pred_trn): New functions.
2837 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2838 use the above functions when the parameter is true.
2839 (aarch64_expand_sve_const_pred): Update call accordingly.
2840 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2842 (@aarch64_sve_<perm_insn><mode>): ...this.
2844 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2846 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2848 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2849 (aarch64_sve_emit_int_cmp): New functions.
2850 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2851 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2852 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2853 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2854 (UNSPEC_PRED_Z): New unspec.
2855 (set_clobber_cc_nzc): Delete.
2856 * config/aarch64/aarch64-sve.md: Add a block comment about
2858 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2859 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2860 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2862 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2863 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2864 check for compatible predicates.
2865 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2866 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2867 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2870 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2872 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2873 * config/aarch64/aarch64-sve.md: Add a section describing it.
2874 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2875 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2876 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2877 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2878 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2879 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2880 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2881 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2882 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2883 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2884 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2885 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2886 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2887 (aarch64_evpc_rev_local): Update accordingly.
2889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2891 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2893 (SVE_BHSI, SVE_SDI): Tweak comment.
2894 (SVE_HSDI): Likewise. Fix definition.
2895 (SVE_SDF): New mode iterator.
2896 (elem_bits): New mode attribute.
2897 (SVE_COND_FCVT): New int iterator.
2898 * config/aarch64/aarch64-sve.md
2899 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2900 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2901 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2902 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2903 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2904 ...these new patterns.
2905 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2906 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2907 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2909 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2910 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2911 ...these new patterns.
2912 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2913 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2914 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2915 ...this new pattern.
2916 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2917 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2918 ...this new pattern.
2919 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2921 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2923 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2924 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2925 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2927 (optab, su): Handle them.
2928 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2929 * config/aarch64/aarch64-sve.md
2930 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2931 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2932 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2933 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2934 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2935 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2936 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2937 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2938 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2940 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2941 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2942 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2943 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2944 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2945 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2946 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2947 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2948 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2949 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2950 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2951 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2952 of UNSPEC_FLOAT_CONVERT.
2953 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2954 aarch64_sve_extend<mode><Vwide>2.
2956 2019-08-14 Richard Biener <rguenther@suse.de>
2959 * config/i386/i386-features.c
2960 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2961 individual instruction gain. Fix reg-reg copy GRP cost. Use
2962 ix86_cost->sse_op for vector instruction costs.
2964 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2966 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2967 (cmp_op): Handle it.
2968 (SVE_COND_FP_CMP): Rename to...
2969 (SVE_COND_FP_CMP_I0): ...this.
2970 (SVE_FP_CMP): Remove.
2971 * config/aarch64/aarch64-sve.md
2972 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2973 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2974 using unspecs to represent the comparison.
2975 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2976 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2978 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2979 (aarch64_unspec_cond_code): Move after integer code. Handle
2981 (aarch64_emit_sve_predicated_cond): Replace with...
2982 (aarch64_emit_sve_fp_cond): ...this new function.
2983 (aarch64_emit_sve_or_conds): Replace with...
2984 (aarch64_emit_sve_or_fp_conds): ...this new function.
2985 (aarch64_emit_sve_inverted_cond): Replace with...
2986 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2987 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2989 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2991 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2992 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2993 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2994 SVE_HSD instead of SVE_SD.
2996 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2997 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2999 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
3001 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
3003 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
3004 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
3005 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
3006 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
3007 (*div<SVE_F:mode>3): Generalize to...
3008 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
3010 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3011 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3013 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
3015 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
3017 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
3019 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
3021 * config/aarch64/aarch64-sve.md: Add a block comment about the
3022 handling of predicated FP operations.
3023 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
3024 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
3025 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3026 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
3027 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
3029 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
3030 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
3032 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
3033 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
3034 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
3035 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
3036 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
3037 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
3038 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3039 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
3040 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
3041 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
3042 strictness operands. Use aarch64_sve_pred_dominates_p to check
3043 whether the predicate on the conditional operation is suitable
3044 for merging. Split patterns into the canonical equal-predicate form.
3045 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
3046 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
3048 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3049 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3051 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
3052 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
3053 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
3055 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
3056 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
3059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3060 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3062 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
3063 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
3064 actually has, rather than relying on REG_EQUAL notes.
3065 Make the insn operand order match the SVE operand order.
3066 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
3067 the SVE operand order.
3069 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3071 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
3072 (aarch64_emit_set_immediate): Likewise.
3073 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
3074 (aarch64_pfalse_reg): Likewise.
3075 (aarch64_convert_sve_data_to_pred): New function.
3076 (aarch64_sve_move_pred_via_while): Take an optional target register
3077 and the required register mode.
3078 (aarch64_expand_sve_const_pred_1): New function.
3079 (aarch64_expand_sve_const_pred): Likewise.
3080 (aarch64_expand_mov_immediate): Build an all-true predicate
3081 if the significant bits of the immediate are all true. Use
3082 aarch64_expand_sve_const_pred for all compile-time predicate constants.
3083 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
3084 before register allocation.
3085 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
3086 a VNx16BI PTRUE when splitting the memory alternative.
3087 (vec_duplicate<mode>): Update accordingly.
3088 (*pred_cmp<cmp_op><mode>): Rename to...
3089 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
3091 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
3093 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
3094 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
3095 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
3096 (UNSPEC_PTEST): New unspec.
3097 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
3098 * config/aarch64/iterators.md (data_bytes): New mode attribute.
3099 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
3100 * config/aarch64/aarch64-sve.md: Add a new section describing the
3101 handling of UNSPEC_PTEST.
3102 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
3103 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
3104 (ptest_ptrue<mode>): Replace with...
3105 (aarch64_ptest<mode>): ...this new pattern.
3106 (cbranch<mode>4): Update after above changes.
3107 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
3109 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
3110 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
3111 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
3113 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
3116 * builtins.c (builtin_with_linkage_p): New function.
3117 * builtins.h (builtin_with_linkage_p): New function.
3118 * symtab.c (write_symbol): Remove redundant assert.
3119 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
3120 Remove FIXME and use builtin_with_linkage_p.
3122 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3125 * tree-core.h (function_decl::function_code): Change type to
3127 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
3128 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
3129 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
3130 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
3132 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
3133 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
3134 (fndecl_built_in_p): Change the type of the "name" argument to
3136 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
3137 after check for DECL_BUILT_IN_CLASS.
3138 * cgraphclones.c (build_function_decl_skip_args): Use
3139 set_decl_built_in_function.
3140 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
3141 * ipa-split.c (split_function): Likewise.
3142 * langhooks.c (add_builtin_function_common): Likewise.
3143 * omp-simd-clone.c (simd_clone_create): Likewise.
3144 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3145 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
3146 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
3148 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
3149 instead of DECL_FUNCTION_CODE.
3150 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
3151 instead of DECL_FUNCTION_CODE.
3152 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3153 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
3154 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
3155 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
3156 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
3157 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
3158 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3159 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
3160 (alpha_gimple_fold_builtin): Likewise.
3161 * config/arc/arc.c (arc_expand_builtin): Likewise.
3162 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
3163 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
3164 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
3165 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
3166 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
3167 * config/frv/frv.c (frv_expand_builtin): Likewise.
3168 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
3169 (gcn_expand_builtin): Likewise.
3170 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
3171 (fold_builtin_cpu): Likewise.
3172 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
3173 * config/i386/i386.c (ix86_fold_builtin): Likewise.
3174 (ix86_gimple_fold_builtin): Likewise.
3175 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
3176 (ia64_expand_builtin): Likewise.
3177 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
3178 * config/mips/mips.c (mips_expand_builtin): Likewise.
3179 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
3180 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3181 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
3182 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
3183 * config/pa/pa.c (pa_expand_builtin): Likewise.
3184 * config/pru/pru.c (pru_expand_builtin): Likewise.
3185 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
3186 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3188 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
3189 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
3190 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
3191 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
3192 (rs6000_builtin_reciprocal): Likewise.
3193 * config/rx/rx.c (rx_expand_builtin): Likewise.
3194 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
3195 * config/s390/s390.c (s390_expand_builtin): Likewise.
3196 * config/sh/sh.c (sh_expand_builtin): Likewise.
3197 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
3198 (sparc_fold_builtin): Likewise.
3199 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
3200 * config/spu/spu.c (spu_expand_builtin): Likewise.
3201 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
3202 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
3203 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
3204 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
3205 (xtensa_expand_builtin): Likewise.
3207 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3210 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
3211 before the DECL_FUNCTION_CODE.
3212 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
3213 to check for a BUILT_IN_ALLOCA call.
3214 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
3215 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
3216 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
3217 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3218 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
3219 for BUILT_IN_NORMAL functions.
3220 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
3221 test for BUILT_IN_TM_ABORT.
3222 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
3223 to check for a BUILT_IN_STACK_RESTORE call.
3224 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
3225 * tree-ssa-threadedge.c
3226 (record_temporary_equivalences_from_stmts_at_dest): Check for a
3227 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
3228 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
3229 test for a BUILT_IN_NORMAL call instead of a negative test for
3230 an internal function call.
3232 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3234 * tree.h (build_vector_a_then_b): Declare.
3235 * tree.c (build_vector_a_then_b): New function.
3236 * fold-const-call.c (fold_while_ult): Likewise.
3237 (fold_const_call): Use it to handle IFN_WHILE_ULT.
3238 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
3239 (aarch64_svpattern): New enum.
3240 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
3241 constants through aarch64_expand_mov_immediate.
3242 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
3243 than general_operand as the predicate for operand 1.
3244 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
3245 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
3247 (simd_immediate_info::simd_immediate_info): New overload that
3248 takes a scalar_int_mode and an svpattern.
3249 (simd_immediate_info::u): Add a "pattern" field.
3250 (svpattern_token): New function.
3251 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
3252 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
3253 (aarch64_sve_move_pred_via_while): New functions.
3254 (aarch64_expand_mov_immediate): Try using
3255 aarch64_sve_move_pred_via_while for predicates that contain N ones
3256 followed by M zeros but that do not correspond to a VLnnn pattern.
3257 (aarch64_sve_pred_valid_immediate): New function.
3258 (aarch64_simd_valid_immediate): Use it instead of dealing directly
3259 with PTRUE and PFALSE.
3260 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
3263 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
3265 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
3267 (darwin_override_options): Likewise.
3268 * config/darwin.h: Likewise.
3269 * config/darwin.opt: Likewise.
3270 * config/i386/i386.c (output_pic_addr_const): Likewise.
3271 * config/rs6000/darwin.h: Likewise.
3272 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
3273 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
3274 ... this TARGET_MACHO_SYMBOL_STUBS.
3275 (FUNCTION_PROFILER):Likewise.
3276 * config/i386/i386.h: Likewise.
3278 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3280 * config/i386/i386-expand.c (ix86_expand_vector_extract)
3281 <case E_V2SImode>: Use vec_extr path for
3282 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3283 <case E_V8QImode>: Ditto.
3284 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
3285 Use SWI48 mode iterator. Use %k to output operand 0.
3286 (*mmx_pextrw): New insn pattern.
3287 (*mmx_pextrb): Ditto.
3288 (*mmx_pextrb_zext): Ditto.
3290 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
3292 * target.def (libc_has_function, libc_has_fast_function): Improve
3293 documentation strings.
3294 * doc/tm.texi: Regenerate.
3296 2019-08-13 Caroline Tice <cmtice@google.com>
3299 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
3300 vtv_end.o or vtv_end_preinit.o files if !static.
3302 2019-08-13 Olivier Hainque <hainque@adacore.com>
3304 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
3306 2019-08-13 Olivier Hainque <hainque@adacore.com>
3308 * rtlanal.c (tablejump_casesi_pattern): New function, to
3309 determine if a tablejump insn is a casesi dispatcher. Extracted
3310 from patch_jump_insn.
3311 * rtl.h (tablejump_casesi_pattern): Declare.
3312 * cfgrtl.c (patch_jump_insn): Use it.
3313 * dwarf2cfi.c (create_trace_edges): Use it.
3315 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3318 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
3319 operand is larger than a long int.
3321 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3323 * machmode.h (opt_mode::else_mode): New function.
3324 (opt_mode::else_blk): Use it.
3325 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
3326 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
3327 (aarch64_gen_stepped_int_parallel): Likewise.
3328 (aarch64_stepped_int_parallel_p): Likewise.
3329 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3331 * config/aarch64/aarch64.c
3332 (aarch64_expand_sve_widened_duplicate): Delete.
3333 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
3334 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
3335 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
3336 argument. Use early returns in the !CONST_INT_P handling.
3337 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
3338 than handling some inline.
3339 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
3341 (aarch64_simd_container_mode): ...here.
3342 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
3343 (aarch64_sve_ld1rq_operand_p): New functions.
3344 * config/aarch64/predicates.md (descending_int_parallel)
3345 (aarch64_sve_ld1rq_operand): New predicates.
3346 * config/aarch64/constraints.md (UtQ): New constraint.
3347 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
3348 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
3349 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
3350 (@aarch64_sve_reinterpret<mode>): New expander.
3351 (*aarch64_sve_reinterpret<mode>): New pattern.
3352 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
3353 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
3354 (*sve_ld1rq<Vesize>): Replace with...
3355 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
3357 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
3359 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
3362 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3364 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
3365 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
3366 (msp430_check_path_for_devices): New.
3367 (parse_devices_csv_1): New.
3368 (parse_devices_csv): New.
3369 (msp430_extract_mcu_data): Try to find devices.csv and search for the
3370 MCU data in devices.csv before using the hard-coded data.
3371 Warn if devices.csv isn't found and the MCU wasn't found in the
3372 hard-coded data either.
3373 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
3374 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
3375 Search for devices.csv on -I and -L paths.
3376 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
3377 msp430_set_driver_var.
3378 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
3380 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
3381 searched for devices.csv.
3382 (mwarn-devices-csv): Document option.
3384 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3386 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
3387 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
3388 Use a single Dn alternative instead of separate Dz and Dm
3389 alternatives. Use aarch64_output_sve_move_immediate.
3390 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
3392 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
3394 (aarch64_output_sve_mov_immediate): Handle predicate modes.
3395 (aarch64_output_ptrue): Delete.
3397 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3399 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
3401 (simd_immediate_info::value, simd_immediate_info::step)
3402 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
3404 (simd_immediate_info::u): ...this new union.
3405 (simd_immediate_info::simd_immediate_info): Update accordingly.
3406 (aarch64_output_simd_mov_immediate): Likewise.
3407 (aarch64_output_sve_mov_immediate): Likewise.
3409 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3411 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
3413 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
3414 (msp430_select_cpu): New spec function.
3415 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
3417 * config/msp430/msp430-devices.c: New file.
3418 * config/msp430/msp430-devices.h: New file.
3419 * config/msp430/msp430.c: Remove msp430_mcu_data.
3420 (msp430_option_override): Use msp430_extract_mcu_data to extract
3422 (msp430_use_f5_series_hwmult): Likewise.
3423 (use_32bit_hwmult): Likewise.
3424 (msp430_no_hwmult): Likewise.
3425 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
3427 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
3429 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
3430 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
3431 Remove hard-coded MCU multilib data.
3433 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3435 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
3436 based on the mode instead of testing properties of it.
3438 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3440 * doc/md.texi: Document the x and y constraints for AArch64.
3441 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
3442 (FP_LO8_REGS): New reg_class.
3443 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
3444 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
3445 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
3446 * config/aarch64/predicates.md (aarch64_simd_register): Use
3447 FP_REGNUM_P instead of checking the classes manually.
3448 * config/aarch64/constraints.md (y): New constraint.
3450 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
3452 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
3453 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
3454 * config/aarch64/aarch64-simd.md
3455 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
3456 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
3457 from the asm template.
3458 * config/aarch64/aarch64-sve.md
3459 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
3460 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
3461 from the asm template.
3462 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
3463 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
3464 from the asm template.
3465 * config/aarch64/aarch64-simd-builtins.def: Update comment.
3467 2019-08-13 Martin Liska <mliska@suse.cz>
3469 * value-prof.c (gimple_ic_transform): Add new line.
3470 Print details with MSG_NOTE.
3472 2019-08-13 Martin Liska <mliska@suse.cz>
3474 * doc/invoke.texi: Document automatic detection of jobserver.
3475 * lto-wrapper.c (run_gcc): Detect jobserver always.
3477 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
3479 * config/i386/i386-expand.c (ix86_expand_vector_set)
3480 <case E_V2SImode>: Use vec_merge path for
3481 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
3482 <case E_V8QImode>: Ditto.
3483 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
3484 (*mmx_pinsrb): Ditto.
3486 2019-08-12 Jakub Jelinek <jakub@redhat.com>
3490 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
3491 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
3492 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
3493 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
3494 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
3496 2019-08-12 Richard Biener <rguenther@suse.de>
3499 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
3502 2019-08-12 Richard Biener <rguenther@suse.de>
3505 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
3506 lang_mask option, always use CL_DRIVER.
3507 (get_options_from_collect_gcc_options): Adjust.
3508 (find_and_merge_options): Likewise.
3509 (run_gcc): Likewise.
3511 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3513 * ipa-predicate.c (add_condition): Restore inverted test.
3515 2019-08-10 Jakub Jelinek <jakub@redhat.com>
3517 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
3518 (enum omp_clause_device_type_kind): New enum.
3519 (struct tree_omp_clause): Add subcode.device_type_kind.
3520 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
3521 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3522 for device_type clause.
3523 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
3524 * tree-pretty-print.c (dump_omp_clause): Likewise.
3527 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
3530 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
3532 * reload1.c (finish_spills): Do not check ira_conflicts_p when
3533 handling spilled pseudos.
3535 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3538 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
3539 to preserve the contents of the original insns.
3541 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
3543 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
3544 (addsi3_compare_op2): Likewise.
3546 2019-08-09 Martin Liska <mliska@suse.cz>
3548 * alias.c (alias_ptr_types_compatible_p): Strengten
3549 type comparison in LTO mode.
3551 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
3554 * tree-tailcall.c (find_tail_calls): Reject calls that might
3555 read from an escaped RESULT_DECL.
3557 2019-08-09 Martin Liska <mliska@suse.cz>
3559 * doc/invoke.texi: Document the option value.
3560 * lto-wrapper.c (run_gcc): Set auto_parallel
3561 only with -flto=auto.
3563 2019-08-09 Martin Liska <mliska@suse.cz>
3565 * opts.c (common_handle_option): Error for an invalid argument
3568 2019-08-09 Martin Liska <mliska@suse.cz>
3570 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
3571 use dump_printf to report optimization.
3572 (sem_variable::merge): Likwise.
3573 (sem_item_optimizer::merge_classes): Use dump_printf to report
3576 2019-08-09 Martin Liska <mliska@suse.cz>
3578 * value-prof.c (gimple_divmod_fixed_value_transform):
3579 Use dump_printf_loc.
3580 (gimple_mod_pow2_value_transform): Likewise.
3581 (gimple_mod_subtract_transform): Likewise.
3582 (init_node_map): Likewise.
3583 (gimple_ic_transform): Likewise.
3584 (gimple_stringops_transform): Likewise.
3586 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3588 * doc/extend.texi: Add const qualifier to ld intrinsics.
3590 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3592 * config/rs6000/dfp.md (D64_D128): Rename to ...
3593 (DDTD): ... this, throughout.
3594 (dfp_suffix): Rename to ...
3595 (q): ... this, throughout.
3597 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
3599 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
3600 (dfp_suffix): Ditto.
3601 (adddd3, addtd3): Merge to ...
3602 (add<mode>3 for D64_D128): ... this.
3603 (subdd3, subtd3): Merge to ...
3604 (sub<mode>3 for D64_D128): ... this.
3605 (muldd3, multd3): Merge to ...
3606 (mul<mode>3 for D64_D128): ... this.
3607 (divdd3, divtd3): Merge to ...
3608 (div<mode>3 for D64_D128): ... this.
3609 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
3610 (*cmp<mode>_internal1 for D64_D128): ... this.
3611 (ftruncdd2, ftrunctd2): Merge to ...
3612 (ftrunc<mode>2 for D64_D128): ... this.
3613 (fixdddi2, fixtddi2): Merge to ...
3614 (fix<mode>di2 for D64_D128): ... this.
3616 2019-08-08 Jim Wilson <jimw@sifive.com>
3619 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
3620 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
3621 Pass into recursive call.
3622 (riscv_flatten_aggregate_argument): New arg. Pass to
3623 riscv_flatten_aggregate_field.
3624 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
3625 riscv_flatten_aggregate_argument twice, with false and true as last
3626 arg. Process result twice. Compare results and warn if different.
3627 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
3629 2019-08-08 Martin Liska <mliska@suse.cz>
3632 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
3633 * lto-wrapper.c (jobserver_active_p): Likewise.
3635 2019-08-08 Martin Liska <mliska@suse.cz>
3637 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
3638 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
3639 (create_version_clone_with_body): Likewise.
3641 2019-08-08 Jakub Jelinek <jakub@redhat.com>
3643 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
3644 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
3645 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
3646 GOVD_EXPLICIT flags.
3647 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
3648 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
3649 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
3650 call install_var_field with mask 11 instead of 3.
3651 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
3652 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
3654 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3656 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
3657 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
3659 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3661 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
3662 MOVPRFX alternatives. Make the GPR alternatives more expensive
3665 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3667 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
3668 Disparage the GPR alternative relative to the FPR one.
3669 Fix handling of 8-bit and 16-bit FPR values.
3671 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3673 * config/aarch64/iterators.md (BITWISEV): Delete.
3674 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
3675 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
3676 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3677 UNSPEC_FMINNMV, UNSPEC_FMINV.
3678 (bit_reduc_op): Delete.
3679 (sve_int_op): New int attribute.
3680 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
3681 UNSPEC_FMINNMV, UNSPEC_FMINV.
3682 * config/aarch64/aarch64-sve.md
3683 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3684 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
3685 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
3686 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
3687 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
3688 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
3690 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
3691 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
3692 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
3693 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
3694 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
3697 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3699 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
3700 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
3701 (fms<mode>4, *fms<mode>4): Replace with...
3702 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3703 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
3704 Use unspecs instead of rtx codes.
3705 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
3706 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
3708 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3710 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
3712 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
3713 * config/aarch64/aarch64-sve.md
3714 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
3715 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
3716 use a single unspec for the rhs.
3717 (*<su><maxmin><mode>3): Delete.
3718 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
3720 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3722 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
3723 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
3724 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
3725 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
3726 (optab, sve_fp_op): Handle them.
3727 (SVE_FP_UNARY): Delete.
3728 (optab): Remove sqrt entry.
3729 (sve_fp_op): Remove neg, abs and sqrt entries.
3730 (SVE_COND_FP_UNARY): New int iterator.
3731 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
3732 (*<frint_pattern><mode>2): Delete.
3733 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3734 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3735 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3736 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3738 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3740 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
3742 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3744 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3745 (UNSPEC_COND_FADD): ...this.
3746 (UNSPEC_COND_SUB): Rename to...
3747 (UNSPEC_COND_FSUB): ...this.
3748 (UNSPEC_COND_MUL): Rename to...
3749 (UNSPEC_COND_FMUL): ...this.
3750 (UNSPEC_COND_DIV): Rename to...
3751 (UNSPEC_COND_FDIV): ...this.
3752 (UNSPEC_COND_MAX): Rename to...
3753 (UNSPEC_COND_FMAXNM): ...this.
3754 (UNSPEC_COND_MIN): Rename to...
3755 (UNSPEC_COND_FMINNM): ...this.
3756 (UNSPEC_COND_LT): Rename to...
3757 (UNSPEC_COND_FCMLT): ...this.
3758 (UNSPEC_COND_LE): Rename to...
3759 (UNSPEC_COND_FCMLE): ...this.
3760 (UNSPEC_COND_EQ): Rename to...
3761 (UNSPEC_COND_FCMEQ): ...this.
3762 (UNSPEC_COND_NE): Rename to...
3763 (UNSPEC_COND_FCMNE): ...this.
3764 (UNSPEC_COND_GE): Rename to...
3765 (UNSPEC_COND_FCMGE): ...this.
3766 (UNSPEC_COND_GT): Rename to...
3767 (UNSPEC_COND_FCMGT): ...this.
3768 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
3769 (sve_fp_op_rev): Update accordingly.
3770 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
3772 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3774 * config/aarch64/aarch64-sve.md: Reorganize contents and add
3776 * config/aarch64/check-sve-md.awk: New file.
3777 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
3778 (insn-conditions.md): Depend on it.
3780 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
3783 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
3784 (*negsi2_cmpz_zext): Ditto.
3786 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3788 * config/aarch64/iterators.md (commutative): Remove.
3790 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
3793 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
3794 processing COLLECT_GCC_OPTIONS.
3795 (run_gcc): Likewise.
3797 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3799 PR tree-optimization/91109
3800 * lra-remat.c (update_scratch_ops): Remove assignment of the
3803 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3805 * data-streamer.h (streamer_write_poly_uint64): Declare.
3806 (streamer_read_poly_uint64): Likewise.
3807 * data-streamer-in.c (streamer_read_poly_uint64): New function.
3808 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
3809 * ipa-predicate.h (condition::size): Turn into a poly_int64.
3810 (add_condition): Take a poly_int64 size.
3811 * ipa-predicate.c (add_condition): Likewise.
3812 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
3813 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
3814 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
3815 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
3816 condition::size as a poly_int64.
3817 (unmodified_parm_1): Take a poly_int64 size pointer.
3818 (unmodified_parm): Likewise.
3819 (unmodified_parm_or_parm_agg_item): Likewise.
3820 (set_cond_stmt_execution_predicate): Update accordingly.
3821 (set_switch_stmt_execution_predicate): Likewise.
3822 (will_be_nonconstant_expr_predicate): Likewise.
3823 (will_be_nonconstant_predicate): Likewise.
3824 (inline_read_section): Stream condition::size as a poly_int.
3825 (ipa_fn_summary_write): Likewise.
3827 2019-08-07 Martin Liska <mliska@suse.cz>
3829 * fold-const.c (twoval_comparison_p): Replace int
3830 with bool as a return type.
3831 (simple_operand_p): Likewise.
3832 (operand_equal_p): Replace int with bool as a return type.
3833 * fold-const.h (operand_equal_p): Likewise.
3835 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3837 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3838 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3839 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3840 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3841 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3842 * tree-pretty-print.c (dump_omp_clause): Likewise.
3843 * tree-nested.c (convert_nonlocal_omp_clauses,
3844 convert_local_omp_clauses): Likewise.
3845 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3847 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3848 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3849 clause with array or reference to array types, no matter what type
3850 except for reference it has.
3852 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3854 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3856 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3858 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3859 (arch_canonicalize): Support rv32g and rv64g and fix error
3862 2019-08-06 Martin Liska <mliska@suse.cz>
3864 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3865 and DECL_IS_OPERATOR_DELETE_P.
3867 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3869 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3870 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3871 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3872 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3873 (gimplify_omp_for): Don't do C++ random access iterator clause
3874 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3875 don't predetermine the artificial iterator in case of C++ random
3876 access iterators as lastprivate, but private. For OMP_LOOP, force
3877 bind expr around simd body and force for_pre_body before the
3878 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3879 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3880 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3881 diff var of C++ random access iterators. Handle
3882 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3883 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3884 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3885 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3886 * omp-low.c (lower_rec_input_clauses): For
3887 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3888 variables instead of default constructing them.
3889 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3890 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3891 is_taskloop_ctx check from the assert to the guarding condition.
3893 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3895 * config/riscv/multilib-generator: (canonical_order): New.
3896 (arch_canonicalize): Dito.
3897 Apply arch_canonicalize for alts.
3899 2019-08-05 Martin Sebor <msebor@redhat.com>
3901 * doc/extend.texi (Common Variable Attributes): Document alias
3904 2019-08-05 Marek Polacek <polacek@redhat.com>
3906 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3907 * doc/invoke.texi: Document -Wcomma-subscript.
3909 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3911 * tree-core.h (tree_function_decl): Make function_code an
3912 independent field. Group the remaining bitfields into bytes
3913 and move decl_type so that it contines to be at a byte boundary.
3914 Leave 12 bits for future expansion.
3916 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3918 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3919 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3920 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3923 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3925 * gimple.h (gimple_move_vops): Declare.
3926 * gimple.c (gimple_move_vops): New function
3927 * gimple-fold.c (replace_call_with_call_and_fold)
3928 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3929 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3930 (gimple_fold_call): Use it.
3931 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3932 * tree-call-cdce.c (use_internal_fn): Likewise.
3933 * tree-if-conv.c (predicate_load_or_store): Likewise.
3934 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3935 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3936 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3937 (update_call_from_tree): Likewise.
3938 * tree-vect-stmts.c (vectorizable_load): Likewise.
3939 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3941 2019-08-05 Martin Liska <mliska@suse.cz>
3944 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3946 (eliminate_unnecessary_stmts): Likewise.
3948 2019-08-05 Richard Biener <rguenther@suse.de>
3951 * fold-const.c (get_array_ctor_element_at_index): Create
3952 offset_ints according to the sign of the index type and treat
3953 that as signed if it is obviously so.
3955 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3958 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3959 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3960 _mm256_storeu2_m128i): New function.
3962 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3964 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3965 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3967 2019-08-05 Alan Modra <amodra@gmail.com>
3970 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3971 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3973 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3975 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3976 bug that was fixed in Tcl 8.6.1.
3978 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3980 * config/rs6000/future.md: New file.
3981 * config/rs6000/rs6000.md: Include future.md.
3982 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3984 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3986 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3987 check to use targetm.slow_unaligned_access instead.
3989 * function.c (assign_param_data_one): Remove unused data members.
3991 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3993 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3994 build_distinct_type_copy.
3995 (simd_clone_adjust_argument_types): Ditto.
3996 (simd_clone_adjust): Call build_distinct_type_copy here.
3997 (expand_simd_clones): Ditto.
3999 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4002 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
4004 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
4006 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
4007 from 'const void *'.
4008 (sort_locs_in_loop_postorder_cmp): Likewise.
4010 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
4012 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
4013 (hot-bb-count-ws-permille): Likewise.
4014 (hot-bb-frequency-fraction): Likewise.
4015 (unlikely-bb-count-fraction): Likewise.
4016 * params.def (hot-bb-count-fraction): Rework description.
4017 (hot-bb-count-ws-permille): Likewise.
4018 (hot-bb-frequency-fraction): Likewise.
4019 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
4020 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
4022 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
4025 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
4028 2019-08-02 Richard Biener <rguenther@suse.de>
4030 * vec.h (vec::sort): Add gcc_qsort_r support.
4031 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
4032 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
4033 to gcc_qsort_r style callback.
4034 (sort_locs_in_loop_postorder_cmp): Likewise.
4035 (analyze_memory_references): Use gcc_sort_r interfaces.
4036 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
4038 2019-08-02 Martin Liska <mliska@suse.cz>
4041 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
4042 to detect working job server.
4043 (driver::detect_jobserver): Test whether jobserver
4044 is active from GCC driver. That will prevent situation where
4045 GCC is invoked from a LD plugin and the linker already uses
4046 file descriptors suggested by make. That leads to a wrong
4048 * gcc.h (driver): Add detect_jobserver.
4049 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
4050 not scanning for --jobserver-auth prefix.
4052 2019-08-02 Jakub Jelinek <jakub@redhat.com>
4054 PR tree-optimization/91201
4055 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
4056 V16QImode extraction without sse4.1 try to use V4SImode lowpart
4059 2019-08-01 Martin Sebor <msebor@redhat.com>
4062 * tree.c (type_initializer_zero_p): Define.
4063 * tree.h (type_initializer_zero_p): New function.
4065 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4067 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
4069 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
4071 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
4072 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
4073 * predict.c (maybe_hot_count_p): Likewise.
4074 (maybe_hot_bb_p): Tweak comment.
4075 (maybe_hot_edge_p): Likewise.
4076 (probably_never_executed): Likewise. Minor tweak.
4077 (probably_never_executed_bb_p): Likewise.
4078 (unlikely_executed_edge_p): Likewise.
4079 (probably_never_executed_edge_p): Likewise.
4080 (optimize_function_for_size_p): Likewise.
4081 (optimize_function_for_speed_p): Likewise.
4082 (function_optimization_type): Likewise.
4083 (optimize_bb_for_size_p): Likewise.
4084 (optimize_bb_for_speed_p): Likewise.
4085 (bb_optimization_type): Likewise.
4086 (optimize_edge_for_size_p): Likewise.
4087 (optimize_edge_for_speed_p): Likewise.
4088 (optimize_insn_for_size_p): Likewise.
4089 (optimize_insn_for_speed_p): Likewise.
4090 (optimize_loop_for_size_p): Likewise.
4091 (optimize_loop_for_speed_p): Likewise.
4092 (optimize_loop_nest_for_speed_p): Likewise.
4093 (optimize_loop_nest_for_size_p): Likewise.
4094 (predictable_edge_p): Likewise.
4095 (handle_missing_profiles): Minor tweak.
4097 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
4099 * config/rs6000/predicates.md (pcrel_external_address): Update
4102 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4105 * config/i386/mmx.md (usadv8qi): New expander.
4107 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
4110 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
4111 with reserved names that are in a system header.
4113 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
4115 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
4116 (*vec_extractv2si_0_zext_sse4): New insn pattern.
4117 (*vec_extractv2si_0_zext): Ditto.
4118 (*vec_extractv2si_1): Add (rm,x) alternative.
4119 (*vec_extractv2si_1_zext): New insn pattern.
4120 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
4123 2019-08-01 Richard Biener <rguenther@suse.de>
4125 * domwalk.c (bb_postorder): Remove static variable.
4126 (cmp_bb_postorder): Adjust.
4127 (sort_bbs_postorder): Adjust and use gcc_sort_r.
4128 (dom_walker::walk): Adjust.
4130 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
4132 * sort.cc (sort_r_ctx): New struct.
4133 (reorder23): Make templated on context type.
4135 (cmp1): Ditto. Adjust signature.
4138 [CHECKING_P] (cmp2to3): New static function. Use it...
4139 (gcc_qsort) [CHECKING_P]: ...here.
4140 (gcc_sort_r): New function.
4141 * system.h (sort_r_cmp_fn): New function typedef.
4142 (qsort_chk): Adjust signature.
4143 (gcc_sort_r): Declare.
4144 * vec.c (qsort_chk_error): Adjust.
4145 (qsort_chk): Adjust.
4147 2019-08-01 Richard Biener <rguenther@suse.de>
4149 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
4150 (compute_antic): Localize it here.
4152 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
4154 * common/config/riscv/riscv-common.c: Check -march string ends
4157 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
4159 * ipa-devirt.c (type_warning_cmp): Make static.
4160 (decl_warning_cmp): Ditto.
4162 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
4165 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
4166 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4167 use of deleted rs6000_dejagnu_cpu_index variable.
4168 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
4169 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4170 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
4171 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
4172 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
4173 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
4175 2019-07-31 Richard Biener <rguenther@suse.de>
4177 PR tree-optimization/91280
4178 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4179 Decompose MEM_REF manually for offset handling.
4181 2019-07-31 Richard Biener <rguenther@suse.de>
4183 PR tree-optimization/91293
4184 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
4187 2019-07-31 Matt Thomas <matt@3am-software.com>
4188 Nick Hudson <nick@nthcliff.demon.co.uk>
4189 Matthew Green <mrg@eterna.com.au>
4190 Maya Rashish <coypu@sdf.org>
4192 * config.gcc (hppa*-*-netbsd*): New target.
4193 * config/pa/pa-netbsd.h: New file.
4194 * config/pa/pa32-netbsd.h: New file.
4196 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4198 PR tree-optimization/91201
4199 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
4201 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
4203 * config/gcn/gcn-valu.md
4204 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
4205 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
4206 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
4207 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
4208 struct ilist. Add nops for delayeduse insns.
4209 * config/gcn/gcn.md (delayeduse): New attribute.
4210 (*movbi): Remove s_waitcnt from stores.
4211 (*mov<mode>_insn): Likewise.
4212 (*movti_insn): Likewise. Add delayeduse attribute.
4213 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
4214 (atomic_store<mode>): Remove or adjust s_waitcnt.
4216 2019-07-31 Richard Biener <rguenther@suse.de>
4218 * vr-values.h (vr_values::swap_vr_value): New.
4219 (vr_values::free_value_range): likewise.
4220 * vr-values.c (vr_values::swap_vr_value): Implement.
4221 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
4222 Do not return a range or take a var.
4223 (evrp_range_analyzer::stack): Change back to recording a non-const
4225 * gimple-ssa-evrp-analyze.c
4226 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
4228 (evrp_range_analyzer::pop_to_marker): Adjust.
4229 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
4230 (evrp_range_analyzer::pop_value_range): Likewise. Free the
4231 no longer needed value-range.
4233 2019-07-31 Martin Liska <mliska@suse.cz>
4235 * tree-ssa-dce.c (propagate_necessity): Delete operator can
4236 have size and (or) alignment as 2nd and later arguments.
4237 Mark all of them as necessary.
4239 2019-07-31 Richard Biener <rguenther@suse.de>
4241 PR tree-optimization/91178
4242 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4245 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4247 PR tree-optimization/91201
4248 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
4249 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
4251 (reduc_plus_scal_<mode>): Improve formatting by introducing
4254 2019-07-31 Sudakshina Das <sudi.das@arm.com>
4256 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
4257 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
4258 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
4259 (aarch64_init_tme_builtins): New.
4260 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
4261 (aarch64_expand_builtin_tme): New.
4262 (aarch64_expand_builtin): Handle TME builtins.
4263 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4264 __ARM_FEATURE_TME when enabled.
4265 * config/aarch64/aarch64-option-extensions.def: Add "tme".
4266 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
4268 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
4269 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
4271 (tstart, ttest, tcommit, tcancel): New instructions.
4272 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
4273 (__tcancel, __ttest): New.
4274 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
4275 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
4276 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
4277 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
4278 * config/arm/types.md: Add new tme type attr.
4279 * doc/invoke.texi: Document "tme".
4281 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
4283 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
4284 warn_unused_result attribute.
4285 (cmse_check_address_range): Add warn_unused_result attribute.
4287 2019-07-31 Richard Biener <rguenther@suse.de>
4289 PR tree-optimization/91257
4290 * tree-vrp.c (union_ranges): Unify equality and less tests
4291 by using compare_values. Re-order cheap tests first.
4293 2019-07-31 Jakub Jelinek <jakub@redhat.com>
4296 * gimplify.c (gimplify_omp_for): If for class iterator on
4297 distribute parallel for there is no data sharing clause
4298 on inner_for_stmt, look for private clause on combined
4299 parallel too and if found, move it to inner_for_stmt.
4301 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
4303 * lra-int.h (lra_operand_data): Remove early_clobber field.
4304 (lra_insn_reg): Likewise.
4305 * lra.c (debug_operand_data): Update accordingly.
4306 (setup_operand_alternative): Likewise.
4307 (new_insn_reg): Likewise. Remove early_clobber parameter.
4308 (collect_non_operand_hard_regs): Update call accordingly.
4309 Don't assign to lra_insn_reg::early_clobber.
4310 (add_regs_to_insn_regno_info): Remove early_clobber parameter
4311 and update calls to new_insn_reg.
4312 (lra_update_insn_regno_info): Update calls accordingly.
4313 * lra-constraints.c (update_and_check_small_class_inputs): Take the
4314 alternative number as a parameter and test whether the operand
4315 is earlyclobbered in that particular alternative.
4316 (process_alt_operands): Update call accordingly. Use per-alternative
4317 checks for earyclobber here too.
4318 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
4319 against zero for IRA_UNKNOWN_ALT.
4321 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4323 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
4325 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
4327 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
4328 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4330 2019-07-30 Martin Liska <mliska@suse.cz>
4333 * cgraph.c (cgraph_edge::make_direct): Use
4334 edge->indirect_unknown_callee as edge->resolve_speculation can
4335 deallocate edge which is this pointer.
4337 2019-07-30 Richard Biener <rguenther@suse.de>
4339 PR tree-optimization/91257
4340 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
4342 2019-07-30 Martin Liska <mliska@suse.cz>
4344 * doc/invoke.texi: Document new behavior.
4345 * lto-wrapper.c (cpuset_popcount): New function
4346 is a copy of libgomp/config/linux/proc.c.
4347 (init_num_threads): Likewise.
4348 (run_gcc): Automatically detect core count for -flto.
4349 (jobserver_active_p): New function.
4351 2019-07-30 Richard Biener <rguenther@suse.de>
4353 PR tree-optimization/91257
4354 * bitmap.h (bitmap_ior_into_and_free): Declare.
4355 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
4356 whether to add the unliked element to the freelist.
4357 (bitmap_list_insert_element_after): Add defaulted param for
4358 an already allocated element.
4359 (bitmap_ior_into_and_free): New function.
4360 * tree-ssa-structalias.c (condense_visit): Reduce the
4361 ponts-to and edge bitmaps of the SCC members in a
4362 logarithmic fashion rather than all to one.
4364 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
4366 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
4367 parameter. When nonnull, make sure that the addition or subtraction
4368 has the same condition.
4369 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
4370 for CFN_COND_MUL too.
4372 2019-07-30 Richard Biener <rguenther@suse.de>
4374 PR tree-optimization/91291
4375 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
4378 2019-07-30 Jakub Jelinek <jakub@redhat.com>
4381 * omp-low.c (global_nonaddressable_vars): New variable.
4382 (use_pointer_for_field): For global decls, if they are non-addressable,
4383 remember it in the global_nonaddressable_vars bitmap, if they are
4384 addressable and in the global_nonaddressable_vars bitmap, ignore their
4385 TREE_ADDRESSABLE bit.
4386 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
4387 vars in global_nonaddressable_vars bitmap.
4388 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
4391 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
4392 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
4393 comparison to unsigned HOST_WIDE_INT before shifting it left.
4395 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
4397 * config/i386/i386.md (movstrict<mode>): Use register_operand
4398 predicate for operand 0. Add expander condition. Assert that
4399 operand 0 is a SUBREG RTX.
4400 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
4401 Update operand constraints and insn condition.
4402 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
4403 (zero_extendqihi2_and): Do not call gen_movstrictqi.
4404 (*setcc_qi_slp): Use register_operand predicate for operand 0.
4405 Update operand 0 constraints.
4406 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
4408 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4410 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
4411 when -m{code,data}-region are used without -mlarge.
4412 * config/msp430/msp430.c (msp430_option_override): Error when a
4413 non-default code or data region is used without -mlarge.
4414 (msp430_section_attr): Emit a warning and do not add upper/lower/either
4415 attributes when they are used without -mlarge.
4417 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4420 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
4422 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4425 * wide-int.h (generic_wide_int::sext_elt): New function.
4426 * inchash.h (hash::add_wide_int): Use it instead of elt.
4428 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4430 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
4432 * config/arm/arm.md (<crc_variant>): Rename to...
4433 (arm_<crc_variant>): ... This.
4434 (<cdp>): Rename to...
4435 (arm_<cdp>): ... This.
4436 (<ldc>): Rename to...
4437 (arm_<ldc>): ... This.
4438 (<stc>): Rename to...
4439 (arm_<stc>): ... This.
4440 (<mcr>): Rename to...
4441 (arm_<mcr>): ... This.
4442 (<mrc>): Rename to...
4443 (arm_<mrc>): ... This.
4444 (<mcrr>): Rename to...
4445 (arm_<mcrr>): ... This.
4446 (<mrrc>): Rename to...
4447 (arm_<mrrc>): ... This.
4449 2019-07-29 Richard Biener <rguenther@suse.de>
4451 PR tree-optimization/91257
4452 * tree-ssa-sccvn.h (struct vn_avail): New.
4453 (struct vn_ssa_aux): Add avail member.
4454 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
4455 member, add m_avail_freelist one.
4456 (rpo_elim::~rpo_elim): Remove.
4457 (rpo_elim::eliminate_avail): Adjust to new avail tracking
4459 (rpo_elim::eliminate_push_avail): Likewise.
4460 (do_unwind): Likewise.
4461 (do_rpo_vn): Likewise.
4463 2019-07-29 Richard Biener <rguenther@suse.de>
4465 PR tree-optimization/91257
4466 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
4467 most cases, instead call compare_values which handles the
4468 symbolic ranges we handle specially.
4469 (compare_values_warnv): Do not call operand_less_p but open-code
4470 the effective fold calls. Avoid converting so much.
4472 2019-07-29 Martin Liska <mliska@suse.cz>
4474 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
4475 remove LHS of operator new call. It's handled latter.
4477 2019-07-29 Richard Biener <rguenther@suse.de>
4479 PR tree-optimization/91267
4480 * vr-values.c (vr_values::update_value_range): Add early return
4481 for effectively VARYING lattice entry.
4483 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4486 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
4487 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
4488 necessary if keep_all_vdefs_p is true.
4489 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
4490 that keep_all_vdefs_p is false.
4491 (mark_all_reaching_defs_necessary): Likewise.
4492 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
4494 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4496 * common.opt (Og): Change the initial value of flag_dse to 0.
4497 * opts.c (default_options_table): Move OPT_ftree_dse from
4498 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
4499 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
4500 entry before the OPT_ftree_sra entry.
4501 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
4502 of flags disabled by Og.
4504 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4506 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
4509 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4511 * doc/sourcebuild.texi (check-function-bodies): Document.
4513 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4515 * simplify-rtx.c (simplify_const_unary_operation): Fold a
4516 VEC_DUPLICATE of a fixed-length vector even if the result
4517 is variable-length. Likewise fold a duplicate of a
4518 variable-length vector if the variable-length vector is
4519 itself a duplicate of a fixed-length sequence.
4520 (test_vector_ops_duplicate): Test more cases.
4522 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
4524 * vector-builder.h (vector_builder): Add a shape template parameter.
4525 (vector_builder::new_unary_operation): New function, generalizing
4526 the old tree_vector_builder function.
4527 (vector_builder::new_binary_operation): Likewise.
4528 (vector_builder::binary_encoded_nelts): Likewise.
4529 * int-vector-builder.h (int_vector_builder): Update template
4530 parameters to vector_builder.
4531 (int_vector_builder::shape_nelts): New function.
4532 * rtx-vector-builder.h (rtx_vector_builder): Update template
4533 parameters to vector_builder.
4534 (rtx_vector_builder::shape_nelts): New function.
4535 (rtx_vector_builder::nelts_of): Likewise.
4536 (rtx_vector_builder::npatterns_of): Likewise.
4537 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
4538 * tree-vector-builder.h (tree_vector_builder): Update template
4539 parameters to vector_builder.
4540 (tree_vector_builder::shape_nelts): New function.
4541 (tree_vector_builder::nelts_of): Likewise.
4542 (tree_vector_builder::npatterns_of): Likewise.
4543 (tree_vector_builder::nelts_per_pattern_of): Likewise.
4544 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
4545 (tree_vector_builder::new_binary_operation): Delete.
4546 (tree_vector_builder::binary_encoded_nelts): Likewise.
4547 * simplify-rtx.c: Include rtx-vector-builder.h.
4548 (distributes_over_addition_p): New function.
4549 (simplify_const_unary_operation)
4550 (simplify_const_binary_operation): Generalize handling of vector
4551 constants to include variable-length vectors.
4552 (test_vector_ops_series): Add more tests.
4554 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
4557 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
4558 than INDENTIFIER_POINTER.
4560 2019-07-28 Martin Liska <mliska@suse.cz>
4563 * cgraph.c (symbol_table::create_edge): Always allocate
4565 (symbol_table::free_edge): Store summary_id to
4566 edge_released_summary_ids if != -1;
4567 * cgraph.h (NEXT_FREE_NODE): Remove.
4568 (SET_NEXT_FREE_NODE): Likewise.
4569 (NEXT_FREE_EDGE): Likewise.
4570 (symbol_table::release_symbol): Store summary_id to
4571 cgraph_released_summary_ids if != -1;
4572 (symbol_table::allocate_cgraph_symbol): Always allocate
4575 2019-07-28 Alan Modra <amodra@gmail.com>
4577 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
4580 2019-07-28 Alan Modra <amodra@gmail.com>
4583 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
4585 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
4586 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
4587 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
4589 2019-07-28 Alan Modra <amodra@gmail.com>
4592 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
4593 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
4594 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
4595 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
4596 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
4597 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
4598 in asm_default spec.
4599 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
4600 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
4602 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
4604 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
4606 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4609 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
4610 * config/aarch64/aarch64-option-extensions.def: Add new comments
4611 and restore easier to read options.
4613 2019-07-26 Tamar Christina <tamar.christina@arm.com>
4615 * convert.c (convert_to_real_1): Move part of conversion code...
4616 * match.pd: ...To here.
4618 2019-07-26 Martin Jambor <mjambor@suse.cz>
4621 * ipa-inline-transform.c (check_speculations_1): New function.
4622 (push_all_edges_in_set_to_vec): Likewise.
4623 (check_speculations): Use check_speculations_1, new parameter
4625 (inline_call): Pass new_edges to check_speculations.
4626 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
4628 (speculation_useful_p): Early return true if edge is inlined, remove
4629 later checks for inline_failed.
4631 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
4633 PR rtl-optimization/91223
4634 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
4635 matching with INOUT operand.
4637 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4639 * stmt.c (expand_case): Try to narrow the index type if it's larger
4640 than a word. Tidy up.
4642 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
4644 * cif-code.def (NEVER_CALL): New code.
4645 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
4646 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
4648 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
4650 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
4651 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4653 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4655 * ipa-devirt.c (add_type_duplicate): Fix return value.
4657 2019-07-25 Richard Biener <rguenther@suse.de>
4659 * tree-vrp.c (extract_range_from_multiplicative_op): Add
4660 type parameter and use it instead of guessing expression
4661 type from the first operand.
4662 (extract_range_from_binary_expr): Pass expr_type down.
4664 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4666 * config/arm/arm.md (SATrev): Change to code attribute.
4667 (*satsi_<SAT:code>): Adjust for the above.
4668 (*satsi_<SAT:code>_shift): Likewise.
4670 2019-07-25 Richard Biener <rguenther@suse.de>
4672 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
4673 Make value_range * temporary const.
4674 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
4676 (evrp_range_analyzer::record_ranges_from_): Likewise.
4677 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
4678 deal with having recorded a const one.
4679 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
4680 Return a const value_range *.
4681 (evrp_range_analyzer::pop_value_range): Likewise.
4682 (evrp_range_analyzer::stack): Record const value_range *s.
4683 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
4685 * gimple-ssa-sprintf.c (get_int_range): Likewise.
4686 (format_integer): Likewise.
4687 (sprintf_dom_walker::handle_gimple_call): Likewise.
4688 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
4689 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
4690 (vrp_prop::get_value_range): Adjust.
4691 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
4692 modifying the lattice in-place.
4693 (vrp_prop::visit_stmt): Likewise.
4694 * vr-values.c (vr_values::get_lattice_entry): New private method.
4695 (vr_values::get_value_range): Wrap it and return a const
4697 (vr_values::set_def_to_varying): New.
4698 (vr_values::set_defs_to_varying): Use it.
4699 (vr_values::update_value_range): Likewise.
4700 (vr_values::vrp_stmt_computes_nonzero): Adjust.
4701 (values::op_with_constant_singleton_va): Likewise.
4702 (vr_values::extract_range_for_var_from_co): Likewise.
4703 (vr_values::extract_range_from_ssa_name): Likewise.
4704 (vr_values::extract_range_from_cond_expr): Likewise.
4705 (vr_values::extract_range_basic): Likewise.
4706 (compare_ranges): Take const value_range *, adjust.
4707 (compare_range_with_value): Likewise.
4708 (vrp_valueize): Adjust.
4709 (vrp_valueize_1): Likewise.
4710 (vr_values::get_vr_for_comparison): Return a const value_range *.
4711 (vr_values::compare_name_with_value): Adjust.
4712 (vr_values::compare_names): Likewise.
4713 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4715 (vr_values::vrp_evaluate_conditional): Likewise.
4716 (find_case_label_ranges): Take a const value_range *.
4717 (vr_values::vrp_visit_switch_stmt): Adjust.
4718 (vr_values::extract_range_from_phi_node): Likewise.
4719 (vr_values::simplify_div_or_mod_using_ran): Likewise.
4720 (vr_values::simplify_abs_using_ranges): Likewise.
4721 (test_for_singularity): Take a const value_range *.
4722 (range_fits_type_p): Likewise.
4723 (vr_values::simplify_cond_using_ranges_1): Adjust.
4724 (vr_values::simplify_cond_using_ranges_2): Likewise.
4725 (vr_values::simplify_switch_using_ranges): Likewise.
4726 (vr_values::simplify_float_conversion_usi): Likewise.
4727 (vr_values::two_valued_val_range_p): Likewise.
4728 * vr-values.h (vr_values::get_value_range): Return a const
4730 (vr_values::set_def_to_varying): New.
4731 (vr_values::get_lattice_entry): New private method.
4732 (vr_values::get_vr_for_comparison): Return a const value_range *.
4734 2019-07-25 Martin Liska <mliska@suse.cz>
4735 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
4738 * common.opt: Add -fallocation-dce
4739 * gimple.c (gimple_call_operator_delete_p): New.
4740 * gimple.h (gimple_call_operator_delete_p): Likewise.
4741 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
4742 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4743 DECL_IS_OPERATOR_DELETE_P.
4744 (mark_all_reaching_defs_necessary_1): Likewise.
4745 (propagate_necessity): Likewise.
4746 (eliminate_unnecessary_stmts): Handle
4747 gimple_call_operator_delete_p.
4748 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4749 Add packing of OPERATOR_DELETE.
4750 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4752 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
4753 (DECL_SET_IS_OPERATOR_DELETE): New.
4754 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
4756 2019-07-25 Martin Liska <mliska@suse.cz>
4758 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
4759 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
4760 * coverage.c (coverage_begin_function): Likewise.
4761 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
4762 * gimple.c (gimple_call_nonnull_result_p): Likewise.
4763 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
4764 (sem_item::hash_referenced_symbol_properties): Likewise.
4765 * lto-streamer-out.c (hash_tree): Likewise.
4766 * predict.c (expr_expected_value_1): Likewise.
4767 * tree-inline.c (expand_call_inline): Likewise.
4768 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
4769 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
4770 * tree-core.h (enum function_decl_type): New enum.
4771 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
4772 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
4773 (set_function_decl_type): Likewise.
4774 (DECL_IS_OPERATOR_NEW_P): New.
4775 (DECL_SET_IS_OPERATOR_NEW): Likewise.
4776 (DECL_LAMBDA_FUNCTION): Likewise.
4777 (DECL_LAMBDA_FUNCTION_P): Likewise.
4778 (DECL_IS_OPERATOR_NEW): Remove.
4779 (DECL_SET_LAMBDA_FUNCTION): Likewise.
4781 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
4783 * ipa-profile.c (get_most_common_single_value): Use
4784 get_nth_most_common_value.
4785 * profile.c (sort_hist_value): New function.
4786 (compute_value_histograms): Call sort_hist_value to sort the
4787 values after loading from disk.
4788 * value-prof.c (get_most_common_single_value): Rename to ...
4789 get_nth_most_common_value. Add input params n, return
4790 the n_th value and count.
4791 (gimple_divmod_fixed_value_transform): Use
4792 get_nth_most_common_value.
4793 (gimple_ic_transform): Likewise.
4794 (gimple_stringops_transform): Likewise.
4795 * value-prof.h (get_most_common_single_value): Add input params
4798 2019-07-25 Richard Biener <rguenther@suse.de>
4800 PR tree-optimization/91236
4801 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4802 size of CONSTRUCTOR write. Fix buffer size we pass to
4805 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4807 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
4808 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
4811 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4813 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
4814 explicitly disabled with --disable-initfini-array.
4816 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4818 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
4821 2019-07-24 Martin Sebor <msebor@redhat.com>
4823 PR tree-optimization/91183
4824 PR tree-optimization/86688
4825 * builtins.c (compute_objsize): Handle MEM_REF.
4826 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4827 (get_min_string_length): Remove.
4828 (count_nonzero_bytes): New function.
4829 (handle_char_store): Rename...
4830 (handle_store): to this. Handle multibyte stores via integer types.
4831 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4834 2019-07-24 Martin Sebor <msebor@redhat.com>
4837 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4838 (diagnostic_report_diagnostic): Same.
4839 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4840 (diagnostic_context::lang_mask): New data member.
4841 * ipa-pure-const.c (suggest_attribute): Use
4842 lang_hooks.option_lang_mask ().
4843 * opts-common.c (option_enabled): Handle new argument.
4844 (get_option_state): Pass an additional argument.
4845 * opts.c (print_filtered_help): Print supported languages for
4846 unsupported options. Adjust printing of current state.
4847 * opts.h (option_enabled): Add argument.
4848 * toplev.c (print_switch_values): Use lang_mask.
4849 (general_init): Set global_dc->lang_mask.
4851 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4854 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4856 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4858 * cgraphunit.c (symbol_table::compile): Start and stop
4859 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4860 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4862 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4864 * gimplify.c (flag_instrument_functions_exclude_p): Include
4865 namespace/class information in the printable name.
4866 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4867 to tokens entered into the vector.
4869 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4871 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4872 (get_static_chain): Call it instead of build_simple_mem_ref.
4873 (get_frame_field): Likewise.
4874 (get_nonlocal_debug_decl): Likewise.
4875 (convert_nonlocal_reference_op): Likewise.
4877 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4879 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4881 (arc_compute_frame_size): Millicode is disabled when compiling
4883 (arc_return_address_register): Likewise.
4884 (arc_compute_function_type): Likewise.
4885 (arc_compute_frame_size): Likewise.
4886 (secondary_reload_info): Likewise.
4887 (arc_get_unalign): Likewise.
4888 (arc_can_use_return_insn): Declare.
4889 * config/arc/arc.c (AUX_LP_START): Define
4890 (AUX_LP_END): Likewise.
4891 (arc_frame_info): Update gmask member to 64-bit datum.
4892 (GMASK_LEN): Update.
4893 (arc_compute_function_type): Make it static, move it forward.
4894 (arc_must_save_register): Update, consider the extra regs.
4895 (arc_compute_millicode_save_restore_regs): Update to use the 64
4897 (arc_compute_frame_size): Likewise.
4898 (arc_enter_leave_p): Likewise.
4899 (arc_save_callee_saves): Likewise.
4900 (arc_restore_callee_saves): Likewise.
4901 (arc_save_callee_enter): Likewise.
4902 (arc_restore_callee_leave): Likewise.
4903 (arc_save_callee_milli): Likewise.
4904 (arc_restore_callee_milli): Likewise.
4905 (arc_expand_prologue): Add new interrupt handling.
4906 (arc_return_address_register): Make it static, move it forward.
4907 (arc_expand_epilogue): Add new interrupt handling.
4908 (arc_get_unalign): Delete.
4909 (arc_epilogue_uses): Make sure we do not remove the extra
4910 saved/restored registers when interrupt.
4911 (arc_can_use_return_insn): New function.
4912 (push_reg): Likewise.
4913 (pop_reg): Likewise.
4914 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4916 (arc_restore_callee_saves): Likewise, but restoring.
4917 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4918 (R33_REG): Likewise.
4919 (R34_REG): Likewise.
4920 (R35_REG): Likewise.
4921 (R36_REG): Likewise.
4922 (R37_REG): Likewise.
4923 (R38_REG): Likewise.
4924 (R39_REG): Likewise.
4925 (R45_REG): Likewise.
4926 (R46_REG): Likewise.
4927 (R47_REG): Likewise.
4928 (R48_REG): Likewise.
4929 (R49_REG): Likewise.
4930 (R50_REG): Likewise.
4931 (R51_REG): Likewise.
4932 (R52_REG): Likewise.
4933 (R53_REG): Likewise.
4934 (R54_REG): Likewise.
4935 (R55_REG): Likewise.
4936 (R56_REG): Likewise.
4937 (R58_REG): Likewise.
4938 (type): Add rtie attribute.
4939 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4940 (movsi_insn): Accept moves to lp_count.
4941 (rtie): Update pattern.
4942 (simple_return): Simplify it, don't use this pattern as a return
4944 (arc600_rtie): New pattern.
4945 (p_return_i): Clean up.
4947 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4949 * config/arc/predicates.md (move_src_operand): Consider lp_count
4952 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4954 * config/s390/predicates.md (addv_const_operand): New predicate.
4955 * config/s390/s390-modes.def (CCO): New condition code mode.
4956 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4957 (s390_branch_condition_mask): Likewise.
4958 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4959 ("mulv<mode>4"): New expanders.
4960 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4961 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4962 pattern definitions.
4964 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4967 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4968 (define_predicates): Add entry for uniform_vector_p.
4969 (vec_same_elem_p): New match pattern.
4971 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4974 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4975 * config/i386/darwin32-biarch.h .. to here.
4976 * config/i386/darwin64-biarch.h: Adjust comments.
4977 * config/rs6000/darwin32-biarch.h: Likewise.
4978 * config/rs6000/darwin64-biarch.h: Likewise.
4979 * config.gcc: Missed commit from r273746
4980 (*-*-darwin*): Don't include CPU t-darwin here.
4981 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4982 an error message if i686-darwin configuration is attempted for
4985 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4988 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4989 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4990 an error message if i686-darwin configuration is attempted for
4992 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4993 (powerpc-*-darwin*): Use biarch files where needed.
4994 (powerpc64-*-darwin*): Likewise.
4995 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4996 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4998 * config/i386/darwin32-biarch.h: New.
4999 * config/i386/darwin64.h: Rename.
5000 * config/i386/darwin64-biarch.h: To this.
5001 * config/i386/t-darwin: Rename.
5002 * config/i386/t-darwin32-biarch: To this.
5003 * config/i386/t-darwin64: Rename.
5004 * config/i386/t-darwin64-biarch: To this.
5005 * config/rs6000/darwin32-biarch.h: New.
5006 * config/rs6000/darwin64.h: Rename.
5007 * config/rs6000/darwin64-biarch.h: To this.
5008 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
5010 * config/rs6000/t-darwin8: Rename.
5011 * config/rs6000/t-darwin32-biarch: To this.
5012 * config/rs6000/t-darwin64 Rename.
5013 * config/rs6000/t-darwin64-biarch: To this.
5015 2019-07-23 Martin Sebor <msebor@redhat.com>
5017 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
5019 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5021 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
5022 (rh): New alias for it.
5024 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
5026 * gdbhooks.py: Pass replace=True to
5027 gdb.printing.register_pretty_printer.
5029 2019-07-23 Richard Biener <rguenther@suse.de>
5032 * lto-streamer-in.c (input_function): Drop inline-entry markers
5033 that ended up with an unknown location block.
5035 2019-07-23 Richard Biener <rguenther@suse.de>
5037 PR tree-optimization/83518
5038 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
5039 init from a constant even when partial defs are already recorded.
5041 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5043 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
5044 * config/i386/znver1.md: Enable patterns for znver2 and add store
5045 variants which use extra AGU unit.
5047 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5049 * config/i386/i386-options.c (ix86_option_override_internal): Default
5050 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
5051 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
5054 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
5056 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
5057 (znver2_costs): Update 256 bit SSE costs and multiplication.
5059 2019-07-23 Jan Beulich <jbeulich@suse.com>
5061 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
5062 Require only AVX512F.
5063 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
5064 alternative expanding to vpternlog.
5066 2019-07-23 Martin Liska <mliska@suse.cz>
5068 * dwarf2out.c (gen_producer_string): Canonize -flto=N
5069 to -flto in dwarf producer string.
5071 2019-07-23 Richard Biener <rguenther@suse.de>
5073 * tree-cfg.c (label_for_bb): Remove global var.
5074 (main_block_label): Take label_for_bb as argument.
5075 (cleanup_dead_labels_eh): Likewise, adjust.
5076 (cleanup_dead_labels): Adjust.
5078 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5080 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
5081 Configurations): Add documentation for __builtin_mtfsf.
5083 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
5085 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
5086 * config/riscv/riscv.c (riscv_constant_alignment): Use
5087 riscv_align_data_type.
5088 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
5089 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5090 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
5091 * config/riscv/riscv.opt (malign-data): New.
5092 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
5094 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
5096 * cgraph.c (dump_graphviz): New function.
5097 * cgraph.h (dump_graphviz): New function.
5098 * symtab.c (dump_graphviz): New function.
5100 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
5102 * config/aarch64/aarch64-simd.md
5103 (*aarch64_simd_sra<mode>): New.
5104 * config/aarch64/iterators.md
5105 (SHIFTRT): New iterator.
5106 (sra_op): New attribute.
5108 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5110 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
5111 callee-saved regs R4->R10 in an interrupt function that calls another
5114 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
5116 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
5117 (_mm_blendv_epi8): New.
5119 2019-07-22 Richard Biener <rguenther@suse.de>
5121 PR tree-optimization/91221
5122 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
5123 restrict partial-def handling of empty constructors and
5124 memset to refs with known offset.
5126 2019-07-22 Jan Beulich <jbeulich@suse.com>
5128 * config/i386/sse.md (ternlogsuffix): New.
5129 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
5131 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
5133 2019-07-22 Martin Liska <mliska@suse.cz>
5135 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
5137 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
5139 2019-07-22 Martin Liska <mliska@suse.cz>
5141 * lto-section-in.c (lto_get_section_data):
5142 Use new function get_compression.
5143 * lto-streamer-out.c (produce_lto_section): Use
5144 set_compression to encode compression algorithm.
5145 * lto-streamer.h (struct lto_section): Do not
5146 use bitfields in the format.
5148 2019-07-22 Martin Liska <mliska@suse.cz>
5151 * opts-common.c (decode_cmdline_option): Decode
5152 argument of -Werror and check it for a wrong language.
5153 * opts-global.c (complain_wrong_lang): Remove such case.
5155 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
5157 * config/arc/arc.c (prepare_move_operands): Always use an
5158 intermediate register when storing a TLS symbols.
5160 2019-07-22 Stafford Horne <shorne@gmail.com>
5162 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
5165 2019-07-22 Stafford Horne <shorne@gmail.com>
5167 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
5168 and munordered-float validations.
5169 * config/or1k/constraints.md (d): New register constraint.
5170 * config/or1k/predicates.md (fp_comparison_operator): New.
5171 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
5173 (or1k_expand_compare): Normalize unordered comparisons.
5174 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
5175 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
5176 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
5177 * config/or1k/or1k.md (type): Add fpu.
5178 (fpu): New instruction reservation.
5179 (F, f, fr, fi, FI, FOP, fop): New.
5180 (<fop><F:mode>3): New ALU instruction definition.
5181 (float<fi><F:mode>2): New conversion instruction definition.
5182 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
5183 (fpcmpcc): New code iterator.
5184 (*sf_fp_insn): New instruction definition.
5185 (cstore<F:mode>4): New expand definition.
5186 (cbranch<F:mode>4): New expand definition.
5187 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
5188 munordered-float): New options.
5189 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
5192 2019-07-22 Stafford Horne <shorne@gmail.com>
5194 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
5195 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
5196 documenation to be more clear.
5197 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
5199 * config/or1k/or1k.opt (mrori): New option.
5200 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
5201 msfimm, mshftimm): Rewrite documentation to be more clear.
5202 * config/or1k/or1k.md (insn_support): Add ror and rori.
5203 (enabled): Add conditions for ror and rori.
5204 (rotrsi3): Replace condition for shftimm with ror and rori.
5206 2019-07-22 Stafford Horne <shorne@gmail.com>
5209 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
5210 (extend<mode>si2): Update predicate.
5211 * config/or1k/predicates.md (volatile_mem_operand): New.
5212 (reg_or_mem_operand): New.
5214 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
5216 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
5217 * config/rs6000/rs6000-call.c: ... to here.
5219 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5221 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
5224 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5226 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
5228 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5230 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
5232 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
5234 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
5235 (any_memory_operand): New predicate.
5236 (reg_or_mem_operand): Use it.
5238 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5241 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
5243 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
5245 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
5246 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
5248 2019-07-20 Jakub Jelinek <jakub@redhat.com>
5250 * tree.def (OMP_LOOP): New tree code.
5251 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
5252 (enum omp_clause_bind_kind): New enum.
5253 (struct tree_omp_clause): Add subcode.bind_kind.
5254 * tree.h (OMP_LOOP_CHECK): Rename to ...
5255 (OMP_LOOPING_CHECK): ... this.
5256 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
5257 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
5258 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
5259 (OMP_CLAUSE_BIND_KIND): Define.
5260 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5261 bind clause entries.
5262 (walk_tree_1): Handle OMP_CLAUSE_BIND.
5263 * tree-pretty-print.c (dump_omp_clause): Likewise.
5264 (dump_generic_node): Handle OMP_LOOP.
5265 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
5266 (in_omp_construct): New variable.
5267 (is_gimple_stmt): Handle OMP_LOOP.
5268 (gimplify_scan_omp_clauses): For lastprivate don't set
5269 check_non_private if code == OMP_LOOP. For reduction clause
5270 on OMP_LOOP combined with parallel or teams propagate as shared
5271 on the combined construct. Handle OMP_CLAUSE_BIND.
5272 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
5273 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
5274 for constructs from a loop construct to gimplify_scan_omp_clauses.
5275 Don't predetermine iterator linear on OMP_SIMD from loop construct.
5276 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
5277 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
5278 to match the implicit ORT_TARGET construct around whole body.
5279 Temporarily clear in_omp_construct when processing body.
5280 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
5281 etc. temporarily set in_omp_construct when processing body.
5282 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
5283 * omp-low.c (struct omp_context): Add loop_p.
5284 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
5285 in that the original var might be private.
5286 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
5287 (check_omp_nesting_restrictions): Adjust nesting restrictions for
5288 addition of loop construct.
5289 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
5291 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
5292 lastprivate non-addressable iterator of a collapse(1) simd.
5294 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
5296 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
5299 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
5301 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
5302 refer to default conditions. Warn for the 'y' spec which is ignored
5305 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
5307 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
5308 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5309 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5310 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5311 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5312 init_cumulative_args, rs6000_promote_function_mode,
5313 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5314 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5315 rs6000_function_arg_boundary, rs6000_parm_offset,
5316 rs6000_parm_start, rs6000_arg_size,
5317 rs6000_darwin64_record_arg_advance_flush,
5318 rs6000_darwin64_record_arg_advance_recurse,
5319 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5320 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5321 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5322 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5323 rs6000_finish_function_arg, rs6000_function_arg,
5324 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5325 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5326 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5327 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5328 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5329 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5330 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5331 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5332 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5333 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5334 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5335 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5336 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5337 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5338 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5339 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5340 get_element_number, altivec_expand_vec_set_builtin,
5341 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5342 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5343 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5344 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5345 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5346 rs6000_expand_builtin, rs6000_vector_type,
5347 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5348 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5349 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
5351 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
5352 cpu_supports_info, builtin_hash_struct, builtin_hasher,
5353 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
5354 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
5355 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
5356 init_cumulative_args, rs6000_promote_function_mode,
5357 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
5358 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
5359 rs6000_function_arg_boundary, rs6000_parm_offset,
5360 rs6000_parm_start, rs6000_arg_size,
5361 rs6000_darwin64_record_arg_advance_flush,
5362 rs6000_darwin64_record_arg_advance_recurse,
5363 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
5364 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
5365 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5366 rs6000_mixed_function_arg, rs6000_psave_function_arg,
5367 rs6000_finish_function_arg, rs6000_function_arg,
5368 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
5369 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
5370 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
5371 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
5372 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
5373 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
5374 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
5375 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
5376 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
5377 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
5378 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
5379 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
5380 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
5381 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
5382 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
5383 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
5384 get_element_number, altivec_expand_vec_set_builtin,
5385 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
5386 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
5387 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
5388 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
5389 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
5390 rs6000_expand_builtin, rs6000_vector_type,
5391 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
5392 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
5393 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
5394 to here from rs6000.c.
5395 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
5396 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
5397 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
5398 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
5399 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
5400 rs6000_return_in_memory, rs6000_return_in_msb,
5401 rs6000_pass_by_reference, setup_incoming_varargs,
5402 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
5403 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
5404 rs6000_function_arg_padding, rs6000_function_arg,
5405 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
5406 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
5407 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
5408 rs6000_passes_long_double, rs6000_passes_vector,
5409 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
5410 altivec_builtin_mask_for_load) Add declarations.
5411 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
5412 * config/config.gcc: Add new source file rs6000-call.c to garbage
5413 collector and extra_objs.
5415 2019-07-19 Jeff Law <law@redhat.com>
5417 PR tree-optimization/86061
5418 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
5419 strncpy. Drop some trivial dead code.
5420 (maybe_trim_memstar_call): Handle strncpy.
5422 2019-07-19 Richard Biener <rguenther@suse.de>
5424 PR tree-optimization/91211
5425 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
5426 memset encoding size.
5428 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
5431 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
5433 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
5436 * ipa-inline.c (recursive_inlining): Fix limits check.
5438 2019-07-19 Richard Biener <rguenther@suse.de>
5440 PR tree-optimization/91200
5441 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
5442 no PHI nodes in middle-bb.
5444 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
5446 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
5448 * config/aarch64/aarch64-option-extensions.def: Likewise.
5450 2019-07-19 Jakub Jelinek <jakub@redhat.com>
5453 * function.c (insert_temp_slot_address): Store into the hash table
5454 a copy of address to avoid RTL sharing issues.
5456 2019-07-19 Richard Biener <rguenther@suse.de>
5458 PR tree-optimization/91207
5460 2019-07-17 Richard Biener <rguenther@suse.de>
5462 PR tree-optimization/91178
5463 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5464 loads with a gap larger than the vector size always use
5466 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5467 avoid loading vectors that are only contained in the gap
5468 and thus are not needed.
5470 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5472 * config/i386/i386.md (*addqi_2_slp): Remove.
5473 (*<code>qi_2_slp): Ditto.
5475 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
5477 * config/rs6000/predicates.md (prefixed_mem_operand): Call
5478 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
5479 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
5480 Rename function from rs6000_prefixed_address.
5481 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5483 (TARGET_TOC): Likewise.
5484 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5486 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5488 (TARGET_TOC): Likewise.
5489 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5491 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5493 (TARGET_TOC): Likewise.
5494 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5495 check to require -mcmodel=medium for pc-relative addressing.
5496 (create_TOC_reference): Add assertion for TARGET_TOC.
5497 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
5499 (rs6000_emit_move): Likewise.
5500 (TOC_alias_set): Rename TOC alias set static variable from 'set'
5502 (get_TOC_alias_set): Likewise.
5503 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
5505 (rs6000_can_eliminate): Likewise.
5506 (rs6000_prefixed_address_mode_p): Rename function from
5507 rs6000_prefixed_address.
5508 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
5509 TARGET_HAS_TOC and not pc-relative.
5510 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
5511 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
5513 (TARGET_TOC): Likewise.
5514 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
5517 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
5520 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
5521 for operand 0. Do not use (match_dup) to match operand 1 with
5522 operand 0. Add check in insn constraint that either input operand
5523 matches operand 0. Use SWI12 mode iterator to also handle
5525 (*and<mode>_1_slp): Ditto.
5526 (*<code>qi_1_slp): Ditto.
5527 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
5528 Do not use (match_dup) to match operand 1 with operand 0. Add
5529 check in insn constraint that operand 1 matches operand 0.
5530 Use SWI12 mode iterator to also handle HImode operands.
5531 (*ashl<mode>3_1_slp): Ditto.
5532 (*<shift_insn><mode>3_1_slp): Ditto.
5533 (*<rotate_insn><mode>3_1_slp): Ditto.
5535 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5537 * config/arm/arm-builtins.c
5538 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
5539 (arm_expand_unop_builtin): Likewise.
5540 * config/arm/crypto.md
5541 (crypto_sha1h): Convert from define_insn to define_expand.
5542 (crypto_<crypto_pattern>): Likewise.
5543 (crypto_sha1h_lb): New define_insn.
5544 (crypto_<crypto_pattern>_lb): Likewise.
5546 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
5549 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
5550 (vsha1cq_u32): Likewise.
5551 (vsha1pq_u32): Likewise.
5552 (vsha1mq_u32): Likewise.
5553 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
5555 (crypto_sha1c): Correct vec select.
5556 (crypto_sha1m): Likewise.
5557 (crypto_sha1p): Likewise.
5559 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
5561 * config/arm/predicates.md (arm_borrow_operation): New predicate.
5562 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
5563 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
5564 (subdi_zesidi_zesidi): Likewise.
5565 (negdi2_compare, negdi2_insn): Likewise.
5566 (negdi_extensidi): Likewise.
5567 (negdi_zero_extendsidi): Likewise.
5568 (arm_cmpdi_insn): Likewise.
5569 (subsi3_carryin): Use arm_borrow_operation.
5570 (subsi3_carryin_const): Likewise.
5571 (subsi3_carryin_const0): Likewise.
5572 (subsi3_carryin_compare): Likewise.
5573 (subsi3_carryin_compare_const): Likewise.
5574 (subsi3_carryin_compare_const0): Likewise.
5575 (subsi3_carryin_shift): Likewise.
5576 (rsbsi3_carryin_shift): Likewise.
5577 (negsi2_carryin_compare): Likewise.
5579 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
5581 PR tree-optimization/91137
5582 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
5583 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
5584 Init, use and fini the above new field.
5585 (determine_base_object_1): New function.
5586 (determine_base_object): Reimplement using walk_tree.
5588 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
5590 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
5591 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
5592 CLEANUP_FORCE_FAST_DCE is set.
5593 * ifcvt.c (rest_of_handle_if_conversion): Pass
5594 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
5595 if-conversion succeeded.
5597 2019-07-18 Richard Biener <rguenther@suse.de>
5599 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
5600 branches to make code less indented.
5602 2019-07-17 Alexandre Oliva <oliva@adacore.com>
5605 * attribs.c (decls_mismatched_attributes): Simplify the logic
5606 that avoids duplicates and false positives.
5608 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
5610 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
5611 data into data section when generating PIC code.
5612 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
5613 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
5614 generating code for SOM targets earlier than HP-UX 11. Otherwise,
5615 return 2 for SOM and 0 for other targets.
5617 2019-07-17 Jeff Law <law@redhat.com>
5619 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
5620 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
5621 avoid unexpected switch statement fallthru.
5623 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5625 * config/i386/i386.md (*add<dwi>3_doubleword):
5626 Remove redundant constraints.
5627 (*add<mode>_1): Ditto.
5630 (*addqi_1_slp): Ditto.
5631 (*add<mode>_2): Ditto.
5632 (*addv<mode>4): Ditto.
5633 (*sub<dwi>3_doubleword): Ditto.
5634 (*sub<mode>_1): Ditto.
5635 (*subqi_1_slp): Ditto.
5636 (*sub<mode>_2): Ditto.
5637 (*subv<mode>4): Ditto.
5638 (*sub<mode>_3): Ditto.
5639 (@add<mode>3_carry): Ditto.
5640 (@sub<mode>3_carry): Ditto.
5641 (*add<mode>3_cc_overflow_1): Ditto.
5642 (*add<mode>3_zext_cc_overflow_2): Ditto.
5644 (*and<mode>_1): Ditto.
5646 (*andqi_1_slp): Ditto.
5648 (*andqi_2_maybe_si): Ditto.
5649 (*and<mode>_2): Ditto.
5650 (*andqi_2_slp): Ditto.
5651 (*<code><mode>_1): Ditto.
5652 (*<code>qi_1): Ditto.
5653 (*<code>qi_1_slp): Ditto.
5654 (*<code><mode>_2): Ditto.
5655 (*<code>qi_2_slp): Ditto.
5657 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
5659 * alias.c (record_component_aliases): Do not simplify pointed-to
5662 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
5664 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
5665 partial reg stall on alternative 2.
5667 2019-07-17 Richard Biener <rguenther@suse.de>
5669 PR tree-optimization/91178
5670 * tree-ssa.c (release_defs_bitset): Iterate from higher to
5671 lower SSA names to avoid quadratic behavior in the common case.
5672 * tree-data-ref.c (split_constant_offset): Add limit argument
5673 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5674 (split_constant_offset_1): Add limit argument and use it to
5675 limit SSA def walking. Optimize the common plus/minus case.
5677 2019-07-17 Richard Biener <rguenther@suse.de>
5679 PR tree-optimization/91178
5680 * tree-vect-stmts.c (get_group_load_store_type): For SLP
5681 loads with a gap larger than the vector size always use
5683 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
5684 avoid loading vectors that are only contained in the gap
5685 and thus are not needed.
5687 2019-07-17 Richard Biener <rguenther@suse.de>
5689 PR tree-optimization/91180
5690 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
5691 computation for memset partial defs.
5693 2019-07-17 Jakub Jelinek <jakub@redhat.com>
5695 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
5696 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
5697 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
5698 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
5699 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
5700 * omp-grid.c (grid_process_grid_body,
5701 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
5702 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
5703 == GF_OMP_FOR_KIND_SIMD.
5704 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
5705 check_omp_nesting_restrictions, scan_omp_1_stmt,
5706 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
5707 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
5708 omp_find_scan): Likewise.
5709 * omp-expand.c (expand_omp_for): Likewise.
5710 * omp-general.c (omp_extract_for_data): Likewise.
5712 PR tree-optimization/91157
5713 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
5714 a vector boolean with scalar mode.
5715 (expand_vector_condition): Handle first operand being a vector boolean
5717 (expand_vector_operations_1): For comparisons, don't bail out early
5718 if the return type is vector boolean with scalar mode, but comparison
5719 operand type is not.
5721 2019-07-17 Richard Biener <rguenther@suse.de>
5723 PR tree-optimization/91181
5724 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
5727 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
5729 * config/i386/i386.md (*testdi_1): Match CCZmode for
5730 constants that might have the SImode sign bit set.
5731 (*testqi_1_maybe_si): Remove "!" constraint modifier.
5732 Use correct constraints for pentium pairing.
5733 (*test<mode>_1): Ditto.
5735 2019-07-16 Jeff Law <law@redhat.com>
5737 PR rtl-optimization/91173
5738 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
5739 SSA_NAME with a constant value, fold its value into the offset
5740 and clear the base before calling gen_addr_rtx.
5742 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5744 PR rtl-optimization/91164
5745 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5746 invalidate dominance info.
5748 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5750 * read-md.h (md_reader::record_potential_iterator_use): Add a
5751 file_location parameter.
5752 * read-rtl.c (attribute_use::loc): New field.
5753 (map_attr_string): Take a file_location parameter. Report cases
5754 in which attributes map to multiple distinct values.
5755 (apply_attribute_uses): Update call accordingly.
5756 (md_reader::handle_overloaded_name): Likewise.
5757 (md_reader::apply_iterator_to_string): Likewise. Skip empty
5759 (record_attribute_use): Take a file_location parameter.
5760 Initialize attribute_use::loc.
5761 (md_reader::record_potential_iterator_use): Take a file_location
5762 parameter. Update call to record_attribute_use.
5763 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
5764 (rtx_reader::read_rtx_code): Likewise.
5765 (rtx_reader::read_rtx_operand): Likewise. Record a location
5766 for implicitly-expanded empty strings.
5768 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5770 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
5771 Use file_location instead of separate fields.
5772 (md_reader::set_md_ptr_loc): Take a file_location instead of a
5773 separate filename and line number.
5774 * read-md.c (ptr_loc): As above.
5775 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
5776 (md_reader::fprint_md_ptr_loc): Likewise.
5777 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
5778 instead of a separate filename and line number.
5779 (md_reader::read_string): Update call accordingly.
5781 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5783 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
5784 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5785 leaving the choice between SFDF and P implicit.
5786 (*mov<mode>_update2): Likewise.
5787 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
5788 rather than leaving the choice betweem IBM128 and GPR implicit.
5789 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
5790 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
5792 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
5793 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
5794 * config/rs6000/vsx.md
5795 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
5796 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
5797 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
5798 and VSX_EXTRACT_I implicit.
5800 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5802 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
5803 Explicitly use <MOVEP1:MODE> for the mode attribute.
5805 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
5808 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
5810 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
5813 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
5816 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
5818 * config/i386/i386.md (@test<mode>_ccno_1):
5819 Rename from test<mode>_ccno_1.
5820 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
5821 (*testqi_1_maybe_si): Remove modrm attribute.
5822 (*test<mode>_1): Ditto.
5823 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5824 gen_test_ccno_1 and gen_extend_insn.
5826 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5828 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5831 2019-07-15 Richard Biener <rguenther@suse.de>
5834 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5835 node make sure to replace all uses with something valid.
5837 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5839 PR tree-optimization/88497
5840 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5841 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5842 function undistribute_bitref_for_vector.
5843 (undistribute_bitref_for_vector): New function.
5844 (cleanup_vinfo_map): Likewise.
5845 (sort_by_mach_mode): Likewise.
5847 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5849 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5850 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5851 and testdi_ccno_1 using SWI48 mode attribute.
5852 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5853 x86_64_szext_general_operand.
5854 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5855 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5856 instead of genera_operand mode attribute.
5858 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5860 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5861 fopen and fclose to their respective types.
5862 (DotFn.invoke): Ditto.
5864 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5866 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5867 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5868 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5869 (array_index_predicate): Remove.
5870 (analyze_function_body): Account cost for variable ofsetted array
5872 (estimate_node_size_and_time): Do not compute array index hint.
5873 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5874 (inline_read_section): Do not read array index hint.
5875 (ipa_fn_summary_write): Do not write array index hint.
5876 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5877 * ipa-cp.c (hint_time_bonus): Remove.
5878 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5879 (ipa_fnsummary): Remove array_index.
5880 * ipa-inline.c (want_inline_small_function_p): Do not use
5882 (edge_badness): Likewise.
5883 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5885 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5888 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5889 superfluous "builtin function" phrasing.
5891 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5893 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5895 (aliasing_component_refs_walk): Break out from ...
5896 (aliasing_component_refs_p): ... here.
5898 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5901 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5902 "builtin function" phrasing.
5904 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5907 * recog.h (temporary_volatile_ok): New class.
5908 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5909 volatile_ok temporarily to true using temporary_volatile_ok.
5910 * expr.c (emit_block_move_via_cpymem): Likewise.
5911 * optabs.c (maybe_legitimize_operand): Likewise.
5913 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5915 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5916 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5917 uses inside of order(concurrent) constructs.
5918 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5919 OMP_CLAUSE_ORDER is seen.
5920 * omp-low.c (struct omp_context): Add order_concurrent member.
5921 (scan_sharing_clauses): Set ctx->order_concurrent if
5922 OMP_CLAUSE_ORDER is seen.
5923 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5924 of simd order(concurrent). Diagnose constructs not allowed inside of
5925 for order(concurrent).
5926 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5927 complaining about static double setjmp (double); or class static
5928 methods or non-global namespace setjmps.
5929 (omp_runtime_api_call): New function.
5930 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5931 order(concurrent) loops.
5933 2019-07-12 Martin Sebor <msebor@redhat.com>
5935 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5936 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5937 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5938 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5940 2019-07-12 Jan Hubicka <jh@suse.cz>
5942 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5943 (indirect_refs_may_alias_p): ... here.
5944 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5945 mem refs in the access paths.
5947 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5949 PR tree-optimization/89430
5950 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5951 store elimination for local variable without address escape.
5953 2019-07-12 Jeff Law <law@redhat.com>
5955 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5956 for the ".far" section.
5958 2019-07-12 Richard Biener <rguenther@suse.de>
5960 PR tree-optimization/91145
5961 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5964 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5966 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5967 rather than this_state as the lowering context for the ELSE
5968 seq in a GIMPLE_EH_ELSE.
5970 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5972 * vector-builder.h (vector_builder::elt): Allow already-supplied
5973 elements to be read back before building is complete.
5975 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5977 PR rtl-optimization/91136
5978 * df-core.c (ACCESSING REFS): Fix typos in comment.
5979 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5980 the beginning of the block to the initial set of live registers.
5982 2019-07-12 Richard Biener <rguenther@suse.de>
5984 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5985 * fold-const.c (get_array_ctor_element_at_index): Add
5986 ctor_idx output parameter informing the caller where in
5987 the constructor the element was (not) found. Add early exit
5988 for when the ctor is sorted.
5989 * gimple-fold.c (fold_array_ctor_reference): Support constant
5990 folding across multiple array elements.
5992 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5994 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5995 doesn't have location, set the current location to the function's end.
5997 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5999 * config/aarch64/aarch64.md (*compare_condjump<mode>)
6000 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
6001 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
6002 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
6003 * config/aarch64/aarch64-simd.md
6004 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
6005 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
6006 * config/aarch64/aarch64-sve.md
6007 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
6008 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
6010 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
6012 * doc/md.texi: Document that @ patterns can have different
6013 numbers of operands.
6014 * genemit.c (handle_overloaded_gen): Handle this case.
6015 * genopinit.c (handle_overloaded_gen): Likewise.
6016 * gensupport.c (replace_operands_with_dups): Iterate over
6017 the new rtx's format rather than the old one's.
6019 2019-07-12 Jakub Jelinek <jakub@redhat.com>
6021 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
6022 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6023 order clause entries.
6024 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
6025 * tree-pretty-print.c (dump_omp_clause): Likewise.
6026 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6028 * omp-low.c (scan_sharing_clauses): Likewise.
6029 * tree-nested.c (convert_nonlocal_omp_clauses,
6030 convert_local_omp_clauses): Likewise.
6032 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
6034 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
6035 fallthrough target of current basic block isn't the placed
6038 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
6041 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
6042 (_mm512_storeu_epi64): Likewise.
6043 (_mm512_loadu_epi32): Likewise.
6044 (_mm512_storeu_epi32): Likewise.
6045 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
6046 (_mm_storeu_epi64): Likewise.
6047 (_mm256_storeu_epi32): Likewise.
6048 (_mm_storeu_epi32): Likewise.
6050 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6052 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
6054 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
6056 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
6059 2019-07-11 Jakub Jelinek <jakub@redhat.com>
6062 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
6063 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6064 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
6065 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
6066 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
6067 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
6069 (ufix_truncv2dfv2si2<mask_name>): Change into ...
6070 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
6071 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
6073 (sse2_cvttpd2dq<mask_name>): Change into ...
6074 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
6075 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
6076 (*sse2_cvtpd2dq<mask_name>): Change into ...
6077 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
6078 Add "C" constraint to const0_operand.
6079 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
6080 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
6084 * config/i386/i386-builtin-types.def
6085 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
6086 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
6087 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
6088 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
6089 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
6090 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
6091 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
6092 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
6093 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
6094 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
6095 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
6096 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
6097 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
6098 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
6099 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
6100 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
6101 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
6102 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
6103 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
6104 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
6105 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
6106 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
6107 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
6108 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
6109 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
6110 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
6111 __builtin_ia32_vpdpbusd_v4si_maskz,
6112 __builtin_ia32_vpdpbusds_v16si_mask,
6113 __builtin_ia32_vpdpbusds_v16si_maskz,
6114 __builtin_ia32_vpdpbusds_v8si_mask,
6115 __builtin_ia32_vpdpbusds_v8si_maskz,
6116 __builtin_ia32_vpdpbusds_v4si_mask,
6117 __builtin_ia32_vpdpbusds_v4si_maskz,
6118 __builtin_ia32_vpdpwssd_v16si_mask,
6119 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
6120 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
6121 __builtin_ia32_vpdpwssd_v4si_maskz,
6122 __builtin_ia32_vpdpwssds_v16si_mask,
6123 __builtin_ia32_vpdpwssds_v16si_maskz,
6124 __builtin_ia32_vpdpwssds_v8si_mask,
6125 __builtin_ia32_vpdpwssds_v8si_maskz,
6126 __builtin_ia32_vpdpwssds_v4si_mask,
6127 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
6128 suffixed types rather than *_INT.
6129 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
6130 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
6131 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
6132 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
6133 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
6134 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
6136 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
6138 * tree-vrp.c (intersect_ranges): If we know the intersection is
6139 empty, there is no need to conservatively add anything else to
6142 2019-07-11 Richard Biener <rguenther@suse.de>
6145 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
6146 when the object is volatile and we have not cleared it even though
6147 there are no nonzero elements.
6149 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
6151 * config/rs6000/predicates.md (cint34_operand): Update
6152 SIGNED_34BIT_OFFSET_P call.
6153 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
6154 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
6155 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
6156 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
6157 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
6159 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
6160 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
6161 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
6162 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
6163 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
6165 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
6167 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
6168 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
6169 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
6170 (DEF_MIN_OSX_VERSION): New.
6172 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6174 * fold-const.c (fold_relational_const): Fix folding of
6175 vector-to-scalar NE_EXPRs.
6176 (test_vector_folding): Add more tests.
6178 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
6181 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
6182 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
6183 (vec_setv2di_internal): Reexpress as...
6184 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
6185 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
6186 rather than gen_neon_vset_lane<mode>.
6188 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
6191 * lra-constraints.c (process_alt_operands): Don't match user
6192 defined regs only if they are early clobbers.
6194 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
6196 * wide-int.h (wi::lshift): Reject negative values for the fast path.
6198 2019-07-10 Richard Biener <rguenther@suse.de>
6200 PR tree-optimization/91126
6201 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
6202 native encoding offset for BYTES_BIG_ENDIAN.
6203 (vn_reference_lookup_3): Likewise.
6205 2019-07-10 Richard Biener <rguenther@suse.de>
6207 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
6208 LHS whenever possible.
6210 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
6212 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
6213 from ...; work also on duplicated types.
6214 (nonoverlapping_component_refs_since_match): ... here
6215 (ncr_type_uid): Break out from ...
6216 (ncr_compar): ... here; look for TYPE_UID of canonical type if
6218 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
6219 the types and nonoverlapping_component_refs_p_1 to disambiguate.
6221 2019-07-09 Martin Sebor <msebor@redhat.com>
6223 PR tree-optimization/90989
6224 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
6225 optimization to just single character stores.
6227 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
6229 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
6230 Swap operands only once.
6232 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
6234 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
6235 for both call instructions.
6237 2019-07-09 John Darrington <john@darrington.wattle.id.au>
6239 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
6240 rather than GET_MODE_BITSIZE to better handle partial integer modes.
6242 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
6244 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
6245 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
6246 function from rs6000-logue.c back to rs6000.c.
6247 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
6249 2019-07-09 Martin Sebor <msebor@redhat.com>
6252 * auto-profile.c: Change class-key of PODs to struct and others
6254 * basic-block.h: Same.
6255 * bitmap.c (bitmap_alloc): Same.
6257 * builtins.c (expand_builtin_prefetch): Same.
6258 (expand_builtin_interclass_mathfn): Same.
6259 (expand_builtin_strlen): Same.
6260 (expand_builtin_mempcpy_args): Same.
6261 (expand_cmpstr): Same.
6262 (expand_builtin___clear_cache): Same.
6263 (expand_ifn_atomic_bit_test_and): Same.
6264 (expand_builtin_thread_pointer): Same.
6265 (expand_builtin_set_thread_pointer): Same.
6266 * caller-save.c (setup_save_areas): Same.
6267 (replace_reg_with_saved_mem): Same.
6268 (insert_restore): Same.
6269 (insert_save): Same.
6270 (add_used_regs): Same.
6271 * cfg.c (get_bb_copy): Same.
6272 (set_loop_copy): Same.
6275 * cfgexpand.c (alloc_stack_frame_space): Same.
6276 (add_stack_var): Same.
6277 (add_stack_var_conflict): Same.
6278 (add_scope_conflicts_1): Same.
6279 (update_alias_info_with_stack_vars): Same.
6280 (expand_used_vars): Same.
6281 * cfghooks.c (redirect_edge_and_branch_force): Same.
6282 (delete_basic_block): Same.
6284 (make_forwarder_block): Same.
6285 (force_nonfallthru): Same.
6286 (duplicate_block): Same.
6287 (lv_flush_pending_stmts): Same.
6289 * cfgloop.c (flow_loops_cfg_dump): Same.
6290 (flow_loop_nested_p): Same.
6291 (superloop_at_depth): Same.
6292 (get_loop_latch_edges): Same.
6293 (flow_loop_dump): Same.
6294 (flow_loops_dump): Same.
6295 (flow_loops_free): Same.
6296 (flow_loop_nodes_find): Same.
6297 (establish_preds): Same.
6298 (flow_loop_tree_node_add): Same.
6299 (flow_loop_tree_node_remove): Same.
6300 (flow_loops_find): Same.
6301 (find_subloop_latch_edge_by_profile): Same.
6302 (find_subloop_latch_edge_by_ivs): Same.
6303 (mfb_redirect_edges_in_set): Same.
6304 (form_subloop): Same.
6305 (merge_latch_edges): Same.
6306 (disambiguate_multiple_latches): Same.
6307 (disambiguate_loops_with_multiple_latches): Same.
6308 (flow_bb_inside_loop_p): Same.
6310 (get_loop_body_with_size): Same.
6311 (get_loop_body): Same.
6312 (fill_sons_in_loop): Same.
6313 (get_loop_body_in_dom_order): Same.
6314 (get_loop_body_in_custom_order): Same.
6315 (release_recorded_exits): Same.
6316 (get_loop_exit_edges): Same.
6317 (num_loop_branches): Same.
6318 (remove_bb_from_loops): Same.
6319 (find_common_loop): Same.
6320 (delete_loop): Same.
6321 (cancel_loop): Same.
6322 (verify_loop_structure): Same.
6323 (loop_preheader_edge): Same.
6324 (loop_exit_edge_p): Same.
6325 (single_exit): Same.
6326 (loop_exits_to_bb_p): Same.
6327 (loop_exits_from_bb_p): Same.
6328 (get_loop_location): Same.
6329 (record_niter_bound): Same.
6330 (get_estimated_loop_iterations_int): Same.
6331 (max_stmt_executions_int): Same.
6332 (likely_max_stmt_executions_int): Same.
6333 (get_estimated_loop_iterations): Same.
6334 (get_max_loop_iterations): Same.
6335 (get_max_loop_iterations_int): Same.
6336 (get_likely_max_loop_iterations): Same.
6337 * cfgloop.h (simple_loop_desc): Same.
6341 (loop_iterator::next): Same.
6342 (loop_outermost): Same.
6343 * cfgloopanal.c (mark_irreducible_loops): Same.
6344 (num_loop_insns): Same.
6345 (average_num_loop_insns): Same.
6346 (expected_loop_iterations_unbounded): Same.
6347 (expected_loop_iterations): Same.
6348 (mark_loop_exit_edges): Same.
6349 (single_likely_exit): Same.
6350 * cfgloopmanip.c (fix_bb_placement): Same.
6351 (fix_bb_placements): Same.
6352 (remove_path): Same.
6353 (place_new_loop): Same.
6355 (scale_loop_frequencies): Same.
6356 (scale_loop_profile): Same.
6357 (create_empty_if_region_on_edge): Same.
6358 (create_empty_loop_on_edge): Same.
6361 (fix_loop_placements): Same.
6362 (copy_loop_info): Same.
6363 (duplicate_loop): Same.
6364 (duplicate_subloops): Same.
6365 (loop_redirect_edge): Same.
6366 (can_duplicate_loop_p): Same.
6367 (duplicate_loop_to_header_edge): Same.
6368 (mfb_keep_just): Same.
6369 (has_preds_from_loop): Same.
6370 (create_preheader): Same.
6371 (create_preheaders): Same.
6372 (lv_adjust_loop_entry_edge): Same.
6373 (loop_version): Same.
6374 * cfgloopmanip.h: Same.
6376 * cgraphbuild.c: Same.
6377 * combine.c (make_extraction): Same.
6378 * config/i386/i386-features.c: Same.
6379 * config/i386/i386-features.h: Same.
6380 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
6381 (ix86_emit_outlined_ms2sysv_restore): Same.
6382 (ix86_noce_conversion_profitable_p): Same.
6383 (ix86_init_cost): Same.
6384 (ix86_simd_clone_usable): Same.
6385 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
6387 * coretypes.h: Same.
6388 * data-streamer-in.c (string_for_index): Change class-key of PODs
6389 to struct and others to class.
6390 (streamer_read_indexed_string): Same.
6391 (streamer_read_string): Same.
6392 (bp_unpack_indexed_string): Same.
6393 (bp_unpack_string): Same.
6394 (streamer_read_uhwi): Same.
6395 (streamer_read_hwi): Same.
6396 (streamer_read_gcov_count): Same.
6397 (streamer_read_wide_int): Same.
6398 * data-streamer.h (streamer_write_bitpack): Same.
6399 (bp_unpack_value): Same.
6400 (streamer_write_char_stream): Same.
6401 (streamer_write_hwi_in_range): Same.
6402 (streamer_write_record_start): Same.
6403 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
6404 (add_cross_iteration_register_deps): Same.
6405 (build_intra_loop_deps): Same.
6406 * df-core.c (df_analyze): Same.
6407 (loop_post_order_compute): Same.
6408 (loop_inverted_post_order_compute): Same.
6409 * df-problems.c (df_rd_alloc): Same.
6410 (df_rd_simulate_one_insn): Same.
6411 (df_rd_local_compute): Same.
6412 (df_rd_init_solution): Same.
6413 (df_rd_confluence_n): Same.
6414 (df_rd_transfer_function): Same.
6416 (df_rd_dump_defs_set): Same.
6417 (df_rd_top_dump): Same.
6418 (df_lr_alloc): Same.
6419 (df_lr_reset): Same.
6420 (df_lr_local_compute): Same.
6422 (df_lr_confluence_n): Same.
6424 (df_lr_top_dump): Same.
6425 (df_lr_verify_transfer_functions): Same.
6426 (df_live_alloc): Same.
6427 (df_live_reset): Same.
6428 (df_live_init): Same.
6429 (df_live_confluence_n): Same.
6430 (df_live_finalize): Same.
6431 (df_live_free): Same.
6432 (df_live_top_dump): Same.
6433 (df_live_verify_transfer_functions): Same.
6434 (df_mir_alloc): Same.
6435 (df_mir_reset): Same.
6436 (df_mir_init): Same.
6437 (df_mir_confluence_n): Same.
6438 (df_mir_free): Same.
6439 (df_mir_top_dump): Same.
6440 (df_word_lr_alloc): Same.
6441 (df_word_lr_reset): Same.
6442 (df_word_lr_init): Same.
6443 (df_word_lr_confluence_n): Same.
6444 (df_word_lr_free): Same.
6445 (df_word_lr_top_dump): Same.
6446 (df_md_alloc): Same.
6447 (df_md_simulate_one_insn): Same.
6448 (df_md_reset): Same.
6451 (df_md_top_dump): Same.
6452 * df-scan.c (df_insn_delete): Same.
6453 (df_insn_rescan): Same.
6454 (df_notes_rescan): Same.
6455 (df_sort_and_compress_mws): Same.
6456 (df_install_mws): Same.
6457 (df_refs_add_to_chains): Same.
6458 (df_ref_create_structure): Same.
6459 (df_ref_record): Same.
6460 (df_def_record_1): Same.
6461 (df_find_hard_reg_defs): Same.
6462 (df_uses_record): Same.
6463 (df_get_conditional_uses): Same.
6464 (df_get_call_refs): Same.
6465 (df_recompute_luids): Same.
6466 (df_get_entry_block_def_set): Same.
6467 (df_entry_block_defs_collect): Same.
6468 (df_get_exit_block_use_set): Same.
6469 (df_exit_block_uses_collect): Same.
6470 (df_mws_verify): Same.
6471 (df_bb_verify): Same.
6472 * df.h (df_scan_get_bb_info): Same.
6473 * doc/tm.texi: Same.
6474 * dse.c (record_store): Same.
6476 * emit-rtl.c (const_fixed_hasher::equal): Same.
6477 (set_mem_attributes_minus_bitpos): Same.
6478 (change_address): Same.
6479 (adjust_address_1): Same.
6480 (offset_address): Same.
6482 * except.c (dw2_build_landing_pads): Same.
6483 (sjlj_emit_dispatch_table): Same.
6484 * explow.c (allocate_dynamic_stack_space): Same.
6485 (emit_stack_probe): Same.
6486 (probe_stack_range): Same.
6487 * expmed.c (store_bit_field_using_insv): Same.
6488 (store_bit_field_1): Same.
6489 (store_integral_bit_field): Same.
6490 (extract_bit_field_using_extv): Same.
6491 (extract_bit_field_1): Same.
6492 (emit_cstore): Same.
6493 * expr.c (emit_block_move_via_cpymem): Same.
6494 (expand_cmpstrn_or_cmpmem): Same.
6495 (set_storage_via_setmem): Same.
6496 (emit_single_push_insn_1): Same.
6497 (expand_assignment): Same.
6498 (store_constructor): Same.
6499 (expand_expr_real_2): Same.
6500 (expand_expr_real_1): Same.
6503 * function.c (try_fit_stack_local): Same.
6504 (assign_stack_local_1): Same.
6505 (assign_stack_local): Same.
6506 (cut_slot_from_list): Same.
6507 (insert_slot_to_list): Same.
6508 (max_slot_level): Same.
6509 (move_slot_to_level): Same.
6510 (temp_address_hasher::equal): Same.
6511 (remove_unused_temp_slot_addresses): Same.
6512 (assign_temp): Same.
6513 (combine_temp_slots): Same.
6514 (update_temp_slot_address): Same.
6515 (preserve_temp_slots): Same.
6518 * gcc-rich-location.h: Same.
6520 * genattrtab.c (check_attr_test): Same.
6521 (check_attr_value): Same.
6522 (convert_set_attr_alternative): Same.
6523 (convert_set_attr): Same.
6525 (copy_boolean): Same.
6526 (get_attr_value): Same.
6527 (expand_delays): Same.
6528 (make_length_attrs): Same.
6530 (make_alternative_compare): Same.
6531 (simplify_test_exp): Same.
6532 (tests_attr_p): Same.
6533 (get_attr_order): Same.
6534 (clear_struct_flag): Same.
6536 (compares_alternatives_p): Same.
6539 (find_attrs_to_cache): Same.
6540 (write_test_expr): Same.
6541 (walk_attr_value): Same.
6542 (write_attr_get): Same.
6543 (eliminate_known_true): Same.
6544 (write_insn_cases): Same.
6545 (write_attr_case): Same.
6546 (write_attr_valueq): Same.
6547 (write_attr_value): Same.
6548 (write_dummy_eligible_delay): Same.
6549 (next_comma_elt): Same.
6551 (make_internal_attr): Same.
6552 (copy_rtx_unchanging): Same.
6553 (gen_insn_reserv): Same.
6554 (check_tune_attr): Same.
6555 (make_automaton_attrs): Same.
6557 * genextract.c (gen_insn): Same.
6558 (VEC_char_to_string): Same.
6559 * genmatch.c (print_operand): Same.
6561 (parser::parse_operation): Same.
6562 (parser::parse_capture): Same.
6563 (parser::parse_c_expr): Same.
6564 (parser::parse_simplify): Same.
6566 * genoutput.c (output_operand_data): Same.
6567 (output_get_insn_name): Same.
6568 (compare_operands): Same.
6569 (place_operands): Same.
6570 (process_template): Same.
6571 (validate_insn_alternatives): Same.
6572 (validate_insn_operands): Same.
6574 (note_constraint): Same.
6575 * genpreds.c (write_one_predicate_function): Same.
6576 (add_constraint): Same.
6577 (process_define_register_constraint): Same.
6578 (write_lookup_constraint_1): Same.
6579 (write_lookup_constraint_array): Same.
6580 (write_insn_constraint_len): Same.
6581 (write_reg_class_for_constraint_1): Same.
6582 (write_constraint_satisfied_p_array): Same.
6583 * genrecog.c (optimize_subroutine_group): Same.
6584 * gensupport.c (process_define_predicate): Same.
6585 (queue_pattern): Same.
6586 (remove_from_queue): Same.
6587 (process_rtx): Same.
6588 (is_predicable): Same.
6589 (change_subst_attribute): Same.
6590 (subst_pattern_match): Same.
6591 (alter_constraints): Same.
6592 (alter_attrs_for_insn): Same.
6593 (shift_output_template): Same.
6594 (alter_output_for_subst_insn): Same.
6595 (process_one_cond_exec): Same.
6597 (process_define_cond_exec): Same.
6598 (mnemonic_htab_callback): Same.
6599 (gen_mnemonic_attr): Same.
6600 (read_md_rtx): Same.
6602 * gimple-loop-interchange.cc (dump_reduction): Same.
6603 (dump_induction): Same.
6604 (loop_cand::~loop_cand): Same.
6605 (free_data_refs_with_aux): Same.
6606 (tree_loop_interchange::interchange_loops): Same.
6607 (tree_loop_interchange::map_inductions_to_loop): Same.
6608 (tree_loop_interchange::move_code_to_inner_loop): Same.
6609 (compute_access_stride): Same.
6610 (compute_access_strides): Same.
6611 (proper_loop_form_for_interchange): Same.
6612 (tree_loop_interchange_compute_ddrs): Same.
6613 (prune_datarefs_not_in_loop): Same.
6614 (prepare_data_references): Same.
6615 (pass_linterchange::execute): Same.
6616 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
6617 (unroll_jam_possible_p): Same.
6619 (adjust_unroll_factor): Same.
6620 (tree_loop_unroll_and_jam): Same.
6621 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
6622 (loop_versioning::expensive_stmt_p): Same.
6623 (loop_versioning::version_for_unity): Same.
6624 (loop_versioning::dump_inner_likelihood): Same.
6625 (loop_versioning::find_per_loop_multiplication): Same.
6626 (loop_versioning::analyze_term_using_scevs): Same.
6627 (loop_versioning::record_address_fragment): Same.
6628 (loop_versioning::analyze_expr): Same.
6629 (loop_versioning::analyze_blocks): Same.
6630 (loop_versioning::prune_conditions): Same.
6631 (loop_versioning::merge_loop_info): Same.
6632 (loop_versioning::add_loop_to_queue): Same.
6633 (loop_versioning::decide_whether_loop_is_versionable): Same.
6634 (loop_versioning::make_versioning_decisions): Same.
6635 (loop_versioning::implement_versioning_decisions): Same.
6636 * gimple-ssa-evrp-analyze.c
6637 (evrp_range_analyzer::record_ranges_from_phis): Same.
6638 * gimple-ssa-store-merging.c (split_store::split_store): Same.
6639 (count_multiple_uses): Same.
6640 (split_group): Same.
6641 (imm_store_chain_info::output_merged_store): Same.
6642 (pass_store_merging::process_store): Same.
6643 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
6644 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
6646 (alloca_call_type): Same.
6647 (pass_walloca::execute): Same.
6648 * gimple-streamer-in.c (input_phi): Same.
6649 (input_gimple_stmt): Same.
6650 * gimple-streamer.h: Same.
6651 * godump.c (go_force_record_alignment): Same.
6652 (go_format_type): Same.
6653 (go_output_type): Same.
6654 (go_output_fndecl): Same.
6655 (go_output_typedef): Same.
6656 (keyword_hash_init): Same.
6657 (find_dummy_types): Same.
6658 * graph.c (draw_cfg_nodes_no_loops): Same.
6659 (draw_cfg_nodes_for_loop): Same.
6660 * hard-reg-set.h (hard_reg_set_iter_next): Same.
6662 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
6663 * hsa-dump.c (dump_hsa_cfun): Same.
6664 * hsa-gen.c (gen_function_def_parameters): Same.
6665 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
6666 * input.c (dump_line_table_statistics): Same.
6669 * internal-fn.c (get_multi_vector_move): Same.
6670 (expand_load_lanes_optab_fn): Same.
6671 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
6672 (expand_GOMP_SIMT_EXIT): Same.
6673 (expand_GOMP_SIMT_LAST_LANE): Same.
6674 (expand_GOMP_SIMT_ORDERED_PRED): Same.
6675 (expand_GOMP_SIMT_VOTE_ANY): Same.
6676 (expand_GOMP_SIMT_XCHG_BFLY): Same.
6677 (expand_GOMP_SIMT_XCHG_IDX): Same.
6678 (expand_addsub_overflow): Same.
6679 (expand_neg_overflow): Same.
6680 (expand_mul_overflow): Same.
6681 (expand_call_mem_ref): Same.
6682 (expand_mask_load_optab_fn): Same.
6683 (expand_scatter_store_optab_fn): Same.
6684 (expand_gather_load_optab_fn): Same.
6685 * ipa-cp.c (ipa_get_parm_lattices): Same.
6686 (print_all_lattices): Same.
6687 (ignore_edge_p): Same.
6688 (build_toporder_info): Same.
6689 (free_toporder_info): Same.
6690 (push_node_to_stack): Same.
6691 (ipcp_lattice<valtype>::set_contains_variable): Same.
6692 (set_agg_lats_to_bottom): Same.
6693 (ipcp_bits_lattice::meet_with): Same.
6694 (set_single_call_flag): Same.
6695 (initialize_node_lattices): Same.
6696 (ipa_get_jf_ancestor_result): Same.
6697 (ipcp_verify_propagated_values): Same.
6698 (propagate_scalar_across_jump_function): Same.
6699 (propagate_context_across_jump_function): Same.
6700 (propagate_bits_across_jump_function): Same.
6701 (ipa_vr_operation_and_type_effects): Same.
6702 (propagate_vr_across_jump_function): Same.
6703 (set_check_aggs_by_ref): Same.
6704 (set_chain_of_aglats_contains_variable): Same.
6705 (merge_aggregate_lattices): Same.
6706 (agg_pass_through_permissible_p): Same.
6707 (propagate_aggs_across_jump_function): Same.
6708 (call_passes_through_thunk_p): Same.
6709 (propagate_constants_across_call): Same.
6710 (devirtualization_time_bonus): Same.
6711 (good_cloning_opportunity_p): Same.
6712 (context_independent_aggregate_values): Same.
6713 (gather_context_independent_values): Same.
6714 (perform_estimation_of_a_value): Same.
6715 (estimate_local_effects): Same.
6716 (value_topo_info<valtype>::add_val): Same.
6717 (add_all_node_vals_to_toposort): Same.
6718 (value_topo_info<valtype>::propagate_effects): Same.
6719 (ipcp_propagate_stage): Same.
6720 (ipcp_discover_new_direct_edges): Same.
6721 (same_node_or_its_all_contexts_clone_p): Same.
6722 (cgraph_edge_brings_value_p): Same.
6723 (gather_edges_for_value): Same.
6724 (create_specialized_node): Same.
6725 (find_more_scalar_values_for_callers_subset): Same.
6726 (find_more_contexts_for_caller_subset): Same.
6727 (copy_plats_to_inter): Same.
6728 (intersect_aggregates_with_edge): Same.
6729 (find_aggregate_values_for_callers_subset): Same.
6730 (cgraph_edge_brings_all_agg_vals_for_node): Same.
6731 (decide_about_value): Same.
6732 (decide_whether_version_node): Same.
6733 (spread_undeadness): Same.
6734 (identify_dead_nodes): Same.
6735 (ipcp_store_vr_results): Same.
6736 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
6737 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
6738 (redirect_to_unreachable): Same.
6739 (edge_set_predicate): Same.
6740 (evaluate_conditions_for_known_args): Same.
6741 (evaluate_properties_for_edge): Same.
6742 (ipa_fn_summary_t::duplicate): Same.
6743 (ipa_call_summary_t::duplicate): Same.
6744 (dump_ipa_call_summary): Same.
6745 (ipa_dump_fn_summary): Same.
6746 (eliminated_by_inlining_prob): Same.
6747 (set_cond_stmt_execution_predicate): Same.
6748 (set_switch_stmt_execution_predicate): Same.
6749 (compute_bb_predicates): Same.
6750 (will_be_nonconstant_expr_predicate): Same.
6751 (phi_result_unknown_predicate): Same.
6752 (analyze_function_body): Same.
6753 (compute_fn_summary): Same.
6754 (estimate_edge_devirt_benefit): Same.
6755 (estimate_edge_size_and_time): Same.
6756 (estimate_calls_size_and_time): Same.
6757 (estimate_node_size_and_time): Same.
6758 (remap_edge_change_prob): Same.
6759 (remap_edge_summaries): Same.
6760 (ipa_merge_fn_summary_after_inlining): Same.
6761 (ipa_fn_summary_generate): Same.
6762 (inline_read_section): Same.
6763 (ipa_fn_summary_read): Same.
6764 (ipa_fn_summary_write): Same.
6765 * ipa-fnsummary.h: Same.
6766 * ipa-hsa.c (ipa_hsa_read_section): Same.
6767 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
6768 * ipa-icf.c (sem_function::param_used_p): Same.
6769 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
6770 * ipa-inline.c (edge_badness): Same.
6771 (inline_small_functions): Same.
6772 * ipa-polymorphic-call.c
6773 (ipa_polymorphic_call_context::stream_out): Same.
6774 * ipa-predicate.c (predicate::remap_after_duplication): Same.
6775 (predicate::remap_after_inlining): Same.
6776 (predicate::stream_out): Same.
6777 * ipa-predicate.h: Same.
6778 * ipa-profile.c (ipa_profile_read_summary): Same.
6779 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
6780 (count_formal_params): Same.
6781 (ipa_dump_param): Same.
6782 (ipa_alloc_node_params): Same.
6783 (ipa_print_node_jump_functions_for_edge): Same.
6784 (ipa_print_node_jump_functions): Same.
6785 (ipa_load_from_parm_agg): Same.
6786 (get_ancestor_addr_info): Same.
6787 (ipa_compute_jump_functions_for_edge): Same.
6788 (ipa_analyze_virtual_call_uses): Same.
6789 (ipa_analyze_stmt_uses): Same.
6790 (ipa_analyze_params_uses_in_bb): Same.
6791 (update_jump_functions_after_inlining): Same.
6792 (try_decrement_rdesc_refcount): Same.
6793 (ipa_impossible_devirt_target): Same.
6794 (update_indirect_edges_after_inlining): Same.
6795 (combine_controlled_uses_counters): Same.
6796 (ipa_edge_args_sum_t::duplicate): Same.
6797 (ipa_write_jump_function): Same.
6798 (ipa_write_indirect_edge_info): Same.
6799 (ipa_write_node_info): Same.
6800 (ipa_read_edge_info): Same.
6801 (ipa_prop_read_section): Same.
6802 (read_replacements_section): Same.
6803 * ipa-prop.h (ipa_get_param_count): Same.
6804 (ipa_get_param): Same.
6805 (ipa_get_type): Same.
6806 (ipa_get_param_move_cost): Same.
6807 (ipa_set_param_used): Same.
6808 (ipa_get_controlled_uses): Same.
6809 (ipa_set_controlled_uses): Same.
6810 (ipa_get_cs_argument_count): Same.
6811 * ipa-pure-const.c (analyze_function): Same.
6812 (pure_const_read_summary): Same.
6814 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
6815 * ipa-split.c (test_nonssa_use): Same.
6816 (dump_split_point): Same.
6817 (dominated_by_forbidden): Same.
6818 (split_part_set_ssa_name_p): Same.
6819 (find_split_points): Same.
6820 * ira-build.c (finish_loop_tree_nodes): Same.
6821 (low_pressure_loop_node_p): Same.
6822 * ira-color.c (ira_reuse_stack_slot): Same.
6824 * ira.c (setup_reg_equiv): Same.
6825 (print_insn_chain): Same.
6827 * loop-doloop.c (doloop_condition_get): Same.
6829 (record_reg_sets): Same.
6830 (doloop_optimize): Same.
6831 * loop-init.c (loop_optimizer_init): Same.
6832 (fix_loop_structure): Same.
6833 * loop-invariant.c (merge_identical_invariants): Same.
6834 (compute_always_reached): Same.
6836 (may_assign_reg_p): Same.
6837 (find_invariants_bb): Same.
6838 (find_invariants_body): Same.
6839 (replace_uses): Same.
6840 (can_move_invariant_reg): Same.
6841 (free_inv_motion_data): Same.
6842 (move_single_loop_invariants): Same.
6843 (change_pressure): Same.
6844 (mark_ref_regs): Same.
6845 (calculate_loop_reg_pressure): Same.
6846 * loop-iv.c (biv_entry_hasher::equal): Same.
6847 (iv_extend_to_rtx_code): Same.
6848 (check_iv_ref_table_size): Same.
6849 (clear_iv_info): Same.
6850 (latch_dominating_def): Same.
6851 (iv_get_reaching_def): Same.
6852 (iv_constant): Same.
6858 (get_biv_step): Same.
6860 (analyzed_for_bivness_p): Same.
6862 (iv_analyze_biv): Same.
6863 (iv_analyze_expr): Same.
6864 (iv_analyze_def): Same.
6865 (iv_analyze_op): Same.
6867 (iv_analyze_result): Same.
6869 (eliminate_implied_conditions): Same.
6870 (simplify_using_initial_values): Same.
6871 (shorten_into_mode): Same.
6872 (canonicalize_iv_subregs): Same.
6873 (determine_max_iter): Same.
6874 (check_simple_exit): Same.
6875 (find_simple_exit): Same.
6876 (get_simple_loop_desc): Same.
6877 * loop-unroll.c (report_unroll): Same.
6878 (decide_unrolling): Same.
6879 (unroll_loops): Same.
6880 (loop_exit_at_end_p): Same.
6881 (decide_unroll_constant_iterations): Same.
6882 (unroll_loop_constant_iterations): Same.
6883 (compare_and_jump_seq): Same.
6884 (unroll_loop_runtime_iterations): Same.
6885 (decide_unroll_stupid): Same.
6886 (unroll_loop_stupid): Same.
6887 (referenced_in_one_insn_in_loop_p): Same.
6888 (reset_debug_uses_in_loop): Same.
6889 (analyze_iv_to_split_insn): Same.
6890 * lra-eliminations.c (lra_debug_elim_table): Same.
6891 (setup_can_eliminate): Same.
6893 (lra_get_elimination_hard_regno): Same.
6894 (lra_eliminate_regs_1): Same.
6895 (eliminate_regs_in_insn): Same.
6896 (update_reg_eliminate): Same.
6897 (init_elimination): Same.
6898 (lra_eliminate): Same.
6900 * lra-lives.c (initiate_live_solver): Same.
6901 * lra-remat.c (create_remat_bb_data): Same.
6902 * lra-spills.c (lra_spill): Same.
6903 * lra.c (lra_set_insn_recog_data): Same.
6904 (lra_set_used_insn_alternative_by_uid): Same.
6905 (init_reg_info): Same.
6906 (expand_reg_info): Same.
6907 * lto-cgraph.c (output_symtab): Same.
6908 (read_identifier): Same.
6909 (get_alias_symbol): Same.
6911 (input_varpool_node): Same.
6914 (input_cgraph_1): Same.
6916 (input_symtab): Same.
6917 (input_offload_tables): Same.
6918 (output_cgraph_opt_summary): Same.
6919 (input_edge_opt_summary): Same.
6920 (input_cgraph_opt_section): Same.
6921 * lto-section-in.c (lto_free_raw_section_data): Same.
6922 (lto_create_simple_input_block): Same.
6923 (lto_free_function_in_decl_state_for_node): Same.
6924 * lto-streamer-in.c (lto_tag_check_set): Same.
6925 (lto_location_cache::revert_location_cache): Same.
6926 (lto_location_cache::input_location): Same.
6927 (lto_input_location): Same.
6928 (stream_input_location_now): Same.
6929 (lto_input_tree_ref): Same.
6930 (lto_input_eh_catch_list): Same.
6931 (input_eh_region): Same.
6932 (lto_init_eh): Same.
6933 (make_new_block): Same.
6935 (fixup_call_stmt_edges): Same.
6936 (input_struct_function_base): Same.
6937 (input_function): Same.
6938 (lto_read_body_or_constructor): Same.
6939 (lto_read_tree_1): Same.
6940 (lto_read_tree): Same.
6941 (lto_input_scc): Same.
6942 (lto_input_tree_1): Same.
6943 (lto_input_toplevel_asms): Same.
6944 (lto_input_mode_table): Same.
6945 (lto_reader_init): Same.
6946 (lto_data_in_create): Same.
6947 * lto-streamer-out.c (output_cfg): Same.
6948 * lto-streamer.h: Same.
6949 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6950 (generate_prolog_epilog): Same.
6951 (mark_loop_unsched): Same.
6952 (dump_insn_location): Same.
6953 (loop_canon_p): Same.
6954 (sms_schedule): Same.
6955 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6956 (expand_omp_for_generic): Same.
6957 (expand_omp_for_static_nochunk): Same.
6958 (expand_omp_for_static_chunk): Same.
6959 (expand_omp_simd): Same.
6960 (expand_omp_taskloop_for_inner): Same.
6961 (expand_oacc_for): Same.
6962 (expand_omp_atomic_pipeline): Same.
6963 (mark_loops_in_oacc_kernels_region): Same.
6964 * omp-offload.c (oacc_xform_loop): Same.
6965 * omp-simd-clone.c (simd_clone_adjust): Same.
6966 * optabs-query.c (get_traditional_extraction_insn): Same.
6967 * optabs.c (expand_vector_broadcast): Same.
6968 (expand_binop_directly): Same.
6969 (expand_twoval_unop): Same.
6970 (expand_twoval_binop): Same.
6971 (expand_unop_direct): Same.
6972 (emit_indirect_jump): Same.
6973 (emit_conditional_move): Same.
6974 (emit_conditional_neg_or_complement): Same.
6975 (emit_conditional_add): Same.
6976 (vector_compare_rtx): Same.
6977 (expand_vec_perm_1): Same.
6978 (expand_vec_perm_const): Same.
6979 (expand_vec_cond_expr): Same.
6980 (expand_vec_series_expr): Same.
6981 (maybe_emit_atomic_exchange): Same.
6982 (maybe_emit_sync_lock_test_and_set): Same.
6983 (expand_atomic_compare_and_swap): Same.
6984 (expand_atomic_load): Same.
6985 (expand_atomic_store): Same.
6986 (maybe_emit_op): Same.
6987 (valid_multiword_target_p): Same.
6988 (create_integer_operand): Same.
6989 (maybe_legitimize_operand_same_code): Same.
6990 (maybe_legitimize_operand): Same.
6991 (create_convert_operand_from_type): Same.
6992 (can_reuse_operands_p): Same.
6993 (maybe_legitimize_operands): Same.
6994 (maybe_gen_insn): Same.
6995 (maybe_expand_insn): Same.
6996 (maybe_expand_jump_insn): Same.
6997 (expand_insn): Same.
6998 * optabs.h (create_expand_operand): Same.
6999 (create_fixed_operand): Same.
7000 (create_output_operand): Same.
7001 (create_input_operand): Same.
7002 (create_convert_operand_to): Same.
7003 (create_convert_operand_from): Same.
7006 * predict.c (optimize_insn_for_speed_p): Same.
7007 (optimize_loop_for_size_p): Same.
7008 (optimize_loop_for_speed_p): Same.
7009 (optimize_loop_nest_for_speed_p): Same.
7010 (get_base_value): Same.
7011 (predicted_by_loop_heuristics_p): Same.
7012 (predict_extra_loop_exits): Same.
7013 (predict_loops): Same.
7014 (predict_paths_for_bb): Same.
7015 (predict_paths_leading_to): Same.
7016 (propagate_freq): Same.
7017 (pass_profile::execute): Same.
7019 * profile-count.c (profile_count::differs_from_p): Same.
7020 (profile_probability::differs_lot_from_p): Same.
7021 * profile-count.h: Same.
7022 * profile.c (branch_prob): Same.
7023 * regrename.c (free_chain_data): Same.
7024 (mark_conflict): Same.
7025 (create_new_chain): Same.
7026 (merge_overlapping_regs): Same.
7027 (init_rename_info): Same.
7028 (merge_chains): Same.
7029 (regrename_analyze): Same.
7030 (regrename_do_replace): Same.
7031 (scan_rtx_reg): Same.
7032 (record_out_operands): Same.
7033 (build_def_use): Same.
7034 * regrename.h: Same.
7036 * reload1.c (init_reload): Same.
7037 (maybe_fix_stack_asms): Same.
7038 (copy_reloads): Same.
7039 (count_pseudo): Same.
7040 (count_spilled_pseudo): Same.
7042 (find_reload_regs): Same.
7043 (select_reload_regs): Same.
7044 (spill_hard_reg): Same.
7045 (fixup_eh_region_note): Same.
7046 (set_reload_reg): Same.
7047 (allocate_reload_reg): Same.
7048 (compute_reload_subreg_offset): Same.
7049 (reload_adjust_reg_for_icode): Same.
7050 (emit_input_reload_insns): Same.
7051 (emit_output_reload_insns): Same.
7052 (do_input_reload): Same.
7053 (inherit_piecemeal_p): Same.
7055 * sanopt.c (maybe_get_dominating_check): Same.
7056 (maybe_optimize_ubsan_ptr_ifn): Same.
7057 (can_remove_asan_check): Same.
7058 (maybe_optimize_asan_check_ifn): Same.
7059 (sanopt_optimize_walker): Same.
7060 * sched-deps.c (add_dependence_list): Same.
7061 (chain_to_prev_insn): Same.
7062 (add_insn_mem_dependence): Same.
7063 (create_insn_reg_set): Same.
7064 (maybe_extend_reg_info_p): Same.
7065 (sched_analyze_reg): Same.
7066 (sched_analyze_1): Same.
7067 (get_implicit_reg_pending_clobbers): Same.
7068 (chain_to_prev_insn_p): Same.
7069 (deps_analyze_insn): Same.
7070 (deps_start_bb): Same.
7071 (sched_free_deps): Same.
7073 (init_deps_reg_last): Same.
7075 * sched-ebb.c: Same.
7076 * sched-int.h: Same.
7077 * sched-rgn.c (add_branch_dependences): Same.
7078 (concat_insn_mem_list): Same.
7080 (sched_rgn_compute_dependencies): Same.
7081 * sel-sched-ir.c (reset_target_context): Same.
7082 (copy_deps_context): Same.
7083 (init_id_from_df): Same.
7084 (has_dependence_p): Same.
7085 (change_loops_latches): Same.
7086 (bb_top_order_comparator): Same.
7087 (make_region_from_loop_preheader): Same.
7088 (sel_init_pipelining): Same.
7089 (get_loop_nest_for_rgn): Same.
7090 (make_regions_from_the_rest): Same.
7091 (sel_is_loop_preheader_p): Same.
7092 * sel-sched-ir.h (inner_loop_header_p): Same.
7093 (get_all_loop_exits): Same.
7095 * sese.c (sese_build_liveouts): Same.
7096 (sese_insert_phis_for_liveouts): Same.
7097 * sese.h (defined_in_sese_p): Same.
7098 * sreal.c (sreal::stream_out): Same.
7100 * streamer-hooks.h: Same.
7101 * target-globals.c (save_target_globals): Same.
7102 * target-globals.h: Same.
7105 * targhooks.c (default_has_ifunc_p): Same.
7106 (default_empty_mask_is_expensive): Same.
7107 (default_init_cost): Same.
7108 * targhooks.h: Same.
7110 * tree-affine.c (aff_combination_mult): Same.
7111 (aff_combination_expand): Same.
7112 (aff_combination_constant_multiple_p): Same.
7113 * tree-affine.h: Same.
7114 * tree-cfg.c (build_gimple_cfg): Same.
7115 (replace_loop_annotate_in_block): Same.
7116 (replace_uses_by): Same.
7118 (dump_cfg_stats): Same.
7119 (gimple_duplicate_sese_region): Same.
7120 (gimple_duplicate_sese_tail): Same.
7121 (move_block_to_fn): Same.
7122 (replace_block_vars_by_duplicates): Same.
7123 (move_sese_region_to_fn): Same.
7124 (print_loops_bb): Same.
7126 (print_loops): Same.
7128 (debug_loops): Same.
7130 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
7131 (chrec_fold_multiply_poly_poly): Same.
7132 (chrec_evaluate): Same.
7133 (chrec_component_in_loop_num): Same.
7134 (reset_evolution_in_loop): Same.
7135 (is_multivariate_chrec): Same.
7136 (chrec_contains_symbols): Same.
7137 (nb_vars_in_chrec): Same.
7138 (chrec_convert_1): Same.
7139 (chrec_convert_aggressive): Same.
7140 * tree-chrec.h: Same.
7141 * tree-core.h: Same.
7142 * tree-data-ref.c (dump_data_dependence_relation): Same.
7143 (canonicalize_base_object_address): Same.
7144 (data_ref_compare_tree): Same.
7145 (prune_runtime_alias_test_list): Same.
7146 (get_segment_min_max): Same.
7147 (create_intersect_range_checks): Same.
7148 (conflict_fn_no_dependence): Same.
7149 (object_address_invariant_in_loop_p): Same.
7150 (analyze_ziv_subscript): Same.
7151 (analyze_siv_subscript_cst_affine): Same.
7152 (analyze_miv_subscript): Same.
7153 (analyze_overlapping_iterations): Same.
7154 (build_classic_dist_vector_1): Same.
7155 (add_other_self_distances): Same.
7156 (same_access_functions): Same.
7157 (build_classic_dir_vector): Same.
7158 (subscript_dependence_tester_1): Same.
7159 (subscript_dependence_tester): Same.
7160 (access_functions_are_affine_or_constant_p): Same.
7161 (get_references_in_stmt): Same.
7162 (loop_nest_has_data_refs): Same.
7163 (graphite_find_data_references_in_stmt): Same.
7164 (find_data_references_in_bb): Same.
7165 (get_base_for_alignment): Same.
7166 (find_loop_nest_1): Same.
7167 (find_loop_nest): Same.
7168 * tree-data-ref.h (dr_alignment): Same.
7169 (ddr_dependence_level): Same.
7170 * tree-if-conv.c (fold_build_cond_expr): Same.
7171 (add_to_predicate_list): Same.
7172 (add_to_dst_predicate_list): Same.
7173 (phi_convertible_by_degenerating_args): Same.
7174 (idx_within_array_bound): Same.
7175 (all_preds_critical_p): Same.
7176 (pred_blocks_visited_p): Same.
7177 (predicate_bbs): Same.
7178 (build_region): Same.
7179 (if_convertible_loop_p_1): Same.
7180 (is_cond_scalar_reduction): Same.
7181 (predicate_scalar_phi): Same.
7182 (remove_conditions_and_labels): Same.
7183 (combine_blocks): Same.
7184 (version_loop_for_if_conversion): Same.
7185 (versionable_outer_loop_p): Same.
7186 (ifcvt_local_dce): Same.
7187 (tree_if_conversion): Same.
7188 (pass_if_conversion::gate): Same.
7189 * tree-if-conv.h: Same.
7190 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
7191 * tree-loop-distribution.c (bb_top_order_cmp): Same.
7193 (stmt_has_scalar_dependences_outside_loop): Same.
7194 (copy_loop_before): Same.
7195 (create_bb_after_loop): Same.
7196 (const_with_all_bytes_same): Same.
7197 (generate_memset_builtin): Same.
7198 (generate_memcpy_builtin): Same.
7199 (destroy_loop): Same.
7200 (build_rdg_partition_for_vertex): Same.
7201 (compute_access_range): Same.
7202 (data_ref_segment_size): Same.
7203 (latch_dominated_by_data_ref): Same.
7204 (compute_alias_check_pairs): Same.
7205 (fuse_memset_builtins): Same.
7206 (finalize_partitions): Same.
7207 (find_seed_stmts_for_distribution): Same.
7208 (prepare_perfect_loop_nest): Same.
7209 * tree-parloops.c (lambda_transform_legal_p): Same.
7210 (loop_parallel_p): Same.
7211 (reduc_stmt_res): Same.
7212 (add_field_for_name): Same.
7213 (create_call_for_reduction_1): Same.
7214 (replace_uses_in_bb_by): Same.
7215 (transform_to_exit_first_loop_alt): Same.
7216 (try_transform_to_exit_first_loop_alt): Same.
7217 (transform_to_exit_first_loop): Same.
7219 (gen_parallel_loop): Same.
7220 (gather_scalar_reductions): Same.
7221 (get_omp_data_i_param): Same.
7222 (try_create_reduction_list): Same.
7223 (oacc_entry_exit_single_gang): Same.
7224 (parallelize_loops): Same.
7225 * tree-pass.h: Same.
7226 * tree-predcom.c (determine_offset): Same.
7227 (last_always_executed_block): Same.
7228 (split_data_refs_to_components): Same.
7229 (suitable_component_p): Same.
7230 (valid_initializer_p): Same.
7231 (find_looparound_phi): Same.
7232 (insert_looparound_copy): Same.
7233 (add_looparound_copies): Same.
7234 (determine_roots_comp): Same.
7235 (predcom_tmp_var): Same.
7236 (initialize_root_vars): Same.
7237 (initialize_root_vars_store_elim_1): Same.
7238 (initialize_root_vars_store_elim_2): Same.
7239 (finalize_eliminated_stores): Same.
7240 (initialize_root_vars_lm): Same.
7241 (remove_stmt): Same.
7242 (determine_unroll_factor): Same.
7243 (execute_pred_commoning_cbck): Same.
7244 (base_names_in_chain_on): Same.
7245 (combine_chains): Same.
7246 (pcom_stmt_dominates_stmt_p): Same.
7247 (try_combine_chains): Same.
7248 (prepare_initializers_chain_store_elim): Same.
7249 (prepare_initializers_chain): Same.
7250 (prepare_initializers): Same.
7251 (prepare_finalizers_chain): Same.
7252 (prepare_finalizers): Same.
7253 (insert_init_seqs): Same.
7254 * tree-scalar-evolution.c (loop_phi_node_p): Same.
7255 (compute_overall_effect_of_inner_loop): Same.
7256 (add_to_evolution_1): Same.
7257 (add_to_evolution): Same.
7258 (follow_ssa_edge_binary): Same.
7259 (follow_ssa_edge_expr): Same.
7260 (backedge_phi_arg_p): Same.
7261 (follow_ssa_edge_in_condition_phi_branch): Same.
7262 (follow_ssa_edge_in_condition_phi): Same.
7263 (follow_ssa_edge_inner_loop_phi): Same.
7264 (follow_ssa_edge): Same.
7265 (analyze_evolution_in_loop): Same.
7266 (analyze_initial_condition): Same.
7267 (interpret_loop_phi): Same.
7268 (interpret_condition_phi): Same.
7269 (interpret_rhs_expr): Same.
7270 (interpret_expr): Same.
7271 (interpret_gimple_assign): Same.
7272 (analyze_scalar_evolution_1): Same.
7273 (analyze_scalar_evolution): Same.
7274 (analyze_scalar_evolution_for_address_of): Same.
7275 (get_instantiated_value_entry): Same.
7276 (loop_closed_phi_def): Same.
7277 (instantiate_scev_name): Same.
7278 (instantiate_scev_poly): Same.
7279 (instantiate_scev_binary): Same.
7280 (instantiate_scev_convert): Same.
7281 (instantiate_scev_not): Same.
7282 (instantiate_scev_r): Same.
7283 (instantiate_scev): Same.
7284 (resolve_mixers): Same.
7285 (initialize_scalar_evolutions_analyzer): Same.
7286 (scev_reset_htab): Same.
7288 (derive_simple_iv_with_niters): Same.
7289 (simple_iv_with_niters): Same.
7290 (expression_expensive_p): Same.
7291 (final_value_replacement_loop): Same.
7292 * tree-scalar-evolution.h (block_before_loop): Same.
7293 * tree-ssa-address.h: Same.
7294 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
7295 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
7296 (record_edge_info): Same.
7297 * tree-ssa-live.c (var_map_base_fini): Same.
7298 (remove_unused_locals): Same.
7299 * tree-ssa-live.h: Same.
7300 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
7301 (pass_ch_vect::execute): Same.
7302 (pass_ch::process_loop_p): Same.
7303 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
7304 (movement_possibility): Same.
7305 (outermost_invariant_loop): Same.
7307 (determine_max_movement): Same.
7308 (invariantness_dom_walker::before_dom_children): Same.
7309 (move_computations): Same.
7310 (may_move_till): Same.
7311 (force_move_till_op): Same.
7312 (force_move_till): Same.
7313 (memref_free): Same.
7314 (record_mem_ref_loc): Same.
7315 (set_ref_stored_in_loop): Same.
7316 (mark_ref_stored): Same.
7317 (sort_bbs_in_loop_postorder_cmp): Same.
7318 (sort_locs_in_loop_postorder_cmp): Same.
7319 (analyze_memory_references): Same.
7320 (mem_refs_may_alias_p): Same.
7321 (find_ref_loc_in_loop_cmp): Same.
7322 (rewrite_mem_ref_loc::operator): Same.
7323 (first_mem_ref_loc_1::operator): Same.
7324 (sm_set_flag_if_changed::operator): Same.
7325 (execute_sm_if_changed_flag_set): Same.
7327 (hoist_memory_references): Same.
7328 (ref_always_accessed::operator): Same.
7329 (refs_independent_p): Same.
7330 (record_dep_loop): Same.
7331 (ref_indep_loop_p_1): Same.
7332 (ref_indep_loop_p): Same.
7333 (can_sm_ref_p): Same.
7334 (find_refs_for_sm): Same.
7335 (loop_suitable_for_sm): Same.
7336 (store_motion_loop): Same.
7337 (store_motion): Same.
7338 (fill_always_executed_in): Same.
7339 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
7340 (estimated_unrolled_size): Same.
7341 (loop_edge_to_cancel): Same.
7342 (remove_exits_and_undefined_stmts): Same.
7343 (remove_redundant_iv_tests): Same.
7344 (unloop_loops): Same.
7345 (estimated_peeled_sequence_size): Same.
7346 (try_peel_loop): Same.
7347 (canonicalize_loop_induction_variables): Same.
7348 (canonicalize_induction_variables): Same.
7349 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
7351 (stmt_after_inc_pos): Same.
7352 (contains_abnormal_ssa_name_p): Same.
7353 (niter_for_exit): Same.
7356 (find_givs_in_bb): Same.
7357 (find_induction_variables): Same.
7358 (find_interesting_uses_cond): Same.
7359 (outermost_invariant_loop_for_expr): Same.
7360 (idx_find_step): Same.
7361 (add_candidate_1): Same.
7362 (add_iv_candidate_derived_from_uses): Same.
7363 (alloc_use_cost_map): Same.
7364 (prepare_decl_rtl): Same.
7365 (generic_predict_doloop_p): Same.
7366 (computation_cost): Same.
7367 (determine_common_wider_type): Same.
7368 (get_computation_aff_1): Same.
7369 (get_use_type): Same.
7370 (determine_group_iv_cost_address): Same.
7372 (difference_cannot_overflow_p): Same.
7373 (may_eliminate_iv): Same.
7374 (determine_set_costs): Same.
7375 (cheaper_cost_pair): Same.
7376 (compare_cost_pair): Same.
7377 (iv_ca_cand_for_group): Same.
7378 (iv_ca_recount_cost): Same.
7379 (iv_ca_set_remove_invs): Same.
7380 (iv_ca_set_no_cp): Same.
7381 (iv_ca_set_add_invs): Same.
7382 (iv_ca_set_cp): Same.
7383 (iv_ca_add_group): Same.
7385 (iv_ca_compare_deps): Same.
7386 (iv_ca_delta_reverse): Same.
7387 (iv_ca_delta_commit): Same.
7388 (iv_ca_cand_used_p): Same.
7389 (iv_ca_delta_free): Same.
7393 (iv_ca_extend): Same.
7394 (iv_ca_narrow): Same.
7395 (iv_ca_prune): Same.
7396 (cheaper_cost_with_cand): Same.
7397 (iv_ca_replace): Same.
7398 (try_add_cand_for): Same.
7399 (get_initial_solution): Same.
7400 (try_improve_iv_set): Same.
7401 (find_optimal_iv_set_1): Same.
7402 (create_new_iv): Same.
7403 (rewrite_use_compare): Same.
7404 (remove_unused_ivs): Same.
7405 (determine_scaling_factor): Same.
7406 * tree-ssa-loop-ivopts.h: Same.
7407 * tree-ssa-loop-manip.c (create_iv): Same.
7408 (compute_live_loop_exits): Same.
7409 (add_exit_phi): Same.
7410 (add_exit_phis): Same.
7411 (find_uses_to_rename_use): Same.
7412 (find_uses_to_rename_def): Same.
7413 (find_uses_to_rename_in_loop): Same.
7414 (rewrite_into_loop_closed_ssa): Same.
7415 (check_loop_closed_ssa_bb): Same.
7416 (split_loop_exit_edge): Same.
7418 (ip_normal_pos): Same.
7419 (copy_phi_node_args): Same.
7420 (gimple_duplicate_loop_to_header_edge): Same.
7421 (can_unroll_loop_p): Same.
7422 (determine_exit_conditions): Same.
7423 (scale_dominated_blocks_in_loop): Same.
7424 (niter_for_unrolled_loop): Same.
7425 (tree_transform_and_unroll_loop): Same.
7426 (rewrite_all_phi_nodes_with_iv): Same.
7427 * tree-ssa-loop-manip.h: Same.
7428 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
7429 (number_of_iterations_ne): Same.
7430 (assert_no_overflow_lt): Same.
7431 (assert_loop_rolls_lt): Same.
7432 (number_of_iterations_lt): Same.
7433 (adjust_cond_for_loop_until_wrap): Same.
7434 (tree_simplify_using_condition): Same.
7435 (simplify_using_initial_conditions): Same.
7436 (simplify_using_outer_evolutions): Same.
7437 (loop_only_exit_p): Same.
7438 (ssa_defined_by_minus_one_stmt_p): Same.
7439 (number_of_iterations_popcount): Same.
7440 (number_of_iterations_exit): Same.
7441 (find_loop_niter): Same.
7442 (finite_loop_p): Same.
7443 (chain_of_csts_start): Same.
7444 (get_val_for): Same.
7445 (loop_niter_by_eval): Same.
7446 (derive_constant_upper_bound_ops): Same.
7447 (do_warn_aggressive_loop_optimizations): Same.
7448 (record_estimate): Same.
7449 (get_cst_init_from_scev): Same.
7450 (record_nonwrapping_iv): Same.
7451 (idx_infer_loop_bounds): Same.
7452 (infer_loop_bounds_from_ref): Same.
7453 (infer_loop_bounds_from_array): Same.
7454 (infer_loop_bounds_from_pointer_arith): Same.
7455 (infer_loop_bounds_from_signedness): Same.
7456 (bound_index): Same.
7457 (discover_iteration_bound_by_body_walk): Same.
7458 (maybe_lower_iteration_bound): Same.
7459 (estimate_numbers_of_iterations): Same.
7460 (estimated_loop_iterations): Same.
7461 (estimated_loop_iterations_int): Same.
7462 (max_loop_iterations): Same.
7463 (max_loop_iterations_int): Same.
7464 (likely_max_loop_iterations): Same.
7465 (likely_max_loop_iterations_int): Same.
7466 (estimated_stmt_executions_int): Same.
7467 (max_stmt_executions): Same.
7468 (likely_max_stmt_executions): Same.
7469 (estimated_stmt_executions): Same.
7470 (stmt_dominates_stmt_p): Same.
7471 (nowrap_type_p): Same.
7472 (loop_exits_before_overflow): Same.
7473 (scev_var_range_cant_overflow): Same.
7474 (scev_probably_wraps_p): Same.
7475 (free_numbers_of_iterations_estimates): Same.
7476 * tree-ssa-loop-niter.h: Same.
7477 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
7478 (idx_analyze_ref): Same.
7479 (analyze_ref): Same.
7480 (gather_memory_references_ref): Same.
7481 (mark_nontemporal_store): Same.
7482 (emit_mfence_after_loop): Same.
7483 (may_use_storent_in_loop_p): Same.
7484 (mark_nontemporal_stores): Same.
7485 (should_unroll_loop_p): Same.
7486 (volume_of_dist_vector): Same.
7487 (add_subscript_strides): Same.
7488 (self_reuse_distance): Same.
7489 (insn_to_prefetch_ratio_too_small_p): Same.
7490 * tree-ssa-loop-split.c (split_at_bb_p): Same.
7491 (patch_loop_exit): Same.
7492 (find_or_create_guard_phi): Same.
7493 (easy_exit_values): Same.
7494 (connect_loop_phis): Same.
7495 (connect_loops): Same.
7496 (compute_new_first_bound): Same.
7498 (tree_ssa_split_loops): Same.
7499 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
7500 (is_maybe_undefined): Same.
7501 (tree_may_unswitch_on): Same.
7502 (simplify_using_entry_checks): Same.
7503 (tree_unswitch_single_loop): Same.
7504 (tree_unswitch_loop): Same.
7505 (tree_unswitch_outer_loop): Same.
7506 (empty_bb_without_guard_p): Same.
7507 (used_outside_loop_p): Same.
7508 (get_vop_from_header): Same.
7509 (hoist_guard): Same.
7510 * tree-ssa-loop.c (gate_oacc_kernels): Same.
7511 (get_lsm_tmp_name): Same.
7512 * tree-ssa-loop.h: Same.
7513 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
7514 (build_and_add_sum): Same.
7515 (no_side_effect_bb): Same.
7517 (linearize_expr): Same.
7518 (should_break_up_subtract): Same.
7519 (linearize_expr_tree): Same.
7520 * tree-ssa-scopedtables.c: Same.
7521 * tree-ssa-scopedtables.h: Same.
7522 * tree-ssa-structalias.c (condense_visit): Same.
7523 (label_visit): Same.
7524 (dump_pred_graph): Same.
7525 (perform_var_substitution): Same.
7526 (move_complex_constraints): Same.
7527 (remove_preds_and_fake_succs): Same.
7528 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
7529 (determine_bb_domination_status): Same.
7530 (duplicate_thread_path): Same.
7531 (thread_through_all_blocks): Same.
7532 * tree-ssa-threadupdate.h: Same.
7533 * tree-streamer-in.c (streamer_read_string_cst): Same.
7534 (input_identifier): Same.
7535 (unpack_ts_type_common_value_fields): Same.
7536 (unpack_ts_block_value_fields): Same.
7537 (unpack_ts_translation_unit_decl_value_fields): Same.
7538 (unpack_ts_omp_clause_value_fields): Same.
7539 (streamer_read_tree_bitfields): Same.
7540 (streamer_alloc_tree): Same.
7541 (lto_input_ts_common_tree_pointers): Same.
7542 (lto_input_ts_vector_tree_pointers): Same.
7543 (lto_input_ts_poly_tree_pointers): Same.
7544 (lto_input_ts_complex_tree_pointers): Same.
7545 (lto_input_ts_decl_minimal_tree_pointers): Same.
7546 (lto_input_ts_decl_common_tree_pointers): Same.
7547 (lto_input_ts_decl_non_common_tree_pointers): Same.
7548 (lto_input_ts_decl_with_vis_tree_pointers): Same.
7549 (lto_input_ts_field_decl_tree_pointers): Same.
7550 (lto_input_ts_function_decl_tree_pointers): Same.
7551 (lto_input_ts_type_common_tree_pointers): Same.
7552 (lto_input_ts_type_non_common_tree_pointers): Same.
7553 (lto_input_ts_list_tree_pointers): Same.
7554 (lto_input_ts_vec_tree_pointers): Same.
7555 (lto_input_ts_exp_tree_pointers): Same.
7556 (lto_input_ts_block_tree_pointers): Same.
7557 (lto_input_ts_binfo_tree_pointers): Same.
7558 (lto_input_ts_constructor_tree_pointers): Same.
7559 (lto_input_ts_omp_clause_tree_pointers): Same.
7560 (streamer_read_tree_body): Same.
7561 * tree-streamer.h: Same.
7562 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
7563 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
7564 (vect_analyze_possibly_independent_ddr): Same.
7565 (vect_analyze_data_ref_dependence): Same.
7566 (vect_compute_data_ref_alignment): Same.
7567 (vect_enhance_data_refs_alignment): Same.
7568 (vect_analyze_data_ref_access): Same.
7569 (vect_check_gather_scatter): Same.
7570 (vect_find_stmt_data_reference): Same.
7571 (vect_create_addr_base_for_vector_ref): Same.
7572 (vect_setup_realignment): Same.
7573 (vect_supportable_dr_alignment): Same.
7574 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
7575 (adjust_phi_and_debug_stmts): Same.
7576 (vect_set_loop_mask): Same.
7577 (add_preheader_seq): Same.
7578 (vect_maybe_permute_loop_masks): Same.
7579 (vect_set_loop_masks_directly): Same.
7580 (vect_set_loop_condition_masked): Same.
7581 (vect_set_loop_condition_unmasked): Same.
7582 (slpeel_duplicate_current_defs_from_edges): Same.
7583 (slpeel_add_loop_guard): Same.
7584 (slpeel_can_duplicate_loop_p): Same.
7585 (create_lcssa_for_virtual_phi): Same.
7587 (vect_update_ivs_after_vectorizer): Same.
7588 (vect_gen_vector_loop_niters_mult_vf): Same.
7589 (slpeel_update_phi_nodes_for_loops): Same.
7590 (slpeel_update_phi_nodes_for_guard1): Same.
7591 (find_guard_arg): Same.
7592 (slpeel_update_phi_nodes_for_guard2): Same.
7593 (slpeel_update_phi_nodes_for_lcssa): Same.
7594 (vect_do_peeling): Same.
7595 (vect_create_cond_for_alias_checks): Same.
7596 (vect_loop_versioning): Same.
7597 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
7598 (vect_inner_phi_in_double_reduction_p): Same.
7599 (vect_analyze_scalar_cycles_1): Same.
7600 (vect_fixup_scalar_cycles_with_patterns): Same.
7601 (vect_get_loop_niters): Same.
7602 (bb_in_loop_p): Same.
7603 (vect_get_max_nscalars_per_iter): Same.
7604 (vect_verify_full_masking): Same.
7605 (vect_compute_single_scalar_iteration_cost): Same.
7606 (vect_analyze_loop_form_1): Same.
7607 (vect_analyze_loop_form): Same.
7608 (vect_active_double_reduction_p): Same.
7609 (vect_analyze_loop_operations): Same.
7610 (neutral_op_for_slp_reduction): Same.
7611 (vect_is_simple_reduction): Same.
7612 (vect_model_reduction_cost): Same.
7613 (get_initial_def_for_reduction): Same.
7614 (get_initial_defs_for_reduction): Same.
7615 (vect_create_epilog_for_reduction): Same.
7616 (vectorize_fold_left_reduction): Same.
7617 (vectorizable_reduction): Same.
7618 (vectorizable_induction): Same.
7619 (vectorizable_live_operation): Same.
7620 (loop_niters_no_overflow): Same.
7621 (vect_get_loop_mask): Same.
7622 (vect_transform_loop_stmt): Same.
7623 (vect_transform_loop): Same.
7624 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
7625 (vect_determine_precisions): Same.
7626 (vect_pattern_recog_1): Same.
7627 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
7628 * tree-vect-stmts.c (stmt_vectype): Same.
7629 (process_use): Same.
7630 (vect_init_vector_1): Same.
7631 (vect_truncate_gather_scatter_offset): Same.
7632 (get_group_load_store_type): Same.
7633 (vect_build_gather_load_calls): Same.
7634 (vect_get_strided_load_store_ops): Same.
7635 (vectorizable_simd_clone_call): Same.
7636 (vectorizable_store): Same.
7637 (permute_vec_elements): Same.
7638 (vectorizable_load): Same.
7639 (vect_transform_stmt): Same.
7640 (supportable_widening_operation): Same.
7641 * tree-vectorizer.c (vec_info::replace_stmt): Same.
7642 (vec_info::free_stmt_vec_info): Same.
7643 (vect_free_loop_info_assumptions): Same.
7644 (vect_loop_vectorized_call): Same.
7645 (set_uid_loop_bbs): Same.
7646 (vectorize_loops): Same.
7647 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
7648 * tree.c (add_tree_to_fld_list): Same.
7649 (fld_type_variant_equal_p): Same.
7650 (fld_decl_context): Same.
7651 (fld_incomplete_type_of): Same.
7652 (free_lang_data_in_binfo): Same.
7653 (need_assembler_name_p): Same.
7654 (find_decls_types_r): Same.
7655 (get_eh_types_for_runtime): Same.
7656 (find_decls_types_in_eh_region): Same.
7657 (find_decls_types_in_node): Same.
7658 (assign_assembler_name_if_needed): Same.
7659 * value-prof.c (stream_out_histogram_value): Same.
7660 * value-prof.h: Same.
7661 * var-tracking.c (use_narrower_mode): Same.
7662 (prepare_call_arguments): Same.
7663 (vt_expand_loc_callback): Same.
7664 (resolve_expansions_pending_recursion): Same.
7665 (vt_expand_loc): Same.
7666 * varasm.c (const_hash_1): Same.
7667 (compare_constant): Same.
7668 (tree_output_constant_def): Same.
7669 (simplify_subtraction): Same.
7670 (get_pool_constant): Same.
7671 (output_constant_pool_2): Same.
7672 (output_constant_pool_1): Same.
7673 (mark_constants_in_pattern): Same.
7674 (mark_constant_pool): Same.
7675 (get_section_anchor): Same.
7676 * vr-values.c (compare_range_with_value): Same.
7677 (vr_values::extract_range_from_phi_node): Same.
7678 * vr-values.h: Same.
7679 * web.c (unionfind_union): Same.
7682 2019-07-09 Martin Sebor <msebor@redhat.com>
7685 * align.h: Change class-key from class to struct and vice versa
7686 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
7687 * alloc-pool.h: Same.
7688 * asan.c (shadow_mem_size): Same.
7689 * auto-profile.c: Same.
7690 * basic-block.h: Same.
7692 * cfgexpand.c (set_rtl): Same.
7693 (expand_one_stack_var_at): Same.
7697 * config/i386/i386.h: Same.
7698 * df-problems.c (df_print_bb_index): Same.
7700 * df.h (df_single_use): Same.
7701 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
7702 (layout::annotation_line_showed_range_p): Same.
7703 (get_printed_columns): Same.
7704 (correction::ensure_terminated): Same.
7705 (line_corrections::~line_corrections): Same.
7708 * dump-context.h: Same.
7710 * dwarf2out.c: Same.
7711 * edit-context.c: Same.
7712 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
7714 * function.c (assign_stack_local): Same.
7717 * gcov.c (block_info::block_info): Same.
7718 * genattrtab.c: Same.
7719 * genextract.c: Same.
7720 * genmatch.c (comparison_code_p): Same.
7721 (id_base::id_base): Same.
7722 (decision_tree::print): Same.
7723 * genoutput.c: Same.
7724 * genpreds.c (write_one_predicate_function): Same.
7725 * genrecog.c (validate_pattern): Same.
7726 (find_operand_positions): Same.
7727 (optimize_subroutine_group): Same.
7728 (merge_pattern_transition::merge_pattern_transition): Same.
7729 (merge_pattern_info::merge_pattern_info): Same.
7730 (merge_state_result::merge_state_result): Same.
7731 (merge_into_state): Same.
7732 * gensupport.c: Same.
7733 * gensupport.h: Same.
7734 * ggc-common.c (init_ggc_heuristics): Same.
7735 * ggc-tests.c (test_union): Same.
7736 * gimple-loop-interchange.cc (dump_induction): Same.
7737 * gimple-loop-versioning.cc: Same.
7738 * gimple-match.h (gimple_match_cond::any_else): Same.
7739 * gimple-ssa-backprop.c: Same.
7740 * gimple-ssa-sprintf.c: Same.
7741 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
7743 (store_immediate_info::store_immediate_info): Same.
7744 (merged_store_group::apply_stores): Same.
7745 (get_location_for_stmts): Same.
7746 * gimple-ssa-strength-reduction.c: Same.
7747 * gimple-ssa-warn-alloca.c: Same.
7748 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7749 * godump.c (go_type_decl): Same.
7750 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7752 * hash-set-tests.c (test_set_of_strings): Same.
7754 * hsa-common.h: Same.
7755 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
7756 * input.c (assert_loceq): Same.
7759 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
7760 * ipa-fnsummary.h: Same.
7761 * ipa-inline.h: Same.
7763 * ipa-split.c (visit_bb): Same.
7764 * ira-int.h (minmax_set_iter_next): Same.
7765 * loop-invariant.c: Same.
7767 * lra-eliminations.c: Same.
7769 * lra-lives.c (mark_regno_dead): Same.
7770 * lra-remat.c: Same.
7771 * lra-spills.c: Same.
7772 * lto-streamer.h: Same.
7773 * mem-stats.h: Same.
7774 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
7775 * omp-low.c (omp_clause_aligned_alignment): Same.
7776 * optabs-query.h (get_vcond_eq_icode): Same.
7778 * opts.c (wrap_help): Same.
7780 * predict.c (predict_paths_leading_to_edge): Same.
7781 * pretty-print.h: Same.
7782 * profile-count.h: Same.
7784 * read-rtl-function.c: Same.
7787 * regrename.c: Same.
7788 * regrename.h: Same.
7791 * rtl.h (costs_add_n_insns): Same.
7793 * sched-int.h: Same.
7794 * sel-sched-ir.h: Same.
7796 * sese.h (vec_find): Same.
7798 * target-globals.h: Same.
7799 * tree-affine.c (aff_combination_find_elt): Same.
7800 * tree-affine.h: Same.
7801 * tree-data-ref.h: Same.
7802 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
7803 * tree-predcom.c: Same.
7804 * tree-scalar-evolution.c (find_var_scev_info): Same.
7805 * tree-ssa-alias.h: Same.
7806 * tree-ssa-ccp.c: Same.
7807 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
7808 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
7809 (rewrite_mem_refs): Same.
7810 (execute_sm_if_changed): Same.
7811 (hoist_memory_references): Same.
7812 * tree-ssa-loop-ivopts.c (operator<=): Same.
7813 * tree-ssa-loop.h: Same.
7814 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
7815 * tree-ssa-structalias.c: Same.
7816 * tree-switch-conversion.h (cluster::cluster): Same.
7817 (simple_cluster::simple_cluster): Same.
7818 * tree-vect-patterns.c (type_conversion_p): Same.
7819 * tree-vectorizer.c (dump_stmt_cost): Same.
7820 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
7821 * tree.c (protected_set_expr_location): Same.
7822 * tree.h (desired_pro_or_demotion_p): Same.
7823 (fndecl_built_in_p): Same.
7824 * unique-ptr-tests.cc: Same.
7825 * var-tracking.c (delete_variable_part): Same.
7826 * varasm.c (assemble_real): Same.
7827 (tree_output_constant_def): Same.
7829 * wide-int-bitmask.h: Same.
7830 * wide-int.h (decompose): Same.
7832 2019-07-09 Richard Biener <rguenther@suse.de>
7834 PR tree-optimization/91114
7835 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7836 find a vector type isn't fatal.
7838 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7840 * config/aarch64/aarch64-simd.md
7841 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7842 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7843 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7844 (*aarch64_crypto_aese_fused,
7845 *aarch64_crypto_aesd_fused): Update to new definition.
7846 * config/aarch64/aarch64.c
7847 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7849 2019-07-09 Richard Biener <rguenther@suse.de>
7851 * gimple-match.h (gimple_match_op::resimplify): New.
7852 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7853 gimple_resimplify4, gimple_resimplify5): Remove.
7854 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7855 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7857 (gimple_match_op::resimplify): New.
7858 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7859 according to availability. Use gimple_match_op::resimplify.
7861 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7863 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7865 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7867 * config/arm/crypto.md:
7868 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7869 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7870 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7871 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7873 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7874 * config/arm/aarch-common-protos.h
7875 (aarch_crypto_can_dual_issue): Remove.
7876 * config/arm/aarch-common.c
7877 (aarch_crypto_can_dual_issue): Likewise.
7878 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7879 * config/arm/cortex-a53.md: Likewise.
7880 * config/arm/cortex-a57.md: Likewise.
7881 * config/arm/iterators.md:
7882 (CRYPTO_BINARY): Redefine.
7883 (CRYPTO_UNARY): Removed.
7884 (CRYPTO_AES, CRYPTO_AESMC): New.
7886 2019-07-09 Richard Biener <rguenther@suse.de>
7888 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7889 (vn_reference_lookup_3): If the main ref has no access path recorded
7890 but orig_ref has use it to do access-path based disambiguation.
7891 (vn_reference_lookup_pieces): Adjust.
7892 (vn_reference_lookup): Pass down original ref if we valueized.
7894 2019-07-09 Martin Liska <mliska@suse.cz>
7896 * doc/extend.texi: Document influence on loop
7899 2019-07-09 Martin Liska <mliska@suse.cz>
7901 * lto-compress.c (lto_normalized_zstd_level): Do not use
7902 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7903 of libzstd. One can use 0 as a default compression level.
7905 2019-07-09 Martin Liska <mliska@suse.cz>
7907 * doc/invoke.texi: Add link from -fprofile-dir option.
7908 Use better wording for 'gcno filename'.
7910 2019-07-08 Martin Sebor <msebor@redhat.com>
7914 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7916 (args_loc_t): New type.
7917 (args_loc_t, locmap_t): same.
7918 (diag_returned_locals): New function.
7919 (is_addr_local): Same.
7920 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7921 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7922 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7924 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7926 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7927 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7928 and casts in offset when different, both through gimple stmts
7929 and through trees. Rewritten using loops to minimize code duplication
7932 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7934 * emit-rtl.c (set_insn_locations): New function moved from...
7935 * function.c (set_insn_locations): ...here.
7936 * ira-emit.c (emit_moves): Propagate location of the first instruction
7937 to the inserted move instructions.
7938 * reg-stack.c (compensate_edge): Set the location if the sequence is
7939 inserted on the edge.
7940 * rtl.h (set_insn_locations): Declare.
7942 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7944 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7945 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7948 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7950 PR rtl-optimization/88233
7951 * common.opt (fsplit-wide-types-early): New option.
7952 * common/config/rs6000/rs6000-common.c
7953 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7955 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7956 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7957 flag_split_wide_types_early.
7958 (pass_data_lower_subreg3): New.
7959 (pass_lower_subreg3): New.
7960 (make_pass_lower_subreg3): New.
7961 * passes.def (pass_lower_subreg2): Move after the loop passes.
7962 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7963 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7964 the pass pipeline; its previous place is taken by ...
7965 (make_pass_lower_subreg3): ... this.
7967 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7969 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7970 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7972 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7974 * config/s390/constraints.md: Add new jsc constraint.
7975 * config/s390/predicates.md: New predicates.
7976 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7977 * config/s390/s390.c (s390_valid_shift_count): New function.
7978 (print_shift_count_operand): Use s390_valid_shift_count.
7979 (print_operand): Likewise.
7980 * config/s390/s390.md: Use new predicate.
7981 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7982 * config/s390/vector.md: Use new predicate.
7984 2019-07-08 Andrew Waterman <andrew@sifive.com>
7985 Jim Wilson <jimw@sifive.com>
7987 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7988 bitsize instead of BITS_PER_WORD.
7990 2019-07-08 Martin Liska <mliska@suse.cz>
7992 * collect2.c (defined): Revert to before r254460.
7993 (scan_prog_file): Revert to before r254460.
7995 2019-07-08 Richard Biener <rguenther@suse.de>
7997 PR tree-optimization/83518
7998 * tree-ssa-sccvn.c: Include splay-tree.h.
7999 (struct pd_range, struct pd_data): New.
8000 (struct vn_walk_cb_data): Add data to track partial definitions.
8001 (vn_walk_cb_data::~vn_walk_cb_data): New.
8002 (vn_walk_cb_data::push_partial_def): New.
8003 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
8004 (vn_reference_lookup_2): When partial defs are registered give up.
8005 (vn_reference_lookup_3): Track partial defs for memset and
8006 constructor zeroing and for defs from constants.
8008 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8010 * doc/install.texi (bootstrap-Og): Document.
8012 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
8014 * config/riscv/pic.md (*local_pic_load_s<mode>)
8015 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
8016 referenced by <mode>, giving...
8017 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
8018 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
8019 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
8020 use <X:MODE> for the mode attribute.
8022 2019-07-07 Jeff Law <law@redhat.com>
8024 PR tree-optimization/91090
8025 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
8026 in handling of ranges to simplify switch statements.
8028 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8030 * config/darwin.c (darwin_override_options): Make a final check on PIC
8033 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
8035 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
8038 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8041 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
8042 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
8043 instead of matching them to "l" output operands.
8045 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
8047 * config/mips/mips.c (mips_split_move): Zero-initialize addr
8048 and check whether addr.reg is nonnull before using it.
8050 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8052 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
8053 ctx->for_simd_scan_phase simd copy the outer var to the privatized
8054 variable(s). For conditional lastprivate look through outer
8055 GIMPLE_OMP_SCAN context.
8056 (lower_omp_1): For conditional lastprivate look through outer
8057 GIMPLE_OMP_SCAN context.
8059 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
8060 member to combined_into_simd_safelen1.
8061 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
8062 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
8063 clauses if ctx->combined_into_simd_safelen1 put statements after the
8064 predicate conditionalized block rather than into it.
8066 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8068 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
8070 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
8071 Make the choice of <mode> explicit, giving...
8072 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
8074 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8076 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
8077 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
8079 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
8080 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
8081 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
8082 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
8083 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
8084 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
8085 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
8086 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
8087 (*avx512f_scatterdi<mode>): Likewise.
8088 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
8090 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8092 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
8093 specify the mode iterator referenced by <mode>, giving...
8094 (*push1_h8300hs_<QHI:mode>): ...this.
8096 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8098 * config/gcn/gcn-valu.md
8099 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
8100 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
8101 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
8102 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
8103 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
8104 but using the _exec comparison patterns.
8105 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
8106 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
8107 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
8108 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
8109 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
8110 but using the _exec comparison patterns.
8112 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
8114 * config/arm/sync.md
8115 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
8116 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
8117 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
8118 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
8121 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8123 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
8124 (maybe_lookup_ctx): Add forward declaration.
8125 (omp_find_scan): Likewise. Walk into body of simd if composited
8126 with worksharing loop.
8127 (scan_omp_simd_scan): New function.
8128 (scan_omp_1_stmt): Call it.
8129 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
8130 ctx->for_simd_scan_phase.
8131 (lower_rec_input_clauses): Do much less work for inscan reductions
8132 in ctx->for_simd_scan_phase is_simd regions.
8133 (lower_omp_scan): Set is_simd also on simd constructs composited
8134 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
8135 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
8136 emit their body after in simd constructs composited with worksharing
8138 (lower_omp_for_scan): Handle worksharing loop composited with simd.
8140 * omp-low.c (omp_find_scan): Make static.
8141 (lower_omp_for_scan): Fix order of merge arguments in input phase of
8142 the second loop, var2 represents the first partial sum and so needs
8143 to go before rprivb[ivar].
8145 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
8147 * config/rs6000/rs6000-logue.c: Remove unused code.
8149 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8151 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
8153 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
8156 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
8157 check with a frame laid out check.
8159 2019-07-05 Richard Biener <rguenther@suse.de>
8161 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
8162 when comparing against a store with possibly the same value.
8164 2019-07-05 Richard Biener <rguenther@suse.de>
8166 PR tree-optimization/91091
8167 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
8168 (walk_non_aliased_vuses): Likewise.
8169 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
8170 (get_continuation_for_phi): New tbaa_p parameter and pass
8172 (walk_non_aliased_vuses): Likewise.
8173 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
8174 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
8175 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
8177 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
8178 (adjust_offsets_for_equal_base_address): New function.
8179 (vn_reference_lookup_3): Use it to catch more base equivalences.
8180 Handle and pass down tbaa_p flag.
8181 (vn_reference_lookup_pieces): Adjust.
8182 (vn_reference_lookup): Remove alias-set altering, instead pass
8183 down false as tbaa_p.
8185 2019-07-05 Richard Biener <rguenther@suse.de>
8187 PR tree-optimization/91091
8188 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
8189 accesses can happen with -fno-strict-aliasing.
8191 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
8193 * tree-ssa-alias.c (alias_stats): Add
8194 nonoverlapping_component_refs_since_match_p_must_overlap.
8195 (dump_alias_stats): Print it.
8196 (nonoverlapping_component_refs_since_match_p): Add early exit.
8197 (nonoverlapping_component_refs_p): Do not account early exit.
8199 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8201 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
8202 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
8203 (emit_eh_dispatch): Delete.
8204 (lower_catch): Emit the eh_dispatch manually and set the location of
8205 the first catch statement onto it.
8206 (lower_eh_filter): Emit the eh_dispatch manually and set location.
8207 (lower_eh_dispatch): Propagate location.
8208 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
8209 (eliminate_build): Likewise.
8211 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
8213 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
8214 phi nodes if possible.
8215 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
8216 location info on the newly created statement.
8217 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
8218 newly created increment if needed.
8220 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8223 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
8224 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
8225 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
8226 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
8227 ctx->add_safelen1 is set.
8229 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
8230 GOMP_loop_start at the start of second worksharing loop in a scan.
8231 For nowait, don't emit GOMP_loop_end_nowait at the end of first
8232 worksharing loop in a scan even if there are conditional lastprivates,
8233 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
8235 2019-07-04 Jan Hubicka <jh@suse.cz>
8237 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8238 Fix check for match in the ref walk.
8240 2019-07-04 Martin Liska <mliska@suse.cz>
8242 * tree-ssa-loop-niter.c
8243 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
8244 (estimate_numbers_of_iterations):
8245 Support __builtin_expect_with_probability for analysis
8246 of # of loop iterations.
8248 2019-07-04 Alexandre Oliva <oliva@adacore.com>
8250 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
8251 * except.c: Likewise.
8252 * expr.c (expand_expr_real_1): Reject it.
8253 * gimplify.c (gimplify_expr): Gimplify it, within
8255 * tree-dump.c (dequeue_and_dump): Dump it.
8256 * tree-pretty-print.c (dump_generic_node): Likewise.
8257 * tree.c (block_may_fallthru): Handle it.
8258 * tree.def (EH_ELSE_EXPR): Introduce it.
8259 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
8260 with GIMPLE_EH_ELSE as try/finally/else.
8262 2019-07-04 Richard Biener <rguenther@suse.de>
8265 * tree-pass.h (execute_all_ipa_transforms): Add a flag
8266 parameter whether to disable GC collection.
8267 * passes.c (execute_one_ipa_transform_pass): Likewise, and
8269 (execute_all_ipa_transforms): Likewise and pass it down.
8270 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
8271 collection from applying IPA transforms.
8272 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
8273 from applying IPA transforms.
8275 2019-07-04 Richard Biener <rguenther@suse.de>
8277 PR tree-optimization/90911
8278 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
8279 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
8280 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8281 scalar_loop_scaling.
8282 (vect_transform_loop): Scale scalar loop profile if needed.
8283 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
8284 the loop copy from if-conversion adjust edge probabilities
8285 and scale the vectorized loop body profile, queue the scalar
8286 profile for updating after peeling.
8288 2019-07-04 Jan Hubicka <jh@suse.cz>
8290 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
8291 parameters; return early for must-alias.
8292 (indirect_ref_may_alias_decl_p): Likewise; when establishing
8293 outer types match, try nonoverlapping_component_refs
8294 if must-alias is not obvious.
8295 (indirect_refs_may_alias_p): Likewise.
8296 (refs_may_alias_p_2): Likewise.
8298 2019-07-04 Richard Biener <rguenther@suse.de>
8300 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
8302 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
8304 (struct vn_walk_cb_data): New callback data struct.
8305 (vn_reference_lookup_2): Adjust.
8306 (vn_reference_lookup_3): Likewise.
8307 (vn_reference_lookup_pieces): Likewise.
8308 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
8309 (visit_reference_op_load): Adjust.
8311 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8313 PR tree-optimization/91063
8314 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
8315 stmt from stmts sequence before calling vect_init_vector_1.
8318 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8321 * fwprop.c (reg_single_def_p): New function.
8322 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
8323 (forward_propagate_into): New parameter reg_prop_only
8324 with default value false.
8325 Propagate def's src into loop only if SET_SRC and SET_DEST
8326 of def_set have single definitions.
8327 Likewise if reg_prop_only is set to true.
8328 (fwprop): New param fwprop_addr_p.
8329 Integrate fwprop_addr into fwprop.
8330 (fwprop_addr): Remove.
8331 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
8333 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
8334 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
8335 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
8337 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8339 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
8340 in worksharing loop scans.
8342 PR tree-optimization/91074
8343 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
8346 PR rtl-optimization/90756
8347 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
8350 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
8352 * config/aarch64/aarch64.md: Remove redundant constraints from
8353 define_expand but keep some patterns untouched if they are
8354 specially selected by TARGET_SECONDARY_RELOAD hook.
8355 * config/aarch64/aarch64-sve.md: Likewise.
8356 * config/aarch64/atomics.md: Remove redundant constraints from
8358 * config/aarch64/aarch64-simd.md: Likewise.
8360 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8362 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
8363 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
8364 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
8366 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
8369 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
8371 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
8372 (STARTFILE_SPEC): Split crt3 into a separate spec.
8373 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
8374 (DARWIN_CRT2_SPEC): New.
8375 (DARWIN_CRT3_SPEC): New.
8376 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
8377 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
8378 (DARWIN_CRT3_SPEC): New.
8380 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
8382 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
8383 Change the RTL attribute "length" from "4" to "*" to allow the
8384 length attribute to be adjusted automatically for prefixed load,
8385 store, and add immediate instructions.
8386 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
8388 (extendsi<mode>2, EXTSI iterator): Likewise.
8389 (movsi_internal1): Likewise.
8390 (movsi_from_sf): Likewise.
8391 (movdi_from_sf_zero_ext): Likewise.
8392 (mov<mode>_internal): Likewise.
8393 (movcc_internal1, QHI iterator): Likewise.
8394 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
8395 (movsf_from_si): Likewise.
8396 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
8397 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
8398 (mov<mode>, FMOVE128 iterator): Likewise.
8399 (movdi_internal64): Likewise.
8400 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
8402 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
8403 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
8404 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
8405 (vsx_splat_v4sf): Likewise.
8407 2019-07-03 Mark Wielaard <mark@klomp.org>
8410 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
8411 DW_AT_addr_base if there is actually a .debug_addr section with
8413 (output_addr_table): Add DWARF5 table header generation here after
8414 checking there are actually any addresses from...
8415 (dwarf2out_finish): ...here.
8417 2019-07-03 Richard Biener <rguenther@suse.de>
8420 * match.pd (vec_perm -> bit_insert): Fix element read from
8423 2019-07-03 Martin Liska <mliska@suse.cz>
8425 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
8426 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
8428 * generic-match-head.c: Include dbgcnt.h.
8429 * gimple-match-head.c: Likewise.
8431 2019-07-03 Martin Liska <mliska@suse.cz>
8433 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
8434 (GCOV_COUNTER_V_TOPN): New.
8435 (GCOV_COUNTER_V_INDIR): Use _topn.
8436 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
8437 (GCOV_TOPN_VALUES): New.
8438 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
8439 (GCOV_TOPN_VALUES_COUNTERS): New.
8440 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
8442 (gimple_init_gcov_profiler): Rename variables from one_value
8444 (gimple_gen_one_value_profiler): Remove.
8445 (gimple_gen_topn_values_profiler): New function.
8446 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
8447 names instead of SINGLE_VALUE.
8448 (stream_out_histogram_value): Likewise.
8449 (stream_in_histogram_value): Likewise.
8450 (get_most_common_single_value): Likewise.
8451 (gimple_divmod_fixed_value_transform): Likewise.
8452 (gimple_stringops_transform): Likewise.
8453 (gimple_divmod_values_to_profile): Likewise.
8454 (gimple_stringops_values_to_profile): Likewise.
8455 (gimple_find_values_to_profile): Likewise.
8456 * value-prof.h (enum hist_type): Rename to TOPN.
8457 (gimple_gen_one_value_profiler): Remove.
8458 (gimple_gen_topn_values_profiler): New.
8460 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
8462 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
8463 if it has the DW_AT_data_member_location attribute.
8465 2019-07-03 Richard Biener <rguenther@suse.de>
8467 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
8470 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
8472 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
8473 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
8474 (tlsdesc_small_sve_<mode>): Likewise.
8476 2019-07-03 Martin Liska <mliska@suse.cz>
8478 * Makefile.in: Define ZSTD_LIB.
8479 * common.opt: Adjust compression level
8480 to support also zstd levels.
8481 * config.in: Regenerate.
8482 * configure: Likewise.
8483 * configure.ac: Add --with-zstd and --with-zstd-include options
8485 * doc/install.texi: Mention zstd dependency.
8486 * gcc.c: Print supported LTO compression algorithms.
8487 * lto-compress.c (lto_normalized_zstd_level): Likewise.
8488 (lto_compression_zstd): Likewise.
8489 (lto_uncompression_zstd): Likewise.
8490 (lto_end_compression): Dispatch in between zlib and zstd.
8491 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
8492 (lto_uncompression_zlib): Make it static.
8493 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
8494 * lto-section-in.c (lto_get_section_data): Pass info
8495 about used compression.
8496 * lto-streamer-out.c: By default use zstd when possible.
8497 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
8498 (TV_IPA_LTO_COMPRESS): Likewise for compression.
8500 2019-07-03 Martin Liska <mliska@suse.cz>
8502 * lto-section-in.c (lto_get_section_data): Add "lto" section.
8503 * lto-section-out.c (lto_destroy_simple_output_block): Never
8504 compress LTO_section_lto section.
8505 * lto-streamer-out.c (produce_asm): Do not set major_version
8507 (lto_output_toplevel_asms): Likewise.
8508 (produce_lto_section): New function.
8509 (lto_output): Call produce_lto_section.
8510 (lto_write_mode_table): Do not set major_version and
8512 (produce_asm_for_decls): Likewise.
8513 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
8515 (struct lto_header): Remove.
8516 (struct lto_section): New struct.
8517 (struct lto_simple_header): Do not inherit from lto_header.
8518 (struct lto_file_decl_data): Add lto_section_header field.
8520 2019-07-03 Martin Liska <mliska@suse.cz>
8522 * lra-eliminations.c (eliminate_regs_in_insn): Remove
8524 * reg-stack.c (check_asm_stack_operands): Likewise.
8525 * tree-ssa-structalias.c (create_function_info_for): Likewise.
8526 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8527 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
8530 2019-07-03 Martin Liska <mliska@suse.cz>
8532 PR tree-optimization/90892
8533 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
8534 in string constants.
8536 2019-07-03 Martin Liska <mliska@suse.cz>
8539 * multiple_target.c (create_dispatcher_calls): Add to comdat
8540 group only if set for ifunc.
8542 2019-07-03 Martin Liska <mliska@suse.cz>
8545 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
8546 Define local_object_name in outer scope in order to handle
8547 use-after-scope issue.
8549 2019-07-03 Martin Liska <mliska@suse.cz>
8551 * common.opt: Add fprofile-note.
8552 * coverage.c (coverage_init): Append the option
8554 * doc/invoke.texi: Document -fprofile-note.
8556 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8558 PR tree-optimization/91033
8559 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
8560 vect_analyze_data_refs): Add bool * arguments.
8561 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
8562 if failure is due to scatter/gather, set *fatal to false if non-NULL.
8563 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8564 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
8565 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
8566 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
8567 vect_analyze_data_refs caller.
8569 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
8571 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
8572 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
8573 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
8574 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8575 OMP_CLAUSE__SCANTEMP_ entry.
8576 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
8577 * tree-pretty-print.c (dump_omp_clause): Likewise.
8578 * tree-nested.c (convert_nonlocal_omp_clauses,
8579 convert_local_omp_clauses): Likewise.
8580 * omp-general.h (struct omp_for_data): Add have_scantemp and
8581 have_nonctrl_scantemp members.
8582 * omp-general.c (omp_extract_for_data): Initialize them.
8583 * omp-low.c (struct omp_context): Add scan_exclusive member.
8584 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
8585 result again with GF_OMP_FOR_KIND_MASK. Initialize also
8586 ctx->scan_exclusive.
8587 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
8588 of !ctx->scan_inclusive.
8589 (lower_rec_input_clauses): Simplify gimplification of dtors using
8590 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
8591 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
8592 loops. Don't add barrier for reduction_omp_orig_ref if
8593 ctx->scan_??xclusive.
8594 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
8595 (lower_omp_scan): Use ctx->scan_exclusive instead
8596 of !ctx->scan_inclusive. Handle worksharing loops with inscan
8597 reductions. Use new_vard != new_var instead of repeated
8598 omp_is_reference calls.
8599 (omp_find_scan, lower_omp_for_scan): New functions.
8600 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
8602 * omp-expand.c (expand_omp_scantemp_alloc): New function.
8603 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
8604 and fd->have_scantemp.
8606 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
8607 on worksharing loop propagate it as shared clause to containing
8610 * omp-expand.c (expand_omp_for_static_nochunk,
8611 expand_omp_for_static_chunk): For nowait worksharing loop with
8612 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
8615 2019-07-02 qing zhao <qing.zhao@oracle.com>
8617 PR preprocessor/90581
8618 * doc/cppopts.texi: Add document for -fmax-include-depth.
8619 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
8621 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
8623 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
8624 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
8625 (mmx_packssdw): Ditto.
8626 (mmx_punpckhbw): Ditto.
8627 (mmx_punpcklbw): Ditto.
8628 (mmx_punpckhwd): Ditto.
8629 (mmx_punpcklwd): Ditto.
8630 (mmx_punpckhdq): Ditto.
8631 (mmx_punpckldq): Ditto.
8632 (*vec_dupv4hi): Ditto.
8633 (*vec_dupv2si): Ditto.
8634 (mmx_pmovmskb): Ditto.
8635 * config/i386/sse.md (sse_cvtpi2ps): Use
8636 TARGET_SSE2 && SSE_REG_P in split condition.
8637 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
8638 TARGET_SSSE3 && SSE_REGNO_P in split condition.
8639 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
8640 (ssse3_pshufbv8qi3): Ditto.
8641 (ssse3_palignrdi): Ditto.
8643 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
8645 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
8646 with inlined save and restore.
8648 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
8650 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
8651 to be inserted on single successor edge of the entry block. Then call
8652 commit_edge_insertions instead of inserting the instructions manually.
8653 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
8654 RTL expansion and rebuild jump labels chain.
8656 2019-07-02 Richard Biener <rguenther@suse.de>
8658 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
8660 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8662 * tree.c (build_common_tree_nodes): Initialize them.
8663 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
8664 Make declarations comments.
8665 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
8666 chrec_known): Remove definitions.
8667 (initialize_scalar_evolutions_analyzer): Remove.
8668 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
8669 * tree-streamer.c (preload_common_nodes): Do not preload
8670 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
8672 2019-07-02 Jan Hubicka <jh@suse.cz>
8674 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
8677 2019-07-02 Jan Hubicka <jh@suse.cz>
8679 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
8681 (nonoverlapping_component_refs_since_match_p): ... this one;
8682 handle also non-decl bases; return -1 if search gave up.
8683 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
8684 nonoverlapping_component_refs_of_decl_p_no_alias to
8685 nonoverlapping_component_refs_since_match_p_may_alias,
8686 nonoverlapping_component_refs_since_match_p_no_alias.
8687 (dump_alias_stats): Update dumping.
8688 (aliasing_matching_component_refs_p): Break out from ...;
8689 dispatch to nonoverlapping_component_refs_for_decl_p
8690 and nonoverlapping_component_refs_since_match_p.
8691 (aliasing_component_refs_p): ... here; call
8692 nonoverlapping_component_refs_p in scenarios where we can not
8693 precisely determine base match.
8694 (decl_refs_may_alias_p): Use
8695 nonoverlapping_component_refs_since_match_p.
8696 (indirect_ref_may_alias_decl_p): Do not call
8697 nonoverlapping_component_refs_p.
8698 (indirect_refs_may_alias_p): Likewise.
8700 2019-07-02 Jan Hubicka <jh@suse.cz>
8702 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
8703 to clobber of return value.
8705 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8707 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
8708 for is_neon_type instructions that have not already been categorized.
8710 2019-07-02 Richard Biener <rguenther@suse.de>
8712 PR tree-optimization/58483
8713 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
8714 for MEM_REF base hashing.
8715 (equal_mem_array_ref_p): Likewise for base comparison.
8717 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8719 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
8721 (signbit<mode>2): Use that name. Simplify.
8723 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
8726 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
8727 Tune heuristic from PR71016 to allow MIN / MAX.
8729 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8731 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
8733 (abs<mode>2): Use that name. Simplify.
8735 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8737 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
8739 (neg<mode>2): Use that name. Simplify.
8741 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8743 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8745 (abs<mode>2): Use that name. Simplify.
8747 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8749 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8751 (neg<mode>2): Use that name. Simplify.
8753 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
8755 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
8756 ("enabled" attribute): Handle sse_noavx isa attribute.
8757 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
8758 Use TARGET_SSE && SSE_REGNO_P in split condition.
8759 (*vec_dupv2sf): Ditto.
8761 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8763 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
8765 (floatsi<mode>2): Use that name. Simplify.
8767 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8769 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
8771 (extenddf<mode>2_vsx): Make this a parameterized name.
8772 (extenddf<mode>2): Use those names. Simplify.
8774 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8776 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
8778 (eh_return): Use that name. Simplify.
8780 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8782 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
8783 (doloop_end): Use that name. Simplify.
8785 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8787 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
8789 (indirect_jump): Use that name. Simplify.
8791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8793 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
8795 (abs<mode>2): Use that name. Simplify.
8797 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8799 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
8801 (fix_trunc<mode>si2): Use that name. Simplify.
8803 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8805 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
8806 (allocate_stack): Use that name. Simplify.
8808 2019-07-01 Martin Sebor <msebor@redhat.com>
8811 * hash-map.h (hash_map::put): On insertion invoke element ctor.
8812 (hash_map::get_or_insert): Same. Reformat comment.
8813 * hash-set.h (hash_set::add): On insertion invoke element ctor.
8814 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8815 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8816 * hash-table.h (hash_table::operator=): Prevent copy assignment.
8817 (hash_table::hash_table (const hash_table&)): Use copy ctor
8818 instead of assignment to copy elements.
8820 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
8821 John David Anglin <danglin@gcc.gnu.org>
8824 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8825 using saved frame pointer.
8827 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8830 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8831 Add frame clobber and schedule blockage.
8833 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8835 * doc/invoke.texi (Link Options): Further editorial changes to
8836 -flinker-output docs.
8838 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8840 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8841 Load both operands of a PLUS into registers separately.
8843 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8845 * config/s390/vector.md: Fix shift count operand printing.
8847 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8849 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8851 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8853 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8854 Use recog_data to test for an output operand.
8856 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8858 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8859 exclude any others that are disparaged or that are bound to need
8861 (ira_get_dup_out_num): Expand comment.
8863 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8865 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8866 constraint string for each operand/alternative combo. Only handle
8867 '%' at the start of constraint strings, and look for it outside
8870 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8872 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8873 alternative_mask instead of HARD_REG_SET to represent a
8874 bitmask of alternatives.
8875 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8876 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8878 2019-07-01 Martin Liska <mliska@suse.cz>
8880 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8881 use () for a constructor call.
8882 (test_applying_fixits_line_out_of_range): Likewise.
8883 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8885 (free_page): Likewise.
8887 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8889 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8890 parameter names to match usage (no functional change).
8891 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8893 2019-07-01 Richard Biener <rguenther@suse.de>
8895 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8897 (pass_fre::execute): Honor it.
8898 * passes.def: Adjust pass_fre invocations to allow iterating,
8899 add non-iterating pass_fre before late threading/dom.
8901 2019-07-01 Richard Biener <rguenther@suse.de>
8903 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8904 TARGET_MEM_REF handling to also handle address-taken ones.
8906 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8908 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8909 hardware attributes): Document avx512vp2intersect.
8911 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8913 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8914 (abs<mode>2): New expander.
8915 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8916 Use CODE_FOR_ssse3_absv8qi2.
8917 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8918 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8920 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8922 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8923 to sse, sse_noavx and avx. Update all uses.
8925 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8927 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8928 (*mmx_<plusminus_insn><mode>3): Ditto.
8929 (*mmx_mulv4hi3"): Ditto.
8930 (*mmx_smulv4hi3_highpart): Ditto.
8931 (*mmx_umulv4hi3_highpart): Ditto.
8932 (*mmx_pmaddwd): Ditto.
8933 (*sse2_umulv1siv1di3): Ditto.
8934 (*mmx_<code>v4hi3): Ditto.
8935 (*mmx_<code>v8qi3): Ditto.
8936 (mmx_ashr<mode>3): Ditto.
8937 ("mmx_<shift_insn><mode>3): Ditto.
8938 (*mmx_eq<mode>3): Ditto.
8939 (mmx_gt<mode>3): Ditto.
8940 (mmx_andnot<mode>3): Ditto.
8941 (*mmx_<code><mode>3): Ditto.
8942 (*mmx_pinsrw): Ditto.
8943 (*mmx_pextrw): Ditto.
8944 (mmx_pshufw_1): Ditto.
8945 (*mmx_uavgv8qi3): Ditto.
8946 (*mmx_uavgv4hi3): Ditto.
8947 ("mmx_psadbw): Ditto.
8948 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8949 (sse_cvttps2pi): Ditto.
8950 (ssse3_pmaddubsw): Ditto.
8951 (*ssse3_pmulhrswv4hi3): Ditto.
8952 (ssse3_psign<mode>3): Ditto.
8954 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8956 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8957 adjustment for bit-fields to all aggregate types.
8959 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8961 * config/rs6000/predicates.md (pcrel_address): Use
8962 SYMBOL_REF_LOCAL_P to determine if a label is local.
8963 (pcrel_external_address): New predicate.
8964 (non_prefixed_mem_operand): Delete, predicate not used.
8965 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8966 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8968 (SYMBOL_REF_PCREL_P): Likewise.
8971 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8973 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8974 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8975 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8977 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8979 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8980 override on extra_headers.
8982 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8984 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8985 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8987 (darwin_driver_init): Likewise.
8989 2019-06-28 Jan Beulich <jbeulich@suse.com>
8991 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8992 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8993 Eliminate redundant alternative.
8995 2019-06-28 Jan Beulich <jbeulich@suse.com>
8997 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8998 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
9001 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
9003 * config/arc/arc.c (arc_rtx_costs): All short instructions are
9004 having a lower cost regardless of the speed option.
9006 2019-06-28 Jan Beulich <jbeulich@suse.com>
9008 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
9009 vector_operand plus, on both alternatives, "Bm" constraint.
9011 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
9013 * config/arm/arm.md: Remove redundant constraints from
9014 define_expand but leave reload_inm and reload_outm patterns
9015 untouched since they need special constraints to work.
9016 * config/arm/arm-fixed.md: Remove redundant constraints from
9018 * config/arm/iwmmxt.md: Likewise.
9019 * config/arm/neon.md: Likewise.
9020 * config/arm/sync.md: Likewise.
9021 * config/arm/thumb1.md: Likewise.
9022 * config/arm/vec-common.md: Likewise.
9024 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
9026 * doc/install.texi: Document --disable-tm-clone-registry.
9028 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9031 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
9034 PR tree-optimization/91010
9035 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
9036 return true. Otherwise, don't call operand_equal_p if offset1 or
9037 offset2 is NULL and just return false.
9039 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9041 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
9042 user-specified float mode choice for kernel mode code.
9044 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9046 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
9049 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
9051 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
9052 use longcall for 64b code.
9054 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
9056 * builtins.c (get_memory_rtx): Fix comment.
9057 * optabs.def (movmem_optab): Change to cpymem_optab.
9058 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
9059 (emit_block_move_hints): Change movmem to cpymem.
9060 * defaults.h: Change movmem to cpymem.
9061 * targhooks.c (get_move_ratio): Change movmem to cpymem.
9062 (default_use_by_pieces_infrastructure_p): Ditto.
9063 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
9064 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
9066 * config/aarch64/aarch64.h: Change movmem to cpymem.
9067 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
9068 * config/alpha/alpha.h: Change movmem to cpymem in comment.
9069 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
9071 * config/arc/arc-protos.h: Change movmem to cpymem.
9072 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
9073 * config/arc/arc.h: Change movmem to cpymem in comment.
9074 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
9075 * config/arm/arm-protos.h: Change movmem to cpymem in names.
9076 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
9077 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
9078 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
9079 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
9080 * config/avr/avr-protos.h: Change movmem to cpymem.
9081 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
9082 avr_out_movmem): Change movmem to cpymem.
9083 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
9084 Change movmem to cpymem.
9085 * config/bfin/bfin-protos.h: Change movmem to cpymem.
9086 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
9087 Change movmem to cpymem.
9088 * config/bfin/bfin.h: Change movmem to cpymem in comment.
9089 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
9090 * config/c6x/c6x-protos.h: Change movmem to cpymem.
9091 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
9092 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
9093 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
9094 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
9095 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
9096 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
9097 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
9098 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
9099 expand_small_cpymem_or_setmem,
9100 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
9101 expand_set_or_cpymem_constant_prologue,
9102 ix86_expand_set_or_cpymem): Change movmem to cpymem.
9103 * config/i386/i386-protos.h: Change movmem to cpymem.
9104 * config/i386/i386.h: Change movmem to cpymem in comment.
9105 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
9106 (setmem<mode>): Change expansion function name.
9107 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
9108 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
9109 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
9110 * config/m32c/m32c-protos.h: Change movmem to cpymem.
9111 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
9112 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
9113 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
9115 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
9116 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
9117 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
9118 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
9119 Change movmem to cpymem.
9120 * config/mips/mips.h: Change movmem to cpymem.
9121 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
9122 * config/nds32/nds32-memory-manipulation.c
9123 (nds32_expand_movmemsi_loop_unknown_size,
9124 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
9125 nds32_expand_movmemsi_unroll,
9126 nds32_expand_movmemsi): Change movmem to cpymem.
9127 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
9128 * config/nds32/nds32-protos.h: Change movmem to cpymem.
9129 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
9130 (pa_adjust_insn_length): Change call to compute_movmem_length.
9131 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
9132 movmemdi, movmemdi_prereload,
9133 movmemdi_postreload): Change movmem to cpymem.
9134 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
9135 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
9136 * config/riscv/riscv.c: Change movmem to cpymem in comment.
9137 * config/riscv/riscv.h: Change movmem to cpymem.
9138 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
9139 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
9140 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
9142 * config/s390/s390-protos.h: Change movmem to cpymem.
9143 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
9144 s390_expand_insv): Change movmem to cpymem.
9145 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
9146 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
9147 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
9148 * config/sparc/sparc.h: Change movmem to cpymem in comment.
9149 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
9150 for nonexistent function.
9151 * config/vax/vax.h: Change movmem to cpymem in comment.
9152 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
9153 * config/visium/visium.h: Change movmem to cpymem in comment.
9154 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
9155 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
9156 * doc/md.texi: Change movmem to cpymem and update description to match.
9157 * doc/rtl.texi: Change movmem to cpymem.
9158 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
9159 * doc/tm.texi: Regenerate.
9161 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
9163 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
9164 -fvariable-expansion-in-unroller by default.
9165 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
9168 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
9171 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9172 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9174 * config.gcc(rs6000-*-*): Define target_gtfiles.
9176 2019-06-27 Jan Hubicka <jh@suse.cz>
9178 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
9179 (add_type_duplicate): When odr hash is not allocated, to nothing.
9180 (odr_based_tbaa_p): New function.
9181 (set_type_canonical_for_odr_type): New function.
9182 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
9183 set_type_canonical_for_odr_type): New.
9184 * tree.c (gimple_canonical_types_compatible_p): ODR types with
9185 ODR based TBAA are not equivalent to non-ODR types.
9187 2019-06-27 Martin Liska <mliska@suse.cz>
9189 PR tree-optimization/90974
9190 PR rtl-optimization/90975
9191 PR rtl-optimization/90976
9193 PR tree-optimization/91017
9194 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
9196 * lra.c (lra_set_insn_recog_data): Remove a leftover from
9197 initial commit of IRA.
9198 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
9200 * tree-vect-loop.c (vect_create_epilog_for_reduction):
9201 Remove unused mode1.
9202 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
9205 2019-06-27 Jakub Jelinek <jakub@redhat.com>
9208 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
9209 instead of register_operand for operands[1], add m to its constraints
9210 if operands[2] uses "C" constraint. Ensure in condition that if
9211 operands[2] is not 0, then operands[1] is not a MEM. For last two
9212 alternatives, use unaligned loads instead of aligned if operands[1] is
9215 2019-06-27 Martin Liska <mliska@suse.cz>
9217 * asan.c (asan_emit_allocas_unpoison): Remove obviously
9219 * bt-load.c (move_btr_def): Likewise.
9220 * builtins.c (expand_builtin_apply_args_1): Likewise.
9221 (expand_builtin_apply): Likewise.
9222 * cfgexpand.c (expand_asm_stmt): Likewise.
9223 (construct_init_block): Likewise.
9224 * cfghooks.c (verify_flow_info): Likewise.
9225 * cfgloopmanip.c (remove_path): Likewise.
9226 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
9227 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
9228 * combine.c (simplify_if_then_else): Likewise.
9229 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
9230 (choose_basereg): Likewise.
9231 (ix86_expand_prologue): Likewise.
9232 (ix86_preferred_output_reload_class): Likewise.
9233 * cselib.c (cselib_record_sets): Likewise.
9234 * df-scan.c (df_scan_alloc): Likewise.
9235 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
9236 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
9237 * emit-rtl.c (try_split): Likewise.
9238 * graphite-scop-detection.c (assign_parameter_index_in_region):
9240 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
9241 * ira-color.c (setup_profitable_hard_regs): Likewise.
9242 * ira.c (rtx_moveable_p): Likewise.
9243 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9244 * read-rtl.c (read_subst_mapping): Likewise.
9245 * regrename.c (scan_rtx): Likewise.
9246 * reorg.c (fill_slots_from_thread): Likewise.
9247 * tree-inline.c (tree_function_versioning): Likewise.
9248 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
9249 * tree-ssa-sink.c (statement_sink_location): Likewise.
9250 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9251 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
9252 (vect_create_epilog_for_reduction): Likewise.
9253 * tree.c (build_nonstandard_integer_type): Likewise.
9255 2019-06-27 Richard Biener <rguenther@suse.de>
9257 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
9259 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
9261 PR tree-optimization/89772
9262 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
9263 out-of-bound accesses checking.
9265 2019-06-27 Martin Liska <mliska@suse.cz>
9267 PR tree-optimization/91014
9268 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
9269 when LHS is NULL_TREE.
9271 2019-06-27 Martin Liska <mliska@suse.cz>
9273 * symbol-summary.h (traverse): Pass
9274 argument a to the call of callback.
9275 (gt_ggc_mx): Mark arguments as unused.
9276 (gt_pch_nx): Likewise.
9278 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
9281 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
9284 2019-06-26 Jeff Law <law@redhat.com>
9286 PR tree-optimization/90883
9287 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
9288 (delete_dead_or_redundant_assignment): Likewise.
9290 PR tree-optimization/90883
9291 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
9292 * tree-ssa-dse.c: Update various comments to distinguish between
9293 dead and redundant stores.
9294 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
9295 (dse_optimize_redundant_stores): New function.
9296 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
9297 Distinguish between dead and redundant calls in dump output. All
9299 (delete_dead_or_redundant_assignment): Similarly for assignments.
9300 (dse_optimize_stmt): Handle _CHK variants. For statements which
9301 store 0 into multiple memory locations, try to prove a subsequent
9304 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
9307 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
9308 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
9310 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9312 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
9313 (branch_islands): New extern.
9314 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
9315 * config/rs6000/rs6000.c: .. here.
9317 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
9319 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
9320 (powerpc*-*-*) ... to here.
9322 2019-06-26 Jeff Law <law@redhat.com>
9324 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
9325 memcpy, memmove and memset builtins.
9326 (maybe_trim_memstar_call): Likewise.
9328 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9330 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
9332 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
9334 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
9336 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9338 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
9340 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
9342 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
9345 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9347 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
9349 2019-06-26 Richard Biener <rguenther@suse.de>
9352 * tree-inline.c (remap_ssa_name): Copy SSA range info.
9354 2019-06-26 Richard Biener <rguenther@suse.de>
9356 * lto-streamer.h (lto_bitmap_alloc): Remove.
9357 (lto_bitmap_free): Likewise.
9358 * lto-streamer.c (lto_bitmap_alloc): Remove.
9359 (lto_bitmap_free): Likewise.
9360 (lto_obstack): Likewise.
9361 (lto_obstack_initialized): Likewise.
9362 * lto-streamer-out.c (lto_output): Use own obstack for local
9363 bitmap, free it consistently.
9365 2019-06-26 Jakub Jelinek <jakub@redhat.com>
9368 * config/i386/sse.md
9369 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
9370 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
9371 insns if operands[2] is misaligned_operand.
9373 2019-06-26 Li Jia He <helijia@linux.ibm.com>
9375 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
9377 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
9380 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
9382 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
9384 2019-06-26 Martin Liska <mliska@suse.cz>
9386 PR tree-optimization/90973
9387 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
9388 epilogue_cost_vec instead of prologue_cost_vec for
9391 2019-06-26 Martin Liska <mliska@suse.cz>
9393 * bb-reorder.c (connect_better_edge_p): Add missing else
9394 statement in the middle of if-else statements.
9396 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
9397 H.J. Lu <hongjiu.lu@intel.com>
9398 Olga Makhotina <olga.makhotina@intel.com>
9400 * common/config/i386/i386-common.c
9401 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
9402 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
9403 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
9404 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
9405 (ix86_handle_option): Handle -mavx512vp2intersect.
9406 * config/i386/avx512vp2intersectintrin.h: New.
9407 * config/i386/avx512vp2intersectvlintrin.h: New.
9408 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
9409 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9411 * config/i386/i386-builtin-types.def: Add new types.
9412 * config/i386/i386-builtin.def: Add new builtins.
9413 * config/i386/i386-builtins.c: (enum processor_features): Add
9414 F_AVX512VP2INTERSECT.
9415 (static const _isa_names_table isa_names_table): Ditto.
9416 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9417 __AVX512VP2INTERSECT__.
9418 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
9419 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
9420 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
9421 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
9422 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
9423 * config/i386/i386-options.c (ix86_target_string): Add
9424 -mavx512vp2intersect.
9425 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
9426 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
9427 P2HImode and P2QImode.
9428 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
9429 number for P2QImode and P2HImode.
9430 (ix86_regmode_natural_size): New function.
9431 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
9432 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
9433 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
9434 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
9435 * config/i386/i386.opt: Add -mavx512vp2intersect.
9436 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
9437 avx512vp2intersectvlintrin.h.
9438 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
9439 (define_mode_iterator VI48_AVX512VP2VL): New.
9440 (avx512vp2intersect_2intersect<mode>,
9441 avx512vp2intersect_2intersectv16si): New define_insn patterns.
9442 * config.gcc: Add avx512vp2intersectvlintrin.h and
9443 avx512vp2intersectintrin.h to extra_headers.
9444 * doc/invoke.texi: Document -mavx512vp2intersect.
9446 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
9448 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
9450 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
9452 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
9453 savres_routine_syms, savres_routine_name, morestack_ref,
9454 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9455 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9456 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9457 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9458 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9459 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9460 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9461 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9462 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9463 get_stack_clash_protection_probe_interval,
9464 get_stack_clash_protection_guard_size,
9465 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9466 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9467 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9468 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9469 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9470 gen_frame_mem_offset, rs6000_savres_routine_name,
9471 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9472 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9473 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9474 rs6000_global_entry_point_prologue_needed_p,
9475 rs6000_get_separate_components, rs6000_components_for_bb,
9476 rs6000_disqualify_components, rs6000_emit_prologue_components,
9477 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9478 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9479 rs6000_output_savres_externs, rs6000_output_function_prologue,
9480 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9481 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9482 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9483 rs6000_output_function_epilogue, gen_add3_const,
9484 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9485 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9487 (machine_function): Moved to rs6000.h.
9488 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
9490 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
9491 savres_routine_syms, savres_routine_name, morestack_ref,
9492 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
9493 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
9494 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
9495 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
9496 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
9497 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
9498 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
9499 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
9500 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
9501 get_stack_clash_protection_probe_interval,
9502 get_stack_clash_protection_guard_size,
9503 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
9504 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
9505 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
9506 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
9507 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
9508 gen_frame_mem_offset, rs6000_savres_routine_name,
9509 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
9510 ptr_regno_for_savres, rs6000_emit_savres_rtx,
9511 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
9512 rs6000_global_entry_point_prologue_needed_p,
9513 rs6000_get_separate_components, rs6000_components_for_bb,
9514 rs6000_disqualify_components, rs6000_emit_prologue_components,
9515 rs6000_emit_epilogue_components, rs6000_set_handled_components,
9516 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
9517 rs6000_output_savres_externs, rs6000_output_function_prologue,
9518 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
9519 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
9520 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
9521 rs6000_output_function_epilogue, gen_add3_const,
9522 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
9523 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
9524 to here from rs6000.c.
9525 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
9526 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
9527 quad_address_offset_p) Moved to here from rs6000.c.
9528 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
9529 * config/config.gcc: Add new source file rs6000-logue.c to garbage
9532 2019-06-25 Martin Liska <mliska@suse.cz>
9534 * hash-table.c (hashtab_chk_error): Move here from ...
9535 * hash-table.h (hashtab_chk_error): ... here.
9537 2019-06-25 Martin Liska <mliska@suse.cz>
9539 PR tree-optimization/90978
9540 * df-scan.c (df_update_entry_block_defs): Remove dead else
9542 (df_update_exit_block_uses): Likewise.
9544 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
9545 Andrew Stubbs <ams@codesourcery.com>
9547 * config.gcc (thread_file): Set to gcn for AMD GCN.
9548 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
9549 (TARGET_EMUTLS_VAR_INIT): New hook.
9551 2019-06-25 Martin Jambor <mjambor@suse.cz>
9554 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
9556 2019-06-25 Richard Biener <rguenther@suse.de>
9558 PR tree-optimization/90930
9559 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
9560 into parallel form in the last pass instance.
9562 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
9564 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
9565 (arc_legitimize_pic_address): Simplify and cleanup the function.
9566 (SYMBOLIC_CONST): Remove.
9567 (prepare_pic_move): Likewise.
9568 (prepare_move_operands): Handle complex mov cases here.
9569 (arc_legitimize_address_0): Remove call to
9570 arc_legitimize_pic_address.
9571 (arc_legitimize_address): Remove call to
9572 arc_legitimize_tls_address.
9573 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
9574 (movhi_insn): Likewise.
9576 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9578 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
9580 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
9581 format of "__intN" types for UINTMAX_TYPE.
9582 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
9583 format of "__intN" types for SIZETYPE.
9584 * tree.c (build_common_tree_nodes): Accept "__intN__"
9585 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
9586 * doc/invoke.texi: Document that __intN__ disables pedantic
9589 2019-06-25 Jan Hubicka <jh@suse.cz>
9591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
9592 base2_alias_set is non-zero before doing TBAA based disambiguation.
9594 2019-06-25 Martin Liska <mliska@suse.cz>
9596 PR tree-optimization/90973
9597 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
9598 of prologue and epilogue.
9600 2019-06-24 Jan Hubicka <jh@suse.cz>
9602 * ipa-utils.h (type_with_linkage_p): Verify that type is
9604 (odr_type_p): Remove extra return.
9605 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
9606 hash STRING_FLAG only for arrays and integers.
9607 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
9609 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9611 * print-tree.c (print_node): Print cxx-odr-p
9613 * tree.c (need_assembler_name_p): Also check that type
9615 (verify_type_variant): Update verification of SRING_FLAG;
9616 also check CXX_ODR_P.
9617 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
9618 (TYPE_STRING_FLAG): Use it.
9619 (TYPE_CXX_ODR_P): New macro.
9620 * dwarf2out.c (gen_array_type_die): First check that type
9621 is an array and then test string flag.
9623 2019-06-24 Richard Biener <rguenther@suse.de>
9625 PR tree-optimization/90972
9626 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
9627 in common code, dealing with STRING_CST properly.
9629 2019-06-24 Richard Biener <rguenther@suse.de>
9631 PR tree-optimization/90930
9632 PR tree-optimization/90316
9633 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
9636 2019-06-24 Martin Sebor <msebor@redhat.com>
9638 * tree-pretty-print.h: Remove unnecessary punctuation characters
9640 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
9642 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
9644 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
9645 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
9646 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
9648 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9650 * config/rs6000/darwin.h: Handle GCC target pragma.
9652 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
9654 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
9656 2019-06-22 Jeff Law <law@redhat.com>
9658 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9660 2019-06-22 Jan Hubicka <jh@suse.cz>
9662 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
9663 give up on bitfields; continue searching for different refs
9666 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9668 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9669 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
9670 containing the offset as possible simd lane access. Look through
9671 widening conversion. Move the
9672 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
9674 2019-06-21 Richard Biener <rguenther@suse.de>
9676 PR tree-optimization/90930
9677 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
9678 flag on new stmts to avoid re-processing them.
9680 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
9682 PR c++/90875 - added -Wswitch-outside-range option
9683 * doc/invoke.texi (Wswitch-outside-range): Document.
9685 2019-06-21 Jeff Law <law@redhat.com>
9687 PR tree-optimization/90949
9688 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
9689 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
9691 2019-06-21 Richard Biener <rguenther@suse.de>
9694 * dwarf2out.c (prune_unused_types_walk): Always consider
9695 function-local extern declarations as used.
9697 2019-06-21 Richard Biener <rguenther@suse.de>
9699 PR tree-optimization/90913
9700 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
9701 the scalar variant of if-conversion versioning.
9703 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9705 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
9706 create another "omp scan inscan exclusive" array if
9707 !ctx->scan_inclusive.
9708 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
9709 (lower_omp_scan): Likewise.
9710 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
9711 2-bit bitfield for simd_lane_access_p member.
9712 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
9713 aux == (void *)-4 as simd lane access.
9714 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
9715 comment with permutations to show the canonical permutation order.
9716 (vectorizable_scan_store): Handle exclusive scan.
9717 (vectorizable_store): Call vectorizable_scan_store even for
9718 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
9720 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9721 "omp simd array" arrays with one byte elements.
9723 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
9725 * config/alpha/alpha.md (@unaligned_store<mode>):
9726 Rename from unaligned_store<mode>.
9727 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
9728 * config/alpha/sync.md (@load_locked_<mode>): Rename
9729 from load_locked_<mode>.
9730 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
9731 (@atomic_compare_and_swap<mode>_1): Rename
9732 from atomic_compare_and_swap<mode>_1.
9733 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
9734 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
9735 Use gen_reload_in_aligned and gen_unaligned_store.
9736 (emit_load_locked): Remove.
9737 (emit_store_conditional): Ditto.
9738 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
9739 (alpha_split_compare_and_swap): Ditto.
9740 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
9741 (alpha_split_compare_and_swap_12): Use gen_load_locked
9742 and gen_store_conditional.
9743 (alpha_split_atomic_exchange): Ditto.
9744 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9745 (alpha_split_atomic_exchange_12): Use gen_load_locked
9746 and gen_store_conditional.
9748 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9750 * config/aarch64/aarch64-errata.h: New file.
9751 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9752 (CA53_ERR_843419_SPEC): Delete.
9753 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
9754 * config/aarch64/aarch64-linux.h: Likewise.
9755 * config/aarch64/aarch64-netbsd.h: Likewise.
9756 * config/aarch64/aarch64-freebsd.h: Likewise.
9758 2019-06-20 Marek Polacek <polacek@redhat.com>
9760 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
9762 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
9764 * config/rs6000/rs6000.md (isa attribute): Add support for
9765 for a future processor.
9767 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
9770 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
9771 standard scalar operation pattern for V2DF.
9772 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
9773 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9774 (*ieee_<ieee_maxmin><mode>3): Likewise.
9775 (vec_setv2df_0): Likewise.
9777 2019-06-20 Jan Hubicka <jh@suse.cz>
9779 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
9780 parameter; it has no use in gimple memory model.
9781 (indirect_ref_may_alias_decl_p): Update.
9783 2019-06-20 Martin Liska <mliska@suse.cz>
9785 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
9788 2019-06-20 Jakub Jelinek <jakub@redhat.com>
9790 * tree-vect-stmts.c (enum scan_store_kind): New type.
9791 (scan_store_can_perm_p): Change last argument from int * to
9792 vec<enum scan_store_kind> *, record precisely which permutations
9793 need whole vector left shift or that plus VEC_COND_EXPR.
9794 (vectorizable_scan_store): Adjust caller, use whole vector left shift
9795 and additional VEC_COND_EXPR only for those iterations that need it.
9797 2019-06-20 Alexandre Oliva <oliva@adacore.com>
9799 * config.gcc: Fix ARM --with-fpu checking and error message.
9801 2019-06-19 Marek Polacek <polacek@redhat.com>
9803 PR c++/60364 - noreturn after first decl not diagnosed.
9804 * attribs.c (get_attribute_namespace): No longer static.
9805 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
9807 (attr_noreturn_exclusions): Make it extern.
9808 * attribs.h (get_attribute_namespace): Declare.
9809 * tree-inline.c (function_attribute_inlinable_p): Use
9812 2019-06-19 Martin Sebor <msebor@redhat.com>
9814 PR tree-optimization/90626
9815 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
9817 PR tree-optimization/90626
9818 * tree-ssa-strlen.c (strxcmp_unequal): New function.
9819 (handle_builtin_string_cmp): Call it.
9821 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9823 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9824 and DARWIN_NOPIE_SPEC.
9825 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9826 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9827 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9828 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9829 (DARWIN_EXPORT_DYNAMIC): Delete.
9830 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9831 and pie options processing to darwin.h.
9832 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9834 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9836 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9837 in computing the number of options to be moved.
9839 2019-06-19 Maya Rashish <coypu@sdf.org>
9841 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9842 (CLEAR_INSN_CACHE) Use it.
9844 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9846 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9848 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9851 * builtins.c (expand_builtin_setjmp_setup): Save
9852 hard_frame_pointer_rtx.
9853 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9855 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9857 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9859 (remove_reg_equal_offset_note): Remove unused function.
9860 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9862 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9863 (arc_builtin_setjmp_frame_value): Remove function.
9864 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9865 (avr_builtin_setjmp_frame_value): Remove function.
9866 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9867 (ix86_builtin_setjmp_frame_value): Remove function.
9868 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9869 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9870 (sparc_builtin_setjmp_frame_value): Remove function.
9871 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9872 (vax_builtin_setjmp_frame_value): Remove function.
9873 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9874 pointer if has_nonlocal_label.
9876 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9878 * doc/md.texi: Document vec_shl_<mode> pattern.
9879 * optabs.def (vec_shl_optab): New optab.
9880 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9881 argument, if == vec_shl_optab, check for left whole vector shift
9882 pattern rather than right shift.
9883 (expand_vec_perm_const): Add vec_shl_optab support.
9884 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9886 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9887 can be handled by vec_shl_optab.
9888 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9889 (check_scan_store): Use it.
9890 (vectorizable_scan_store): If target can't do normal permutations,
9891 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9893 * config/i386/sse.md (vec_shl_<mode>): New expander.
9895 * omp-low.c (lower_rec_input_clauses): Handle references properly
9897 (lower_omp_scan): Likewise.
9899 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9901 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9902 mem_mode is BLKmode.
9904 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9907 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9908 pointer adjustment for the case of no callee-saved registers and
9909 stack frame bigger than 128 bytes.
9911 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9914 * omp-low.c (check_omp_nesting_restrictions): Handle
9915 GF_OMP_TARGET_KIND_OACC_DECLARE.
9917 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9919 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9920 (@add<mode>3_carry): Rename from add<mode>3_carry.
9921 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9922 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9923 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9924 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9925 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9926 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9927 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9928 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9929 (cmpstrnsi): Use gen_cmp_1.
9930 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9931 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9932 (@umonitor_<mode>): Rename from umonitor_<mode>.
9933 * config/i386/i386-expand.c (ix86_expand_copysign):
9934 Use gen_copysign3_const and gen_copysign3_var.
9935 (ix86_expand_xorsign): Use gen_xorsign3_1.
9936 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9937 gen_sub3_carry_ccgz and gen_cmp1.
9938 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9939 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9940 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9941 (ix86_split_lshr): Ditto.
9942 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9944 2019-06-18 Jason Merrill <jason@redhat.com>
9946 * tree.c (build_constructor): Add MEM_STAT_DECL.
9948 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9950 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9951 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9952 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9953 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9954 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9955 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9956 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9957 Use CC_NZC instead of CC.
9958 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9959 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9960 (aarch64_print_operand): Handle E_CC_NZCmode.
9961 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9962 of gen_set_clobber_cc.
9964 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9966 * config/aarch64/aarch64-sve.md: Tabify file.
9968 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9970 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9971 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9972 * config/aarch64/aarch64-sve.md: Use it.
9974 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9976 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9977 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9978 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9979 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9980 (aarch64_expand_sve_vec_cmp_int): Use it.
9981 (aarch64_expand_sve_vec_cmp_float): Likewise.
9982 * config/aarch64/aarch64-sve.md: Likewise throughout.
9984 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9985 Kugan Vivekanandarajah <kuganv@linaro.org>
9987 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9988 (*cond_<optab><mode>_z): Fold into...
9989 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9990 operand 4 can be tied to operand 0 (either inherently or via RA).
9992 2019-06-18 Richard Biener <rguenther@suse.de>
9995 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9996 as if optimized away.
9998 2019-06-18 Tom de Vries <tdevries@suse.de>
10000 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
10001 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
10002 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
10004 (define_insn "@set_softstack_<mode>"): ... this.
10005 (define_insn "omp_simt_enter_<mode>"): Rename to ...
10006 (define_insn "@omp_simt_enter_<mode>"): ... this.
10007 (define_insn "omp_simt_exit_<mode>"): Rename to ...
10008 (define_insn "@omp_simt_exit_<mode>"): ... this.
10010 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
10012 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
10013 vf parameter. Restore the previous iv step of nscalars_step,
10014 but give it iv_type rather than compare_type. Tweak code order
10015 to match the comments.
10016 (vect_set_loop_condition_masked): Update accordingly.
10017 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
10018 for iv_precision. Tweak comment formatting.
10020 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10022 * config/darwin.c: Strip trailing whitespace.
10024 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
10026 * config/darwin.c (darwin_emit_unwind_label): New default to false.
10027 (darwin_override_options): Set darwin_emit_unwind_label as needed.
10029 2019-06-18 Martin Jambor <mjambor@suse.cz>
10032 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
10033 caller does not have flag_ipa_cp set.
10035 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10037 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
10038 from "*fold_left_plus_<mode>", updated operands order.
10039 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
10040 * internal-fn.c (mask_fold_left_direct): New define.
10041 (expand_mask_fold_left_optab_fn): Likewise.
10042 (direct_mask_fold_left_optab_supported_p): Likewise.
10043 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
10044 * optabs.def (mask_fold_left_plus_optab): New optab.
10045 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
10046 masked internal_fn for a reduction ifn.
10047 (vectorize_fold_left_reduction): Add support for masking reductions.
10049 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
10051 PR middle-end/80791
10052 * target.def (predict_doloop_p): New hook.
10053 * targhooks.h (default_predict_doloop_p): New declaration.
10054 * targhooks.c (default_predict_doloop_p): New function.
10055 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
10056 * doc/tm.texi: Regenerate.
10057 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
10058 (TARGET_PREDICT_DOLOOP_P): New macro.
10059 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
10061 2019-06-17 Jakub Jelinek <jakub@redhat.com>
10063 * omp-low.c (struct omp_context): Add scan_inclusive field.
10064 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
10066 (struct omplow_simd_context): Add lastlane member.
10067 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
10068 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
10070 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
10071 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
10072 (lower_omp_scan): New function.
10073 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
10074 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
10075 check 3rd argument if present rather than 2nd.
10076 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
10077 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
10079 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10080 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
10082 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
10083 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
10084 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
10086 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
10087 IFN_GOMP_SIMD_LANE argument.
10088 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
10089 encoded ->aux value.
10090 * tree-vect-stmts.c: Include attribs.h.
10091 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
10092 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
10094 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
10095 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
10097 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
10100 * config/i386/i386.md (*nabstf2_1): New insn pattern.
10101 (*nabs<mode>2_1): Ditto.
10102 (nabs sse-reg splitter): New splitter.
10103 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
10105 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10107 PR bootstrap/90873.
10108 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10111 2019-06-17 Tom de Vries <tdevries@suse.de>
10113 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
10114 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
10115 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
10117 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
10119 (define_insn "omp_simt_enter_insn"): Rename to ...
10120 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
10121 match_operand 0, 1 and 2, as well as the unspec_volatile result.
10122 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
10123 gen_omp_simt_enter_si.
10124 (define_expand "omp_simt_exit"): New.
10125 (define_insn "omp_simt_exit"): Rename to ...
10126 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
10129 2019-06-17 Matthew Green <mrg@eterna.com.au>
10130 Maya Rashish <coypu@sdf.org>
10132 * config.gcc (aarch64*-*-netbsd*): New target.
10133 * config/aarch64/aarch64-netbsd.h: New file.
10134 * config/aarch64/t-aarch64-netbsd: Likewise.
10136 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10138 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
10139 the access path from base to first VIEW_CONVERT_EXPR or
10142 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
10144 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
10145 access path on BIT_FIELD_REFs.
10147 2019-06-17 Martin Liska <mliska@suse.cz>
10150 * ipa-utils.h (odr_type_p): Remove dead code.
10152 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10154 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
10155 alternative Solaris 11.4 format.
10156 * configure: Regenerate.
10158 2019-06-17 Tom de Vries <tdevries@suse.de>
10160 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
10161 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
10163 (define_insn "call_value_insn"): Rename to ...
10164 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
10166 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
10169 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
10171 PR middle-end/64242
10172 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
10173 frame clobbers and schedule block.
10174 (builtin_longjmp): Likewise.
10176 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10178 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
10179 describe how to perform MSPABI compliant 64-bit shift.
10180 * config/msp430/msp430.md (ashldi3): New define_expand.
10181 (ashrdi3): New define_expand.
10182 (lshrdi3): New define_expand.
10184 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10186 * doc/sourcebuild.texi: Document new effective target keyword
10189 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10191 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
10192 indirect_refs_may_alias_p): Revert accidental commits.
10194 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
10195 at the end of structures.
10197 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10199 * config/darwin.c (machopic_indirect_call_target): Use renamed
10200 darwin_picsymbol_stubs to decide on output.
10201 (darwin_override_options): Handle darwin_picsymbol_stubs.
10202 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
10203 (LD64_VERSION): Revise default.
10204 * config/darwin.opt: (mpic-symbol-stubs): New option.
10205 (darwin_picsymbol_stubs): New variable.
10206 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
10207 rename to TARGET_MACHO_PICSYM_STUBS.
10208 * config/i386/i386.c (output_pic_addr_const): Likewise.
10209 * config/i386/i386.h Likewise.
10210 * config/rs6000/darwin.h: Likewise.
10211 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
10212 darwin_picsymbol_stubs.
10214 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
10216 * config/darwin.opt (prebind, noprebind, seglinkedit,
10217 noseglinkedit): Add RejectNegative.
10219 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
10221 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
10222 in my previous patch.
10224 2019-06-16 Tom de Vries <tdevries@suse.de>
10226 PR tree-optimization/89376
10227 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
10229 2019-06-15 Maya Rashish <coypu@sdf.org>
10231 * doc/invoke.texi (Spec Files): Update location of the
10234 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
10236 * doc/extend.texi (Common Function Attributes): Clarify
10237 no_sanitize. Fix grammar.
10239 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
10241 * tree-ssa-alias.c (alias_stats): Add
10242 nonoverlapping_component_refs_p_may_alias,
10243 nonoverlapping_component_refs_p_no_alias,
10244 nonoverlapping_component_refs_of_decl_p_may_alias,
10245 nonoverlapping_component_refs_of_decl_p_no_alias.
10246 (dump_alias_stats): Dump them.
10247 (nonoverlapping_component_refs_of_decl_p): Add stats.
10248 (nonoverlapping_component_refs_p): Add stats; do not stop on first
10251 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
10253 * config/i386/i386.md (and<mode>3): Generate zero-extends for
10254 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
10256 (*anddi3_doubleword): Split before reload. Merge with
10257 anddi->zext pre-reload splitter.
10258 (*andndi3_doubleword): Split before reload.
10259 (*<code>di3_doubleword): Ditto.
10260 (*one_cmpldi2_doubleword): Ditto.
10262 2019-06-15 Jakub Jelinek <jakub@redhat.com>
10264 PR middle-end/90779
10265 * gimplify.c: Include omp-offload.h and context.h.
10266 (gimplify_bind_expr): Add "omp declare target" attributes
10267 to static block scope variables inside of target region or target
10270 2019-06-15 Tom de Vries <tdevries@suse.de>
10272 PR tree-optimization/90009
10273 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
10274 Return NULL if bb contains IFN_UNIQUE.
10276 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
10278 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
10279 (un): New define_mode_attr.
10280 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
10281 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
10282 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
10284 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
10286 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
10288 * config/darwin.opt: Add RejectNegative where needed, reorder
10289 and add minimal functional descriptions.
10291 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10293 PR rtl-optimization/90765
10294 * calls.c (update_stack_alignment_for_call): New function.
10295 (expand_call): Call update_stack_alignment_for_call when
10296 outgoing parameter is passed in the stack.
10297 (emit_library_call_value_1): Likewise.
10298 * function.c (locate_and_pad_parm): Don't update
10299 stack_alignment_needed and preferred_stack_boundary.
10301 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
10304 * config/i386/i386-features.c
10305 (dimode_scalar_chain::compute_convert_gain): Replace
10306 mmxsse_to_integer with sse_to_integer.
10307 * config/i386/i386.c (ix86_register_move_cost): Verify that
10308 moves between MMX and non-MMX units require secondary memory.
10309 Correct costs of moves between SSE and integer units.
10310 * config/i386/i386.h (processor_costs): Rename cost of moving
10311 SSE register to integer to sse_to_integer. Rename cost of
10313 2019-06-14 Matt Thomas <matt@3am-software.com>
10314 Matthew Green <mrg@eterna.com.au>
10315 Nick Hudson <skrll@netbsd.org>
10316 Maya Rashish <coypu@sdf.org>
10317 Richard Earnshaw <rearnsha@arm.com>
10319 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
10320 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
10321 * config/arm/netbsd-eabi.h: New file.
10322 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
10324 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
10325 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
10326 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
10327 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
10329 2019-06-14 Richard Biener <rguenther@suse.de>
10331 * tree-loop-distribution.c (classify_partition): Return
10332 whether a reduction appeared in all partitions and do not
10333 stop builtin detection because of this.
10334 (distribute_loop): Sort a non-builtin partition last if
10335 there's a reduction in all partitions and make sure the
10336 partition prevailing as last is not a builtin.
10338 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
10341 * ipa-prop.c (add_to_agg_contents_list): New function.
10342 (clobber_by_agg_contents_list_p): Likewise.
10343 (extract_mem_content): Likewise.
10344 (get_place_in_agg_contents_list): Delete.
10345 (determine_known_aggregate_parts): Renamed from
10346 determine_locally_known_aggregate_parts. New parameter
10349 2019-06-13 Martin Sebor <msebor@redhat.com>
10351 PR tree-optimization/90662
10352 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
10355 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10358 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
10359 dbase is not TARGET_MEM_REF.
10361 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10363 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
10365 (and<mode>3): Use gen_extend_insn instead of indirect functions.
10366 Do not generate DImode extends for 32bit targets.
10367 (and->zext post-reload splitter): Use gen_extend_insn
10368 instead of indirect functions.
10369 (anddi->zext pre-reload splitter): New.
10370 (*zext<mode>_doubleword_and): Remove.
10371 (*zext<mode>_doubleword): Ditto.
10372 (*zextsi_doubleword): Dittto.
10374 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
10376 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
10377 Use gen_sub3_insn instead of indirect function.
10378 (ix86_expand_ashl_const): Use gen_add2_insn instead of
10380 (ix86_adjust_counter): Ditto.
10382 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
10383 Lijia He <helijia@linux.ibm.com>
10385 PR tree-optimization/77820
10386 * tree-ssa-threadedge.c
10387 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
10389 (thread_across_edge): Add call to
10390 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
10392 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
10394 * config/darwin-driver.c (validate_macosx_version_min): New.
10395 (darwin_default_min_version): Cleanup and validate supplied version.
10396 (darwin_driver_init): Likewise and push cleaned version into opts.
10398 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
10400 PR tree-optimization/90869
10401 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
10402 converts in MEM_REF referencing decl rather than view converts
10403 from decl type to MEM_REF type.
10405 2019-06-13 Richard Biener <rguenther@suse.de>
10407 PR tree-optimization/90856
10408 * tree-sra.c (build_ref_for_model): Only use
10409 build_reconstructed_reference when address-spaces are the same.
10411 2019-06-13 Jakub Jelinek <jakub@redhat.com>
10413 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
10414 wrap ei variable name in the declaration in ()s.
10415 (nvptx_single): Actually use mode_label variable. Formatting fix.
10417 2019-06-13 Richard Biener <rguenther@suse.de>
10419 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
10420 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
10421 also return the condition stmt.
10422 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
10423 loop we can version and version that, reusing the loop version
10424 created by if-conversion instead of versioning again.
10426 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
10428 * gimple-loop-versioning.cc (prune_loop_conditions): Use
10430 * tree-vrp (value_range_base::may_contain_p): Call into
10431 value_inside_range.
10432 (value_inside_range): Make private inside value_range_base class.
10433 Take min/max from *this.
10434 (range_includes_p): Remove.
10435 * tree-vrp.h (value_range_base): Add value_inside_range.
10436 (range_includes_p): Remove.
10437 (range_includes_zero_p): Call may_contain_p.
10438 * vr-values.c (compare_range_with_value): Same.
10440 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
10442 * doc/extend.texi (ARC Function Attributes): Update info.
10444 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
10446 PR tree-optimization/89713
10447 * doc/invoke.texi (-ffinite-loops): Document new option.
10448 * common.opt (-ffinite-loops): New option.
10449 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
10450 IFN_GOACC_LOOP calls as necessary.
10451 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
10453 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
10454 IFN_GOACC_LOOP call is not used.
10455 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
10457 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10460 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
10461 compare_type is not with Pmode size, we will create an IV with
10462 Pmode size with truncated use (i.e. converted to the correct type).
10463 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
10464 (vect_iv_limit_for_full_masking): New. Factored out of
10465 vect_set_loop_condition_masked.
10466 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
10467 (vect_iv_limit_for_full_masking): Declare.
10469 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10472 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
10473 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
10474 (get_alias_ptr_type_for_ptr_address): Likewise.
10475 (add_iv_candidate_for_use): Add scaled index candidate if useful.
10476 * tree-ssa-address.c (preferred_mem_scale_factor): New.
10477 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
10480 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
10482 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
10484 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
10486 * common/config/pru/pru-common.c: New file.
10487 * config.gcc: Add PRU target.
10488 * config/pru/alu-zext.md: New file.
10489 * config/pru/constraints.md: New file.
10490 * config/pru/predicates.md: New file.
10491 * config/pru/pru-opts.h: New file.
10492 * config/pru/pru-passes.c: New file.
10493 * config/pru/pru-pragma.c: New file.
10494 * config/pru/pru-protos.h: New file.
10495 * config/pru/pru.c: New file.
10496 * config/pru/pru.h: New file.
10497 * config/pru/pru.md: New file.
10498 * config/pru/pru.opt: New file.
10499 * config/pru/t-pru: New file.
10500 * doc/extend.texi: Document PRU pragmas.
10501 * doc/invoke.texi: Document PRU-specific options.
10502 * doc/md.texi: Document PRU asm constraints.
10504 2019-06-12 Martin Sebor <msebor@redhat.com>
10506 PR middle-end/90676
10507 * tree-pretty-print.c (dump_mem_ref): New function. Include
10508 MEM_REF type in output when different size than operand.
10509 (dump_generic_node): Move code to dump_mem_ref and call it.
10511 2019-06-12 Martin Sebor <msebor@redhat.com>
10513 PR tree-optimization/90662
10514 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
10517 2019-06-12 Tom de Vries <tdevries@suse.de>
10519 PR tree-optimization/90009
10520 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
10522 2019-06-12 Martin Liska <mliska@suse.cz>
10524 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
10526 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
10527 * mem-stats.h (mem_alloc_description::mem_alloc_description):
10528 Do not sanitize created maps.
10530 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
10532 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
10533 value_range::singleton_p.
10534 * tree-vrp.c (value_range_constant_singleton): Remove.
10535 * tree-vrp.h (value_range_constant_singleton): Remove.
10536 * vr-values.c (vr_values::singleton): Use
10537 value_range::singleton_p.
10539 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10542 * cfgexpand.c (align_local_variable): Add really_expand argument,
10543 don't SET_DECL_ALIGN if it is false.
10544 (add_stack_var): Add really_expand argument, pass it through to
10545 align_local_variable.
10546 (expand_one_stack_var_1): Pass true as really_expand to
10547 align_local_variable.
10548 (expand_one_ssa_partition): Pass true as really_expand to
10550 (expand_one_var): Pass really_expand through to add_stack_var.
10552 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10554 * config/arm/iterators.md (VABAL): New int iterator.
10555 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
10556 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
10557 UNSPEC_VABAL_U values.
10559 2019-06-12 Martin Liska <mliska@suse.cz>
10561 * value-prof.c (stream_out_histogram_value): Only first value
10564 2019-06-12 Jakub Jelinek <jakub@redhat.com>
10567 * symtab.c (symtab_node::set_section): Allow being called on aliases
10568 as long as they aren't analyzed yet.
10570 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
10572 * config/mips/mips.c (mips_final_postscan_insn): Modify call
10573 to `mips_set_text_contents_type' to indicate whether a
10574 non-debug insn follows.
10576 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
10578 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
10579 enabling -mpcrel by default.
10580 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
10581 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
10582 that the test against -mcpu=future is done first. Then test if
10583 -mprefixed-addr is on for -mpcrel.
10584 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
10586 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10589 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
10590 instead of and.u%d.
10592 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10594 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
10596 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
10598 PR c++/90449 - add -Winaccessible-base option.
10599 * doc/invoke.texi (Winaccessible-base): Document.
10601 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
10603 PR tree-optimization/62041
10604 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
10606 2019-06-11 Jason Merrill <jason@redhat.com>
10608 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
10609 * tree.c (get_tree_code_name): Likewise.
10610 * print-tree.c (print_node): Only briefly print a node with an
10613 2019-06-11 Jakub Jelinek <jakub@redhat.com>
10616 * trans-mem.c (tm_memopt_compute_available): Add assertion
10617 that blocks is not empty. Formatting fix.
10619 2019-06-11 Martin Liska <mliska@suse.cz>
10622 * hash-table.h: Extend create_gcc, add one parameter
10623 that is passed into hash_table::hash_table.
10625 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
10627 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
10629 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10630 Emit clobber also for non-sse operations.
10631 (ix86_split_fp_absneg_operator): New function.
10632 * config/i386/i386.md (SSEMODEF): New mode iterator.
10633 (ssevecmodef): New mode attribute.
10634 (<code>tf2): Use absneg code iterator.
10635 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
10636 Add three-operand AVX alternatives.
10637 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
10638 Use absneg code iterator and X87MODEF mode iterator.
10639 (absneg fp_reg non-sse splitter): Call absneg code iterator
10640 and X87MODEF mode iterator.
10641 (absneg general_reg non-sse splitter): Use absneg code iterator
10642 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
10643 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
10644 code iterator. Add three-operand AVX alternative.
10645 (absneg sse_reg splitter): Use absneg code iterator
10646 and SSEMODEF mode iterator. Handle AVX operands.
10647 (absneg fp_reg splitter): Use absneg code iterator
10648 and MODEF mode iterator.
10649 (absneg general_reg splitter): Merge splitters using MODEF mode
10650 iterator. Use absneg code iterator. Call
10651 ix86_split_fp_absneg_operator.
10652 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
10653 Do not enable for non-sse modes before reload.
10654 (CSGNMODE): Remove.
10655 (CSGNVMODE): Ditto.
10656 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
10657 ssevecmodef mode attribute instaed of CSGNVMODE.
10658 (copysign<mode>3_const): Ditto.
10659 (copysign<mode>3_var): Ditto.
10660 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
10661 Use absneg code iterator. Simplify code using std::swap.
10662 * config/i386/predicates.md (absneg_operator): Remove.
10664 2019-06-10 Martin Sebor <msebor@redhat.com>
10666 * gimple-fold.c (get_range_strlen): Update comment that didn't
10667 make it into r267503 or related commits.
10669 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
10671 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
10672 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
10674 2019-06-10 Jakub Jelinek <jakub@redhat.com>
10676 * tree.def (OMP_SCAN): New tree code.
10677 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
10678 OMP_CLAUSE_EXCLUSIVE.
10679 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
10680 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
10681 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
10682 OMP_CLAUSE_{IN,EX}CLUSIVE.
10683 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10684 * tree-nested.c (convert_nonlocal_reference_stmt,
10685 convert_local_reference_stmt, convert_gimple_call): Handle
10687 * tree-pretty-print.c (dump_omp_clause): Handle
10688 OMP_CLAUSE_{IN,EX}CLUSIVE.
10689 (dump_generic_node): Handle OMP_SCAN.
10690 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
10691 * gimple.h (gomp_scan): New type.
10692 (is_a_helper <gomp_scan *>::test,
10693 is_a_helper <const gomp_scan *>::test): New templates.
10694 (gimple_build_omp_scan): Declare.
10695 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
10696 gimple_omp_scan_set_clauses): New inline functions.
10697 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
10698 * gimple.c (gimple_build_omp_scan): New function.
10699 (gimple_copy): Handle GIMPLE_OMP_SCAN.
10700 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
10701 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
10702 GIMPLE_OMP_TASKGROUP.
10703 (dump_gimple_omp_scan): New function.
10704 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
10705 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
10706 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
10707 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
10708 (is_gimple_stmt): Handle OMP_SCAN.
10709 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
10710 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10711 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
10712 mentioned in nested #pragma omp scan. Handle
10713 OMP_CLAUSE_{IN,EX}CLUSIVE.
10714 (gimplify_expr): Handle OMP_SCAN.
10715 * omp-low.c (check_omp_nesting_restrictions): For parent context,
10716 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
10718 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
10721 2019-06-10 Martin Liska <mliska@suse.cz>
10723 * ipa-cp.c (ignore_edge_p): New function.
10724 (build_toporder_info): Use it.
10725 * ipa-inline.c (ignore_edge_p): New function.
10726 (inline_small_functions): Use it.
10727 * ipa-pure-const.c (ignore_edge_for_nothrow):
10728 Verify opt_for_fn for caller and callee.
10729 (ignore_edge_for_pure_const): Likewise.
10730 * ipa-reference.c (ignore_edge_p): Extend to check
10732 * ipa-utils.c (searchc): Refactor.
10733 * ipa-utils.h: Fix coding style.
10735 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10737 * config/arc/arc.c (arc_rtx_costs): Update costs.
10739 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10741 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
10742 (arc_split_ior): Likewise.
10743 (arc_check_mov_const): Likewise.
10744 (arc_split_mov_const): Likewise.
10745 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10746 (arc_rtx_costs): Replace check Crr with Cax constraint.
10747 (prepare_move_operands): Cleanup, remove unused code.
10748 (arc_split_ior): New function.
10749 (arc_check_ior_const): Likewise.
10750 (arc_split_mov_const): Likewise.
10751 (arc_check_mov_const): Likewise.
10752 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
10753 in define_insn_and_split pattern.
10754 (iorsi3): Likewise.
10755 (mulsi3_v2): Add new matching variant.
10756 (andsi3_i): Cleanup pattern.
10757 (rotrsi3_cnt1): Update pattern.
10758 (rotrsi3_cnt8): New pattern.
10759 (ashlsi2_cnt8): Likewise.
10760 (ashlsi2_cnt16): Likewise.
10761 * config/arc/constraints.md (C0p): Update constraint.
10763 (C0x): New pattern.
10764 (Cax): New pattern.
10766 2019-06-10 Martin Liska <mliska@suse.cz>
10768 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
10769 Update coding style.
10770 (sem_item_optimizer::dump_cong_classes):
10771 Print how many items are in a non-singular class. Improve
10774 2019-06-10 Martin Liska <mliska@suse.cz>
10776 * value-prof.c (dump_histogram_value): Change dump format.
10777 (gimple_mod_subtract_transform): Remove legacy comment.
10779 2019-06-10 Martin Liska <mliska@suse.cz>
10781 * value-prof.c (dump_histogram_value): Print histogram values
10784 2019-06-10 Martin Liska <mliska@suse.cz>
10786 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
10787 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
10788 * ipa-profile.c (ipa_profile_generate_summary):
10789 Use get_most_common_single_value.
10790 * tree-profile.c (gimple_init_gcov_profiler):
10791 Instrument with __gcov_one_value_profiler_v2
10792 and __gcov_indirect_call_profiler_v4.
10793 * value-prof.c (dump_histogram_value):
10794 Print all values for HIST_TYPE_SINGLE_VALUE.
10795 (stream_out_histogram_value): Update assert for
10797 (stream_in_histogram_value): Set number of
10798 counters for HIST_TYPE_SINGLE_VALUE.
10799 (get_most_common_single_value): New.
10800 (gimple_divmod_fixed_value_transform):
10801 Use get_most_common_single_value.
10802 (gimple_ic_transform): Likewise.
10803 (gimple_stringops_transform): Likewise.
10804 (gimple_find_values_to_profile): Set number
10805 of counters for HIST_TYPE_SINGLE_VALUE.
10806 * value-prof.h (get_most_common_single_value): New.
10808 2019-06-10 Martin Liska <mliska@suse.cz>
10810 * hash-map.h: Pass default value to hash_table ctor.
10811 * hash-table.h: Add default value to call of a ctor.
10813 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
10815 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
10816 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
10818 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
10821 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10822 Call pa_output_function_label.
10823 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10824 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10825 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10827 (pa_linux_output_function_prologue): Declare.
10828 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10829 (pa_output_function_label): New.
10830 (pa_output_function_prologue): Revise to use pa_output_function_label.
10831 (pa_linux_output_function_prologue): New.
10832 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10834 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10836 * tree-vrp.h (value_range_base::intersect): New.
10837 (value_range::intersect_helper): Move from here...
10838 (value_range_base::intersect_helper): ...to here.
10839 * tree-vrp.c (value_range::intersect_helper): Rename to...
10840 (value_range_base::intersect_helper): ...this, and rewrite to
10841 return a value instead of modifying THIS in place.
10842 Also, move equivalence handling...
10843 (value_range::intersect): ...here, while calling intersect_helper.
10844 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10846 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10848 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10850 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10852 * Makefile.in (genprogerr): Add condmd.
10853 (genprog): Remove it here.
10855 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10857 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10859 2019-06-07 Richard Biener <rguenther@suse.de>
10862 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10863 that appear after user labels.
10865 2019-06-07 Martin Liska <mliska@suse.cz>
10867 * cselib.c (cselib_init): Disable hash table
10869 * hash-set.h: Pass new default argument to m_table.
10870 * hash-table.c: Add global variable with hash table
10871 sanitization limit.
10872 * hash-table.h (Allocator>::hash_table): Add new argument
10874 (hashtab_chk_error): New.
10875 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10876 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10877 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10879 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10881 * common.opt (flto-odr-type-merging): Ignore.
10882 * invoke.texi (-flto-odr-type-merging): Remove.
10883 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10884 (can_be_vtable_hashed_p): Remove.
10885 (hash_odr_vtable): Remove.
10886 (odr_vtable_hasher::hash): Remove.
10887 (types_same_for_odr): Remove.
10888 (types_odr_comparable): Remove.
10889 (odr_vtable_hasher::equal): Remove.
10890 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10891 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10892 (get_odr_type): Do not use vtable hash.
10893 (dump_odr_type): Remove commented out code.
10894 (build_type_inheritance_graph): Do not allocate vtable hash.
10895 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10896 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10897 (odr_type_p): Likewise.
10898 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10901 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10903 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10904 immediately after same_types_for_tbaa_p returns -1 and continue
10905 looking for possible exact match; if matching types are arrays
10906 watch for partial overlaps.
10907 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10908 (indirect_refs_may_alias_p): Do type based disambiguation first;
10911 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10913 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10915 2019-06-07 Martin Liska <mliska@suse.cz>
10917 * doc/invoke.texi: Remove param.
10918 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10920 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10921 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10922 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10923 * profile.c (instrument_values): Remove
10924 HIST_TYPE_INDIR_CALL_TOPN.
10925 * tree-profile.c (init_ic_make_global_vars):
10926 Always build __gcov_indirect_call only.
10927 (gimple_init_gcov_profiler): Remove usage
10928 of PARAM_INDIR_CALL_TOPN_PROFILE.
10929 (gimple_gen_ic_profiler): Likewise.
10930 * value-prof.c (dump_histogram_value): Likewise.
10931 (stream_in_histogram_value): Likewise.
10932 (gimple_indirect_call_to_profile): Likewise.
10933 (gimple_find_values_to_profile): Likewise.
10934 * value-prof.h (enum hist_type): Likewise.
10936 2019-06-07 Martin Liska <mliska@suse.cz>
10938 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10941 2019-06-07 Martin Liska <mliska@suse.cz>
10943 PR tree-optimization/78902
10944 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10945 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10946 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10947 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10948 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10949 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10950 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10951 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10952 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10953 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10954 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10955 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10956 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10958 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10959 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10960 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10961 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10962 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10963 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10964 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10965 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10966 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10967 warn_unused_result attribute.
10968 (BUILT_IN_STRDUP): Likewise.
10969 (BUILT_IN_STRNDUP): Likewise.
10970 (BUILT_IN_ALLOCA): Likewise.
10971 (BUILT_IN_CALLOC): Likewise.
10972 (BUILT_IN_MALLOC): Likewise.
10973 (BUILT_IN_REALLOC): Likewise.
10975 2019-06-06 Jim Wilson <jimw@sifive.com>
10978 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10979 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10980 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10982 2019-06-06 Martin Sebor <msebor@redhat.com>
10984 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10985 (handle_builtin_malloc): Remove trailing spaces.
10986 (handle_builtin_memset): Same.
10987 (handle_builtin_memcmp): Same.
10988 (compute_string_length): Same.
10989 (determine_min_objsize): Same.
10990 (handle_builtin_string_cmp): Same.
10991 (handle_char_store): Same. Break up excessively long line.
10993 2019-06-06 Martin Jambor <mjambor@suse.cz>
10995 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10998 2019-06-06 Martin Jambor <mjambor@suse.cz>
11000 * tree-sra.c (struct access): New field grp_same_access_path.
11001 (dump_access): Dump it.
11002 (build_reconstructed_reference): New function.
11003 (build_ref_for_model): Use it if possible.
11004 (path_comparable_for_same_access): New function.
11005 (same_access_path_p): Likewise.
11006 (sort_and_splice_var_accesses): Set the new flag.
11007 (analyze_access_subtree): Likewise.
11008 (propagate_subaccesses_across_link): Propagate zero value of the new
11009 flag down the access tree.
11011 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
11013 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
11014 * config/gcn/gcn.opt (gpu_type): Add gfx906.
11015 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
11016 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
11019 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11021 PR tree-optimization/90332
11022 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
11023 Handle VALS containing two vectors.
11024 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
11026 (@aarch64_combinez<mode>): ... This.
11027 (*aarch64_combinez_be<mode>): Rename to...
11028 (@aarch64_combinez_be<mode>): ... This.
11029 (vec_init<mode><Vhalf>): New define_expand.
11030 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
11032 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11034 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
11035 library functions only when not optimizing for size.
11036 (ashlsi3): Likewise.
11037 (ashrhi3): Likewise.
11038 (ashrsi3): Likewise.
11039 (lshrhi3): Likewise.
11040 (lshrsi3): Likewise.
11042 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
11044 PR rtl-optimization/88751
11045 * ira.c (ira): Use the number of the actually referenced registers
11046 when calculating the threshold.
11048 2019-06-06 Jakub Jelinek <jakub@redhat.com>
11050 * configure: Regenerate.
11052 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11054 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
11055 register if it is in memory, so the shift can be emulated with a rotate
11057 (ashrhi3): Likewise.
11058 (lshrhi3): Likewise.
11060 2019-06-06 Martin Liska <mliska@suse.cz>
11062 PR tree-optimization/87954
11063 * match.pd: Simplify mult where both arguments are 0 or 1.
11065 2019-06-06 Richard Biener <rguenther@suse.de>
11067 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
11068 put equivalences on UNDEFINED ranges.
11069 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
11070 Make sure to drop defs of stmts added during simplification
11073 2019-06-06 Richard Biener <rguenther@suse.de>
11075 * tree-ssa-structalias.c: Include tree-cfg.h.
11076 (make_heapvar): Do not make heap vars artificial.
11077 (find_func_aliases_for_builtin_call): Handle stack allocation
11079 (find_func_aliases): Delay processing of simple enough returns
11081 (set_uids_in_ptset): Adjust.
11082 (find_what_var_points_to): Likewise.
11083 (solve_constraints): Do not dump points-to sets here.
11084 (compute_points_to_sets): Post-process return statements,
11085 amending the escaped solution. Dump points-to sets afterwards.
11086 (ipa_pta_execute): Dump points-to sets.
11088 2019-06-06 Martin Liska <mliska@suse.cz>
11091 * doc/install.texi: Fix HTML headers and
11092 titles for 'Installing GCC' pages.
11094 2019-06-06 Martin Liska <mliska@suse.cz>
11096 * ipa-icf-gimple.h (dump_message_1): Remove.
11097 (dump_message): Likewise.
11098 (return_false_with_message_1): Print also file.
11099 (return_false_with_msg): Likewise.
11100 (return_with_result): Likewise.
11101 (return_with_debug): Likewise.
11102 * ipa-icf.c (sem_function::equals_private): Remove call
11105 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11107 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
11108 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
11109 memory operand for it.
11110 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
11112 2019-06-05 Martin Sebor <msebor@redhat.com>
11114 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
11115 Adjust quoting and hyphenation.
11116 * convert.c (convert_to_real_1): Same.
11117 * gcc.c (driver_wrong_lang_callback): Same.
11118 (driver::handle_unrecognized_options): Same.
11119 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11120 * opts-common.c (cmdline_handle_error): Same.
11121 (read_cmdline_option): Same.
11122 * opts-global.c (complain_wrong_lang): Same.
11123 (print_ignored_options): Same.
11124 (handle_common_deferred_options): Same.
11125 * pretty-print.h: Same.
11126 * print-rtl.c (debug_bb_n_slim): Same.
11127 * sched-rgn.c (make_pass_sched_fusion): Same.
11128 * tree-cfg.c (verify_gimple_assign_unary): Same.
11129 (verify_gimple_label): Same.
11130 * tree-ssa-operands.c (verify_ssa_operands): Same.
11131 * varasm.c (do_assemble_alias): Same.
11132 (assemble_alias): Same.
11134 2019-06-05 Richard Henderson <rth@twiddle.net>
11136 * config/alpha/alpha.c (direct_return): Move down after
11137 struct machine_function definition; use saved frame_size;
11139 (struct machine_function): Add sa_mask, sa_size, frame_size.
11140 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
11141 (alpha_compute_frame_layout): ... new function.
11142 (TARGET_COMPUTE_FRAME_LAYOUT): New.
11143 (alpha_initial_elimination_offset): Use saved sa_size.
11144 (alpha_vms_initial_elimination_offset): Likewise.
11145 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
11146 (alpha_expand_prologue): Use saved frame data. Merge integer
11147 and fp register save loops.
11148 (alpha_expand_epilogue): Likewise.
11149 (alpha_start_function): Use saved frame data.
11150 * config/alpha/alpha-protos.h (direct_return): Update.
11151 (alpha_sa_size): Remove.
11153 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
11155 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
11156 multiplication by a power-of-two value.
11157 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
11158 and turn the modulo operation into a masking operation.
11160 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11163 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
11164 with VOIDmode inner operands.
11166 2019-06-05 Richard Biener <rguenther@suse.de>
11168 PR middle-end/90726
11169 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11170 turn an expression graph into a tree.
11172 2019-06-05 Jakub Jelinek <jakub@redhat.com>
11174 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
11176 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
11177 treat it like explicit monotonic schedule modifier.
11178 (expand_omp_for): Initialize has_lastprivate_conditional.
11179 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
11182 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
11183 references, lookup in in hash map MEM_REF operand instead of the
11185 (lower_omp_1): When looking for lastprivate conditional assignments,
11186 handle MEM_REFs with REFERENCE_TYPE operands.
11188 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
11189 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
11190 and references a VLA. Handle references to non-VLAs if is_simd
11191 all privatization clauses like reductions.
11192 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
11193 If omp_is_reference, use always omp simd arrays and set
11194 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
11195 fails, emit reference initialization.
11197 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
11200 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
11201 _mm_mask_fpclass_sd_mask): New intrinsics.
11202 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
11203 * config/i386/i386-builtin.def
11204 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
11206 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
11207 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
11208 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
11209 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
11210 case QI_FTYPE_V2SF_INT): Ditto.
11211 * config/i386/sse.md
11212 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
11213 Extended to insnstructions with mask operands.
11215 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11217 * config/rs6000/constraints.md (define_register_constraint "wp"):
11219 (define_register_constraint "wq"): Delete.
11220 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11221 (rs6000_init_hard_regno_mode_ok): Adjust.
11222 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11223 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
11224 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
11225 (define_mode_attr VSa): Delete.
11226 (define_mode_attr VSisa): New.
11227 (rest of file): Adjust.
11228 * doc/md.texi (Machine Constraints): Adjust.
11230 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11232 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
11233 (define_attr "enabled"): Handle those new isa values.
11235 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11237 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
11238 (define_mode_attr VSr5): Delete.
11239 (define_mode_attr VStype_sqrt): Delete.
11240 (define_mode_iterator VSX_SPDP): Delete.
11241 (define_mode_attr VS_spdp_res): Delete.
11242 (define_mode_attr VS_spdp_insn): Delete.
11243 (define_mode_attr VS_spdp_type): Delete.
11244 (*vsx_sqrt<mode>2): Adjust.
11245 (vsx_<VS_spdp_insn>): Delete, split to...
11246 (vsx_xscvdpsp): ... this. New. And...
11247 (vsx_xvcvspdp): ... this. New. And...
11248 (vsx_xvcvdpsp): ... this. New.
11250 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11252 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
11254 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
11255 (rest of file): Adjust.
11257 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11259 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
11260 (vsx_extract_<mode>_var): Ditto.
11262 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11264 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
11267 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11269 * config/rs6000/constraints.md (define_register_constraint "ww"):
11271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11272 (rs6000_init_hard_regno_mode_ok): Adjust.
11273 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11274 RS6000_CONSTRAINT_ww.
11275 * config/rs6000/rs6000.md: Adjust.
11276 * config/rs6000/vsx.md: Adjust.
11277 * doc/md.texi (Machine Constraints): Adjust.
11279 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11281 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
11282 (define_mode_attr sd): New.
11283 (define_mode_attr s): New.
11284 (define_mode_attr Ftrad): Delete.
11285 (define_mode_attr Fvsx): Delete.
11286 (define_mode_attr Fs): Delete.
11287 (rest of file): Use the new mode attributes.
11288 * config.rs6000/vsx.md: Use the new mode attributes.
11290 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11292 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
11295 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11297 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
11298 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
11299 used with VSX_B, VSX_D, or VSX_F, with just "wa".
11301 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
11304 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
11305 C++ with strict ANSI requirements.
11307 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
11309 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
11310 computations when step is 1.
11312 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11314 * config/rs6000/constraints.md (define_register_constraint "wf"):
11316 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11317 (rs6000_init_hard_regno_mode_ok): Adjust.
11318 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11319 RS6000_CONSTRAINT_wf.
11320 * config/rs6000/rs6000.md: Adjust.
11321 * config/rs6000/vsx.md: Adjust.
11322 * doc/md.texi (Machine Constraints): Adjust.
11324 2019-06-04 Andrew Pinski <apinski@marvell.com>
11326 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
11329 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11331 * config/rs6000/constraints.md (define_register_constraint "wd"):
11333 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11334 (rs6000_init_hard_regno_mode_ok): Adjust.
11335 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11336 RS6000_CONSTRAINT_wd.
11337 * config/rs6000/rs6000.md: Adjust.
11338 * config/rs6000/vsx.md: Adjust.
11339 * doc/md.texi (Machine Constraints): Adjust.
11341 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11343 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
11344 (rest of file): Adjust.
11346 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11348 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
11349 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
11350 (vsx_splat_<mode>_reg): Adjust.
11352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11354 * config/rs6000/constraints.md (define_register_constraint "ws"):
11356 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11357 (rs6000_init_hard_regno_mode_ok): Adjust.
11358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11359 RS6000_CONSTRAINT_ws.
11360 * config/rs6000/rs6000.md: Adjust.
11361 * config/rs6000/vsx.md: Adjust.
11362 * doc/md.texi (Machine Constraints): Adjust.
11364 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11366 * config/rs6000/constraints.md (define_register_constraint "wv"):
11368 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11369 (rs6000_init_hard_regno_mode_ok): Adjust.
11370 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11371 RS6000_CONSTRAINT_wv.
11372 * config/rs6000/rs6000.md: Adjust.
11373 * config/rs6000/vsx.md: Adjust.
11374 * doc/md.texi (Machine Constraints): Adjust.
11376 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
11378 * config/rs6000/constraints.md (define_register_constraint "wi"):
11380 (define_register_constraint "wt"): Delete.
11381 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11382 (rs6000_init_hard_regno_mode_ok): Adjust.
11383 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11384 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
11385 * config/rs6000/rs6000.md: Adjust.
11386 * config/rs6000/vsx.md: Adjust.
11387 * doc/md.texi (Machine Constraints): Adjust.
11389 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11391 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
11393 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
11394 default_elf_asm_output_external.
11396 2019-06-04 Martin Liska <mliska@suse.cz>
11398 * ipa-icf.c (INCLUDE_LIST): Remove.
11399 (sem_item_optimizer::execute): Remove call to init_wpa.
11400 * ipa-icf.h (init_wpa): Remove.
11402 2019-06-04 Jakub Jelinek <jakub@redhat.com>
11404 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
11405 conditional on combined for simd.
11406 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
11408 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
11409 constructs, don't remove lastprivate_conditional_map, but instead set
11410 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
11411 to parent construct temporaries.
11412 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
11413 like !ctx->lastprivate_conditional_map.
11414 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
11415 use up->outer context instead of up.
11416 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
11417 gimple_omp_for_combined_p.
11418 (expand_omp_for_static_nochunk): Likewise.
11419 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
11420 probably moved over into expand_omp_for_generic rather than being copied
11423 2019-06-04 Martin Liska <mliska@suse.cz>
11425 * value-prof.c (dump_histogram_value): Fix typo.
11426 (gimple_mod_subtract_transform): Likewise.
11428 2019-06-04 Richard Biener <rguenther@suse.de>
11430 PR middle-end/90726
11431 * tree-chrec.c (chrec_contains_symbols): Add to visited.
11432 (tree_contains_chrecs): Likewise.
11433 (chrec_contains_symbols_defined_in_loop): Move here and avoid
11434 exponential behaivor from ...
11435 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11437 (expression_expensive_p): Avoid exponential behavior and compute
11438 expanded size, rejecting any expansion.
11439 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
11440 (idx_contains_abnormal_ssa_name_p): Likewise.
11441 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
11442 (contains_abnormal_ssa_name_p): Simplify and use
11443 walk_tree_without_duplicates.
11445 2019-06-04 Richard Biener <rguenther@suse.de>
11447 PR tree-optimization/90738
11449 2019-06-03 Richard Biener <rguenther@suse.de>
11451 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11452 full reference tree and record in ref->ref.
11453 (vn_reference_lookup_3): Pass in original ref to
11454 ao_ref_init_from_vn_reference.
11455 (vn_reference_lookup): Likewise.
11456 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11457 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11458 Handle non-decl bases in the original reference.
11460 2019-06-04 Martin Liska <mliska@suse.cz>
11462 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
11463 number of references.
11464 (sem_item_optimizer::do_congruence_step):
11465 (sem_item_optimizer::worklist_push): Dump how references
11467 (sem_item_optimizer::worklist_pop): Use heap.
11468 (sem_item_optimizer::process_cong_reduction): Likewise.
11469 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
11471 2019-06-04 Martin Liska <mliska@suse.cz>
11473 * ipa-icf.h (struct sem_usage_pair_hash): New.
11474 (sem_usage_pair_hash::hash): Likewise.
11475 (sem_usage_pair_hash::equal): Likewise.
11476 (struct sem_usage_hash): Likewise.
11477 * ipa-icf.c (sem_item::sem_item): Initialize
11478 referenced_by_count.
11479 (sem_item::add_reference): Register a reference
11480 in ref_map and not in target->usages.
11481 (sem_item::setup): Remove initialization of
11483 (sem_item::~sem_item): Remove usage of dead vectors.
11484 (sem_item::dump): Remove dump of references.
11485 (sem_item_optimizer::sem_item_optimizer): Initialize
11487 (sem_item_optimizer::read_section): Remove useless
11489 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
11490 (sem_item_optimizer::build_graph): Pass m_references
11491 to ::add_reference.
11492 (sem_item_optimizer::verify_classes): Remove usage of dead
11494 (sem_item_optimizer::traverse_congruence_split): Return true
11495 when a class is split.
11496 (sem_item_optimizer::do_congruence_step_for_index): Use
11497 hash_map for look up of (sem_item *, index). That brings
11498 significant speed up.
11499 (sem_item_optimizer::do_congruence_step): Return true
11500 when a split is done.
11501 (congruence_class::is_class_used): Use referenced_by_count.
11503 2019-06-04 Alan Modra <amodra@gmail.com>
11506 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
11509 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11511 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
11512 * config/rs6000/rs6000.c (direct_move_p): Adjust.
11513 (rs6000_secondary_reload_simple_move): Adjust.
11514 (rs6000_opt_masks): Neuter the "mfpgpr" option.
11515 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
11516 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
11519 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
11520 (floatunssi<mode>2_lfiwzx): Adjust.
11521 (fix_trunc<mode>si2_stfiwx): Adjust.
11522 (fixuns_trunc<mode>si2_stfiwx): Adjust.
11523 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
11524 (mfpgpr): Mark as deprecated.
11525 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
11526 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
11527 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
11529 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11531 * config/rs6000/constraints.md (define_register_constraint "wg"):
11533 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11534 RS6000_CONSTRAINT_wg.
11535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11536 (rs6000_init_hard_regno_mode_ok): Adjust.
11537 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
11538 Delete "wg" alternatives.
11539 * doc/md.texi (Machine Constraints): Adjust.
11541 2019-06-03 Alan Modra <amodra@gmail.com>
11543 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
11544 (get_uncond_jump_length): Assert length less than INT_MAX and
11547 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11549 PR middle-end/64242
11550 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
11552 (expand_builtin_nonlocal_goto): Likewise.
11554 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11556 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
11557 (aarch64_asm_output_external): Declare.
11558 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
11559 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
11560 (aarch64_asm_output_alias): New.
11561 (aarch64_asm_output_external): New.
11562 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
11563 (ASM_OUTPUT_EXTERNAL): Define.
11565 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
11566 * tree-vrp.h (value_range_base::nonzero_p): New.
11567 (value_range_base::set_nonnull): Rename to...
11568 (value_range_base::set_nonzero): ...this.
11569 (value_range_base::set_null): Rename to...
11570 (value_range_base::set_zero): ...this.
11571 (value_range::set_nonnull): Remove.
11572 (value_range::set_null): Remove.
11573 * tree-vrp.c (range_is_null): Remove.
11574 (range_is_nonnull): Remove.
11575 (extract_range_from_binary_expr): Use value_range_base::*zero_p
11576 instead of range_is_*null.
11577 (extract_range_from_unary_expr): Same.
11578 (value_range_base::set_nonnull): Rename to...
11579 (value_range_base::set_nonzero): ...this.
11580 (value_range::set_nonnull): Remove.
11581 (value_range_base::set_null): Rename to...
11582 (value_range_base::set_zero): ...this.
11583 (value_range::set_null): Remove.
11584 (extract_range_from_binary_expr): Rename set_*null uses to
11586 (extract_range_from_unary_expr): Same.
11587 (union_helper): Same.
11588 * vr-values.c (get_value_range): Use set_*zero instead of
11590 (vr_values::extract_range_from_binary_expr): Same.
11591 (vr_values::extract_range_basic): Same.
11593 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
11596 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
11598 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11600 * config/aarch64/iterators.md (MAX_OPP): New code attr.
11601 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
11603 (aarch64_<su>abd<mode>_3): ... This.
11604 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
11606 2019-06-03 Richard Biener <rguenther@suse.de>
11608 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
11609 full reference tree and record in ref->ref.
11610 (vn_reference_lookup_3): Pass in original ref to
11611 ao_ref_init_from_vn_reference.
11612 (vn_reference_lookup): Likewise.
11613 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
11614 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11615 Handle non-decl bases in the original reference.
11617 2019-06-03 Martin Liska <mliska@suse.cz>
11619 * doc/generic.texi: Remove Java Trees.
11621 2019-06-03 Martin Liska <mliska@suse.cz>
11623 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
11624 returns 0 when operands are equal.
11626 2019-06-03 Richard Biener <rguenther@suse.de>
11628 PR tree-optimization/90716
11629 * tree-loop-distribution.c (destroy_loop): Process blocks in
11632 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11635 * vector-builder.h (vector_builder::count_dups): New method.
11636 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
11638 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
11639 (vec_init<mode><Vel>): New pattern.
11640 * config/aarch64/aarch64.c (emit_insr): New function.
11641 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
11642 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
11643 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
11644 (aarch64_sve_expand_vector_init): Define two overloaded functions.
11646 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11648 PR tree-optimization/90681
11649 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
11650 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
11651 special case for SLP, but fail on non-groupped loads.
11653 2019-06-03 Martin Liska <mliska@suse.cz>
11655 * cfg.c (debug): Use TDF_DETAILS for debug and
11656 print edge info only once.
11658 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
11661 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
11663 2019-06-01 Martin Sebor <msebor@redhat.com>
11665 PR middle-end/90694
11666 * tree-pretty-print.c (dump_generic_node): Add parentheses.
11668 2019-05-31 Jan Hubicka <jh@suse.cz>
11670 * alias.c: Include ipa-utils.h.
11671 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
11672 * ipa-devirt.c (prevailing_odr_type): New.
11673 * ipa-utils.h (previaling_odr_type): Declare.
11675 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
11676 Hongtao Liu <hongtao.liu@intel.com>
11679 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
11680 NOTE_INSN_DELETED_LABEL check.
11682 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
11683 Robert Suchanek <robert.suchanek@mips.com>
11685 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
11686 and 3rd operands of the fmadd/fmsub/maddv builtin.
11688 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11690 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
11691 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11692 on OMP_SIMD if not nested inside of worksharing loop that also has
11693 lastprivate conditional clause for the same decl.
11694 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
11695 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
11697 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
11699 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
11701 (lower_lastprivate_clauses): Likewise.
11702 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
11703 calling lower_rec_input_clauses.
11704 (lower_omp_for): Likewise.
11705 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
11706 clause on simd construct.
11707 * omp-expand.c (expand_omp_simd): Initialize cond_var if
11708 OMP_CLAUSE__CONDTEMP_ clause is present.
11710 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
11713 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
11716 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
11717 TEX_D32, TEX_D64 or TEX_D128.
11719 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11721 * match.pd (~(vec?cst1:cst2)): New transformation.
11723 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11725 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
11726 ((size_t)(A /[ex] B) CMP C): New transformation.
11728 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
11730 * doc/md.texi: Document define_insn_and_rewrite.
11731 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
11732 * gensupport.c (queue_elem): Update comment.
11733 (replace_operands_with_dups): New function.
11734 (gen_rewrite_sequence): Likewise.
11735 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
11736 * read-rtl.c (apply_subst_iterator): Likewise.
11737 (add_condition_to_rtx, named_rtx_p): Likewise.
11738 (rtx_reader::read_rtx_operand): Likewise.
11739 * config/aarch64/aarch64-sve.md
11740 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
11741 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
11742 define_insn_and_rewrite.
11743 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11744 Remove separate define_split.
11746 2019-05-31 Jan Hubicka <jh@suse.cz>
11748 * tree-ssa-alias.c (type_has_components_p): New function.
11749 (aliasing_component_refs_p): Use it.
11751 2019-05-31 Martin Liska <mliska@suse.cz>
11753 * gdbhooks.py: Add const_tree to TreePrinter.
11755 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
11758 * common.opt (feliminate-unused-debug-symbols): Enable by default.
11759 * doc/invoke.texi (Debugging Options): Document new default of
11760 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
11762 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11764 PR tree-optimization/90671
11765 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
11766 template_block used to be empty on the first call, don't use
11767 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
11768 seq with bb_seq and set it with set_bb_seq.
11770 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
11772 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
11774 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11775 Michael Meissner <meissner@linux.ibm.com>
11777 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
11778 (prefixed_mem_operand): Likewise.
11779 (non_prefixed_mem_operand): Likewise.
11780 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
11782 * config/rs6000/rs6000.c (print_operand_address): Handle
11783 PC-relative addresses.
11784 (mode_supports_prefixed_address_p): New function.
11785 (rs6000_prefixed_address): New function.
11786 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
11787 (SYMBOL_REF_PCREL_P): Likewise.
11789 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11791 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
11792 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
11793 (gimplify_omp_for): If worksharing loop with lastprivate conditional
11794 is nested inside of parallel region, add _condtemp_ clause to both.
11795 * tree-nested.c (convert_nonlocal_omp_clauses,
11796 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
11798 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
11800 * omp-general.c (omp_extract_for_data): Compute it.
11801 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
11802 (lower_rec_input_clauses): Likewise.
11803 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
11804 clause is already present, just add one further one after it.
11805 (lower_lastprivate_clauses): Handle cond_ptr with array type.
11806 (lower_send_shared_vars): Clear _condtemp_ vars.
11807 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
11808 or section or taskgroup.
11809 * omp-expand.c (determine_parallel_type): Disallow combining only if
11810 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
11811 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
11812 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11813 expand_omp_for_static_chunk, expand_omp_for): Use
11814 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
11815 determine if a special set of API routines are needed and if condtemp
11816 needs to be initialized, while always initialize cond_var if
11817 fd->lastprivate_conditional is non-zero.
11819 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11820 Michael Meissner <meissner@linux.ibm.com>
11822 * config/rs6000/constraints.md (eI): New constraint.
11823 * config/rs6000/predicates.md (cint34_operand): New predicate.
11824 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11825 (SIGNED_34BIT_OFFSET_P): Likewise.
11826 * doc/md.texi (eI): Document constraint.
11828 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11830 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11832 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11833 Michael Meissner <meissner@linux.ibm.com>
11835 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11836 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11837 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11838 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11839 (OTHER_FUTURE_MASKS): Likewise.
11840 (POWERPC_MASKS): Likewise.
11841 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11842 specified without -mprefixed-addr or -mcpu=future. Error if
11843 -mprefixed-addr is specified without -mcpu=future.
11844 (rs6000_opt_masks): Add entry for prefixed-addr.
11845 * rs6000.opt (mprefixed-addr): New option.
11847 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11849 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11850 cfun->is_thunk check.
11852 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11854 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11857 2019-05-30 Martin Liska <mliska@suse.cz>
11859 * gdbinit.in: Fix 'ptc' command. Add trt
11860 that prints TREE_TYPE($).
11862 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11863 Alan Modra <amodra@gmail.com>
11865 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11867 (rs6000_indirect_call_template_1): ...and here.
11868 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11869 plt16_ha, plt16_lo, mtctr indirect calls. Use
11870 rs6000_pltseq_enum.
11871 (rs6000_decl_ok_for_sibcall): New function.
11872 (rs6000_function_ok_for_sibcall): Refactor.
11873 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11874 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11875 when pcrel. Reorganize.
11876 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11877 * rs6000.h (rs6000_pltseq_enum): New enum.
11878 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11879 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11880 (*pltseq_plt16_ha): Likewise.
11881 (*pltseq_plt16_lo): Likewise.
11882 (*pltseq_mtctr): Likewise.
11883 (*pltseq_plt_pcrel): New insn.
11884 (*call_local_aix): Handle @notoc calls.
11885 (*call_value_local_aix): Likewise.
11886 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11887 (*call_value_nonlocal_aix): Likewise.
11888 (*call_indirect_pcrel): New insn.
11889 (*call_value_indirect_pcrel): Likewise.
11891 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11893 * config/i386/sse.md (*save_multiple<mode>): Rename from
11894 save_multiple<mode>.
11895 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11896 (*restore_multiple_and_return<mode>): Rename from
11897 restore_multiple_and_return<mode>.
11898 (*restore_multiple_leave_return<mode>): Rename from
11899 restore_multiple_leave_return<mode>.
11901 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11903 * config.gcc (rx-*-linux*): New target.
11904 * config/rx/elf.opt: New file.
11905 * config/rx/linux.h: Likewise.
11906 * config/rx/t-linux: Likewise.
11907 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11909 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11910 (ASM_APP_OFF): Likewise.
11911 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11914 2019-05-29 Jan Hubicka <jh@suse.cz>
11916 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11917 variants are pointer equivalent.
11919 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11921 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11922 * config/aarch64/aarch64-sve2.md: New file.
11923 (<u>avg<mode>3_floor): New pattern.
11924 (<u>avg<mode>3_ceil): Likewise.
11925 (*<sur>h<addsub><mode>): Likewise.
11926 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11927 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11929 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11932 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11933 for var_opt_string printing. In cl_optimization_print_diff, print
11934 (null) instead of invoking undefined behavior if one of the
11935 var_opt_string pointers is NULL and use && instead of first || in the
11936 guarding condition. For var_target_other options, handle const char *
11937 target variables similarly to const char * optimize node variables.
11939 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11941 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11942 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11943 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11944 Add autib1716 and pacib1716 initialisation.
11945 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11946 for autib1716 and pacib1716.
11947 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11948 aarch64_post_cfi_startproc): Define.
11949 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11950 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11951 aarch64_handle_pac_ret_protection): Set default sign key to A.
11952 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11953 aarch64_expand_prologue): Add check for b-key.
11954 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11955 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11956 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11957 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11958 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11959 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11960 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11961 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11962 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11963 pauth_hint_num_a with pauth_hint_num.
11964 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11965 pauth_hint_num_a with pauth_hint_num.
11966 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11967 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11968 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11969 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11970 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11971 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11972 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11973 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11974 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11975 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11976 UNSPEC_AUTIA1716 respectively.
11977 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11978 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11979 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11980 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11981 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11982 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11984 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11986 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11987 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11988 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11989 explicit clause on combined parallel into implicit shared clause.
11990 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11991 and firstprivate if the decl has one too from combined parallel to
11992 the worksharing construct.
11994 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11995 Michael Meissner <meissner@linux.ibm.com>
11997 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11999 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
12001 * rtl.h (LABEL_REF_P): New #define.
12003 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
12005 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
12007 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12009 * internal-fn.c: Marked mask_load_direct as vectorizable.
12010 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
12011 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
12012 combined even if masks different with allow_slp_p param.
12013 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
12014 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
12015 dissolve SLP-only vectorizable groups when SLP has been discarded.
12016 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
12017 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
12019 (vect_build_slp_tree_1): Fixed comment typo.
12020 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
12021 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
12022 loads for SLP only.
12023 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
12025 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
12027 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12029 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
12030 Remove obsolete use_thunk reference.
12031 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12032 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12033 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12034 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12035 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12036 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12037 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12038 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12039 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12041 2019-05-28 Nathan Sidwell <nathan@acm.org>
12043 * tree.h (IDENTIFIER_ANON_P): New.
12044 (anon_aggrname_format, anon_aggname_p): Don't declare.
12045 (make_anon_name): Declare.
12046 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
12047 (hash_tree): Likewise.
12048 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
12049 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
12050 (anon_cnt, make_anon_name): New.
12052 2019-05-28 Martin Liska <mliska@suse.cz>
12055 * opts-global.c (decode_options): Print help for all
12056 help_option_arguments.
12057 * opts.c (print_help): Add new argument.
12058 (common_handle_option): Remember all values into
12059 help_option_arguments.
12060 * opts.h (print_help): Add new argument.
12062 2019-05-28 Martin Liska <mliska@suse.cz>
12065 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
12066 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
12067 (func_checker::compare_bb): Call compare_loops.
12069 2019-05-27 Jakub Jelinek <jakub@redhat.com>
12071 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
12072 on sections construct.
12073 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
12075 (lower_omp_sections): Handle lastprivate conditional.
12076 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
12077 lastprivate_conditional_map.
12078 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
12080 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
12081 critical, taskgroup and section regions when looking for a region
12082 with non-NULL lastprivate_conditional_map.
12084 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12086 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
12087 (*ix86_gen_sub3): Ditto.
12088 (*ix86_gen_sub3_carry): Ditto.
12089 (*ix86_gen_one_cmpl2): Ditto.
12090 (*ix86_gen_andsp): Ditto.
12091 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
12092 (gen_and2_insn): New static function.
12093 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
12094 Use gen_add3_insn instead of ix86_gen_add3.
12095 (ix86_expand_split_stack_prologue): Use gen_add2_insn
12096 instead of ix86_gen_add3.
12097 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
12098 Use gen_sub3_insn instead of ix86_gen_sub3.
12099 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
12100 instead of ix86_gen_add3.
12101 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
12102 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
12103 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
12104 * config/i386/i386-options.c (ix86_option_override_internal):
12105 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12106 ix86_gen_one_cmpl2 and ix86_gen_andsp.
12108 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
12110 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
12111 and DW_OP_GNU_const_index opcodes.
12113 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
12115 * config/i386/i386.h (STACK_SIZE_MODE): Define.
12117 2019-05-27 Richard Biener <rguenther@suse.de>
12119 PR tree-optimization/90637
12120 * tree-ssa-sink.c (statement_sink_location): Honor the
12121 computed sink location for single-uses.
12123 2019-05-27 Richard Biener <rguenther@suse.de>
12125 PR middle-end/90610
12126 * match.pd (vec_perm): Avoid clobbering op0 when not generating
12129 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12131 * config/i386/i386.md (@sub<mode>3_carry): Rename
12132 from sub<mode>3_carry.
12133 (@leave_<mode>): New expander.
12134 (*leave): Rename from leave.
12135 (*leave_rex64): Rename from leave_rex64.
12136 (@monitorx_<mode>): Rename from monitorx_<mode>.
12137 (@clzero_<mode>): Rename from clzero_<mode>.
12138 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
12139 from sse3_monitor_<mode>.
12140 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
12141 (*ix86_gen_leave): Ditto.
12142 (*ix86_gen_monitor): Ditto.
12143 (*ix86_gen_monitorx): Ditto.
12144 (*ix86_gen_clzero): Ditto.
12145 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
12146 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
12147 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
12148 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
12149 Use gen_sse3_monitor instead of ix86_gen_monitor.
12150 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
12151 instead of ix86_gen_monitorx.
12152 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
12153 instead of ix86_gen_clzero.
12154 * config/i386/i386-options.c (ix86_option_override_internal):
12155 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
12156 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
12158 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12160 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
12161 Rename from tls_global_dynamic_64_<mode>.
12162 (@tls_local_dynamic_base_64_<mode>): Rename from
12163 tls_local_dynamic_base_64_<mode>.
12164 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
12165 Remove indirect function.
12166 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
12167 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
12168 instead of ix86_gen_tls_global_dynamic_64.
12169 Use gen_tls_local_dynamic_base_64 instead of
12170 ix86_gen_tls_local_dynamic_base_64.
12171 * config/i386/i386-options.c (ix86_option_override_internal):
12172 Do not initialize ix86_gen_tls_global_dynamic_64 and
12173 ix86_gen_tls_local_dynamic_base_64.
12175 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
12177 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
12178 Rename from pro_epilogue_adjust_stack_<mode>_add.
12179 (@pro_epilogue_adjust_stack_sub_<mode>)
12180 Rename from pro_epilogue_adjust_stack_<mode>_sub.
12181 (@allocate_stack_worker_probe_<mode>):
12182 Rename from allocate_stack_worker_probe_<mode>.
12183 (allocate_stack): Use gen_allocate_stack_worker_probe.
12184 (probe_stack): Use gen_probe_stack_1.
12185 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
12186 (@adjust_stack_and_probe_<mode>): Rename from
12187 adjust_stack_and_probe<mode>.
12188 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
12189 (stack_protect_set): Use gen_stack_protect_set_1.
12190 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
12191 (stack_protect_test): Use gen_stack_protect_test_1.
12192 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
12193 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
12194 Remove indirect function.
12195 (*ix86_gen_adjust_stack_and_probe): Ditto.
12196 (*ix86_gen_probe_stack_range): Ditto.
12197 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
12198 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
12199 (ix86_adjust_stack_and_probe_stack_clash): Use
12200 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
12201 (ix86_adjust_stack_and_probe): Ditto.
12202 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
12203 of ix86_gen_probe_stack_range.
12204 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
12205 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
12206 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
12207 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
12208 CODE_FOR_stack_protect_test_{si,di}.
12209 * config/i386/i386-options.c (ix86_option_override_internal):
12210 Do not initialize ix86_gen_allocate_stack_worker,
12211 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
12213 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
12215 * doc/invoke.texi (Link Options): Many editorial changes around
12218 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12220 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
12221 pre-Solaris 11 referene and most Studio compiler details.
12223 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
12226 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
12227 DImode to SImode in floating-point registers on 64-bit target.
12228 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
12229 register_operand in xmpyu patterns.
12231 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12233 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
12234 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
12235 OMP_CLAUSE__REDUCTEMP_.
12236 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12237 OMP_CLAUSE__CONDTEMP_.
12238 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
12239 * tree-pretty-print.c (dump_omp_clause): Likewise.
12240 * tree-nested.c (convert_nonlocal_omp_clauses,
12241 convert_local_omp_clauses): Likewise.
12242 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
12243 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
12244 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
12246 (gimplify_omp_for): Warn and disable conditional modifier from
12247 lastprivate on loop iterators.
12248 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
12250 * omp-general.c (omp_extract_for_data): Initialize it.
12251 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
12253 (delete_omp_context): Delete it.
12254 (lower_lastprivate_conditional_clauses): New function.
12255 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
12256 handle lastprivate conditional clauses.
12257 (lower_reduction_clauses): Add CLIST argument, emit it into
12258 the critical section if any.
12259 (lower_omp_sections): Adjust lower_lastprivate_clauses and
12260 lower_reduction_clauses callers.
12261 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
12262 to lower_lastprivate_clauses.
12263 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
12264 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
12265 clist into a critical section if not emitted there already by
12266 lower_reduction_clauses.
12267 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
12269 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
12270 conditional variables.
12271 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
12273 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12274 expand_omp_for_static_chunk): Handle lastprivate conditional.
12275 (expand_omp_for): Handle fd.lastprivate_conditional like
12278 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12280 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
12281 kernel does not exit cleanly.
12282 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
12284 2019-05-24 Jason Merrill <jason@redhat.com>
12287 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12289 2019-05-24 Richard Biener <rguenther@suse.de>
12292 * tree-loop-distribution.c (struct partition): Add location
12294 (partition_alloc): Initialize all fields.
12295 (generate_memset_builtin): Use the location recorded in the
12296 partition for the generated call.
12297 (generate_memcpy_builtin): Likewise.
12298 (classify_partition): Record the location of a single store
12299 as location for the partition.
12301 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
12303 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
12306 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
12309 * common/config/aarch64/aarch64-common.c
12310 (aarch64_rewrite_selected_cpu): Change local temporary variable
12311 type from unsigned long to uint64_t.
12312 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
12313 aarch64_get_extension_string_for_isa_flags): Change declaration to
12314 match new definition by replacing unsigned long with uint64_t.
12316 2019-05-24 Jakub Jelinek <jakub@redhat.com>
12319 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
12320 gen_attr_type just once instead of 4-7 times. Formatting fixes.
12321 Handle stack_protect_test_<mode> codegen similarly to corresponding
12324 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
12326 * config/i386/darwin.h: Reject -mfentry*.
12327 * doc/sourcebuild.texi: Document mfentry target support.
12329 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12331 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
12332 Rename to rs6000_global_entry_point_prologue_needed_p. Return
12333 false for PC-relative functions.
12334 (rs6000_output_function_prologue): Change called function name to
12335 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
12336 name,1" for PC-relative functions.
12337 (rs6000_elf_declare_function_name): Change called function name to
12338 rs6000_global_entry_point_prologue_needed_p.
12340 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
12343 * config/i386/i386.c (gen_rtx_cost):
12344 Use ix86_tune_cost instead of ix86_cost.
12346 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12347 Michael Meissner <meissner@linux.ibm.com>
12348 Segher Boessenkool <segher@kernel.crashing.org>
12350 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
12352 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
12353 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
12354 (rs6000_fndecl_pcrel_p): Likewise.
12355 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
12356 error if -mpcrel is requested without -mcpu=future.
12357 (rs6000_opt_masks): Add entry for pcrel.
12358 (rs6000_fndecl_pcrel_p): New function.
12359 (rs6000_pcrel_p): Likewise.
12360 * config/rs6000/rs6000.opt (mpcrel): New option.
12361 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
12363 2019-05-23 Jan Hubicka <jh@suse.cz>
12364 Martin Liska <mliska@suse.cz>
12366 PR tree-optimization/90576
12367 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
12369 (aliasing_component_refs_p): Fix three way size compare conditional;
12370 give up earlier in case we can not decide on equivalence.
12372 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
12373 Michael Meissner <meissner@linux.ibm.com>
12374 Segher Boessenkool <segher@kernel.crashing.org>
12376 * config.gcc: Add future cpu.
12377 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
12378 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
12380 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
12381 (RS6000_CPU): New instantiation for future cpu.
12382 * config/rs6000/rs6000-opts.h (enum processor_type): Add
12384 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
12385 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
12386 * config/rs6000/rs6000-tables.opt: Regenerate.
12387 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
12388 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
12389 (rs6000_machine_from_flags): Handle future cpu.
12390 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
12391 PROCESSOR_POWER9 for now.
12392 (rs6000_adjust_cost): Likewise.
12393 (rs6000_issue_rate): Likewise.
12394 (rs6000_register_move_cost): Likewise.
12395 (rs6000_opt_masks): Add entry for future.
12396 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
12397 (MASK_FUTURE): New #define.
12398 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
12399 * config/rs6000/rs6000.opt (mfuture): New target option.
12400 * doc/invoke.texi (mcpu): Add future cpu.
12402 2019-05-23 Martin Liska <mliska@suse.cz>
12405 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
12406 operation points to a temporary (pointed via tree_to_wide_ref)
12407 that is out of scope after the &.
12409 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
12412 * doc/extend.texi (Function Names): Add missing word.
12414 2019-05-23 Richard Biener <rguenther@suse.de>
12416 PR tree-optimization/88440
12417 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
12419 * tree-loop-distribution.c (generate_memset_builtin): Fold the
12421 (generate_memcpy_builtin): Likewise.
12422 (distribute_loop): Pass in whether to only distribute patterns.
12423 (prepare_perfect_loop_nest): Also allow size optimization.
12424 (pass_loop_distribution::execute): When optimizing a loop
12425 nest for size allow pattern replacement.
12427 2019-05-23 Jakub Jelinek <jakub@redhat.com>
12430 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
12433 2019-05-23 Martin Liska <mliska@suse.cz>
12436 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
12437 expression similarly to gimplify_decl_expr.
12439 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12441 * cse.c (cse_dump_path): s/dump_file/f.
12443 2019-05-22 David Malcolm <dmalcolm@redhat.com>
12446 * diagnostic-format-json.cc: Include "selftest.h".
12447 (json_from_expanded_location): Only add "file" key for non-NULL
12449 (json_from_location_range): Don't add "start" and "finish"
12450 children if they are UNKNOWN_LOCATION.
12451 (selftest::test_unknown_location): New selftest.
12452 (selftest::test_bad_endpoints): New selftest.
12453 (selftest::diagnostic_format_json_cc_tests): New function.
12454 * json.cc (json::object::get): New function.
12455 (selftest::test_object_get): New selftest.
12456 (selftest::json_cc_tests): Call it.
12457 * json.h (json::object::get): New decl.
12458 * selftest-run-tests.c (selftest::run_tests): Call
12459 selftest::diagnostic_format_json_cc_tests.
12460 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
12463 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12464 Andrew Stubbs <amd@codesourcery.com>
12466 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
12467 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
12468 (kernel): Rename to...
12469 (main_kernel): ... this.
12470 (load_image): Load _init_array and _fini_array kernels.
12471 (run): Add argument for kernel to run.
12472 (main): Run init_array_kernel before main_kernel, and
12473 fini_array_kernel after.
12474 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
12475 amdgpu_hsa_kernel attribute on functions.
12476 (gcn_disable_constructors): Delete.
12477 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
12478 * config/gcn/crt0.c (size_t): Define.
12479 (_init_array, _fini_array): New.
12480 (__preinit_array_start, __preinit_array_end,
12481 __init_array_start, __init_array_end,
12482 __fini_array_start, __fini_array_end): Declare weak references.
12484 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
12486 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
12488 2019-05-22 Jason Merrill <jason@redhat.com>
12490 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12492 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
12495 * config/i386/i386-options.c (ix86_init_machine_status): Set
12496 stack_frame_required to true.
12497 * config/i386/i386.c (ix86_get_frame_size): New function.
12498 (ix86_frame_pointer_required): Replace get_frame_size with
12499 ix86_get_frame_size.
12500 (ix86_compute_frame_layout): Likewise.
12501 (ix86_find_max_used_stack_alignment): Changed to void. Set
12502 stack_frame_required.
12503 (ix86_finalize_stack_frame_flags): Always call
12504 ix86_find_max_used_stack_alignment. Replace get_frame_size with
12505 ix86_get_frame_size.
12506 * config/i386/i386.h (machine_function): Add stack_frame_required.
12508 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
12510 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
12512 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
12514 * common/config/aarch64/aarch64-common.c
12515 (struct aarch64_option_extension, struct processor_name_to_arch,
12516 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
12517 aarch64_contains_opt,
12518 aarch64_get_extension_string_for_isa_flags): Change type of
12519 variables storing flags to uint64_t.
12520 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
12521 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
12522 * config/aarch64/aarch64.c (struct processor,
12523 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
12524 aarch64_validate_march, aarch64_override_options,
12525 aarch64_option_print, aarch64_handle_attr_isa_flags,
12526 aarch64_declare_function_name, aarch64_start_file): Make flag
12527 variables uint64_t.
12528 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
12529 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
12530 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
12531 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
12532 * config/aarch64/driver-aarch64.c
12533 (struct aarch64_arch_extension, struct aarch64_core_data,
12534 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
12535 flag variables uint64_t.
12536 * doc/invoke.texi: Add documentation for new arguments.
12538 2019-05-22 Richard Biener <rguenther@suse.de>
12540 * alias.c (ao_ref_from_mem): Move stack-slot sharing
12542 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
12544 2019-05-22 Martin Liska <mliska@suse.cz>
12547 * doc/extend.texi: Document the change.
12549 2019-05-22 Richard Biener <rguenther@suse.de>
12551 PR tree-optimization/90450
12552 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
12553 (mem_ref_hasher::equal): Check it.
12554 (mem_ref_alloc): Initialize it.
12555 (gather_mem_refs_stmt): Set it.
12557 2019-05-22 Richard Biener <rguenther@suse.de>
12559 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
12561 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
12564 2019-05-22 Alan Modra <amodra@gmail.com>
12566 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
12567 (ASM_CPU_SPEC): Conditionally add -many.
12568 * config/rs6000/rs6000.c (rs6000_machine): New static var.
12569 (rs6000_machine_from_flags, emit_asm_machine): New functions..
12570 (rs6000_file_start): ..extracted from here, and modified to
12572 (rs6000_output_function_prologue): Emit .machine as necessary.
12574 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
12576 PR middle-end/90553
12577 * ira-lives.c (process_bb_node_lives): Consider defs
12578 for a call insn to be die before the call, not after.
12580 * function.c (assign_parm_setup_block): Raise alignment of
12581 stacked parameter only for STRICT_ALIGNMENT targets.
12583 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12585 * config/rs6000/constraints.md (define_register_constraint "wz"):
12587 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12588 RS6000_CONSTRAINT_wz.
12589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12590 (rs6000_init_hard_regno_mode_ok): Adjust.
12591 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
12592 * doc/md.texi (Machine Constraints): Adjust.
12594 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12596 * config/rs6000/constraints.md (define_register_constraint "wl"):
12598 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12599 RS6000_CONSTRAINT_wl.
12600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12601 (rs6000_init_hard_regno_mode_ok): Adjust.
12602 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
12603 * doc/md.texi (Machine Constraints): Adjust.
12605 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12607 * config/rs6000/constraints.md (define_register_constraint "wm"):
12609 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12610 RS6000_CONSTRAINT_wm.
12611 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12612 (rs6000_init_hard_regno_mode_ok): Adjust.
12613 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
12614 * doc/md.texi (Machine Constraints): Adjust.
12616 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12618 * config/rs6000/constraints.md (define_register_constraint "wk"):
12620 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12621 RS6000_CONSTRAINT_wk.
12622 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12623 (rs6000_init_hard_regno_mode_ok): Adjust.
12624 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
12625 * doc/md.texi (Machine Constraints): Adjust.
12627 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12629 * config/rs6000/constraints.md (define_register_constraint "wj"):
12631 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12632 RS6000_CONSTRAINT_wj.
12633 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12634 (rs6000_init_hard_regno_mode_ok): Adjust.
12635 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
12637 * config/rs6000/vsx.md: Ditto.
12638 * doc/md.texi (Machine Constraints): Adjust.
12640 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12642 * config/rs6000/constraints.md (define_register_constraint "wh"):
12644 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12645 RS6000_CONSTRAINT_wh.
12646 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12647 (rs6000_init_hard_regno_mode_ok): Adjust.
12648 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
12649 * doc/md.texi (Machine Constraints): Adjust.
12651 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12654 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12655 Avoid calling gen_lowpart with CONST operand.
12657 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
12659 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
12660 field template_last_to_copy.
12661 (ssa_create_duplicates): Set it, and use it. Attempt to
12662 preserve more debug stmts.
12664 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12666 * config/i386/sse.md (VF1_AVX2): New mode iterator.
12667 (signbit<mode>2): New expander
12669 2019-05-21 James Clarke <jrtc27@jrtc27.com>
12672 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
12673 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
12675 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
12677 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
12678 %ebx and %ecx bafore calling cpuid with leaf 1 or
12679 non-constant leaf argument.
12681 2019-05-21 Alan Modra <amodra@gmail.com>
12684 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
12685 power9 direct move cost.
12687 2019-05-21 Richard Biener <rguenther@suse.de>
12689 PR middle-end/90510
12690 * fold-const.c (fold_read_from_vector): New function.
12691 * fold-const.h (fold_read_from_vector): Declare.
12692 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
12693 single-element insert permutations. Canonicalize selector
12694 further and fix issue with last commit.
12696 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12698 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
12699 parameter with default value false to declaration.
12700 (split_edges_for_insertion): New inline function. Wrapper for
12701 split_critical_edges with for_edge_insertion_p = true.
12702 * tree-cfg.c (split_critical_edges): Don't split non-critical
12703 edges if for_edge_insertion_p is false. Fix whitespace.
12704 * tree-ssa-pre.c (pass_pre::execute): Call
12705 split_edges_for_insertion instead of split_critical_edges.
12706 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
12707 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
12708 (pass_data_sink_code): Update function name in the comment.
12710 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12712 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
12713 around is_value_included_in that knows how to handle BIT_AND_EXPR.
12714 (is_pred_expr_subset_of): Use the new function. Handle more cases where
12715 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
12718 2019-05-21 Martin Liska <mliska@suse.cz>
12720 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
12722 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
12723 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
12725 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12727 (rs6000_function_arg): Likewise.
12728 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
12729 (rs6000_expand_ternop_builtin): Use interval syntax.
12730 (get_element_number): Likewise.
12731 (altivec_expand_builtin): Likewise.
12732 (rs6000_get_function_versions_dispatcher): Quote target_clones.
12734 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12738 * function.h (struct function): Add calls_eh_return member.
12739 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
12740 gimplifying __builtin_eh_return call.
12741 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
12743 (expand_call_inline): Or in src_cfun->calls_eh_return into
12744 dst_cfun->calls_eh_return.
12745 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12746 cfun->calls_eh_return.
12747 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12748 * lto-streamer-out.c (output_struct_function_base): Write
12751 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
12753 PR rtl-optimization/43147
12754 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
12755 IX86_BUILTIN_SHUFPD.
12757 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12759 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
12760 (refs_may_alias_p_1): ... here; update stats.
12761 (refs_may_alias_p): Do not update stats here.
12763 2019-05-20 Richard Biener <rguenther@suse.de>
12765 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
12766 doesn't produce pointers.
12767 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
12768 the first operand points to.
12770 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12772 * tree-ssa-alias.c (compare_sizes): New function.
12773 (sompare_type_sizes): New function
12774 (aliasing_component_refs_p): Use it.
12775 (indirect_ref_may_alias_decl_p): Likewise.
12777 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12779 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
12781 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12783 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
12784 (LIBLSAN_EARLY_SPEC): Likewise.
12785 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
12787 2019-05-20 Martin Liska <mliska@suse.cz>
12789 * config/i386/i386.c (ix86_libc_has_fast_function):
12790 Add ATTRIBUTE_UNUSED for the argument.
12792 2019-05-20 Richard Biener <rguenther@suse.de>
12794 * gimple-match-head.c: Include vec-perm-indices.h.
12795 * generic-match-head.c: Likewise.
12796 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
12798 * fold-const.c (fold_vec_perm): Export.
12799 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
12800 (match.pd): ...here.
12802 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12804 * cfgloop.h (struct loop): Add simdlen member.
12805 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
12806 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
12807 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
12808 as new argument to autovectorize_vector_sizes target hook. If
12809 loop->simdlen, pick up vector size where the vectorization factor
12810 is equal to loop->simd, and if there is none, fall back to the first
12812 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
12814 * omp-low.c (omp_clause_aligned_alignment): Likewise.
12815 * omp-general.c (omp_max_vf): Likewise.
12816 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
12817 * tree-vect-slp.c (vect_slp_bb): Likewise.
12818 * target.def (autovectorize_vector_sizes): Add ALL argument and
12820 * doc/tm.texi: Adjust documentation.
12821 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12822 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12823 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12825 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12826 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12827 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12828 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12829 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12830 preferred vector size is not 512-bit or 256-bit, just put those
12831 unpreferred ones last.
12833 2019-05-20 Martin Liska <mliska@suse.cz>
12835 * targhooks.c (default_libc_has_fast_function): New function.
12836 * targhooks.h (default_libc_has_fast_function): Likewise.
12838 2019-05-20 Martin Liska <mliska@suse.cz>
12840 PR middle-end/90263
12841 * builtins.c (expand_builtin_memory_copy_args): When having a
12842 target with fast mempcpy implementation do now use memcpy.
12843 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12844 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12845 * doc/tm.texi: Likewise.
12846 * doc/tm.texi.in: Likewise.
12848 * expr.c (emit_block_move_hints): Add 2 new arguments.
12849 * expr.h (emit_block_move_hints): Bail out when libcall
12850 to memcpy would be used.
12852 2019-05-20 Martin Liska <mliska@suse.cz>
12854 * profile-count.c: Add vertical spacing in order
12855 to separate functions.
12856 * profile-count.h: Likewise.
12858 2019-05-20 Martin Liska <mliska@suse.cz>
12860 * profile-count.h: Do not use full qualified
12862 * profile-count.c (profile_count::to_frequency): Likewise.
12864 2019-05-20 Martin Liska <mliska@suse.cz>
12866 * profile-count.h (enum profile_quality): Use capital letters
12867 for enum value names. Use the adjusted names.
12868 * profile-count.c: Use the adjusted names.
12870 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12872 * config/rs6000/constraints.md (define_register_constraint "wH"):
12874 (define_register_constraint "wI"): Delete.
12875 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12876 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12877 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12878 (rs6000_init_hard_regno_mode_ok): Adjust.
12879 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12880 resp. "d", or with "wa" as appropriate, all with "p8v".
12881 * config/rs6000/vsx.md: Ditto.
12882 * doc/md.texi (Machine Constraints): Adjust.
12884 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12886 * config/rs6000/constraints.md (define_register_constraint "wy"):
12888 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12889 RS6000_CONSTRAINT_wy.
12890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12891 (rs6000_init_hard_regno_mode_ok): Adjust.
12892 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12893 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12894 (define_mode_attr Fisa): New.
12895 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12896 * doc/md.texi (Machine Constraints): Adjust.
12898 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12900 * config/rs6000/constraints.md (define_register_constraint "wu"):
12902 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12903 RS6000_CONSTRAINT_wu.
12904 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12905 (rs6000_init_hard_regno_mode_ok): Adjust.
12906 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12908 (define_mode_attr Fa): Delete.
12909 * config/rs6000/vsx.md: Ditto.
12910 * doc/md.texi (Machine Constraints): Adjust.
12912 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12914 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12916 (define_register_constraint "wK"): Delete.
12917 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12918 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12919 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12920 (rs6000_init_hard_regno_mode_ok): Adjust.
12921 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12922 Replace "wK" constraint by "wH" with "p9v".
12923 * config/rs6000/vsx.md: Ditto.
12924 * doc/md.texi (Machine Constraints): Adjust.
12926 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12928 * config/rs6000/constraints.md (define_register_constraint "wb"):
12930 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12931 RS6000_CONSTRAINT_wb.
12932 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12933 (rs6000_init_hard_regno_mode_ok): Adjust.
12934 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12935 * config/rs6000/vsx.md: Ditto.
12936 * doc/md.texi (Machine Constraints): Adjust.
12938 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12940 * config/rs6000/constraints.md (define_register_constraint "wo"):
12942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12943 RS6000_CONSTRAINT_wo.
12944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12945 (rs6000_init_hard_regno_mode_ok): Adjust.
12946 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12947 * config/rs6000/altivec.md: Ditto.
12948 * doc/md.texi (Machine Constraints): Adjust.
12950 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12952 * config/darwin-c.c (darwin_register_objc_includes): Do not
12953 prepend the sysroot when building gnu-runtime header search
12956 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12958 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12959 instead of direct output of the asm.
12961 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12963 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12964 argument to be type bool (was int before).
12965 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12966 at first use. Use type bool for some variables. Fix a theoretical
12967 eh_return bug for svr4.
12969 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12971 * config/rs6000/rs6000.md (isa): New attribute.
12972 (enabled): New attribute.
12974 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12976 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12977 assemble_start_function and assemble_end_function.
12979 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12981 PR middle-end/89433
12982 * omp-general.c (oacc_verify_routine_clauses): Change formal
12983 parameters. Add checking if already marked with an OpenACC
12984 'routine' directive. Adjust all users.
12986 PR middle-end/89433
12987 * omp-general.c (oacc_build_routine_dims): Move some of its
12989 (oacc_verify_routine_clauses): ... this new function.
12990 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12992 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12994 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12995 formating of picbase labels to match other ports.
12997 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12999 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
13000 in the generated code.
13002 2019-05-16 Martin Sebor <msebor@redhat.com>
13004 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
13005 identifiers, keywords, operators, and types in diagnostics. Correct
13006 quoting, spelling, and sentence capitalization issues.
13007 (expand_builtin_atomic_is_lock_free): Same.
13008 (fold_builtin_next_arg): Same.
13009 * cfgexpand.c (expand_one_var): Same.
13010 (tree_conflicts_with_clobbers_p): Same.
13011 (expand_asm_stmt): Same.
13012 (verify_loop_structure): Same.
13013 * cgraphunit.c (process_function_and_variable_attributes): Same.
13014 * collect-utils.c (collect_execute): Same.
13015 * collect2.c (maybe_run_lto_and_relink): Same.
13016 (is_lto_object_file): Same.
13017 (scan_prog_file): Same.
13018 * convert.c (convert_to_real_1): Same.
13019 * dwarf2out.c (dwarf2out_begin_prologue): Same.
13020 * except.c (verify_eh_tree): Same.
13021 * gcc.c (execute): Same.
13022 (eval_spec_function): Same.
13023 (run_attempt): Same.
13024 (driver::set_up_specs): Same.
13025 (compare_debug_auxbase_opt_spec_function): Same.
13026 * gcov-tool.c (unlink_gcda_file): Same.
13028 (do_rewrite): Same.
13029 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
13030 * gimplify.c (gimplify_asm_expr): Same.
13031 (gimplify_adjust_omp_clauses): Same.
13032 * hsa-gen.c (gen_hsa_addr_insns): Same.
13033 (gen_hsa_insns_for_load): Same.
13034 (gen_hsa_cmp_insn_from_gimple): Same.
13035 (gen_hsa_insns_for_operation_assignment): Same.
13036 (gen_get_level): Same.
13037 (gen_hsa_alloca): Same.
13038 (omp_simple_builtin::generate): Same.
13039 (gen_hsa_atomic_for_builtin): Same.
13040 (gen_hsa_insns_for_call): Same.
13041 * input.c (dump_location_info): Same.
13042 * ipa-devirt.c (compare_virtual_tables): Same.
13043 * ira.c (ira_setup_eliminable_regset): Same.
13044 * lra-assigns.c (lra_assign): Same.
13045 * lra-constraints.c (lra_constraints): Same.
13046 * lto-streamer-in.c (lto_input_mode_table): Same.
13047 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
13048 (merge_and_complain): Same.
13049 (compile_offload_image): Same.
13050 (compile_images_for_offload_targets): Same.
13051 (debug_objcopy): Same.
13054 * opts.c (print_specific_help): Same.
13055 (parse_no_sanitize_attribute): Same.
13056 (print_help): Same.
13057 (handle_param): Same.
13058 * plugin.c (add_new_plugin): Same.
13059 (parse_plugin_arg_opt): Same.
13060 (try_init_one_plugin): Same.
13061 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
13062 operators, and types in diagnostics. Correct quoting and spelling
13064 * read-rtl-function.c (parse_edge_flag_token): Same.
13065 (function_reader::parse_enum_value): Same.
13066 * reg-stack.c (check_asm_stack_operands): Same.
13067 * regcprop.c (validate_value_data): Same.
13068 * sched-rgn.c (make_pass_sched_fusion): Same.
13069 * stmt.c (check_unique_operand_names): Same.
13070 * targhooks.c (default_target_option_pragma_parse): Same.
13071 * tlink.c (recompile_files): Same.
13072 * toplev.c (process_options): Same.
13073 (do_compile): Same.
13074 * trans-mem.c (diagnose_tm_1): Same.
13075 (ipa_tm_scan_irr_block): Same.
13076 (ipa_tm_diagnose_transaction): Same.
13077 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
13078 format a tree code name in a diagnostic.
13079 (verify_types_in_gimple_min_lval): Same.
13080 (verify_types_in_gimple_reference): Same.
13081 (verify_gimple_call): Same.
13082 (verify_gimple_assign_unary): Same.
13083 (verify_gimple_assign_binary): Same.
13084 (verify_gimple_assign_ternary): Same.
13085 (verify_gimple_assign_single): Same.
13086 (verify_gimple_switch): Same.
13087 (verify_gimple_label): Same.
13088 (verify_gimple_phi): Same.
13089 (verify_gimple_in_seq): Same.
13090 (verify_eh_throw_stmt_node): Same.
13091 (collect_subblocks): Same.
13092 (gimple_verify_flow_info): Same.
13093 (do_warn_unused_result): Same.
13094 * tree-inline.c (expand_call_inline): Same.
13095 * tree-into-ssa.c (update_ssa): Same.
13096 * tree.c (tree_int_cst_elt_check_failed): Same.
13097 (tree_vec_elt_check_failed): Same.
13098 (omp_clause_operand_check_failed): Same.
13099 (verify_type_variant): Same.
13100 (verify_type): Same.
13101 * value-prof.c (verify_histograms): Same.
13102 * varasm.c (assemble_start_function): Same.
13104 2019-05-16 Martin Sebor <msebor@redhat.com>
13106 * config/i386/i386-expand.c (get_element_number): Quote keywords
13107 and other internal names in diagnostics. Adjust other diagnostic
13108 formatting issues noted by -Wformat-diag.
13109 * config/i386/i386-features.c
13110 (ix86_mangle_function_version_assembler_name): Same.
13111 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
13112 * config/i386/i386.c (ix86_function_type_abi): Same.
13113 (ix86_function_ms_hook_prologue): Same.
13114 (classify_argument): Same.
13115 (ix86_expand_prologue): Same.
13116 (ix86_md_asm_adjust): Same.
13117 (ix86_memmodel_check): Same.
13119 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
13121 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
13122 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
13125 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
13128 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
13129 intrinsics without SSE/SSE2/SSSE3.
13130 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
13132 (*mmx_uavgv8qi3): Likewise.
13134 2019-05-17 Richard Biener <rguenther@suse.de>
13136 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
13137 VEC_PERM_EXPR as __VEC_PERM with -gimple.
13139 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
13141 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
13142 vec_sldw insn pattern.
13144 2019-05-17 Richard Biener <rguenther@suse.de>
13146 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
13148 2019-05-17 Martin Liska <mliska@suse.cz>
13151 * toplev.c (output_stack_usage): With LTO and sanitizer it
13152 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
13153 has no file location.
13155 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13158 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
13159 sz0 is equal to sz1, instead return false in that case.
13161 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
13162 has non-constant expression, force sctx.lane and use two
13163 argument IFN_GOMP_SIMD_LANE instead of single argument.
13164 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
13165 two argument IFN_GOMP_SIMD_LANE without lhs.
13166 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
13168 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
13170 (LOOP_REQUIRES_VERSIONING): Or in
13171 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
13172 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13174 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
13175 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
13176 from simd if clause if needed.
13178 2019-05-16 Richard Biener <rguenther@suse.de>
13180 * tree-affine.c (expr_to_aff_combination): New function split
13182 (tree_to_aff_combination): ... here.
13183 (aff_combination_expand): Avoid building a GENERIC tree.
13185 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
13187 * cgraphunit.c (cgraph_node::expand_thunk): Remove
13188 assemble_start_function and assemble_end_function calls.
13189 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
13190 assemble_start_function and assemble_end_function.
13191 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
13192 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
13193 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
13194 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
13195 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
13196 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
13197 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
13198 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
13199 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
13200 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13201 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13202 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
13204 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13205 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
13206 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
13207 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
13208 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
13209 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
13210 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
13211 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
13212 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
13213 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13214 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13215 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13216 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
13217 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
13219 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
13220 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
13221 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
13223 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
13225 * tree-ssa-alias.c (alias_stats): Add
13226 aliasing_component_refs_p_may_alias and
13227 aliasing_component_refs_p_no_alias.
13228 (dump_alias_stats): Print aliasing_component_refs_p stats.
13229 (aliasing_component_refs_p): Update stats.
13231 2019-05-16 Martin Liska <mliska@suse.cz>
13234 * multiple_target.c (expand_target_clones): Do not allow
13235 target_clones being used with a symbol that is an alias.
13237 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
13239 PR tree-optimization/90394
13240 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
13241 positives rather than ICE for cases where (code2 == NE_EXPR
13242 && code1 == BIT_AND_EXPR).
13244 2019-05-16 Jakub Jelinek <jakub@redhat.com>
13247 * tree-core.h (struct tree_decl_common): Document
13248 decl_nonshareable_flag for PARM_DECLs.
13249 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
13250 * calls.c (expand_call): Don't try tail call if caller
13251 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
13252 passed on the stack and callee needs to pass any arguments on the
13254 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13255 else if instead of series of mutually exclusive ifs. Handle
13256 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
13257 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13259 * lto-streamer.h (LTO_major_version): Bump to 9.
13261 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
13263 PR tree-optimization/90106
13264 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
13265 new parameter as new internal function call, also move it to new
13267 (use_internal_fn): Pass internal function call to
13268 shrink_wrap_one_built_in_call_with_conds.
13270 2019-05-15 Jakub Jelinek <jakub@redhat.com>
13272 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
13274 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
13275 safelen_int and set loop->dont_vectorize.
13277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13280 * config/i386/i386-builtin.def: Enable MMX intrinsics with
13282 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13284 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
13285 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
13286 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
13289 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13292 * config/i386/mmx.md (*vec_dupv2sf): Changed to
13293 define_insn_and_split to support SSE emulation.
13294 (*vec_extractv2sf_0): Likewise.
13295 (*vec_extractv2sf_1): Likewise.
13296 (*vec_extractv2si_0): Likewise.
13297 (*vec_extractv2si_1): Likewise.
13298 (*vec_extractv2si_zext_mem): Likewise.
13299 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
13300 (vec_extractv2sf_1 splitter): Likewise.
13301 (vec_extractv2sfsf): Likewise.
13302 (vec_setv2si): Likewise.
13303 (vec_extractv2si_1 splitter): Likewise.
13304 (vec_extractv2sisi): Likewise.
13305 (vec_setv4hi): Likewise.
13306 (vec_extractv4hihi): Likewise.
13307 (vec_setv8qi): Likewise.
13308 (vec_extractv8qiqi): Likewise.
13309 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13310 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
13311 (vec_extractv2sisi): Likewise.
13312 (vec_extractv4hihi): Likewise.
13313 (vec_extractv8qiqi): Likewise.
13314 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
13315 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
13316 (vec_initv2sisi): Likewise.
13317 (vec_initv4hihi): Likewise.
13318 (vec_initv8qiqi): Likewise.
13319 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
13320 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
13321 (vec_setv4hi): Likewise.
13322 (vec_setv8qi): Likewise.
13324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13327 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
13328 TARGET_MMX_WITH_SSE.
13329 (MMXMODE:*mov<mode>_internal): Likewise.
13330 (MMXMODE:movmisalign<mode>): Likewise.
13332 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
13335 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
13336 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
13337 (sse2_cvtpd2pi): Ditto.
13338 (sse2_cvttpd2pi): Ditto.
13339 (*vec_concatv2sf_sse4_1): Ditto.
13340 (*vec_concatv2sf_sse): Ditto.
13341 (*vec_concatv2si_sse4_1): Ditto.
13342 (*vec_concatv2si): Ditto.
13343 (*vec_concatv4si_0): Ditto.
13344 (*vec_concatv2di_0): Ditto.
13346 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13349 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
13351 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13354 * config/i386/sse.md (ssse3_palignrdi): Changed to
13355 define_insn_and_split to support SSE emulation.
13357 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13360 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
13362 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13365 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
13366 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13369 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13372 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
13373 or TARGET_MMX_WITH_SSE.
13374 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
13376 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13379 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
13381 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13384 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
13385 Changed to define_insn_and_split to support SSE emulation.
13387 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13390 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
13391 Changed to define_insn_and_split to support SSE emulation.
13393 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13396 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
13397 (*mmx_<emms>): This.
13398 (mmx_<emms>): New expander.
13400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13403 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
13405 (*sse2_umulv1siv1di3): Add SSE2 emulation.
13407 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13410 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
13412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13415 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
13417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13420 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
13421 TARGET_MMX_WITH_SSE.
13422 (*mmx_uavgv4hi3): Add SSE emulation.
13424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13427 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
13428 and TARGET_MMX_WITH_SSE.
13429 (*mmx_uavgv8qi3): Add SSE emulation.
13431 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13434 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
13435 maskmovdqu for __MMX_WITH_SSE__.
13437 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13440 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
13441 TARGET_MMX and TARGET_MMX_WITH_SSE.
13442 (*mmx_umulv4hi3_highpart): Add SSE emulation.
13444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13447 * config/i386/mmx.md (mmx_pmovmskb): Changed to
13448 define_insn_and_split to support SSE emulation.
13450 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13453 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
13454 and TARGET_MMX_WITH_SSE.
13455 (mmx_<code>v8qi3): Likewise.
13456 (smaxmin:<code>v4hi3): New.
13457 (umaxmin:<code>v8qi3): Likewise.
13458 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
13459 (umaxmin:*mmx_<code>v8qi3): Likewise.
13461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13464 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
13465 TARGET_MMX_WITH_SSE.
13466 (*mmx_pinsrw): Add SSE emulation.
13468 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13471 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
13473 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13476 * config/i386/sse.md (sse_cvtpi2ps): Changed to
13477 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
13480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13483 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
13484 (sse_cvttps2pi): Likewise.
13486 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13489 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
13490 TARGET_MMX_WITH_SSE.
13491 (mmx_pshufw_1): Add SSE emulation.
13492 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
13493 TARGET_MMX_WITH_SSE to support SSE emulation.
13495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13498 * config/i386/constraints.md (Yw): New constraint.
13499 * config/i386/mmx.md (*vec_dupv2si): Changed to
13500 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
13501 support SSE emulation.
13503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13506 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
13507 TARGET_MMX_WITH_SSE.
13508 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13510 (mmx_gt<mode>3): Likewise.
13512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13515 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
13516 TARGET_MMX_WITH_SSE. Add SSE support.
13518 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13521 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
13522 TARGET_MMX_WITH_SSE.
13523 (any_logic:<code><mode>3): New.
13524 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
13527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13530 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
13531 TARGET_MMX_WITH_SSE. Add SSE emulation.
13532 (mmx_<shift_insn><mode>3): Likewise.
13533 (ashr<mode>3): New.
13534 (<shift_insn><mode>3): Likewise.
13536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13539 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
13540 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
13542 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13545 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
13546 TARGET_MMX_WITH_SSE.
13547 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
13550 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13553 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
13554 TARGET_MMX_WITH_SSE.
13556 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
13559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13562 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
13563 (plusminus:mmx_<plusminus_insn><mode>3): Check
13564 TARGET_MMX_WITH_SSE.
13565 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
13566 (<plusminus_insn><mode>3): New.
13567 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
13568 (*mmx_<plusminus_insn><mode>3): Likewise.
13570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13573 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
13574 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
13576 * config/i386/mmx.m (mmx_punpckhbw): Changed to
13577 define_insn_and_split to support SSE emulation.
13578 (mmx_punpcklbw): Likewise.
13579 (mmx_punpckhwd): Likewise.
13580 (mmx_punpcklwd): Likewise.
13581 (mmx_punpckhdq): Likewise.
13582 (mmx_punpckldq): Likewise.
13584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13585 Uros Bizjak <ubizjak@gmail.com>
13588 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
13590 (ix86_split_mmx_pack): Likewise.
13591 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
13593 (ix86_split_mmx_pack): Likewise.
13594 * config/i386/i386.md (mmx_isa): New.
13595 (enabled): Also check mmx_isa.
13596 * config/i386/mmx.md (any_s_truncate): New code iterator.
13597 (s_trunsuffix): New code attr.
13598 (mmx_packsswb): Removed.
13599 (mmx_packssdw): Likewise.
13600 (mmx_packuswb): Likewise.
13601 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
13602 MMX packsswb/packuswb with SSE2.
13603 (mmx_packssdw): Likewise.
13604 * config/i386/predicates.md (register_mmxmem_operand): New.
13606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13609 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13610 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
13611 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
13612 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
13613 (ix86_vector_mode_supported_p): Likewise.
13614 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
13616 2019-05-15 Martin Liska <mliska@suse.cz>
13618 PR middle-end/90478
13619 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13620 Check for overflow.
13622 2019-05-15 Richard Biener <rguenther@suse.de>
13624 * tree-into-ssa.c (pass_build_ssa::execute): Run
13625 update_address_taken before going into SSA.
13627 2019-05-15 Richard Biener <rguenther@suse.de>
13629 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
13630 as __BIT_FIELD_REF with type with -gimple.
13632 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
13634 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
13635 semantically equivalent branches (left over after prior refactorings).
13637 2019-05-15 Richard Biener <rguenther@suse.de>
13639 PR tree-optimization/88828
13640 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
13643 2019-05-14 Richard Biener <rguenther@suse.de>
13645 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
13646 as __VIEW_CONVERT with -gimple.
13648 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13651 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
13654 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13656 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
13657 define_split to become a define_insn_and_split.
13659 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
13661 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
13663 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
13664 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
13665 (sibcall_epilogue): Adjust.
13666 (epilogue): Adjust.
13668 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13670 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
13671 to unsupported ones.
13672 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
13673 * config.host: Likewise.
13674 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
13675 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
13676 __svr4__]: Remove "brand" fallback.
13677 [!KSTAT_DATA_STRING]: Remove.
13678 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
13680 (comdat_group): Likewise.
13681 (set_have_as_tls): Likewise.
13682 (gcc_cv_target_dl_iterate_phdr): Likewise.
13683 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
13684 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
13685 * configure: Regenerate.
13686 * doc/install.texi: Simplify Solaris target triplets.
13687 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
13688 (Specific, *-*-solaris2*): Document Solaris 10 removal.
13689 Remove Solaris 10 references.
13690 Remove obsolete Solaris bug reference.
13691 (Specific, sparc-sun-solaris2.10): Remove.
13693 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
13695 * config/i386/i386.md (any_div): New code iterator.
13696 (paired_mod): New code attribute.
13697 (sgnprefix): Handle DIV and UDIV RTXes.
13699 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
13700 and udivmod<mode>4 patterns using any_div code iterator.
13701 (divmod splitters): Macroize splitters using any_div code iterator.
13702 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
13703 (*udivmodsi4_pow2_zext_2): Ditto.
13704 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
13705 and *udivmod<mode>4_noext patterns using any_div code iterator.
13706 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
13707 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
13708 patterns using any_div code iterator.
13709 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
13710 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
13711 patterns using any_div code iterator.
13712 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
13713 udivmodhiqi3 patterns using any_extend code iterator.
13715 2019-05-14 Richard Biener <rguenther@suse.de>
13716 H.J. Lu <hongjiu.lu@intel.com>
13718 PR tree-optimization/88828
13719 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
13720 permuting in a single non-constant element not extracted
13723 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13725 * internal-fn.def (SIGNBIT): New.
13726 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
13728 (signbitv4sf2): Likewise.
13730 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
13733 * config/mips/mips.c (mips_split_move): Skip forward SRC into
13734 next insn when the SRC reg is dead.
13736 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
13738 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
13739 (alloc_cand_and_find_basis): Ditto.
13740 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
13741 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
13742 (create_add_imm_cand, slsr_process_cast): Ditto.
13743 (slsr_process_copy, replace_mult_candidate): Ditto.
13744 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13745 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13746 (pass_strength_reduction::execute): Init the first NULL element.
13748 2019-05-13 Nathan Sidwell <nathan@acm.org>
13750 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13751 (run_attempt): Reformat line break.
13753 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
13756 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
13757 data registers in sibcall epilogues.
13758 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13760 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
13763 * configure.ac (--enable-frame-pointer):
13764 Disable by default for cygwin and mingw.
13765 * configure: Regenerate.
13767 2019-05-13 Nathan Sidwell <nathan@acm.org>
13769 * dwarf2out.c (breakout_comdat_types): Move comment to correct
13771 (const_ok_for_output_1): Balance parens around #if/#else/#endif
13772 (gen_member_die): Move abstract origin check earlier. Only VARs
13773 can be static_inline_p. Simplify splicing control flow.
13775 2019-05-13 Richard Biener <rguenther@suse.de>
13777 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
13779 (vect_build_slp_tree_1): Likewise.
13781 2019-05-13 Richard Biener <rguenther@suse.de>
13783 PR tree-optimization/90402
13784 * tree-if-conv.c (tree_if_conversion): Value number only
13785 the loop body by making the latch an exit of the region
13787 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
13789 (do_rpo_vn): Deal with multiple edges into the entry block
13790 that are not backedges inside the region by skipping PHIs
13791 of the entry block.
13793 2019-05-13 Richard Biener <rguenther@suse.de>
13795 PR tree-optimization/90316
13796 * tree-ssa-pre.c (insert_aux): Fold into ...
13797 (insert): ... this function. Use a RPO walk to reduce the
13798 number of required iterations.
13800 2019-05-13 Martin Liska <mliska@suse.cz>
13802 PR tree-optimization/90416
13803 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
13804 string instead of passing the second part as va_arg argument.
13806 2019-05-13 Martin Liska <mliska@suse.cz>
13808 PR gcov-profile/90380
13809 * gcov.c (handle_cycle): Do not support zero cycle count,
13810 it should not be possible.
13811 (path_contains_zero_cycle_arc): New function.
13812 (circuit): Ignore zero cycle arc counts.
13814 2019-05-13 Martin Liska <mliska@suse.cz>
13816 PR gcov-profile/90380
13817 * gcov.c (enum loop_type): Remove the enum and
13819 (handle_cycle): Assert that we should not reach
13821 (circuit): Use loop_found instead of a tri-state loop_type.
13822 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13825 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13828 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13829 (ix86_output_indirect_branch_via_reg): Use output mechanism
13830 accounting for __USER_LABEL_PREFIX__.
13831 (ix86_output_indirect_branch_via_push): Likewise.
13832 (ix86_output_function_return): Likewise.
13833 (ix86_output_indirect_function_return): Likewise.
13835 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13837 * doc/md.texi: Document use of code attributes in rtx patterns.
13838 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13839 * read-rtl.c (find_code): Split out search loops into...
13840 (maybe_find_code): ...this new function.
13841 (check_code_iterator): Make the error message more informative.
13842 (check_code_attribute): New function.
13843 (rtx_reader::rtx_alloc_for_name): Likewise.
13844 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13845 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13846 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13847 <max_opp> directly as an rtx code instead of via a match_operator.
13848 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13849 (<su>abd<mode>_3): Update accordingly.
13851 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13853 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13854 is given, print the state of the EH "save world" computation for
13857 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13860 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13861 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13863 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13865 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13866 Use pinsrd for TARGET_SSE4_1.
13867 * config/i386/sse.md (movdi_to_sse): Ditto.
13869 2019-05-10 Richard Biener <rguenther@suse.de>
13871 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13872 (do_rpo_vn): Initialize next_value_id.
13874 2019-05-10 Martin Liska <mliska@suse.cz>
13876 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13879 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13881 PR tree-optimization/90385
13882 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13883 arguments of the exit phis.
13886 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13887 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13889 (copy_tree_body_r): Likewise.
13890 (copy_fn): Set id.do_not_fold to true.
13892 2019-05-10 Martin Liska <mliska@suse.cz>
13894 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13895 Reapply changes from r269790.
13897 2019-05-10 Martin Liska <mliska@suse.cz>
13899 PR middle-end/90340
13900 * doc/invoke.texi: New params.
13901 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13902 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13903 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13905 * tree-switch-conversion.h (struct jump_table_cluster):
13908 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13910 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13912 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13914 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13916 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13918 PR rtl-optimization/88879
13919 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13921 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13924 * config/arm/arm.c (callee_saved_reg_p): Move before
13925 thumb_find_work_register.
13926 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13927 thumb_find_work_register. Only call df_get_live_out once.
13928 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13929 (thumb_find_work_register): Use
13930 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13931 algorithms to locate a spare call clobbered reg.
13933 2019-05-09 Martin Liska <mliska@suse.cz>
13935 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13936 and MAX_EXPR in GIMPLE FE format.
13938 2019-05-09 Martin Liska <mliska@suse.cz>
13940 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13941 * gimple-pretty-print.c (dump_gimple_bb_header):
13943 (pp_cfg_jump): Dump edge probability.
13944 * profile-count.c (profile_quality_as_string): Simplify
13945 with a static array.
13946 (parse_profile_quality): New function.
13947 (profile_count::dump): Simplify with a static array.
13948 (profile_count::from_gcov_type): Add new argument.
13949 * profile-count.h (parse_profile_quality): Likewise.
13950 * predict.h (set_hot_bb_threshold): New.
13951 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13953 * predict.c (get_hot_bb_threshold): Set from the new param.
13954 (set_hot_bb_threshold): New.
13956 2019-05-09 Richard Biener <rguenther@suse.de>
13958 PR tree-optimization/90395
13959 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13960 rewrite vector stores that throw internally.
13962 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13964 * cif-code.def (CHKP): Remove.
13967 * configure.ac (--enable-frame-pointer): Disable by default for
13969 * configure: Regenerate.
13971 2019-05-09 Alan Modra <amodra@gmail.com>
13974 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13975 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13976 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13977 cost for general <-> vsx when direct moves are available.
13978 Cost union classes at minimal cost for any reg in the class.
13979 Correct calculation for moves between vsx, float, and altivec.
13980 Don't return a low cost for moves between special regs. Don't
13981 use hard coded register numbers.
13982 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13983 (rs6000_ira_change_pseudo_allocno_class): New function.
13984 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13985 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13987 (movsi_internal1): Don't disparage vector alternatives.
13988 (mov<mode>_internal): Likewise, excepting alternative that
13990 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13991 we <- b alternative.
13993 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13996 PR tree-optimization/89060
13997 * tree-ssa-live.h (live_vars_map): New typedef.
13998 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13999 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
14000 (struct compute_live_vars_data): New type.
14001 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
14002 live_vars_at_stmt, destroy_live_vars): New functions.
14003 * tree-tailcall.c: Include tree-ssa-live.h.
14004 (live_vars, live_vars_vec): New global variables.
14005 (find_tail_calls): Perform variable life analysis before punting.
14006 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
14007 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
14009 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
14010 Perform variable life analysis to select variables that really need
14012 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
14013 instead set id->eh_landing_pad_dest and assert it is the same.
14014 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
14016 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
14017 Richard Earnshaw <rearnsha@arm.com>
14020 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
14022 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
14023 (thumb1_compute_save_core_reg_mask): Don't force a spare work
14024 register if both the epilogue and prologue can use call-clobbered
14026 (thumb1_unexpanded_epilogue): Use
14027 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
14028 picking temporaries for restoring high regs to match that of the
14029 prologue where possible.
14030 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
14031 the list of work registers. Detect if the return address is still live
14032 at the end of the prologue and avoid using it for a work register if so.
14033 If the return address is not live, add LR to the list of pushable regs
14034 after the first pass.
14036 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14038 PR tree-optimization/90078
14039 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
14040 (INFTY): Increase the value for infinite cost.
14041 (struct comp_cost): Promote type of members to int64_t.
14042 (infinite_cost): Don't set complexity in initialization.
14043 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
14044 overflows to infinite_cost.
14045 (adjust_setup_cost): Promote type of parameter and cost computation
14047 (struct ainc_cost_data, struct iv_ca): Promote type of member to
14049 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
14050 cost computation to int64_t.
14051 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
14052 int64_t's format specifier in dump.
14054 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
14056 PR tree-optimization/90240
14057 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
14058 with respect to scaling factor pre-computed for each basic block.
14059 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
14060 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
14061 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
14062 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
14063 live range for array of loop's basic blocks. Cleanup aux field of
14064 loop's basic blocks.
14066 2019-05-08 Jakub Jelinek <jakub@redhat.com>
14068 PR tree-optimization/90356
14069 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
14071 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
14073 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
14074 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
14075 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
14076 (ix86_handle_option): Handle -mavx512bf16.
14077 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
14079 * config/i386/avx512bf16vlintrin.h: New.
14080 * config/i386/avx512bf16intrin.h: New.
14081 * config/i386/cpuid.h (bit_AVX512BF16): New.
14082 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
14083 * config/i386/i386-builtin-types.def: Add new types.
14084 * config/i386/i386-builtin.def: Add new builtins.
14085 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14087 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
14088 (ix86_option_override_internal): Handle BF16.
14089 (ix86_valid_target_attribute_inner_p): Ditto.
14090 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
14091 * config/i386/i386-builtin.c (enum processor_features): Add
14093 (static const _isa_names_table isa_names_table): Ditto.
14094 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
14095 (PTA_AVX512BF16): Ditto.
14096 * config/i386/i386.opt: Add -mavx512bf16.
14097 * config/i386/immintrin.h: Include avx512bf16intrin.h
14098 and avx512bf16vlintrin.h.
14099 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
14100 avx512f_cvtneps2bf16_<mode><mask_name>,
14101 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
14102 * config/i386/subst.md (mask_half): Add new subst.
14103 * doc/invoke.texi: Document -mavx512bf16.
14105 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14107 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
14108 Delete declaration.
14109 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
14110 (rs6000_debug_legitimize_reload_address): Delete.
14111 (rs6000_legitimize_reload_address_ptr): Delete.
14112 (rs6000_option_override_internal): Adjust.
14113 (mem_operand_gpr): Adjust comment.
14114 (legitimate_lo_sum_address_p): Ditto.
14115 (rs6000_legitimize_reload_address): Delete.
14116 (rs6000_debug_legitimize_reload_address): Delete.
14117 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
14119 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
14122 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14123 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
14124 to compute vector element selector for both constant and variable
14127 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14129 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
14130 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
14131 ashrdi3_cvt using SWI48 mode iterator.
14133 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14135 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
14136 (aarch64_<su>abd<mode>_3): Likewise.
14137 (*aarch64_<su>abd<mode>_3): New define_insn.
14138 (<sur>sad<vsi2qi>): New define_expand.
14139 * config/aarch64/iterators.md: Added MAX_OPP attribute.
14140 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
14141 (build_vect_cond_expr): Likewise.
14143 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
14145 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
14146 clobbers outside of accessible_reg_set.
14147 * config/i386/i386.c (ix86_conditional_register_usage):
14148 Disable register sets by clearing corresponding bits in
14149 accessible_reg_set. Do not set corresponding bits in fixed_regs,
14150 call_used_regs and don't clear corresponding reg_names array members.
14152 2019-05-07 Richard Biener <rguenther@suse.de>
14154 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
14155 not specified still compute a comp_vectype for invariant
14158 2019-05-07 Richard Biener <rguenther@suse.de>
14160 PR tree-optimization/90316
14161 * tree-ssa-pre.c (translate_vuse_through_block): When
14162 same_valid is NULL do not bother to search for a virtual
14164 (phi_translate_1): When operands changed we cannot keep
14165 the same value-number so do not bother to ask whether
14166 that's possible from translate_vuse_through_block.
14168 2019-05-07 Martin Liska <mliska@suse.cz>
14170 * bitmap.c (bitmap_register): Come up with
14171 alloc_descriptor_max_uid and assign it for
14173 (register_overhead): Use get_descriptor as
14175 (release_overhead): New.
14176 (bitmap_elem_to_freelist): Call it.
14177 (bitmap_elt_clear_from): Likewise.
14178 (bitmap_obstack_free): Likewise.
14179 (bitmap_move): Sensitively release memory.
14180 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
14181 (bitmap_initialize): Initialize alloc_descriptor to zero.
14182 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
14184 2019-05-07 Richard Biener <rguenther@suse.de>
14186 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
14187 we build a SLP node. Remove max_size and limiting.
14188 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
14190 2019-05-07 Richard Biener <rguenther@suse.de>
14192 PR tree-optimization/90316
14193 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
14194 limit by reference.
14195 (walk_non_aliased_vuses): Take walking limit argument.
14196 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
14197 walking if it is reached instead of just counting.
14198 (get_continuation_for_phi): Likewise.
14199 (walk_non_aliased_vuses): Likewise, instead of leaving counter
14200 limiting to the callback.
14201 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
14202 (vn_reference_lookup_3): Likewise.
14203 (vn_reference_lookup_pieces): Likewise.
14204 (vn_reference_lookup): Likewise.
14205 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
14206 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
14207 (avail_exprs_stack::lookup_avail_expr): Likewise.
14209 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
14211 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
14212 for comparaible types in the second direction even if first one
14213 hits incomparable type.
14215 2019-05-07 Richard Biener <rguenther@suse.de>
14218 * lto-wrapper.c (debug_objcopy): Use the original filename
14219 including archive offset for the filename used for -save-temps.
14221 2019-05-07 Li Jia He <helijia@linux.ibm.com>
14223 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
14226 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
14227 Hongtao Liu <hongtao.liu@intel.com>
14231 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
14232 Modified, original implementation isn't correct.
14234 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14236 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
14237 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
14238 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
14239 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
14240 (FRAME_POINTER_REGNUM): Change numbering.
14241 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
14242 (alt_reg_names): Adjust.
14243 (rs6000_conditional_register_usage): Don't mark hard register 64 as
14245 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
14246 (DWARF_FRAME_REGISTERS): Delete.
14247 (DWARF2_FRAME_REG_OUT): Fix whitespace.
14248 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
14250 (REG_ALLOC_ORDER): Adjust.
14251 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
14252 (REG_CLASS_CONTENTS): Adjust.
14253 (RETURN_ADDR_RTX): Change comment.
14254 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
14256 (REGISTER_NAMES): Adjust.
14257 (ADDITIONAL_REGISTER_NAMES): Adjust.
14258 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
14260 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14262 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
14264 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
14265 (DWARF_FRAME_REGISTERS): Adjust.
14266 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
14268 (REG_ALLOC_ORDER): Adjust.
14269 (enum reg_class): Delete SPR_REGS.
14270 (REG_CLASS_NAMES): Delete SPR_REGS.
14271 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
14272 (REGISTER_NAMES): Adjust.
14273 (ADDITIONAL_REGISTER_NAMES): Adjust.
14274 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
14275 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
14276 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
14277 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
14278 (htm_spr_regno): Delete.
14279 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
14281 (rs6000_dbx_register_number): Adjust.
14283 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14285 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
14287 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14289 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
14290 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
14292 2019-05-06 Jakub Jelinek <jakub@redhat.com>
14294 PR tree-optimization/88709
14295 PR tree-optimization/90271
14296 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
14297 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
14298 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
14300 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
14301 of the store merging group is larger than
14302 PARAM_STORE_MERGING_MAX_SIZE parameter.
14303 (split_group): Add bzero_first argument. If set, always emit first
14304 the first store which must be = {} of the whole area and then for the
14305 rest of the stores consider all zero bytes as paddings.
14306 (imm_store_chain_info::output_merged_store): Check if first store
14307 is = {} of the whole area and if yes, determine which setting of
14308 bzero_first for split_group gives smaller number of stores. Adjust
14309 split_group callers.
14310 (lhs_valid_for_store_merging_p): Allow decls.
14311 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
14313 (pass_store_merging::process_store): Likewise.
14315 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
14318 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14319 handling of V1TImode.
14321 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
14324 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
14325 and enable_frame_pointer ...
14326 * configure.ac: ... here. Update help strings for
14327 --enable-frame-pointer.
14328 * configure: Regenerate.
14329 * config/i386/i386-options.c (ix86_option_override_internal): Remove
14330 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
14331 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
14332 (USE_X86_64_FRAME_POINTER): Ditto.
14334 2019-05-06 Martin Liska <mliska@suse.cz>
14336 * config.gcc: Append to target_gtfiles and fix indentation.
14338 2019-05-06 Richard Biener <rguenther@suse.de>
14340 PR tree-optimization/90358
14341 * tree-vect-stmts.c (get_group_load_store_type): Properly
14342 detect unused upper half of load.
14343 (vectorizable_load): Likewise.
14345 2019-05-06 Richard Biener <rguenther@suse.de>
14347 PR tree-optimization/88828
14348 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
14349 (simplify_vector_constructor): ...here. Handle constants in
14352 2019-05-06 Richard Biener <rguenther@suse.de>
14354 PR tree-optimization/90328
14355 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
14356 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
14357 is valid in the loop nest before using it.
14358 (initialize_data_dependence_relation): Adjust.
14359 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
14360 loop as loop-nest to dr_may_alias_p.
14362 2019-05-06 Richard Biener <rguenther@suse.de>
14364 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
14366 2019-05-06 Richard Biener <rguenther@suse.de>
14368 PR tree-optimization/90316
14369 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
14370 compute target on demand.
14371 (get_continuation_for_phi): Remove code walking stmts to
14372 get to a target virtual operand which could end up being
14375 2019-05-06 Martin Liska <mliska@suse.cz>
14378 * config/i386/i386-options.c (ix86_option_override_internal): Error only
14379 when -mabi is selected to a non-default version.
14381 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
14382 Martin Liska <mliska@suse.cz>
14384 * Makefile.in: Add lto-dump.texi.
14385 * cgraph.h: Add new functions get_visibility_string and
14386 get_symtab_type_string.
14387 * doc/gcc.texi: Include lto-dump section.
14388 * doc/lto-dump.texi: New file.
14389 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
14390 (parse_dump_option): Factor out this function.
14391 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
14392 (parse_dump_option): Export the function.
14393 * symtab.c (symtab_node::get_visibility_string): New function.
14394 (symtab_node::get_symtab_type_string): Likewise.
14396 2019-05-06 Martin Liska <mliska@suse.cz>
14398 * config/i386/i386-builtins.c: New file.
14399 * config/i386/i386-builtins.h: New file.
14400 * config/i386/i386-expand.c: New file.
14401 * config/i386/i386-expand.h: New file.
14402 * config/i386/i386-features.c: New file.
14403 * config/i386/i386-features.h: New file.
14404 * config/i386/i386-options.c: New file.
14405 * config/i386/i386-options.h: New file.
14406 * config.gcc: Add new files into extra_objs and
14408 * config/i386/i386.c: Split content of the file
14409 into newly introduced files.
14410 * config/i386/i386.h: Declare common variables
14412 * config/i386/t-i386: Define dependencies for new files.
14414 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
14417 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
14418 Restrict 'all' variant to 32-bit configurations.
14419 (unaligned_loadhiu): Likewise.
14420 (unaligned_storehi): Likewise.
14421 (unaligned_storesi): Likewise.
14422 (unaligned_loadhis): Disable when compiling for thumb1.
14424 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
14426 PR tree-optimization/90269
14427 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
14430 2019-05-03 Martin Liska <mliska@suse.cz>
14432 * hash-map.h: Add is_empty function.
14433 * hash-set.h: Likewise.
14434 * hash-table.h: Likewise.
14435 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
14436 elements () == 0 (and similar usages).
14437 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
14438 * gimplify.c (gimplify_bind_expr): Likewise.
14439 (gimplify_switch_expr): Likewise.
14440 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
14441 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
14442 * postreload-gcse.c (dump_hash_table): Likewise.
14443 (gcse_after_reload_main): Likewise.
14444 * predict.c (combine_predictions_for_bb): Likewise.
14445 * tree-parloops.c (reduction_phi): Likewise.
14446 (separate_decls_in_region): Likewise.
14447 (transform_to_exit_first_loop): Likewise.
14448 (gen_parallel_loop): Likewise.
14449 (gather_scalar_reductions): Likewise.
14450 (try_create_reduction_list): Likewise.
14451 * var-tracking.c (dump_vars): Likewise.
14452 (emit_notes_for_changes): Likewise.
14453 (vt_emit_notes): Likewise.
14455 2019-05-03 Richard Biener <rguenther@suse.de>
14457 PR tree-optimization/90316
14458 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
14461 2019-05-03 Richard Biener <rguenther@suse.de>
14463 * tree-vect-stmts.c (get_group_load_store_type): Avoid
14464 peeling for gaps by loading only lower halves of vectors
14466 (vectorizable_load): Likewise.
14468 2019-05-03 Richard Biener <rguenther@suse.de>
14470 PR middle-end/89518
14471 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
14473 2019-05-03 Richard Biener <rguenther@suse.de>
14475 PR middle-end/87314
14476 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
14477 Handle STRING_CST vs DECL or STRING_CST.
14479 2019-05-03 Richard Biener <rguenther@suse.de>
14481 PR tree-optimization/88963
14482 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
14483 vector loads feeding only BIT_FIELD_REFs to component
14484 loads. Rewrite stores fed by CONSTRUCTORs to component
14487 2019-05-03 Jakub Jelinek <jakub@redhat.com>
14489 * opts.h (finish_options): Remove lang_mask argument.
14490 (print_help, help_option_argument): Declare.
14491 * opts.c (print_help): Remove forward declaration, no longer static.
14492 (finish_options): Remove lang_mask argument, don't call print_help
14494 * opts-global.c (decode_options): Adjust finish_option caller, call
14497 PR tree-optimization/90303
14498 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
14499 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
14501 2019-05-03 Richard Biener <rguenther@suse.de>
14503 PR tree-optimization/89698
14504 * gimple-fold.c (canonicalize_constructor_val): Early out
14505 for constants, handle unfolded INTEGER_CSTs as they appear in
14506 C++ virtual table ctors.
14508 2019-05-03 Richard Biener <rguenther@suse.de>
14510 * passes.c (execute_function_todo): Remove dead code.
14512 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14514 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
14515 the internal register number, for any "real" register.
14517 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
14519 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
14520 correct numbers for TFHAR, TFIAR, TEXASR.
14522 2019-05-02 Richard Biener <rguenther@suse.de>
14524 PR tree-optimization/89653
14525 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
14526 update-address-taken before the pass.
14527 * passes.def (pass_tree_loop_init): Put comment before it.
14529 2019-05-02 Richard Biener <rguenther@suse.de>
14531 PR tree-optimization/89509
14532 * tree-ssa-structalias.c (compute_dependence_clique): Look
14533 at the first subvar when determining whether it is restrict.
14535 2019-05-02 Richard Biener <rguenther@suse.de>
14537 PR tree-optimization/90273
14538 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
14539 useless debug stmts.
14541 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14543 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
14545 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
14547 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
14548 VEC_COND_EXPR be inserted to emulate a conditional internal function.
14549 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
14550 (vectorizable_reduction): Use the functions above to vectorize in a
14551 fully masked loop codes that don't have a conditional internal
14554 2019-05-02 Martin Liska <mliska@suse.cz>
14556 * cgraphclones.c: Call valid_attribute_p with 1 for
14558 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
14559 it's for target attribute.
14560 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
14561 Add new boolean argument.
14562 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
14564 (ix86_valid_target_attribute_tree): Pass target_clone_attr
14565 to ix86_valid_target_attribute_inner_p.
14566 (ix86_valid_target_attribute_p): Pass flags argument to
14567 ix86_valid_target_attribute_inner_p.
14568 (get_builtin_code_for_version): Use 0 as it's target attribute.
14570 2019-05-02 Martin Liska <mliska@suse.cz>
14572 * gcc.c (process_command): Add dummy file only
14574 * opts-global.c (decode_options): Pass lang_mask.
14575 * opts.c (print_help): New function.
14576 (finish_options): Print --help if help_option_argument
14578 (common_handle_option): Factor out content of OPT__help_
14580 * opts.h (finish_options): Add new argument.
14582 2019-05-02 Martin Liska <mliska@suse.cz>
14585 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
14586 With -minline-all-stringops use inline expansion using 4B loop.
14587 * doc/invoke.texi: Document the change of
14588 -minline-all-stringops.
14590 2019-05-01 Jeff Law <law@redhat.com>
14592 PR tree-optimization/88797
14593 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
14594 PHI feeds a conditional on the RHS of an assignment.
14596 2019-04-30 Andrew Waterman <andrew@sifive.com>
14597 Jim Wilson <jimw@sifive.com>
14599 * config/riscv/constraints.md (L): New.
14600 * config/riscv/predicates.md (lui_operand): New.
14601 (sfb_alu_operand): New.
14602 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
14603 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
14604 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
14605 * config/riscv/risc.md (type): Add sfb_alu.
14606 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
14607 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
14608 (branch_zero<mode>): Delete.
14609 (mov<mode>cc): New.
14610 (mov<GPR:mode><X:mode>cc): Likewise.
14611 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
14613 2019-04-30 Nathan Sidwell <nathan@acm.org>
14615 * tree.h (MARK_TS_EXP): New.
14617 2019-04-30 Martin Liska <mliska@suse.cz>
14619 * opts.c (enable_warning_as_error): Provide hints
14620 for unknown options.
14622 2019-04-30 Martin Liska <mliska@suse.cz>
14625 * doc/invoke.texi: Add missing dash for gas-locview-support
14626 and gno-as-locview-support.
14628 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14631 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
14632 whitespace at the start of target attribute string.
14634 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14637 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
14638 Define __ARM_FEATURE_ATOMICS.
14640 2019-04-30 Martin Liska <mliska@suse.cz>
14642 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
14643 into built_in_function enum. Remove code for endp == 2 and
14644 use BUILT_IN_* constants.
14645 (gimple_fold_builtin): Call the function with fcode.
14647 2019-04-30 Martin Liska <mliska@suse.cz>
14649 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
14650 DECL_FUNCTION_CODE into ix86_builtins enum before
14651 the switch statement.
14653 2019-04-30 Jakub Jelinek <jakub@redhat.com>
14655 PR tree-optimization/89475
14656 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
14659 2019-04-30 Martin Liska <mliska@suse.cz>
14661 PR translation/90274
14662 * opts.c (print_filtered_help): Wrap string in _(...).
14664 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
14666 PR tree-optimization/90240
14668 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14670 PR tree-optimization/90078
14671 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14672 checks for infinite_cost overflow.
14674 2019-04-29 Jeff Law <law@redhat.com>
14676 * passes.def: Move -Wrestrict pass after copy propagation.
14678 2019-04-29 Maya Rashish <coypu@sdf.org>
14680 * config.gcc (default_gnu_indirect_function): Default to yes
14681 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
14682 sparc*-*-netbsd*, x86_64-*-netbsd*.
14684 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
14686 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
14687 where cond2 is NE_EXPR.
14688 (is_value_included_in): Update comment.
14690 2019-04-29 Richard Biener <rguenther@suse.de>
14692 PR tree-optimization/90278
14693 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
14694 EH on comparison simplification.
14696 2019-04-29 Jason Merrill <jason@redhat.com>
14698 PR c++/82081 - tail call optimization breaks noexcept
14699 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
14700 nothrow function to a might-throw function into a tail call.
14702 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
14704 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
14705 (DDR_INNER_LOOP): Likewise.
14706 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
14707 (initialize_data_dependence_relation): Likewise.
14708 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
14710 2019-04-29 Jakub Jelinek <jakub@redhat.com>
14712 PR rtl-optimization/90257
14713 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
14717 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14721 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14724 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14727 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14729 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14731 2019-04-29 Richard Biener <rguenther@suse.de>
14733 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
14736 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
14738 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
14739 varasm.h, and netbsd-protos.h.
14741 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
14744 * config/i386/i386-protos.h (ix86_data_alignment): Change
14745 the second argument type to unsigned int.
14746 * config/i386/i386.c (ix86_data_alignment): Change "align"
14747 argument type to unsigned int.
14749 2019-04-27 Martin Liska <mliska@suse.cz>
14751 PR middle-end/90258
14752 * opt-suggestions.c (option_proposer::build_option_suggestions):
14753 When get_valid_option_values returns empty values, add the
14754 misspelling candidate.
14756 2019-04-26 Jim Wilson <jimw@sifive.com>
14758 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
14760 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
14761 Pass orig_mode to riscv_build_integer.
14762 (riscv_split_integer): Pass mode to riscv_move_integer.
14763 (riscv_legitimize_const_move): Likewise.
14764 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
14765 promoted_mode. Replace force_reg call with code to load constant into
14766 promoted reg and then subreg it for the store.
14767 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
14768 riscv_move_integer.
14770 2018-04-26 Eugene Sharygin <eush@ispras.ru>
14772 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
14775 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
14777 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
14778 commentary about the encoding of precision.
14780 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
14782 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
14783 * config/i386/t-freebsd64: New file.
14784 * config.gcc: Add the t-freebsd64 for multilib support.
14786 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
14788 * doc/extend.texi (vector_size): Add missing comma after @xref.
14790 2019-04-25 Jakub Jelinek <jakub@redhat.com>
14792 * BASE-VER: Set to 10.0.0.
14794 2019-04-25 Richard Biener <rguenther@suse.de>
14796 PR middle-end/89765
14797 * gimplify.c (gimplify_expr): Avoid turning a lvalue
14798 VIEW_CONVERT_EXPR into one operating on an rvalue.
14800 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
14803 * config/i386/i386.c (feature_priority): Moved to file scope.
14804 (processor_features): Likewise.
14805 (processor_model): Likewise.
14806 (_arch_names_table): Likewise.
14807 (arch_names_table): Likewise.
14808 (_feature_list): Removed.
14809 (feature_list): Likewise.
14810 (_isa_names_table): Moved to file scope. Add priority.
14811 (isa_names_table): Likewise.
14812 (get_builtin_code_for_version): Replace feature_list with
14813 isa_names_table. Update error message for P_ZERO priority.
14815 2019-04-25 Richard Biener <rguenther@suse.de>
14817 * tree-pass.h (make_pass_phi_only_cprop): Remove.
14818 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
14820 2019-04-24 Jeff Law <law@redhat.com>
14822 PR tree-optimization/90037
14823 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14824 * passes.def: Replace all instance of phi-only cprop with the
14825 lattice propagator. Move propagation pass from after erroneous
14826 path isolation to before erroneous path isolation.
14827 * tree-ssa-phionlycprop.c: Remove.
14829 2019-04-24 Richard Biener <rguenther@suse.de>
14831 PR middle-end/90213
14832 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14833 by size and BITS_PER_UNIT on poly-wide-ints.
14835 2019-04-25 Richard Biener <rguenther@suse.de>
14837 PR middle-end/90194
14838 * match.pd: Add pattern to simplify view-conversion of an
14841 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14843 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14844 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14845 for Go on 32 bit AIX.
14846 * config/rs6000/aix72.h: Likewise.
14848 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14851 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14852 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14854 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14857 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14858 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14859 for restored hard frame pointer.
14860 (s390_sched_dependencies_evaluation): Implement new target hook.
14861 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14863 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14865 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14866 * config/arc/arc.c (arc_init): Cleanup warning message.
14867 (arc_override_options): Likewise.
14869 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14872 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14873 a register if both if_true and if_false are MEMs.
14875 PR tree-optimization/90208
14876 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14877 after labels of new_bb, not before them.
14879 PR tree-optimization/90211
14880 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14881 which are not SSA_NAMEs.
14883 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14885 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14887 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14889 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14891 PR rtl-optimization/87979
14892 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14895 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14897 PR rtl-optimization/84032
14898 * modulo-sched.c (ps_insn_find_column): Change condition so that
14899 branch will always be the last insn in a row inside partial
14902 2019-04-23 Richard Biener <rguenther@suse.de>
14905 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14906 dest_single_pred_p argument.
14907 (remove_forwarder_block): Adjust.
14908 (remove_forwarder_block_with_phi): Likewise.
14910 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14911 Bernd Edlinger <bernd.edlinger@hotmail.de>
14912 Jakub Jelinek <jakub@redhat.com>
14915 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14916 if used with general-regs-only.
14917 (arm_conditional_register_usage): Don't add non-general regs if
14919 (arm_valid_target_attribute_rec): Handle general-regs-only.
14920 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14922 (TARGET_HARD_FLOAT_SUB): Define.
14923 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14924 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14925 (TARGET_REALLY_IWMMXT2): Likewise.
14926 * config/arm/arm.opt: Add -mgeneral-regs-only.
14927 * doc/extend.texi: Document ARM general-regs-only target.
14928 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14930 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14932 PR tree-optimization/90078
14933 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14934 checks for infinite_cost overflow.
14936 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14938 PR tree-optimization/90021
14939 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14940 and check univariate against it.
14941 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14942 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14944 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14948 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14951 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14954 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14956 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14958 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14960 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14961 names using operand format, rather than hard-wired.
14962 (speculation_barrier): Likewise.
14964 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14966 PR tree-optimization/88055
14967 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14968 (gen_one_condition): Use it if !HONOR_NANS.
14970 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14972 PR middle-end/90139
14973 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14974 assign_temp instead of gen_reg_rtx.
14976 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14978 PR translation/90118
14979 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14980 Add missing space before %<.
14982 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14984 PR rtl-optimization/87871
14985 * ira-lives.c (make_object_dead): Don't add conflicts to
14986 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14988 2019-04-18 Martin Sebor <msebor@redhat.com>
14990 PR middle-end/89797
14991 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14992 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14993 assuming type size fits in SHWI.
14995 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14998 * ipa-inline.c (flatten_function): New parameter UPDATE.
14999 (ipa_inline, early_inliner): Use it.
15001 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15003 * fold-const.c (int_const_binop): Return early on failure.
15005 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
15007 PR middle-end/85164
15008 * combine.c (force_int_to_mode): Cast the argument rather than
15009 the result of known_alignment.
15010 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
15012 2019-04-18 Richard Biener <rguenther@suse.de>
15015 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
15017 (remove_forwarder_block): ... here.
15018 (remove_forwarder_block_with_phi): Also move debug stmts here.
15020 2019-04-18 Jakub Jelinek <jakub@redhat.com>
15022 PR translation/79183
15023 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
15024 inform where appropriate.
15026 2019-04-18 Richard Biener <rguenther@suse.de>
15028 * tree.c (get_qualified_type): Put found type variants at the
15029 head of the variant list.
15031 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15033 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
15035 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
15038 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
15039 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
15040 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
15041 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
15042 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
15044 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
15046 * ira-conflicts.c (print_allocno_conflicts): Always print something,
15047 even for allocno's with no conflicts.
15048 (print_conflicts): Print an extra newline.
15050 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15052 * auto-inc-dec.c (attempt_change): Set the alignment of the
15053 temporary memory to that of the original.
15055 2019-04-17 Joao Moreira <jmoreira@suse.de>
15057 * targhooks.c (default_print_patchable_function_entry): Emit
15058 __patchable_function_entries section with writable flags to allow
15059 relocation resolution.
15061 2019-04-17 Jonny Grant <jg@jguk.org>
15063 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
15065 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15067 PR middle-end/90095
15068 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
15069 on lowpart SUBREGs.
15071 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
15073 * config/arc/arc.c (arc_init): Format diagnostic string.
15074 (arc_override_options): Likewise.
15075 (check_if_valid_regno_const): Likewise.
15076 (arc_reorg): Likewise.
15078 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
15081 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
15083 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
15085 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
15086 (*movdi_update1): Use Pmode.
15087 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
15088 (movdi_<mode>_update_stack): Rename to ...
15089 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
15091 (*movsi_update1): Use Pmode.
15092 (*movsi_update2): Use Pmode.
15093 (movsi_update): Rename to ...
15094 (movsi_<mode>_update): ... this. Use Pmode.
15095 (movsi_update_stack): Fix condition.
15096 (*movhi_update1): Use Pmode. Fix argument to
15097 avoiding_indexed_address_p.
15098 (*movhi_update2): Ditto.
15099 (*movhi_update3): Ditto.
15100 (*movhi_update4): Ditto.
15101 (*movqi_update1): Ditto.
15102 (*movqi_update2): Ditto.
15103 (*movqi_update3): Ditto.
15104 (*movsf_update1, *movdf_update1): Merge, rename to...
15105 (*mov<mode>_update1): This. Use Pmode. Fix argument to
15106 avoiding_indexed_address_p. Add "size" attribute.
15107 (*movsf_update2, *movdf_update2): Merge, rename to...
15108 (*mov<mode>_update2): This. Ditto.
15109 (*movsf_update3): Use Pmode. Fix argument to
15110 avoiding_indexed_address_p.
15111 (*movsf_update4): Ditto.
15112 (allocate_stack): Simplify condition. Adjust pattern names.
15114 2019-04-17 Jakub Jelinek <jakub@redhat.com>
15117 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
15118 whitespace at the start of target attribute string.
15120 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
15123 * config/rs6000/power9.md: Add store forwarding bypass.
15125 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
15128 * valtrack.c (dead_debug_insert_temp): Reset debug references
15129 to the return value of a call being removed.
15131 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15133 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
15134 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
15135 implement target hook.
15136 (arc_memory_move_cost): New function.
15137 (TARGET_REGISTER_MOVE_COST): Define.
15138 (TARGET_MEMORY_MOVE_COST): Likewise.
15139 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
15140 (MEMORY_MOVE_COST): Likewise.
15142 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15144 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
15145 (sibcall_value_insn): Likewise.
15146 * config/arc/constraints.md (Rs5): Remove.
15148 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15150 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
15151 for last two fake registers.
15152 (arc_conditional_register_usage): Make sure fake frame and arg
15153 pointer regs are in general regs class.
15154 (FRAME_POINTER_MASK): Remove.
15155 (RETURN_ADDR_MASK): Remove.
15156 (arc_must_save_register): Use hard frame regnum.
15157 (frame_restore_reg): Use hard_frame_pointer_rtx.
15158 (arc_save_callee_saves): Likewise.
15159 (arc_restore_callee_saves): Likewise.
15160 (arc_save_callee_enter): Likewise.
15161 (arc_restore_callee_leave): Likewise.
15162 (arc_save_callee_milli): Likewise.
15163 (arc_eh_return_address_location): Likewise.
15164 (arc_check_multi): Use hard frame regnum.
15165 (arc_can_eliminate): Likewise.
15166 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
15167 for register allocator.
15168 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
15169 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
15170 (FRAME_POINTER_REGNUM): Change it to a fake register.
15171 (HARD_FRAME_POINTER_REGNUM): Defined.
15172 (ARG_POINTER_REGNUM): Change it to a new fake register.
15173 (ELIMINABLE_REGS): Update.
15174 (REGISTER_NAMES): Update names.
15175 * config/arc/arc.md (LP_START): Remove.
15176 (LP_END): Likewise.
15177 (shift_si3_loop): Update pattern.
15179 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
15181 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
15182 to avoid delay slot scheduling.
15183 (arc_must_save_register): Don't save SP.
15184 * config/arc/arc.md (stack_tie): Remove.
15185 (UNSPEC_ARC_STKTIE): Likewise.
15187 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
15188 Shiva Chen <shiva0217@gmail.com>
15190 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
15191 code gen with large shift amount.
15193 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
15195 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
15198 2019-04-16 Jakub Jelinek <jakub@redhat.com>
15201 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
15202 print -m64/-mx32/-m32 if it is true.
15203 (ix86_debug_options, ix86_function_specific_print): Pass true as
15204 ADD_ABI_P to ix86_target_string.
15205 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
15206 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
15207 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
15209 PR rtl-optimization/90082
15210 * dce.c (can_delete_call): New function.
15211 (deletable_insn_p, mark_insn): Use it.
15213 PR tree-optimization/90090
15214 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
15216 (is_division_by_square): Likewise. Formatting fix.
15218 2019-04-16 Richard Biener <rguenther@suse.de>
15220 PR tree-optimization/56049
15221 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
15222 equality check if alias-set zero will prevail.
15224 2019-04-15 Jeff Law <law@redhat.com>
15226 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
15227 size and alignment as unsigned.
15229 2019-04-15 Richard Biener <rguenther@suse.de>
15232 * tree-loop-distribution.c (destroy_loop): Preserve correct
15235 2019-04-15 Richard Biener <rguenther@suse.de>
15237 PR tree-optimization/90071
15238 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
15239 abnormal operands from def stmts.
15241 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
15243 PR rtl-optimization/89794
15244 * combine.c (count_auto_inc): New function.
15245 (try_combine): Count how many auto_inc expressions there were in the
15246 original instructions. Ensure we have the same number in the new
15247 instructions. Remove the code that tried to ensure auto_inc side
15248 effects on i1 and i0 are not lost.
15250 2019-04-15 Richard Biener <rguenther@suse.de>
15253 * tree.h (auto_var_p): Declare.
15254 * tree.c (auto_var_p): New function, split out from ...
15255 (auto_var_in_fn_p): ... here.
15256 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
15258 (new_var_info): Initialize it.
15259 (set_uids_in_ptset): Also set the shadow variable uid if required.
15260 (ipa_pta_execute): Postprocess points-to solutions assigning
15261 shadow variable uids for locals that may reach their containing
15262 function recursively.
15263 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
15264 assert but instead check whether the points-to solution is
15267 2019-04-15 Martin Jambor <mjambor@suse.cz>
15270 * cgraph.c (clone_of_p): Loop over clone chain for each step in
15273 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
15275 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
15277 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
15278 Kito Cheng <kito.cheng@gmail.com>
15279 Shiva Chen <shiva0217@gmail.com>
15281 * config/nds32/nds32-md-auxiliary.c
15282 (nds32_legitimize_pic_address): Use new PIC pattern.
15283 (nds32_legitimize_tls_address): Use new TLS pattern.
15284 (nds32_output_symrel): New.
15285 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
15286 (nds32_alloc_relax_group_id): Ditto.
15287 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
15288 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
15290 (nds32_group_tls_insn): Ditto.
15291 (nds32_group_float_insns): Ditto.
15292 * config/nds32/nds32.md (tls_le): New.
15295 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
15297 * configure: Add nds32 target for dwarf2 debug_line checking.
15298 * configure.ac: Regenerated.
15300 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
15303 * ipa-devirt.c (skip_in_fields_list_p): New.
15304 (odr_types_equivalent_p): Use it.
15306 2019-04-13 Jakub Jelinek <jakub@redhat.com>
15309 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
15310 instead of strncmp when checking for thumb and arm. Formatting fixes.
15312 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
15314 * doc/install.texi: Document --with-target-system-zlib.
15316 2019-04-12 Martin Sebor <msebor@redhat.com>
15322 * targhooks.c (default_vector_alignment): Avoid assuming
15323 argument fits in SHWI.
15324 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
15325 a shift expression.
15326 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
15328 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15330 PR rtl-optimization/89965
15331 * dce.c: Include rtl-iter.h.
15332 (struct check_argument_load_data): New type.
15333 (check_argument_load): New function.
15334 (find_call_stack_args): Check for loads from stack slots still tracked
15335 in sp_bytes and punt if any is found.
15337 * config/mips/loongson-mmiintrin.h: Fix up #error message.
15339 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
15341 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
15342 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
15344 2019-04-12 Martin Liska <mliska@suse.cz>
15346 PR middle-end/89970
15347 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
15349 (separate_attrs): Handle multiple 'default's.
15350 (expand_target_clones): Rework error handling code.
15352 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
15355 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
15356 mode of vector rather than mode of destination for move instruction.
15357 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
15358 Use QI inner mode with V16QI vector mode.
15360 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15363 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
15364 "invalid %%t operand" in output_operand_lossage message.
15366 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
15368 * config/s390/predicates.md (permute_pattern_operand): New
15370 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
15371 operand for the permute pattern.
15372 ("*vec_perm<mode>"): New insn definition.
15373 ("bswap<mode>"): Generate the permute pattern operand in the
15374 expander and perform the operand reloads for pre arch13 level
15376 ("*bswap<mode>_emu"): Rename to ...
15377 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
15378 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
15379 Add the USE operand for the permute pattern.
15380 ("*vec_set_bswap_vec<mode>"): Likewise.
15382 2019-04-12 Jakub Jelinek <jakub@redhat.com>
15385 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
15386 and gcc_unreachable if it fails, just call tree_to_uhwi which
15387 verifies that too. Test TREE_CHAIN instead of list_length > 1.
15388 Start warning message with a lower-case letter. Formatting fixes.
15390 PR rtl-optimization/90026
15391 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
15392 successors, look for BARRIERs inside of the whole BB_FOOTER chain
15393 rather than just at the start of it. If e->src BB_FOOTER is not NULL
15394 in cfglayout mode, use emit_barrier_after_bb.
15396 2018-04-11 Steve Ellcey <sellcey@marvell.com>
15398 PR rtl-optimization/87763
15399 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
15402 2019-04-11 Tom de Vries <tdevries@suse.de>
15404 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
15405 max macro using statement expression.
15407 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
15409 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
15410 * xcoffout.c (xcoff_private_rodata_section_name): Define.
15411 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
15412 read_only_private_data_section using xcoff_private_rodata_section_name.
15413 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
15415 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
15418 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
15420 2019-04-11 Jakub Jelinek <jakub@redhat.com>
15422 PR rtl-optimization/89965
15423 * dce.c (sp_based_mem_offset): New function.
15424 (find_call_stack_args): Use sp_based_mem_offset.
15426 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
15428 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
15430 2019-04-11 Richard Biener <rguenther@suse.de>
15432 PR tree-optimization/90020
15433 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
15434 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
15435 * tree-ssa-pre.c (compute_avail): Use it to not put
15436 possibly trapping references after a call that might not
15437 return into EXP_GEN.
15438 * gcse.c (compute_hash_table_work): Do not elide
15439 marking a block containing a call if the call might not
15442 2019-04-11 Richard Biener <rguenther@suse.de>
15444 PR tree-optimization/90018
15445 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
15446 Test both SLP and interleaving variants.
15448 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
15450 * config/s390/8561.md: New file.
15451 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15452 Add arch13 cpu model.
15453 * config/s390/s390-opts.h (enum processor_type): Likewise.
15454 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
15455 (s390_get_unit_mask): Likewise.
15456 (s390_is_fpd): Likewise.
15457 (s390_is_fxd): Likewise.
15458 * config/s390/s390.h (s390_tune_attr): Likewise.
15459 * config/s390/s390.md: Include arch13 pipeline description.
15460 * config/s390/s390.opt: Add arch13.
15462 2018-04-10 Steve Ellcey <sellcey@marvell.com>
15464 PR rtl-optimization/87763
15465 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
15467 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
15469 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
15471 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
15472 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
15473 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
15474 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
15476 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
15478 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
15479 "Although" in -fipa-icf documentation.
15481 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
15482 of using multiple -g options.
15484 2019-04-10 Martin Liska <mliska@suse.cz>
15486 PR gcov-profile/89959
15487 * doc/gcov.texi: Make documentation of -x option
15490 2019-04-10 Richard Biener <rguenther@suse.de>
15492 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
15494 (DR_GROUP_SAME_DR_STMT): Remove.
15495 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
15496 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
15497 replace with assert.
15498 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
15499 (vect_record_grouped_load_vectors): Remove unreachable code.
15501 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
15504 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
15505 obsolete reference to N.
15507 2019-04-10 Jakub Jelinek <jakub@redhat.com>
15509 PR middle-end/90025
15510 * expr.c (store_expr): Set properly size on the MEM passed to
15514 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
15515 with strlen in between hostsz-3 and hostsz-1 inclusive when no
15516 translation is needed, and when translation is needed, only append
15517 ... if the string length is hostsz or more bytes long. Avoid using
15520 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
15523 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
15524 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
15526 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
15527 differences directly.
15528 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
15530 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15532 PR translation/90011
15533 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15535 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
15537 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15538 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
15539 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
15540 trailing space from -gsplit-dwarf diagnostics.
15542 PR tree-optimization/89998
15543 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
15544 instead of integer_type_node if possible, don't add ranges if return
15545 type is not compatible with int.
15546 * gimple-fold.c (gimple_fold_builtin_sprintf,
15547 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
15550 2019-04-09 Martin Liska <mliska@suse.cz>
15552 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
15553 * doc/install.texi: Document the new config.
15555 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
15557 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
15558 use gimple_expr_type for load and store calls. Skip over the
15559 condition argument in a conditional internal function.
15560 Protect use of TREE_INT_CST_LOW.
15562 2019-04-09 Jakub Jelinek <jakub@redhat.com>
15565 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
15566 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
15567 trailing period from it too.
15569 2019-04-08 wu yuan <wuyuan5@huawei.com>
15571 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
15572 * config/aarch64/aarch64.md : Add "tsv110.md"
15573 * config/aarch64/tsv110.md: New file.
15575 2019-04-08 Richard Biener <rguenther@suse.de>
15577 PR tree-optimization/90006
15578 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15581 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
15584 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
15586 (fma_root_node): Likewise.
15587 (func_fma_steering): Likewise.
15589 2019-04-08 Jakub Jelinek <jakub@redhat.com>
15591 PR rtl-optimization/89865
15592 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
15594 PR rtl-optimization/89865
15595 * config/i386/i386.md
15596 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
15597 numbers not to clash with the additional operands[4].
15598 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
15599 with extra register copy in the middle.
15601 2019-04-08 Martin Liska <mliska@suse.cz>
15603 PR gcov-profile/89961
15604 * doc/gcov.texi: Document data_file.
15605 * gcov.c (generate_results): Add data_info into JSON output.
15607 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
15609 PR tree-optimization/89725
15610 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
15611 loop's chrec as invariant symbol.
15612 * tree-chrec.h (chrec_contains_symbols): New parameter.
15613 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
15614 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
15615 function of loops not in DDR's loop_nest.
15616 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
15618 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
15621 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
15624 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
15627 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15628 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
15630 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
15632 * sched-deps.c (sched_macro_fuse_insns): Check return value of
15633 targetm.fixed_condition_code_regs.
15635 2019-04-05 Richard Biener <rguenther@suse.de>
15639 * tree-cfgcleanup.c (remove_forwarder_block): Always move
15640 debug bind stmts but reset them if they are not valid at the
15643 2019-04-05 Martin Liska <mliska@suse.cz>
15645 PR translation/89936
15646 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
15647 order to wrap keywords or arguments.
15648 * collect2.c (main): Likewise.
15649 (scan_prog_file): Likewise.
15650 (scan_libraries): Likewise.
15651 * common/config/riscv/riscv-common.c
15652 (riscv_subset_list::parsing_subset_version): Likewise.
15653 (riscv_subset_list::parse_std_ext): Likewise.
15654 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15656 * config/arm/arm.c (arm_option_override): Likewise.
15657 * config/cris/cris.c (cris_print_operand): Likewise.
15658 * config/darwin-c.c (darwin_pragma_options): Likewise.
15659 (darwin_pragma_unused): Likewise.
15660 (darwin_pragma_ms_struct): Likewise.
15661 * config/ft32/ft32.c (ft32_print_operand): Likewise.
15662 * config/i386/i386.c (print_reg): Likewise.
15663 (ix86_print_operand): Likewise.
15664 * config/i386/xm-djgpp.h: Likewise.
15665 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
15666 * config/m32c/m32c.c (m32c_option_override): Likewise.
15667 * config/msp430/msp430.c (msp430_option_override): Likewise.
15668 * config/nds32/nds32.c (nds32_option_override): Likewise.
15669 * config/nvptx/mkoffload.c (main): Likewise.
15670 * config/rx/rx.c (rx_print_operand): Likewise.
15671 (valid_psw_flag): Likewise.
15672 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
15673 (vms_pragma_nomember_alignment): Likewise.
15674 (vms_pragma_extern_model): Likewise.
15675 * lto-wrapper.c (compile_offload_image): Likewise.
15676 * omp-offload.c (oacc_parse_default_dims): Likewise.
15677 * symtab.c (symtab_node::verify_base): Likewise.
15678 * tlink.c (recompile_files): Likewise.
15679 (start_tweaking): Likewise.
15680 * tree-profile.c (parse_profile_filter): Likewise.
15682 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
15684 PR tree-optimization/89956
15685 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
15686 multiple negates of the same value.
15688 2019-04-04 Martin Sebor <msebor@redhat.com>
15690 PR middle-end/89957
15691 PR middle-end/89911
15692 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
15693 have the same precision since the function crashes otherwise.
15694 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
15695 has non-zero arguments.
15697 2019-04-04 Martin Sebor <msebor@redhat.com>
15699 PR middle-end/89934
15700 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
15701 out if the number of arguments is less than expected.
15703 2019-04-04 Jeff Law <law@redhat.com>
15705 PR rtl-optimization/89399
15706 * ree.c (combine_set_extension): Use single_set rather than
15707 digging into PATTERN for items on the candidate list.
15708 (combine_reaching_defs): Likewise.
15710 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
15712 PR rtl-optimization/46590
15713 * loop-invariant.c (find_defs): Move df_remove_problem and
15714 df_process_deferred_rescans to move_invariants.
15715 Move df_live_add_problem and df_live_set_all_dirty calls
15716 to move_invariants.
15717 (move_invariants): Likewise.
15718 (move_loop_invariants): Likewise, making the df_live calls
15719 conditional on -O. Remove the problem again if we added it
15722 2019-04-03 qing zhao <qing.zhao@oracle.com>
15724 PR tree-optimization/89730
15725 * ipa-inline.c (can_inline_edge_p): Delete the checking for
15726 -flive-patching=inline-only-static.
15727 (can_inline_edge_by_limits_p): Add the checking for
15728 -flive-patching=inline-only-static and grant always_inline
15729 even when -flive-patching=inline-only-static is specified.
15731 2019-04-03 Jeff Law <law@redhat.com>
15733 PR rtl-optimization/81025
15734 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
15736 2019-04-03 Richard Biener <rguenther@suse.de>
15738 PR tree-optimization/84101
15739 * tree-vect-stmts.c: Include explow.h for hard_function_value,
15740 regs.h for hard_regno_nregs.
15741 (cfun_returns): New helper.
15742 (vect_model_store_cost): When vectorizing a store to a decl
15743 we return and the function ABI returns in a multi-reg location
15744 account for the possible spilling that will happen.
15746 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15748 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15749 displacement addresses for vector mode operands.
15751 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
15753 * config/arc/arc.c (GMASK_LEN): Define.
15754 (arc_restore_callee_saves): Restore first blink when
15757 2019-04-03 Sudakshina Das <sudi.das@arm.com>
15759 * doc/extend.texi: Add deprecated comment on sign-return-address
15760 function attribute and add mbranch-protection.
15761 * doc/invoke.texi: Add bti to the options for mbranch-protection.
15763 2019-04-03 Richard Biener <rguenther@suse.de>
15766 * lto-wrapper.c (run_gcc): Avoid implicit rules making
15767 the all target phony.
15769 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
15773 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
15774 Return false for variable DImode shifts.
15775 (dimode_scalar_chain::compute_convert_gain): Do not handle
15776 register count operand in variable DImode shifts.
15777 (dimode_scalar_chain::make_vector_copies): Remove support to copy
15778 count argument of a variable shift instruction to a vector register.
15779 (dimode_scalar_chain::convert_reg): Remove support to convert
15780 count argument of a variable shift instruction.
15782 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15784 PR rtl-optimization/84206
15785 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
15786 iterating over loop headers.
15788 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15790 PR rtl-optimization/85876
15791 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
15792 beyond the original fence.
15794 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
15796 * config.gcc: Mark spu* targets as deprecated/obsolete.
15798 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15800 * config/s390/s390-builtin-types.def: New builtin function type
15801 definitions. Remove unused types.
15802 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
15803 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
15804 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
15805 overloaded builtins.
15806 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
15807 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
15808 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
15809 (vec_double, vec_signed, vec_unsigned): Define to use the new
15810 overloaded builtins.
15811 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
15814 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15816 * config/s390/s390-builtin-types.def: New builtin function type
15818 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
15819 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
15820 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
15821 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15822 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15823 constant definitions.
15824 * config/s390/vecintrin.h (vec_search_string_cc)
15825 (vec_search_string_until_zero_cc): New builtin name definitions.
15826 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15828 ("vec_vstrs<mode>"): New insn definition.
15830 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15832 * config/s390/s390-builtin-types.def: Add new builtin function
15834 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15835 New overloaded builtins.
15836 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15838 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15839 (UNSPEC_VEC_SLDBYTE): ... this.
15840 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15841 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15843 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15844 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15845 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15847 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15849 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15850 New insn definition.
15851 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15852 * config/s390/vector.md (V_HW_HSD): ... here.
15854 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15856 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15857 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15858 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15859 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15860 New insn definitions.
15862 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15864 * config/s390/s390-builtin-types.def: Add new builtin function type.
15865 * config/s390/s390-builtins.def: Add overloaded builtin
15866 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15867 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15868 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15869 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15870 ("eltswap<mode>"): New expander.
15871 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15874 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15876 * config/s390/s390-builtin-types.def: Add new builtin function types.
15877 * config/s390/s390-builtins.def: Add overloaded builtin
15878 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15880 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15881 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15882 ("bswap<mode>"): New expander.
15883 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15885 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15887 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15888 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15889 vector builtin version number in __VEC__.
15891 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15893 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15895 (SFSI): New mode attribute.
15896 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15897 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15899 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15900 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15901 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15902 ("floatsi<mode>2"): Add wcefb instruction.
15904 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15906 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15907 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15909 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15910 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15911 support 32 bit fp-int conversions. Rename to ...
15912 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15913 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15914 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15915 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15918 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15920 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15921 if-then-else constructs if we can use the select instruction.
15922 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15924 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15926 * config/s390/s390.md ("*popcountdi_arch13_cc")
15927 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15929 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15930 Append _z196 to make it ...
15931 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15932 ("popcounthi2_z196"): ... this.
15933 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15934 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15936 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15938 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15939 certain compares for arch13 in order to make use of the condition
15940 code result produced by the new instructions.
15941 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15942 nxrk, and nxgrk instruction patterns.
15943 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15944 (inv_no): Add new code iterator together with some attributes.
15945 ("*andc_split_<mode>"): Disable splitter for arch13.
15946 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15947 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15948 ("*<ANDOR:bitops_name>c<GPR:mode>")
15949 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15950 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15951 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15952 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15954 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15956 * common/config/s390/s390-common.c (processor_flags_table): New
15958 * config.gcc: Support arch13 with the --with-arch= configure flag.
15959 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15960 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15961 * config/s390/s390.c (s390_get_sched_attrmask)
15962 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15963 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15964 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15965 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15966 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15968 * config/s390/s390.opt: Support arch13 as processor type in
15969 command line options.
15971 2019-04-02 Martin Liska <mliska@suse.cz>
15973 PR translation/89912
15974 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15975 Fix param description of graphite-max-arrays-per-scop.
15977 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15979 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15980 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15981 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15983 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15985 PR rtl-optimization/85412
15986 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15987 sel_sched_region_1, not after.
15989 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15991 PR rtl-optimization/86928
15992 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15993 compute_live if necessary.
15994 (sel_redirect_edge_and_branch): Likewise.
15996 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15998 PR rtl-optimization/89865
15999 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
16000 register if it is a part of small class.
16002 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
16004 PR rtl-optimization/87273
16005 * sel-sched-ir.c (merge_fences): Remove assert.
16007 2019-04-01 Richard Biener <rguenther@suse.de>
16009 PR tree-optimization/46590
16010 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
16011 (dom_walker::m_reachability): Add in place of...
16012 (dom_walker::m_skip_unreachable_blocks): ...this.
16013 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
16014 Move complex initialization ...
16015 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
16016 lazily and initialize edge flags on each invocation.
16017 (dom_walker::bb_reachable): Use m_reachability.
16019 2019-04-01 Martin Liska <mliska@suse.cz>
16022 * opt-suggestions.c (option_proposer::build_option_suggestions):
16023 Add variant without any argument in order to provide better
16026 2019-04-01 Richard Biener <rguenther@suse.de>
16029 * gimple.c: Include langhooks.h.
16030 (gimple_get_alias_set): Treat enumeral types as the underlying
16033 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16034 Eric Botcazou <ebotcazou@adacore.com>
16036 PR rtl-optimization/89862
16037 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
16038 that operates on the full registers for WORD_REGISTER_OPERATIONS
16041 2019-03-29 Jim Wilson <jimw@sifive.com>
16043 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
16044 Clear MASK_RVC and then set if C subset supported.
16046 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16049 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
16050 non-addressable complit into its initializer if it is volatile.
16052 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
16054 * opts-common.c (integral_argument): Set errno properly in one case.
16056 2019-03-29 Martin Liska <mliska@suse.cz>
16058 * doc/invoke.texi: Remove -Wchkp from documentation.
16060 2019-03-29 Martin Liska <mliska@suse.cz>
16062 * dbgcnt.c (print_limit_reach): New function.
16065 2019-03-29 Martin Liska <mliska@suse.cz>
16067 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
16068 (dbg_cnt_process_opt): Parse first tokens aas
16069 dbg_cnt_process_single_pair is also using strtok.
16071 2019-03-29 Jakub Jelinek <jakub@redhat.com>
16073 PR rtl-optimization/87485
16074 * function.c (expand_function_end): Move stack_protect_epilogue
16075 before loading of return value into hard register(s).
16077 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16079 PR middle-end/89621
16080 * tree-inline.h (struct copy_body_data): Add
16081 dont_remap_vla_if_no_change flag.
16082 * tree-inline.c (remap_type_3, remap_type_2): New functions.
16083 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
16084 and remap_type_2 returns false.
16085 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
16086 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
16087 only from where it is copied to nested contexts.
16089 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16092 * config/i386/i386.md (RMW operation with LEA peephole):
16093 Use LEAMODE mode attribute instead of SWI mode iterator for
16096 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
16099 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
16100 Also process XEXP (src, 0) of a shift insn.
16102 2019-03-28 David Malcolm <dmalcolm@redhat.com>
16104 PR middle-end/89725
16105 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
16106 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
16108 2019-03-28 Jakub Jelinek <jakub@redhat.com>
16110 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
16112 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
16113 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
16114 immediately after first one with df_analyze in between, but rather
16115 process all bbs, queueing ones that need second pass in a worklist,
16116 df_analyze, process queued debug insn changes and if second pass is
16117 needed, process bbs from worklist, df_analyze, process queued debug
16120 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
16121 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
16122 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
16124 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
16127 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
16130 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
16133 * config/i386/i386.c (ix86_function_value_1): Call the newly added
16134 function for 32-bit MS_ABI.
16135 (function_value_ms_32): New function.
16137 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
16139 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
16140 (movdi): Call gen_movdi_symbol_save_scc.
16141 (gen_movdi_symbol_save_scc): New insn and split.
16143 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
16145 PR rtl-optimization/89313
16146 * function.c (matching_constraint_num): New static function.
16147 (match_asm_constraints_1): Use it. Fixup white space and comment.
16148 Don't replace inputs with non-matching constraints which conflict
16149 with early clobber outputs.
16151 2019-03-27 Jeff Law <law@redhat.com>
16153 PR rtl-optimization/87761
16154 PR rtl-optimization/89826
16155 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
16157 (pass_cprop_hardreg::execute): Call df_analyze after adding the
16158 note problem to get REG_DEAD/REG_UNUSED notes updated.
16160 2019-03-27 Richard Biener <rguenther@suse.de>
16162 PR tree-optimization/89463
16163 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
16164 queue edges to remove.
16165 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
16166 dead stmts. Delay edge removal until PHIs are removed to
16167 make debug-stmt creation not confused by seemingly degenerate
16170 2019-03-27 Alan Modra <amodra@gmail.com>
16172 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
16174 * config/rs6000/darwin.h: Likewise.
16175 * config/rs6000/rs6000.c: Likewise.
16177 2019-03-27 Alan Modra <amodra@gmail.com>
16179 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
16180 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
16182 2019-03-26 Andrew Waterman <andrew@sifive.com>
16183 Jim Wilson <jimw@sifive.com>
16185 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
16186 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
16187 (generic_idivdi, generic_fmul_single, generic_fmul_double)
16188 (generic_fdiv, generic_fsqrt): Add check for generic tune.
16189 (generic_alu): Add auipc to type list.
16190 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
16191 (riscv_microarchitecture): Declare.
16192 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
16193 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
16195 (riscv_microarchitecture): New.
16196 (sifive_7_tune_info): New.
16197 (riscv_cpu_info_table): Add microarchitecture value for rocket and
16198 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
16200 (riscv_store_data_bypass_p): New.
16201 (riscv_option_override): Set riscv_microarchitecture from
16202 cpu->microarchitecture.
16203 * config/riscv/riscv.md: Include sifive-7.md.
16206 (auipc<mode>): Change type to auipc.
16207 (restore_stack_nonlocal): New.
16208 * config/riscv/sifive-7.md: New.
16209 * doc/invoke.texi (RISC-V Options): Update mtune docs.
16211 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
16214 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
16215 Also process XEXP (src, 0) of a shift insn.
16217 2019-03-26 Richard Biener <rguenther@suse.de>
16219 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
16220 (copy_debug_stmt): Likewise.
16221 (expand_call_inline): Likewise.
16222 (copy_bb): Avoid redundant lookup & set of gimple_block.
16223 * gimple-low.c (lower_gimple_return): Likewise.
16224 (lower_builtin_setjmp): Likewise.
16226 2019-03-26 Jakub Jelinek <jakub@redhat.com>
16228 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
16229 is constant 0, turn into static const data member initialized to false.
16230 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
16231 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
16233 2019-03-26 Jason Merrill <jason@redhat.com>
16234 Jakub Jelinek <jakub@redhat.com>
16236 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
16238 (mem_alloc_description::release_object_overhead): Fix comment typos.
16239 * hash-table.h (hash_table::~hash_table): Call
16240 release_instance_overhead only if m_entries is non-NULL, otherwise
16241 call unregister_descriptor.
16243 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
16245 PR tree-optimization/81740
16246 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16247 In case of outer loop vectorization, check for backward dependence
16248 at the inner loop if outer loop dependence is reversed.
16250 2019-03-26 Alan Modra <amodra@gmail.com>
16252 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
16253 rs6000_vector_mem init. Correct wI and wJ comment.
16255 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
16257 PR rtl-optimization/88347
16258 PR rtl-optimization/88423
16259 * sched-deps.c (sched_analyze_insn): Take into account that for
16260 tablejumps the barrier appears after a label and a jump_table_data.
16262 2019-03-25 Martin Sebor <msebor@redhat.com>
16265 * c-common.c (check_user_alignment): Rename local. Correct maximum
16266 alignment in diagnostic. Avoid assuming argument fits in SHWI,
16267 convert it to UHWI when it fits.
16269 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
16272 * dwarf2out.c (premark_used_variables): New function.
16273 (prune_unused_types_walk): Do not mark not premarked external
16275 (prune_unused_types): Call premark_used_variables.
16277 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
16279 PR rtl-optimization/89676
16280 * lra-constraints.c (curr_insn_transform): Do match reload for
16281 early clobbers when the match was successful only for different
16284 2019-03-25 Martin Sebor <msebor@redhat.com>
16286 * doc/extend.texi (Common Type Attributes): Document vector_size.
16287 (Common Variable Attributes): Mention size constraint. Correct
16289 (Vector Extensions): Use @dfn when defining bas type. Clarify
16290 base type and size constraints.
16292 2019-03-25 Richard Biener <rguenther@suse.de>
16294 PR tree-optimization/89789
16295 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
16296 changes from non-undefined back to undefined.
16298 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
16300 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
16301 heap string and a gc string, but since this variable is unknown to
16302 ggc the gc string might get reused and corrupted. Fixed by always
16303 using a heap string.
16305 2019-03-25 Richard Biener <rguenther@suse.de>
16307 PR tree-optimization/89779
16308 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
16309 to remove IV defs, delay actual removal.
16310 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
16311 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
16312 very end, properly also reset loop control IV information.
16314 2019-03-25 Richard Biener <rguenther@suse.de>
16316 PR tree-optimization/89802
16317 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
16318 move EH data to folded stmt.
16320 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16322 * config/s390/s390-builtin-types.def: Remove few unused types and
16323 fix sort order for others.
16325 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
16327 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
16328 expected and found types with -mdebug during builtin matching.
16330 2019-03-25 Richard Biener <rguenther@suse.de>
16332 PR middle-end/89790
16333 * fold-const.c (operand_equal_p): Revert last change with
16336 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
16338 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
16339 notes for the result of the __tls_get_addr calls.
16340 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
16342 2019-03-24 Jeff Law <law@redhat.com>
16344 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
16346 PR rtl-optimization/87761
16347 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
16348 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
16350 (pass_cprop_hardreg::execute): Add df note problem and defer insn
16351 rescans. Reprocess blocks as needed, calling df_analyze before
16352 reprocessing. Always call df_analyze before fixing up debug bind
16355 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
16357 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
16360 2019-03-22 Andrew Pinski <apinski@marvell.com>
16362 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
16363 attrribute for uxtw.
16365 2019-03-26 Jeff Law <law@redhat.com>
16367 PR rtl-optimization/87761
16368 * config/mips/mips-protos.h (mips_split_move): Add new argument.
16369 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
16370 (mips_split_move): Accept new INSN argument. Try to forward SRC
16371 into the next instruction.
16372 (mips_split_move_insn): Pass INSN through to mips_split_move.
16374 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
16376 PR rtl-optimization/89676
16377 * lra-constraints.c (curr_insn_transform): Do match reload for
16378 early clobbers even if the match was successful.
16380 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16383 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
16385 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
16387 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
16389 2019-03-22 Jakub Jelinek <jakub@redhat.com>
16391 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
16392 <avx512>_fmsub_<mode>_mask3<round_name>,
16393 <avx512>_fnmadd_<mode>_mask3<round_name>,
16394 <avx512>_fnmsub_<mode>_mask3<round_name>,
16395 avx512f_vmfmadd_<mode>_mask3<round_name>,
16396 avx512f_vmfmsub_<mode>_mask3<round_name>,
16397 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
16398 instead of register_operand and %v instead of v for match_operand 1.
16399 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
16400 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
16401 <round_nimm_predicate> instead of register_operand and %v instead of v
16402 for match_operand 1.
16404 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
16405 <avx512>_fmadd_<mode>_mask3<round_name>,
16406 <avx512>_fmsub_<mode>_mask<round_name>,
16407 <avx512>_fmsub_<mode>_mask3<round_name>,
16408 <avx512>_fnmadd_<mode>_mask<round_name>,
16409 <avx512>_fnmadd_<mode>_mask3<round_name>,
16410 <avx512>_fnmsub_<mode>_mask<round_name>,
16411 <avx512>_fnmsub_<mode>_mask3<round_name>,
16412 <avx512>_fmaddsub_<mode>_mask<round_name>,
16413 <avx512>_fmaddsub_<mode>_mask3<round_name>,
16414 <avx512>_fmsubadd_<mode>_mask<round_name>,
16415 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
16416 <round_nimm_predicate> instead of nonimmediate_operand.
16417 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
16418 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
16419 Use register_operand instead of <round_nimm_predicate> for the
16420 operand that needs to match output.
16421 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
16422 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
16423 Likewise. Formatting fixes.
16426 * config/i386/i386.c (enum ix86_builtins): Remove
16427 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
16428 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
16429 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
16430 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
16431 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
16432 __builtin_ia32_vfmsubss3_mask3): New builtins.
16433 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
16434 avx512f_vmfmadd_<mode>_mask3<round_name>,
16435 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
16436 *avx512f_vmfmsub_<mode>_mask<round_name>,
16437 avx512f_vmfmsub_<mode>_mask3<round_name>,
16438 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
16439 *avx512f_vmfnmadd_<mode>_mask<round_name>,
16440 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
16441 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
16442 *avx512f_vmfnmsub_<mode>_mask<round_name>,
16443 avx512f_vmfnmsub_<mode>_mask3<round_name>,
16444 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
16445 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
16446 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
16447 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
16448 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
16449 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
16450 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
16451 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
16452 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
16453 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
16454 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
16455 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
16456 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
16457 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
16458 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
16459 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
16460 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
16461 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
16462 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
16463 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
16464 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
16465 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
16467 2019-03-21 Martin Sebor <msebor@redhat.com>
16469 PR tree-optimization/89350
16470 * builtins.c (compute_objsize): Also ignore offsets whose upper
16472 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
16473 (builtin_memref::builtin_memref): Initialize new member.
16474 Allow EXPR to be null.
16475 (builtin_memref::extend_offset_range): Replace local with a member.
16476 Avoid assuming pointer offsets are unsigned.
16477 (builtin_memref::set_base_and_offset): Determine base object
16478 before computing offset range.
16479 (builtin_access::builtin_access): Handle memset.
16480 (builtin_access::generic_overlap): Replace local with a member.
16481 (builtin_access::strcat_overlap): Same.
16482 (builtin_access::overlap): Same.
16483 (maybe_diag_overlap): Same.
16484 (maybe_diag_access_bounds): Same.
16485 (wrestrict_dom_walker::check_call): Handle memset.
16486 (check_bounds_or_overlap): Same.
16488 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
16489 Jakub Jelinek <jakub@redhat.com>
16492 * tree.c (fld_type_variant, fld_incomplete_type_of,
16493 fld_process_array_type): Call fld->pset.add and don't call
16494 add_tree_to_fld_list if it returns true.
16495 (free_lang_data_in_type): Similarly with self-recursive call. Purge
16496 non-marked types from TYPE_NEXT_VARIANT list.
16497 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
16499 2019-03-21 Jakub Jelinek <jakub@redhat.com>
16501 * hash-table.h (hash_table): Add Lazy template parameter defaulted
16502 to false, if true, don't alloc_entries during construction, but defer
16503 it to the first method that needs m_entries allocated.
16504 (hash_table::hash_table, hash_table::~hash_table,
16505 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
16506 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
16507 hash_table::clear_slot, hash_table::traverse_noresize,
16508 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
16509 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
16511 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
16512 NO_INSERT instead of find_with_hash.
16513 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
16514 hash_set::m_table): Add Lazy to template params of hash_table.
16515 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
16516 * attribs.c (test_attribute_exclusions): Likewise.
16517 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
16518 hash_set. Add tests for hash_set with Lazy = true.
16520 2019-03-21 Richard Biener <rguenther@suse.de>
16522 PR tree-optimization/89779
16523 * tree.c (tree_nop_conversion): Consolidate and fix defensive
16524 checks with respect to released SSA names now having error_mark_node
16526 * fold-const.c (operand_equal_p): Likewise.
16528 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
16531 * config/s390/s390.c (global_not_special_regno_p): Move to make it
16533 (s390_optimize_register_info): Use global_not_special_regno_p to
16534 check for global regs.
16536 2019-03-20 Jakub Jelinek <jakub@redhat.com>
16539 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
16540 update this_alternative nor this_alternative_set.
16542 2019-03-19 Jim Wilson <jimw@sifive.com>
16545 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
16546 align, size, offset. Use them to handle a BLKmode reference. Update
16548 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
16550 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16552 PR rtl-optimization/89768
16553 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
16554 instead of GEN_INT.
16555 (unroll_loop_runtime_iterations): Likewise.
16557 2019-03-19 Martin Sebor <msebor@redhat.com>
16559 PR tree-optimization/89644
16560 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
16561 rather than endptr as an indicator of nul-termination.
16563 PR tree-optimization/89644
16564 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
16565 arrays in determining sequence sizes in strncpy and stpncpy.
16567 2019-03-19 Martin Liska <mliska@suse.cz>
16569 PR middle-end/89737
16570 * predict.c (combine_predictions_for_bb): Empty likely_edges and
16571 unlikely_edges if there's an edge that belongs to both these sets.
16573 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
16576 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
16577 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
16578 go via a stack temporary.
16580 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16583 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
16584 instead of gen_rtx_SUBREG.
16585 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
16587 2019-03-19 Richard Biener <rguenther@suse.de>
16590 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
16592 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
16596 * tree.c (free_lang_data_in_decl): Do not free context of C++
16599 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16602 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
16603 subs for the first alternative except when operands[3] is 1.
16606 * gimplify.c (gimplify_asm_expr): For output argument with
16607 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
16610 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
16612 PR rtl-optimization/89753
16613 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16614 explicit unrolling factor even more robust.
16616 2019-03-19 Jakub Jelinek <jakub@redhat.com>
16619 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
16620 compensation use x2 += 1 instead of x2 -= -1 and when honoring
16621 signed zeros, do another copysign after the compensation.
16623 2019-03-18 Martin Sebor <msebor@redhat.com>
16625 PR tree-optimization/89720
16626 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
16627 more conservatively, the same as anti-range.
16629 2019-03-18 Richard Biener <rguenther@suse.de>
16631 PR middle-end/88945
16632 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
16633 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
16634 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
16635 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
16637 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
16639 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
16640 Extend queue to 1024 entries.
16641 Add "consumed" field.
16642 (gomp_print_output): Remove print_index parameter.
16643 Add final parameter.
16644 Change limit to unsigned.
16645 Use consumed field to implement circular buffer.
16646 Detect interrupted print in final pass.
16647 Flush output at the end.
16648 (run): Update gomp_print_output usage.
16649 (main): Initialize kernargs->output_data.consumed.
16651 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
16653 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
16654 calculation of the minimum number of scalar iterations for
16655 fully-predicated loops.
16657 2019-03-18 Martin Jambor <mjambor@suse.cz>
16659 PR tree-optimization/89546
16660 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
16661 any propagation to its children took place.
16663 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
16666 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
16667 parameter, and make use of it.
16668 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
16670 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16672 * config/arc/arc.opt (mcode-density-frame): Get the inital value
16673 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
16674 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16675 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
16676 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
16677 match what the ops is doing.
16678 (push_multi_fp_blink): Likewise.
16679 * config/arc/arc.c (arc_override_options): Enable enter/leave when
16680 compiling for size and elf target.
16681 (arc_save_callee_enter): Adjust note to match what enter/leave
16684 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16686 * config/arc/arc.md (tst_movb): Fix constraint.
16688 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16690 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
16692 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16694 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
16695 * config/arc/arc.c (arc_conditional_register_usage): Remove all
16696 reg_alloc_order references.
16697 (size_alloc_order): Define.
16698 (arc_adjust_reg_alloc_order): New function.
16699 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
16701 (ADJUST_REG_ALLOC_ORDER): Define.
16702 (HONOR_REG_ALLOC_ORDER): Likewise.
16704 2019-03-18 Richard Biener <rguenther@suse.de>
16707 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
16708 loads and stores a bit more.
16710 2019-03-18 Richard Biener <rguenther@suse.de>
16713 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
16714 load pessimization to stores as well.
16716 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
16718 PR middle-end/86979
16719 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
16720 successor, use NULL as its av set.
16722 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
16724 PR rtl-optimization/89721
16725 * lra-constraints (invariant_p): Return false if side_effects_p holds.
16727 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
16730 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16731 When handling vec_extract, use modular arithmetic to allow
16732 constant selectors greater than vector length.
16733 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
16734 V1TImode vectors to have constant selector values greater than 0.
16735 Use modular arithmetic to compute vector index.
16736 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16737 index for in-memory vectors. Correct code generation for
16738 in-register vectors.
16739 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
16742 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16746 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16749 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16752 * tree.c (inchash::add_expr): Strip any location wrappers.
16753 * fold-const.c (operand_equal_p): Move stripping of location wrapper
16754 after hash verification.
16757 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
16758 SIGN_EXTEND and ZERO_EXTEND.
16760 2019-03-14 Jason Merrill <jason@redhat.com>
16761 Jakub Jelinek <jakub@redhat.com>
16763 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
16764 than if is_empty (*slot).
16765 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
16766 existing elt and for elt removal.
16767 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
16768 of already removed elt.
16770 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
16773 * config/i386/i386.c (remove_partial_avx_dependency): Handle
16774 REG_EH_REGION note.
16776 2019-03-14 Martin Liska <mliska@suse.cz>
16779 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
16781 2019-03-14 Richard Biener <rguenther@suse.de>
16784 * config/i386/i386.c (make_resolver_func): Properly set
16785 DECL_CONTEXT on the RESULT_DECL.
16786 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
16788 2019-03-14 Richard Biener <rguenther@suse.de>
16790 * gimple-pretty-print.c: Include cfgloop.h.
16791 (dump_gimple_phi): Adjust.
16792 (dump_gimple_bb_header): Dump loop header for GIMPLE.
16793 (pp_cfg_jump): Adjust.
16794 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
16795 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
16796 (lower_phi_internal_fn): Remove.
16797 (verify_gimple_call): Remove IFN_PHI special-casing.
16798 (dump_function_to_file): Dump IL state.
16799 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
16800 done to deal with PHI nodes being present in non-SSA state.
16802 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16805 * multiple_target.c (create_dispatcher_calls): Change
16806 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
16807 In the node->iterate_referring loop, push *ref rather than ref, call
16808 ref->remove_reference () and always pass 0 to iterate_referring.
16810 PR rtl-optimization/89679
16811 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
16812 would contain a paradoxical SUBREG.
16814 2019-03-14 Richard Biener <rguenther@suse.de>
16816 PR tree-optimization/89710
16817 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
16820 2019-03-14 Martin Liska <mliska@suse.cz>
16822 * coverage.c (coverage_begin_function): Stream also
16824 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16825 documentation about function declaration location.
16826 * gcov-dump.c (tag_function): Print whole range
16827 of function declaration.
16828 * gcov.c (struct function_info): Add end_column field.
16829 (function_info::function_info): Initialize it.
16830 (output_json_intermediate_file): Output {start,end}_column
16832 (read_graph_file): Read end_column.
16834 2019-03-14 Richard Biener <rguenther@suse.de>
16836 PR middle-end/89698
16837 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16838 that the access types are similar.
16840 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16842 PR tree-optimization/89703
16843 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16844 aren't compatible also with builtin_decl_explicit. Check pure
16845 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16846 and BUILT_IN_STPNCPY{,_CHK}.
16848 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16851 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16852 addr32 prefix to VSIB address for X32.
16853 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16855 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16856 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16857 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16858 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16859 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16860 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16861 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16862 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16863 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16864 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16865 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16866 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16867 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16868 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16869 (*avx512f_scatterdi<mode>): Likewise.
16871 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16874 * lra-constraints.c (inherit_in_ebb): Update
16875 potential_reload_hard_regs along with live_hard_regs.
16877 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16880 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16882 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16884 2019-03-13 Martin Sebor <msebor@redhat.com>
16886 PR tree-optimization/89662
16887 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16890 2019-03-13 Richard Biener <rguenther@suse.de>
16892 PR middle-end/89677
16893 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16894 throw FP expressions at tree-affine.
16896 2019-03-14 Richard Biener <rguenther@suse.de>
16898 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16899 dump negative integer constants using _Literal (type) -num.
16901 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16903 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16904 nonlocal_value member.
16906 PR middle-end/88588
16907 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16908 (ipa_simd_modify_function_body): Handle PHIs.
16910 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16912 * config/s390/s390.c (s390_option_override_internal): Use more
16913 aggressive inlining parameters.
16915 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16917 * config/s390/3906.md: New file.
16918 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16919 (LONGRUNNING_THRESHOLD): Remove.
16920 (MAX_SCHED_MIX_SCORE): Decrease.
16921 (MAX_SCHED_MIX_DISTANCE): Decrease.
16922 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16923 (struct s390_sched_state): New struct to hold scheduling state.
16924 (S390_SCHED_STATE_NORMAL): Remove.
16925 (S390_SCHED_STATE_CRACKED): Remove.
16926 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16927 (s390_get_sched_attrmask): Use new attribute.
16928 (s390_get_unit_mask): Use new units.
16929 (s390_is_fpd): New function.
16930 (s390_is_fxd): New function.
16931 (s390_is_longrunning): New function.
16932 (s390_sched_score): Use new functions.
16933 (s390_sched_reorder): Likewise.
16934 (s390_sched_variable_issue): Rework and use new functions.
16935 (s390_sched_init): Use new functions.
16936 * config/s390/s390.h (s390_tune_attr): Add z14.
16937 * config/s390/s390.md: Add z14.
16939 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16941 * config/s390/2964.md: Update pipeline description.
16942 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16943 (LONGRUNNING_THRESHOLD): Remove.
16944 (LATENCY_FACTOR): Remove.
16945 (s390_get_unit_mask): Add unit.
16946 (s390_sched_score): Use fxd/fpd.
16947 (s390_sched_variable_issue): Use fxd/fpd.
16949 2019-03-12 Martin Liska <mliska@suse.cz>
16951 * config/i386/i386.c: Reword an error message.
16953 2019-03-12 Martin Jambor <mjambor@suse.cz>
16955 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16956 terminate with newline.
16958 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16961 * config/s390/s390.md (tabort): Use %wd instead of
16962 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16963 letters and periods.
16964 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16965 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16968 PR middle-end/89663
16969 * builtins.c (expand_builtin_int_roundingfn,
16970 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16971 gcc_unreachable if validate_arglist fails.
16973 2019-03-12 Richard Biener <rguenther@suse.de>
16975 PR tree-optimization/89664
16976 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16977 free the occurance tree after the early out.
16979 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16981 PR middle-end/89655
16983 * vr-values.c (vr_values::update_value_range): If
16984 old_vr->varying_p (), don't update it, make new_vr also VARYING
16987 2019-03-11 Martin Liska <mliska@suse.cz>
16989 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16990 Fix double string quoting.
16992 2019-03-11 Martin Liska <mliska@suse.cz>
16994 * collect-utils.c (collect_wait): Wrap apostrophes
16995 in gcc internal format with %'.
16996 * collect2.c (main): Likewise.
16997 (scan_prog_file): Likewise.
16998 (scan_libraries): Likewise.
16999 * config/i386/i386.c (ix86_expand_call): Likewise.
17000 (ix86_handle_interrupt_attribute): Likewise.
17001 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17002 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17003 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
17004 * lto-wrapper.c (find_crtoffloadtable): Likewise.
17005 * symtab.c (symtab_node::verify_base): Likewise.
17006 * tree-cfg.c (verify_gimple_label): Likewise.
17007 * tree.c (verify_type_variant): Likewise.
17009 2019-03-11 Martin Liska <mliska@suse.cz>
17011 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
17012 in a string format message and fix GNU coding style.
17013 (expand_builtin_set_thread_pointer): Likewise.
17014 * common/config/aarch64/aarch64-common.c
17015 (aarch64_rewrite_selected_cpu): Likewise.
17016 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
17017 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
17018 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
17019 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
17020 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
17021 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
17022 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
17023 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
17024 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
17025 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
17027 * common/config/riscv/riscv-common.c
17028 (riscv_subset_list::parsing_subset_version): Likewise.
17029 (riscv_subset_list::parse_std_ext): Likewise.
17030 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17031 (riscv_subset_list::parse): Likewise.
17032 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
17033 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
17034 (aarch64_override_options_internal): Likewise.
17035 (aarch64_validate_mcpu): Likewise.
17036 (aarch64_validate_march): Likewise.
17037 (aarch64_validate_mtune): Likewise.
17038 (aarch64_override_options): Likewise.
17039 * config/alpha/alpha.c (alpha_option_override): Likewise.
17040 * config/arc/arc.c (arc_init): Likewise.
17041 (parse_mrgf_banked_regs_option): Likewise.
17042 (arc_override_options): Likewise.
17043 (arc_expand_builtin_aligned): Likewise.
17044 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
17045 (arm_expand_builtin): Likewise.
17046 * config/arm/arm.c (arm_option_check_internal): Likewise.
17047 (arm_configure_build_target): Likewise.
17048 (arm_option_override): Likewise.
17049 (arm_options_perform_arch_sanity_checks): Likewise.
17050 (arm_handle_cmse_nonsecure_entry): Likewise.
17051 (arm_handle_cmse_nonsecure_call): Likewise.
17052 (arm_tls_referenced_p): Likewise.
17053 (thumb1_expand_prologue): Likewise.
17054 * config/avr/avr.c (avr_option_override): Likewise.
17055 * config/bfin/bfin.c (bfin_option_override): Likewise.
17056 * config/c6x/c6x.c (c6x_option_override): Likewise.
17057 * config/cr16/cr16.c (cr16_override_options): Likewise.
17058 * config/cris/cris.c (cris_option_override): Likewise.
17059 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
17060 * config/darwin-c.c (macosx_version_as_macro): Likewise.
17061 * config/darwin.c (darwin_override_options): Likewise.
17062 * config/frv/frv.c (frv_expand_builtin): Likewise.
17063 * config/h8300/h8300.c (h8300_option_override): Likewise.
17064 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
17065 (ix86_option_override_internal): Likewise.
17066 (warn_once_call_ms2sysv_xlogues): Likewise.
17067 (ix86_expand_prologue): Likewise.
17068 (split_stack_prologue_scratch_regno): Likewise.
17069 (ix86_warn_parameter_passing_abi): Likewise.
17070 * config/ia64/ia64.c (fix_range): Likewise.
17071 * config/m68k/m68k.c (m68k_option_override): Likewise.
17072 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
17073 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
17074 (mips_set_compression_mode): Likewise.
17075 * config/mmix/mmix.c (mmix_option_override): Likewise.
17076 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
17077 * config/msp430/msp430.c (msp430_option_override): Likewise.
17078 * config/nds32/nds32.c (nds32_option_override): Likewise.
17079 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
17080 (nios2_option_override): Likewise.
17081 (nios2_expand_custom_builtin): Likewise.
17082 * config/nvptx/mkoffload.c (main): Likewise.
17083 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
17084 * config/pa/pa.c (fix_range): Likewise.
17085 (pa_option_override): Likewise.
17086 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
17087 (riscv_option_override): Likewise.
17088 * config/rl78/rl78.c (rl78_option_override): Likewise.
17089 * config/rs6000/aix61.h: Likewise.
17090 * config/rs6000/aix71.h: Likewise.
17091 * config/rs6000/aix72.h: Likewise.
17092 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
17093 * config/rs6000/freebsd64.h: Likewise.
17094 * config/rs6000/linux64.h: Likewise.
17095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
17096 (rs6000_expand_zeroop_builtin): Likewise.
17097 (rs6000_expand_mtfsb_builtin): Likewise.
17098 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
17099 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
17100 (rs6000_invalid_builtin): Likewise.
17101 (rs6000_expand_split_stack_prologue): Likewise.
17102 * config/rs6000/rtems.h: Likewise.
17103 * config/rx/rx.c (valid_psw_flag): Likewise.
17104 (rx_expand_builtin): Likewise.
17105 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17106 * config/s390/s390.c (s390_expand_builtin): Likewise.
17107 (s390_function_profiler): Likewise.
17108 (s390_option_override_internal): Likewise.
17109 (s390_option_override): Likewise.
17110 * config/sh/sh.c (sh_option_override): Likewise.
17111 (sh_builtin_saveregs): Likewise.
17112 (sh_fix_range): Likewise.
17113 * config/sh/vxworks.h: Likewise.
17114 * config/sparc/sparc.c (sparc_option_override): Likewise.
17115 * config/spu/spu.c (spu_option_override): Likewise.
17116 (fix_range): Likewise.
17117 * config/visium/visium.c (visium_option_override): Likewise.
17118 (visium_handle_interrupt_attr): Likewise.
17119 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
17120 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
17121 (dbg_cnt_process_opt): Likewise.
17122 * dwarf2out.c (output_dwarf_version): Likewise.
17123 * except.c (expand_eh_return): Likewise.
17124 * gcc.c (defined): Likewise.
17125 (driver_handle_option): Likewise.
17126 (process_command): Likewise.
17127 (compare_files): Likewise.
17128 (driver::prepare_infiles): Likewise.
17129 (driver::do_spec_on_infiles): Likewise.
17130 (driver::maybe_run_linker): Likewise.
17131 * omp-offload.c (oacc_parse_default_dims): Likewise.
17132 * opts-global.c (handle_common_deferred_options): Likewise.
17133 * opts.c (parse_sanitizer_options): Likewise.
17134 (common_handle_option): Likewise.
17135 (enable_warning_as_error): Likewise.
17136 * passes.c (enable_disable_pass): Likewise.
17137 * plugin.c (parse_plugin_arg_opt): Likewise.
17138 (default_plugin_dir_name): Likewise.
17139 * targhooks.c (default_expand_builtin_saveregs): Likewise.
17140 (default_pch_valid_p): Likewise.
17141 * toplev.c (init_asm_output): Likewise.
17142 (process_options): Likewise.
17143 (toplev::run_self_tests): Likewise.
17144 * tree-cfg.c (verify_gimple_call): Likewise.
17145 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
17146 (tree_inlinable_function_p): Likewise.
17147 * var-tracking.c (vt_find_locations): Likewise.
17149 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
17151 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
17152 only on the else branch.
17154 2019-03-11 Martin Liska <mliska@suse.cz>
17156 * gcov.c (output_intermediate_json_line): Print function
17158 (output_json_intermediate_file): Add new argument.
17159 * doc/gcov.texi: Document the change.
17161 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
17163 PR rtl-optimization/89588
17164 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
17165 explicit unrolling factor more robust.
17167 2019-03-11 Richard Biener <rguenther@suse.de>
17169 PR tree-optimization/89649
17170 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
17171 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
17172 on the prolog and epilog loops.
17173 (vect_loop_versioning): Return copy of loop.
17174 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
17175 on the non-vectorized version of the loop.
17177 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
17180 * config/i386/sse.md (*vec_extractv2di_0_sse):
17181 Add (=r,x) alternative and corresponding splitter.
17183 2019-03-10 Martin Jambor <mjambor@suse.cz>
17185 PR tree-optimization/85762
17186 PR tree-optimization/87008
17187 PR tree-optimization/85459
17188 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
17189 it points to if there is a type changing MEM_REF. Adjust all callers.
17190 (build_accesses_from_assign): Disable total scalarization if
17191 contains_vce_or_bfcref_p returns true through the new parameter, for
17194 2019-03-09 Jakub Jelinek <jakub@redhat.com>
17197 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
17198 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
17201 * common.opt (fdiagnostics-show-labels,
17202 fdiagnostics-show-line-numbers, fdiagnostics-format=,
17203 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
17204 gas-locview-support, ginline-points, ginternal-reset-location-views):
17205 Terminate description text with a dot.
17206 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
17207 * config/mcore/mcore.opt (m210, m340): Likewise.
17208 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
17209 mnops=): Start description text with a capital letter.
17210 * config/arc/arc.opt (msize-level=): Likewise.
17211 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
17212 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
17213 mnewlib): Likewise.
17214 * config/ft32/ft32.opt (msim): Likewise.
17215 (mft32b, mcompress): Likewise. Terminate description text with a dot.
17216 (mnodiv, mnopm): Terminate description text with a dot.
17217 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
17219 * config/i386/i386.opt (prefer_vector_width, instrument_return):
17221 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
17224 PR rtl-optimization/89634
17225 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
17226 are modified in BB_END (e->src) instruction.
17228 2019-03-08 David Malcolm <dmalcolm@redhat.com>
17231 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
17232 messages more amenable to translation, and improve wording.
17234 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
17236 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
17237 ud- and du-chains between phases.
17239 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
17242 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
17243 instead of POLY_INT_CST.
17245 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17247 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
17250 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
17255 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
17256 (_mm_storeu_si64): Ditto.
17258 2019-03-08 Martin Liska <mliska@suse.cz>
17261 * config/i386/i386.c (ix86_option_override_internal): Disable
17262 jump tables when retpolines are used.
17264 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
17267 * ipa-split.c (execute_split_functions): Do not split
17268 'noinline' or 'section' function.
17270 2019-03-08 Jakub Jelinek <jakub@redhat.com>
17273 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
17274 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
17275 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
17278 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
17279 from diagnostics. Formatting fixes.
17282 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
17283 warn_odr diagnostics.
17286 * lra-constraints.c (process_alt_operands): Avoid one space before
17287 " at the end of line and another after " on another line in a string
17289 * attribs.c (handle_dll_attribute): Likewise.
17290 * config/avr/avr-devices.c (avr_texinfo): Likewise.
17292 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
17293 warning_at or inform messages in G_() if there is no ?:.
17295 PR tree-optimization/89550
17296 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
17297 returned true. Formatting fixes.
17298 (expand_builtin_strnlen): Formatting fixes.
17299 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
17300 if warning_at returned true.
17301 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
17303 2019-03-08 Richard Biener <rguenther@suse.de>
17305 PR middle-end/89578
17306 * cfgloop.h (struct loop): Add owned_clique field.
17307 * cfgloopmanip.c (copy_loop_info): Copy it.
17308 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
17310 * tree-inline.c (copy_loops): Remap owned_clique.
17311 * lto-streamer-in.c (input_cfg): Stream owned_clique.
17312 * lto-streamer-out.c (output_cfg): Likewise.
17314 2019-03-08 Jakub Jelinek <jakub@redhat.com>
17317 * config/darwin.c: Include intl.h.
17318 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
17319 composing the message out of two separate parts.
17321 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17324 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
17325 doesn't start with a capital letter and doesn't end with a dot.
17326 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
17327 with a capital letter.
17328 (ix86_mangle_function_version_assembler_name): Likewise.
17329 (ix86_generate_version_dispatcher_body): Likewise.
17330 (fold_builtin_cpu): Likewise.
17331 (get_builtin_code_for_version): Likewise. Remove extraneous space.
17332 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
17333 translators, wrap full type name in %qs.
17335 PR translation/79999
17336 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
17337 depend clause with source (or sink) modifier.
17338 * omp-expand.c (expand_omp_ordered_sink): Likewise.
17341 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
17342 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
17343 (avx512f_load<mode>_mask): New define_expand.
17344 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
17345 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
17346 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
17347 __builtin_ia32_movess_mask): New builtins.
17348 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
17349 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
17350 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
17351 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
17353 2019-03-07 Martin Jambor <mjambor@suse.cz>
17356 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
17357 for extern inline functions.
17359 2019-03-07 Martin Jambor <mjambor@suse.cz>
17362 * cgraph.h (cgraph_node): New inline method former_thunk_p.
17363 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
17364 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
17365 have multiple callees. At the end check if declarations match as
17366 opposed to cgraph_nodes.
17368 2019-03-07 Martin Liska <mliska@suse.cz>
17370 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
17371 which is equivalent to searching for this in clones chain.
17372 * symtab.c (symtab_node::verify_base): Similarly compare ASM
17373 names with a neighbour and special case first node in a chain.
17375 2019-01-25 Jason Merrill <jason@redhat.com>
17377 PR c++/80916 - spurious "static but not defined" warning.
17378 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
17379 for an internal symbol with DECL_EXTERNAL.
17381 2019-04-07 Richard Biener <rguenther@suse.de>
17383 PR middle-end/89618
17384 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
17385 * tree-inline.c (copy_loops): Simplify.
17387 2019-03-07 Martin Liska <mliska@suse.cz>
17389 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
17391 2019-03-07 Richard Biener <rguenther@suse.de>
17393 PR tree-optimization/89595
17394 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
17395 stmt iterator as reference, take boolean output parameter to
17396 indicate whether the stmt was removed and thus the iterator
17398 (dom_opt_dom_walker::before_dom_children): Re-iterate over
17399 stmts created by folding.
17401 2019-03-07 Jakub Jelinek <jakub@redhat.com>
17404 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
17407 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
17409 PR rtl-optimization/88845
17410 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
17412 * lra.c (remove_scratches_1): New function.
17413 (remove_scratches): Use it.
17414 (lra_emit_move): Likewise.
17416 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
17418 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
17419 unaligned_access variable.
17420 * config/arc/arc.c (arc_override_options): Set unaligned access
17421 default on for HS CPUs.
17422 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
17424 2019-03-06 Martin Liska <mliska@suse.cz>
17426 PR gcov-profile/89577
17427 * doc/gcov.texi: Prefer to use --coverage.
17428 * doc/sourcebuild.texi: Likewise.
17430 2019-03-02 Jason Merrill <jason@redhat.com>
17432 PR c++/86485 - -Wmaybe-unused with empty class ?:
17433 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
17435 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17438 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
17441 PR middle-end/89590
17442 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
17443 exactly one argument.
17445 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17446 Richard Sandiford <richard.sandiford@arm.com>
17448 PR tree-optimization/89570
17449 * match.pd (vec_cond into cond_op simplification): Don't use
17450 get_conditional_internal_fn, use as_internal_fn (cond_op).
17452 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
17455 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
17456 to decide when to split off a non-zero offset from a symbol.
17457 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
17458 in function symbols.
17460 2019-03-05 Richard Biener <rguenther@suse.de>
17462 PR tree-optimization/89594
17463 * tree-if-conv.c (pass_if_conversion::execute): Handle
17464 case where .LOOP_VECTORIZED_FUNCTION was removed.
17466 2019-03-05 Jakub Jelinek <jakub@redhat.com>
17469 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
17470 instead alloca it only when needed with the needed size.
17472 PR tree-optimization/89570
17473 * match.pd (vec_cond into cond_op simplification): Guard with
17474 vectorized_internal_fn_supported_p test and #if GIMPLE.
17476 PR tree-optimization/89566
17477 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
17478 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
17479 Punt if get_user_idx_format succeeds, but idx_format argument is
17480 not provided or doesn't have pointer type, or if idx_args is above
17481 number of provided arguments.
17483 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
17485 PR tree-optimization/89437
17486 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
17488 2019-03-04 Richard Biener <rguenther@suse.de>
17490 PR middle-end/89572
17491 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
17494 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
17496 PR tree-optimization/89487
17497 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
17498 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
17499 (distribute_loop): Don't do runtime alias check if there is non-
17500 addressable data reference.
17501 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
17502 is a register variable.
17504 2019-03-02 Jakub Jelinek <jakub@redhat.com>
17507 * config/arm/arm.md (cmpsi2_addneg): Use
17508 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
17509 If operands[2] is 0 or INT_MIN, force use of subs.
17510 (*compare_scc splitter): Use gen_int_mode.
17511 (*negscc): Likewise.
17512 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
17514 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
17515 Monk Chiang <sh.chiang04@gmail.com>
17517 * common/config/riscv/riscv-common.c: Include sstream.
17518 (riscv_subset_list::to_string): New.
17519 (riscv_arch_str): Likewise.
17520 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
17521 * config.in: Regen.
17522 * config/riscv/riscv-protos.h (riscv_arch_str): New.
17523 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
17524 (riscv_emit_attribute): New.
17525 (riscv_file_start): Emit attribute if needed.
17526 (riscv_option_override): Init riscv_emit_attribute_p.
17527 * config/riscv/riscv.opt (mriscv-attribute): New option.
17528 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
17529 * configure: Regen.
17530 * doc/install.texi: Document --with-riscv-attribute.
17531 * doc/invoke.texi: Document -mriscv-attribute.
17533 * common/config/riscv/riscv-common.c:
17534 Include config/riscv/riscv-protos.h.
17535 (INCLUDE_STRING): Defined.
17536 (RISCV_DONT_CARE_VERSION): Defined.
17537 (riscv_subset_t): Declare.
17538 (riscv_subset_t::riscv_subset_t): New.
17539 (riscv_subset_list): Declare.
17540 (riscv_subset_list::riscv_subset_list): New.
17541 (riscv_subset_list::~riscv_subset_list): Likewise.
17542 (riscv_subset_list::parsing_subset_version): Likewise.
17543 (riscv_subset_list::parse_std_ext): Likewise.
17544 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
17545 (riscv_subset_list::add): Likewise.
17546 (riscv_subset_list::lookup): Likewise.
17547 (riscv_subset_list::xlen): Likewise.
17548 (riscv_subset_list::parse): Likewise.
17549 (riscv_supported_std_ext): Likewise.
17550 (current_subset_list): Likewise.
17551 (riscv_parse_arch_string): Using riscv_subset_list::parse to
17554 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
17556 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17557 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
17558 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
17560 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
17562 PR rtl-optimization/85899
17563 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
17564 fallthru edges leading to the exit block.
17566 2019-03-01 Tamar Christina <tamar.christina@arm.com>
17569 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
17570 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
17572 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
17574 PR tree-optimization/89535
17575 * tree-vect-stmts.c (vectorizable_call): Record the vector types
17576 for each operand. Calculate the fallback choice for mask operands
17577 and pass it to vect_get_vec_def_for_operand.
17579 2019-03-01 Richard Biener <rguenther@suse.de>
17581 PR middle-end/89541
17582 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
17583 get virtual operands.
17584 (get_expr_operands): Handle CONST_DECL like other decls.
17586 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17588 PR middle-end/89503
17589 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
17590 on DECL_P and EXPR_P.
17592 2019-03-01 Richard Biener <rguenther@suse.de>
17594 PR middle-end/89497
17595 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
17596 argument, defaulted to zero.
17597 * passes.c (execute_function_todo): Pass down SSA update flags
17598 to cleanup_tree_cfg.
17599 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
17600 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
17602 (cleanup_tree_cfg): Get and pass down SSA update flags.
17604 2019-03-01 Jakub Jelinek <jakub@redhat.com>
17607 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
17608 early_lto_debug argument.
17610 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
17612 PR tree-optimization/89536
17613 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
17614 only whether bit #0 of the value is 0 instead of the entire value.
17616 2019-02-28 Marek Polacek <polacek@redhat.com>
17618 PR c++/87068 - missing diagnostic with fallthrough statement.
17619 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
17620 at the end of a seq, save its location to walk_stmt_info.
17621 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
17624 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
17627 * tree.c (find_atomic_core_type): Move ahead in file.
17628 (check_base_type): Correctly compare alignments of atomic types.
17630 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
17633 * config/i386/i386.c (get_builtin_code_for_version): Identify
17634 Westmere from PCLMUL, instead of AES.
17636 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17639 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
17640 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
17643 2019-02-28 Tamar Christina <tamar.christina@arm.com>
17646 * config/aarch64/aarch64-option-extensions.def: Document it.
17647 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
17650 2019-02-28 Jakub Jelinek <jakub@redhat.com>
17653 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
17654 builtins if they don't have a single scalar floating point argument.
17657 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
17659 PR rtl-optimization/89490
17660 * varasm.c (get_block_for_section): Bail out for mergeable sections.
17661 (default_use_anchors_for_symbol_p, output_object_block): Assert the
17662 block section is not mergeable.
17664 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17667 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
17668 old define_insn to ...
17669 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
17670 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
17671 Rename old define_insn to ...
17672 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
17673 (thumb2_casesi_internal_pic): New define_expand. Rename old
17675 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
17676 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
17677 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
17679 2019-02-27 Richard Biener <rguenther@suse.de>
17682 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
17684 2019-02-27 Richard Biener <rguenther@suse.de>
17686 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
17689 2019-02-27 Richard Biener <rguenther@suse.de>
17692 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
17693 parameter, prefix section name with .gnu.debuglto_ if true.
17694 (dwarf2out_finish): Pass false to output_comdat_type_unit.
17695 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
17697 2019-02-27 Richard Biener <rguenther@suse.de>
17700 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
17701 rather than on use_debug_types, doing what output_die does.
17702 (value_format): Likewise.
17704 2019-02-27 Martin Jambor <mjambor@suse.cz>
17705 Martin Sebor <msebor@redhat.com>
17707 * doc/invoke.texi (Warning Options): Reword description of
17708 -Wno-absolute-value.
17710 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17712 PR tree-optimization/89280
17713 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
17714 builtin_setjmp_setup_bb): New functions.
17715 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
17716 When visiting __builtin_setjmp_setup block, queue in special
17717 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
17718 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
17719 from visited after the loop if they don't have any visited successor
17722 2018-02-26 Steve Ellcey <sellcey@marvell.com>
17724 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
17726 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
17728 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17731 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
17732 with types other than sizetype/ssizetype.
17734 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17736 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
17737 (enum sparc_processor_type): ...this.
17738 (enum sparc_code_model_type): New enumeration type.
17739 (enum sparc_memory_model_type): Tweak comments.
17740 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
17742 (mcmodel): Use sparc_code_model enumeration and variable.
17743 (sparc_code_model): New enumeration.
17744 (mdebug): Add Undocumented marker.
17745 * config/sparc/sparc.h (enum cmodel): Delete.
17746 (sparc_cmodel): Likewise.
17747 (TARGET_CM_MEDLOW): Adjust to above renaming.
17748 (TARGET_CM_MEDMID): Likewise.
17749 (TARGET_CM_MEDANY): Likewise.
17750 (TARGET_CM_EMBMEDANY): Likewise.
17751 * config/sparc/sparc.c (sparc_cmodel): Delete.
17752 (sparc_option_override): Remove string/value mapping support for the
17753 code model. Move code and memory model support to after the handling
17754 of target flags. Do private machine setup last.
17755 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
17756 (sparc_legitimize_reload_address): Likewise.
17757 (sparc_output_mi_thunk): Likewise.
17758 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
17760 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17762 PR tree-optimization/89500
17763 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
17764 (handle_builtin_strlen): Remove noncst_bound variable. Always
17765 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
17766 cst if the first cst bytes starting at x are known to be non-zero,
17767 even if the string is not zero terminated. Don't try to modify
17768 *si for strnlen. Update strlen_to_stridx only for strlen or if
17769 we can prove strnlen returns the same value as strlen would.
17771 2019-02-26 Martin Liska <mliska@suse.cz>
17773 * alloc-pool.h (struct pool_usage): Remove extra
17775 * bitmap.h (struct bitmap_usage): Likewise.
17776 * ggc-common.c (struct ggc_usage): Likewise.
17777 * mem-stats.h (struct mem_usage): Likewise.
17778 (mem_alloc_description::dump): Print dash lines
17779 here and repeat header at the end of a table report.
17780 It's then more readable.
17781 * tree-phinodes.c (phinodes_print_statistics): Make
17782 horizontal alignment.
17783 * tree-ssanames.c (ssanames_print_statistics): Likewise.
17784 * vec.c (struct vec_usage): Remove extra print_dash_line.
17785 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
17787 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
17789 * doc/extend.texi (__builtin_object_size):
17790 Use @pxref instead of @xref inside parenthesis.
17791 (__builtin_has_attribute): Add missing comma after @xref.
17792 (__builtin_object_size): Ditto.
17793 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
17795 2019-02-26 Jeff Law <law@redhat.com>
17797 PR rtl-optimization/87761
17798 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
17799 detect obviously dead insns and delete them.
17801 2019-02-26 Richard Biener <rguenther@suse.de>
17803 PR tree-optimization/89505
17804 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
17805 to handle restrict pointed-to vars with multiple subvars
17808 2019-02-26 Richard Biener <rguenther@suse.de>
17810 PR tree-optimization/89489
17811 * tree-parloops.c (create_loop_fn): Copy over last_clique.
17813 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17815 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
17816 and move around comment.
17817 <BIT_AND_EXPR>: Likewise.
17818 <BIT_NOT_EXPR>: Add specific handling for boolean types.
17820 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17823 * config/i386/i386.c (remove_partial_avx_dependency): Call
17824 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17825 after changing possibly many instructions to use that pseudo. Fix up
17826 insertion of v4sf_const0 setter at the start of bb.
17828 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17831 * doc/extend.texi (Variadic Pointer Args): New section.
17833 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17834 Martin Sebor <msebor@gmail.com>
17836 * common.opt (Wattribute-alias): Likewise.
17837 * doc/invoke.texi (Option Summary): List general form of
17838 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17839 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17840 Add cross-references.
17841 (-Wattribute-alias): Rewrite and correct default. Mention
17842 considered attributes (same as for -Wmissing-attributes).
17844 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17846 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17847 (_mm_cvtpd_ps): Likewise.
17848 (_mm_cvttpd_epi32): Likewise.
17851 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17852 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17855 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17857 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17860 * common/config/aarch64/aarch64-common.c
17861 (struct aarch64_option_extension): Add is_synthetic.
17862 (all_extensions): Use it.
17863 (TARGET_OPTION_INIT_STRUCT): Define hook.
17864 (struct gcc_targetm_common): Moved to end.
17865 (all_extensions_by_on): New.
17866 (opt_ext_cmp, typedef opt_ext): New.
17867 (aarch64_option_init_struct): New.
17868 (aarch64_contains_opt): New.
17869 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17870 * config/aarch64/aarch64-option-extensions.def
17871 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17872 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17873 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17874 Set is_synthetic to false.
17875 (crypto): Set is_synthetic to true.
17876 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17879 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17881 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17882 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17883 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17884 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17885 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17886 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17887 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17888 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17890 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17891 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17892 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17893 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17894 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17895 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17896 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17897 vfmlsl_laneq_high_f16): ... To this.
17898 * config/arm/neon.md: Update comments.
17900 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17902 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17903 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17904 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17905 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17906 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17907 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17908 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17909 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17911 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17912 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17913 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17914 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17915 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17916 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17917 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17918 vfmlslq_laneq_high_f16): ... To this.
17920 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17922 PR rtl-optimization/86096
17923 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17924 comparing mw_order values.
17926 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17929 * config/arm/arm.md (*subsi3_carryin_const): Use
17930 arm_neg_immediate_operand predicate instead of
17931 arm_not_immediate_operand, "L" constraint instead of "K" and
17932 print it using %n2 instead of %B2.
17933 (*subsi3_carryin_const0): New define_insn.
17934 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17935 instead of arm_not_operand and "I" constraint instead of "K" and
17936 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17937 another match_operand and in the condition check that it is negation
17939 (*subsi3_carryin_compare_const0): New define_ins.
17940 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17941 *subsi3_carryin_const.
17942 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17943 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17946 * config/arm.vfp.md (*negdf2_vfp): Use
17947 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17948 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17950 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17952 PR rtl-optimization/89445
17953 * simplify-rtx.c (simplify_ternary_operation): Don't use
17954 simplify_merge_mask on operands that may trap.
17955 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17956 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17957 second operand is CONST_VECTOR, check if any element could be zero.
17958 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17959 their operands can trap.
17961 2019-02-23 Martin Sebor <msebor@redhat.com>
17963 * gimple-ssa-sprintf.c (target_strtol): Rename...
17964 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17965 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17966 check for range error.
17968 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17971 * opts-common.c (prune_options): Also prune joined switches
17972 with Negative and RejectNegative.
17973 * config/i386/i386.opt (march=): Add Negative(march=).
17974 (mtune=): Add Negative(mtune=).
17975 * doc/options.texi: Document Negative used together with Joined
17976 and RejectNegative.
17978 2019-02-22 Martin Sebor <msebor@redhat.com>
17980 * doc/extend.texi (Other Builtins): Add
17981 __builtin_is_constant_evaluated.
17983 2019-02-22 Richard Biener <rguenther@suse.de>
17985 PR tree-optimization/87609
17986 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17988 2019-02-22 Jeff Law <law@redhat.com>
17990 PR rtl-optimization/87761
17991 * config/mips/mips.md: Add new combiner pattern to recognize
17992 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17994 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17997 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17998 destination register in peepholes generating patterns for ADDS/SUBS.
17999 (add<mode>3_compare0,
18000 *addsi3_compare0_uxtw, add<mode>3_compareC,
18001 add<mode>3_compareV_imm, add<mode>3_compareV,
18002 *adds_<optab><ALLX:mode>_<GPI:mode>,
18003 *subs_<optab><ALLX:mode>_<GPI:mode>,
18004 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
18005 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
18006 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
18007 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
18008 sub<mode>3_compare1): Allow stack pointer for source register.
18009 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
18011 2019-02-22 Martin Sebor <msebor@redhat.com>
18013 PR tree-optimization/88993
18014 PR tree-optimization/88853
18015 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
18017 (sprintf_dom_walker::call_info::is_string_func): New helper.
18018 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
18019 for formatted string functions.
18020 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
18022 2019-02-22 Martin Sebor <msebor@redhat.com>
18025 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
18026 unreachable subexpressions.
18028 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
18029 Hongtao Liu <hongtao.liu@intel.com>
18030 Sunil K Pandey <sunil.k.pandey@intel.com>
18033 * config/i386/i386-passes.def: Add
18034 pass_remove_partial_avx_dependency.
18035 * config/i386/i386-protos.h
18036 (make_pass_remove_partial_avx_dependency): New.
18037 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
18039 (pass_data_remove_partial_avx_dependency): New.
18040 (pass_remove_partial_avx_dependency): Likewise.
18041 (make_pass_remove_partial_avx_dependency): Likewise.
18042 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
18043 (*extendsfdf2): Add avx_partial_xmm_update.
18044 (truncdfsf2): Likewise.
18045 (*float<SWI48:mode><MODEF:mode>2): Likewise.
18046 (SF/DF conversion splitters): Disabled for TARGET_AVX.
18048 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
18050 PR middle-end/85598
18051 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
18054 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
18057 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
18058 (PTA_SKYLAKE): Add PTA_AES.
18059 (PTA_GOLDMONT): Likewise.
18061 2019-02-22 Sudakshina Das <sudi.das@arm.com>
18063 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
18064 instruction if enabled.
18065 (aarch64_override_options): Remove reference to return address key.
18067 2019-02-22 Richard Biener <rguenther@suse.de>
18069 PR tree-optimization/89440
18070 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18071 not necessary assert.
18073 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
18076 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
18077 (oacc_replace_fn_attrib_attr): ... this new function.
18078 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
18079 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
18081 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18083 * config/arm/arm-cpus.in (ares): Rename to...
18084 (neoverse-n1): ... This. Add ares as alias.
18085 * config/arm/arm-tables.opt: Regenerate.
18086 * config/arm/arm-tune.md: Likewise.
18087 * doc/invoke.txt (ARM Options): Document neoverse-n1.
18089 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18091 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
18092 * config/aarch64/aarch64-tune.md: Regenerate.
18093 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
18095 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18097 * config/aarch64/aarch64.c (ares_tunings): Rename to...
18098 (neoversen1_tunings): ... This.
18099 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
18100 (neoverse-n1): New CPU.
18101 * config/aarch64/aarch64-tune.md: Regenerate.
18102 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
18104 2019-02-22 Richard Biener <rguenther@suse.de>
18106 PR middle-end/87609
18107 * cfghooks.h (dependence_hash): New typedef.
18108 (struct copy_bb_data): New type.
18109 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
18110 (duplicate_block): Likewise.
18111 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
18112 (copy_bbs): Create and pass down copy_bb_data.
18113 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
18114 (rtl_duplicate_bb): Likewise.
18115 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
18116 remap dependence info.
18118 2019-02-22 Richard Biener <rguenther@suse.de>
18120 PR tree-optimization/87609
18121 * tree-core.h (tree_base): Document special clique values.
18122 * tree-inline.c (remap_dependence_clique): Do not use the
18123 special clique value of one.
18124 (maybe_set_dependence_info): Use clique one.
18125 (clear_dependence_clique): New callback.
18126 (compute_dependence_clique): Clear clique one from all refs
18127 before assigning it (again).
18129 2019-02-21 Martin Sebor <msebor@redhat.com>
18131 * doc/extend.texi (__clear_cache): Correct signature.
18133 2019-02-21 Ian Lance Taylor <iant@golang.org>
18136 * varasm.c (decode_addr_const): Call lookup_constant_def rather
18137 than output_constant_def.
18138 (add_constant_to_table): New static function.
18139 (output_constant_def): Call add_constant_to_table.
18140 (tree_output_constant_def): Likewise.
18142 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18145 * builtins.c (fold_builtin_arith_overflow): If first two args are
18146 INTEGER_CSTs, set intres and ovfres to constants rather than calls
18149 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
18152 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
18153 error for -mindirect-branch/-mfunction-return with incompatible
18156 2019-02-21 Jakub Jelinek <jakub@redhat.com>
18159 * constraints.md (q): Remove.
18160 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
18163 2019-02-21 Martin Jambor <mjambor@suse.cz>
18166 * omp-general.c (omp_extract_for_data): Removed a duplicate call
18167 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
18168 (omp_adjust_for_condition): ...here. Added necessary parameters.
18169 * omp-general.h (omp_adjust_for_condition): Updated declaration.
18170 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
18171 proper values to new parameters of omp_adjust_for_condition.
18173 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18175 PR middle-end/89412
18176 * expr.c (expand_assignment): If result is a MEM, use change_address
18177 instead of simplify_gen_subreg.
18179 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18180 David Malcolm <dmalcolm@redhat.com>
18182 PR middle-end/89091
18183 * fold-const.c (decode_field_reference): Return NULL_TREE if
18184 lang_hooks.types.type_for_size returns NULL. Check it before
18185 overwriting *exp_. Use return NULL_TREE instead of return 0.
18187 2019-02-20 Jakub Jelinek <jakub@redhat.com>
18189 PR middle-end/88074
18190 PR middle-end/89415
18191 * toplev.c (do_compile): Double the emin/emax exponents to workaround
18194 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
18197 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
18198 TARGET_SSE in addition to TARGET_SSE_MATH.
18200 (ix86_excess_precision): Ditto.
18201 (ix86_float_exceptions_rounding_supported_p): Ditto.
18202 (use_rsqrt_p): Ditto.
18203 * config/i386/sse.md (rsqrt<mode>2): Ditto.
18205 2019-02-20 David Malcolm <dmalcolm@redhat.com>
18208 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
18209 linenum_arith_t when determining if two adjacent line spans are
18210 close enough to merge.
18211 (diagnostic_show_locus): Use linenum_arith_t when iterating over
18212 lines within each line_span.
18214 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
18217 * lra-constraints.c(uses_hard_regs_p): Fix handling of
18218 paradoxical SUBREGS.
18220 2019-02-20 Li Jia He <helijia@linux.ibm.com>
18223 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
18224 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
18225 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
18228 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
18230 * config/gcn/gcn.c (print_operand): Fix typo.
18232 2019-02-19 Richard Biener <rguenther@suse.de>
18234 PR middle-end/88074
18235 * toplev.c (do_compile): Initialize mpfr's exponent range
18236 based on available float modes.
18238 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
18240 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
18241 as long as the epilogue isn't completed.
18243 2019-02-18 Martin Sebor <msebor@redhat.com>
18245 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
18246 __has_cpp_attribute, and __has_include.
18248 2019-02-18 Martin Sebor <msebor@redhat.com>
18250 * doc/invoke.texi (-Wreturn-type): Correct and expand.
18252 2019-02-18 Martin Sebor <msebor@redhat.com>
18254 PR middle-end/89294
18255 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
18257 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
18259 2019-02-18 Richard Biener <rguenther@suse.de>
18261 PR tree-optimization/89296
18262 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
18263 of no-warning flag to cases that might emit the bogus warning.
18265 2019-02-18 Jakub Jelinek <jakub@redhat.com>
18268 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
18270 * config/arm/vfp.md (*movdi_vfp): Likewise.
18271 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
18272 "q" constraint for operands[0].
18275 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
18276 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
18277 pattern in a temporary buffer.
18278 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
18279 than 64-operands[2].
18282 * config/s390/s390.c (s390_indirect_branch_attrvalue,
18283 s390_indirect_branch_settings): Define unconditionally.
18284 (s390_set_current_function): Likewise, but guard the whole body except
18285 the s390_indirect_branch_settings call with
18286 #if S390_USE_TARGET_ATTRIBUTE.
18287 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
18289 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
18290 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
18291 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
18292 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
18293 HOST_WIDE_INT_1U instead of 1ULL.
18294 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
18295 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
18296 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
18297 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
18299 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
18302 2019-02-18 Martin Jambor <mjambor@suse.cz>
18304 PR tree-optimization/89209
18305 * tree-sra.c (create_access_replacement): New optional parameter
18306 reg_tree. Use it as a type if non-NULL and access type is not of
18308 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
18309 to create_access_replacement.
18310 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
18311 Check lacc is non-NULL before attempting to re-create it on the RHS.
18313 2019-02-18 Martin Liska <mliska@suse.cz>
18316 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
18318 (symbol_table::free_edge): Recycle m_summary_id.
18319 * cgraph.h (get_summary_id): New.
18320 (symbol_table::release_symbol): Set m_summary_id to -1
18322 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
18323 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
18324 function_summary to fast_function_summary.
18325 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
18326 * ipa-pure-const.c (class funct_state_summary_t):
18327 Switch from function_summary to fast_function_summary.
18328 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
18329 (class ipa_ref_opt_summary_t): Switch from function_summary
18330 to fast_function_summary.
18331 * symbol-summary.h (class function_summary_base): New class
18332 that is created from base of former function_summary.
18333 (function_summary_base::unregister_hooks): New.
18334 (class function_summary): Inherit from function_summary_base.
18335 (class call_summary_base): New class
18336 that is created from base of former call_summary.
18337 (class call_summary): Inherit from call_summary_base.
18338 (struct is_same): New.
18339 (class fast_function_summary): New summary class.
18340 (class fast_call_summary): New summary class.
18341 * vec.h (vec_safe_grow_cleared): New function.
18343 2019-02-18 Martin Liska <mliska@suse.cz>
18345 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
18346 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
18347 * doc/tm.texi: Document new target hook.
18348 * doc/tm.texi.in: Likewise.
18349 * target.def: Add new target macro.
18350 * gcc.c (find_fortran_preinclude_file): Do not search multilib
18353 2019-02-17 Alan Modra <amodra@gmail.com>
18356 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
18357 output reg on add insn.
18358 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
18360 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18363 * config/i386/sse.md (ssedoublemode): Remove V4HI.
18364 (PMULHRSW): Likewise.
18365 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
18367 (ssse3_pmulhrswv4hi3): New expander.
18369 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
18371 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
18372 MMX. Add isa attribute.
18374 2019-02-16 Jakub Jelinek <jakub@redhat.com>
18376 PR rtl-optimization/66152
18377 * builtins.h (c_readstr): Declare.
18378 * builtins.c (c_readstr): Remove forward declaration. Add
18379 null_terminated_p argument, if false, read all bytes from the
18380 string instead of stopping after '\0'.
18381 * expr.c (string_cst_read_str): New function.
18382 (store_expr): Use string_cst_read_str instead of
18383 builtin_strncpy_read_str. Try to store by pieces the whole
18384 exp_len first, and only if that fails, split it up into
18385 store by pieces followed by clear_storage. Formatting fix.
18387 * config/i386/i386.md (*movqi_internal): Remove static from
18388 buf variable. Use output_asm_insn (buf, operands); return "";
18389 instead of return buf;.
18390 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
18391 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
18392 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
18394 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18396 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
18397 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
18398 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
18399 (CC1_SPEC): Likewise.
18400 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
18402 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18404 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
18405 the base address on 64-bit strict-alignment platforms.
18407 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
18409 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
18411 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18413 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
18415 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
18417 PR rtl-optimization/88308
18418 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
18419 on copied instruction.
18421 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
18423 * final.c (insn_current_reference_address): Replace test on JUMP_P
18424 with test on jump_to_label_p.
18425 * config/visium/visium-passes.def: New file.
18426 * config/visium/t-visium (PASSES_EXTRA): Define.
18427 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
18428 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
18429 (TRAMPOLINE_ALIGNMENT): Define.
18430 * config/visium/visium.c (visium_option_override): Do not register
18431 the machine-specific reorg pass here.
18432 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
18434 (output_branch): Adjust threshold for long branch instruction.
18435 * config/visium/visium.md (cpu): Move around.
18436 (length): Adjust for the GR6.
18438 2019-02-15 Richard Biener <rguenther@suse.de>
18439 Jakub Jelinek <jakub@redhat.com>
18441 PR tree-optimization/89278
18442 * tree-loop-distribution.c: Include tree-eh.h.
18443 (generate_memset_builtin, generate_memcpy_builtin): Call
18444 rewrite_to_non_trapping_overflow on builtin->size before passing it
18445 to force_gimple_operand_gsi.
18447 2019-02-15 Jakub Jelinek <jakub@redhat.com>
18450 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
18452 * opth-gen.awk: Likewise.
18454 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
18456 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
18457 Enable MMX, SSE and SSE2 by default.
18458 * config/i386/i386.c (ix86_option_override_internal): Do not
18459 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
18461 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18463 PR rtl-optimization/89354
18464 * combine.c (make_extraction): Punt if extraction_mode is narrower
18467 2019-02-14 Maya Rashish <coypu@sdf.org>
18469 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
18470 * config/netbsd-d.c: New file.
18471 * config/t-netbsd: Add netbsd-d.o
18473 2018-02-14 Steve Ellcey <sellcey@marvell.com>
18475 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
18476 affects_type_identity to true for aarch64_vector_pcs.
18477 (aarch64_comp_type_attributes): New function.
18478 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
18480 2019-02-14 Tamar Christina <tamar.christina@arm.com>
18483 * config/arm/iterators.md (ANY64): Add V4HF.
18485 2019-02-14 Martin Liska <mliska@suse.cz>
18487 PR rtl-optimization/89242
18488 * dce.c (delete_unmarked_insns): Call free_dominance_info we
18489 process a transformation.
18491 2019-02-14 Jakub Jelinek <jakub@redhat.com>
18493 PR tree-optimization/89314
18494 * fold-const.c (fold_binary_loc): Cast strlen argument to
18495 const char * before dereferencing it. Formatting fixes.
18497 PR middle-end/89284
18498 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
18500 2019-02-13 Ian Lance Taylor <iant@golang.org>
18502 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
18503 and set current index for other optimizations.
18505 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
18507 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
18508 nonimmediate_operand as operand 2 predicate.
18509 (vec_set<VF2_512_256:mode>_0): Ditto.
18510 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
18511 (*vec_concatv2si): Remove alternative 2.
18512 (*vec_concatv4si_0): Use vm constraint for alternative 0.
18513 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
18514 (vec_concatv2di): Split alternatives 4,5,6 to ...
18515 (*vec_concatv2di_0) ... new pattern.
18517 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
18520 * config/arm/arm.c (ldm_stm_operation_p) Set
18521 addr_reg_in_reglist correctly for first register.
18522 (load_multiple_sequence): Remove dead base check.
18523 (gen_ldm_seq): Correctly set write_back for Thumb-1.
18525 2019-02-13 Tamar Christina <tamar.christina@arm.com>
18528 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
18529 Expose as @aarch64_pred_mov.
18530 * config/aarch64/aarch64.c (aarch64_classify_address):
18531 Use expand_insn which legitimizes operands.
18533 2019-02-13 Martin Liska <mliska@suse.cz>
18535 * builtins.h (expand_builtin_with_bounds): Remove declaration.
18536 * calls.c (struct arg_data): Remove special_slot, pointer_arg
18537 and pointer_offset fields.
18538 (initialize_argument_information): Remove usage of dead
18540 * cgraph.h (struct cgraph_thunk_info): Remove
18541 add_pointer_bounds_args.
18542 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
18544 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
18546 * config/i386/i386.c (ix86_function_arg_advance): Remove
18548 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
18549 (def_builtin): Remove usage of dead fields.
18550 (ix86_add_new_builtins): Likewise.
18551 * ipa-fnsummary.c (compute_fn_summary): Likewise.
18552 * ipa-icf.c (sem_function::equals_wpa): Likewise.
18553 (sem_function::init): Likewise.
18554 (sem_variable::merge): Likewise.
18555 * ipa-visibility.c (function_and_variable_visibility): Likewise.
18556 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
18557 * lto-cgraph.c (lto_output_node): Likewise.
18558 (lto_output_varpool_node): Likewise.
18559 (input_node): Likewise.
18560 (input_varpool_node): Likewise.
18561 * lto-streamer-out.c (lto_output): Likewise.
18562 * tree-inline.c (expand_call_inline): Remove usage of
18564 * tree-inline.h (struct copy_body_data): Likewise.
18565 * varpool.c (varpool_node::dump): Likewise.
18567 2019-02-13 Jakub Jelinek <jakub@redhat.com>
18569 PR middle-end/89303
18570 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
18571 into pt->vars_contains_escaped_heap instead of setting
18572 pt->vars_contains_escaped_heap to it.
18574 PR middle-end/89281
18575 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
18576 INTVAL (size), compare it to GET_MODE_MASK instead of
18577 1 << GET_MODE_BITSIZE.
18580 * config/i386/predicates.md (x86_64_immediate_operand): Allow
18581 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
18584 2019-02-13 Martin Liska <mliska@suse.cz>
18587 * cfgrtl.c (remove_barriers_from_footer): New function.
18588 (try_redirect_by_replacing_jump): Use it.
18589 (cfg_layout_redirect_edge_and_branch): Likewise.
18591 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18593 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
18594 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
18595 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
18596 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
18597 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
18598 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
18600 * config/rs6000/rs6000.c (builtin_function_type)
18601 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
18602 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
18603 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
18604 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
18605 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
18607 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
18609 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
18610 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
18612 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
18615 * config/i386/i386.md (*movoi_internal_avx): Revert revision
18616 268678 and revision 268657.
18617 (*movti_internal): Likewise.
18619 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
18622 * config/s390/s390.c (s390_decompose_address): Update comment.
18623 (s390_check_qrst_address): Reject invalid address forms after
18626 2019-02-12 Martin Liska <mliska@suse.cz>
18629 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
18630 we need default values of funct_state for a function that
18633 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
18635 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
18636 the object to pick the size of stores on strict-alignment platforms.
18638 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
18639 (*movdi_insn_sp32): Likewise.
18640 (*movdi_insn_sp64): Likewise.
18642 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
18645 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
18646 types that needs constructiong.
18647 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
18649 2019-02-12 Richard Biener <rguenther@suse.de>
18651 PR tree-optimization/89253
18652 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
18653 duplicate the loop.
18655 2019-02-11 David Malcolm <dmalcolm@redhat.com>
18658 * input.c (selftest::test_line_offset_overflow): New selftest.
18659 (selftest::input_c_tests): Call it.
18661 2019-02-11 Martin Sebor <msebor@redhat.com>
18663 PR tree-optimization/88771
18664 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
18665 when -Wstringop-overflow is set.
18666 (builtin_memref::builtin_memref): Adjust excessive upper bound
18667 only when lower bound is not excessive.
18668 (maybe_diag_overlap): Detect and diagnose excessive bounds via
18669 -Wstringop-ovefflow.
18670 (maybe_diag_offset_bounds): Rename...
18671 (maybe_diag_access_bounds): ...to this.
18672 (check_bounds_or_overlap): Adjust for name change above.
18674 2019-02-11 Martin Sebor <msebor@redhat.com>
18677 * builtins.c (max_object_size): Move from here...
18678 * builtins.h (max_object_size): ...and here...
18679 * tree.c (max_object_size): ...to here...
18680 * tree.h (max_object_size): ...and here.
18682 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
18684 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
18685 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
18686 for correct semantics.
18688 2019-02-11 Alan Modra <amodra@gmail.com>
18690 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
18691 -mlongcall and -mpltseq.
18692 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
18693 (RS/6000 and PowerPC Options <-mpltseq>): Document.
18694 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
18695 * config/rs6000/sysv4.opt (mpltseq): New option.
18696 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
18697 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
18698 support is lacking. Don't allow -mpltseq with -mbss-plt.
18699 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
18700 -mpltseq given for ELFv1.
18701 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
18702 Only use UNSPEC_PLTSEQ for inline PLT calls.
18703 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
18704 use UNSPEC_PLTSEQ for inline PLT calls.
18705 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
18706 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
18707 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
18708 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18709 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18710 (pltseq_mtctr_<mode>): Likewise.
18712 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18714 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
18716 * configure: Regenerate.
18718 2019-02-11 Jakub Jelinek <jakub@redhat.com>
18721 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
18724 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18726 * function.c (assign_parm_setup_block): Use the stored
18727 size, not the passed size, when allocating stack-space,
18728 also for a parameter with alignment larger than
18729 MAX_SUPPORTED_STACK_ALIGNMENT.
18731 2019-02-11 Martin Liska <mliska@suse.cz>
18734 * ipa-cp.c (build_toporder_info): Remove usage of a param.
18735 * ipa-inline.c (inline_small_functions): Likewise.
18736 * ipa-pure-const.c (propagate_pure_const): Likewise.
18737 (propagate_nothrow): Likewise.
18738 * ipa-reference.c (propagate): Likewise.
18739 * ipa-utils.c (struct searchc_env): Remove unused field.
18740 (searchc): Always search across AVAIL_INTERPOSABLE.
18741 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
18742 the only called IPA pure const can properly not propagate
18743 across interposable boundary.
18744 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18746 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18748 * config/nds32/nds32.md (call_internal, call_value_internal,
18749 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18751 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18753 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
18756 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
18758 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
18761 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18763 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
18765 2019-02-10 Jakub Jelinek <jakub@redhat.com>
18767 PR tree-optimization/89268
18768 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
18769 if preds is non-NULL.
18771 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18774 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
18777 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18779 * config/nds32/nds32.md (trap): New pattern.
18781 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18783 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
18786 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18788 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
18791 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18793 * ipa-visibility.c (localize_node): Also do not localize
18794 LDPR_PREVAILING_DEF_IRONLY_EXP.
18796 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18799 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
18800 instead of type_with_linkage.
18802 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18805 * params.def (uninlined-function-insns, uninlined-function-time,
18806 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
18807 bound so we don't get overflows.
18809 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18811 * config/rs6000/rs6000-string.c (expand_compare_loop,
18812 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
18815 2019-02-09 Jakub Jelinek <jakub@redhat.com>
18817 PR middle-end/89246
18818 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18819 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
18820 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18822 2019-02-09 Alan Modra <amodra@gmail.com>
18825 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18826 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18829 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18831 PR middle-end/88560
18832 * lra-constraints.c (process_alt_operands): Don't increase reject
18833 for memory when offset memory is required.
18835 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18837 * config/s390/vector.md: Implement vector copysign.
18839 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18841 * expr.c (expand_constructor): Correct indentations.
18843 2019-02-08 Richard Biener <rguenther@suse.de>
18845 PR tree-optimization/89247
18846 * tree-if-conv.c: Include tree-cfgcleanup.h.
18847 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18848 (tree_if_conversion): Pass through predicate vector.
18849 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18850 inline, see if any if-converted loops we refrece in
18851 LOOP_VECTORIZED calls vanished and fixup.
18852 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18854 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18856 * config/s390/constraints.md (jdd): New constraint.
18858 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18861 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18862 upper 16 vector registers without TARGET_AVX512VL.
18863 (*movti_internal): Likewise.
18865 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18867 PR rtl-optimization/89234
18868 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18869 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18870 (copy_reg_eh_region_note_backward): Likewise.
18872 2019-02-08 Richard Biener <rguenther@suse.de>
18874 PR middle-end/89223
18875 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18876 doesn't fit in HWI.
18877 (analyze_subscript_affine_affine): Handle failure from
18878 initialize_matrix_A.
18880 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18882 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18885 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18887 PR tree-optimization/86637
18888 PR tree-optimization/89235
18889 * tree-vect-loop.c (optimize_mask_stores): Add an
18890 auto_purge_vect_location sentinel to ensure that vect_location is
18892 * tree-vectorizer.c
18893 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18894 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18895 to ensure that vect_location is purged on exit.
18896 (pass_slp_vectorize::execute): Likewise, replacing the manual
18898 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18900 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18902 * config/aarch64/iterators.md (max_opp): New code_attr.
18903 (USMAX): New code iterator.
18904 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18905 (aarch64_smax): Likewise.
18906 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18907 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18910 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18913 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18914 for TARGET_AVX512VL.
18915 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18917 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18919 * config/s390/s390-builtin-types.def: Add new types.
18920 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18921 (s390_vec_xlw4): Make the memory operand into a const pointer.
18922 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18924 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18925 a new vector type with the alignment of the scalar memory operand.
18927 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18928 Jakub Jelinek <jakub@redhat.com>
18931 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18932 arm_count_ldrdstrd_insns): New declarations.
18933 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18935 (valid_operands_ldrd_strd): New function.
18936 (arm_count_ldrdstrd_insns): New function.
18937 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18938 sets instead of single DImode set and define new insns to match this.
18940 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18942 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18943 Make it a C initializer.
18945 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18948 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18950 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18952 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18953 Use neon_dot<q> for type.
18954 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18956 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18958 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18959 Use neon_dot<q> for type.
18960 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18961 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18963 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18965 PR rtl-optimization/89225
18966 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18969 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18971 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18972 after restoring registers saved to allocate the frame on Windows.
18974 2019-02-06 Richard Biener <rguenther@suse.de>
18976 PR tree-optimization/89182
18977 * graphite.h (cached_scalar_evolution_in_region): Declare.
18978 * graphite.c (struct seir_cache_key): New.
18979 (struct sese_scev_hash): Likewise.
18980 (seir_cache): New global.
18981 (cached_scalar_evolution_in_region): New function.
18982 (graphite_transform_loops): Allocate and release seir_cache.
18983 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18984 cached_scalar_evolution_in_region.
18985 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18987 (scop_detection::graphite_can_represent_expr: Use
18988 cached_scalar_evolution_in_region.
18989 (scop_detection::stmt_simple_for_scop_p): Likewise.
18990 (find_params_in_bb): Likewise.
18991 (gather_bbs::before_dom_children): Likewise.
18992 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18993 (add_loop_constraints): Likewise.
18995 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18997 PR middle-end/89210
18998 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18999 operand to new_unary_operation only if both element types are integral
19000 and it isn't a widening conversion. Return NULL_TREE if
19001 new_unary_operation failed.
19003 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
19006 * config/s390/s390.md: Remove load and test FP splitter.
19008 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19011 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
19012 expand_compare_loop, expand_block_compare_gpr,
19013 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
19014 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
19015 #include "profile-count.h" and "predict.h" for types and functions
19016 needed to work with REG_BR_PROB notes.
19018 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
19021 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
19022 for the long branch case.
19024 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19027 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
19028 can throw, non-call exceptions are enabled and we can't delete
19029 dead exceptions or alter cfg. Set must_clean if
19030 delete_insn_and_edges returns true, don't set it blindly for calls.
19031 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
19033 PR rtl-optimization/89195
19034 * combine.c (make_extraction): For MEMs, don't extract bytes outside
19035 of the original MEM.
19037 2019-02-05 Martin Liska <mliska@suse.cz>
19039 PR gcov-profile/89000
19040 * gcov.c (function_summary): Remove argument.
19041 (file_summary): New function.
19042 (print_usage): Replace tabs with spaces.
19043 (generate_results): Use new function file_summary.
19045 2019-02-05 Jakub Jelinek <jakub@redhat.com>
19048 * optabs.c (prepare_cmp_insn): Pass x and y to
19049 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
19051 2019-02-05 Richard Biener <rguenther@suse.de>
19053 PR middle-end/89150
19054 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
19055 (struct bitmap_element): Drop chain_prev so we properly recurse on
19056 the prev member, supporting tree views.
19057 (struct bitmap_head): GTY skip the obstack member.
19059 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
19062 * doc/extend.texi (Vector Extensions): Add an example of using vector
19063 types together with x86 intrinsics.
19065 2019-02-04 Alan Modra <amodra@gmail.com>
19067 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
19068 str[] size to 160, and comment.
19070 2019-02-04 Alan Modra <amodra@gmail.com>
19072 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
19073 (rs6000_pltseq_template): Guard output of TLS markers with
19074 TARGET_TLS_MARKERS.
19075 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
19076 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
19077 to use inline PLT sequences.
19078 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
19079 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
19080 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
19082 2019-02-04 Martin Liska <mliska@suse.cz>
19085 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
19086 out when ipa_fn_summaries does not contain entry for callee.
19088 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
19090 * config/sparc/sparc.h: Remove superfluous blank lines.
19091 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
19092 (got_register_rtx): ...this.
19093 (sparc_got): Adjust to above renaming.
19094 (sparc_tls_got): Likewise.
19095 (sparc_delegitimize_address): Likewise.
19096 (sparc_output_mi_thunk): Likewise.
19097 (sparc_init_pic_reg): Likewise.
19098 (save_local_or_in_reg_p): Fix test on the GOT register.
19099 (USE_HIDDEN_LINKONCE): Move around.
19100 (get_pc_thunk_name): Likewise.
19101 (gen_load_pcrel_sym): Likewise.
19102 (load_got_register): Likewise.
19104 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
19106 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
19107 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
19109 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19111 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
19112 into consideration.
19114 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
19116 * config.gcc (with_nds32_lib, glibc):
19117 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
19118 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
19119 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
19121 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
19124 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
19125 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
19126 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
19127 (*rcpsf2_sse): Ditto.
19128 (*rsqrtsf2_sse): Ditto.
19129 (sse4_1_round<mode<2): Ditto.
19131 2019-02-03 Richard Biener <rguenther@suse.de>
19134 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
19137 2019-02-02 Jakub Jelinek <jakub@redhat.com>
19139 PR middle-end/87887
19140 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19141 Punt with warning on aggregate return or argument types. Ignore
19142 type/mode checking for uniform arguments.
19144 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
19146 * combine.c (try_combine): Do not print "Can't combine" messages unless
19147 printing failed combination attempts.
19149 2019-02-01 Martin Jambor <mjambor@suse.cz>
19152 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
19153 segment and global segment variables before making them static.
19155 2019-02-01 Martin Jambor <mjambor@suse.cz>
19157 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
19158 missed optimization dump with dump_enabled_p.
19160 2019-02-01 Richard Biener <rguenther@suse.de>
19162 PR middle-end/88597
19163 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
19164 the instantiate cache.
19165 (instantiate_scev_binary): Elide second operand procesing
19166 if equal to the first.
19167 * tree-chrec.c (chrec_contains_symbols): Add visited set.
19168 (chrec_contains_undetermined): Likewise.
19169 (tree_contains_chrecs): Likewise.
19171 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
19173 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
19175 2019-02-01 Jakub Jelinek <jakub@redhat.com>
19177 PR tree-optimization/89143
19178 * wide-int-range.h (wide_int_range_absu): Declare.
19179 * wide-int-range.cc (wide_int_range_absu): New function.
19180 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
19182 PR tree-optimization/88107
19183 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
19184 instead of assertion that eh_region_outermost is non-NULL, if it
19185 is NULL, set *ALL to true and return NULL.
19186 (move_sese_region_to_fn): Adjust caller, if all is set, call
19187 duplicate_eh_regions with NULL region.
19189 2019-02-01 Richard Biener <rguenth@suse.de>
19191 PR rtl-optimization/88593
19192 * mode-switching.c (optimize_mode_switching): Free dominators before
19193 calling cleanup_cfg.
19195 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
19197 PR tree-optimization/88932
19198 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
19200 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19202 PR middle-end/89137
19203 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
19204 bogus clang warning.
19206 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
19209 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
19210 alternative to avoid partial SSE register stall for TARGET_AVX.
19211 (truncdfsf2): Ditto.
19212 (sse4_1_round<mode>2): Ditto.
19214 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
19216 PR tree-optimization/89008
19217 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
19218 process anything of the form X * 0.
19220 2019-01-31 Richard Biener <rguenther@suse.de>
19222 PR tree-optimization/89135
19223 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
19224 with abnormal preds.
19226 2019-01-31 Jakub Jelinek <jakub@redhat.com>
19229 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
19230 always_inline callees into no_sanitize_address callers.
19232 2019-01-31 Richard Biener <rguenther@suse.de>
19234 PR rtl-optimization/89115
19235 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
19237 2019-01-30 Martin Sebor <msebor@redhat.com>
19240 * doc/extend.texi (cast to a union): Correct and expand.
19242 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
19244 PR rtl-optimization/87246
19245 * lra-constraints.c (simplify_operand_subreg): Reload memory
19246 in subreg if the address became invalid.
19248 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
19251 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
19252 Disable for little-endian.
19254 2019-01-30 Richard Biener <rguenther@suse.de>
19256 PR rtl-optimization/89115
19257 * opts.c (default_options_optimization): Reduce
19258 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
19259 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
19262 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
19264 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
19265 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
19266 type of vector element when vec_extract is implemented by direct
19269 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
19271 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
19273 2019-01-30 Richard Biener <rguenther@suse.de>
19275 PR tree-optimization/89111
19276 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
19277 canonicalization to appropriately sized access types.
19279 2019-01-30 Jakub Jelinek <jakub@redhat.com>
19282 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
19283 for arguments to functions that are TU-local and shouldn't be
19284 referenced by assembly.
19286 2019-01-30 Ulrich Drepper <drepper@redhat.com>
19288 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
19291 2019-01-29 Martin Sebor <msebor@redhat.com>
19294 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
19296 2019-01-29 Jakub Jelinek <jakub@redhat.com>
19300 * omp-simd-clone.c (simd_clone_clauses_extract)
19301 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
19302 OMP_CLAUSE_ALIGNED_ALIGNMENT.
19304 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
19306 * config.gcc: Force .init_array for ARC.
19308 2019-01-29 Richard Biener <rguenther@suse.de>
19311 * dwarf2out.c (collect_skeleton_dies): New helper.
19312 (copy_decls_for_unworthy_types): Call it.
19313 (build_abbrev_table): Assert we do not try to replace
19314 DW_AT_signature refs with local refs.
19316 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19318 PR middle-end/89002
19319 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
19320 for lastprivate/linear IV, push gimplify context around gimplify_assign
19321 and, if it needed any temporaries, pop it into a gimple bind around the
19324 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
19326 * common.opt (-Wattribute-alias): Remove "no-" from name.
19327 Make -Wattribute-alias command line option and
19328 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
19330 2019-01-28 Jakub Jelinek <jakub@redhat.com>
19333 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
19334 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
19336 (bmi2): Add missing @opindex.
19337 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
19338 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
19339 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
19340 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
19341 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
19342 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
19343 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
19344 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
19345 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
19346 xsavec, xsaveopt and xsaves options.
19348 2019-01-28 Richard Biener <rguenther@suse.de>
19351 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
19354 2019-01-28 Richard Biener <rguenther@suse.de>
19356 PR tree-optimization/88739
19357 * tree-cfg.c (verify_types_in_gimple_reference): Verify
19358 BIT_FIELD_REFs only are applied to mode-precision operands
19359 when they are integral.
19360 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
19361 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
19362 BIT_FIELD_REFs of non-mode-precision integral operands.
19364 2019-01-27 Jakub Jelinek <jakub@redhat.com>
19367 * config/i386/sse.md
19368 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
19369 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
19370 first constants in pairs are multiples of 2. Formatting fixes.
19371 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
19372 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
19373 first constants in each quadruple are multiples of 4. Formatting fixes.
19375 2019-01-26 Martin Jambor <mjambor@suse.cz>
19378 * tree-inline.c: Include tree-cfgcleanup.h.
19379 (delete_unreachable_blocks_update_callgraph): Move...
19380 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
19381 ...here, make externally visible, make second argument bool, adjust
19383 * tree-cfgcleanup.c: Include cgraph.h.
19384 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
19386 * ipa-prop.c: Include tree-cfgcleanup.h.
19387 (ipcp_transform_function): Call
19388 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
19390 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
19392 PR rtl-optimization/88846
19393 * ira.c (process_set_for_memref_referenced_p): New.
19394 (memref_referenced_p): Add new param. Use
19395 process_set_for_memref_referenced_p. Add new switch cases.
19396 (memref_used_between_p): Pass new arg to memref_referenced_p.
19398 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
19401 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
19402 argument ABI_BREAK. Set to true if the calculated alignment has
19403 changed in gcc-9. Check bit-fields for their base type alignment.
19404 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
19405 (aarch64_function_arg_boundary): Likewise.
19406 (aarch64_gimplify_va_arg_expr): Likewise.
19408 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19410 PR middle-end/89037
19411 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
19412 instead of accessing TREE_INT_CST_ELT directly.
19414 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
19416 * doc/sourcebuild.texi (Environment attributes): Add fenv and
19417 fenv_exceptions description.
19419 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
19421 PR rtl-optimization/87763
19422 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
19423 Allow SUBREG when matching CC_NZmode compare.
19425 2019-01-25 Richard Biener <rguenther@suse.de>
19427 PR tree-optimization/89049
19428 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
19429 Look at the pattern stmt to determine if the stmt is vectorized.
19431 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
19433 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
19434 (pred_mov<mode>): Handle all-register forms using both a new
19435 alternative and a split.
19437 2019-01-25 Richard Biener <rguenther@suse.de>
19439 PR tree-optimization/86865
19440 * graphite-scop-detection.c (scop_detection::can_represent_loop):
19441 Reject non-do-while loops.
19443 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
19445 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
19446 * config/rs6000/constraints.md (Q constraint): Use REG_P.
19447 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
19448 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19449 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
19450 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19451 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
19452 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
19453 vlogical_operand, gpc_reg_operand, int_reg_operand,
19454 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
19455 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
19456 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
19457 (save_world_operation, restore_world_operation, lmw_operation,
19458 stmw_operation): Use MEM_P and REG_P.
19459 (tie_operand): Use MEM_P.
19460 (vrsave_operation, crsave_operation): Use REG_P.
19461 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
19462 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
19463 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
19464 (call_operand): Use HARD_REGISTER_P.
19465 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
19467 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
19468 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
19469 quad_aligned_load_p, replace_swapped_aligned_store,
19470 recombine_lvx_pattern, replace_swapped_aligned_load,
19471 recombine_stvx_pattern): Use MEM_P.
19472 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
19473 Use MEM_P and SYMBOL_REF_P.
19474 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
19475 (insn_is_swappable_p): Use REG_P and MEM_P.
19476 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
19477 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
19479 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
19480 Use CONST_DOUBLE_P.
19481 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
19483 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
19484 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
19485 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
19486 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
19488 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19489 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
19490 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
19491 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
19492 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
19493 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
19494 rs6000_split_logical_di): Use CONST_INT_P.
19495 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
19496 REG_P and SYMBOL_REF_P.
19497 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
19498 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
19499 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
19500 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
19501 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
19502 (small_data_operand, print_operand_address): Use CONST_INT_P and
19504 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
19505 (rs6000_init_hard_regno_mode_ok, direct_move_p):
19506 Use HARD_REGISTER_NUM_P.
19507 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
19508 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
19509 SUBREG_P and SYMBOL_REF_P.
19510 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
19511 and HARD_REGISTER_NUM_P.
19512 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
19514 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
19515 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
19517 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
19518 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
19519 find_addr_reg): Use REG_P.
19520 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
19521 (rs6000_emit_le_vsx_move): Use SUBREG_P.
19522 (offsettable_ok_by_alignment, constant_pool_expr_p,
19523 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
19524 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
19525 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
19526 rs6000_assemble_integer, create_TOC_reference,
19527 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
19528 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
19529 (rs6000_split_vec_extract_var): Use reg_or_subregno.
19530 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
19531 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
19532 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19533 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
19534 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
19535 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
19536 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
19537 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
19538 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
19539 and cbranch<mode>4): Use CONST_INT_P.
19540 (multiple define_splits): Use REG_P and SUBREG_P.
19541 (define_expands call, call_value): Use MEM_P.
19542 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
19543 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
19544 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
19545 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
19546 and HARD_REGISTER_NUM_P.
19547 (multiple define_splits): Use HARD_REGISTER_NUM_P.
19549 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
19551 PR rtl-optimization/88948
19552 * rtl.h (prepare_copy_insn): New prototype.
19553 * gcse.c (prepare_copy_insn): New function, split out from
19554 process_insert_insn.
19555 (process_insert_insn): Use prepare_copy_insn.
19556 * store-motion.c (replace_store_insn): Use prepare_copy_insn
19557 instead of gen_move_insn.
19559 2019-01-24 Jakub Jelinek <jakub@redhat.com>
19562 * config/i386/i386.c (ix86_pic_register_p): Return true for
19563 UNSPEC_SET_GOT too.
19565 PR tree-optimization/88964
19566 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
19567 punt if HONOR_SNANS (chrec).
19569 PR middle-end/89015
19570 * tree-nested.c (convert_nonlocal_reference_stmt,
19571 convert_local_reference_stmt, convert_tramp_reference_stmt,
19572 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
19573 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
19574 or GIMPLE_OMP_TASK.
19576 PR tree-optimization/89027
19577 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
19578 for "omp simd array" variables.
19580 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
19583 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
19584 force the alignment of m_val.
19586 2019-01-24 Richard Biener <rguenther@suse.de>
19589 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
19590 When in "legacy" debug mode make sure to reset self-origins.
19592 2019-01-24 Martin Liska <mliska@suse.cz>
19594 PR gcov-profile/88994
19595 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
19596 result will be always smaller or equal to the original.
19597 * gcov.c (mangle_name): Fix else branch where we should
19598 also copy to PTR and shift the pointer.
19600 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
19602 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
19603 * vr-values.c (find_case_label_ranges): Fix a comment typo.
19605 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
19607 * common/config/i386/i386-common.c
19608 (OPTION_MASK_ISA_ENQCMD_SET,
19609 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
19610 (ix86_handle_option): Handle -menqcmd.
19611 * config.gcc (enqcmdintrin.h): New header file.
19612 * config/i386/cpuid.h (bit_ENQCMD): New bit.
19613 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19615 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
19617 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
19618 __builtin_ia32_enqcmds): New builtins.
19619 * config/i386/i386-c.c (__ENQCMD__): New macro.
19620 * config/i386/i386-option.c (ix86_target_string): Add
19622 (ix86_valid_target_attribute_inner_p): Likewise.
19623 * config/i386/i386-expand.c
19624 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
19625 IX86_BUILTIN_ENQCMDS.
19626 * config/i386/i386.h (TARGET_ENQCMD): New.
19627 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
19628 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
19629 (movdir64b_<mode>): Parameterize to enable share expansion code
19630 with ENQCMD in function ix86_expand_builtin.
19631 * config/i386/i386.opt: Add -menqcmd.
19632 * config/i386/immintrin.h: Include enqcmdintrin.h.
19633 * config/i386/enqcmdintrin.h: New intrinsic file.
19634 * doc/invoke.texi: Add -menqcmd.
19636 2019-01-23 Bin Cheng <bin.cheng@arm.com>
19637 Steve Ellcey <sellcey@marvell.com>
19640 * recog.c (address_operand): Return false on wrong mode for address.
19641 (constrain_operands): Check for mode with 'p' constraint.
19643 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
19646 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
19647 Disparage MMX alternative.
19648 (sse2_cvtpd2pi): Ditto.
19649 (sse2_cvttpd2pi): Ditto.
19651 2019-01-23 David Malcolm <dmalcolm@redhat.com>
19654 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
19655 use-after-free of the result of
19656 aarch64_get_extension_string_for_isa_flags.
19658 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19661 * doc/extend.texi: Document break and continue behavior in
19662 statement expressions.
19664 2019-01-23 Richard Biener <rguenther@suse.de>
19666 PR tree-optimization/89008
19667 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
19668 not leave another stray operand.
19670 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19672 * BASE-VER: Bump to 9.0.1.
19674 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
19676 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
19677 thunk that returns by reference, use the type of the return object
19678 of the thunk instead of that of the alias to build the dereference.
19680 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
19682 * config/arc/atomic.md: Add operand to DMB instruction.
19684 2019-01-23 Jakub Jelinek <jakub@redhat.com>
19686 PR tree-optimization/88964
19687 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
19688 build_zero_cst instead of build_int_cst. Return false for loop
19689 invariants which honor signed zeros.
19691 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
19693 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
19695 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19698 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
19699 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
19700 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
19702 PR middle-end/88968
19703 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
19704 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
19707 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
19708 Disable for little endian.
19710 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19713 * config/arm/arm.c (arm_needs_double_word_align): Check
19714 DECL_BIT_FIELD_TYPE.
19716 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
19717 H.J. Lu <hongjiu.lu@intel.com>
19720 * config/i386/i386-builtin.def: Add mask2 to all builtin
19721 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
19723 * config/i386/i386.c (BDESC): Add mask2 to the definition.
19724 (BDESC_FIRST): Likewise.
19725 (define_builtin): Add an argument for mask2. Updated to handle
19726 both ix86_isa_flags and ix86_isa_flags2.
19727 (define_builtin_const): Likewise.
19728 (define_builtin_pure): Likewise.
19729 (define_builtin2): Deleted.
19730 (define_builtin_const2): Likewise.
19731 (builtin_description): Add a member, mask2.
19732 (bdesc_*): Add mask2 to builtin initializations.
19733 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
19734 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
19736 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
19738 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
19741 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
19744 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19747 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19748 alignment is dominated by a bitfield with 64-bit aligned base type.
19749 (arm_function_arg): Emit a warning if the alignment has changed since
19750 earlier GCC releases.
19751 (arm_function_arg_boundary): Likewise.
19752 (arm_setup_incoming_varargs): Likewise.
19754 2019-01-22 Richard Biener <rguenther@suse.de>
19756 PR tree-optimization/88862
19757 * graphite-scop-detection.c
19758 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
19760 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
19762 * doc/extend.tex (AMD GCN Function Attributes): New section.
19763 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
19764 * doc/invoke.texi (AMD GCN Options): New section.
19765 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
19767 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
19769 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
19770 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
19772 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19774 PR tree-optimization/88044
19775 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
19776 is false in the first iteration, but !every_iteration, return false
19777 instead of true with niter->niter zero.
19779 PR rtl-optimization/88904
19780 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
19781 any nonequal registers before processing BB_END (b).
19784 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
19786 (expand_binop_directly, expand_doubleword_clz,
19787 expand_doubleword_popcount, expand_ctz, expand_ffs,
19788 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
19790 PR rtl-optimization/49429
19792 PR rtl-optimization/86334
19794 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
19795 addressable from here...
19796 (emit_block_op_via_libcall): ... to here.
19798 2019-01-22 Richard Biener <rguenther@suse.de>
19800 * tree-vect-loop.c (vect_analyze_loop_operations): Use
19801 auto_vec for cost vector to fix memleak.
19802 (vectorize_fold_left_reduction): Properly gather SLP defs.
19803 (vectorizable_comparison): Do not swap operands to properly
19806 2019-01-22 Alan Modra <amodra@gmail.com>
19809 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
19810 stays a reg. Allow a const_int.
19811 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
19812 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
19813 (IS_NOMARK_TLSGETADDR): Define.
19814 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
19815 (rs6000_output_tlsargs): New function.
19816 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
19817 __tls_get_addr call takes an arg.
19818 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
19819 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
19821 (call_value_nonlocal_sysv): ..or here, delete split.
19822 (tls_gdld_nomark): Delete.
19823 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19824 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19825 (call_value_nonlocal_sysv): Likewise.
19826 (call_value_nonlocal_sysv_secure): Likewise.
19827 (call_value_nonlocal_aix): Likewise.
19828 (call_value_indirect_aix): Likewise.
19829 (call_value_indirect_elfv2): Likewise.
19830 (call_value_local32, call_value_local64): Disable for no-mark tls.
19831 (call_value_local_aix): Likewise.
19833 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19836 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19837 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19839 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19841 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19842 string contents as hash_map keys.
19844 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19847 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19848 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19849 instead of TYPE_ALIGN.
19850 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19851 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19852 pointer from TYPE_STUB_DECL.
19854 2019-01-21 Richard Biener <rguenther@suse.de>
19856 PR tree-optimization/88934
19857 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19858 at the possibly non-constant operand.
19859 (vect_get_constant_vectors): Adjust.
19861 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19864 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19865 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19866 instead of _X86INTRIN_H_INCLUDED.
19867 * onfig/i386/clwbintrin.h: Likewise.
19868 * config/i386/pkuintrin.h: Likewise.
19869 * config/i386/prfchwintrin.h: Likewise.
19870 * config/i386/rdseedintrin.h: Likewise.
19871 * config/i386/wbnoinvdintrin.h: Likewise.
19872 * config/i386/xsavecintrin.h: Likewise.
19873 * config/i386/xsavesintrin.h: Likewise.
19874 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19875 * config/i386/xsaveintrin.h: Likewise.
19876 * config/i386/xsaveoptintrin.h: Likewise.
19877 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19878 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19879 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19880 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19881 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19882 * config/i386/immintrin.h: Here.
19884 2019-01-20 Martin Jambor <mjambor@suse.cz>
19887 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19888 with aa_walk_budget.
19889 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19890 aa_walk_budget_p parameter.
19891 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19892 walk. Updated all callers.
19893 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19894 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19896 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19897 parameter info. Extract info from fbi. Pass fbi to recursive calls
19898 and to unmodified_parm.
19899 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19900 info, updated call to will_be_nonconstant_expr_predicate.
19901 (param_change_prob): New parameter fbi, limit AA walking.
19902 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19903 calls to various above functions.
19904 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19905 parameter. Use it to limit AA walking.
19906 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19907 fbi, limit AA walk.
19908 (detect_type_change): New parameter fbi, pass it on to
19909 detect_type_change_from_memory_writes.
19910 (detect_type_change_ssa): Likewise.
19911 (aa_overwalked): Removed.
19912 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19913 accordingly, adjust to the neew AA limiting scheme.
19914 (parm_ref_data_preserved_p): Likewise.
19915 (ipa_compute_jump_functions_for_edge): Adjust call to
19917 (ipa_analyze_call_uses): Likewise.
19918 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19919 (ipa_analyze_node): Initialize aa_walk_budget.
19920 (ipcp_transform_function): Likewise.
19921 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19922 to get_dynamic_type.
19924 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19926 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19927 outside of #if CHECKING_P code.
19929 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19931 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19932 New function, split out from...
19933 (loop_versioning::analyze_stride): ...here.
19934 (loop_versioning::find_per_loop_multiplication): Use gassign.
19935 (loop_versioning::analyze_term_using_scevs): Return a success code.
19936 (loop_versioning::analyze_arbitrary_term): New function.
19937 (loop_versioning::analyze_address_fragment): Use
19938 analyze_arbitrary_term if all else fails.
19940 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19943 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19946 2019-01-18 Richard Biener <rguenther@suse.de>
19948 PR tree-optimization/88903
19949 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19950 scalar stmts a SLP shift amount is composed of when detecting
19953 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19956 * config/arm/arm-cpus.in (mp): New feature.
19957 (sec): New feature.
19958 (fgroup ARMv7ve): Add mp and sec features.
19959 (arch armv7-a): Add options to allow mp and sec extensions.
19960 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19961 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19962 extenstions to the base architecture.
19963 (cpu cortex-a8): Add sec extension to the base architecture.
19964 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19965 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19966 variants down to the base v7-a varaint.
19967 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19968 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19969 of permitted extensions for -march=armv7-a and for
19970 -mcpu=generic-armv7-a.
19972 2019-01-18 Martin Liska <mliska@suse.cz>
19974 * params.def: Fix comment.
19975 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19977 (gimple_gen_ic_func_profiler): Likewise.
19979 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19981 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19982 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19983 and put in error checks for stack protector guard options.
19984 (aarch64_stack_protect_guard): New.
19985 (TARGET_STACK_PROTECT_GUARD): Define.
19986 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19987 (reg_stack_protect_address<mode>): New.
19988 (stack_protect_set): Adjust for SSP_GLOBAL.
19989 (stack_protect_test): Likewise.
19990 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19991 (-mstack-protector-guard): Likewise.
19992 (-mstack-protector-guard-offset): Likewise.
19994 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19996 PR tree-optimization/86214
19997 * tree-inline.h (struct copy_body_data): Add
19998 add_clobbers_to_eh_landing_pads member.
19999 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
20000 (copy_edges_for_bb): Call it if EH edge destination is <
20001 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
20002 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
20003 if flag_stack_reuse != SR_NONE and clear it afterwards.
20005 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
20008 * doc/install.texi (with-multilib-list): Document for aarch64.
20010 2019-01-18 Jakub Jelinek <jakub@redhat.com>
20013 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
20014 (("..."))) with ("...").
20016 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20018 * doc/extend.texi (Built-in Functions for Memory Model Aware
20019 Atomic Operations): Document atomic fetch and nand.
20021 2019-01-18 Martin Liska <mliska@suse.cz>
20022 Richard Biener <rguenther@suse.de>
20024 PR middle-end/88587
20025 * cgraph.h (create_version_clone_with_body): Add new argument
20027 * cgraphclones.c (cgraph_node::create_version_clone): Add
20028 DECL_ATTRIBUTES to a newly created decl. And call
20029 valid_attribute_p so that proper cl_target_optimization_node
20030 is set for the newly created declaration.
20031 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
20033 (expand_target_clones): Do not call valid_attribute_p, it must
20035 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
20038 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20041 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
20042 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
20043 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
20045 2019-01-17 Martin Sebor <msebor@redhat.com>
20047 PR middle-end/88273
20048 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
20049 Handle anti-ranges the same as no range at all.
20051 2018-01-17 Steve Ellcey <sellcey@cavium.com>
20053 * config/aarch64/aarch64.c (cgraph.h): New include.
20054 (intl.h): New include.
20055 (supported_simd_type): New function.
20056 (currently_supported_simd_type): Ditto.
20057 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
20058 (aarch64_simd_clone_adjust): Ditto.
20059 (aarch64_simd_clone_usable): Ditto.
20060 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
20061 (TARGET_SIMD_CLONE_ADJUST): Ditto.
20062 (TARGET_SIMD_CLONE_USABLE): Ditto.
20063 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
20064 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
20067 2019-01-17 Martin Sebor <msebor@redhat.com>
20069 PR tree-optimization/88800
20070 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
20071 NO_WARNING bit here. Avoid folding out-of-bounds calls.
20072 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
20073 redundant argument. Add new argument and issue diagnostics under
20074 its control. Detect out-of-bounds access even with warnings
20076 (check_bounds_or_overlap): Change return type. Add argument.
20077 (wrestrict_dom_walker::check_call): Adjust.
20078 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
20079 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
20080 check_bounds_or_overlap's return value.
20081 (handle_builtin_stxncpy): Same.
20082 (handle_builtin_strcat): Same.
20084 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20085 Kwok Cheung Yeung <kcy@codesourcery.com>
20086 Julian Brown <julian@codesourcery.com>
20087 Tom de Vries <tom@codesourcery.com>
20089 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
20091 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20093 * doc/sourcebuild.texi: Document dg-require-effective-target
20094 llvm_binutils and offload_gcn.
20096 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20097 Kwok Cheung Yeung <kcy@codesourcery.com>
20098 Julian Brown <julian@codesourcery.com>
20099 Tom de Vries <tom@codesourcery.com>
20101 * doc/sourcebuild.texi: Document dg-required-effective-target
20104 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20105 Kwok Cheung Yeung <kcy@codesourcery.com>
20106 Julian Brown <julian@codesourcery.com>
20107 Tom de Vries <tom@codesourcery.com>
20108 Jan Hubicka <hubicka@ucw.cz>
20109 Martin Jambor <mjambor@suse.cz>
20111 * config.gcc: Add amdgcn*-*-amdhsa configuration.
20112 * configure.ac: Check for dlopen.
20113 * configure: Regenerate.
20115 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20116 Kwok Cheung Yeung <kcy@codesourcery.com>
20117 Julian Brown <julian@codesourcery.com>
20118 Tom de Vries <tom@codesourcery.com>
20119 Jan Hubicka <hubicka@ucw.cz>
20120 Martin Jambor <mjambor@suse.cz>
20122 * common/config/gcn/gcn-common.c: New file.
20123 * config/gcn/driver-gcn.c: New file.
20124 * config/gcn/gcn-builtins.def: New file.
20125 * config/gcn/gcn-hsa.h: New file.
20126 * config/gcn/gcn-modes.def: New file.
20127 * config/gcn/gcn-opts.h: New file.
20128 * config/gcn/gcn-passes.def: New file.
20129 * config/gcn/gcn-protos.h: New file.
20130 * config/gcn/gcn-run.c: New file.
20131 * config/gcn/gcn-tree.c: New file.
20132 * config/gcn/gcn.c: New file.
20133 * config/gcn/gcn.h: New file.
20134 * config/gcn/gcn.opt: New file.
20135 * config/gcn/t-gcn-hsa: New file.
20137 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
20138 Kwok Cheung Yeung <kcy@codesourcery.com>
20139 Julian Brown <julian@codesourcery.com>
20140 Tom de Vries <tom@codesourcery.com>
20141 Jan Hubicka <hubicka@ucw.cz>
20142 Martin Jambor <mjambor@suse.cz>
20144 * config/gcn/constraints.md: New file.
20145 * config/gcn/gcn-valu.md: New file.
20146 * config/gcn/gcn.md: New file.
20147 * config/gcn/predicates.md: New file.
20149 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
20151 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
20152 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
20153 (stmt_uses_0_or_null_in_undefined_way): Likewise.
20154 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
20156 2019-01-17 Tamar Christina <tamar.christina@arm.com>
20159 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
20160 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
20161 it and document registers.
20163 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20165 * config/aarch64/aarch64.c (ares_tunings): Define.
20166 * config/aarch64/aarch64-cores.def (ares): Use the above.
20168 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20172 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
20174 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
20175 (_mm512_fixupimm_round_pd): Update parameters and builtin.
20176 (_mm512_maskz_fixupimm_round_pd): Ditto.
20177 (_mm512_fixupimm_round_ps): Ditto.
20178 (_mm512_maskz_fixupimm_round_ps): Ditto.
20179 (_mm_fixupimm_round_sd): Ditto.
20180 (_mm_maskz_fixupimm_round_sd): Ditto.
20181 (_mm_fixupimm_round_ss): Ditto.
20182 (_mm_maskz_fixupimm_round_ss): Ditto.
20183 (_mm512_fixupimm_pd): Ditto.
20184 (_mm512_maskz_fixupimm_pd): Ditto.
20185 (_mm512_fixupimm_ps): Ditto.
20186 (_mm512_maskz_fixupimm_ps): Ditto.
20187 (_mm_fixupimm_sd): Ditto.
20188 (_mm_maskz_fixupimm_sd): Ditto.
20189 (_mm_fixupimm_ss): Ditto.
20190 (_mm_maskz_fixupimm_ss): Ditto.
20191 (_mm512_mask_fixupimm_round_pd): Update builtin.
20192 (_mm512_mask_fixupimm_round_ps): Ditto.
20193 (_mm_mask_fixupimm_round_sd): Ditto.
20194 (_mm_mask_fixupimm_round_ss): Ditto.
20195 (_mm512_mask_fixupimm_pd): Ditto.
20196 (_mm512_mask_fixupimm_ps): Ditto.
20197 (_mm_mask_fixupimm_sd): Ditto.
20198 (_mm_mask_fixupimm_ss): Ditto.
20199 * config/i386/avx512vlintrin.h:
20200 (_mm256_fixupimm_pd): Update parameters and builtin.
20201 (_mm256_maskz_fixupimm_pd): Ditto.
20202 (_mm256_fixupimm_ps): Ditto.
20203 (_mm256_maskz_fixupimm_ps): Ditto.
20204 (_mm_fixupimm_pd): Ditto.
20205 (_mm_maskz_fixupimm_pd): Ditto.
20206 (_mm_fixupimm_ps): Ditto.
20207 (_mm_maskz_fixupimm_ps): Ditto.
20208 (_mm256_mask_fixupimm_pd): Update builtin.
20209 (_mm256_mask_fixupimm_ps): Ditto.
20210 (_mm_mask_fixupimm_pd): Ditto.
20211 (_mm_mask_fixupimm_ps): Ditto.
20212 * config/i386/i386-builtin-types.def: Add new types and remove
20214 * config/i386/i386-builtin.def: Update builtin definitions.
20215 * config/i386/i386.c: Handle new builtin types and remove useless ones.
20216 * config/i386/sse.md: Update VFIXUPIMM* patterns.
20217 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20218 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20219 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
20220 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20221 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20222 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
20223 * config/i386/subst.md:
20224 (round_saeonly_sd_mask_operand4): Add new subst_attr.
20225 (round_saeonly_sd_mask_op4): Ditto.
20226 (round_saeonly_expand_operand5): Ditto.
20227 (round_saeonly_expand): Update.
20229 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20233 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
20235 * config/i386/sse.md: Combine VFIXUPIMM* patterns
20236 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20237 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20238 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
20239 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
20240 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
20241 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
20243 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
20247 2018-12-15 Jakub Jelinek <jakub@redhat.com>
20250 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
20251 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
20252 instead of UNSPEC_FIXUPIMM.
20254 2019-01-17 Richard Biener <rguenther@suse.de>
20257 * dwarf2out.c (want_pubnames): Never generate pubnames sections
20258 and friends for the LTO part of debug info.
20260 2019-01-17 Jakub Jelinek <jakub@redhat.com>
20262 PR tree-optimization/86214
20263 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
20266 PR rtl-optimization/88870
20267 * dce.c (deletable_insn_p): Never delete const/pure calls that can
20268 throw if we can't alter the cfg or delete dead exceptions.
20269 (mark_insn): Don't call find_call_stack_args for such calls.
20271 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
20273 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
20274 prototypes for vec_st.
20275 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
20276 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
20277 mainly on signed/unsigned long long and double.
20279 2019-01-16 David Malcolm <dmalcolm@redhat.com>
20282 * combine.c (delete_noop_moves): Convert to "bool" return,
20283 returning true if any edges are eliminated.
20284 (combine_instructions): Also return true if delete_noop_moves
20287 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20289 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
20290 correct max nunits for endian swap.
20291 (aarch64_expand_fcmla_builtin): Correct subreg code.
20292 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20293 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
20296 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
20298 * config/alpha/alpha.c (alpha_gimplify_va_arg):
20299 Handle split indirect COMPLEX_TYPE arguments.
20301 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
20304 * config/aarch64/aarch64-modes.def: Add comment about how the carry
20305 bit is set by add and compare.
20306 (CC_ADC): New CC_MODE.
20307 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
20308 to cache the code and mode of X. Adjust the shape of a CC_Cmode
20309 comparison. Add detection for CC_ADCmode.
20310 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
20312 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
20313 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
20314 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
20315 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
20316 to eliminate the need for zero-extending the operands.
20317 (add<mode>3_compareC_imm): Delete. Merge into ...
20318 (add<mode>3_compareC): ... this. Restructure the comparison to
20319 eliminate the need for zero-extending the operands.
20320 (add<mode>3_carryin): Use LTU for the overflow detection.
20321 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
20322 Reexpress comparison for overflow.
20323 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
20324 (add<mode>3_carryinC): Likewise.
20325 (add<mode>3_carryinV): Use LTU for carry between partials.
20326 * config/aarch64/predicates.md (aarch64_carry_operation): Update
20327 handling of CC_Cmode and add CC_ADCmode.
20328 (aarch64_borrow_operation): Likewise.
20330 2019-01-16 Tamar Christina <tamar.christina@arm.com>
20332 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
20333 Remove patternmode.
20334 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
20335 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20336 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
20337 Remove endianness conversion.
20339 2019-01-16 Martin Liska <mliska@suse.cz>
20341 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
20343 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
20345 * gcc.c (add_sysrooted_hdrs_prefix): New function.
20346 (path_prefix_reset): Move up in the source file.
20347 (find_fortran_preinclude_file): Make complex search for the
20348 fortran header files.
20350 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
20352 * godump.c (go_output_typedef): When outputting a typedef, refer
20353 to the underlying type by its name and not its structure.
20355 2019-01-15 David Malcolm <dmalcolm@redhat.com>
20358 * tree.c (build_function_type): Assert that arg_types is not
20361 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
20363 PR inline-asm/52813
20364 * doc/extend.texi: Document that listing the stack pointer in the
20365 clobber list of an asm is a deprecated feature.
20366 * common.opt (Wdeprecated): Moved from c-family/c.opt.
20367 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
20368 warning instead of an error for clobbers of the stack pointer.
20369 Add a note explaining why.
20371 2019-01-15 Richard Biener <rguenther@suse.de>
20374 * dwarf2out.c (gen_member_die): Do not generate inheritance
20377 2019-01-15 Richard Biener <rguenther@suse.de>
20379 PR tree-optimization/88855
20380 * tree-if-conv.c (combine_blocks): Collect
20381 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
20383 2019-01-15 Tom de Vries <tdevries@suse.de>
20386 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
20387 lhs == NULL_TREE for gang-level reduction.
20389 2019-01-15 Richard Biener <rguenther@suse.de>
20390 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20393 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
20394 return true if SSA_NAME is already marked in visited bitmap.
20395 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
20397 2019-01-15 Jakub Jelinek <jakub@redhat.com>
20399 PR tree-optimization/88775
20400 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
20401 equal == 0 equality pointer comparisons some more if compared in
20402 integral types and either one points to an automatic var and the
20403 other to a global, or we can prove at least one points to the middle
20404 or both point to start or both point to end.
20406 2019-01-14 Andi Kleen <ak@linux.intel.com>
20408 * Makefile.in: Lower autofdo sampling rate by 10x.
20409 * Makefile.tpl: Dito.
20411 2019-01-14 Tom Honermann <tom@honermann.net>
20413 * defaults.h: Define CHAR8_TYPE.
20415 2019-01-14 Martin Sebor <msebor@redhat.com>
20418 * doc/extend.texi (Darwin Format Checks): Clarify.
20420 2019-01-14 Richard Biener <rguenther@suse.de>
20422 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
20423 whether we are in (simplify ...) or (match ...) context.
20425 2019-01-14 Jakub Jelinek <jakub@redhat.com>
20427 PR rtl-optimization/88796
20428 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
20429 * cfgexpand.c (stack_protect_prologue): Initialize
20430 crtl->stack_protect_guard_decl.
20431 * function.c (stack_protect_epilogue): Use it instead of calling
20432 targetm.stack_protect_guard again.
20433 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
20434 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
20435 crtl->stack_protect_guard_decl.
20436 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
20437 on the returned MEM_EXPR.
20439 2019-01-12 Tom de Vries <tdevries@suse.de>
20441 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
20442 vector length using -fopenacc-dim.
20444 2019-01-12 Tom de Vries <tdevries@suse.de>
20446 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
20447 lengths into account.
20449 2019-01-12 Svante Signell <svante.signell@gmail.com>
20451 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
20452 (TARGET_CAN_SPLIT_STACK): Define.
20453 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
20455 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20457 * params.def (inline-unit-growth): Set to 40.
20459 2019-01-12 Jakub Jelinek <jakub@redhat.com>
20461 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
20463 2019-01-12 Tom de Vries <tdevries@suse.de>
20465 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
20466 region calling vector-partitionable routine, set default_vector_length
20469 2019-01-12 Tom de Vries <tdevries@suse.de>
20471 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
20472 variable default_vector_length.
20474 2019-01-12 Tom de Vries <tdevries@suse.de>
20476 PR middle-end/88703
20477 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
20478 from oacc_default_dims, as oacc_validate_dims would do it, and apply
20481 2019-01-12 Tom de Vries <tdevries@suse.de>
20483 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
20484 (nvptx_goacc_validate_dims): Add used parameter.
20485 * doc/tm.texi: Regenerate.
20486 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
20487 argument to call to targetm.goacc.validate_dims.
20488 (default_goacc_validate_dims): Add used
20490 * target.def (validate_dims): Add used parameter in DEFHOOK.
20491 * targhooks.h (default_goacc_validate_dims): Add used parameter.
20493 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20495 PR middle-end/85956
20497 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
20499 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
20500 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
20501 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
20502 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
20504 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
20506 PR rtl-optimization/87305
20508 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
20509 for little endian pseudos used as paradoxical subreg.
20511 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20513 PR tree-optimization/88693
20514 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
20515 for STRING_CSTs that don't contain any NUL characters in the first
20516 TREE_STRING_LENGTH bytes.
20518 2019-01-11 Alan Modra <amodra@gmail.com>
20522 * genattrtab.c (min_fn): Don't translate values.
20523 (min_attr_value): Return INT_MAX when the value can't be calculated.
20524 Return minimum among any values that can be calculated.
20525 (max_attr_value): Adjust.
20527 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20529 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
20531 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20533 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20534 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
20535 (aarch64_return_call_with_max_clobbers): New function.
20536 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
20537 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
20539 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
20540 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
20541 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
20542 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
20543 * cselib.c (cselib_process_insn): Add argument to
20544 targetm.hard_regno_call_part_clobbered call.
20545 * ira-conflicts.c (ira_build_conflicts): Ditto.
20546 * ira-costs.c (ira_tune_allocno_costs): Ditto.
20547 * lra-constraints.c (inherit_reload_reg): Ditto.
20548 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
20549 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
20550 argument. Call targetm.return_call_with_max_clobbers.
20551 Add argument to targetm.hard_regno_call_part_clobbered call.
20552 (calls_have_same_clobbers_p): New function.
20553 (process_bb_lives): Add call_insn and last_call_insn variables.
20554 Pass call_insn to check_pseudos_live_through_calls.
20555 Modify if stmt to check targetm.return_call_with_max_clobbers.
20556 Update setting of flush variable.
20557 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
20559 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
20560 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
20561 targetm.hard_regno_call_part_clobbered call.
20562 * reginfo.c (choose_hard_reg_mode): Ditto.
20563 * regrename.c (check_new_reg_p): Ditto.
20564 * reload.c (find_equiv_reg): Ditto.
20565 * reload1.c (emit_reload_insns): Ditto.
20566 * sched-deps.c (deps_analyze_insn): Ditto.
20567 * sel-sched.c (init_regs_for_mode): Ditto.
20568 (mark_unavailable_hard_regs): Ditto.
20569 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
20570 * target.def (hard_regno_call_part_clobbered): Add insn argument.
20571 (return_call_with_max_clobbers): New target function.
20572 * doc/tm.texi: Regenerate.
20573 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
20574 * hooks.c (hook_bool_uint_mode_false): Change to
20575 hook_bool_insn_uint_mode_false.
20576 * hooks.h (hook_bool_uint_mode_false): Ditto.
20578 2019-01-11 Steve Ellcey <sellcey@marvell.com>
20580 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
20581 (aarch64_remove_extra_call_preserved_regs): New function.
20582 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
20583 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
20584 * doc/tm.texi: Regenerate.
20585 * final.c (get_call_reg_set_usage): Call new hook.
20586 * target.def (remove_extra_call_preserved_regs): New hook.
20587 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
20588 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
20590 2019-01-11 Jakub Jelinek <jakub@redhat.com>
20593 * passes.c (finish_optimization_passes): Call print_combine_total_stats
20594 inside of pass_combine_1 dump rather than pass_profile_1.
20596 2019-01-11 Tom de Vries <tdevries@suse.de>
20598 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
20599 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
20600 (PTX_NUM_PER_WORKER_BARRIERS): Define.
20601 (nvptx_apply_dim_limits): Prevent vector_length 64 and
20604 2019-01-11 Tom de Vries <tdevries@suse.de>
20606 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
20608 2019-01-11 Jan Beulich <jbeulich@suse.com>
20610 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
20611 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
20612 sse2_cvtsi2sd): Add {l}.
20613 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
20616 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20619 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
20621 (*float<floatunssuffix>v2div2sf2): New define_insn.
20622 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
20623 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
20624 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
20625 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
20626 match_operands with "const0_operand" "C".
20628 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20630 * config/aarch64/aarch64-builtins.c
20631 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
20632 (aarch64_init_simd_builtins): ...Here
20634 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
20636 PR rtl-optimization/87305
20638 (setup_live_pseudos_and_spill_after_risky_transforms): Check
20639 allocation for big endian pseudos used as paradoxical subregs and
20640 spill them if it is wrong.
20641 * lra-constraints.c (lra_constraints): Add a comment.
20643 2019-01-10 Richard Biener <rguenther@suse.de>
20645 PR tree-optimization/88792
20646 * tree-ssa-pre.c (get_representative_for): Do not return a
20649 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20651 PR middle-end/84877
20653 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
20654 (assign_parm_setup_block): Do the argument slot realignment here
20657 2019-01-10 Stefan Agner <stefan@agner.ch>
20660 * config/arm/arm.c (arm_option_override_internal): Force
20661 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
20663 2019-01-10 Jakub Jelinek <jakub@redhat.com>
20666 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
20669 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20671 * config/arm/arm-builtins.c
20672 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
20673 (MAC_LANE_PAIR_QUALIFIERS): New.
20674 (arm_expand_builtin_args): Use it.
20675 (arm_expand_builtin_1): Likewise.
20676 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
20677 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
20678 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
20679 * config/arm/arm_neon.h:
20680 (vcadd_rot90_f16): New.
20681 (vcaddq_rot90_f16): New.
20682 (vcadd_rot270_f16): New.
20683 (vcaddq_rot270_f16): New.
20686 (vcmla_lane_f16): New.
20687 (vcmla_laneq_f16): New.
20688 (vcmlaq_lane_f16): New.
20689 (vcmlaq_laneq_f16): New.
20690 (vcmla_rot90_f16): New.
20691 (vcmlaq_rot90_f16): New.
20692 (vcmla_rot90_lane_f16): New.
20693 (vcmla_rot90_laneq_f16): New.
20694 (vcmlaq_rot90_lane_f16): New.
20695 (vcmlaq_rot90_laneq_f16): New.
20696 (vcmla_rot180_f16): New.
20697 (vcmlaq_rot180_f16): New.
20698 (vcmla_rot180_lane_f16): New.
20699 (vcmla_rot180_laneq_f16): New.
20700 (vcmlaq_rot180_lane_f16): New.
20701 (vcmlaq_rot180_laneq_f16): New.
20702 (vcmla_rot270_f16): New.
20703 (vcmlaq_rot270_f16): New.
20704 (vcmla_rot270_lane_f16): New.
20705 (vcmla_rot270_laneq_f16): New.
20706 (vcmlaq_rot270_lane_f16): New.
20707 (vcmlaq_rot270_laneq_f16): New.
20708 (vcadd_rot90_f32): New.
20709 (vcaddq_rot90_f32): New.
20710 (vcadd_rot270_f32): New.
20711 (vcaddq_rot270_f32): New.
20714 (vcmla_lane_f32): New.
20715 (vcmla_laneq_f32): New.
20716 (vcmlaq_lane_f32): New.
20717 (vcmlaq_laneq_f32): New.
20718 (vcmla_rot90_f32): New.
20719 (vcmlaq_rot90_f32): New.
20720 (vcmla_rot90_lane_f32): New.
20721 (vcmla_rot90_laneq_f32): New.
20722 (vcmlaq_rot90_lane_f32): New.
20723 (vcmlaq_rot90_laneq_f32): New.
20724 (vcmla_rot180_f32): New.
20725 (vcmlaq_rot180_f32): New.
20726 (vcmla_rot180_lane_f32): New.
20727 (vcmla_rot180_laneq_f32): New.
20728 (vcmlaq_rot180_lane_f32): New.
20729 (vcmlaq_rot180_laneq_f32): New.
20730 (vcmla_rot270_f32): New.
20731 (vcmlaq_rot270_f32): New.
20732 (vcmla_rot270_lane_f32): New.
20733 (vcmla_rot270_laneq_f32): New.
20734 (vcmlaq_rot270_lane_f32): New.
20735 (vcmlaq_rot270_laneq_f32): New.
20736 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
20737 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
20738 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
20739 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
20740 vcmlaq_lane270): New.
20741 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20742 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20743 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20744 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20745 (arm_option_reconfigure_globals): Use them.
20746 * config/arm/iterators.md (VDF, VQ_HSF): New.
20747 (VCADD, VCMLA): New.
20748 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20749 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20751 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20752 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
20754 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20756 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20757 Add qualifier_lane_pair_index.
20758 (emit-rtl.h): Include.
20759 (TYPES_QUADOP_LANE_PAIR): New.
20760 (aarch64_simd_expand_args): Use it.
20761 (aarch64_simd_expand_builtin): Likewise.
20762 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
20764 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
20765 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
20766 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
20767 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
20768 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
20769 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
20770 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
20771 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
20772 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
20773 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
20774 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
20775 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
20776 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
20777 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20778 Add __ARM_FEATURE_COMPLEX.
20779 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
20780 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
20781 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
20782 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20783 fcmlaq_lane270): New.
20784 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20785 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
20786 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
20787 * config/aarch64/arm_neon.h:
20788 (vcadd_rot90_f16): New.
20789 (vcaddq_rot90_f16): New.
20790 (vcadd_rot270_f16): New.
20791 (vcaddq_rot270_f16): New.
20794 (vcmla_lane_f16): New.
20795 (vcmla_laneq_f16): New.
20796 (vcmlaq_lane_f16): New.
20797 (vcmlaq_rot90_lane_f16): New.
20798 (vcmla_rot90_laneq_f16): New.
20799 (vcmla_rot90_lane_f16): New.
20800 (vcmlaq_rot90_f16): New.
20801 (vcmla_rot90_f16): New.
20802 (vcmlaq_laneq_f16): New.
20803 (vcmla_rot180_laneq_f16): New.
20804 (vcmla_rot180_lane_f16): New.
20805 (vcmlaq_rot180_f16): New.
20806 (vcmla_rot180_f16): New.
20807 (vcmlaq_rot90_laneq_f16): New.
20808 (vcmlaq_rot270_laneq_f16): New.
20809 (vcmlaq_rot270_lane_f16): New.
20810 (vcmla_rot270_laneq_f16): New.
20811 (vcmlaq_rot270_f16): New.
20812 (vcmla_rot270_f16): New.
20813 (vcmlaq_rot180_laneq_f16): New.
20814 (vcmlaq_rot180_lane_f16): New.
20815 (vcmla_rot270_lane_f16): New.
20816 (vcadd_rot90_f32): New.
20817 (vcaddq_rot90_f32): New.
20818 (vcaddq_rot90_f64): New.
20819 (vcadd_rot270_f32): New.
20820 (vcaddq_rot270_f32): New.
20821 (vcaddq_rot270_f64): New.
20825 (vcmla_lane_f32): New.
20826 (vcmla_laneq_f32): New.
20827 (vcmlaq_lane_f32): New.
20828 (vcmlaq_laneq_f32): New.
20829 (vcmla_rot90_f32): New.
20830 (vcmlaq_rot90_f32): New.
20831 (vcmlaq_rot90_f64): New.
20832 (vcmla_rot90_lane_f32): New.
20833 (vcmla_rot90_laneq_f32): New.
20834 (vcmlaq_rot90_lane_f32): New.
20835 (vcmlaq_rot90_laneq_f32): New.
20836 (vcmla_rot180_f32): New.
20837 (vcmlaq_rot180_f32): New.
20838 (vcmlaq_rot180_f64): New.
20839 (vcmla_rot180_lane_f32): New.
20840 (vcmla_rot180_laneq_f32): New.
20841 (vcmlaq_rot180_lane_f32): New.
20842 (vcmlaq_rot180_laneq_f32): New.
20843 (vcmla_rot270_f32): New.
20844 (vcmlaq_rot270_f32): New.
20845 (vcmlaq_rot270_f64): New.
20846 (vcmla_rot270_lane_f32): New.
20847 (vcmla_rot270_laneq_f32): New.
20848 (vcmlaq_rot270_lane_f32): New.
20849 (vcmlaq_rot270_laneq_f32): New.
20850 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20851 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20852 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20853 (FCADD, FCMLA): New.
20855 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20857 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20861 * config/pa/pa.c: Change "can not" to "cannot".
20862 * gimple-ssa-evrp-analyze.c: Likewise.
20863 * ipa-icf.c: Likewise.
20864 * ipa-polymorphic-call.c: Likewise.
20865 * ipa-pure-const.c: Likewise.
20866 * lra-constraints.c: Likewise.
20867 * lra-remat.c: Likewise.
20868 * reload1.c: Likewise.
20869 * reorg.c: Likewise.
20870 * tree-ssa-uninit.c: Likewise.
20872 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20876 * Makefile.in: Mechanically replace "can not" with "cannot".
20877 * alias.c: Likewise.
20878 * builtins.c: Likewise.
20879 * calls.c: Likewise.
20880 * cgraph.c: Likewise.
20881 * cgraph.h: Likewise.
20882 * cgraphclones.c: Likewise.
20883 * cgraphunit.c: Likewise.
20884 * combine-stack-adj.c: Likewise.
20885 * combine.c: Likewise.
20886 * common/config/i386/i386-common.c: Likewise.
20887 * config/aarch64/aarch64.c: Likewise.
20888 * config/alpha/sync.md: Likewise.
20889 * config/arc/arc.c: Likewise.
20890 * config/arc/predicates.md: Likewise.
20891 * config/arm/arm-c.c: Likewise.
20892 * config/arm/arm.c: Likewise.
20893 * config/arm/arm.h: Likewise.
20894 * config/arm/arm.md: Likewise.
20895 * config/arm/cortex-r4f.md: Likewise.
20896 * config/csky/csky.c: Likewise.
20897 * config/csky/csky.h: Likewise.
20898 * config/darwin-f.c: Likewise.
20899 * config/epiphany/epiphany.md: Likewise.
20900 * config/i386/i386.c: Likewise.
20901 * config/i386/sol2.h: Likewise.
20902 * config/m68k/m68k.c: Likewise.
20903 * config/mcore/mcore.h: Likewise.
20904 * config/microblaze/microblaze.md: Likewise.
20905 * config/mips/20kc.md: Likewise.
20906 * config/mips/sb1.md: Likewise.
20907 * config/nds32/nds32.c: Likewise.
20908 * config/nds32/predicates.md: Likewise.
20909 * config/pa/pa.c: Likewise.
20910 * config/rs6000/e300c2c3.md: Likewise.
20911 * config/rs6000/rs6000.c: Likewise.
20912 * config/s390/s390.h: Likewise.
20913 * config/sh/sh.c: Likewise.
20914 * config/sh/sh.md: Likewise.
20915 * config/spu/vmx2spu.h: Likewise.
20916 * cprop.c: Likewise.
20917 * dbxout.c: Likewise.
20918 * df-scan.c: Likewise.
20919 * doc/cfg.texi: Likewise.
20920 * doc/extend.texi: Likewise.
20921 * doc/fragments.texi: Likewise.
20922 * doc/gty.texi: Likewise.
20923 * doc/invoke.texi: Likewise.
20924 * doc/lto.texi: Likewise.
20925 * doc/md.texi: Likewise.
20926 * doc/objc.texi: Likewise.
20927 * doc/rtl.texi: Likewise.
20928 * doc/tm.texi: Likewise.
20930 * emit-rtl.c: Likewise.
20931 * emit-rtl.h: Likewise.
20932 * except.c: Likewise.
20933 * expmed.c: Likewise.
20934 * expr.c: Likewise.
20935 * fold-const.c: Likewise.
20936 * genautomata.c: Likewise.
20937 * gimple-fold.c: Likewise.
20938 * hard-reg-set.h: Likewise.
20939 * ifcvt.c: Likewise.
20940 * ipa-comdats.c: Likewise.
20941 * ipa-cp.c: Likewise.
20942 * ipa-devirt.c: Likewise.
20943 * ipa-fnsummary.c: Likewise.
20944 * ipa-icf.c: Likewise.
20945 * ipa-inline-transform.c: Likewise.
20946 * ipa-inline.c: Likewise.
20947 * ipa-polymorphic-call.c: Likewise.
20948 * ipa-profile.c: Likewise.
20949 * ipa-prop.c: Likewise.
20950 * ipa-pure-const.c: Likewise.
20951 * ipa-reference.c: Likewise.
20952 * ipa-split.c: Likewise.
20953 * ipa-visibility.c: Likewise.
20955 * ira-build.c: Likewise.
20956 * ira-color.c: Likewise.
20957 * ira-conflicts.c: Likewise.
20958 * ira-costs.c: Likewise.
20959 * ira-int.h: Likewise.
20960 * ira-lives.c: Likewise.
20963 * loop-invariant.c: Likewise.
20964 * loop-unroll.c: Likewise.
20965 * lower-subreg.c: Likewise.
20966 * lra-assigns.c: Likewise.
20967 * lra-constraints.c: Likewise.
20968 * lra-eliminations.c: Likewise.
20969 * lra-lives.c: Likewise.
20970 * lra-remat.c: Likewise.
20971 * lra-spills.c: Likewise.
20973 * lto-cgraph.c: Likewise.
20974 * lto-streamer-out.c: Likewise.
20975 * postreload-gcse.c: Likewise.
20976 * predict.c: Likewise.
20977 * profile-count.h: Likewise.
20978 * profile.c: Likewise.
20979 * recog.c: Likewise.
20981 * reload.c: Likewise.
20982 * reload1.c: Likewise.
20983 * reorg.c: Likewise.
20984 * resource.c: Likewise.
20985 * rtl.def: Likewise.
20987 * rtlanal.c: Likewise.
20988 * sched-deps.c: Likewise.
20989 * sched-ebb.c: Likewise.
20990 * sched-rgn.c: Likewise.
20991 * sel-sched-ir.c: Likewise.
20992 * sel-sched.c: Likewise.
20993 * shrink-wrap.c: Likewise.
20994 * simplify-rtx.c: Likewise.
20995 * symtab.c: Likewise.
20996 * target.def: Likewise.
20997 * toplev.c: Likewise.
20998 * tree-call-cdce.c: Likewise.
20999 * tree-cfg.c: Likewise.
21000 * tree-complex.c: Likewise.
21001 * tree-core.h: Likewise.
21002 * tree-eh.c: Likewise.
21003 * tree-inline.c: Likewise.
21004 * tree-loop-distribution.c: Likewise.
21005 * tree-nrv.c: Likewise.
21006 * tree-profile.c: Likewise.
21007 * tree-sra.c: Likewise.
21008 * tree-ssa-alias.c: Likewise.
21009 * tree-ssa-dce.c: Likewise.
21010 * tree-ssa-dom.c: Likewise.
21011 * tree-ssa-forwprop.c: Likewise.
21012 * tree-ssa-loop-im.c: Likewise.
21013 * tree-ssa-loop-ivcanon.c: Likewise.
21014 * tree-ssa-loop-ivopts.c: Likewise.
21015 * tree-ssa-loop-niter.c: Likewise.
21016 * tree-ssa-phionlycprop.c: Likewise.
21017 * tree-ssa-phiopt.c: Likewise.
21018 * tree-ssa-propagate.c: Likewise.
21019 * tree-ssa-threadedge.c: Likewise.
21020 * tree-ssa-threadupdate.c: Likewise.
21021 * tree-ssa-uninit.c: Likewise.
21022 * tree-ssanames.c: Likewise.
21023 * tree-streamer-out.c: Likewise.
21024 * tree.c: Likewise.
21025 * tree.h: Likewise.
21026 * vr-values.c: Likewise.
21028 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
21030 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
21031 (ix86_split_xorsign): Ditto.
21032 * config/i386/i386.c (ix86_expand_xorsign): New function.
21033 (ix86_split_xorsign): Ditto.
21034 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
21035 (xorsign<mode>3): New expander.
21036 (xorsign<mode>3_1): New insn_and_split pattern.
21037 * config/i386/sse.md (xorsign<mode>3): New expander.
21039 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21041 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
21042 (*tablejump_sp64): Likewise.
21043 (*tablejump<P:mode>): ...this.
21044 (*call_address_sp32): Merge into...
21045 (*call_address_sp64): Likewise.
21046 (*call_address<P:mode>): ...this.
21047 (*call_symbolic_sp32): Merge into...
21048 (*call_symbolic_sp64): Likewise.
21049 (*call_symbolic<P:mode>): ...this.
21050 (call_value): Remove constraint and add predicate.
21051 (*call_value_address_sp32): Merge into...
21052 (*call_value_address_sp64): Likewise.
21053 (*call_value_address<P:mode>): ...this.
21054 (*call_value_symbolic_sp32): Merge into...
21055 (*call_value_symbolic_sp64): Likewise.
21056 (*call_value_symbolic<P:mode>): ...this.
21057 (*sibcall_symbolic_sp32): Merge into...
21058 (*sibcall_symbolic_sp64): Likewise.
21059 (*sibcall_symbolic<P:mode>): ...this.
21060 (sibcall_value): Remove constraint and add predicate.
21061 (*sibcall_value_symbolic_sp32): Merge into...
21062 (*sibcall_value_symbolic_sp64): Likewise.
21063 (*sibcall_value_symbolic<P:mode>): ...this.
21064 (window_save): Minor tweak.
21065 (*branch_sp32): Merge into...
21066 (*branch_sp64): Likewise.
21067 (*branch<P:mode>): ...this.
21069 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21070 James Clarke <jrtc27@jrtc27.com>
21073 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
21074 consistently in TLS address generation and adjust code to the renaming
21075 of patterns. Mark calls to __tls_get_addr as const.
21076 * config/sparc/sparc.md (tgd_hi22): Turn into...
21077 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
21078 (tgd_lo10): Turn into...
21079 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
21080 (tgd_add32): Merge into...
21081 (tgd_add64): Likewise.
21082 (tgd_add<P:mode>): ...this and use Pmode throughout.
21083 (tldm_hi22): Turn into...
21084 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
21085 (tldm_lo10): Turn into...
21086 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
21087 (tldm_add32): Merge into...
21088 (tldm_add64): Likewise.
21089 (tldm_add<P:mode>): ...this and use Pmode throughout.
21090 (tldm_call32): Merge into...
21091 (tldm_call64): Likewise.
21092 (tldm_call<P:mode>): ...this and use Pmode throughout.
21093 (tldo_hix22): Turn into...
21094 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
21095 (tldo_lox10): Turn into...
21096 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
21097 (tldo_add32): Merge into...
21098 (tldo_add64): Likewise.
21099 (tldo_add<P:mode>): ...this and use Pmode throughout.
21100 (tie_hi22): Turn into...
21101 (tie_hi22<P:mode>): ...this and use Pmode throughout.
21102 (tie_lo10): Turn into...
21103 (tie_lo10<P:mode>): ...this and use Pmode throughout.
21104 (tie_ld64): Use DImode throughout.
21105 (tie_add32): Merge into...
21106 (tie_add64): Likewise.
21107 (tie_add<P:mode>): ...this and use Pmode throughout.
21108 (tle_hix22_sp32): Merge into...
21109 (tle_hix22_sp64): Likewise.
21110 (tle_hix22<P:mode>): ...this and use Pmode throughout.
21111 (tle_lox22_sp32): Merge into...
21112 (tle_lox22_sp64): Likewise.
21113 (tle_lox22<P:mode>): ...this and use Pmode throughout.
21114 (*tldo_ldub_sp32): Merge into...
21115 (*tldo_ldub_sp64): Likewise.
21116 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
21117 (*tldo_ldub1_sp32): Merge into...
21118 (*tldo_ldub1_sp64): Likewise.
21119 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
21120 (*tldo_ldub2_sp32): Merge into...
21121 (*tldo_ldub2_sp64): Likewise.
21122 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
21123 (*tldo_ldsb1_sp32): Merge into...
21124 (*tldo_ldsb1_sp64): Likewise.
21125 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
21126 (*tldo_ldsb2_sp32): Merge into...
21127 (*tldo_ldsb2_sp64): Likewise.
21128 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
21129 (*tldo_ldub3_sp64): Use DImode throughout.
21130 (*tldo_ldsb3_sp64): Likewise.
21131 (*tldo_lduh_sp32): Merge into...
21132 (*tldo_lduh_sp64): Likewise.
21133 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
21134 (*tldo_lduh1_sp32): Merge into...
21135 (*tldo_lduh1_sp64): Likewise.
21136 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
21137 (*tldo_ldsh1_sp32): Merge into...
21138 (*tldo_ldsh1_sp64): Likewise.
21139 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
21140 (*tldo_lduh2_sp64): Use DImode throughout.
21141 (*tldo_ldsh2_sp64): Likewise.
21142 (*tldo_lduw_sp32): Merge into...
21143 (*tldo_lduw_sp64): Likewise.
21144 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
21145 (*tldo_lduw1_sp64): Use DImode throughout.
21146 (*tldo_ldsw1_sp64): Likewise.
21147 (*tldo_ldx_sp64): Likewise.
21148 (*tldo_stb_sp32): Merge into...
21149 (*tldo_stb_sp64): Likewise.
21150 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
21151 (*tldo_sth_sp32): Merge into...
21152 (*tldo_sth_sp64): Likewise.
21153 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
21154 (*tldo_stw_sp32): Merge into...
21155 (*tldo_stw_sp64): Likewise.
21156 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
21157 (*tldo_stx_sp64): Use DImode throughout.
21159 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21161 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
21162 check configure option to set BTI and Return Address Signing.
21163 * configure.ac: Add --enable-standard-branch-protection and
21164 --disable-standard-branch-protection.
21165 * configure: Regenerated.
21166 * doc/install.texi: Document the same.
21168 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21169 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21171 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
21172 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
21173 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
21175 * config/aarch64/aarch64-bti-insert.c: New file.
21176 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
21178 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
21180 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
21181 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
21182 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
21183 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
21185 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21187 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
21188 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
21189 Disable bti for -mbranch-protection=none.
21190 (aarch64_handle_standard_branch_protection): Enable bti for
21191 -mbranch-protection=standard.
21192 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
21193 -mbranch-protection.
21194 (aarch64_bti_enabled): Check if bti is enabled.
21195 * config/aarch64/aarch64.opt: Declare target variable.
21196 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
21198 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21200 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
21201 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
21202 (aarch64_expand_epilogue): Likewise.
21203 (aarch64_output_mi_thunk): Likewise.
21204 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
21205 TAILCALL_ADDR_REGS to x16 and x17.
21206 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
21208 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21210 * config/aarch64/aarch64-option-extensions.def: Define
21211 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
21212 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
21213 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
21214 (AARCH64_FL_PREDRES): New.
21215 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
21216 AARCH64_FL_PREDRES by default.
21217 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
21219 2018-01-09 Sudakshina Das <sudi.das@arm.com>
21221 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
21223 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
21224 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
21225 * doc/invoke.texi: Document ARMv8.5-A.
21227 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21229 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
21230 (xorsign<mode>3): Likewise.
21232 2019-01-09 Jelinek <jakub@redhat.com>
21234 PR middle-end/88758
21235 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
21236 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
21238 PR rtl-optimization/88331
21239 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
21240 not currently_expanding_to_rtl.
21242 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
21244 * doc/invoke.texi (-Os): Remove trailing spaces.
21245 (-finline-functions): Remove reference to -O2.
21247 2019-01-08 Jakub Jelinek <jakub@redhat.com>
21249 PR rtl-optimization/79593
21250 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
21252 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
21253 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
21255 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
21258 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
21262 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
21263 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
21265 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
21268 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
21269 ix86_avx_u128_mode_entry.
21271 2019-01-08 Martin Liska <mliska@suse.cz>
21273 PR tree-optimization/88753
21274 * tree-switch-conversion.c (switch_conversion::build_one_array):
21275 Come up with local variable constructor. Convert first to
21276 type of constructor values.
21278 2019-01-08 Richard Biener <rguenther@suse.de>
21280 PR tree-optimization/86554
21281 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
21282 rpo_avail): Move earlier.
21283 (visit_nary_op): When value-numbering to expressions
21284 with different overflow behavior make sure there's an
21285 available expression on the path.
21287 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
21289 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
21290 aarch64_parse_branch_protection,
21291 struct aarch64_branch_protect_type,
21292 aarch64_handle_no_branch_protection,
21293 aarch64_handle_standard_branch_protection,
21294 aarch64_validate_mbranch_protection,
21295 aarch64_handle_pac_ret_protection,
21296 aarch64_handle_attr_branch_protection,
21297 accepted_branch_protection_string,
21298 aarch64_pac_ret_subtypes,
21299 aarch64_branch_protect_types,
21300 aarch64_handle_pac_ret_leaf): Define.
21301 (aarch64_override_options_after_change_1, aarch64_override_options):
21302 Add check for accepted_branch_protection_string.
21303 (aarch64_option_save): Save accepted_branch_protection_string.
21304 (aarch64_option_restore): Save accepted_branch_protection_string.
21305 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
21306 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
21307 msign-return-address.
21308 * doc/invoke.texi: Add mbranch-protection.
21310 2019-01-08 Alan Modra <amodra@gmail.com>
21313 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
21314 Delete "unknownp" parameter. Adjust callers. Handle
21315 CONST_INT, PLUS, MINUS, and MULT.
21316 (attr_value_aligned): Renamed from or_attr_value.
21317 (min_attr_value): Return INT_MIN for unhandled rtl case..
21318 (min_fn): ..and translate to INT_MAX here.
21319 (write_length_unit_log): Modify to cope without "unknown".
21320 (write_attr_value): Handle IF_THEN_ELSE.
21322 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21324 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
21325 optimization for masked stores.
21327 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21329 PR middle-end/88567
21330 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
21331 output vector directly to duplicate_and_interleave instead of
21332 going through a temporary. Postpone insertion of ctor_seq to
21333 the end of the loop.
21335 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
21338 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
21339 unsigned_p. Handle signed and unsigned overflow correction as
21341 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
21343 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
21345 (add<mode>3_compareV_imm): Make this callable for expanding.
21346 (subv<GPI:mode>4): Use register_operand for operand 1. Use
21347 aarch64_plus_operand for operand 2.
21348 (subv<GPI:mode>_insn): New insn pattern.
21349 (subv<GPI:mode>_imm): Likewise.
21350 (negv<GPI:mode>3): New expand pattern.
21351 (negv<GPI:mode>_insn): New insn pattern.
21352 (negv<GPI:mode>_cmp_only): Likewise.
21353 (cmpv<GPI:mode>_insn): Likewise.
21354 (subvti4): Use register_operand for operand 1. Update call to
21355 aarch64_expand_subvti.
21356 (usubvti4): Likewise.
21357 (negvti3): New expand pattern.
21358 (negdi_carryout): New insn pattern.
21359 (negvdi_carryinV): New insn pattern.
21360 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
21361 version the named version.
21362 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
21364 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
21366 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
21368 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
21369 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
21370 (sub<mode>3_carryinCV): Delete.
21371 (sub<GPI:mode>3_carryinV): New expand pattern.
21372 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
21374 2019-01-07 Richard Biener <rguenther@suse.de>
21376 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
21377 of tree_operand_hash.
21379 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21381 PR tree-optimization/88598
21382 * tree.h (single_nonzero_element): Declare.
21383 * tree.c (single_nonzero_element): New function.
21384 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
21385 if I is the only nonzero element of CST.
21387 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
21389 PR tree-optimization/88598
21390 * tree.h (initializer_each_zero_or_onep): Declare.
21391 * tree.c (initializer_each_zero_or_onep): New function.
21392 (signed_or_unsigned_type_for): Handle float types too.
21393 (unsigned_type_for, signed_type_for): Update comments accordingly.
21394 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
21395 x & { 0 or -1, 0 or -1, ... }.
21397 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
21399 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
21400 with x86_64-pc-linux-gnu.
21402 2019-01-07 Tom de Vries <tdevries@suse.de>
21405 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
21407 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
21410 2019-01-07 Jakub Jelinek <jakub@redhat.com>
21412 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
21413 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
21414 TARGET_AVX512F as condition.
21417 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
21418 const_not_ok_for_debug_p target hook.
21419 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
21420 on UNSPEC and subexpressions thereof if all subexpressions of the
21421 UNSPEC are CONSTANT_P.
21423 PR tree-optimization/88676
21424 * tree-ssa-phiopt.c (two_value_replacement): New function.
21425 (tree_ssa_phiopt_worker): Call it.
21428 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
21429 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
21432 * tree-vect-generic.c: Include insn-config.h and recog.h.
21433 (expand_vector_piecewise): Add defaulted ret_type argument,
21434 if non-NULL, use that in preference to type for the result type.
21435 (expand_vector_parallel): Formatting fix.
21436 (do_vec_conversion, do_vec_narrowing_conversion,
21437 expand_vector_conversion): New functions.
21438 (expand_vector_operations_1): Call expand_vector_conversion
21439 for VEC_CONVERT ifn calls.
21440 * internal-fn.def (VEC_CONVERT): New internal function.
21441 * internal-fn.c (expand_VEC_CONVERT): New function.
21442 * fold-const-call.c (fold_const_vec_convert): New function.
21443 (fold_const_call): Use it for CFN_VEC_CONVERT.
21444 * doc/extend.texi (__builtin_convertvector): Document.
21446 2019-01-07 Tom de Vries <tdevries@suse.de>
21448 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
21449 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
21450 vector_red_partition, vector_red_sym): New global variables.
21451 (nvptx_option_override): Initialize vector_red_sym.
21452 (nvptx_declare_function_name): Restore red_partition register.
21453 (nvptx_file_end): Emit code to declare the vector reduction variables.
21454 (nvptx_output_red_partition): New function.
21455 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
21456 large vector reductions.
21457 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
21458 (nvptx_init_builtins): Add VECTOR_ADDR.
21459 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
21460 Handle nvptx_expand_shared_addr.
21461 (nvptx_get_shared_red_addr): Add vector argument and handle large
21463 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
21465 (nvptx_goacc_reduction_init): Likewise.
21466 (nvptx_goacc_reduction_fini): Likewise.
21467 (nvptx_goacc_reduction_teardown): Likewise.
21468 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
21469 init,fini,teardown}.
21470 (nvptx_init_axis_predicate): Initialize vector_red_partition.
21471 (nvptx_set_current_function): Init vector_red_partition.
21472 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
21473 (nvptx_red_partition): New insn.
21474 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
21476 2019-01-07 Tom de Vries <tdevries@suse.de>
21479 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
21482 2019-01-07 Tom de Vries <tdevries@suse.de>
21484 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
21485 (nvptx_option_override): Init oacc_bcast_partition.
21486 (nvptx_init_oacc_workers): New function.
21487 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
21488 (nvptx_needs_shared_bcast): New function.
21489 (nvptx_find_par): Generalize to enable vectors to use shared-memory
21490 to propagate state.
21491 (nvptx_shared_propagate): Initialize vector bcast partition and
21492 synchronization state.
21493 (nvptx_single): Generalize to enable vectors to use shared-memory
21494 to propagate state.
21495 (nvptx_process_pars): Likewise.
21496 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
21497 * config/nvptx/nvptx.h (struct machine_function): Add
21498 bcast_partition and sync_bar members.
21500 2019-01-07 Tom de Vries <tdevries@suse.de>
21502 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
21503 (nvptx_apply_dim_limits): New function.
21504 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
21507 2019-01-07 Tom de Vries <tdevries@suse.de>
21509 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
21510 as late as possible.
21512 2019-01-07 Tom de Vries <tdevries@suse.de>
21514 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
21515 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
21516 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
21517 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
21518 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
21520 2019-01-07 Tom de Vries <tdevries@suse.de>
21522 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
21524 2019-01-07 Tom de Vries <tdevries@suse.de>
21526 * omp-offload.c (oacc_get_min_dim): New function.
21527 * omp-offload.h (oacc_get_min_dim): Declare.
21529 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
21532 * config/i386/i386.c (function_value_ms_64): Return small sturct in
21533 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
21535 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21539 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
21541 * ipa-inline.c (edge_badness): Use inlined_time instead of
21542 inline_summaries->get.
21544 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21546 * opts.c (enable_fdo_optimizations): Enable
21547 version-loops-for-strides, loop-interchange, unrol-and-jam
21548 and tree-loop-distribution.
21549 * invoke.texi: Document newly enabled options.
21551 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21553 * doc/invoke.texi (max-inline-insns-small): New parameters.
21554 * ipa-inline.c (want_early_inline_function_p): simplify.
21555 (want_inline_small_function_p): Fix pasto from previous patch;
21556 use max-inline-insns-small bound.
21557 * params.def (max-inline-insns-small): New param.
21558 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
21559 variables correctly.
21561 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21563 * doc/invoke.texi: Document max-inline-insns-size,
21564 uninlined-function-insns, uninlined-function-time,
21565 uninlined-thunk-insns and uninlined-thunk-time.
21566 * params.def: Add max-inline-insns-size,
21567 uninlined-function-insns, uninlined-function-time,
21568 uninlined-thunk-insns and uninlined-thunk-time.
21569 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
21571 * ipa-inline.c (can_inline_edge_by_limits_p,
21572 want_inline_small_function_p): Use new parameters.
21574 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
21576 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
21578 2019-01-05 Jakub Jelinek <jakub@redhat.com>
21580 PR middle-end/82564
21582 * expr.c (expand_assignment): For calls returning VLA structures
21583 if to_rtx is not a MEM, force it into a stack temporary.
21586 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
21587 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
21588 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
21589 subexpressions of both operands.
21590 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
21591 subrtxes are CONSTANT_P.
21592 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
21593 2018-11-09 changes.
21595 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
21597 * params.def (hot-bb-count-ws-permille): Set to 990.
21599 2019-01-04 Martin Sebor <msebor@redhat.com>
21602 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
21605 2019-01-04 Martin Sebor <msebor@redhat.com>
21608 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
21610 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21612 * gdbinit.in: Turn off pagination for the skip commands, restore
21613 it to previous state afterwards.
21615 2019-01-04 Jakub Jelinek <jakub@redhat.com>
21618 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
21619 of GET_MODE (opN) as modes of the libcall arguments.
21621 2019-01-04 Jan Beulich <jbeulich@suse.com>
21623 * config/i386/sse.md
21624 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
21625 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
21626 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21627 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
21628 avx512f_vmcmp<mode>3<round_saeonly_name>,
21629 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
21630 avx512f_maskcmp<mode>3,
21631 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21632 <avx512>_cvt<ssemodesuffix>2mask<mode>,
21633 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21634 *<avx512>_cvtmask2<ssemodesuffix><mode>,
21635 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21636 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
21637 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21638 <avx512>_gt<mode>3<mask_scalar_merge_name>,
21639 <avx512>_testm<mode>3<mask_scalar_merge_name>,
21640 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
21641 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
21642 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
21643 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
21644 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
21645 avx512cd_maskb_vec_dup<mode>,
21646 avx512cd_maskw_vec_dup<mode>,
21647 avx512dq_fpclass<mode><mask_scalar_merge_name>,
21648 avx512dq_vmfpclass<mode>,
21649 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
21652 2019-01-03 Martin Sebor <msebor@redhat.com>
21654 PR tree-optimization/88659
21655 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
21657 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
21659 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
21660 unaligned vsx and avoid lxvd2x/stxvd2x.
21661 (gen_lvx_v4si_move): New function.
21663 2019-01-03 Tom de Vries <tdevries@suse.de>
21665 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
21666 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
21668 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
21670 2019-01-03 Tom de Vries <tdevries@suse.de>
21672 * config/nvptx/nvptx.c (struct offload_attrs): New.
21673 (populate_offload_attrs): New function. Factor mask extraction out of
21674 nvptx_reorg. Add extraction of dimensions.
21675 (nvptx_reorg): Use populate_offload_attrs.
21677 2019-01-03 Tom de Vries <tdevries@suse.de>
21679 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
21680 cases for oacc_min_dims_p and routine_p. Add asserts for
21681 oacc_default_dims_p and offload_region_p.
21683 2019-01-03 Tom de Vries <tdevries@suse.de>
21685 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
21686 factored out of ...
21687 (nvptx_goacc_validate_dims): ... here.
21689 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21691 PR tree-optimization/85574
21692 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
21694 (struct ssa_equip_hash_traits): Declare.
21695 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
21697 2019-01-03 Jakub Jelinek <jakub@redhat.com>
21700 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
21701 change it to qualified_type.
21703 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21705 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
21706 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
21708 2019-01-02 Martin Sebor <msebor@redhat.com>
21709 Jeff Law <law@redhat.com>
21711 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
21712 (get_range_strlen_tree): Update appropriately.
21714 * gimple-fold.h (get_range_strlen): Drop unused last argument.
21716 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
21717 rather than set_range_info.
21718 * tree-ssa-strlen.c (set_strlen_range): Extracted from
21719 maybe_set_strlen_range. Handle potentially boundary crossing
21720 cases more conservatively.
21721 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
21722 Call set_strlen_range.
21723 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
21725 PR middle-end/88663
21726 * gimple-fold.c (get_range_strlen): Update prototype to no longer
21727 need the flexp argument.
21728 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
21729 from calls to get_range_strlen. Update comments. Just update
21730 VAL for an unterminated const char array and let the reset of the
21731 code handle it normally. No longer try to set *flexp. Adjust
21733 (get_range_strlen): Update for the new get_range_strlen API.
21734 (get_maxval_strlen): Similarly.
21735 (gimple_fold_builtin_strlen): Handle update meaning of return value
21736 from get_range_strlen.
21737 * gimple-ssa-sprintf.c (get_string_length): Update for the new
21738 get_range_strlen API.
21740 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
21743 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21744 false at WPA time when body was removed.
21746 2019-01-02 Martin Liska <mliska@suse.cz>
21748 PR tree-optimization/88650
21749 * predict.c (set_even_probabilities): Calculate probability
21750 remainer only when really used.
21752 2019-01-02 Richard Biener <rguenther@suse.de>
21754 PR middle-end/88651
21755 * tree-data-ref.c (analyze_subscript_affine_affine): Use
21756 widest_ints when mangling max_stmt_execution results.
21758 2019-01-02 Richard Biener <rguenther@suse.de>
21760 PR tree-optimization/88621
21761 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
21762 bitfields when canoncalizing.
21764 2019-01-02 Richard Biener <rguenther@suse.de>
21767 * config/i386/x86-tune-costs.h (intel_cost): Adjust
21768 cost of cheap SSE instruction.
21770 2019-01-02 Richard Biener <rguenther@suse.de>
21773 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
21774 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
21776 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
21777 set after UIDs before splitting them.
21779 2019-01-01 Martin Sebor <msebor@redhat.com>
21780 Jeff Law <law@redhat.com>
21782 * gimple-fold.c (get_range_strlen_tree): Record if the computed
21783 length is optimistic. If it is, then arrange to compute the
21784 conservative length as well.
21786 * gimple-fold.h (get_range_strlen): Update prototype.
21787 * builtins.c (check_access): Update call to get_range_strlen to use
21788 c_strlen_data pointer. Change various variable accesses to instead
21789 pull data from the c_strlen_data structure.
21790 (check_strncat_sizes, expand_builtin_strncat): Likewise.
21791 * calls.c (maybe_warn_nonstring_arg): Likewise.
21792 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
21793 minimum length if maximum lengh is unknown.
21794 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
21795 that used c_strlen, it's no longer needed. Restructure slightly.
21796 (format_string): Set unlikely range appropriately.
21797 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
21799 (get_range_strlen): Accept c_strlen_data pointer for external
21800 call sites as well. Pass through to call to internal get_range_strlen.
21801 Adjust minlen, maxlen and maxbound as needed.
21802 (get_maxval_strlen): Update comments.
21803 (gimple_fold_builtin_strlen): Update call to get_range_strlen
21804 to use c_strlen_data pointer. Change variable accesses to instead
21805 use c_strlen_data data members.
21807 * gimple-fold.c (get_range_strlen): Update prototype.
21808 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
21809 local variables. Use pdata to return information to caller.
21810 Update calls to get_range_strlen. Update pdata->maxbound.
21811 (get_range_strlen -- static version): Similarly.
21812 (get_range_strlen -- extern version): Update for internal
21813 get_range_strlen API change. Convert to external data format.
21814 (get_maxval_strlen): Similarly.
21816 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
21818 * coverage.c (get_coverage_counts): Use current_function_decl.
21819 * profile.c (read_thunk_profile): New function.
21820 (branch_prob): Add THUNK parameter.
21821 * tree-profile.c (tree_profiling): Handle thunks.
21822 * value-prof.c (init_node_map): Handle thunks.
21823 * value-prof.h (branch_prob): Upate prototype.
21824 (read_thunk_profile): Declare.
21826 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21828 Update copyright years.
21830 * gcc.c (process_command): Update copyright notice dates.
21831 * gcov-dump.c (print_version): Ditto.
21832 * gcov.c (print_version): Ditto.
21833 * gcov-tool.c (print_version): Ditto.
21834 * gengtype.c (create_file): Ditto.
21835 * doc/cpp.texi: Bump @copying's copyright year.
21836 * doc/cppinternals.texi: Ditto.
21837 * doc/gcc.texi: Ditto.
21838 * doc/gccint.texi: Ditto.
21839 * doc/gcov.texi: Ditto.
21840 * doc/install.texi: Ditto.
21841 * doc/invoke.texi: Ditto.
21843 Copyright (C) 2019 Free Software Foundation, Inc.
21845 Copying and distribution of this file, with or without modification,
21846 are permitted in any medium without royalty provided the copyright
21847 notice and this notice are preserved.